
:root{--bg:#f1f5f9;--panel:#fff;--line:#e2e8f0;--text:#0f172a;--muted:#64748b;--brand:#1d4ed8;--brand-2:#1e40af;--brand-soft:#dbeafe;--ok:#16a34a;--ok-soft:#dcfce7;--warn:#d97706;--warn-soft:#fef3c7;--bad:#dc2626;--bad-soft:#fee2e2;--radius:12px;--shadow:0 1px 2px rgba(15,23,42,.06),0 1px 3px rgba(15,23,42,.08);--sidebar:248px;--nav-h:56px}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--text);font-size:15px;line-height:1.4;-webkit-font-smoothing:antialiased}
a{color:var(--brand);text-decoration:none}button{font:inherit}input,select,textarea{font:inherit;color:inherit}
h1,h2,h3,h4{margin:0;font-weight:700}h1{font-size:22px}h2{font-size:18px}h3{font-size:15px}
.muted{color:var(--muted)}.small{font-size:13px}.tiny{font-size:12px}.bold{font-weight:600}.right{text-align:right}.center{text-align:center}.nowrap{white-space:nowrap}.mono{font-variant-numeric:tabular-nums}
.row{display:flex;align-items:center;gap:8px}.row.wrap{flex-wrap:wrap}.col{display:flex;flex-direction:column;gap:8px}.grow{flex:1;min-width:0}.gap4{gap:4px}.gap12{gap:12px}.gap16{gap:16px}.between{justify-content:space-between}.mt8{margin-top:8px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mb8{margin-bottom:8px}.mb12{margin-bottom:12px}.mb16{margin-bottom:16px}.ml-auto{margin-left:auto}.hide{display:none!important}.ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pre{white-space:pre-wrap;word-break:break-word}
.grid{display:grid;gap:12px}.grid2{grid-template-columns:repeat(2,1fr)}.grid3{grid-template-columns:repeat(3,1fr)}.grid4{grid-template-columns:repeat(4,1fr)}.grid-auto{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
@media(max-width:767px){.grid2,.grid3,.grid4{grid-template-columns:1fr}.grid3.keep2,.grid4.keep2{grid-template-columns:1fr 1fr}.m-hide{display:none!important}}
@media(min-width:768px){.d-hide{display:none!important}}

/* layout */
.app{min-height:100vh}
.sidebar{position:fixed;top:0;left:0;bottom:0;width:var(--sidebar);background:#0f172a;color:#cbd5e1;overflow-y:auto;z-index:30;display:flex;flex-direction:column}
.sidebar .brand{padding:16px 18px;color:#fff;font-weight:800;font-size:18px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #1e293b}
.sidebar .brand .logo{width:32px;height:32px;border-radius:8px;background:var(--brand);display:grid;place-items:center;color:#fff;font-weight:900}
.sidebar .group{padding:10px 10px 4px}.sidebar .group-title{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#64748b;padding:8px 8px 4px;font-weight:700}
.sidebar a.item{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;color:#cbd5e1;font-size:14px}.sidebar a.item:hover{background:#1e293b;color:#fff}.sidebar a.item.active{background:var(--brand);color:#fff}
.sidebar a.item .badge{margin-left:auto}
.sidebar .foot{margin-top:auto;padding:12px;border-top:1px solid #1e293b;font-size:13px}
.main{margin-left:var(--sidebar);min-height:100vh;display:flex;flex-direction:column}
.topbar{position:sticky;top:0;z-index:20;background:var(--panel);border-bottom:1px solid var(--line);height:var(--nav-h);display:flex;align-items:center;gap:10px;padding:0 16px}
.topbar .title{font-weight:700;font-size:17px}.topbar .search{flex:1;max-width:520px}
.content{padding:16px;flex:1;max-width:1400px;width:100%}
@media(max-width:1023px){.sidebar{transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:none;box-shadow:0 0 0 100vw rgba(0,0,0,.4)}.main{margin-left:0}.content{padding:12px}}
.bottom-nav{position:fixed;bottom:0;left:0;right:0;background:var(--panel);border-top:1px solid var(--line);display:flex;z-index:25;padding-bottom:env(safe-area-inset-bottom)}
.bottom-nav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px 6px;font-size:11px;color:var(--muted);position:relative}.bottom-nav a.active{color:var(--brand)}
.bottom-nav .badge{position:absolute;top:4px;right:calc(50% - 22px)}
.has-bottom-nav .content{padding-bottom:84px}
.scrim{position:fixed;inset:0;z-index:29}

/* components */
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.card.pad{padding:14px}.card.clickable{cursor:pointer}.card.clickable:hover{border-color:#cbd5e1}
.card-h{display:flex;align-items:center;gap:8px;padding:12px 14px;border-bottom:1px solid var(--line);font-weight:700}
.stat{padding:14px;border-radius:var(--radius);background:var(--panel);border:1px solid var(--line)}.stat .v{font-size:22px;font-weight:800}.stat .l{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 14px;border-radius:10px;border:1px solid var(--line);background:var(--panel);color:var(--text);font-weight:600;font-size:14px;cursor:pointer;white-space:nowrap;line-height:1.2;text-decoration:none}
.btn:hover{background:#f8fafc}.btn:disabled{opacity:.5;cursor:default}.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}.btn.primary:hover{background:var(--brand-2)}
.btn.ok{background:var(--ok);border-color:var(--ok);color:#fff}.btn.warn{background:var(--warn);border-color:var(--warn);color:#fff}.btn.bad{background:var(--bad);border-color:var(--bad);color:#fff}.btn.ghost{border-color:transparent;background:transparent}.btn.ghost:hover{background:#f1f5f9}
.btn.sm{padding:6px 10px;font-size:13px;border-radius:8px}.btn.xs{padding:3px 8px;font-size:12px;border-radius:6px}.btn.lg{padding:13px 18px;font-size:16px}.btn.block{width:100%}.btn.icon{padding:8px;width:36px;height:36px}.btn.soft{background:var(--brand-soft);border-color:transparent;color:var(--brand-2)}.btn.soft-ok{background:var(--ok-soft);border-color:transparent;color:#15803d}.btn.soft-bad{background:var(--bad-soft);border-color:transparent;color:#b91c1c}.btn.soft-warn{background:var(--warn-soft);border-color:transparent;color:#b45309}
.badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:600;color:#fff;background:var(--muted);white-space:nowrap;line-height:1.4}.badge.soft{background:#e2e8f0;color:#334155}.badge.ok{background:var(--ok)}.badge.bad{background:var(--bad)}.badge.warn{background:var(--warn)}.badge.brand{background:var(--brand)}.badge.dot{padding:0;width:8px;height:8px}
.field{display:flex;flex-direction:column;gap:4px;margin-bottom:10px}.field label{font-size:13px;font-weight:600;color:#334155}.field .help{font-size:12px;color:var(--muted)}
.input,select.input,textarea.input{width:100%;padding:9px 11px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;font-size:15px;outline:none}.input:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}textarea.input{min-height:72px;resize:vertical}.input.sm{padding:6px 9px;font-size:14px}
.check{display:flex;align-items:center;gap:8px;font-size:14px;cursor:pointer}.check input{width:18px;height:18px}
.switch{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.switch:last-child{border-bottom:0}.switch .lbl{font-weight:600;font-size:14px}.switch .sub{font-size:12px;color:var(--muted)}
.toggle{position:relative;width:44px;height:26px;border-radius:999px;background:#cbd5e1;border:0;cursor:pointer;flex-shrink:0;transition:background .15s}.toggle.on{background:var(--ok)}.toggle::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:left .15s}.toggle.on::after{left:21px}
table.tbl{width:100%;border-collapse:collapse;font-size:14px}.tbl th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding:8px 10px;border-bottom:1px solid var(--line);white-space:nowrap}.tbl td{padding:9px 10px;border-bottom:1px solid #f1f5f9;vertical-align:middle}.tbl tr.clickable{cursor:pointer}.tbl tr.clickable:hover td{background:#f8fafc}.tbl-wrap{overflow-x:auto}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:12px;overflow-x:auto}.tabs button{background:none;border:0;padding:10px 12px;font-weight:600;color:var(--muted);border-bottom:2px solid transparent;cursor:pointer;white-space:nowrap}.tabs button.active{color:var(--brand);border-bottom-color:var(--brand)}
.pills{display:flex;gap:6px;flex-wrap:wrap}.pill{padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:13px;font-weight:600;cursor:pointer;color:#334155}.pill.active{background:var(--text);color:#fff;border-color:var(--text)}
.modal-bg{position:fixed;inset:0;background:rgba(15,23,42,.5);z-index:50;display:flex;align-items:flex-end;justify-content:center}@media(min-width:640px){.modal-bg{align-items:center;padding:20px}}
.modal{background:#fff;width:100%;max-width:640px;max-height:92vh;overflow:auto;border-radius:16px 16px 0 0;padding:16px}@media(min-width:640px){.modal{border-radius:16px}}.modal.wide{max-width:900px}.modal.narrow{max-width:420px}
.modal-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.modal-h h2{font-size:17px}
.toast-wrap{position:fixed;top:12px;left:50%;transform:translateX(-50%);z-index:100;display:flex;flex-direction:column;gap:8px;pointer-events:none}.toast{background:#0f172a;color:#fff;padding:10px 16px;border-radius:10px;font-size:14px;box-shadow:0 8px 24px rgba(0,0,0,.2);max-width:90vw}.toast.ok{background:var(--ok)}.toast.err{background:var(--bad)}
.empty{padding:40px 16px;text-align:center;color:var(--muted)}
.spinner{width:22px;height:22px;border:3px solid var(--line);border-top-color:var(--brand);border-radius:50%;animation:spin .8s linear infinite;margin:20px auto}@keyframes spin{to{transform:rotate(360deg)}}
.kanban{display:flex;gap:12px;overflow-x:auto;padding-bottom:8px;align-items:flex-start}.kcol{min-width:280px;width:280px;background:#e9eef5;border-radius:12px;padding:8px;flex-shrink:0}.kcol .kh{display:flex;align-items:center;justify-content:space-between;padding:4px 6px 8px;font-weight:700;font-size:14px}.kcol .kh .n{background:#fff;border-radius:999px;padding:0 8px;font-size:12px}
.jobcard{background:#fff;border-radius:10px;padding:10px 12px;margin-bottom:8px;border-left:4px solid var(--brand);box-shadow:var(--shadow);cursor:pointer;position:relative}.jobcard:hover{box-shadow:0 2px 8px rgba(15,23,42,.12)}.jobcard .jn{font-size:12px;color:var(--muted);font-weight:600}.jobcard .nm{font-weight:700;font-size:15px}.jobcard .ad{font-size:13px;color:#334155}.jobcard .pr{font-size:13px;color:var(--muted);margin-top:2px}.jobcard .ft{display:flex;align-items:center;gap:6px;margin-top:6px;flex-wrap:wrap;font-size:12px}
.jobcard.pinned{box-shadow:0 0 0 2px #fbbf24}
.quick{display:flex;gap:6px;margin-top:8px}.quick a,.quick button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:8px 6px;border-radius:8px;background:#f1f5f9;color:#1e293b;font-size:12px;font-weight:600;border:0;cursor:pointer}.quick a:hover,.quick button:hover{background:#e2e8f0}.quick .call{background:#dcfce7;color:#166534}.quick .text{background:#dbeafe;color:#1e40af}.quick .nav{background:#fef3c7;color:#92400e}.quick .pay{background:#ede9fe;color:#5b21b6}
.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}.photo-grid .ph{position:relative;aspect-ratio:1;border-radius:8px;overflow:hidden;background:#e2e8f0;cursor:pointer}.photo-grid img{width:100%;height:100%;object-fit:cover;display:block}.photo-grid .rm{position:absolute;top:4px;right:4px;background:rgba(0,0,0,.6);color:#fff;border:0;border-radius:50%;width:22px;height:22px;cursor:pointer}
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:60;display:flex;align-items:center;justify-content:center}.lightbox img{max-width:96vw;max-height:88vh;object-fit:contain}.lightbox .cap{position:absolute;bottom:14px;left:0;right:0;text-align:center;color:#fff;font-size:13px}
.timeline{list-style:none;margin:0;padding:0}.timeline li{display:flex;gap:10px;padding:6px 0;border-bottom:1px solid #f1f5f9;font-size:13px}.timeline li .t{color:var(--muted);white-space:nowrap;min-width:110px}
.price-line{display:flex;justify-content:space-between;padding:4px 0;font-size:14px}.price-line.total{font-weight:800;font-size:16px;border-top:1px solid var(--line);padding-top:8px;margin-top:4px}.price-line.due{color:var(--bad);font-weight:700}
.status-btns{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}@media(min-width:640px){.status-btns{grid-template-columns:repeat(3,1fr)}}.status-btns .btn{padding:12px 8px;font-size:14px}
.big-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.big-actions .btn{padding:16px 10px;font-size:15px;flex-direction:column;gap:6px;height:76px}
.notif-dot{position:absolute;top:4px;right:4px;background:var(--bad);color:#fff;font-size:10px;min-width:16px;height:16px;border-radius:999px;display:grid;place-items:center;padding:0 4px;font-weight:700}
.drop{position:absolute;right:0;top:100%;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(15,23,42,.18);min-width:min(300px,calc(100vw - 16px));max-width:min(92vw,calc(100vw - 16px));z-index:40;max-height:70vh;overflow:auto;box-sizing:border-box}
.drop .ninfo{overflow-wrap:anywhere;min-width:0}.drop .ninfo.row>svg{flex-shrink:0} /* labels wrap instead of running off (Oct 14 9:06 PM) */
.ninfo{padding:10px 12px;border-bottom:1px solid #f1f5f9;cursor:pointer}.ninfo.unread{background:#eff6ff}.ninfo .t{font-weight:700;font-size:14px}.ninfo .b{font-size:13px;color:#334155}.ninfo .w{font-size:11px;color:var(--muted)}
.leaflet-container{width:100%;height:100%;border-radius:12px}.map-box{height:420px;background:#e2e8f0;border-radius:12px;overflow:hidden}@media(max-width:767px){.map-box{height:340px}}
.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.calendar .dh{font-size:12px;color:var(--muted);text-align:center;font-weight:700;padding:4px 0}.calendar .day{min-height:86px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:4px;font-size:12px}.calendar .day.other{opacity:.45}.calendar .day.today{border-color:var(--brand)}.calendar .day .dn{font-weight:700;margin-bottom:3px}.calendar .ev{display:block;padding:2px 4px;border-radius:4px;color:#fff;margin-bottom:2px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px}
.login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;background:linear-gradient(160deg,#0f172a,#1e3a8a)}.login .box{background:#fff;padding:28px;border-radius:16px;width:100%;max-width:380px;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.sig-pad{border:1px dashed #cbd5e1;border-radius:10px;background:#fff;touch-action:none;width:100%;height:160px}
.print-only{display:none}@media print{.sidebar,.topbar,.bottom-nav,.no-print{display:none!important}.main{margin:0}.content{padding:0;max-width:none}.print-only{display:block}body{background:#fff}.card{box-shadow:none;border:0}}
.avatar{width:32px;height:32px;border-radius:50%;background:var(--brand-soft);color:var(--brand-2);display:grid;place-items:center;font-weight:800;font-size:13px;flex-shrink:0}
.progress{height:8px;border-radius:999px;background:#e2e8f0;overflow:hidden}.progress>div{height:100%;background:var(--brand)}
.sticky-actions{position:sticky;bottom:0;background:#fff;padding:10px 0;border-top:1px solid var(--line);margin-top:12px}
.has-bottom-nav .sticky-actions{bottom:60px}
.slot{padding:10px;border:1px solid var(--line);border-radius:10px;text-align:center;cursor:pointer;font-weight:600;background:#fff}.slot.active{background:var(--brand);color:#fff;border-color:var(--brand)}.slot.off{opacity:.4;cursor:default}
.chat{display:flex;flex-direction:column;gap:6px;padding:8px 0}.bubble{max-width:78%;padding:8px 12px;border-radius:14px;background:#e2e8f0;font-size:14px;align-self:flex-start}.bubble.me{background:var(--brand);color:#fff;align-self:flex-end}.bubble .w{font-size:10px;opacity:.7;margin-top:2px}.bubble img{max-width:100%;border-radius:8px;display:block}

/* public pay + booking pages */
.pay,.book{min-height:100vh;background:#f1f5f9;padding:16px 12px 24px;max-width:520px;margin:0 auto}
.pay-head{text-align:center;padding:12px 0 16px}.pay-brand{font-size:22px;font-weight:800;color:var(--brand)}
.pay-box{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;margin-bottom:12px;box-shadow:var(--shadow)}
.pay-sec-title{font-weight:700;font-size:16px;margin-bottom:10px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pay-lines>div{padding:6px 0;border-bottom:1px dashed var(--line)}.pay-lines>div:last-child{border-bottom:0}.pay-due{font-weight:800;font-size:18px}
.pay-note{background:var(--warn-soft);border-radius:10px;padding:10px 12px;font-size:13px}.pay-warn{background:var(--bad-soft);color:#991b1b;border-radius:10px;padding:10px 12px;font-size:13px;font-weight:600}
.pay-check{width:56px;height:56px;border-radius:50%;background:var(--ok-soft);color:var(--ok);display:grid;place-items:center;font-size:28px;font-weight:900;margin:8px auto 12px}
.ifield-wrap{border:1px solid #cbd5e1;border-radius:10px;height:46px;overflow:hidden;background:#fff}.ifield-wrap iframe{border:0;width:100%;height:46px;display:block}
.zelle-z{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:6px;background:#6d1ed4;color:#fff;font-weight:900;font-size:14px}
.book .days{display:flex;gap:8px;overflow-x:auto;padding-bottom:6px;-webkit-overflow-scrolling:touch}.book .day{flex:0 0 auto;min-width:64px;padding:8px 6px;border:1px solid var(--line);border-radius:10px;text-align:center;background:#fff;cursor:pointer;font-size:13px}.book .day.sel{background:var(--brand);color:#fff;border-color:var(--brand)}.book .day.off{opacity:.45;cursor:default}
.book .slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}.book .slot{padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff;text-align:center;cursor:pointer;font-weight:600}.book .slot.sel{background:var(--brand);color:#fff;border-color:var(--brand)}.book .slot.full{opacity:.4;cursor:default;text-decoration:line-through}

/* ===== compact density (David, Oct 14: "everything smaller, more convenient") — overrides above ===== */
body{font-size:14px}
h1{font-size:18px}h2{font-size:15px}h3{font-size:14px}
.content{padding:10px 12px}@media(max-width:767px){.content{padding:8px}}
.topbar{height:48px;padding:0 10px}.topbar .title{font-size:15px}:root{--nav-h:48px;--radius:10px;--sidebar:224px}
.sidebar a.item{padding:6px 10px;font-size:13px;gap:8px}.sidebar .group{padding:6px 8px 2px}.sidebar .group-title{padding:6px 8px 2px;font-size:10px}.sidebar .brand{padding:12px 14px;font-size:16px}
.card.pad{padding:10px 12px}
.stat{padding:8px 10px;border-radius:8px}.stat .v{font-size:17px}.stat .l{font-size:10.5px}
.btn{padding:7px 11px;font-size:13px;border-radius:8px;min-height:34px}.btn.sm{padding:5px 9px;font-size:12.5px;min-height:30px}.btn.xs{padding:2px 7px;font-size:12px;min-height:24px}.btn.lg{padding:11px 16px;font-size:15px;min-height:44px}.btn.icon{width:34px;height:34px;padding:6px}
.input,select.input,textarea.input{padding:7px 9px;font-size:14px;border-radius:8px}textarea.input{min-height:56px}
.field{margin-bottom:8px;gap:3px}.field label{font-size:12px}
.jobcard{padding:7px 10px;margin-bottom:6px;border-radius:8px}.jobcard .nm{font-size:14px}.jobcard .ad{font-size:12.5px}.jobcard .pr{font-size:12px}.jobcard .ft{margin-top:4px;font-size:11.5px;gap:5px}.jobcard .jn{font-size:11px}
.quick{margin-top:6px;gap:5px}.quick a,.quick button{padding:5px 8px;font-size:12px;min-height:30px;border-radius:7px}
.grid{gap:8px}.grid-auto{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
@media(min-width:1200px){.grid-auto{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}}
.tbl th{padding:6px 8px;font-size:11px}.tbl td{padding:6px 8px;font-size:13px}
.tabs button{padding:8px 10px;font-size:13px}.pill{padding:4px 10px;font-size:12px}
.modal{padding:14px}.modal-h{margin-bottom:8px}
.empty{padding:24px 12px;font-size:13px}
.ninfo{padding:8px 10px}.mb12{margin-bottom:10px}.mb16{margin-bottom:12px}.mt12{margin-top:10px}.mt16{margin-top:12px}
.row.wrap>select.input,.row.wrap>.input{width:auto;max-width:200px}
.kanban{gap:8px}
.bottom-nav a{padding:6px 4px 5px;font-size:10.5px}
@media(max-width:767px){.btn{min-height:38px}.btn.sm{min-height:34px}.btn.xs{min-height:28px}.quick a,.quick button{min-height:34px}.input,select.input{padding:8px 10px;font-size:15px}}
/* print: hide chrome */
@media print{.sidebar,.topbar,.bottom-nav,.btn,.pills,.tabs{display:none!important}.main{margin:0!important}.content{padding:0!important;max-width:none}.card{box-shadow:none;break-inside:avoid}}

/* ===== Oct 14 evening — David's phone pass: tighter cards, 40px actions, Take photo / Gallery, no duplicate titles ===== */
.jobcard{padding:6px 9px;margin-bottom:0}.jobcard .jn{font-size:11px;line-height:1.3}.jobcard .nm{font-size:14px;line-height:1.25;margin-top:1px}.jobcard .ad{font-size:12px;line-height:1.3}.jobcard .pr{font-size:12px;margin-top:1px;line-height:1.3}.jobcard .ft{margin-top:3px;font-size:11px;gap:5px}
.jobcard .ft .bold{margin-left:auto}
.quick{margin-top:5px;gap:4px}.quick a,.quick button{padding:0 6px;min-height:40px;height:40px;font-size:13px;border-radius:8px}
.grid-auto{gap:6px}
.tabs{margin-bottom:8px;gap:0;-ms-overflow-style:none;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}.tabs button{padding:8px 9px;font-size:13px}.tabs button .badge{margin-left:4px!important;padding:1px 6px;font-size:11px}
.photos .photo-grid{grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:6px}.photos.compact .photo-grid{grid-template-columns:repeat(auto-fill,minmax(64px,1fr))}
.photo-actions .photo-btn{min-height:36px;flex:1;justify-content:center}
.ph.up{background:#e2e8f0}.ph.up img{opacity:.55}.ph.up .upbar{position:absolute;left:0;right:0;bottom:0;height:5px;background:rgba(15,23,42,.25)}.ph.up .upbar .fill{height:100%;background:#2563eb;transition:width .2s}.ph.up .uplbl{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);text-align:center;font-size:11px;font-weight:700;color:#0f172a;background:rgba(255,255,255,.75);padding:2px}.ph.up.waiting .uplbl{color:#92400e}.ph.up.failed .uplbl{color:#991b1b}
.parts-compact .card.pad{padding:8px 10px}.parts-compact h3{font-size:14px}.parts-compact .prow{padding:5px 0}.parts-compact .btn.xs{min-height:26px;padding:2px 7px}
@media(max-width:767px){
  h1{font-size:17px}.content>div>.row.wrap.between.mb12 .muted.small{display:none}
  .quick a,.quick button{min-height:40px}
  .jobboard .tabs{margin-left:-8px;margin-right:-8px;padding:0 6px}
  .login .box{padding:18px}
}
@media(max-width:420px){.jobcard .jn{font-size:10.5px}}
.quick a,.quick button{white-space:nowrap}@media(min-width:768px){.grid-auto .quick a,.grid-auto .quick button{font-size:12px;padding:0 4px;min-height:34px;height:34px}}

/* phone bottom bar for office logins (Oct 14, per-user buttons from Settings → Bottom bar) */
.phone-bar{display:none}
.bottom-nav button{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 4px 5px;font-size:10.5px;color:var(--muted);background:none;border:0;cursor:pointer;position:relative}.bottom-nav button.active{color:var(--brand)}
@media(max-width:767px){.phone-bar{display:flex}.has-phone-bar .content{padding-bottom:76px}.has-phone-bar .sticky-actions{bottom:58px}.has-phone-bar .sidebar{bottom:0;z-index:40}}

/* chips (Oct 14 redesign) */
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{display:inline-flex;align-items:center;gap:4px;min-height:36px;padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--text);font-size:14px;font-weight:500;cursor:pointer;line-height:1.1;-webkit-tap-highlight-color:transparent}
.chip.sm{min-height:30px;padding:4px 10px;font-size:13px}
.chip:hover{border-color:#cbd5e1}
.chip.on{background:var(--brand);border-color:var(--brand);color:#fff}
.chip.closed{color:#94a3b8;border-style:dashed}.chip.closed.on{background:#64748b;border-color:#64748b;color:#fff}
.chip.urgent.on{background:var(--bad);border-color:var(--bad)}
.chip .cnt{display:inline-block;min-width:18px;padding:1px 5px;margin-left:2px;border-radius:9px;background:var(--brand-soft);color:var(--brand-2);font-size:11px;font-weight:700;text-align:center}
.chip.on .cnt{background:rgba(255,255,255,.25);color:#fff}
/* new job */
.nj{max-width:1180px}
.nj-head{margin-bottom:8px}
.nj-grid{display:grid;gap:10px;grid-template-columns:1fr;align-items:start}
@media(min-width:768px){.nj-grid{grid-template-columns:1fr 1fr}}
@media(min-width:1200px){.nj-grid{grid-template-columns:5fr 6fr}}
.nj-col{display:flex;flex-direction:column;gap:10px;min-width:0}
.nj-card{padding:12px 14px}
.nj-card .field{margin-bottom:8px}
.nj-h{display:flex;align-items:center;gap:6px;font-weight:700;font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:#334155;margin-bottom:10px}
.nj-h svg{color:var(--brand)}
.nj-sub{font-size:12px;font-weight:600;color:var(--muted);margin:12px 0 6px;text-transform:uppercase;letter-spacing:.03em}
.nj-2{display:grid;grid-template-columns:1fr 1fr;gap:8px}@media(max-width:480px){.nj-2{grid-template-columns:1fr}}
.nj-check{display:flex;align-items:flex-end;padding-bottom:12px}
.nj-phone{font-size:18px!important;font-weight:600;letter-spacing:.02em}
.nj-matches{background:#f8fafc;border:1px solid var(--line);border-radius:10px;padding:8px 10px;margin:-2px 0 10px}
.nj-match{background:#fff;border:1px solid var(--line);border-radius:8px;padding:8px 10px;margin-top:6px}
.nj-pj{padding-top:2px}
.nj-owes{color:var(--bad);font-weight:600}
.nj-used{background:var(--ok-soft);color:#14532d;border-radius:8px;padding:8px 10px;margin:-2px 0 10px;font-size:13px}
.nj-sched{border:2px solid var(--brand);box-shadow:0 2px 8px rgba(29,78,216,.08)}
.nj-sched .nj-h{color:var(--brand-2)}
.nj-date{display:inline-flex}.nj-date .input{min-height:36px;padding:4px 8px;border-radius:999px;width:150px}
.nj-day{margin-top:8px;font-weight:600;font-size:14px}
.nj-warn{margin-top:8px;padding:8px 10px;border-radius:8px;background:var(--warn-soft);color:#92400e;font-size:13px;display:flex;gap:6px;align-items:flex-start}
.nj-note{margin-top:8px;padding:6px 10px;border-radius:8px;background:#f1f5f9;color:#334155;font-size:13px;display:flex;gap:6px;align-items:center}
.nj-opt{background:#fcfcfd}
.nj-optional{margin-left:auto;font-size:11px;font-weight:600;text-transform:none;letter-spacing:0;color:var(--muted);background:#f1f5f9;border-radius:999px;padding:2px 8px}
.nj-pchips{margin-top:-2px}
.nj-bar{display:flex;align-items:center;gap:8px;justify-content:flex-end;padding:10px 4px;background:rgba(255,255,255,.97);backdrop-filter:blur(4px);z-index:20}
.nj-sum{flex:1;font-size:13px;color:var(--muted);font-weight:600;min-width:0}
@media(max-width:767px){.nj-bar{margin-left:-8px;margin-right:-8px;padding:8px 10px}.nj-bar .btn{padding-left:12px;padding-right:12px}}
.ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* sticker reader */
.sticker-btn{background:#0f172a;color:#fff;border-color:#0f172a;font-weight:600}
.sticker-btn:hover{background:#1e293b}
.sticker-ok{color:#166534}.sticker-bad{color:#b45309}
.spin-sm{width:14px;height:14px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;display:inline-block;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
/* bottom bar editor */
.bb-preview{display:flex;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;max-width:420px}
.bb-slot{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 2px 4px;font-size:11px;color:var(--muted);border-right:1px solid #f1f5f9}.bb-slot:last-child{border-right:0}
.bb-slot .btn.xs{min-height:22px;padding:0 4px}
/* equipment card on the job */
.eq-card .nj-sub{margin-top:10px}

.nj .row > .input{flex:1;min-width:0}.nj .row > select.input{flex:0 0 auto}

.topbar .menu-btn{display:inline-flex}@media(min-width:1024px){.topbar .menu-btn{display:none}}

/* Swipeable bottom bar (Oct 14 night, David 8:21 PM): any number of tabs, ~5 visible, swipe for the rest */
.swipebar-wrap{position:fixed;bottom:0;left:0;right:0;z-index:25;transform:translateZ(0);-webkit-transform:translateZ(0);will-change:transform;backface-visibility:hidden} /* own layer: stays pinned while a long job page scrolls fast (Oct 27 2026) */
.swipebar-wrap.phone-bar{display:none}
@media(max-width:767px){.swipebar-wrap.phone-bar{display:block}}
.swipebar-wrap .bottom-nav{position:static;width:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;box-shadow:0 -2px 10px rgba(15,23,42,.06)}
.swipebar::-webkit-scrollbar,.bb-demo::-webkit-scrollbar{display:none}
.swipebar a,.swipebar button{flex:1 0 64px;min-width:64px;scroll-snap-align:start;white-space:nowrap;padding:7px 2px 5px;font-size:10.5px;gap:2px}
.swipebar.many a,.swipebar.many button{flex:0 0 18.2%;min-width:64px}
.swipebar a>span:not(.badge),.swipebar button>span{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.swipebar a.active,.swipebar button.active{color:var(--brand);font-weight:600;background:linear-gradient(#eff6ff,#eff6ff00)}
.swipebar a.active::before,.swipebar button.active::before{content:'';position:absolute;top:0;left:24%;right:24%;height:3px;border-radius:0 0 3px 3px;background:var(--brand)}
.swipebar-wrap.fade-r::after,.swipebar-wrap.fade-l::before{content:'';position:absolute;top:1px;bottom:0;width:14px;pointer-events:none;z-index:1}
.swipebar-wrap.fade-r::after{right:0;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.95))}
.swipebar-wrap.fade-l::before{left:0;background:linear-gradient(270deg,rgba(255,255,255,0),rgba(255,255,255,.95))}
.bb-demo{position:static;overflow-x:auto;border:1px solid var(--line);border-radius:12px;max-width:420px;scrollbar-width:none;padding-bottom:0}
.bb-demo a{flex:0 0 76px;color:var(--muted);font-size:10.5px;padding:7px 2px 5px;display:flex;flex-direction:column;align-items:center;gap:2px;white-space:nowrap}
.bb-demo a:first-child{color:var(--brand)}
.bb-list{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;overflow:hidden;max-width:480px}
.bb-row{display:flex;align-items:center;gap:8px;padding:4px 6px 4px 10px;border-bottom:1px solid #f1f5f9;font-size:14px;background:#fff}.bb-row:last-child{border-bottom:0}
.bb-row .btn.xs{min-height:32px;min-width:32px;padding:0 6px}
.bb-n{width:18px;color:var(--muted);font-size:12px;text-align:right}
.update-banner{position:sticky;top:0;z-index:60;background:#1d4ed8;color:#fff;padding:8px 12px;font-size:13px;display:flex;align-items:center;gap:6px;cursor:pointer}

/* New Job compact layout (David, Oct 14 8:27–8:28 PM): short values in small boxes, several per line */
.nj-addr{display:grid;grid-template-columns:7fr 3fr;gap:8px}
.nj-addr .nj-u .input{min-width:0}
.nj-phrow{margin-bottom:6px}
.nj-ph{gap:6px;align-items:center;flex-wrap:nowrap}
.nj-ph>.input{flex:0 0 46%;min-width:0;max-width:220px}
.nj-lbls{flex:1;display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:2px 0}
.nj-lbls::-webkit-scrollbar{display:none}
.nj-lbls .chip{flex:0 0 auto;white-space:nowrap}
.nj-lbl-other{margin-top:4px;max-width:220px;font-size:14px}
.nj-addph{margin-top:2px}
.nj-wt{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:start}
.nj-wt.one{grid-template-columns:1fr}
.nj-big .chip{min-height:42px;padding:0 12px;font-size:14.5px}
.nj-days .chip{min-height:40px;padding:0 12px}
.nj-bms{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin-top:8px}
.nj-bms .input{min-width:0}
.nj-brands{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-top:8px;padding-bottom:2px}
.nj-brands::-webkit-scrollbar{display:none}
.nj-brands .chip{flex:0 0 auto}
.nj-2.keep{grid-template-columns:1fr 1fr!important}
.nj-toggle{width:100%;background:none;border:0;padding:0;cursor:pointer;text-align:left;display:flex;align-items:center;gap:6px;color:inherit;font:inherit;font-weight:700}
.nj-calls{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 8px}
.nj-calls .chip{min-height:38px}
.nj-calllist{flex-basis:100%;display:flex;flex-direction:column;gap:4px;align-items:flex-start}
@media(max-width:420px){.nj-wt .chip{padding:0 9px;font-size:13.5px}.nj-bms{grid-template-columns:1fr 1fr}.nj-bms>:first-child{grid-column:1 / -1}}

.has-phone-bar .sticky-actions{bottom:50px}@media(min-width:768px){.has-phone-bar .sticky-actions{bottom:0}}
@media(max-width:480px){.nj-toggle .nj-optional{display:none}}

/* Compact mode (David, Oct 14 8:34–8:35 PM): one tap at the top of list screens; ~9 jobs on a 390px phone */
.density-seg{display:inline-flex;border:1px solid var(--line);border-radius:8px;overflow:hidden;flex-shrink:0;background:#fff}
.density-btn{border:0;background:none;min-width:30px;height:30px;padding:0 6px;font-size:12.5px;font-weight:700;color:var(--muted);cursor:pointer}.density-btn+.density-btn{border-left:1px solid var(--line)}.density-btn.on{color:#fff;background:var(--brand)}
/* Small cards (density small): two lines — #/time/status, then the name or address; call/text/go as small icons on the right */
.dense-sm .jobcard{padding:3px 8px;margin-bottom:3px}
.dense-sm .jobcard .ad,.dense-sm .jobcard .pr,.dense-sm .jobcard .ft{display:none}
.dense-sm .jobcard .nm{font-size:13px;padding-right:112px}
.dense-sm .jobcard .quick{top:auto;bottom:3px;right:6px}
.dense-sm .jobcard .quick a,.dense-sm .jobcard .quick button{flex:0 0 26px;width:26px;height:22px;min-height:22px}
.dense-sm .jobcard .quick svg{width:13px;height:13px}
.dense-sm .grid-auto{gap:4px}
@media(max-width:480px){.density-btn span{display:none}}
.dense .jobcard{padding:4px 8px 4px 8px;margin-bottom:4px;border-radius:7px}
.dense .jobcard .jn{font-size:10.5px;line-height:1.25}
.dense .jobcard .nm{font-size:13.5px;line-height:1.25;margin-top:0;padding-right:142px}
.dense .jobcard .ad,.dense .jobcard .pr{font-size:11.5px;line-height:1.3;padding-right:142px}
.dense .jobcard .ad+.pr{display:none}
.dense .jobcard .ft{margin-top:1px;font-size:11px;gap:5px;line-height:1.3}
.dense .jobcard .quick{position:absolute;right:6px;top:19px;margin:0;gap:3px;flex-wrap:nowrap}
.dense .jobcard .quick a,.dense .jobcard .quick button{font-size:0;gap:0;flex:0 0 32px;width:32px;height:28px;min-height:28px;padding:0;border-radius:14px}
.dense .jobcard .quick svg{width:15px;height:15px}
.dense .jobcard .jn .ord{font-size:10.5px}
.dense .tabs button{padding:6px 8px;font-size:12.5px}
.dense .card.pad{padding:8px 10px}
.dense .list-row,.dense table td{padding-top:4px;padding-bottom:4px}
.dense .grid-auto{gap:6px}

/* shared day order (numbers, Change order mode) + Day route */
.jobcard .jn .ord,.route-row .ord{display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 4px;margin-right:5px;border-radius:9px;background:var(--brand);color:#fff;font-weight:700;font-size:11px;line-height:1}
.route-row .ord.big{min-width:26px;height:26px;border-radius:13px;font-size:13px;flex:0 0 auto}
.ord-bar .chip{min-height:34px}
.ord-group{grid-column:1 / -1;font-size:12px;font-weight:700;color:var(--muted);margin:6px 2px 2px;text-transform:none}
.ord-ctl{display:flex;align-items:center;gap:4px;margin-top:6px;padding-top:6px;border-top:1px dashed var(--line)}
.ord-ctl .btn.xs{min-height:32px;min-width:36px}
.ord-handle{touch-action:none;cursor:grab;font-size:20px;line-height:1;padding:4px 10px;color:var(--muted);user-select:none;-webkit-user-select:none;margin-right:auto;background:#f1f5f9;border-radius:8px}
.jobcard.dragging{z-index:30;box-shadow:0 8px 24px rgba(15,23,42,.25);opacity:.95;transition:none}
/* press-and-hold reorder (reorder.js) */
.jobboard .jobcard,.route-row{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.jobboard .jobcard a,.route-row a{-webkit-touch-callout:none}
.jobcard.dragging,.route-row.dragging{position:relative;z-index:30;box-shadow:0 10px 28px rgba(15,23,42,.28);opacity:.97;transition:none!important;will-change:transform}
.route-row.dragging{background:#fff}
.jobcard.shifting,.route-row.shifting,.jobcard.settling,.route-row.settling{transition:transform .18s ease}
body.qf-reordering{overscroll-behavior:none}
body.qf-reordering *{cursor:grabbing!important}
.dense .ord-ctl{margin-top:3px;padding-top:3px}
.route-row{display:flex;align-items:center;gap:8px;padding:7px 4px;border-bottom:1px solid var(--line);background:#fff}
.route-row .btn.xs{min-height:32px;min-width:34px}

/* New Job dropdown rows (David, Oct 14 8:40 PM) */
.nj-phrow,.nj-arow{display:flex;gap:5px;align-items:center;margin-bottom:5px}
.nj-lsel{flex:0 0 92px;width:92px;padding-left:6px!important;padding-right:2px!important}
.nj-pnum{flex:1 1 130px;min-width:0}
.nj-pname{flex:1 1 90px;min-width:0}
.nj-asel{flex:0 0 120px;width:120px;padding-left:6px!important;padding-right:2px!important}
.nj-aprob{flex:1;min-width:0}
@media(max-width:420px){.nj-lsel{flex-basis:84px;width:84px}.nj-pname{flex-basis:78px}.nj-asel{flex-basis:112px;width:112px}}

.visit-row{display:flex;flex-wrap:wrap;gap:4px 10px;padding:3px 0;border-bottom:1px solid #f1f5f9}.visit-row:last-child{border-bottom:0}
.route-row .vis{font-size:11px;color:var(--ok);font-weight:600}

/* Edit charges rows on phones (David, Oct 14 9:07 PM: "What is the F all the way on the left?" — the part name was squeezed to ~20px and the row ran off the right edge).
   <600px: name/description on its own full-width line, qty / $ each / cost / × on the next. Tablet & desktop keep one line. */
.lrow>.input,.lrow-disc>.input{min-width:0}.pn-wrap{position:relative;flex:1 1 0;min-width:120px}.pn-wrap>.input{width:100%}.pn-drop .ninfo{cursor:pointer}.lrow{flex-wrap:wrap}.lrow-note{flex:1 0 100%;font-size:11px;color:#047857;margin-top:-2px}
@media(max-width:1023px){.lrow{flex-wrap:wrap;align-items:center!important;row-gap:6px}.lrow>.input:first-child,.lrow>.pn-wrap{flex:1 0 100%!important;width:100%!important}.lrow>.input:not(:first-child){flex:1 1 0;width:auto!important;min-width:0}.lrow>input[type=number]:nth-child(2):not([step]){flex:0 0 64px}.lrow>.btn{flex:0 0 auto}.lrow-disc>select.input{flex:0 0 72px}}

/* Parts needed sheet (David, Oct 14 9:08–9:09 PM: "make it nice and professional") */
.pns-h{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#334155;margin:16px 0 8px}.pns-h:first-child{margin-top:2px}.pns-h .muted{text-transform:none;letter-spacing:0;font-weight:500}
.pns-line{border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin-bottom:10px;background:#f8fafc}
.pns-lh{margin-bottom:6px}.pns-n{font-size:12px;font-weight:700;color:#64748b}
.pns .input{min-height:44px;font-size:16px}.pns textarea.input{min-height:84px}
.pns-sub{margin-top:8px;gap:8px}.pns-sub>.input{flex:1 1 0;min-width:0}
.qty{display:flex;align-items:center;border:1px solid #cbd5e1;border-radius:10px;background:#fff;overflow:hidden;flex:0 0 auto}.qty .btn{border:0;border-radius:0;min-width:44px;min-height:42px;font-size:20px;padding:0;background:transparent}.qty span{min-width:30px;text-align:center;font-weight:700}
.pns-add{min-height:44px;border-style:dashed;color:#1d4ed8;background:#fff}
.seg{display:flex;border:1px solid #cbd5e1;border-radius:10px;overflow:hidden}.seg button{flex:1;min-height:44px;border:0;background:#fff;font-size:14px;font-weight:600;color:#334155;cursor:pointer}.seg button+button{border-left:1px solid #cbd5e1}.seg button.on{background:#1d4ed8;color:#fff}.seg button.on.p-high{background:#ea580c}.seg button.on.p-urgent{background:#dc2626}
.modal .row:has(>.pn-foot){position:sticky;bottom:-16px;background:#fff;margin:12px -16px -16px;padding:10px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);z-index:2}
.pn-foot{flex:1;gap:8px}.pn-foot .btn{min-height:46px}
.pns .pn-wrap{min-width:0}

/* Invoice edit screen (David, Oct 14 9:10 / 9:15 PM): one Email, auto "sent", tidy rows + item table on a phone */
.inv-actions{display:flex;flex-direction:column;gap:8px}
.inv-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.inv-row.one{grid-template-columns:1fr}.inv-row .btn{min-height:44px;justify-content:center;width:100%}
.inv-links{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;padding-top:2px}
.linkbtn{background:none;border:0;padding:6px 2px;font-size:13px;color:#1d4ed8;cursor:pointer;text-decoration:underline;text-underline-offset:2px;display:inline-flex;align-items:center;gap:4px}.linkbtn.bad{color:var(--bad)}
.inv-addline{border-style:dashed;color:#1d4ed8;background:#fff;min-height:40px}
.inv-tbl input.input{min-width:0;width:100%}
@media(min-width:768px){.inv-row{display:flex;justify-content:flex-end}.inv-row .btn{width:auto;min-width:150px}.inv-actions{align-items:stretch}}
@media(max-width:599px){.inv-tbl thead{display:none}.inv-tbl,.inv-tbl tbody{display:block;width:100%}.inv-tbl tbody tr{display:grid;grid-template-columns:64px 1fr auto 36px;gap:4px 8px;padding:10px 0;border-bottom:1px solid #f1f5f9;align-items:end}.inv-tbl td{padding:0!important;border:0!important;min-width:0}.inv-tbl td.inv-desc{grid-column:1/-1}.inv-tbl td[data-l]::before{content:attr(data-l);display:block;font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#64748b;margin-bottom:2px}.inv-tbl td.inv-amt{align-self:end;padding-bottom:9px!important;font-weight:700}.inv-tbl tr.inv-empty{display:block}}
.grid2.keep2{grid-template-columns:1fr 1fr}.inv-disc{gap:8px}.inv-disc .row{gap:4px;flex-wrap:nowrap}.inv-disc .input{min-width:0} /* Discount + Diagnostic credit on one line, phones too (David, Oct 14 9:15 PM) */
.inv-disc select.input{align-self:stretch;height:auto}.inv-links:empty{display:none}
.lrow-head{display:none}@media(max-width:1023px){.lrow-head{display:flex;gap:8px;font-size:10px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#64748b;margin:-2px 0 4px}.lrow-head span{flex:1 1 0}.lrow-head .q{flex:0 0 64px}.lrow-head .x{flex:0 0 36px}} /* column names for the 2nd line of each row on phones */
.inv-disc .input{height:42px}

/* invoice # lookup / Enter check (worker 17f538bf) */
.inv-hits{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}
.inv-hit{padding:10px 12px}
.inv-hit-top,.inv-hit-bot{display:flex;align-items:center;gap:8px;min-width:0}
.inv-hit-bot{margin-top:6px;flex-wrap:wrap;row-gap:6px}
.inv-hit-num{font-size:15px;white-space:nowrap}
.inv-hit-sp{flex:1}
.inv-hit-who{margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* PHONE FIT (David, Oct 14 9:24–9:25 PM: "I should be able to see everything … without scrolling sideways"; worker a07cea6f).
   Under 600px every table.tbl becomes stacked rows: first cell on its own line, the other cells flow after it as small
   "LABEL value" pairs (labels copied from the header by fit.js). Desktop/tablet tables are unchanged. .inv-tbl has its own
   phone layout; add class keep-tbl to opt a table out. */
@media(max-width:599px){
  .tbl:not(.inv-tbl):not(.keep-tbl){display:block;width:100%}
  .tbl:not(.inv-tbl):not(.keep-tbl)>thead{display:none}
  .tbl:not(.inv-tbl):not(.keep-tbl)>tbody{display:block;width:100%}
  .tbl:not(.inv-tbl):not(.keep-tbl)>tbody>tr{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:14px;row-gap:3px;padding:8px 10px;border-bottom:1px solid #eef2f7}
  .tbl:not(.inv-tbl):not(.keep-tbl)>tbody>tr:last-child{border-bottom:0}
  .tbl:not(.inv-tbl):not(.keep-tbl)>tbody>tr>td{display:block;padding:0!important;border:0!important;min-width:0;max-width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;background:none!important}
  .tbl:not(.inv-tbl):not(.keep-tbl)>tbody>tr>td:first-child{flex:1 1 100%}
  .tbl:not(.inv-tbl):not(.keep-tbl)>tbody>tr>td:empty{display:none}
  .tbl:not(.inv-tbl):not(.keep-tbl)>tbody>tr>td[data-l]:not(:first-child)::before{content:attr(data-l) "\00a0";font-size:10px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:#94a3b8}
  .tbl:not(.inv-tbl):not(.keep-tbl)>tbody>tr>td:last-child:not([data-l]):not(:first-child){margin-left:auto}
  .tbl:not(.inv-tbl):not(.keep-tbl) td .btn{white-space:normal}
  .tbl:not(.inv-tbl):not(.keep-tbl)>tbody>tr.clickable:active{background:#f8fafc}
}
/* bottom bar: whole tabs only — exactly 5 per screen, snapping tab by tab, with a clear fade where more tabs wait (no half-cut label) */
@media(max-width:767px){
  .swipebar.many{scroll-snap-type:x mandatory}
  .swipebar.many a,.swipebar.many button{flex:0 0 20%;min-width:0}
  .swipebar-wrap.fade-r::after,.swipebar-wrap.fade-l::before{width:22px}
  .swipebar-wrap.fade-r::after{background:linear-gradient(90deg,rgba(255,255,255,0),#fff 85%)}
  .swipebar-wrap.fade-l::before{background:linear-gradient(270deg,rgba(255,255,255,0),#fff 85%)}
}
/* PHONE FIT, the non-table spots (worker a07cea6f): month calendar columns may shrink (events already ellipsize);
   card headers and "name … amount" rows wrap/shrink instead of pushing the page wider; boards stack on phones */
.calendar{grid-template-columns:repeat(7,minmax(0,1fr))}
@media(max-width:599px){
  .calendar{gap:2px}.calendar .day{min-height:64px;padding:2px;font-size:11px}.calendar .ev{font-size:10px;padding:1px 2px}.calendar .dh{font-size:11px}
  .card-h{flex-wrap:wrap}
  .row.between>div:first-child{min-width:0}
  .kanban{flex-direction:column;align-items:stretch;overflow-x:visible}.kanban .kcol{width:auto;min-width:0}
}
@media(max-width:599px){.row.wrap>.grow:has(>.row>input.input){flex:1 1 100%}} /* list search box gets its own line on phones (worker a07cea6f) */
@media(max-width:599px){.grid>*{min-width:0}} /* grid cells may shrink to the screen instead of widening the page (Dashboard at 360px; worker a07cea6f) */

/* Document viewer (components.jsx DocHost): payout / invoice / statement / email preview inside the app, Back closes it */
.docview{position:fixed;inset:0;z-index:70;background:#fff;display:flex;flex-direction:column}
.docview-h{display:flex;align-items:center;gap:6px;padding:calc(6px + env(safe-area-inset-top)) 8px 6px;border-bottom:1px solid var(--line);background:#fff}
.docview-t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}
.docview-f{flex:1;width:100%;border:0;background:#fff;display:block}
@media print{.docview{display:none!important}}

/* "Did you mean …?" address check (Oct 15 2026) */
.addr-fix { margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: #fff7e6; border: 1px solid #f5c26b; font-size: 13px; line-height: 1.35; }
.addr-fix.bad { background: #fdecec; border-color: #f0a3a3; color: #9b1c1c; }
.addr-fix-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.addr-fix-row + .addr-fix-row { margin-top: 6px; }
.addr-fix-row b { font-weight: 600; }
.addr-fix-row .btn { flex: none; min-width: 52px; }
.addr-unplaced { margin-top: 8px; }

/* live sync / pull-to-refresh / drag to another tech (Oct 15 2026) */
html,body{overscroll-behavior-y:none} /* Oct 27 2026: was contain — Android's stretch overscroll then still stretched the whole page incl. the fixed bottom bar (flash/jump, bar off the bottom); the app's own pull-to-refresh is touch-based and does not need it */
.ptr{position:fixed;top:0;left:50%;transform:translate(-50%,-50px);z-index:90;width:36px;height:36px;border-radius:50%;background:#fff;box-shadow:0 2px 10px rgba(15,23,42,.18);display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none}
.ptr-ring{width:18px;height:18px;border:2.5px solid var(--line);border-top-color:var(--brand);border-radius:50%}
.ptr.ready .ptr-ring{border-color:var(--brand);border-top-color:transparent}
.ptr.spinning .ptr-ring{border-color:var(--line);border-top-color:var(--brand);animation:spin .7s linear infinite}
.btn.refreshing svg{animation:spin .7s linear infinite}
.jobcard.drop-before{box-shadow:0 -4px 0 0 var(--brand)!important}
.jobcard.drop-after{box-shadow:0 4px 0 0 var(--brand)!important}
.ord-group.drop-into{background:var(--brand);color:#fff;border-radius:8px}
.ord-group.ord-empty{opacity:.75;border:1.5px dashed var(--line);border-radius:8px;padding:8px 10px}
.toast.has-act{display:flex;align-items:center;gap:14px;pointer-events:auto}
.toast-act{background:transparent;border:0;color:#fff;font-weight:700;text-decoration:underline;font-size:14px;padding:4px 2px;cursor:pointer}

/* Parts orders (David, Oct 15 2026 5:00 PM) */
.po-chips{display:flex;gap:6px;flex-wrap:wrap}.po-chips .pill{padding:5px 10px;font-size:12px}
.po-cards{display:flex;flex-direction:column;gap:6px}
.po-card{display:flex;gap:10px;align-items:center;padding:8px 10px;cursor:pointer;min-width:0}
.po-thumb{width:46px;height:46px;border-radius:8px;object-fit:cover;flex:none;background:#f1f5f9}.po-thumb.none{display:flex;align-items:center;justify-content:center;color:#94a3b8}
.po-form{max-width:640px;margin:0 auto}.po-form .input{min-width:0;width:100%}
.po-2{display:grid;grid-template-columns:1fr 1fr;gap:8px}.po-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
.po-2>.field,.po-3>.field{min-width:0}
.po-match{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;padding:8px 10px;margin:-2px 0 10px}
.po-calc{background:#f8fafc;border:1px dashed var(--line);border-radius:8px;padding:6px 8px;margin:-2px 0 8px;gap:6px}
.po-status{display:flex;gap:6px;flex-wrap:wrap}.po-status .pill{padding:5px 10px;font-size:12px}
.po-hist{border-top:1px solid var(--line);padding-top:6px;display:flex;flex-direction:column;gap:2px}
.nj-head .po-nj{margin-left:auto}

.wa-menu .drop{min-width:220px}.wa-btn{color:#128c7e;border-color:#9fe3c8} /* WhatsApp ▾ invoice menu (Oct 15) */
.ooma-btn{color:#1d5fbf;border-color:#a9c6ef} /* Ooma text invoice button (Oct 15) */

/* ---- customer pay page v2 (Oct 16 2026) ---- */
.paypage{padding:0 12px 20px;overflow-x:hidden;font-size:15px;-webkit-text-size-adjust:100%}
.paypage *{box-sizing:border-box}
.paypage .pay-head{display:flex;align-items:center;gap:12px;text-align:left;margin:0 -12px 14px;padding:14px 16px;background:#0b0f14;color:#fff;border-bottom:3px solid #19b5d9}
.paypage .pay-logo{width:48px;height:48px;border-radius:10px;object-fit:contain;background:#000;flex:none}
.paypage .pay-head-txt{min-width:0}
.paypage .pay-brand{font-size:18px;font-weight:800;color:#fff;line-height:1.2;letter-spacing:.2px}
.paypage .pay-sub{font-size:12.5px;color:#7dd3fc;margin-top:2px;font-weight:600}
.paypage .pay-box{border-radius:14px;padding:14px;margin-bottom:12px;box-shadow:0 1px 3px rgba(15,23,42,.06)}
.paypage .pay-label{font-size:12px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--muted)}
.paypage .pay-inv-main{display:flex;justify-content:space-between;gap:10px;margin:6px 0 8px}.paypage .pay-inv-l{min-width:0}
.paypage .pay-lines>div{padding:7px 0}
.paypage .pay-due{font-size:17px}
.paypage .pay-sec-title{font-size:16px;margin-bottom:8px}
.paypage .pay-ic{font-size:18px}
.pay-ways{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:#eef6ff;border:1px solid #bfdbfe;color:#1e3a8a;border-radius:12px;padding:11px 12px;margin:0 0 12px;font:inherit;font-size:14px;cursor:pointer;line-height:1.35}
.pay-ways-ic{flex:none;width:22px;height:22px;border-radius:50%;background:#1d4ed8;color:#fff;display:grid;place-items:center;font-weight:800;font-style:italic;font-family:Georgia,serif;font-size:14px}
.pay-ways-txt{flex:1;min-width:0}
.pay-ways-go{flex:none;background:#6d1ed4;color:#fff;border-radius:999px;padding:5px 10px;font-weight:700;font-size:13px;white-space:nowrap}
.paypage .pay-amt{background:#f8fafc;border-radius:10px;padding:2px 12px}
.paypage .field{margin-bottom:10px}.paypage .field label{font-size:13px;font-weight:600;color:#334155;display:block;margin-bottom:4px}
.paypage .input{height:46px;font-size:17px;border-radius:10px;width:100%}
.paypage .pay-numlbl{margin-bottom:4px}.paypage .pay-numlbl label{margin:0}
.pay-scan{border:1px solid #1d4ed8;color:#1d4ed8;background:#fff;border-radius:999px;padding:5px 12px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}
.pay-scan:disabled{opacity:.5}
.pay-scanres{position:relative;margin-top:8px;background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;border-radius:10px;padding:10px 30px 10px 12px;font-size:13.5px;line-height:1.45}
.pay-scanres.bad{background:#fff7ed;border-color:#fed7aa;color:#9a3412}
.pay-scanres .spinner{display:inline-block;width:14px;height:14px;border-width:2px;margin:0 6px -2px 0}
.pay-x{position:absolute;top:4px;right:6px;border:0;background:none;font-size:20px;color:inherit;cursor:pointer;line-height:1}
.pay-mono{font-variant-numeric:tabular-nums;letter-spacing:.5px}
.paypage .pay-row3{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:8px}
.paypage .pay-row3 .field{min-width:0}
.pay-err{color:var(--bad);min-height:18px;margin:2px 0 6px}
.paypage .pay-btn{min-height:50px;font-size:17px;font-weight:700;border-radius:12px}
.pay-cards{text-align:center;font-size:11px;font-weight:700;letter-spacing:1px;color:#94a3b8;margin-top:6px}
.pay-free{background:#dcfce7;color:#166534;border-radius:999px;padding:2px 8px;font-size:12px;font-weight:700}
.paypage .pay-zelle{border-top:4px solid #6d1ed4;scroll-margin-top:12px}
.pay-zrow b{font-size:14.5px}
.pay-copy{flex:none;border:1px solid #c4b5fd;background:#f5f3ff;color:#5b21b6;border-radius:8px;padding:4px 10px;font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
.pay-steps{margin:10px 0 4px;padding-left:20px;font-size:13.5px;line-height:1.55;color:#334155}
.paypage .pay-zbtn{background:#6d1ed4;color:#fff;border-color:#6d1ed4;min-height:50px;font-weight:700;border-radius:12px}
.pay-foot{text-align:center;color:var(--muted);font-size:12px;line-height:1.6;padding:8px 8px 4px}
.pay-foot a{color:inherit}
@media (max-width:360px){.paypage .pay-row3{grid-template-columns:1fr 1fr}.paypage .pay-row3 .field:last-child{grid-column:span 2}}

.pay-zhow{margin:12px 0 4px;padding:12px 14px;background:#f6f4ff;border-left:3px solid #6d1ed4;border-radius:8px;font-size:14px;line-height:1.55;color:#333}
.pay-zhow b{color:#111}

/* live card scanner (Oct 18 2026) — full-screen camera with a card-shaped box */
.pay-copynum{display:inline-block;border:1px solid #059669;background:#fff;color:#065f46;border-radius:999px;padding:3px 10px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;margin:4px 4px 2px 0}
.scan-cam{position:fixed;inset:0;z-index:2000;background:#000;color:#fff;overflow:hidden;-webkit-user-select:none;user-select:none;font-size:15px}
.scan-cam *{box-sizing:border-box}
.scan-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#000}
.scan-frame{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);width:min(88vw,520px,calc((100vh - 250px) * 1.585));aspect-ratio:85.6/54;border-radius:16px;border:2px solid rgba(255,255,255,.55);box-shadow:0 0 0 200vmax rgba(0,0,0,.58);transition:border-color .15s,box-shadow .15s}
@supports not (aspect-ratio:1/1){.scan-frame{height:calc(min(88vw,520px) * .631)}}
.scan-c{position:absolute;width:30px;height:30px;border:0 solid #fff;pointer-events:none}
.scan-c.tl{top:-4px;left:-4px;border-top-width:5px;border-left-width:5px;border-top-left-radius:18px}
.scan-c.tr{top:-4px;right:-4px;border-top-width:5px;border-right-width:5px;border-top-right-radius:18px}
.scan-c.bl{bottom:-4px;left:-4px;border-bottom-width:5px;border-left-width:5px;border-bottom-left-radius:18px}
.scan-c.br{bottom:-4px;right:-4px;border-bottom-width:5px;border-right-width:5px;border-bottom-right-radius:18px}
.scan-cam.ok .scan-frame{border-color:#22c55e;box-shadow:0 0 0 200vmax rgba(0,0,0,.58),inset 0 0 0 4px #22c55e,inset 0 0 40px rgba(34,197,94,.55)}
.scan-cam.ok .scan-c{border-color:#22c55e}
.scan-hint{position:absolute;left:-20px;right:-20px;bottom:calc(100% + 16px);text-align:center;font-size:17px;font-weight:700;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.scan-reading{position:absolute;right:10px;bottom:10px;display:flex;align-items:center;gap:6px;padding:4px 10px 4px 8px;border-radius:999px;background:rgba(15,23,42,.55);font-size:12.5px;font-weight:600;color:#e2e8f0;pointer-events:none}
.scan-reading i{width:8px;height:8px;border-radius:50%;background:#38bdf8;animation:scanpulse 1s ease-in-out infinite}
@keyframes scanpulse{0%,100%{opacity:.35;transform:scale(.8)}50%{opacity:1;transform:scale(1.1)}}
.scan-cam.ok .scan-reading{display:none}
.scan-status{position:absolute;left:-10px;right:-10px;top:calc(100% + 14px);text-align:center;font-size:14.5px;font-weight:600;line-height:1.35;color:#e2e8f0}
.scan-status.bad{color:#fff;background:rgba(194,65,12,.92);border-radius:10px;padding:8px 10px}
.scan-cam.ok .scan-status{color:#4ade80;font-size:17px;font-weight:800}
.scan-status .spinner{display:inline-block;width:14px;height:14px;border-width:2px;margin:0 7px -2px 0;border-color:rgba(255,255,255,.3);border-top-color:#fff}
.scan-top{position:absolute;top:calc(12px + env(safe-area-inset-top,0px));width:46px;height:46px;border-radius:50%;border:0;background:rgba(15,23,42,.6);color:#fff;font-size:20px;line-height:46px;text-align:center;padding:0;cursor:pointer}
.scan-close{left:14px}
.scan-torch{right:14px}.scan-torch.on{background:#facc15;color:#000}
.scan-bottom{position:absolute;left:0;right:0;bottom:calc(18px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;align-items:center;gap:10px}
.scan-shutter{width:76px;height:76px;border-radius:50%;border:4px solid #fff;background:transparent;padding:5px;cursor:pointer}
.scan-shutter span{display:block;width:100%;height:100%;border-radius:50%;background:#fff;transition:transform .1s}
.scan-shutter:active span{transform:scale(.88)}.scan-shutter:disabled{opacity:.45}
.scan-photo{border:0;background:none;color:#cbd5e1;font:inherit;font-size:14px;text-decoration:underline;padding:6px 10px;cursor:pointer}
.scan-err{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(88vw,380px);background:#fff;color:#0f172a;border-radius:16px;padding:18px;text-align:center}
.scan-err p{color:#475569;font-size:14px;margin:8px 0 14px}
@media(max-height:480px){.scan-frame{top:46%}.scan-bottom{flex-direction:row;justify-content:center;gap:16px;bottom:10px}.scan-shutter{width:60px;height:60px}}
@media(max-height:480px){.scan-frame{width:min(70vw,calc((100vh - 110px) * 1.585))}}

/* Offline / sync strip (Oct 19 2026, David: "everything should work 100% offline … when going live it should sync everything") */
/* Oct 27 2026 (David: the page blinked each time the strip came and went): the strip floats over the page above the bottom bar — the page never moves */
.offline-bar{position:fixed;left:8px;right:8px;bottom:calc(64px + env(safe-area-inset-bottom));z-index:40;border-radius:10px;box-shadow:0 4px 14px rgba(15,23,42,.25);padding:7px 12px;font-size:13px;line-height:1.3;display:flex;align-items:center;gap:6px;cursor:pointer;color:#fff;overflow-wrap:anywhere;pointer-events:auto}
@media (min-width:900px){.offline-bar{left:auto;right:16px;bottom:16px;max-width:420px}}
.offline-bar.off{background:#b45309}
.offline-bar.sync{background:#1d4ed8}
.offline-bar.ok{background:#15803d}
.offline-bar.bad{background:#b91c1c}
.offline-bar .ob-dot{width:8px;height:8px;border-radius:50%;background:#fde68a;flex:none}
.offline-bar .ob-spin{width:11px;height:11px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;flex:none;animation:qfspin .8s linear infinite}
@keyframes qfspin{to{transform:rotate(360deg)}}
.badge.pend{background:#fef3c7;color:#92400e;border:1px solid #fcd34d}
.sync-row{padding:8px 0;border-bottom:1px solid var(--line,#e2e8f0);gap:8px}
.photo-grid .ph.up.waiting img,.photo-grid .ph.up.queued img{opacity:.75}
body.qf-offline .topbar{box-shadow:inset 0 -3px 0 #b45309}

/* Parts → Waiting on parts card details (Oct 19 2026): wait badge, part lines, note, photo strip */
.pw{margin-top:6px;padding-top:6px;border-top:1px dashed var(--line);cursor:default;min-width:0}
.pw-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:4px}
.badge.pw-ok{background:#e2e8f0;color:#334155}.badge.pw-warn{background:#f59e0b;color:#fff}.badge.pw-bad{background:#dc2626;color:#fff}
.pw-parts{list-style:none;margin:0 0 4px;padding:0}
.pw-parts li{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;padding:3px 0;font-size:13px;line-height:1.3;cursor:pointer;min-width:0}
.pw-pn{font-weight:700;color:var(--ink,#0f172a);overflow-wrap:anywhere}.pw-no{font-family:ui-monospace,Menlo,monospace;font-size:12px;color:#475569;overflow-wrap:anywhere}
.pw-st{font-size:11px;font-weight:700;padding:1px 7px;border-radius:999px;background:#fee2e2;color:#991b1b;white-space:nowrap}
.pw-st-ordered{background:#dbeafe;color:#1e40af}.pw-st-received,.pw-st-installed{background:#dcfce7;color:#166534}.pw-st-on_hold{background:#fef3c7;color:#92400e}
.pw-note{font-size:12.5px;color:#334155;background:#f8fafc;border-radius:6px;padding:4px 7px;margin:2px 0 4px;white-space:pre-wrap;overflow-wrap:anywhere}
.pw-add{display:block;width:100%;text-align:left;border:1px dashed #cbd5e1;background:#fff;border-radius:6px;padding:5px 8px;font-size:12.5px;color:var(--brand);font-weight:600;margin:2px 0 4px;cursor:pointer}
.pw-add.empty{border-color:#fca5a5;color:#b91c1c;background:#fff7f7}
.pw-strip{display:flex;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;padding:2px 0 6px;max-width:100%;scrollbar-width:thin}
.pw-strip img{flex:0 0 auto;width:64px;height:64px;object-fit:cover;border-radius:6px;background:#e2e8f0;cursor:zoom-in}
.pw-more{flex:0 0 auto;width:64px;height:64px;border-radius:6px;border:1px solid var(--line);background:#f1f5f9;font-weight:700;color:#475569}
.pw .row.gap4{flex-wrap:wrap}

/* Barcode scanning in Inventory (Oct 19 2026) — full-screen scanner reuses .scan-cam / .scan-video / .scan-c from the card scanner */
.scan-btn{background:#0f172a;color:#fff;border-color:#0f172a;font-weight:700;gap:6px}.scan-btn:hover{background:#1e293b}
@media(max-width:767px){.scan-btn{padding:9px 14px;font-size:15px}}
.bc-frame{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);width:min(86vw,520px);height:min(52vw,300px,calc(100vh - 300px));border-radius:16px;border:2px solid rgba(255,255,255,.5);box-shadow:0 0 0 200vmax rgba(0,0,0,.55);transition:border-color .15s,box-shadow .15s}
.bc-cam.ok .bc-frame{border-color:#22c55e;box-shadow:0 0 0 200vmax rgba(0,0,0,.55),inset 0 0 0 4px #22c55e,inset 0 0 40px rgba(34,197,94,.5)}
.bc-cam.ok .scan-c{border-color:#22c55e}
.bc-cam.ok .scan-hint{color:#4ade80}
.bc-laser{position:absolute;left:8%;right:8%;top:50%;height:2px;background:#ef4444;box-shadow:0 0 8px 1px rgba(239,68,68,.85);border-radius:2px;animation:bclaser 1.8s ease-in-out infinite;pointer-events:none}
@keyframes bclaser{0%,100%{transform:translateY(-38px);opacity:.55}50%{transform:translateY(38px);opacity:1}}
.bc-bottom{flex-direction:row!important;justify-content:center;gap:12px}
.bc-btn{border:0;border-radius:999px;background:rgba(15,23,42,.72);color:#fff;font:inherit;font-size:15px;font-weight:600;padding:12px 18px;min-height:46px;cursor:pointer}
.bc-btn:active{background:rgba(51,65,85,.9)}
.bc-type{position:absolute;left:12px;right:12px;bottom:calc(14px + env(safe-area-inset-bottom,0px));background:#fff;color:#0f172a;border-radius:16px;padding:14px;box-shadow:0 10px 30px rgba(0,0,0,.4)}
.bc-type .input{font-size:17px}
.scan-inp{position:relative;display:flex;align-items:center}.scan-inp .input{padding-right:46px;width:100%}
.scan-inp-btn{position:absolute;right:2px;top:50%;transform:translateY(-50%);color:#1d4ed8;width:42px;height:38px}
.bc-hit{border:1px solid var(--line);border-radius:14px;padding:12px;margin-bottom:10px;background:#fff}
.bc-thumb{width:56px;height:56px;border-radius:10px;object-fit:cover;flex:none;background:#f1f5f9}
.bc-thumb-empty{display:flex;align-items:center;justify-content:center;color:#94a3b8}
.bc-stock{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.bc-qty{flex:1;min-height:56px;border-radius:12px;border:1px solid var(--line);background:#f8fafc;font-size:22px;font-weight:800;color:#0f172a;cursor:pointer}
.bc-qty:active{transform:scale(.97)}.bc-qty:disabled{opacity:.4}
.bc-qty.plus{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}
.bc-num{flex:1.1;text-align:center;line-height:1.1}.bc-num b{display:block;font-size:34px;font-weight:800}.bc-num span{font-size:12.5px;color:#64748b}

/* Oct 19 2026: identify a new part after a scan (partid.jsx) */
.idbox{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin:0 0 14px;background:var(--panel);font-size:14px;line-height:1.35;box-shadow:0 1px 2px rgba(15,23,42,.05)}
.idbox.looking{background:var(--brand-soft);border-color:color-mix(in srgb,var(--brand) 25%,transparent)}
.idbox.found{background:var(--ok-soft);border-color:color-mix(in srgb,var(--ok) 35%,transparent)}
.idbox.offline,.idbox.error{background:var(--warn-soft);border-color:color-mix(in srgb,var(--warn) 35%,transparent)}
.idrow{display:flex;gap:12px;align-items:flex-start}
.idtxt{min-width:0;flex:1}
.idkicker{font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ok);margin-bottom:2px}
.idtitle{font-size:16px;font-weight:700;color:var(--text);line-height:1.25}
.idmeta{font-size:13.5px;color:var(--text);opacity:.8;margin-top:3px;display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center}
.idprice{font-weight:700;color:var(--text);opacity:1;background:#fff;border:1px solid var(--line);border-radius:999px;padding:1px 8px;font-size:12.5px}
.idsub{color:var(--muted);font-size:13px;margin-top:3px}
.idsrc{font-size:12px;color:var(--muted);margin-top:4px}
.idfoot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px;padding-top:9px;border-top:1px solid color-mix(in srgb,var(--ok) 25%,transparent);font-size:13px;color:var(--muted)}
.idlinks{display:flex;gap:14px;flex:none}
.idlinks a,.idlink{color:var(--brand);font-weight:600;text-decoration:none;background:none;border:0;padding:0;font:inherit;font-weight:600;cursor:pointer}
.idimg{width:60px;height:60px;object-fit:contain;background:#fff;border-radius:10px;border:1px solid var(--line);flex:none}
.idimg-ph{display:flex;align-items:center;justify-content:center;font-size:24px;color:var(--ok);font-weight:700}
.idicon{font-size:22px;line-height:1;flex:none;width:28px;text-align:center;margin-top:1px}
.idspin{width:22px;height:22px;flex:none;border:3px solid color-mix(in srgb,var(--brand) 20%,transparent);border-top-color:var(--brand);border-radius:50%;animation:spin .8s linear infinite;margin:1px 3px 0}
.idbar{height:3px;border-radius:3px;background:color-mix(in srgb,var(--brand) 15%,transparent);margin-top:11px;overflow:hidden}
.idbar span{display:block;height:100%;width:40%;border-radius:3px;background:var(--brand);animation:idbar 1.4s ease-in-out infinite}
@keyframes idbar{0%{transform:translateX(-100%)}100%{transform:translateX(250%)}}
.idretry{margin-top:8px}
.idbox .mono{font-family:ui-monospace,Menlo,monospace;color:var(--text)}
.autofill input,.autofill select,.autofill textarea{background:var(--ok-soft)!important;border-color:color-mix(in srgb,var(--ok) 45%,var(--line))!important}

/* ===== Invites + per-login homes (Oct 19 2026, worker 24bf31a4) ===== */
.inv-row { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); }
.inv-row > .grow { flex: 1 1 220px; }
.inv-acts { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: auto; }
.inv-acts > .btn { width: auto; flex: none; }
.inv-row:first-child { border-top: 0; }
.inv-roles { display: grid; gap: 8px; }
.inv-role { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.inv-role .ic { font-size: 22px; width: 30px; text-align: center; flex: none; }
.inv-role b { display: block; font-size: 15px; }
.inv-role .sub { display: block; font-size: 12px; color: var(--muted, #64748b); margin-top: 2px; line-height: 1.3; }
.inv-role.on { border-color: var(--brand, #1d4ed8); background: var(--brand-soft, #eff6ff); box-shadow: 0 0 0 2px rgba(29, 78, 216, .15); }
.inv-msg { background: #f1f5f9; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.4; word-break: break-all; margin-bottom: 14px; }
.inv-share .btn.lg { justify-content: center; gap: 8px; min-height: 50px; font-size: 16px; }
.inv-wa { background: #25d366 !important; border-color: #25d366 !important; color: #fff !important; font-weight: 700; }
.inv-page { min-height: 100vh; background: linear-gradient(180deg, #0b0b0b 0, #0b0b0b 170px, #f1f5f9 170px); padding: 0 16px 40px; box-sizing: border-box; }
.inv-head { display: flex; justify-content: center; padding: 22px 0 18px; }
.inv-logo { height: 110px; width: auto; max-width: 80%; object-fit: contain; }
.inv-card { background: #fff; max-width: 440px; margin: 0 auto; border-radius: 18px; padding: 22px 20px; box-shadow: 0 10px 30px rgba(15, 23, 42, .12); }
.inv-card h2 { margin: 0 0 2px; font-size: 24px; }
.inv-joining { background: var(--brand-soft, #eff6ff); border-radius: 12px; padding: 12px 14px; margin: 14px 0 16px; font-size: 15px; }
.inv-joining .small { margin-top: 4px; }
.inv-card .input[readonly] { background: #f1f5f9; color: #334155; }
.inv-warn { background: #fef3c7; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.inv-check { width: 56px; height: 56px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 30px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.inv-install { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 14px; }
.inv-step { padding: 8px 0; line-height: 1.45; }
.inv-dl { display: flex; justify-content: center; gap: 8px; margin: 6px 0 4px; }
.pd-new { justify-content: center; gap: 10px; min-height: 56px; font-size: 17px; font-weight: 700; margin-bottom: 12px; border-radius: 14px; }
.pd-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; scrollbar-width: none; }
.pd-tabs::-webkit-scrollbar { display: none; }
.pd-tab { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; color: #334155; display: flex; gap: 6px; align-items: center; cursor: pointer; }
.pd-tab .n { background: #e2e8f0; border-radius: 999px; padding: 0 7px; font-size: 12px; }
.pd-tab.on { background: var(--brand, #1d4ed8); border-color: var(--brand, #1d4ed8); color: #fff; }
.pd-tab.on .n { background: rgba(255, 255, 255, .25); }
.pd-tab.hot:not(.on) .n { background: #ec4899; color: #fff; }
.pd-tech { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.pd-tech-h { display: flex; gap: 6px; align-items: center; padding: 9px 12px; font-weight: 700; background: #f8fafc; border-bottom: 1px solid var(--line); }
.pd-tech-h.warn { background: #fff7ed; color: #9a3412; }
.pd-row { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid #f1f5f9; cursor: pointer; }
.pd-row:first-of-type { border-top: 0; }
.pd-time { width: 64px; flex: none; font-weight: 700; font-size: 13px; color: var(--brand, #1d4ed8); }
.pd-acts { display: flex; gap: 6px; flex: none; align-items: center; }
.pd-card { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.pd-day { font-weight: 800; font-size: 15px; margin: 6px 2px 8px; }
.pd-past { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.pd-wins { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-hello { font-size: 15px; font-weight: 600; margin: 2px 2px 10px; }

@media(max-width:767px){.grid3.keep3{grid-template-columns:repeat(3,1fr)}} /* Collections account: Call / Text / Pay link on one row (Oct 19 2026) */

/* ---- time-limited logins (Oct 19 2026) ---- */
.access-bar{position:relative;z-index:21;padding:7px 12px;font-size:13px;line-height:1.3;display:flex;align-items:center;gap:6px;background:#fef3c7;color:#92400e;border-bottom:1px solid #fde68a}
.access-bar b{color:#78350f}
.access-bar .access-left{margin-left:auto;font-weight:600;background:#fde68a;border-radius:999px;padding:1px 8px;font-size:12px;white-space:nowrap}
.access-bar.ended{background:#b91c1c;color:#fff;border-color:#991b1b}
.ended-box{text-align:center}
.ended-logo{height:72px;width:auto;max-width:70%;object-fit:contain;margin:0 auto 10px;display:block}
.ended-icon{width:60px;height:60px;border-radius:50%;background:var(--warn-soft);color:#b45309;display:flex;align-items:center;justify-content:center;margin:6px auto 12px}
.ended-title{font-size:21px;margin:0 0 8px}
.ended-text{color:#334155;font-size:15px;line-height:1.5;margin:0 0 16px}
.ended-note{background:var(--bad-soft);color:#991b1b;border-radius:10px;padding:10px 12px;font-size:13px;line-height:1.45;text-align:left;margin-bottom:14px}
.acc-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.acc-choice{border:1.5px solid var(--line);background:#fff;border-radius:10px;padding:11px 6px;font-size:14px;font-weight:600;color:#334155;cursor:pointer;font-family:inherit}
.acc-choice.on{border-color:var(--brand);background:var(--brand-soft);color:var(--brand-2);box-shadow:0 0 0 1px var(--brand) inset}
.acc-note{margin-top:8px;font-size:13px;color:var(--muted);line-height:1.4}
.acc-note.timed{color:#92400e;background:var(--warn-soft);border-radius:8px;padding:8px 10px}
.acc-note.bad{color:#991b1b;background:var(--bad-soft)}
.acc-custom{display:grid;grid-template-columns:1.3fr 1fr;gap:8px;margin-top:10px}
.acc-custom .field{margin-bottom:0}
.access-chip{background:var(--warn-soft);color:#92400e}
.inv-access{margin-top:8px;background:var(--warn-soft);color:#92400e;border-radius:8px;padding:7px 10px}
.acc-cell{border:0;background:none;padding:0;cursor:pointer;text-align:left;font:inherit;color:inherit}
.acc-perm{font-size:13px;color:#15803d;font-weight:600}
.acc-sheet .acc-status{display:flex;gap:12px;align-items:center;border-radius:12px;padding:12px 14px;margin-bottom:14px;background:var(--ok-soft);color:#14532d}
.acc-sheet .acc-status.timed{background:var(--warn-soft);color:#78350f}
.acc-sheet .acc-status.ended{background:var(--bad-soft);color:#7f1d1d}
.acc-sheet .acc-status-ic{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.7);display:flex;align-items:center;justify-content:center;flex:none}
.acc-sheet .acc-status b{font-size:15px}
.acc-h{font-size:13px;font-weight:700;color:#334155;margin:0 0 8px;text-transform:none}
.acc-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.acc-btn{font-weight:700}
.acc-btn.on{border-color:var(--brand);background:var(--brand-soft);color:var(--brand-2)}
.acc-custom-box{margin-top:10px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}
.acc-custom-box .acc-custom{margin-top:0;margin-bottom:8px}

/* Marcone-first prices on the identify card (Oct 19 2026; admin only) */
.idprices{margin:10px 0 2px;padding:9px 11px;border-radius:10px;background:#fff;border:1px solid var(--line)}
.idprices.marcone{border-color:color-mix(in srgb,var(--ok) 45%,transparent)}
.idprices.retail{border-color:color-mix(in srgb,var(--warn) 55%,transparent);background:var(--warn-soft)}
.idprow{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;font-size:14px}
.idprow b{font-size:15px}
.idptag{font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#fff;background:#b52d11;border-radius:6px;padding:2px 7px}
.idptag.warn{background:var(--warn);color:#1f2937}
.idpmsrp,.idpnote{color:var(--muted);font-size:13px}
.idpcust{font-weight:700;background:var(--brand-soft);border-radius:999px;padding:1px 9px;font-size:13px}
.idpsub{margin-top:4px;font-size:12px;color:var(--muted);line-height:1.35}

/* ---- On my way / Today's route / review request / day summary (Oct 19 2026) ---- */
.omw-btn.go { background: #0f766e; color: #fff; border-color: #0f766e; font-weight: 700; }
.omw-btn.sent { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.omw-btn.block { width: 100%; justify-content: center; padding: 12px; font-size: 16px; }
.omw-chip { display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; background: #0f766e; color: #fff; cursor: pointer; }
.omw-chip.sent { background: #ecfdf5; color: #047857; }
.omw-chip:disabled, .omw-btn:disabled { opacity: .6; }
.omw-bar { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 2000; display: flex; align-items: center; gap: 10px; background: #111827; color: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: 14px; max-width: 520px; margin: 0 auto; animation: omwIn .18s ease-out; }
.omw-bar.done { background: #065f46; }
.omw-bar-ic { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.15); align-items: center; justify-content: center; flex: none; }
.omw-undo { background: #fff; color: #111827; border: 0; border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: 14px; flex: none; }
@keyframes omwIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.today-route { overflow: hidden; }
.today-route .tr-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 8px; }
.today-route .tr-title { font-size: 17px; font-weight: 800; }
.today-route .tr-actions { display: flex; gap: 8px; padding: 10px 14px; }
.today-route .tr-actions .btn { justify-content: center; }
.today-route .tr-list { border-top: 1px solid var(--line); }
.today-route .tr-stop { display: flex; gap: 12px; padding: 12px 14px 6px; align-items: flex-start; cursor: pointer; }
.today-route .tr-stop.done { opacity: .55; }
.today-route .tr-num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #dc2626; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 15px; margin-top: 2px; }
.today-route .tr-stop.done .tr-num { background: #16a34a; }
.today-route .tr-time { font-size: 13px; font-weight: 700; color: #0f766e; }
.today-route .tr-omw { color: #047857; font-weight: 600; margin-left: 4px; }
.today-route .tr-name { font-size: 16px; font-weight: 700; }
.today-route .tr-what { font-size: 13px; margin-top: 2px; }
.today-route .tr-btns { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 14px 12px 56px; border-bottom: 1px solid var(--line); }
.today-route .tr-leg { font-size: 12px; color: var(--muted, #6b7280); padding: 4px 14px 0 56px; }
.review-card { border: 1px solid #fde68a; background: #fffbeb; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.review-card.blocked { background: #f9fafb; border-color: var(--line); }
.review-card .star, .review-done .star, .rev-row .star { color: #f59e0b; font-size: 18px; }
.review-preview { margin-top: 6px; background: #fff; border-radius: 10px; padding: 8px 10px; border: 1px solid #fef3c7; line-height: 1.35; }
.review-done { margin: 0 0 12px; padding: 8px 12px; background: #f0fdf4; border-radius: 10px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--primary, #2563eb); text-decoration: underline; cursor: pointer; font: inherit; }
.rev-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.rev-row:last-child { border-bottom: 0; }
.day-summary .sum-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.day-summary .sum-top > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.day-summary .sum-big { font-size: 20px; font-weight: 800; }
.day-summary .sum-big.bad, .day-summary .bad { color: var(--bad, #dc2626); }
.day-summary .ok { color: var(--ok, #16a34a); }
.day-summary .sum-row { border-bottom: 1px solid var(--line); }
.day-summary .sum-row:last-child { border-bottom: 0; }
.day-summary .sum-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; }
.day-summary .sum-ic { width: 30px; height: 30px; border-radius: 9px; background: #eff6ff; color: #1d4ed8; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.day-summary .sum-label { font-weight: 700; }
.day-summary .sum-val { font-size: 16px; }
.day-summary .sum-list { background: #f9fafb; border-top: 1px solid var(--line); }
.day-summary .sum-job { display: flex; gap: 8px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }

/* ---- History card, recall banner, low stock, pop-ups (Oct 19 2026) ---- */
.recall-banner { background: #fff4d6; border: 1px solid #f0c24b; border-left: 5px solid #e0a100; border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; color: #4a3500; }
.recall-banner.done { background: #eaf7ee; border-color: #9fd5b0; border-left-color: #2e9d57; color: #164d2a; }
.recall-banner .rb-head { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.recall-banner .rb-icon { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; background: #e0a100; color: #fff; font-weight: 800; font-size: 14px; }
.recall-banner.done .rb-icon { background: #2e9d57; }
.recall-banner .rb-text { margin-top: 6px; font-size: 14px; line-height: 1.4; }
.recall-banner .rb-sub { margin-top: 4px; font-size: 13px; font-weight: 600; }
.recall-banner .rb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.recall-banner .rb-mark { background: #e0a100; border-color: #e0a100; color: #fff; font-weight: 700; }
.rb-chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(224,161,0,.18); color: #7a5600; }
.hist-card .hist-head { align-items: baseline; }
.hist-bal { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--bad-soft, #fdeaea); color: var(--bad, #c0392b); font-size: 14px; }
.hist-row { display: flex; gap: 10px; justify-content: space-between; padding: 10px 2px; border-top: 1px solid var(--line, #e6e6e6); }
.hist-row:first-of-type { margin-top: 8px; }
.hist-row.tap { cursor: pointer; }
.hist-row.tap:active { background: rgba(0,0,0,.04); }
.hist-l { min-width: 0; flex: 1; }
.hist-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: 14px; }
.hist-app { font-weight: 600; }
.hist-done { font-size: 13px; color: #444; margin-top: 2px; overflow-wrap: anywhere; }
.hist-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: #666; margin-top: 4px; }
.hist-r { text-align: right; font-size: 14px; font-weight: 700; white-space: nowrap; }
.hist-owe { color: var(--bad, #c0392b); font-size: 12px; }
.hist-paid { color: #2e9d57; font-size: 12px; font-weight: 600; }
.low-badge { margin-left: 4px; font-size: 11px; padding: 1px 7px; }
.popup-host { position: fixed; right: 10px; top: calc(env(safe-area-inset-top, 0px) + 60px); z-index: 900; width: min(320px, calc(100vw - 20px)); display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.popup-host.moved { right: auto; }
.popup-card { pointer-events: auto; background: #fff; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,.22); border: 1px solid #e3e3e3; padding: 6px 8px 7px 10px; animation: popin .2s ease-out; font-size: 13px; }
@keyframes popin { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
.popup-top { display: flex; align-items: center; gap: 6px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; min-height: 26px; }
.popup-top:active { cursor: grabbing; }
.popup-ic { font-size: 14px; line-height: 1; }
.popup-who { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.popup-job { color: #667; font-size: 12px; white-space: nowrap; }
.popup-time { color: #889; font-size: 12px; white-space: nowrap; }
.popup-x { border: 0; background: transparent; font-size: 20px; line-height: 1; width: 28px; height: 28px; margin-right: -4px; color: #667; cursor: pointer; border-radius: 8px; }
.popup-x:hover { background: #f1f5f9; }
.popup-line { color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 1px 0 5px; }
.popup-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.popup-actions .btn { min-height: 28px; padding: 3px 10px; font-size: 12px; }

/* Marcone v2 (Oct 19 2026): availability + delivery, Find parts */
.mavail{margin-top:8px;border-top:1px dashed var(--line);padding-top:7px;font-size:13px;line-height:1.35}
.mavail.loading,.mavail.err{color:var(--muted);font-size:12.5px;display:flex;gap:8px;align-items:center}
.mavail.compact{border-top:0;padding-top:0;margin-top:6px}
.mav-row{display:flex;gap:8px;align-items:flex-start;padding:5px 7px;border-radius:8px}
.mav-row+.mav-row{margin-top:4px}
.mav-row.fast{background:color-mix(in srgb,var(--ok) 12%,#fff);border:1px solid color-mix(in srgb,var(--ok) 35%,transparent)}
.mav-row.pick{background:#f6f7fb}
.mav-row.out{background:var(--warn-soft)}
.mav-ic{font-size:15px;line-height:1.2}
.mav-txt{min-width:0;flex:1}
.mav-main b{font-weight:700}
.mav-tag{display:inline-block;font-size:10.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#fff;background:var(--ok);border-radius:5px;padding:1px 6px;margin-right:6px;vertical-align:1px}
.mav-dim,.mav-sub{color:var(--muted)}
.mav-sub{font-size:12px;margin-top:2px}
.mav-foot{margin-top:5px;font-size:11.5px;color:var(--muted)}
.fp{display:flex;flex-direction:column;gap:10px}
.fp-form{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:end}
@media (max-width:560px){.fp-form{grid-template-columns:1fr 1fr}.fp-go{grid-column:1/-1}}
.fp-l{display:flex;flex-direction:column;gap:4px;font-size:12.5px;font-weight:600;color:var(--muted)}
.fp-src{font-size:12px}
.fp-state{padding:12px;border-radius:10px;background:#f6f7fb;display:flex;gap:8px;align-items:center;font-size:14px}
.fp-state.warn{background:var(--warn-soft)}
.fp-h{font-weight:700;margin:4px 0}
.fp-model{display:flex;width:100%;align-items:center;gap:8px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff;margin-bottom:6px;text-align:left;font-size:15px}
.fp-chev{margin-left:auto;color:var(--muted);font-size:20px}
.fp-crumb{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;font-size:13.5px}
.fp-secs{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}
.fp-sec{display:flex;flex-direction:column;gap:6px;padding:8px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:12.5px;font-weight:600;text-align:left}
.fp-sec img,.fp-secph{width:100%;aspect-ratio:1;object-fit:contain;background:#fafafa;border-radius:6px}
.fp-results{display:flex;flex-direction:column;gap:8px}
.fp-part{border:1px solid var(--line);border-radius:12px;padding:10px;background:#fff}
.fp-top{display:flex;gap:10px}
.fp-img{width:64px;height:64px;flex:none;object-fit:contain;border-radius:8px;background:#fafafa;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:24px}
.fp-txt{min-width:0}
.fp-name{font-weight:700;font-size:15px;line-height:1.25}
.fp-meta{font-size:12.5px;margin-top:2px}
.fp-money{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin-top:8px;font-size:13.5px}
.fp-money.none{color:var(--muted);font-size:12.5px}
.fp-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}
.fp-cartmsg{margin-top:6px;font-size:12.5px;font-weight:600}
.fp-cartmsg.ok{color:var(--ok)}
.fp-cartmsg.bad{color:var(--bad, #b91c1c)}
.fp-cartoff{font-size:12px}
.mav-row.pick.none{color:var(--muted)}
.mav-row.pick.none b{font-weight:600}

/* ---- Calls screen (Oct 19 2026) ---- */
.calls-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px; margin-bottom:10px; }
.calls-filter .chip.bad:not(.on) { color:#b91c1c; border-color:#fca5a5; }
.calls-list { display:flex; flex-direction:column; gap:8px; }
.call-row { padding:10px 12px; margin:0; }
.call-row.open { border-left:4px solid #ef4444; }
.call-top { display:flex; gap:10px; align-items:flex-start; }
.call-ic { flex:0 0 34px; width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:16px; }
.call-ic.in { background:#dcfce7; color:#15803d; }
.call-ic.out { background:#dbeafe; color:#1d4ed8; }
.call-ic.missed { background:#fee2e2; color:#b91c1c; }
.call-main { flex:1; min-width:0; }
.call-who { display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:15px; }
.call-tag { font-size:10.5px; padding:1px 6px; border-radius:8px; background:#f1f5f9; color:#475569; font-weight:600; }
.call-tag.cust { background:#e0e7ff; color:#3730a3; }
.call-when { text-align:right; flex:0 0 auto; white-space:nowrap; }
.call-state { display:block; font-size:11.5px; font-weight:600; margin-top:2px; }
.call-state.bad { color:#b91c1c; }
.call-state.ok { color:#15803d; }
.call-cust { margin:6px 0 0 44px; }
.call-owes { color:#b91c1c; font-weight:600; }
.call-notes { margin:6px 0 0 44px; display:flex; flex-direction:column; gap:2px; }
.call-actions { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 0 44px; }
.calls-top { position:relative; }
.calls-top .badge { position:absolute; top:-2px; right:-4px; font-size:10px; min-width:16px; padding:0 4px; }
.nj-addrpick { margin:-2px 0 8px; }
.nj-addrpick .chips { margin-top:4px; }

/* Cancel job sheet (Oct 19 2026) */
.cj-actions{display:flex;flex-direction:column;gap:8px}.cj-sheet textarea{min-height:120px;resize:vertical}.cj-actions .btn{justify-content:center}

/* technician inventory (Oct 20 2026) */
.tinv-head{gap:8px;align-items:center}
.tinv-head .btn{flex:none;white-space:nowrap}
.tinv-row{gap:8px}
.tinv-dup{background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;padding:8px 10px;font-size:13px;margin:-4px 0 10px}
.tinv-qty{gap:8px;align-items:center}
.tinv-badge{margin-left:6px;font-size:11px;vertical-align:middle}
.tinv-banner{background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;padding:10px 12px;margin-bottom:12px;display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:14px}
.tinv-feed-row{display:flex;justify-content:space-between;gap:8px;padding:6px 0;border-top:1px solid #f1f5f9;color:inherit;text-decoration:none;font-size:14px}
.tinv-feed-row:first-of-type{border-top:0}
.tinv-hist{gap:8px;padding:5px 0;border-top:1px solid #f1f5f9;font-size:14px}

/* Oct 20 2026: tech job tag (no date set / from Oct 18), Take payment sheet, Done ✓ sheet, Collect from techs */
.jc-tag { display:inline-block; margin-left:6px; padding:0 6px; border-radius:8px; background:#fef3c7; color:#92400e; font-size:11px; font-weight:600; vertical-align:1px; }
.takepay-h { font-size:12px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; margin:12px 0 6px; }
.takepay-row { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.takepay-row > * { width:100%; }
.techdone { text-align:center; padding:8px 0; }
.techdone-check { width:56px; height:56px; border-radius:50%; background:var(--ok); color:#fff; font-size:30px; line-height:56px; margin:0 auto 8px; }
.collect-row { display:flex; gap:10px; align-items:flex-start; padding:10px 14px; border-top:1px solid #f1f5f9; }
.collect-row .right { text-align:right; }
.collect-line { display:flex; gap:10px; align-items:center; padding:8px 0; border-bottom:1px solid #f1f5f9; }

/* Oct 21 2026 tech scanner fix: Read label button, lens switch, help when nothing is read */
.bc-bottom{flex-wrap:wrap;gap:8px!important}
.bc-bottom .bc-btn{padding:11px 13px;font-size:14px}
.bc-btn:disabled{opacity:.55}
.bc-btn.bc-hot{background:#2563eb;box-shadow:0 0 0 3px rgba(255,255,255,.35)}
.scan-lens{right:70px}
.bc-slow{position:absolute;left:14px;right:14px;bottom:calc(92px + env(safe-area-inset-bottom,0px));background:rgba(15,23,42,.82);color:#fff;border-radius:12px;padding:10px 12px;font-size:14px;line-height:1.35;text-align:center;z-index:3}
.tinv-id{border-radius:10px;padding:9px 11px;margin-bottom:10px;font-size:14px;background:#eff6ff;color:#1e3a8a}
.tinv-id-found{background:#ecfdf5;color:#065f46}.tinv-id-fnsku,.tinv-id-none,.tinv-id-offline{background:#fffbeb;color:#92400e}
/* Oct 21 2026 Parts used picker */
.pp-head .scan-btn{white-space:nowrap}
.pp-list{display:flex;flex-direction:column;gap:6px;max-height:58vh;overflow:auto}
.pp-row{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:#fff;border:1px solid var(--line,#e2e8f0);border-radius:10px;padding:8px 10px;font:inherit;color:inherit;cursor:pointer}
.pp-row:active{background:#f1f5f9}
.pp-row img,.pp-ph{width:42px;height:42px;border-radius:8px;object-fit:cover;flex:none;background:#f1f5f9;display:flex;align-items:center;justify-content:center;color:#64748b}
.pp-t{flex:1;min-width:0;display:flex;flex-direction:column;overflow-wrap:anywhere}
.pp-r{flex:none;display:flex;flex-direction:column;align-items:flex-end}
.pp-out{color:var(--bad,#dc2626)}
.sco-on{background:rgba(255,255,255,.7);border-radius:10px;padding:6px 8px}
.sco-btn{padding-left:0}

/* Compact "Scheduled for" card + full phone number (David, Oct 25 2026 8:05 AM: "the box should be much, much smaller"; long numbers were cut off) */
.nj-sched{padding:10px 12px}
.nj-sched .nj-h{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:6px}
.nj-dayin{margin-left:auto;font-size:13px;font-weight:600;color:var(--text);text-transform:none;letter-spacing:0}
.nj-sched .nj-days{flex-wrap:nowrap;overflow-x:auto;gap:5px;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:1px 0}
.nj-sched .nj-days::-webkit-scrollbar{display:none}
.nj-sched .nj-days .chip{flex:0 0 auto;white-space:nowrap;min-height:32px;padding:0 10px;font-size:13.5px}
.nj-sched .nj-date{flex:0 0 auto}.nj-sched .nj-date .input{min-height:32px;width:138px;padding:2px 8px}
.nj-sched .nj-wt{grid-template-columns:auto minmax(0,1fr);gap:6px 10px;align-items:center;margin-top:8px}
.nj-sched .nj-wt .nj-sub{margin:0;font-size:11px}
.nj-sched .nj-tsel{min-height:34px;padding-top:2px;padding-bottom:2px;max-width:230px}
.nj-sched .nj-big{gap:5px}
.nj-sched .nj-big .chip{min-height:32px;padding:0 10px;font-size:13.5px}
.nj-sched .nj-warn,.nj-sched .nj-note{margin-top:6px}
@media(max-width:767px){.nj-phrow{flex-wrap:wrap}.nj-phrow .nj-pnum{order:-2;flex:1 1 calc(100% - 44px);min-width:0}.nj-phrow>.btn{order:-1}.nj-phrow .nj-pname{flex:1 1 0;min-width:0}}

/* ── review Oct 25 2026 ── */
/* phone top bar: the title shrinks (ends in …) instead of pushing the bell off the screen; the page heading below carries the full name */
@media(max-width:767px){
  .topbar{gap:4px}
  .topbar .title{min-width:0;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .topbar>.grow:not(.title){display:none}
  .topbar .density-btn{min-width:24px;height:28px;padding:0 3px;font-size:12px}
  .topbar>.btn.icon{flex-shrink:0}
}
/* time entries on phones: one card per shift, paid status as a badge, actions on their own row */
.tt-list .tt-item{padding:12px 14px;border-bottom:1px solid var(--line)}
.tt-list .tt-item:last-child{border-bottom:0}
.tt-list .badge{font-size:11.5px}
.tt-list .tt-acts{flex-wrap:wrap;gap:6px}
.tt-list .tt-acts>span:last-child{margin-left:auto}
.mt4{margin-top:4px}
.badge.ok[data-paid-badge]{color:#fff}
/* Jobs list filters on phones: search gets the full width, the two filters share the row below */
@media(max-width:767px){ .jobs-filters{grid-template-columns:1fr 1fr!important} .jobs-filters>:first-child{grid-column:1 / -1} }

/* Oct 25 (David approved #7): on phones the screen name shows once — in the top bar. The big in-page heading is hidden; its subtitle stays. */
@media(max-width:767px){.ph-title{display:none}}

/* bell: Mark read / Mark unread per line (Oct 25 2026) */
.ninfo.nrow{display:flex;align-items:flex-start;gap:8px}.ninfo .nmain{flex:1;min-width:0}.ninfo .nread-btn{flex-shrink:0;white-space:nowrap;min-height:26px;padding:2px 8px;font-size:11px;margin-top:2px}

/* Jobs date filter (Oct 27): Yesterday / Today / Tomorrow chips + date picker chip (invisible native input on top) + count */
.jobs-date{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.jobs-date .pill{display:inline-flex;align-items:center;gap:4px;line-height:1.2}
.jd-pick{position:relative;overflow:hidden}
.jd-pick input[type=date]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;border:0;padding:0;margin:0;font-size:16px}
.jd-pick input[type=date]::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.jd-clear{padding-left:8px!important;padding-right:8px!important}
.jd-count{white-space:nowrap}
@media(max-width:767px){.jobs-date{gap:6px}.jobs-date .jd-count{width:100%}}

/* Oct 27 2026: why a job is on the picked day (Jobs date filter) */
.jd-why{display:inline-block;margin-top:3px;padding:0 6px;border-radius:8px;background:#e0f2fe;color:#075985;font-size:11px;font-weight:600;white-space:nowrap}

/* Oct 27 2026: part labor charge — admin form total line, tech total */
.computed-line{padding:10px 12px;border-radius:10px;background:#eef9fc;border:1px solid #bfe9f4;font-size:15px}
.computed-line .ct-total{font-size:18px;color:var(--ink,#0f2747)}
.tinv-total{color:#0f2747;margin-top:2px}

/* pay page: choose-how-to-pay + numbered steps (Oct 27 2026) */
.pay-choose{background:#0b2a4a;border-radius:14px;padding:12px;margin:0 0 12px;color:#fff}
.pay-choose-t{font-weight:800;font-size:15px;margin:0 2px 8px}
.pay-choose-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.pay-choice{display:flex;flex-direction:column;align-items:center;gap:3px;background:#fff;color:#0b2a4a;border:0;border-radius:12px;padding:10px 6px;font:inherit;font-size:15px;cursor:pointer;line-height:1.25}
.pay-choice .pay-ic{font-size:20px}.pay-choice .zelle-z{margin-bottom:1px}
.pay-choice .pay-free-t{color:#166534;font-weight:700}
.pay-steps{margin:2px 0 12px;padding:0;list-style:none;counter-reset:ps}
.pay-steps li{counter-increment:ps;position:relative;padding:0 0 8px 34px;font-size:14.5px;line-height:1.45;color:#1f2a33}
.pay-steps li::before{content:counter(ps);position:absolute;left:0;top:-1px;width:24px;height:24px;border-radius:50%;background:#00a6d6;color:#fff;font-weight:800;font-size:13px;display:grid;place-items:center}
.pay-zelle .pay-steps li::before{background:#6d1ed4}
.pay-zelle .pay-steps{margin-top:12px}

/* Maps & GPS day route (Oct 27 2026) */
.gps-pin{background:#dc2626;color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px}
.gps-pin span{line-height:24px;width:24px;text-align:center;display:block}
.gps-stops .gps-stop{display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid #f1f5f9;cursor:pointer}
.gps-stops .gps-stop.on{background:#eff6ff}
.gps-num{flex:0 0 26px;height:26px;border-radius:50%;background:#dc2626;color:#fff;font-weight:800;font-size:13px;display:flex;align-items:center;justify-content:center}
.gps-title{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gps-leg{padding:4px 12px 4px 48px;font-size:12px;color:#64748b;background:#f8fafc}
.gps-detail{padding:8px 12px 12px 48px;font-size:14px;display:flex;flex-direction:column;gap:3px;background:#eff6ff;border-bottom:1px solid #e2e8f0}
.gps-detail .btn{align-self:flex-start}
.ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* photo folders on a job (Oct 27 2026) */
.pf-bar{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:2px;scrollbar-width:none}.pf-bar::-webkit-scrollbar{display:none}
.pf-bar>span{display:contents}.pf-bar .chip{flex:0 0 auto;white-space:nowrap;max-width:220px}.pf-new{border-style:dashed;color:var(--brand-2)}
.pf-tools{gap:8px;align-items:center;flex-wrap:wrap}.pf-name{margin-right:4px}
.pf-selbar{position:sticky;top:0;z-index:5;background:var(--brand-soft);border-radius:8px;padding:6px 8px;gap:8px}
.photo-grid .ph.pick img{transition:transform .1s}.photo-grid .ph.sel{outline:3px solid var(--brand);outline-offset:-3px}.photo-grid .ph.sel img{transform:scale(.92)}
.photo-grid .ph .tick{position:absolute;top:5px;left:5px;width:22px;height:22px;border-radius:50%;border:2px solid #fff;background:rgba(0,0,0,.35);color:#fff;font-size:13px;font-weight:800;line-height:18px;text-align:center;box-shadow:0 1px 3px rgba(0,0,0,.4)}.photo-grid .ph.sel .tick{background:var(--brand)}
.pf-dest{display:flex;flex-direction:column;gap:8px}.pf-d{text-align:left;min-height:44px;justify-content:flex-start}

/* Pricing autosave indicator (Oct 27 2026) */
.autosaved{font-weight:600;font-size:12px;white-space:nowrap}.autosaved.muted{color:#64748b}.autosaved.ok{color:#15803d}.autosaved.warn{color:#b45309;white-space:normal}.autosaved.err{color:#b91c1c}

/* Bookings button + list (Oct 28 2026): online bookings apart from the bell */
.bk-top{position:relative;color:#6b21a8}
.bk-top.has-new{background:#f3e8ff;animation:bkpulse 1.6s ease-in-out infinite}
@keyframes bkpulse{0%,100%{box-shadow:0 0 0 0 rgba(147,51,234,.45)}50%{box-shadow:0 0 0 6px rgba(147,51,234,0)}}
.bk-drop{min-width:min(340px,calc(100vw - 16px))}
.bk-row.unread{background:#faf5ff}
.bk-new{display:inline-block;background:var(--bad);color:#fff;font-size:10px;font-weight:800;border-radius:6px;padding:1px 5px;margin-right:6px;vertical-align:2px}
.bk-st{font-size:11px;font-weight:700;border-radius:999px;padding:2px 8px;white-space:nowrap;flex-shrink:0}
.bk-st.wait{background:#f3e8ff;color:#6b21a8}.bk-st.ok{background:#dcfce7;color:#166534}.bk-st.gone{background:#f1f5f9;color:#64748b}
