/* The product look: white, dense, one line a car. Deliberately neutral —
   every company's own colour arrives from companies.brand at sign-in. */
:root{
  --dark:#16181D;--dark-2:#23262E;--dark-line:#343844;--on-dark-2:#B3B8C2;
  --brand:#334155;--brand-ink:#FFFFFF;--brand-soft:#EEF1F5;--brand-text:#27323F;
  --ink:#16181D;--ink-2:#4B5160;--line:#DDE1E7;--line-soft:#ECEEF2;--surface:#F4F5F7;--card:#fff;
  --ok:#137A45;--ok-soft:#E3F4EA;--bad:#B42318;--bad-soft:#FEF1F0;--info:#1D4E89;--info-soft:#E7EEF7;
  --s1:4px;--s2:8px;--s3:12px;--s4:16px;--s6:24px;--s8:32px;--r:8px;
}
*{box-sizing:border-box;}
html,body{margin:0;background:#fff;color:var(--ink);font:400 16px/1.45 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased;}
button,input,select,textarea{font:inherit;color:inherit;}
button{cursor:pointer;}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px;}
h1,h2,h3,p{margin:0;}
.hidden{display:none!important;}
/* Parts only the Cards look (cards.css) shows. */
.rt,.bnav{display:none;}
.num{font-variant-numeric:tabular-nums;}
.boot{padding:48px 24px;color:var(--ink-2);text-align:center;}

/* The wordmark: upright and set tight, the way a company signs its name.
   Colour comes from the tenant; the shape stays the same for all of them. */
.brand{display:inline-block;background:var(--brand);color:var(--brand-ink);border-radius:6px;padding:7px 12px;font:700 20px/1 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;letter-spacing:-.3px;}
.brand.small{font-size:16px;padding:5px 9px;border-radius:5px;}

