/* MRD Inventory — styles. Tokens and components follow the Claude Design dashboard. */
/* Type scale (2026-11-06): 12 meta · 13 body and tables · 14 emphasis and card titles · 16 section titles · 22 page titles · 28 key
   figures. Weights 400 / 500; 600 only for titles and key figures. Text roles: #0E1726 primary, #3B4758 secondary, #5E6B7D muted.
   Hairlines: #E3E7EC outside, #EEF1F4 inside. Spacing on a 4px grid. Radius: controls 8, cards 12, panels 14, status pills round. */
body{margin:0;background:#F4F6F8;color:#0E1726;font-family:'Geist',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:13px;line-height:1.5;font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}
a{color:#0B7A6B;text-decoration:none}a:hover{color:#075C51}
/* One visible focus ring for everything you can reach with the keyboard (fields draw their own). */
:focus-visible{outline:2px solid #0B7A6B;outline-offset:2px}
main:focus{outline:none}
h1,h2,h3,h4,p{margin:0}
h1,h2,h3,h4{font-weight:600}
b,strong{font-weight:600}
button{font:inherit}
.mono{font-family:'Geist Mono',ui-monospace,monospace;font-size:12px}
/* The asset plate: record and asset IDs (EXG-RTR-0001, batches, deployments, shipments) look like the engraved tag on the
   device, the same everywhere. ui.plate() renders one; an ID link written as <a class="mono" href="#/item/…"> gets it too. */
.plate,a.mono[href^="#/item/"],a.mono[href^="#/batch/"],a.mono[href^="#/deployment/"],a.mono[href^="#/shipment/"]{display:inline-block;max-width:100%;padding:1px 6px;border:1px solid #D5DBE3;border-radius:4px;background:transparent;font-family:'Geist Mono',ui-monospace,monospace;font-size:12px;font-weight:500;line-height:16px;letter-spacing:0;color:#0E1726;vertical-align:baseline;overflow-wrap:anywhere}
a.plate,a.mono[href^="#/item/"],a.mono[href^="#/batch/"],a.mono[href^="#/deployment/"],a.mono[href^="#/shipment/"]{color:#0B7A6B}
a.plate:hover,a.mono[href^="#/item/"]:hover,a.mono[href^="#/batch/"]:hover,a.mono[href^="#/deployment/"]:hover,a.mono[href^="#/shipment/"]:hover{border-color:#0B7A6B;color:#075C51}
.muted{color:#5E6B7D}
.small{font-size:12px}
.strong{font-weight:500}
.nowrap{white-space:nowrap}
.right{text-align:right}
.hide{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* Shell */
.shell{display:flex;flex-wrap:wrap;min-height:100vh;background:#F4F6F8}
.content{flex:999 1 560px;min-width:0;display:flex;flex-direction:column}
.side{flex:0 0 248px;width:248px;min-width:0;max-width:248px;background:#0C1424;padding:16px 12px;display:flex;flex-direction:column;gap:2px;position:sticky;top:0;height:100vh}
/* The menu list scrolls; the logo stays at the top and the signed-in person stays pinned at the bottom. */
.side-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:2px;margin:0 -4px;padding:0 4px}
/* It still scrolls with the wheel, trackpad or touch; only the bar is hidden (owner, 2026-10-25). */
.side-scroll{scrollbar-width:none;-ms-overflow-style:none}
.side-scroll::-webkit-scrollbar{display:none;width:0;height:0}
.side-user{flex:0 0 auto;position:relative;min-width:0}
/* A long list of roles under the name must never widen the sidebar: it is cut with an ellipsis. */
.side-user .me{min-width:0;max-width:100%;overflow:hidden}
.brand{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:4px 12px 16px;color:#fff}
.brand-logo{display:block;width:100%;max-width:190px;height:auto}
.brand-sub{font-size:12px;color:#8D99AC}
.brand:hover{color:#fff}
.brand-mark{width:32px;height:32px;border-radius:8px;background:#0B7A6B;display:flex;align-items:center;justify-content:center;flex:0 0 32px}
.nav{display:flex;align-items:center;gap:8px;min-height:32px;padding:0 12px;border-radius:8px;color:#B3BDCB;font-size:14px}
.nav:hover{background:#152036;color:#fff}
.nav.on{background:#1C2A42;color:#fff;box-shadow:inset 2px 0 0 #2BC4A8}
.nav svg{flex:0 0 16px;width:16px;height:16px}
/* A count in the menu is quiet: a small grey key, not a coloured pill. */
.nav .ct{margin-left:auto;min-width:20px;padding:0 6px;border-radius:6px;background:#1C2A42;color:#D5DCE6;font-size:12px;font-weight:500;line-height:20px;text-align:center}
.nav.on .ct{background:#2A3A56;color:#fff}
/* Section labels: sentence case, closer to their own items (22 above, 8 below with the 2px row gap). */
.sec{font-size:12px;line-height:16px;color:#7F8CA0;padding:20px 12px 6px;font-weight:500}
.side-scroll>.sec:first-child{padding-top:4px}
.me{margin-top:8px;padding:12px 12px 0;display:flex;align-items:center;gap:8px;border-top:1px solid #1C2A42}
.avatar{width:32px;height:32px;border-radius:50%;background:#2BC4A8;color:#04211C;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:500;flex:0 0 32px}
.avatar.sm{width:28px;height:28px;flex-basis:28px;font-size:12px;color:#0E1726}
.mtop{display:none;align-items:center;justify-content:space-between;padding:12px 16px;background:#0C1424;color:#fff}
.top{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 32px;background:#fff;border-bottom:1px solid #E3E7EC;position:sticky;top:0;z-index:20}
.srch{flex:1 1 320px;max-width:560px;display:flex;align-items:center;gap:8px;height:40px;padding:0 12px;border:1px solid #D5DBE3;border-radius:8px;background:#F8FAFB;color:#5E6B7D;font-size:13px}
.srch:focus-within{border-color:#0B7A6B;background:#fff;box-shadow:0 0 0 3px rgba(11,122,107,.12)}
.srch input{flex:1;min-width:0;border:0;background:transparent;font:inherit;color:#0E1726;outline:none;height:100%}
.kbd{margin-left:auto;font-family:'Geist Mono',monospace;font-size:12px;border:1px solid #DCE1E8;border-radius:4px;padding:1px 6px;background:#fff;color:#5E6B7D}
.main{padding:24px 32px 48px;max-width:1400px;width:100%;margin:0 auto;display:flex;flex-direction:column;gap:24px}
.mnav{display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:8px;color:#D5DCE6;font-size:14px}
.mnav:hover,.mnav.on{background:#152036;color:#fff}
.msec{font-size:12px;color:#7F8CA0;padding:12px 12px 4px}

/* Page header */
.ph{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.ph-l{display:flex;flex-direction:column;gap:4px;min-width:0}
.ph h1{font-size:22px;font-weight:600;letter-spacing:-.01em}
.ph-a{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.crumbs{display:flex;gap:8px;align-items:center;font-size:13px;color:#5E6B7D;flex-wrap:wrap}
.crumbs a{color:#5E6B7D}.crumbs a:hover{color:#0B7A6B}

/* Cards */
.card{background:#fff;border:1px solid #E3E7EC;border-radius:12px}
.card-hd{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 16px 12px;flex-wrap:wrap}
.card-hd h2{font-size:14px;font-weight:600}
.card-bd{padding:0 16px 16px}
.card.pad{padding:16px}
.lnk{font-size:13px;font-weight:500}
.grid{display:grid;gap:16px}
.g-auto{grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr))}
.g-kpi{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.split{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}
.split>.wide{flex:3 1 520px;min-width:0}
.split>.narrow{flex:2 1 320px;min-width:0}
.stack{display:flex;flex-direction:column;gap:16px}
.hstack{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 16px;border-radius:8px;border:1px solid #D5DBE3;background:#fff;color:#0E1726;font:inherit;font-size:13px;font-weight:500;cursor:pointer;white-space:nowrap;text-decoration:none}
.btn:hover{background:#F4F6F8;color:#0E1726}
.btn:focus-visible,.chip:focus-visible,.nav:focus-visible,a:focus-visible,button:focus-visible{outline:2px solid #0B7A6B;outline-offset:2px}
.btn.p{background:#0B7A6B;border-color:#0B7A6B;color:#fff}.btn.p:hover{background:#08695C;color:#fff}
.btn.d{background:#fff;border-color:#F1C4C3;color:#A3201F}.btn.d:hover{background:#FDEBEA}
.btn.dp{background:#C42B2A;border-color:#C42B2A;color:#fff}.btn.dp:hover{background:#A3201F}
.btn.ghost{border-color:transparent;background:transparent}.btn.ghost:hover{background:#EEF1F5}
.btn.sm{height:32px;padding:0 12px;font-size:13px;border-radius:8px}
.btn.xs{height:28px;padding:0 8px;font-size:12px;border-radius:6px;gap:4px}
.btn.ic{width:40px;padding:0}
.btn.sm.ic{width:32px}
.btn svg{width:16px;height:16px;flex:0 0 16px}
.btn.xs svg{width:14px;height:14px;flex-basis:14px}
.btn[disabled]{opacity:.5;cursor:not-allowed;pointer-events:none}
.linkbtn{border:0;background:none;padding:0;color:#0B7A6B;cursor:pointer;font:inherit;font-weight:500}
.linkbtn:hover{color:#075C51;text-decoration:underline}

/* Badges & tags */
.b{display:inline-flex;align-items:center;gap:4px;height:20px;padding:0 8px;border-radius:999px;font-size:12px;font-weight:500;white-space:nowrap;background:#EEF1F5;color:#3B4758}
.b::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.b.nodot::before{display:none}
.s-unconf{background:#EEF1F5;color:#3B4758}.s-prep{background:#FFF3DC;color:#8A4B00}.s-ready{background:#E6EEFF;color:#1D4FB8}.s-reserved{background:#F0EAFE;color:#5B32B4}.s-deployed{background:#E1F4EC;color:#0A6648}.s-stock{background:#E3F2F6;color:#0E5E73}.s-maint{background:#FFEDE3;color:#9A3D0B}.s-damaged{background:#FDEBEA;color:#A3201F}.s-transit{background:#E9EDFC;color:#3346A8}.s-returned{background:#F1EEE8;color:#5E554A}.s-retired{background:#EFF0F2;color:#646C79}
.g-prospect{background:#EEF1F5;color:#3B4758}.g-meet{background:#E9EDFC;color:#3346A8}.g-insp{background:#EEF1F5;color:#3B4758}.g-bms{background:#E3F2F6;color:#0E5E73}.g-poc{background:#F0EAFE;color:#5B32B4}.g-study{background:#FFF3DC;color:#8A4B00}.g-cpend{background:#E6EEFF;color:#1D4FB8}.g-contract{background:#E1F4EC;color:#0A6648}.g-ops{background:#0B7A6B;color:#fff}.g-done{background:#EFF0F2;color:#646C79}.g-hold{background:#FDEBEA;color:#A3201F}
.t{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:6px;font-size:12px;font-weight:500;border:1px solid;white-space:nowrap}
.t-poc{color:#5B32B4;border-color:#D7C8FA;background:#FAF7FF}.t-con{color:#0A6648;border-color:#BFE3D3;background:#F4FBF8}.t-rep{color:#8A4B00;border-color:#F3D9A6;background:#FFFBF2}.t-add{color:#1D4FB8;border-color:#C8D8FA;background:#F6F9FF}.t-mute{color:#3B4758;border-color:#DCE1E8;background:#F8FAFB}.t-red{color:#A3201F;border-color:#F1C4C3;background:#FFF7F7}

/* Tables */
.tw{overflow-x:auto}
.tbl{width:100%;border-collapse:collapse;font-size:13px}
/* Compact rows: 36px headings, 44px rows (a second line of detail adds 16px), so 15–20 rows fit on a screen. */
.tbl th{text-align:left;font-weight:500;color:#5E6B7D;font-size:12px;line-height:20px;height:36px;padding:8px 12px;border-bottom:1px solid #E3E7EC;background:#F8FAFB;white-space:nowrap}
.tbl th.sortable{cursor:pointer;user-select:none}
.tbl th.sortable:hover{color:#0E1726}
.tbl th .arr{display:inline-block;margin-left:4px;color:#0B7A6B}
.tbl td{padding:8px 12px;line-height:18px;border-bottom:1px solid #EEF1F4;white-space:nowrap;vertical-align:middle}
.tbl td div.muted,.tbl td .t2{line-height:16px}
/* The row height (a minimum) and the 16px outer edge apply to real table rows only: pages stack their rows into blocks
   below about 700px. */
@media (min-width:701px){.tbl th:first-child,.tbl td:first-child{padding-left:16px}.tbl th:last-child,.tbl td:last-child{padding-right:16px}.tbl td{height:44px}.tbl.dense td{height:36px;padding-top:6px;padding-bottom:6px}}
.tbl th.right,.tbl td.right{text-align:right}
.tbl td.wrap{white-space:normal;min-width:200px}
.tbl tr:hover td{background:#F8FAFB}
.tbl tr.sel td{background:#F1FAF8}
.tbl tr:last-child td{border-bottom:0}
.tbl tr[data-href]{cursor:pointer}
.tbl .chk{width:36px;padding-right:0}
.tbl input[type=checkbox]{width:16px;height:16px;accent-color:#0B7A6B;cursor:pointer;vertical-align:middle}
.tbl-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid #EEF1F4;font-size:12px;color:#5E6B7D;flex-wrap:wrap}
.bulk{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 16px;background:#F1FAF8;border-top:1px solid #CDEFE7;border-bottom:1px solid #CDEFE7;font-size:13px}

/* Filters / toolbar */
.toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 16px 12px}
.toolbar .grow{flex:1 1 240px}
.inp,.sel,.ta{height:40px;border:1px solid #D5DBE3;border-radius:8px;background:#fff;padding:0 12px;font:inherit;font-size:13px;color:#0E1726;width:100%;min-width:0}
.sel{padding-right:32px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235E6B7D' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}
.ta{height:auto;min-height:84px;padding:8px 12px;resize:vertical;line-height:1.45}
.inp:focus,.sel:focus,.ta:focus{outline:none;border-color:#0B7A6B;box-shadow:0 0 0 3px rgba(11,122,107,.12)}
.inp.sm,.sel.sm{height:36px;font-size:13px;border-radius:8px}
.toolbar .sel,.toolbar .inp{width:auto}
.toolbar .sel{min-width:150px}
/* A dropdown you can type in (ui.field type "combo"): looks like a select, lists only what matches. */
.combo{position:relative}
.combo-inp{width:100%;cursor:text}
.combo-list{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 4px);max-height:248px;overflow:auto;background:#fff;border:1px solid #D5DBE3;border-radius:12px;box-shadow:0 10px 28px rgba(14,23,38,.14);padding:4px}
.combo-opt{display:block;width:100%;text-align:left;padding:8px 12px;border:0;border-radius:8px;background:none;font:inherit;font-size:13px;color:#0E1726;cursor:pointer;overflow-wrap:anywhere}
.combo-opt:hover,.combo-opt.on{background:#EEF5F3}
.combo-none{padding:12px;font-size:13px;color:#5E6B7D}
@media (max-width:900px),(pointer:coarse){.combo-opt{padding:12px 12px}.combo-list{max-height:220px}}
.search-inp{position:relative;flex:1 1 240px;min-width:180px}
.search-inp svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#5E6B7D;pointer-events:none}
.search-inp .inp{padding-left:36px;width:100%}
/* Segmented control: 4px inside a 12px radius, so the 8px chips nest exactly. */
.segc{display:flex;gap:2px;padding:4px;background:#E9EDF1;border-radius:12px;flex-wrap:wrap}
.chip{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 12px;border-radius:8px;border:0;background:transparent;font:inherit;font-size:13px;color:#3B4758;cursor:pointer;white-space:nowrap}
.chip.on{background:#fff;color:#0E1726;box-shadow:0 1px 2px rgba(14,23,38,.12)}
.chip .n{font-size:12px;color:#5E6B7D;font-weight:500}

/* Forms */
.form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.form.one{grid-template-columns:minmax(0,1fr)}
.form.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.fld{display:flex;flex-direction:column;gap:8px;min-width:0}
.fld.full{grid-column:1/-1}
.fld>label,.fld>.lbl{font-size:13px;font-weight:500;color:#3B4758}
.fld .req{color:#C42B2A}
.fld .hint{font-size:12px;color:#5E6B7D}
.fld.err .inp,.fld.err .sel,.fld.err .ta{border-color:#C42B2A}
.fld .errmsg{font-size:12px;color:#A3201F}
.form-sec{grid-column:1/-1;font-size:13px;font-weight:500;color:#0E1726;padding-top:8px;border-top:1px solid #EEF1F4;margin-top:4px}
.form-sec:first-child{border-top:0;margin-top:0;padding-top:0}
.check{display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer}
.check input{width:16px;height:16px;accent-color:#0B7A6B}
.actions-row{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}

/* Definition lists */
.dl{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px 20px}
.dl>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.dl dt,.dl .k{font-size:12px;color:#5E6B7D}
.dl dd,.dl .v{margin:0;font-size:13px;font-weight:500;overflow-wrap:anywhere}
.kv{display:flex;flex-direction:column}
.kv>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #EEF1F4;font-size:13px}
.kv>div:last-child{border-bottom:0}
.kv .k{color:#5E6B7D}
.kv .v{font-weight:500;text-align:right;overflow-wrap:anywhere}

/* KPI & bars */
.kpi{padding:16px;display:flex;flex-direction:column;gap:4px;color:#0E1726}
a.kpi:hover{border-color:#B9C2CE;color:#0E1726}
.kpi .n{font-size:28px;font-weight:600;letter-spacing:-.01em;line-height:36px}
.kpi-l{font-size:13px;color:#5E6B7D}
.kpi-s{font-size:12px;color:#5E6B7D}
.seg{display:flex;gap:2px;height:8px;border-radius:4px;overflow:hidden;background:#F1F4F7}
.seg span{display:block;height:100%}
.sw{width:8px;height:8px;border-radius:2px;display:inline-block;flex:0 0 8px}
.legend{display:flex;align-items:center;gap:8px}
.bar{height:10px;background:#F1F4F7;border-radius:0 4px 4px 0}
.bar>span{display:block;height:10px;background:#0E8A78;border-radius:0 4px 4px 0}

/* Rows */
.row{display:flex;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid #EEF1F4;color:#0E1726}
a.row:hover,button.row:hover{background:#F8FAFB;color:#0E1726}
button.row{width:100%;border-left:0;border-right:0;border-bottom:0;background:#fff;text-align:left;cursor:pointer;font:inherit}
.row .grow{flex:1;min-width:0}
.row .t1{display:block;font-weight:500;font-size:13px}
.row .t2{display:block;font-size:12px;color:#5E6B7D}
.ico-box{width:36px;height:36px;border-radius:8px;background:#F1F4F7;display:flex;align-items:center;justify-content:center;color:#3B4758;flex:0 0 36px}
.ico-box svg{width:18px;height:18px}

/* Tabs */
.tabs{display:flex;gap:4px;border-bottom:1px solid #E3E7EC;overflow-x:auto}
.tab{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 12px;border:0;background:none;border-bottom:2px solid transparent;margin-bottom:-1px;font:inherit;font-size:13px;font-weight:500;color:#5E6B7D;cursor:pointer;white-space:nowrap}
.tab:hover{color:#0E1726}
.tab.on{color:#0E1726;border-bottom-color:#0B7A6B}
.tab .n{font-size:12px;background:#EEF1F5;color:#3B4758;border-radius:6px;padding:0 8px;line-height:18px}

/* Stepper (facility stages) */
.stepper{display:flex;gap:0;overflow-x:auto;padding-bottom:4px}
.step{flex:1 0 110px;display:flex;flex-direction:column;gap:8px;min-width:110px}
.step .ln{display:flex;align-items:center}
.step .dt{width:14px;height:14px;border-radius:50%;background:#fff;border:2px solid #D5DBE3;flex:0 0 14px}
.step .bar2{flex:1;height:2px;background:#E3E7EC}
.step.done .dt{background:#0B7A6B;border-color:#0B7A6B}
.step.done .bar2{background:#0B7A6B}
.step.cur .dt{background:#fff;border-color:#0B7A6B;box-shadow:0 0 0 4px rgba(11,122,107,.15)}
.step .lb{font-size:12px;color:#5E6B7D;padding-right:8px;line-height:1.25}
.step.cur .lb{color:#0E1726;font-weight:500}

/* Timeline */
.tl{display:flex;flex-direction:column}
.tl-i{display:flex;gap:12px;padding:8px 0;position:relative}
.tl-i .avatar{width:28px;height:28px;flex-basis:28px;font-size:12px;color:#0E1726}
.tl-i .tx{font-size:13px;line-height:1.4;min-width:0}
.tl-i .tx .w{display:block;font-size:12px;color:#5E6B7D}

/* Kanban */
.kan{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;align-items:start}
.kan-col{background:#EEF1F5;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:8px;min-height:120px}
.kan-hd{display:flex;justify-content:space-between;align-items:center;padding:4px 6px 6px;font-size:13px;font-weight:500}
.kan-card{background:#fff;border:1px solid #E3E7EC;border-radius:8px;padding:12px;display:flex;flex-direction:column;gap:8px}
.kan-card:hover{border-color:#B9C2CE}

/* Alerts / banners */
.note{display:flex;align-items:flex-start;gap:12px;padding:12px 16px;border-radius:8px;font-size:13px;border:1px solid}
.note svg{flex:0 0 18px;margin-top:1px}
.note.warn{background:#FFF8EB;border-color:#F3D9A6;color:#6B3D00}
.note.info{background:#F3F7FF;border-color:#C8D8FA;color:#1D3E80}
.note.ok{background:#F1FAF6;border-color:#BFE3D3;color:#0A5038}
.note.err{background:#FFF5F5;border-color:#F1C4C3;color:#7A1F1E}
.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:40px 20px;color:#5E6B7D}
.empty .ico-box{width:44px;height:44px;flex-basis:44px;border-radius:10px}
.empty h3{font-size:14px;font-weight:600;color:#0E1726}

/* Modal */
.modal-wrap{position:fixed;inset:0;z-index:100;display:flex;align-items:flex-start;justify-content:center;padding:6vh 16px 16px;background:rgba(14,23,38,.45);overflow-y:auto}
.modal{background:#fff;border-radius:14px;box-shadow:0 24px 60px rgba(14,23,38,.25);width:100%;max-width:560px;display:flex;flex-direction:column;max-height:none}
.modal.lg{max-width:820px}
.modal.sm{max-width:420px}
.modal-hd{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:16px 20px 12px}
.modal-hd h2{font-size:16px;font-weight:600}
.modal-hd p{font-size:13px;color:#5E6B7D;margin-top:2px}
.modal-bd{padding:8px 20px 20px}
.modal-ft{display:flex;justify-content:flex-end;gap:8px;padding:16px 20px;border-top:1px solid #EEF1F4;flex-wrap:wrap}
.x{width:32px;height:32px;border:0;border-radius:8px;background:transparent;color:#5E6B7D;cursor:pointer;display:flex;align-items:center;justify-content:center;flex:0 0 32px}
.x:hover{background:#EEF1F5;color:#0E1726}

/* Toast */
.toasts{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:200;display:flex;flex-direction:column;gap:8px;align-items:center;width:max-content;max-width:calc(100vw - 32px)}
/* A message never blocks the button under it (a tall dialog's Send sat under two messages, QA 2026-11-06); one with its own
   button (Undo) stays clickable. */
.toasts{pointer-events:none}.toast{pointer-events:auto}.toast:not(:has(button,a)){pointer-events:none}
/* While a dialog is open, messages show at the top, away from its buttons (as on phones). */
body:has(.modal) .toasts{top:12px;bottom:auto}
.toast{display:flex;align-items:center;gap:12px;padding:12px 12px 12px 16px;border-radius:12px;background:#0C1424;color:#fff;font-size:13px;box-shadow:0 12px 32px rgba(14,23,38,.3)}
.toast.ok{background:#0A5A4E}
.toast.err{background:#7A1F1E}
.toast button{height:28px;padding:0 12px;border:1px solid rgba(255,255,255,.4);border-radius:6px;background:transparent;color:#fff;font:inherit;font-size:12px;cursor:pointer}

/* Popover (notifications) */
.pop{position:absolute;right:0;top:calc(100% + 8px);z-index:41;width:360px;max-width:calc(100vw - 32px);background:#fff;border:1px solid #DCE1E8;border-radius:12px;box-shadow:0 16px 40px rgba(14,23,38,.18);overflow:hidden;text-align:left}

/* Label print */
.labels{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
.label{border:1px dashed #B9C2CE;border-radius:8px;padding:8px 12px;display:flex;gap:8px;align-items:center;font-size:12px}
.qr{width:56px;height:56px;flex:0 0 56px;display:grid;grid-template-columns:repeat(9,1fr);background:#fff}
.qr i{display:block}
.qr i.on{background:#0E1726}

/* Sign-in (shared mode) */
.login{min-height:100vh;display:flex;background:#F4F6F8}
.login-side{flex:0 0 42%;max-width:520px;background:#0C1424;color:#fff;padding:40px 44px;display:flex;flex-direction:column;justify-content:space-between;gap:32px}
.login-logo{width:220px;max-width:70%;height:auto}
.login-pitch h2{font-size:28px;font-weight:600;letter-spacing:-.01em;margin-bottom:8px}
.login-pitch p{color:#B3BDCB;font-size:16px;line-height:1.5;max-width:340px}
.login-pitch ul{list-style:none;margin:24px 0 0;padding:0;display:flex;flex-direction:column;gap:12px}
.login-pitch li{display:flex;align-items:center;gap:8px;color:#D5DCE6;font-size:14px}
.login-pitch li svg{flex:0 0 16px;color:#2BC4A8}
.login-foot{color:#7F8CA0;font-size:12px}
.login-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:32px 20px}
.login-card{width:100%;max-width:400px;background:#fff;border:1px solid #E3E7EC;border-radius:14px;padding:32px 28px;display:flex;flex-direction:column;align-items:stretch;gap:16px;text-align:center;box-shadow:0 10px 30px rgba(14,23,38,.06)}
.login-card h1{font-size:22px;font-weight:600;letter-spacing:-.01em}
.login-mark{align-self:center;border-radius:14px}
.login-google{min-height:44px;display:flex;justify-content:center;align-items:center}
.login-dev{display:flex;gap:8px}
.login-dev .inp{flex:1 1 auto;min-width:0}
.login-busy{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;color:#3B4758;font-size:14px}
.login-privacy{font-size:12px;color:#5E6B7D}
.login .note{text-align:left}
.spinner{width:18px;height:18px;border-radius:50%;border:2px solid #D5DBE3;border-top-color:#0B7A6B;animation:spin .8s linear infinite;flex:0 0 18px}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spinner{animation-duration:2.4s}}
@media (max-width:820px){
  .login{flex-direction:column}
  .login-side{flex:0 0 auto;max-width:none;padding:24px 20px;gap:0;flex-direction:row;align-items:center;justify-content:center}
  .login-logo{width:170px}
  .login-pitch,.login-foot{display:none}
  .login-main{justify-content:flex-start;padding:28px 16px 32px}
  .login-card{padding:24px 20px}
}

@media (max-width:900px){
  .side{display:none}.mtop{display:flex}.main{padding:20px 16px 40px}.top{padding:12px 16px;position:static}
  /* Phone top bar: search and bell share the first row, status badges sit under them. */
  .top{gap:8px 8px}
  .top .srch{order:1;flex:1 1 calc(100% - 60px);min-width:0;max-width:none}
  .top .top-bell{order:2}
  .top .top-gap{display:none}
  .top > .b{order:3}
  .top .kbd{display:none}
  /* Comfortable tap targets on touch screens. */
  .btn.sm,.btn.xs,.chip,.tab{min-height:36px}
  .btn.xs{padding:0 12px}
  .inp.sm,.sel.sm{height:40px}
  .x{width:36px;height:36px;flex-basis:36px}
  .linkbtn{min-height:36px;display:inline-flex;align-items:center}
  .btn.sm.ic{width:36px}
  .check{min-height:36px}
  .tbl .chk{width:44px}.tbl .chk input{width:20px;height:20px}
  /* 16px text in fields stops iPhones zooming the page when a field is tapped. */
  .inp,.sel,.ta{font-size:16px}
  /* An empty table keeps its "nothing here" message in view while the headings scroll sideways. */
  .main .tw .empty{position:sticky;left:0;width:calc(100vw - 62px);max-width:100%;box-sizing:border-box}
  /* Messages appear at the top so they never cover a dialog's buttons. */
  .toasts{top:12px;bottom:auto}
  .form,.form.three{grid-template-columns:minmax(0,1fr)}
  .ph h1{font-size:22px}
  .dl{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px 16px}
  .modal-wrap{padding:16px 12px}
}
/* Touch devices of any width get the same comfortable tap targets. */
@media (pointer:coarse){
  .btn.sm,.btn.xs,.chip,.tab{min-height:36px}
  .btn.xs{padding:0 12px}
  .inp.sm,.sel.sm{height:40px}
  .x{width:36px;height:36px;flex-basis:36px}
  .btn.sm.ic{width:36px}
  .check{min-height:36px}
  .tbl .chk{width:44px}.tbl .chk input{width:20px;height:20px}
  .inp,.sel,.ta{font-size:16px}
}
@media print{
  .side,.top,.mtop,.toasts,.no-print{display:none!important}
  .main{padding:0;max-width:none}
  body,.shell{background:#fff}
  .card{border-color:#ccc}
}

/* Buttons and links the person's roles do not let them use are hidden after every render (app.js hideUnusable). */
.perm-hide{display:none!important}
/* "A new version of the app is ready" banner (app.js). */
.app-update{position:fixed;left:16px;bottom:16px;z-index:150;display:flex;align-items:center;gap:8px;max-width:min(440px,calc(100vw - 32px));padding:8px 12px 8px 16px;border-radius:12px;background:#0C1424;color:#fff;font-size:13px;box-shadow:0 12px 32px rgba(14,23,38,.3)}
.app-update-t{display:flex;align-items:center;gap:8px;flex:1;min-width:0}
.app-update-t svg{flex:0 0 auto;color:#2BC4A8}
.app-update .x{color:#fff;background:transparent;border-color:rgba(255,255,255,.3)}
@media (max-width:900px){.app-update{left:10px;right:10px;bottom:10px;max-width:none}}