/* gates */
.gate{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:#fff;}
.gate-box{width:100%;max-width:380px;display:flex;flex-direction:column;gap:12px;}
.gate h1{margin-top:20px;font-size:26px;font-weight:700;letter-spacing:-.4px;line-height:1.2;}
.gate p{color:var(--ink-2);font-size:15px;}
.gate span.brand{align-self:flex-start;}
.gate .err{color:var(--bad);}
.gate label{display:flex;flex-direction:column;gap:6px;color:var(--ink-2);font-size:14px;}
.gate input{min-height:52px;padding:0 14px;border:1px solid #9AA0AA;border-radius:var(--r);font-size:18px;background:#fff;}
.gate input:focus{outline:0;border-color:var(--ink);box-shadow:0 0 0 1px var(--ink);}
#pin{font-size:28px;letter-spacing:12px;text-align:center;}
.err{min-height:22px;color:var(--bad);font-size:15px;}
.link{border:0;background:none;color:var(--ink-2);text-decoration:underline;min-height:44px;font-size:14px;}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 18px;border-radius:var(--r);border:1px solid var(--dark);background:var(--dark);color:#fff;font-weight:700;}
.btn.brand{background:var(--brand);border-color:var(--brand);color:var(--brand-ink);font-size:17px;}
.btn.ghost{background:#fff;color:var(--ink);border-color:var(--line);}
.btn.small{min-height:40px;padding:0 12px;font-size:14px;}
.btn:disabled{opacity:.5;cursor:wait;}
.issued{padding:14px;border:2px solid var(--brand);border-radius:var(--r);background:var(--brand-soft);display:flex;flex-direction:column;gap:8px;}
.issued code{display:block;padding:8px;background:#fff;border-radius:6px;font-size:13px;overflow-wrap:anywhere;}
.issued .pin{font-size:30px;font-weight:800;letter-spacing:8px;}

/* header: the Sheet app's, which the team already reads at a glance */
.top{position:sticky;top:0;z-index:20;background:#fff;border-bottom:2px solid #202124;padding-top:env(safe-area-inset-top);}
.bar{display:flex;align-items:center;gap:8px;padding:7px 10px 6px;}
.tobrand{flex:0 0 auto;border:0;background:var(--brand);color:var(--brand-ink);border-radius:5px;padding:5px 8px;font:700 13px/1 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;letter-spacing:-.1px;}
#sheetPick{flex:1;min-width:0;height:34px;font-weight:700;font-size:15px;letter-spacing:.3px;color:#202124;background:#fff;border:1px solid #c4c7cc;border-radius:6px;padding:0 8px;}
.who{font-size:11px;font-weight:700;letter-spacing:.3px;color:#3c4043;max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.when{color:#5f6368;font-size:11px;}
.pend{display:none;font-size:10px;font-weight:700;letter-spacing:.3px;padding:3px 7px;border-radius:4px;background:#fff2cc;color:#7a5c00;white-space:nowrap;}
.pend.on{display:inline-block;}
.pend.stuck{background:#f4c7c3;color:#8c1d18;}
.rf{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:34px;height:32px;padding:0;border:1px solid #c4c7cc;background:#fff;border-radius:5px;line-height:1;color:#202124;}
.rf svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.rf:active{background:#e8eaed;}
.rf:disabled{opacity:.45;}
@media(max-width:430px){.tobrand{font-size:12px;padding:3px 6px 4px;}.when,#logBtn{display:none!important;}.who{max-width:60px;}.bar{gap:5px;padding:6px 6px 5px;}.rf{width:30px;}}

.tally{display:flex;gap:1px;background:#dadce0;border-top:1px solid #dadce0;}
.tally button{flex:1;min-width:0;border:0;border-radius:0;background:#fff;padding:4px 2px 5px;text-align:center;}
.tally button.on{background:#202124;color:#fff;}
.tally button.warn:not(.on){background:#fff2cc;}
.tally span{display:block;font-size:9px;letter-spacing:.6px;color:#5f6368;}
.tally button.on span{color:#fff;}
.tally b{font-size:15px;}
.tabs{display:flex;border-top:1px solid #dadce0;}
.tabs button{flex:1;padding:8px 0;border:0;border-right:1px solid #dadce0;border-radius:0;background:#f1f3f4;color:#5f6368;font-size:12px;font-weight:700;letter-spacing:.4px;}
.tabs button:last-child{border-right:0;}
.tabs button.on{background:#fff;color:#202124;box-shadow:inset 0 -3px 0 #202124;}
.qwrap{position:relative;}
.qclear{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;border-radius:50%;background:#e8eaed;color:#3c4043;font-size:20px;line-height:1;}
.qclear:active{background:#dadce0;}
#q::-webkit-search-cancel-button{display:none;}
.otherhit{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"reg name" "when when";gap:2px 10px;width:100%;padding:10px 12px;border:0;border-bottom:1px solid #eceff1;background:#fff;text-align:left;}
.otherhit:active{background:#f1f3f4;}
.otherhit b{grid-area:reg;font-size:17px;letter-spacing:.3px;}
.otherhit span{grid-area:name;align-self:center;color:#3c4043;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.otherhit i{grid-area:when;font-style:normal;font-size:12px;font-weight:700;letter-spacing:.3px;color:#5f6368;}
#q{display:block;width:100%;padding:8px 46px 8px 10px;font-size:16px;border:0;border-top:1px solid #dadce0;border-radius:0;background:#fff;color:#202124;}
#q:focus{outline:0;background:#f8f9fa;}
.head{display:flex;align-items:center;gap:6px;padding:4px 10px;background:#f1f3f4;border-top:1px solid #dadce0;font-size:9px;font-weight:700;letter-spacing:.7px;color:#5f6368;}
.head .hl{flex:1;}
.head .hr{width:var(--actw);display:flex;gap:3px;}
.head .hr span{flex:1;text-align:center;}
.viewhead{display:flex;align-items:center;gap:10px;padding:6px 10px;border-top:1px solid #dadce0;background:#f1f3f4;}
.viewhead button{border:1px solid #c4c7cc;background:#fff;border-radius:5px;padding:5px 10px;font-size:13px;font-weight:700;color:#3c4043;}
.viewhead strong{font-size:13px;letter-spacing:.3px;}
main{padding:14px 14px 32px;max-width:1200px;margin:0 auto;}
body.on-board main{padding:0 0 40px;max-width:none;}
body:not(.on-board) main .pad{padding:0 0 4px;}
.pad{padding:14px 14px 4px;}

/* shared */
.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:10px;}
.seg{display:inline-flex;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;background:#fff;}
.seg button{min-height:44px;padding:0 14px;border:0;background:none;color:var(--ink-2);font-weight:700;}
.seg button[aria-pressed=true]{background:var(--dark);color:#fff;}
.toolbar input[type=search]{flex:1 1 180px;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:var(--r);background:#fff;font-size:16px;}
.empty{padding:32px 16px;text-align:center;color:var(--ink-2);}
.title{font-size:20px;margin:0 0 10px;}
.note{font-size:14px;color:var(--ink-2);}

/* board rows */
:root{--actw:171px;--actwp:204px;}
@media(max-width:360px){:root{--actw:150px;--actwp:180px;}}
body.picks{--actw:var(--actwp);}
.msg{padding:34px 16px;text-align:center;color:#5f6368;font-size:14px;}
.sec{display:flex;align-items:baseline;gap:7px;padding:7px 10px 6px;background:#e8eaed;border-top:1px solid #c4c7cc;border-bottom:1px solid #c4c7cc;font-size:11px;font-weight:800;letter-spacing:1px;color:#3c4043;}
.sec b{font-size:12px;}
.sec span{margin-left:auto;font-size:10px;font-weight:500;letter-spacing:0;color:#5f6368;}
.sec.hot{background:#1558d6;color:#fff;border-color:#1558d6;}
.sec.hot span{color:#cfe0ff;}
.sec.old{background:#efe3d6;color:#7a3e00;border-color:#dfc9b0;}
.sec.old span{color:#9a6a33;}
.row{display:flex;align-items:center;gap:6px;padding:5px 10px;border-bottom:1px solid #e3e5e8;background:#fff;font-size:14px;line-height:1.35;color:#202124;transition:background-color 600ms;}
.row.called{background:#eaf3fa;}
.row.warn{background:#fce8b2;}
.row.late{background:#f4c7c3;}
.row.done{background:#f3f3f3;}
.row.cmpl{background:#fce8e6;}
.row.ovst{background:#fdf0e6;}
.row.coll{background:#f1f8ee;}
.row.nosh{background:#f3f3f3;}
.row.rtc{background:#fdeceb;}
.row.flash{background:#fff2cc;}
.row.done .reg,.row.done .l2{text-decoration:line-through;color:#80868b;}
.left{flex:1;min-width:0;}
.l1{display:flex;align-items:center;gap:6px;min-width:0;}
.reg{border:0;background:none;padding:0;font-size:16px;font-weight:700;letter-spacing:.4px;color:inherit;text-align:left;white-space:nowrap;}
.dn{font-size:11px;color:#5f6368;white-space:nowrap;}
.code{font-size:10px;font-weight:700;padding:1px 5px;border-radius:3px;border:1px solid rgba(0,0,0,.08);color:#202124;background:#f1f3f4;}
.code.NY{color:#1155cc;background:#cfe2f3;}
.code.CP{color:#a64d79;background:#ead1dc;}
.code.S{color:#b45f06;background:#fff5e6;}
.code.Y{color:#202124;background:#f1f3f4;}
.code.T{color:#38761d;background:#d9ead3;}
select.code.pick{-webkit-appearance:none;appearance:none;height:20px;padding:0 5px;font:700 10px/1 system-ui,sans-serif;letter-spacing:.2px;cursor:pointer;}
select.code.pick.unset{color:#7a5c00;background:#fff2cc;border:1px dashed #d4a72c;}
.pin{margin-left:auto;padding-left:4px;min-width:0;font-size:10px;color:#5f6368;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.l2{margin-top:1px;font-size:12px;color:#5f6368;display:flex;align-items:baseline;cursor:pointer;}
.l2a{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.l2b{flex:0 0 auto;white-space:nowrap;}
/* Tags (CHECK FLIGHT NO., OVERSTAY, £ DUE…) on their own line under the times;
   they wrap there, never under the buttons (28 Sept: £30 DUE was hidden). */
.l2t{flex-wrap:wrap;gap:3px 6px;margin-top:2px;}
.l2t .tag{white-space:nowrap;}
.left{overflow:hidden;}
.l2 .mk{color:#3c4043;font-weight:600;}
.l2 .eta{color:#202124;font-weight:700;}
.l2 .eta.dly{color:#c5221f;}
.l2 .eta.exp{color:#b06000;}
.l2 .tag{color:#1558d6;font-weight:700;}
.l2 .tag.ov{color:#b06000;}
.l2 .tag.ea{color:#fff;background:#1155cc;padding:0 5px;border-radius:4px;}
.l2 .tag.cm{color:#c5221f;}
.l2 .tag.ld{color:#137333;font-size:10px;}
.l2 .tag.ck{color:#fff;background:#b06000;padding:0 5px;border-radius:4px;}
.l2 .tag.cx{color:#fff;background:#c5221f;padding:0 5px;border-radius:4px;}
.l3{margin-top:3px;font-size:11px;font-weight:700;color:#202124;background:#ffe89a;border-radius:3px;padding:2px 6px;display:inline-block;max-width:100%;vertical-align:bottom;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.l3.bang{color:#8c1d18;background:#f4c7c3;}
.l3.early{color:#fff;background:#1155cc;margin-right:4px;}
.acts{display:flex;gap:3px;width:var(--actw);flex:0 0 var(--actw);}
.acts button{flex:1;min-width:0;min-height:44px;padding:2px 0;border:1px solid #c4c7cc;border-radius:5px;background:#fff;color:#5f6368;font-size:9px;font-weight:700;letter-spacing:.4px;display:flex;flex-direction:column;align-items:center;justify-content:center;}
.acts button small{font-size:11px;font-weight:600;letter-spacing:0;margin-top:1px;}
.acts button em.by{font-style:normal;font-size:9px;font-weight:600;letter-spacing:0;max-width:100%;padding:0 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:.85;}
.acts button.lng{font-size:8px;letter-spacing:.1px;}
.acts button:active{background:#e8eaed;}
.acts button:disabled{cursor:default;}
.row.busy .acts button.on{opacity:.72;}
.acts button.on.s,.acts button.on.k{background:#b6d7a8;border-color:#8fbc7a;color:#274e13;}
.acts button.on.c{background:#9fc5e8;border-color:#7aa9d4;color:#0b3d78;}
.acts button.on.x,.acts button.on.n{background:#d9d9d9;border-color:#b7b7b7;color:#3c4043;}
.acts button.on.r{background:#f4c7c3;border-color:#e09b95;color:#8c1d18;}
.acts button.on.p{background:#c9daf8;border-color:#9fb9e8;color:#0b3d78;}
.acts button.on.c.ov{background:#f9cb9c;border-color:#e0aa73;color:#7a3e00;}
.acts button.on.x.cm{background:#f4c7c3;border-color:#e09b95;color:#8c1d18;}

/* car panel and menu: a sheet from the bottom on a phone */
dialog.sheet{width:min(520px,100%);max-width:100%;max-height:92dvh;margin:auto auto 0;overflow:auto;border:0;border-top:3px solid #202124;border-radius:12px 12px 0 0;padding:14px 14px calc(14px + env(safe-area-inset-bottom));color:#202124;}
@media(min-width:700px){dialog.sheet{margin:auto;border-radius:12px;}}
dialog::backdrop{background:rgb(32 33 36 / .5);}
.sheet h2{margin:0;font-size:22px;letter-spacing:.5px;}
.sheet h2 small{font-size:14px;font-weight:600;color:#5f6368;letter-spacing:0;}
.sheet .sub{color:#5f6368;font-size:13px;margin:3px 0 12px;}
.sheet label{display:block;font-size:10px;font-weight:700;letter-spacing:.7px;color:#5f6368;margin:12px 0 4px;}
.sheet input,.sheet textarea{width:100%;padding:11px 12px;font-size:16px;border:1px solid #c4c7cc;border-radius:7px;background:#fff;color:#202124;}
.sheet textarea{min-height:76px;resize:vertical;}
.sheet select{width:100%;height:46px;padding:0 10px;font-size:16px;border:1px solid #c4c7cc;border-radius:7px;background:#fff;color:#202124;}
.when2{display:flex;gap:6px;}
.when2 input{flex:1;min-width:0;}
.clienthead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;}
.clienthead .title{margin:0;}
.clients{display:grid;gap:12px;}
.client{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:14px 14px 2px;}
.client.off{background:#f8f9fa;}
.client.off strong{color:#5f6368;}
.cl1{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.cl1 strong{font-size:17px;}
.swatch{width:16px;height:16px;border-radius:4px;flex:0 0 auto;box-shadow:inset 0 0 0 1px rgb(0 0 0 / .12);}
.cstat{font-size:11px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;padding:3px 7px;border-radius:4px;}
.cstat.on{background:#e6f4ea;color:#137333;}
.cstat.wait{background:#fff2cc;color:#7a5c00;}
.cstat.off{background:#f4c7c3;color:#8c1d18;}
.cmeta{margin-top:4px;font-size:13px;color:var(--ink-2);word-break:break-all;}
.cnums{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px;}
.cnums div{background:#f8f9fa;border-radius:6px;padding:8px 10px;min-width:0;}
.cnums b{display:block;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.cnums span{display:block;font-size:11px;color:var(--ink-2);}
@media(max-width:560px){.cnums{grid-template-columns:repeat(2,minmax(0,1fr));}}
.btn.warn{color:#b42318;}
#clColour{height:46px;padding:4px;flex:0 0 72px;}
.steps{margin:6px 0 12px 18px;padding:0;font-size:14px;line-height:1.5;}
.steps li{margin-bottom:6px;}
.setuplink{display:block;padding:10px;background:#f1f3f4;border-radius:6px;font-size:13px;word-break:break-all;}
/* in-app camera: the sheet becomes a full-screen viewfinder */
dialog.cam{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0;border-radius:0;background:#000;}
dialog.cam #panelBody{height:100%;display:flex;flex-direction:column;padding:0;}
.camview{position:relative;flex:1;min-height:0;background:#000;}
.camview video{width:100%;height:100%;object-fit:contain;display:block;}
.camring{position:absolute;width:64px;height:64px;margin:-32px 0 0 -32px;border:2px solid #fbbc04;border-radius:50%;opacity:0;pointer-events:none;}
.camring.go{animation:camring .8s ease-out;}
@keyframes camring{0%{opacity:1;transform:scale(1.3)}40%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}
.camflash{position:absolute;inset:0;background:#fff;opacity:0;pointer-events:none;}
.camflash.go{animation:camflash .25s ease-out;}
@keyframes camflash{from{opacity:.7}to{opacity:0}}
.camtorch{position:absolute;top:12px;right:12px;height:44px;padding:0 14px;border:2px solid #fff;border-radius:22px;background:rgba(0,0,0,.55);color:#fff;font-weight:700;font-size:14px;letter-spacing:.3px;}
.camtorch.on{background:#fbbc04;border-color:#fbbc04;color:#000;}
.camlens{right:auto;left:12px;}
.camtips{position:absolute;left:10px;right:10px;bottom:10px;padding:10px 40px 10px 12px;border-radius:10px;background:rgba(0,0,0,.6);color:#fff;font-size:13px;line-height:1.35;pointer-events:auto;}
.camtips b{display:block;font-size:13px;letter-spacing:.3px;margin-bottom:2px;color:#fbbc04;}
.camtips ol{margin:0;padding-left:18px;}
.camtipsx{position:absolute;top:4px;right:4px;width:36px;height:36px;border:0;background:none;color:#fff;font-size:18px;}
.camtipsbtn{position:absolute;left:10px;bottom:10px;height:36px;padding:0 12px;border:2px solid #fff;border-radius:18px;background:rgba(0,0,0,.55);color:#fff;font-weight:700;font-size:12px;}
.cambar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:14px 18px calc(14px + env(safe-area-inset-bottom));background:#000;color:#fff;}
.camcount{font-size:14px;font-weight:600;}
.shutter{width:72px;height:72px;border-radius:50%;border:4px solid #fff;background:#fff;box-shadow:inset 0 0 0 3px #000;}
.shutter:active{background:#d0d0d0;}
.shutter:disabled{opacity:.5;}
.camdone{justify-self:end;height:44px;padding:0 18px;border:0;border-radius:7px;background:#fff;color:#000;font-weight:700;font-size:15px;}
dialog.cam{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;padding:0!important;border-radius:0!important;}
.ptthumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:12px;}
.ptthumbs img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px;border:1px solid #dadce0;background:#e8eaed;transition:opacity .2s;}
.ptthumbs img.sent{opacity:.3;}
.ptset{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:48px;padding:0 12px;margin-top:6px;border:1px solid #dadce0;border-radius:7px;background:#fff;color:#202124;text-decoration:none;font-size:14px;}
.ptset i{font-style:normal;font-weight:700;color:#1155cc;}
.ptor{margin:14px 0 -4px;text-align:center;}
.ptsteps{display:flex;gap:8px;margin-top:12px;}
.ptsteps span{flex:1;padding:6px 10px;border-radius:6px;background:#f1f3f4;font-weight:700;font-size:13px;text-align:center;}
.ptsteps span.ok{background:#e6f4ea;color:#137333;}
.ptthumbs img.wait,.ptthumbs img.up{opacity:.4;}
.ptthumbs img.done{border:2px solid #137333;}
.ptthumbs img.fail{border:2px solid #c5221f;opacity:.6;}
.ptpick{display:flex!important;align-items:center;justify-content:center;width:100%;min-height:56px;margin:12px 0 0!important;font-size:16px!important;cursor:pointer;}
.ptgo{display:flex;align-items:center;justify-content:center;width:100%;min-height:56px;margin-top:12px;font-size:16px;text-decoration:none;}
.acc{border:1px solid #dadce0;border-radius:7px;}
.chk{display:flex!important;align-items:flex-start;gap:10px;margin:0!important;padding:9px 10px;border-top:1px solid #eceff1;font-size:14px!important;font-weight:600!important;letter-spacing:0!important;color:#202124!important;}
.chk:first-child{border-top:0;}
.chk input{width:20px!important;height:20px;margin:1px 0 0;flex:0 0 auto;accent-color:#202124;}
.chk small{display:block;font-weight:400;font-size:11px;color:#5f6368;margin-top:1px;}
.rmcar{display:block;margin-top:14px;color:#b42318;}
.rmlist > div{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid #dadce0;}
.rmlist > div > span{flex:1;min-width:0;}
.rmlist small{display:block;color:#5f6368;font-size:12px;margin-top:2px;}
.rmlist button{flex:0 0 auto;height:38px;padding:0 12px;border:1px solid #c4c7cc;border-radius:6px;background:#fff;color:#202124;font-weight:700;font-size:13px;}
.sheet .hint{font-size:11px;color:#5f6368;margin-top:5px;}
.det{margin:12px 0 4px;border:1px solid #dadce0;border-radius:8px;overflow:hidden;}
.det div{display:flex;gap:10px;padding:8px 11px;border-top:1px solid #eceef1;}
.det div:first-child{border-top:0;}
.det b{flex:0 0 88px;font-size:10px;font-weight:800;letter-spacing:.7px;color:#5f6368;padding-top:2px;}
.det span{flex:1;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;}
.det span b{flex:none;font-size:15px;color:#202124;letter-spacing:0;padding:0;}
.det .hint{font-weight:400;}
.pseg{display:flex;gap:6px;}
.pseg button{flex:1;min-width:0;height:46px;border-radius:7px;border:1px solid #c4c7cc;background:#fff;color:#5f6368;font-weight:700;font-size:13px;letter-spacing:.3px;}
.pseg button.on{background:#9fc5e8;border-color:#7aa9d4;color:#0b3d78;}
.pseg button.on.nb{background:#f9cb9c;border-color:#e0aa73;color:#7a3e00;}
.pseg button.on.cm{background:#f4c7c3;border-color:#e09b95;color:#8c1d18;}
.pseg.yard button{font-size:12px;letter-spacing:.2px;}
.pseg button.on.y-NY{background:#cfe2f3;border-color:#a8c5e0;color:#1155cc;}
.pseg button.on.y-CP{background:#ead1dc;border-color:#d4b3c2;color:#a64d79;}
.pseg button.on.y-S{background:#fff5e6;border-color:#e8d5b8;color:#b45f06;}
.pseg button.on.y-Y{background:#e8eaed;border-color:#9aa0a6;color:#202124;}
.pseg button.on.y-T{background:#d9ead3;border-color:#a9c99b;color:#38761d;}
.tel{display:block;text-align:center;text-decoration:none;background:#e8f0fe;color:#1558d6;border:1px solid #b9d1fb;border-radius:8px;padding:12px;font-size:16px;font-weight:700;}
.pbtns{display:flex;gap:8px;margin-top:16px;}
.pbtns button{flex:1;height:48px;border-radius:8px;font-size:14px;font-weight:700;letter-spacing:.4px;border:1px solid #c4c7cc;background:#f1f3f4;color:#3c4043;}
.pbtns button.save{background:#202124;color:#fff;border-color:#202124;}
.pbtns.top{margin:10px 0 12px;}
.pbtns button.undo{background:#fce8e6;color:#8c1d18;border-color:#e09b95;}
.pclose{position:sticky;top:4px;float:right;margin:-6px -6px 0 8px;width:44px;height:44px;border-radius:50%;border:1px solid #c4c7cc;background:#f1f3f4;color:#3c4043;font-size:20px;font-weight:700;line-height:1;cursor:pointer;z-index:2;}
.impundo{border:1px solid #e09b95;background:#fff8f7;border-radius:8px;padding:10px 12px;margin:0 0 14px;}
.impundo div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 0;border-top:1px solid #f1d5d2;}
.impundo div:first-of-type{border-top:0;}
.impundo small{display:block;color:#5f6368;}
.menu-list{display:flex;flex-direction:column;border:1px solid #dadce0;border-radius:8px;overflow:hidden;}
.menu-list button{text-align:left;padding:14px;border:0;border-top:1px solid #eceef1;background:#fff;font-size:16px;font-weight:600;color:#202124;}
.menu-list button:first-child{border-top:0;}
.menu-list button.danger{color:#b42318;}
.sheet label + .menu-list{margin-bottom:4px;}
.menu-list button[aria-current=page]{box-shadow:inset 4px 0 0 var(--brand);background:var(--brand-soft);}
.bad{color:var(--bad);}
.addflight{border:1px dashed #d4a72c;background:#fff2cc;color:#7a5c00;border-radius:4px;padding:0 6px;font:800 10px/18px system-ui,sans-serif;letter-spacing:.4px;cursor:pointer;}
.row > .addflight{flex:0 0 auto;font-size:12px;line-height:34px;padding:0 12px;}
.sec span .btn{min-height:30px;font-size:12px;letter-spacing:0;}
.suggest{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;}
.suggest button{display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:8px 10px;border:1px solid #c4c7cc;border-radius:7px;background:#fff;text-align:left;min-height:56px;}
.suggest button b{font-size:15px;letter-spacing:.3px;}
.suggest button span{font-size:13px;font-weight:700;color:#1558d6;}
.suggest button small{font-size:11px;color:#5f6368;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
.suggest button.cx{opacity:.55;}
.noflight{display:block;width:100%;margin-top:10px;height:44px;border:1px dashed #9aa0a6;border-radius:7px;background:#f8f9fa;color:#3c4043;font-weight:700;font-size:13px;letter-spacing:.4px;}
.suggest button:active{background:#e8f0fe;}
.tally.cats button span{font-weight:700;}
.tally.cats button.same b,.tally.cats button.next b{color:#1155cc;}
.tally.cats button.short b{color:#137333;}
.tally.cats button.long b{color:#7a3e00;}
.tally.cats button.on b{color:#fff;}
.shortpick{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff;padding:2px;}
.shortpick span{font-size:9px;letter-spacing:.6px;color:#5f6368;}
.shortpick select{border:1px solid #c4c7cc;border-radius:4px;background:#fff;font:700 13px/1 system-ui,sans-serif;padding:2px 4px;}
.shortpick.unset{background:#fff2cc;}
.shortpick b{font-size:12px;color:#7a5c00;}
.cat{font-size:9px;font-weight:800;letter-spacing:.4px;padding:1px 5px;border-radius:3px;white-space:nowrap;}
.cat.same,.cat.next{color:#1155cc;background:#cfe2f3;}
.cat.short{color:#137333;background:#d9ead3;}
.cat.long{color:#7a3e00;background:#f9cb9c;}
.cat.was{color:#fff;background:#b45309;}
.sumlist{margin:2px 0 10px;}
.sumrow{display:flex;justify-content:space-between;gap:10px;align-items:baseline;padding:7px 0;border-bottom:1px solid #e3e5e8;font-size:13.5px;}
.sumrow:last-child{border-bottom:0;}
.sumrow b{font-weight:600;}
.sumrow span{color:#5f6368;text-align:right;}
.pay{font-size:10px;letter-spacing:.04em;padding:1px 5px;border-radius:4px;}
.pay.cash{color:#1B7F3B;background:rgba(52,199,89,.14);}
.pay.card{color:#0A66C2;background:rgba(0,122,255,.13);}
.pst{display:grid;grid-template-columns:1fr 5.6em 5.6em;align-items:center;gap:6px;padding:9px 8px;border-bottom:1px solid #eceff1;font-size:14.5px;}
.pst b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pst i{font-style:normal;text-align:right;color:#5f6368;}
.pst i.dn{color:#137333;font-weight:700;}
.pst.head,.pst.tot{background:#e8eaed;border-radius:6px;border-bottom:0;font-weight:700;}
.pst.head i,.pst.tot i{color:#3c4043;font-weight:700;}
.pst.tot{margin-top:2px;}
.pst.tot i.dn{color:#137333;}
.pst4{display:grid;grid-template-columns:1fr 3.4em 3.4em 5.2em;align-items:center;gap:6px;padding:9px 8px;border-bottom:1px solid #eceff1;font-size:14.5px;}
.pst4 b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.pst4 i{font-style:normal;text-align:right;color:#5f6368;}
.pst4 i.dn{color:#137333;font-weight:700;}
.pst4.head,.pst4.tot{background:#e8eaed;border-radius:6px;border-bottom:0;font-weight:700;}
.pst4.head i,.pst4.tot i{color:#3c4043;font-weight:700;}
.pst4.tot{margin:2px 0 10px;}
.pst4.tot i.dn{color:#137333;}
.pst4.sec2{background:#fff2cc;}
.pst4.shift{background:#e8f0fe;}
.pst.sec{grid-template-columns:1fr;margin-top:12px;background:#fff2cc;border-radius:6px;border-bottom:0;}
.field{display:flex;flex-direction:column;gap:6px;margin:10px 0;color:var(--ink-2);font-size:14px;}
.field input,.field select{min-height:48px;padding:0 12px;border:1px solid #9AA0AA;border-radius:var(--r);font-size:16px;background:#fff;color:var(--ink);}
.check{display:flex;align-items:center;gap:10px;min-height:44px;font-size:15px;}
.check input{width:22px;height:22px;}
.section-label{margin:16px 0 8px;font-size:13px;font-weight:700;color:var(--ink-2);text-transform:uppercase;letter-spacing:.4px;}

/* import */
.steps{display:grid;gap:10px;}
@media(min-width:900px){.steps{grid-template-columns:1fr 1fr;}}
.drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:140px;padding:16px;border:2px dashed var(--line);border-radius:var(--r);background:#fff;text-align:center;}
.drop.filled{border-style:solid;border-color:var(--ok);background:var(--ok-soft);}
.drop label{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:var(--r);background:var(--surface);border:1px solid var(--line);font-weight:700;cursor:pointer;}
.drop input{position:absolute;width:1px;height:1px;opacity:0;}
.row-actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0;}
.alert{padding:10px 12px;border-left:4px solid var(--bad);background:var(--bad-soft);color:var(--bad);margin:10px 0;}
.result{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0;}
.result div{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:10px;}
.result strong{display:block;font-size:24px;}
.result span{font-size:13px;color:var(--ink-2);}
.result .bad strong{color:var(--bad);}
table{width:100%;border-collapse:collapse;background:#fff;font-size:14px;}
th,td{padding:8px 10px;text-align:left;border-bottom:1px solid var(--line-soft);white-space:nowrap;}
th{font-size:12px;color:var(--ink-2);background:var(--surface);}
tr.miss td{background:var(--bad-soft);}
td input{width:100px;min-height:36px;padding:0 8px;border:1px solid var(--bad);border-radius:6px;font-size:14px;}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r);}
.inline-selects{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0;}
.inline-selects select{min-height:44px;border:1px solid var(--line);border-radius:8px;padding:0 8px;background:#fff;}

/* lists: staff, activity, flights, summary */
.box{background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;}
.pinbox{display:flex;flex-direction:column;gap:10px;padding:14px;margin-top:14px;max-width:420px;}
.pinbox label{display:flex;flex-direction:column;gap:5px;font-size:13px;color:var(--ink-2);}
.pinbox input{height:46px;padding:0 12px;font-size:20px;letter-spacing:8px;border:1px solid #9AA0AA;border-radius:6px;}
.pinbox input:focus{outline:0;border-color:var(--ink);box-shadow:0 0 0 1px var(--ink);}
.pinbox .btn{align-self:flex-start;}
.rowline{display:flex;align-items:center;gap:12px;padding:12px;border-bottom:1px solid var(--line-soft);}
.rowline:last-child{border-bottom:0;}
.rowline .grow{flex:1;min-width:0;}
.rowline.off{opacity:.55;}
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:14px;}
@media(min-width:700px){.stats{grid-template-columns:repeat(4,1fr);}}
.stat{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:10px;}
.stat span{font-size:13px;color:var(--ink-2);}
.stat strong{display:block;font-size:26px;line-height:1.2;}

.toast{position:fixed;z-index:60;left:50%;bottom:calc(16px + env(safe-area-inset-bottom));transform:translateX(-50%);max-width:calc(100% - 32px);padding:12px 16px;border-radius:var(--r);background:var(--dark);color:#fff;font-size:15px;box-shadow:0 6px 24px rgb(0 0 0 / .25);}
.toast.bad{background:var(--bad);}
@media(min-width:900px){.toast{bottom:24px;}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;}}
.ptnative{display:block!important;margin:10px 0 0!important;font-size:13px!important;font-weight:400!important;letter-spacing:0!important;color:#5f6368!important;text-decoration:underline;cursor:pointer;}

.l2 .tag.due{color:#fff;background:#b42318;padding:0 5px;border-radius:4px;}
.l2 .tag.pd{color:#137333;background:#e6f4ea;padding:0 5px;border-radius:4px;}
/* A PICKS car that came in on a re-import (or marked by hand). */
.l2 .tag.nb{color:#7a3e00;background:#f9cb9c;padding:0 5px;border-radius:4px;font-weight:700;}
.chgbox{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;padding:10px 12px;border-radius:7px;background:#fce8e6;color:#8c1d18;}
.chgbox b{font-size:17px;}
.chgbox span{font-size:13px;}
.chgbox.pd{background:#e6f4ea;color:#137333;}
.chgbox .link{min-height:0;margin-left:auto;}
.chgpay{margin-top:8px;}
.chgpay input{flex:0 0 92px!important;min-width:0;}
.chgpay button{flex:1;min-width:0;height:46px;border:1px solid #c4c7cc;border-radius:7px;background:#fff;color:#202124;font-weight:700;font-size:13px;}
.pst4.owed b,.pst4.owed i{color:#b42318;font-weight:700;}
/* Big boards: the phone skips drawing rows that are off screen, so a tap on a
   400-car night redraws in a blink instead of half a second. */
.row{content-visibility:auto;contain-intrinsic-size:auto 64px;}
/* Weekly reminder to the owner to keep their own copy of the data. */
.nudge{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:space-between;padding:8px 12px;margin:8px 10px;border-left:4px solid #b45309;background:#fef3c7;color:#78350f;font-size:14px;}
.nudge .btn{padding:6px 12px;}
.ptwhy{display:flex;flex-direction:column;gap:8px;margin-top:6px;}
.ptwhy button{min-height:46px;border:1px solid #c4c7cc;border-radius:7px;background:#fff;color:#202124;font-weight:600;font-size:14px;text-align:left;padding:0 14px;}
.hist{margin:4px 0 10px;border:1px solid #dadce0;border-radius:8px;max-height:320px;overflow-y:auto;}
.hist div{display:flex;gap:10px;padding:7px 11px;border-top:1px solid #eceef1;font-size:13px;line-height:1.35;}
.hist div:first-child{border-top:0;}
.hist .hw{flex:0 0 auto;color:#5f6368;white-space:nowrap;}
.hist .hb{min-width:0;overflow-wrap:anywhere;}
.hist .hk{font-size:10px;color:#5f6368;border:1px solid #dadce0;border-radius:3px;padding:0 3px;}
.hist .hv{display:block;color:#3c4043;}

/* Parking Ops: back from a client's app; the Usage panel. */
.homebtn{flex:0 0 auto;border:1px solid #334155;background:#334155;color:#fff;border-radius:8px;font:700 12px/1 inherit;padding:8px 8px;letter-spacing:.02em;}
.clienthead{gap:8px;}
.usehead{margin:16px 0 6px;font-size:15px;}
table.usage{width:100%;border-collapse:collapse;font-size:14px;}
table.usage th{text-align:left;font-weight:500;color:var(--muted,#5b6472);padding:5px 8px 5px 0;vertical-align:top;}
table.usage td{text-align:right;padding:5px 0;font-weight:600;}
table.usage tr+tr{border-top:1px solid #e5e7eb;}
.warnt{color:#b42318;font-weight:600;}
.clienthead .title{margin-right:auto;}
/* Bottom of the menu: this phone's app version, or "New version ready". */
.appver{margin:14px 0 2px;text-align:center;font-size:12px;color:#80868b;}
.appver .link{min-height:32px;font-size:13px;font-weight:700;color:var(--brand-text);text-decoration:underline;}

/* Dashboard (Menu → Dashboard): period chips, tiles, lists */
.dchips{display:flex;gap:7px;margin:4px 0 12px;}
.dchips button{flex:1;padding:9px 6px;border:1px solid var(--line);border-radius:99px;background:var(--card,#fff);color:var(--ink-2);font-size:14px;font-weight:600;}
.dchips button.on{background:var(--brand);border-color:var(--brand);color:var(--brand-ink,#fff);}
.dstats .stat small{display:block;margin-top:2px;font-size:12px;color:var(--ink-2);}
.dstats .stat.warn{border-color:#e09b95;background:var(--bad-bg,#fdeceb);}
.dstats .stat.warn strong{color:var(--bad-tx,#b42318);}
.dlist .rowline .note{font-size:12.5px;}
.dlist .rowline > .num.note{flex:none;width:84px;line-height:1.3;}
.dlist .due{color:var(--bad-tx,#b42318);}

/* Location on PICKS (brand.picks_yard): the row's location button, a select laid over it */
.acts .pyard{position:relative;flex:1;min-width:0;min-height:44px;display:flex;align-items:center;justify-content:center;padding:2px 0;border:1px solid var(--btn-line,#c4c7cc);border-radius:5px;background:var(--btn,#fff);color:var(--btn-ink,#5f6368);font-size:9px;font-weight:700;letter-spacing:.4px;overflow:hidden;}
.acts .pyard.on{background:var(--brand-soft,#eef1f5);border-color:var(--brand,#334155);color:var(--brand-text,#27323f);font-size:13px;}
.acts .pyard select{position:absolute;inset:0;width:100%;height:100%;opacity:0;font-size:16px;cursor:pointer;}
html.pboard .acts .pyard{border-radius:5px;}
html.premium:not(.pboard) .acts .pyard{min-height:52px;border-radius:12px;font-size:12px;}
/* the yard counts under the PICKS numbers, on a line of their own */
.tally.has-yards{flex-wrap:wrap;}
.tally .tyards{display:flex;flex:1 0 100%;gap:1px;border-top:1px solid var(--line,#dadce0);}
.tally .tyards button{flex:1;}
.dstats .stat.wide{grid-column:1/-1;}
.dpark .rowline.late strong{color:var(--bad-tx,#b42318);}
/* number-box icons, ring and mini bars: only Standard with features shows them (stdplus.css) */
.stat .ki,.pring,.mbar{display:none;}

/* PICKS: new booking at the desk (database part 69) */
.deskbtn{position:fixed;z-index:30;right:16px;bottom:calc(20px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:6px;height:50px;padding:0 20px 0 16px;border:0;border-radius:99px;background:var(--brand,#334155);color:var(--brand-ink,#fff);font-size:15px;font-weight:700;box-shadow:0 4px 14px rgb(0 0 0 / .22),0 1px 3px rgb(0 0 0 / .18);}
.deskbtn b{font-size:24px;font-weight:600;line-height:1;margin-top:-2px;}
.deskbtn:active{transform:scale(.97);}
body:has(#bnav:not(.hidden)) .deskbtn{bottom:calc(76px + env(safe-area-inset-bottom));}
dialog[open] ~ * .deskbtn,body:has(dialog[open]) .deskbtn{display:none;}
.docshot{display:flex;align-items:center;justify-content:center;gap:10px;margin:4px 0 6px;padding:18px 12px;border:2px dashed #c4c7cc;border-radius:12px;background:#f8f9fa;font-size:16px;font-weight:700;color:#3c4043;cursor:pointer;}
.docshot .docshot-ico{font-size:24px;}
.docshot.done{border-style:solid;border-color:#8fbc7a;background:#eef7ea;color:#274e13;}
.docbox{display:flex;flex-direction:column;gap:8px;align-items:flex-start;}
.docbox .docimg img{display:block;max-width:100%;max-height:260px;border-radius:10px;border:1px solid var(--line,#dadce0);}
.docbox .docadd{cursor:pointer;}
body:has(.deskbtn) main{padding-bottom:calc(150px + env(safe-area-inset-bottom)) !important;}
.dyard .note b.late{color:var(--bad-tx,#b42318);font-weight:700;}

/* The enterprise heading belongs to Standard with features only. */
.dash-heading{display:none;}
/* Settings → Yard colours (database part 77) */
.ycols{display:grid;gap:8px;margin:10px 0 4px;}
.ycol{display:flex;align-items:center;gap:12px;}
.ycol .code{min-width:52px;text-align:center;font-size:12px;padding:4px 6px;}
.ycol input[type=color]{width:52px;height:34px;padding:2px;border:1px solid #c4c7cc;border-radius:6px;background:#fff;cursor:pointer;}
.ycol input[data-off]{opacity:.45;}

/* Past their return list (dashboard): level chips and the cars. */
.latebox>summary{list-style:none;cursor:pointer;}
.latebox>summary::-webkit-details-marker{display:none;}
.late-levels{display:flex;flex-wrap:wrap;gap:6px;padding:8px 14px;}
.late-lv{display:inline-block;font-size:11px;padding:2px 8px;border-radius:10px;background:#fff1c2;color:#7a5200;white-space:nowrap;}
.late-lv.lv0{background:#fff1c2;color:#7a5200;}.late-lv.lv1{background:#ffd9a8;color:#7a3b00;}.late-lv.lv2{background:#ffc2b8;color:#8a1f0f;}.late-lv.lv3{background:#f5a39b;color:#6b0f06;}

/* Cars on site per day (dashboard): bar per day against capacity. */
.booked{padding:10px 14px 14px;}
.booked-top{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px;color:var(--muted,#5b6472);margin-bottom:8px;}
.booked-row{display:grid;grid-template-columns:92px 1fr 48px 72px 124px;grid-template-areas:"day bar num note flow";align-items:center;gap:0 12px;padding:6px 0;font-size:12px;border-bottom:1px solid #eef1f5;}
.booked-row:last-child{border-bottom:0;}
.booked-row .booked-day{grid-area:day;}.booked-row .booked-bar{grid-area:bar;}.booked-row strong{grid-area:num;}.booked-row small{grid-area:note;}
.booked-flow{grid-area:flow;font-style:normal;font-size:11px;color:var(--muted,#5b6472);white-space:nowrap;text-align:right;}
.booked-bar{position:relative;height:10px;border-radius:6px;background:#e9edf2;overflow:visible;}
.booked-bar i{display:block;height:100%;border-radius:6px;background:var(--ok,#2f8f5b);}
.booked-row.near .booked-bar i{background:var(--warn,#d98a00);}
.booked-row.over .booked-bar i{background:var(--bad,#c0392b);}
.booked-bar u{position:absolute;top:-3px;bottom:-3px;width:2px;background:#16181d;opacity:.55;text-decoration:none;}
.booked-row strong{text-align:right;font-variant-numeric:tabular-nums;}
.booked-row small{color:var(--muted,#5b6472);white-space:nowrap;}
.booked-row.over small{color:var(--bad,#c0392b);font-weight:600;}
@media (max-width:640px){.booked-row{grid-template-columns:64px 1fr 38px 54px;grid-template-areas:"day bar num note" ". flow flow flow";gap:2px 6px;}.booked-flow{text-align:left;}}
.booked>.note{margin:10px 0 0;font-size:11px;}

/* Key check (K beside TO DO / ALL): a tick box per drop, yard tags grey until the key is found. */
.tabs .keybtn{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;padding:0 12px;}
.tabs .keybtn b{font-size:14px;font-weight:800;}
.tabs .keybtn span{font-size:11px;}
.kstrip{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 12px;background:#e3f4ea;border-bottom:1px solid #b9e0c8;font-size:12px;font-weight:700;color:#137A45;}
.kstrip button{min-height:30px;padding:0 10px;border:1px solid #137A45;border-radius:6px;background:#fff;color:#137A45;font-size:12px;font-weight:700;}
.tabs .keybtn.on{background:#137A45;color:#fff;box-shadow:none;}
.kbox{flex:none;width:24px;height:24px;padding:0;border:2px solid #9aa0a6;border-radius:5px;background:#fff;position:relative;}
.kbox.on{background:#137A45;border-color:#137A45;}
.kbox.on::after{content:"";position:absolute;left:6px;top:1px;width:6px;height:12px;border:solid #fff;border-width:0 3px 3px 0;transform:rotate(45deg);}
html body.keymode .code.kgrey,html body.keymode select.code.pick.kgrey{background:#e8eaed!important;color:#9aa0a6!important;border-color:#dadce0!important;}

/* Shared key check: isolated from the normal delivery rows and their actions. */
body.keychecking #colHead,body.keychecking #tally,body.keychecking #tallyFold{display:none!important;}
.kc{border:1px solid var(--line);border-radius:6px;background:var(--card);margin:10px 0 14px;overflow:hidden;}
.kc button,.kc-row button{font:inherit;}
.kc-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;}
.kc-head>div:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;}
.kc-head b{font-size:14px;}
.kc-session,.kc-meta,.kc-person small,.kc-foot{font-size:11px;color:var(--ink-2);}
.kc-head-actions{display:flex;gap:7px;flex-shrink:0;}
.kc-head-actions button{border:1px solid var(--line);border-radius:4px;background:var(--card);padding:7px 10px;font-size:12px;font-weight:600;}
.kc-head-actions .kc-primary{background:var(--ink);color:var(--card);border-color:var(--ink);}
.kc button:disabled,.kc-row button:disabled{cursor:default;opacity:.5;}
.kc-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0 14px 12px;}
.kc-counts .kc-count{display:flex;align-items:center;gap:10px;background:var(--surface);color:var(--ink);border:1px solid transparent;border-radius:4px;padding:9px 12px;text-align:left;}
.kc-counts .kc-count[aria-pressed=true]{border-color:var(--ink);}
.kc-count b{font-size:23px;font-weight:650;line-height:1.1;}
.kc-count span{font-size:12px;}
.kc-counts .kc-found{background:var(--ok-soft);color:var(--ok);}
.kc-counts .kc-unchecked{background:#fff6e5;color:#825b12;}
.kc-counts .kc-missing{background:var(--bad-soft);color:var(--bad);}
.kc-progress{height:3px;background:var(--surface);}
.kc-progress>div{height:100%;background:var(--ok);}
.kc-filters{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;background:var(--surface);padding:9px 14px;font-size:11px;color:var(--ink-2);}
.kc-filters label{display:flex;gap:8px;align-items:center;}
.kc-filters select{font-size:12px;padding:4px 7px;border:1px solid var(--line);border-radius:4px;background:var(--card);}
.kc-filters button{padding:4px 7px;background:var(--card);border:1px solid var(--line);border-radius:4px;font-size:11px;}
.kc-filters button[aria-pressed=true]{border-color:var(--ink);color:var(--ink);}
.kc-shared{margin-left:auto;}
.kc-ready,.kc-completed,.kc-warning{padding:10px 14px;font-size:12px;color:var(--ink-2);}
.kc-completed{background:var(--ok-soft);color:var(--ok);margin:0 0 10px;}
.kc-warning{background:#fff6e5;color:#825b12;margin:0 0 10px;}
.kc-columns,html body .row.kc-row{display:grid;grid-template-columns:60px minmax(120px,1.5fr) 84px minmax(100px,1.2fr) 70px minmax(95px,1fr) minmax(90px,1fr) 112px;align-items:center;gap:12px;}
.kc-columns{padding:9px 12px;border-bottom:1px solid var(--line);font-size:10px;letter-spacing:.4px;color:var(--ink-2);}
.kc-columns>span:last-child{text-align:right;}
html body .row.kc-row{padding:12px;min-height:66px;border:0;border-bottom:1px solid var(--line);margin:0;border-radius:0;background:var(--card);box-shadow:none;}
html body .row.kc-row-unchecked{background:#fffbf2;}
html body .row.kc-row-missing{background:var(--bad-soft);}
.kc-row .kc-time{font-size:14px;font-weight:650;}
.kc-row .kc-car{min-width:0;}
.kc-row .reg{font-size:15px;font-weight:700;letter-spacing:.2px;}
.kc-row .kc-num{font-size:10px;color:var(--ink-2);margin-left:5px;}
.kc-row .kc-meta{overflow-wrap:anywhere;}
.kc-row .code{min-width:0;padding:4px 7px;font-size:11px;}
.kc-row .kc-fl,.kc-row .kc-cu{min-width:0;font-size:13px;}
.kc-row .kc-fl .flno{margin:0 0 0 -4px;padding:1px 4px;border:1px solid transparent;border-radius:4px;background:none;font:inherit;font-weight:650;color:inherit;cursor:pointer;}
.kc-row .kc-fl .flno:hover{border-color:var(--line);border-style:dashed;}
.kc-row .kc-fl .flno.mut,.kc-row .kc-fl .mut{font-weight:500;color:var(--ink-2);}
.kc-row .kc-flcu{display:none;}
.kc-row .kc-name,.kc-row .kc-flcu{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.kc-row .kc-yard select.code.pick{max-width:100%;}
.kc-status{font-size:12px;}
.kc-status:before{content:'○';margin-right:5px;}
.kc-status-found{color:var(--ok);}.kc-status-found:before{content:'✓';}
.kc-status-unchecked{color:#825b12;}.kc-status-missing{color:var(--bad);}.kc-status-missing:before{content:'!';font-weight:700;}
.kc-status-driver{color:var(--ink-2);}.kc-status-driver:before{content:'↗';}
.kc-person{font-size:12px;overflow-wrap:anywhere;}.kc-person small{display:block;}
.kc-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;}
.kc-actions>button:not(.kbox){font-size:11px;background:transparent;border:1px solid var(--line);border-radius:4px;padding:5px 7px;}
.kc-actions .kbox{display:block;flex-shrink:0;min-width:28px;min-height:28px;}
.kc-foot{padding:11px 12px;}
@media(max-width:800px){.kc-columns,html body .row.kc-row{grid-template-columns:52px minmax(105px,1.5fr) minmax(76px,1fr) 60px minmax(80px,1fr) 105px;gap:9px;}.kc-person,.kc-cu,.kc-columns>span:nth-child(4),.kc-columns>span:nth-child(7){display:none;}.kc-row .kc-flcu{display:block;}}
@media(max-width:540px){
 .kc-head{padding:11px 10px;align-items:flex-start;}.kc-head>div:first-child{gap:4px;}.kc-session{width:100%;}.kc-head-actions{gap:5px;}.kc-head-actions button{font-size:11px;padding:7px;min-height:36px;}
 .kc-counts{padding:0 10px 10px;gap:5px;}.kc-counts .kc-count{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:9px 6px;}.kc-count b{font-size:21px;}.kc-count span{font-size:11px;}
 .kc-filters{padding:9px 10px;gap:8px;}.kc-filters select{font-size:16px;max-width:135px;min-height:36px;}.kc-order{display:none;}.kc-shared{font-size:10px;}.kc-columns{display:none;}
 html body .row.kc-row{grid-template-columns:minmax(90px,1fr) 64px 98px;gap:7px;padding:11px 8px;min-height:91px;}
 .kc-car{grid-column:1;grid-row:1;}.kc-time{grid-column:2;grid-row:1;align-self:start;}.kc-yard{grid-column:2;grid-row:1 / 3;margin-top:24px;align-self:start;}.kc-fl{grid-column:1;grid-row:2;display:flex;align-items:baseline;gap:6px;font-size:12px;}.kc-row .kc-fl .flno{margin:0;padding:0;}.kc-fl .kc-flcu{flex:1;}.kc-state{grid-column:1;grid-row:3;}.kc-actions{grid-column:3;grid-row:1 / 4;gap:5px;}
 .kc-row .reg{font-size:14px;}.kc-row .kc-time{font-size:12px;}.kc-actions>button:not(.kbox){padding:4px;min-height:44px;}.kc-actions .kbox{min-width:36px;min-height:44px;}.kc-row .kc-num{display:none;}.kc-status{font-size:11px;}
}

/* A dashboard queue opened on the board */
.queuebar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; margin: 6px 0; background: rgba(0,0,0,.06); border-radius: 6px; font-size: 14px; }
.queuebar button { font: inherit; padding: 4px 10px; cursor: pointer; }

/* Booking import: one heading, Auto import / Manual import tabs, a compact table (rows on a phone). */
.bi{max-width:1120px;}
.bi h3{font-size:17px;font-weight:700;margin:0;}
.bi-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:0 0 12px;}
.bi-tabs button{min-height:44px;padding:0 16px;border:0;border-bottom:3px solid transparent;margin-bottom:-1px;background:none;font-weight:700;color:var(--ink-2);}
.bi-tabs button[aria-selected=true]{color:var(--ink);border-bottom-color:var(--brand);}
.bi-panel{display:grid;grid-template-columns:1fr auto;gap:10px 16px;align-items:center;margin:0 0 18px;}
.bi-body{grid-column:1/-1;display:flex;flex-direction:column;gap:12px;}
.bi-status{display:flex;flex-wrap:wrap;align-items:center;gap:4px 18px;font-size:14px;color:var(--ink-2);}
.bi-status .bi-conn{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:var(--ink);}
.bi-dot{width:10px;height:10px;border-radius:50%;background:#9AA0AA;display:inline-block;}
.bi-conn.ok .bi-dot{background:var(--ok);}
.bi-conn.bad .bi-dot{background:var(--bad);}
.bi-conn.busy .bi-dot{background:var(--info);}
.bi-note{flex-basis:100%;color:var(--bad);}
.bi-act{display:flex;gap:8px;}
.bi-act .btn{min-height:44px;padding:0 18px;font-size:15px;white-space:nowrap;}
.bi-act .btn.ghost{background:#fff;color:var(--dark);}
.bi-act .btn.brand{background:var(--dark);border-color:var(--dark);color:#fff;}
.bi-act .btn[disabled]{opacity:.45;cursor:not-allowed;}
.bi-hint{color:var(--ink-2);font-size:14px;margin:0;}
.bi-counts{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.bi-counts div{display:flex;flex-direction:column;align-items:center;padding:10px 4px;border-left:1px solid var(--line-soft);}
.bi-counts div:first-child{border-left:0;}
.bi-counts b{font-size:26px;line-height:1.1;font-weight:700;}
.bi-counts span{font-size:14px;color:var(--ink-2);}
.bi-counts .warn b{color:#C2570C;}
.bi-warn{padding:10px 12px;border:1px solid #F0D49A;background:#FFF5DD;color:#5E4300;border-radius:8px;font-size:15px;}
.bi-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.bi-chip{min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-weight:600;font-size:14px;}
.bi-chip[aria-pressed=true]{background:var(--dark);border-color:var(--dark);color:#fff;}
.bi-search{flex:1 1 200px;min-width:160px;max-width:320px;margin-left:auto;min-height:40px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:15px;}
.bi-tbl{border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden;}
.bi-th,.bi-hd{display:grid;grid-template-columns:64px 64px minmax(110px,1fr) minmax(90px,1fr) minmax(180px,2.6fr) 92px 18px;gap:0 12px;align-items:center;}
.bi-th{padding:8px 12px;background:var(--surface);border-bottom:1px solid var(--line);font:700 12px/1.2 system-ui,sans-serif;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-2);}
.bi-row{border-top:1px solid var(--line-soft);}
.bi-th + .bi-row{border-top:0;}
.bi-hd{width:100%;min-height:46px;padding:8px 12px;border:0;background:none;text-align:left;font-size:14.5px;}
.bi-hd:hover{background:var(--surface);}
.bi-board{font-weight:700;font-size:13px;letter-spacing:.03em;}
.bi-ref{overflow-wrap:anywhere;}
.bi-reg{font-weight:700;overflow-wrap:anywhere;}
.bi-chg{display:flex;flex-direction:column;gap:2px;}
.bi-chg small,.bi-ex{display:block;color:var(--ink-2);font-size:13px;}
.bi-ex{margin:0;padding:0 12px 10px 152px;}
.bi-pill{display:inline-block;font-style:normal;font-weight:600;font-size:13px;padding:2px 10px;border-radius:6px;background:var(--line-soft);color:var(--ink-2);}
.bi-pill.s-new{background:var(--ok-soft);color:var(--ok);}
.bi-pill.s-changed{background:var(--info-soft);color:var(--info);}
.bi-pill.s-review{background:#FCEBC8;color:#7A4A00;}
.bi-pill.s-invalid{background:var(--bad-soft);color:var(--bad);}
.bi-row.s-review .bi-hd,.bi-row.s-invalid .bi-hd{box-shadow:inset 3px 0 0 #E8A33D;}
.bi-chev::after{content:"›";display:block;color:var(--ink-2);font-size:20px;line-height:1;transition:transform .12s;}
.bi-row.open .bi-chev::after{transform:rotate(90deg);}
.bi-diag{border:1px solid var(--line);border-radius:8px;background:#fff;}
.bi-diag summary{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;padding:0 12px;cursor:pointer;font-weight:600;}
.bi-chk{font-weight:400;font-size:13px;color:var(--ok);}
.bi-chk::after{content:" ✓";}
.bi-chk.off{color:var(--ink-2);}
.bi-chk.off::after{content:"";}
.bi-diagbody{padding:4px 12px 12px;border-top:1px solid var(--line-soft);font-size:12.5px;color:var(--ink-2);overflow-wrap:anywhere;}
.bi-diagbody p{margin:6px 0 0;}
.bi-held{border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:#fff;}
.bi-held h3{margin:0 0 4px;}
.bi-held div > div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 0;border-top:1px solid var(--line-soft);}
.bi-held small{display:block;color:var(--ink-2);}
.bi-recent{margin:6px 0 20px;}
.bi-rh{display:flex;align-items:baseline;justify-content:space-between;margin:0 0 6px;}
.bi-rh .link{min-height:32px;font-size:14px;}
.bi-rlist{border:1px solid var(--line);border-radius:8px;background:#fff;}
.bi-rr{display:grid;grid-template-columns:76px 90px 110px minmax(120px,1fr) minmax(130px,1.2fr) 44px;gap:0 12px;align-items:center;min-height:44px;padding:6px 12px;border-top:1px solid var(--line-soft);font-size:14px;}
.bi-rr:first-child{border-top:0;}
.bi-undo{justify-self:end;align-self:center;font-weight:600;min-height:36px;color:var(--info);}
button.bi-undo{text-decoration:underline;}
span.bi-undo{color:var(--ink-2);}
@media (max-width:720px){
  .bi-panel{display:flex;flex-direction:column;gap:10px;}
  .bi-body{order:1;}
  .bi-act{order:2;position:sticky;bottom:calc(var(--bi-nav,64px) + env(safe-area-inset-bottom,0px));z-index:5;padding:8px 0;background:#fff;border-top:1px solid var(--line);}
  .bi-act .btn{flex:1;}
  .bi-counts b{font-size:22px;}
  .bi-counts span{font-size:12.5px;}
  .bi-th{display:none;}
  .bi-hd{grid-template-columns:62px 72px 1fr 18px;grid-template-areas:"b d st ch" "r r g ch" "c c c ch";gap:2px 10px;padding:10px 12px;}
  .bi-board{grid-area:b;} .bi-date{grid-area:d;color:var(--ink-2);} .bi-st{grid-area:st;justify-self:end;} .bi-chev{grid-area:ch;align-self:center;}
  .bi-ref{grid-area:r;font-size:13px;color:var(--ink-2);} .bi-reg{grid-area:g;justify-self:start;} .bi-chg{grid-area:c;margin-top:2px;}
  .bi-row:not(.open) .bi-more{display:none;}
  .bi-ex{padding:0 12px 10px;}
  .bi-search{max-width:none;flex-basis:100%;margin-left:0;}
  .bi-rr{grid-template-columns:auto 1fr auto;grid-template-areas:"t by ud" "bd bd ud" "sr rs rs";gap:2px 10px;padding:8px 12px;}
  .bi-t{grid-area:t;font-weight:700;} .bi-by{grid-area:by;} .bi-undo{grid-area:ud;} .bi-bd{grid-area:bd;font-weight:600;} .bi-src{grid-area:sr;color:var(--ink-2);} .bi-res{grid-area:rs;}
}

.bi-range{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;font-size:14px;color:var(--ink-2);}
.bi-range label{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:var(--ink);}
.bi-range input[type=date]{min-height:40px;padding:0 8px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font:inherit;}
.bi-range .bi-hint{margin:0;}
.bi-sched{grid-column:1/-1;border:1px solid var(--line);border-radius:6px;background:#fff;}
.bi-sched summary{display:flex;gap:14px;align-items:center;justify-content:space-between;min-height:44px;padding:0 12px;cursor:pointer;font-weight:700;}
.bi-schedbody{display:flex;flex-direction:column;gap:10px;padding:4px 12px 12px;}
.bi-schedbody .bi-hint{margin:0;}
.bi-sw{display:flex;gap:8px;align-items:center;font-weight:700;}
.bi-times{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;}
.bi-time{display:inline-flex;gap:8px;align-items:center;}
.bi-time input[type=time]{min-height:40px;padding:0 8px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font:inherit;}
.bi-sched .btn[disabled]{opacity:.45;cursor:not-allowed;}
