:root{color-scheme:light;--ink:#182a25;--muted:#51645c;--line:#dee7e2;--green:#17664f;--dark:#123a32;--paper:#fff;--wash:#f4f7f5;--mint:#e5f2ec;font-family:"Segoe UI","Microsoft YaHei",system-ui,sans-serif}
.account-page{min-height:100vh;background:#fff}
.account-page .account-main{width:min(100%,420px);margin:0 auto;padding:clamp(32px,10vh,104px) 22px 36px}
.account-brand{display:flex;align-items:center;gap:10px;font-size:17px;margin-bottom:22px}
.account-main h1{font-size:25px;line-height:1.2;margin-bottom:18px}
.account-form{display:grid;gap:13px}
.account-form label{display:grid;gap:5px;font-weight:600}
.account-form input:not([type=hidden]){width:100%;min-height:42px;padding:9px 10px;border:1px solid #b4c5bc;border-radius:6px;color:var(--ink)}
.account-form .primary{justify-content:center;min-height:42px;margin-top:3px}
.account-error{margin:0 0 12px;padding:8px 10px;border-left:3px solid #a74326;color:#7e301b;background:#fff5ef}
.account-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:9px;margin-top:17px}
.account-footer a,.account-link{color:var(--green);font-weight:650}
.account-link{display:inline-flex;align-items:center;gap:5px;text-decoration:none}
.account-link[hidden]{display:none}
.account-link svg{width:16px;height:16px;flex:none}
.account-link:focus-visible,.account-footer a:focus-visible{outline:2px solid #168265;outline-offset:3px}
.account-page .staff-main{width:min(100%,1000px)}
.account-nav{margin-bottom:18px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.account-nav a{color:var(--green);font-weight:700}
.account-notice{padding:8px 10px;margin:0 0 14px;background:var(--mint);border-left:3px solid var(--green)}
.staff-create{grid-template-columns:minmax(0,1fr) auto;align-items:end}
.staff-create .primary{white-space:nowrap}
.staff-list{list-style:none;padding:0;margin:18px 0 0;border-top:1px solid var(--line)}
.staff-row{display:grid;grid-template-columns:minmax(110px,.7fr) minmax(0,2.4fr) auto;align-items:center;gap:8px 16px;padding:12px 0;border-bottom:1px solid var(--line)}
.staff-identity{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.staff-row span,.staff-empty,.staff-credentials dt{color:var(--muted);font-size:13px}
.staff-row form{display:flex;flex-wrap:wrap;gap:6px}
.staff-metrics,.staff-totals{display:grid;gap:8px 16px;margin:0;font-variant-numeric:tabular-nums}
.staff-metrics{grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr) minmax(0,1fr)}
.staff-totals{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px 12px;margin-bottom:15px;background:var(--wash);border-block:1px solid var(--line)}
.staff-metrics dt,.staff-totals dt{font-size:12px;color:var(--muted)}
.staff-metrics dd,.staff-totals dd{margin:4px 0 0;font-weight:650;overflow-wrap:anywhere}
.staff-totals dd{font-size:20px}
.staff-history{grid-column:2 / -1}
.staff-history summary{cursor:pointer;color:var(--green);width:fit-content;padding:4px 0}
.staff-history ol{list-style:none;padding:0;margin:5px 0 0}
.staff-history li{display:flex;flex-wrap:wrap;gap:4px 14px;border-top:1px solid var(--line);padding:5px 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
@media(max-width:760px){
  .staff-row{grid-template-columns:minmax(0,1fr) auto}
  .staff-metrics,.staff-history{grid-column:1 / -1}
  .staff-metrics{grid-row:2}
  .staff-row form{justify-content:end}
}
@media(max-width:380px){.staff-metrics{grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr)}}
.staff-empty{margin:18px 0}
.staff-credentials{display:grid;gap:5px}
.staff-credentials dd{margin:0 0 10px;overflow-wrap:anywhere;font-weight:650}
@media(max-width:360px){.staff-create{grid-template-columns:1fr}}
[data-lookup-only] #monitorView,[data-lookup-only] #home,[data-lookup-only] #mobileHome,[data-lookup-only] #topAlerts{display:none}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--wash);font-size:14px}button,input,textarea,select{font:inherit}button,select{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #168265;outline-offset:3px}button{color:inherit}button svg,label svg,.location svg,.pin svg{width:17px;height:17px;flex:none}small{display:block}h1,h2,p{margin:0}button:disabled{opacity:.55;cursor:not-allowed}
.layout{display:grid;grid-template-columns:234px minmax(0,1fr);min-height:100vh}.side{position:sticky;top:0;display:flex;flex-direction:column;height:100vh;background:#fff;border-right:1px solid var(--line);padding:24px 17px}.brand{display:flex;align-items:center;gap:11px;padding:0 6px}.brand strong{font-size:17px}.brand small,.side-foot small{color:var(--muted);margin-top:3px;font-size:12px}.side nav{margin-top:40px}.nav-caption{color:var(--muted);font-size:11px;text-transform:uppercase;font-weight:700;margin:0 10px 12px}.nav-button{display:flex;width:100%;align-items:center;gap:10px;background:transparent;border:0;padding:11px 10px;margin-bottom:5px;text-align:left;border-radius:7px;font-weight:600}.nav-button:hover,.icon-button:hover{background:var(--wash)}.nav-button.selected{background:var(--mint);color:#14543f}.nav-button .counter{margin-left:auto}.counter{display:inline-grid;place-items:center;min-width:20px;min-height:20px;border-radius:20px;background:#fae6d9;color:#823a10;padding:1px 5px;font-size:11px;font-weight:700}.counter:empty{display:none}.side-foot{display:flex;align-items:center;gap:9px;border-top:1px solid var(--line);padding:16px 3px 0;margin-top:auto}.pin,.delivery-icon{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:7px;background:var(--mint);color:var(--green)}
.top{min-height:70px;border-bottom:1px solid var(--line);background:#fff;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 34px}.location,.top-actions,.lang{display:flex;align-items:center;gap:10px}.location>span{color:var(--muted)}.location svg{width:13px}.lang{gap:5px}.lang select{border:0;background:transparent;color:var(--ink);padding:6px 2px}.avatar{display:grid;place-items:center;width:33px;height:33px;border-radius:50%;background:var(--mint);color:var(--dark);font-size:11px;font-weight:750}.icon-button{display:grid;place-items:center;position:relative;width:36px;height:36px;border:1px solid var(--line);border-radius:6px;background:#fff}.bell .counter{position:absolute;right:-6px;top:-7px}.top-actions{gap:13px}
main{max-width:1400px;padding:33px 34px 42px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:23px}.eyebrow{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:750;color:var(--green);text-transform:uppercase;margin-bottom:9px}.dot{width:7px;height:7px;border-radius:50%;background:#208260}.heading h1{font-size:32px;line-height:1.14}.subtitle{margin-top:9px;color:var(--muted)}.primary,.outline{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 13px;min-height:39px;border-radius:6px;font-weight:650;line-height:1.25}.primary{border:1px solid var(--green);background:var(--green);color:white}.primary:hover{background:#12533f}.outline{border:1px solid #bfd4cb;background:white}.outline:hover{background:#f8fbf9}.heading .primary{flex:none}
.summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:8px;background:white;margin-bottom:17px}.stat{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:10px;text-align:left;background:none;border:0;padding:16px 19px}.stat:hover{background:#f6faf7}.stat+.stat{border-left:1px solid var(--line)}.stat-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:7px;background:#edf2ee;color:#426456}.stat-icon svg{width:18px;height:18px}.stat.arrived .stat-icon{background:#f9ebda;color:#8c4d0f}.stat.completed .stat-icon{background:var(--mint);color:var(--green)}.stat strong{display:block;font-size:23px;line-height:1;font-variant-numeric:tabular-nums}.stat small{font-size:12px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}
.delivery{display:flex;align-items:center;gap:10px;padding:11px 14px;border:1px solid #cfdfd6;border-radius:7px;background:#edf5ef;margin-bottom:24px}.delivery small{color:var(--muted);margin-top:3px}.delivery .outline{margin-left:auto;flex:none;min-height:35px;font-size:12px}.records-head{display:flex;align-items:center;gap:12px;margin-bottom:10px}.records-head h2{font-size:19px}.sample{color:var(--muted);font-size:11px;border-left:1px solid var(--line);padding-left:12px}.filters{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:11px}.tabs{display:flex;gap:4px;flex-wrap:wrap}.tabs button{border:0;border-radius:6px;background:transparent;color:var(--muted);font-weight:650;padding:7px 9px;min-height:34px}.tabs button[aria-pressed=true]{color:#174d3e;background:#dfece5}.tabs button:hover{color:var(--dark);background:#e5eee8}.search{display:flex;align-items:center;gap:7px;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:6px;padding:0 9px;width:min(100%,245px)}.search input{background:transparent;border:0;padding:8px 0;width:100%;min-width:0;color:var(--ink)}
.table-wrap{border:1px solid var(--line);border-radius:7px;background:white;overflow:hidden}table{border-collapse:collapse;width:100%;table-layout:fixed}th,td{text-align:left;padding:11px 12px;overflow-wrap:anywhere}th{font-size:12px;color:var(--muted);font-weight:650;background:#f9fbfa}th:nth-child(1){width:23%}th:nth-child(2){width:27%}th:nth-child(3){width:20%}th:nth-child(4){width:18%}th:last-child{width:12%}td{border-top:1px solid var(--line)}.right{text-align:right}td:first-child{border-left:3px solid transparent}tr.is-arrived td:first-child{border-left-color:#cf803b}tr.is-arrived{background:#fffcf7}.number{font-weight:700;font-variant-numeric:tabular-nums}.child,.date{color:var(--muted);font-size:12px;margin-top:3px}.tag{display:inline-flex;align-items:baseline;gap:5px;border-radius:4px;padding:3px 6px;background:#ebf0ed;color:#486257;font-size:12px;font-weight:650}.tag::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}.tag.arrived{background:#faeadb;color:#833d10}.tag.completed{background:var(--mint);color:#17624b}.row-actions{display:flex;justify-content:flex-end;gap:5px;flex-wrap:wrap}.row-actions .icon-button{width:30px;height:30px}.row-actions .icon-button svg{width:15px;height:15px}.table-foot{display:flex;justify-content:space-between;gap:8px;color:var(--muted);padding:11px 1px;font-size:12px}.empty{text-align:center;padding:25px;color:var(--muted)}
dialog{border:1px solid var(--line);border-radius:8px;width:min(100% - 28px,498px);max-height:calc(100% - 28px);overflow:auto;color:var(--ink);padding:0;box-shadow:0 15px 60px #123a3233}dialog::backdrop{background:#10251e70}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding:15px 17px}.modal-head h2{font-size:18px}.modal-body{display:grid;gap:12px;padding:17px}.modal-body label{display:grid;gap:5px;font-weight:650}.modal-body textarea{resize:vertical;min-height:62px;width:100%;border:1px solid #bdcfc5;border-radius:6px;padding:9px;color:var(--ink);font-weight:400}.modal-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.alert-list{display:grid;gap:0}.alert-item{display:flex;align-items:center;gap:9px;border-bottom:1px solid var(--line);padding:11px 0}.alert-item button{border:0;background:transparent;text-align:left;flex:1;overflow-wrap:anywhere}.alert-item button small{color:var(--muted);margin-top:3px}.form-message{min-height:20px;color:var(--muted)}#feedback{position:fixed;z-index:2;bottom:18px;right:18px;max-width:calc(100% - 36px);background:var(--dark);color:white;padding:10px 15px;border-radius:6px;box-shadow:0 4px 12px #173c3433}
@media(max-width:1000px){.layout{grid-template-columns:186px minmax(0,1fr)}main{padding-inline:21px}.top{padding-inline:21px}th,td{padding-inline:8px}th:last-child{width:16%}th:nth-child(2){width:23%}}
@media(max-width:760px){.layout{display:block}.side{position:static;height:auto;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:10px;padding:10px 13px;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:0}.brand img{width:34px;height:34px}.brand small,.side-foot,.nav-caption,.side nav,.location>span,.location svg{display:none}.top{min-height:47px;padding-inline:14px}.avatar{display:none}main{padding:21px 14px}.heading h1{font-size:26px}.heading{align-items:flex-start;gap:10px}.stat{padding:11px 8px;gap:5px;grid-template-columns:1fr}.stat-icon{width:28px;height:28px}.stat strong{font-size:20px}.stat small{font-size:11px}.delivery{margin-bottom:17px}.filters{flex-wrap:wrap}.search{width:100%}.table-wrap{overflow:visible}.table-wrap table,.table-wrap tbody{display:block}.table-wrap thead{position:absolute;overflow:hidden;clip-path:inset(50%);width:1px;height:1px}.table-wrap tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 9px;padding:10px;border-top:1px solid var(--line)}.table-wrap tr:first-child{border-top:0}.table-wrap tr.is-arrived{border-left:3px solid #cf803b}.table-wrap td{border:0!important;padding:0}.table-wrap td:nth-child(1){grid-area:1/1}.table-wrap td:nth-child(2){grid-area:2/1}.table-wrap td:nth-child(3){grid-area:1/2}.table-wrap td:nth-child(4){grid-area:3/1}.table-wrap td:nth-child(5){grid-area:2/2/span 2/3}.table-wrap td.empty{grid-column:1/-1;grid-row:auto;padding:12px}}
@media(max-width:360px){.heading{flex-wrap:wrap}.delivery{flex-wrap:wrap}.delivery .outline{margin-left:0}.delivery-icon{display:none}}

.summary{grid-template-columns:repeat(4,minmax(0,1fr))}
.stat.partial .stat-icon{background:#f9ebda;color:#8c4d0f}
.stat.ready .stat-icon{background:var(--mint);color:var(--green)}
.stat.completed .stat-icon{background:#edf2ee;color:#52675d}
.search{width:min(100%,290px)}
.monitor-search{display:flex;gap:8px;align-items:stretch;max-width:460px;margin-bottom:10px}
.monitor-search .search{flex:1;width:auto;min-width:0}
.monitor-search .outline{flex:none}
.search-scope{color:var(--muted);font-size:12px}
.batch-list{border:1px solid var(--line);border-radius:7px;background:#fff}
.batch-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(105px,1fr) minmax(105px,.8fr) 20px;gap:15px;align-items:center;padding:12px 15px}
.batch-head{background:#f9fbfa;border-radius:7px 7px 0 0;color:var(--muted);font-size:12px;font-weight:650;padding-block:9px}
.batch-row{border-top:1px solid var(--line);--batch-color:#697e74;--batch-rail:transparent;--batch-fill:#f9fbfa}
.batch-row.partial{--batch-color:#a65e20;--batch-rail:#d59357;--batch-fill:#fffaf3}
.batch-row.ready{--batch-color:#208260;--batch-rail:#3a9778;--batch-fill:#f2f9f5}
.batch-summary{cursor:pointer;min-height:65px;list-style:none;position:relative;box-shadow:inset 3px 0 var(--batch-rail);background:var(--batch-fill)}
.batch-row:last-child:not([open]) .batch-summary{border-radius:0 0 7px 7px}
.batch-summary::-webkit-details-marker{display:none}
.batch-summary:hover{background:#edf3ef}
.batch-summary:focus-visible{outline:2px solid #168265;outline-offset:-2px}
.batch-identity{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 9px;min-width:0}
.batch-name,.batch-note,.batch-progress strong{overflow-wrap:anywhere}
.batch-ref{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.batch-note{flex-basis:100%;color:var(--muted);font-size:12px}
.batch-progress{display:grid;gap:5px;font-size:13px;font-variant-numeric:tabular-nums}
.batch-progress progress{width:min(100%,125px);height:5px;border:0;border-radius:4px;appearance:none;background:#dfe7e2;color:var(--batch-color)}
.batch-progress progress::-webkit-progress-bar{background:#dfe7e2;border-radius:4px}
.batch-progress progress::-webkit-progress-value{background:var(--batch-color);border-radius:4px}
.batch-progress progress::-moz-progress-bar{background:var(--batch-color);border-radius:4px}
.batch-status{min-width:0}
.batch-status .tag{white-space:normal}
.tag.partial{background:#faeadb;color:#833d10}
.tag.ready,.parcel-tools .tag.arrived{background:#e0f0e7;color:#17624b}
.tag.completed{background:#ebf0ed;color:#486257}
.batch-chevron{display:grid;place-items:center;color:var(--muted);min-width:0}
.batch-chevron svg{width:17px;height:17px}
.batch-row[open] .batch-chevron{transform:rotate(180deg)}
.batch-content{padding:0 15px 11px;border-top:1px solid var(--line)}
.parcel-list{list-style:none;margin:0;padding:0}
.parcel-row,.batch-footer{display:flex;justify-content:space-between;align-items:center;gap:8px 14px;padding:7px 3px;border-bottom:1px solid var(--line)}
.parcel-row{min-height:42px}
.parcel-row[data-match]{background:#e9f6ee;box-shadow:inset 3px 0 #17755a;padding-inline:9px;scroll-margin-block:12px}
.parcel-match{color:#174d3e;font-size:11px;font-weight:700}
.parcel-tracking{min-width:0;overflow-wrap:anywhere}
.parcel-overview{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px}
.parcel-measurements{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.parcel-tools,.batch-actions{display:flex;justify-content:flex-end;align-items:center;gap:5px 8px;flex-wrap:wrap}
.tag.cancelled{background:#f1efec;color:#655c53}
.parcel-cancel{color:#884026}
.cancelled-count{color:#655c53}
.monitor-status{display:flex;justify-content:flex-end;align-items:center;gap:7px;text-align:right}
.monitor-status button[hidden]{display:none}
.monitor-activity{display:flex;flex-wrap:wrap;gap:5px 18px;margin:-9px 0 14px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.monitor-activity[hidden]{display:none}
.monitor-activity [data-attention="true"]{color:#884026;font-weight:650}
.parcel-edit{font-weight:600;min-height:29px;padding:3px 7px;font-size:11px}
.parcel-edit svg{width:14px;height:14px}
.batch-footer{border-bottom:0;padding:10px 3px 0}
.batch-actions button{min-height:32px;font-size:12px;padding:5px 8px}
.modal-body input[type=text]{width:100%;border:1px solid #bdcfc5;border-radius:6px;padding:9px;color:var(--ink);font-weight:400}
@media(max-width:760px){
  .summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stat{grid-template-columns:28px minmax(0,1fr);gap:8px}
  .stat:nth-child(odd){border-left:0}
  .stat:nth-child(n+3){border-top:1px solid var(--line)}
  .search{width:100%}
  .batch-head{display:none}
  .batch-row:first-child{border-top:0}
  .batch-grid{grid-template-columns:minmax(0,1fr) minmax(0,.95fr) 17px;gap:5px 8px;padding:10px}
  .batch-identity{grid-row:1/span 2;align-self:start}
  .batch-progress{grid-area:1/2}
  .batch-status{grid-area:2/2}
  .batch-chevron{grid-area:1/3/span 2/4}
  .batch-content{padding-inline:9px}
  .parcel-row{gap:6px}
  .batch-footer{align-items:flex-start;flex-direction:column}
  .batch-actions{justify-content:flex-start}
}
.mobile-views{display:none}
.lookup-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:18px;align-items:end}
.lookup-heading h1{font-size:30px;line-height:1.14}
.lookup-form{display:flex;align-items:stretch;gap:8px}
.lookup-form .search{width:auto;flex:1;min-width:0}
.lookup-feedback{color:var(--muted);border-top:1px solid var(--line);margin-top:14px;padding:12px 0;font-size:13px}
.lookup-card{margin:0 0 14px;border:1px solid var(--line);border-radius:7px;background:#fff;overflow:hidden}
.lookup-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0}
.lookup-field{min-width:0;padding:10px 12px;overflow-wrap:anywhere}
.lookup-field dt{font-size:12px;color:var(--muted);margin-bottom:4px}
.lookup-field dd{margin:0;font-weight:660;font-variant-numeric:tabular-nums;line-height:1.35}
.lookup-bar{background:#edf3f1;border-bottom:1px solid var(--line)}
.lookup-bar .lookup-field+.lookup-field{border-left:1px solid var(--line)}
.lookup-detail{padding:13px 12px 6px}
.lookup-card h2{font-size:16px;line-height:1.3}
.lookup-detail h2{padding:0 5px 5px}
.lookup-detail .lookup-field{padding-inline:5px}
.lookup-detail .lookup-field:nth-child(n+5){border-top:1px solid var(--line)}
.lookup-incomplete{margin:3px 5px 5px;padding:6px 8px;border-left:2px solid #d59357;background:#fff7e8;color:#77430f;font-size:12px}
.tag.lookup-dispatched{background:#e7eff6;color:#235479}
.lookup-lower{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);border-top:1px solid var(--line)}
.lookup-lower section{min-width:0;padding:12px}
.lookup-lower section+section{border-left:1px solid var(--line)}
.lookup-muted{color:var(--muted);font-size:12px;padding-top:8px}
.lookup-timeline{margin:9px 0 0 4px;padding:0;list-style:none;border-left:2px solid #d2e1dc}
.lookup-timeline li{position:relative;display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 8px;padding:4px 0 7px 10px;font-size:12px}
.lookup-timeline li::before{content:"";position:absolute;top:8px;left:-4px;width:6px;height:6px;border-radius:50%;background:var(--green)}
.lookup-timeline span{color:var(--muted);font-variant-numeric:tabular-nums}
.lookup-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-top:8px;max-width:380px}
.lookup-photo{display:block;position:relative;width:100%;aspect-ratio:4/3;padding:0;border:1px solid var(--line);border-radius:5px;overflow:hidden;background:var(--wash)}
.lookup-photo img{display:block;width:100%;height:100%;object-fit:cover}
.lookup-photo svg{box-sizing:content-box;position:absolute;bottom:5px;right:5px;background:#fff;color:var(--dark);border-radius:4px;padding:4px}
#modal[data-view=photo]{width:min(100% - 28px,780px)}
.lookup-photo-body{padding:12px}
.lookup-photo-body img{display:block;width:100%;max-height:68vh;object-fit:contain}
@media(max-width:860px){
  .lookup-heading{grid-template-columns:1fr;gap:12px}
}
@media(max-width:760px){
  .mobile-views{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px 13px;background:#fff;border-bottom:1px solid var(--line)}
  .mobile-views .nav-button{justify-content:center;margin:0;padding:8px 4px;gap:6px;font-size:12px}
  .lookup-heading h1{font-size:25px}
  .lookup-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lookup-bar .lookup-field:nth-child(odd){border-left:0}
  .lookup-bar .lookup-field:nth-child(n+3),.lookup-detail .lookup-field:nth-child(n+3){border-top:1px solid var(--line)}
  .lookup-lower{grid-template-columns:1fr}
  .lookup-lower section+section{border-left:0;border-top:1px solid var(--line)}
}

/* Shared FK workspace theme. Green and amber remain reserved for operational statuses. */
:root{--ink:#182949;--muted:#536682;--line:#dce6f3;--dark:#173566;--wash:#edf3fd;--mint:#e3f2e9;--nav:#152343;--rail:#1a2b50;--blue:#225fd6;--focus:#2878cc}
[hidden]{display:none!important}
body,.account-page{background:linear-gradient(125deg,#eff2ff,#edf5fd 69%,#e9f5fb)}
:is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.layout,.account-shell{display:grid;grid-template-columns:106px minmax(0,1fr);grid-template-rows:auto 1fr;min-height:100vh}
.layout>.top,.account-top{grid-column:1/-1;min-height:64px;padding:0 25px;background:var(--nav);color:#fff;border:0}
.top .brand,.account-top .brand{padding:0;color:#fff;text-decoration:none}
.top .brand small,.account-top .brand small{color:#c0d0ed}
.top .lang select{background:var(--nav);color:#e9f2ff}
.top .lang,.top .account-link{color:#e9f2ff}
.top .icon-button{color:#e9f2ff;border-color:transparent;background:transparent}
.top .icon-button:hover{background:#263d65}
.top .avatar{color:#fff;background:#3b5c91}
.top .account-link{padding-left:12px;border-left:1px solid #435475}
.top .bell .counter{right:-3px;top:-4px;background:#ffdfa2;color:#734009}
.side{position:static;height:auto;min-width:0;background:var(--rail);border:0;padding:14px 8px}
.side nav{margin:0;display:grid;gap:7px}
.side .nav-button{display:grid;justify-items:center;align-content:center;gap:5px;width:100%;min-width:0;min-height:67px;margin:0;padding:5px 3px;border:1px solid transparent;color:#d5e4fb;text-align:center;text-decoration:none;font-size:12px;line-height:1.24;overflow-wrap:anywhere}
.side .nav-button svg{width:21px;height:21px;color:#89c2ff}
.side .nav-button:hover{background:#263e69}
.side .nav-button.selected{background:linear-gradient(118deg,#3154d9,#247eb7);border-color:#5e9ded;color:#fff}
.side .nav-button.selected svg{color:#fff}
.side-foot{display:block;border:0;text-align:center;color:#b6c9eb;font-size:11px}
.page{min-width:0;padding:21px 27px 28px}
.page>.location{max-width:1550px;margin:0 auto 11px;color:var(--muted);font-size:12px}
.page>main{max-width:1550px;padding:0}
.heading,.lookup-heading{margin-bottom:15px}
.heading h1,.lookup-heading h1{font-size:28px}
.subtitle{margin-top:5px}
.primary{background:var(--blue);border-color:var(--blue)}
.primary:hover{background:#174cac}
.outline,.search{color:#244572;border-color:#cbdbef}
.outline:hover,.icon-button:hover{background:#edf5ff}
.summary{gap:12px;margin-bottom:11px;border:0;background:none}
.stat,.stat+.stat{grid-template-columns:minmax(0,1fr) auto;gap:7px;min-height:96px;padding:10px 13px;border:1px solid var(--line);border-radius:8px;background:#fff}
.stat:hover{background:#f6faff;border-color:#aac4eb}
.stat>span:last-child{grid-column:1;grid-row:1;display:flex;flex-direction:column-reverse;gap:6px}
.stat small{margin:0}.stat strong{font-size:27px}
.stat-icon{grid-column:2;grid-row:1;width:42px;height:42px;color:#2863be;background:linear-gradient(145deg,#edf6ff,#c8e1fd);box-shadow:3px 4px 0 #deeafd}
.stat.completed .stat-icon{color:#2863be;background:#e1eeff}
.stat.partial .stat-icon{box-shadow:3px 4px 0 #fff0dc}
.stat.ready .stat-icon{box-shadow:3px 4px 0 #e3f4ea}
.monitor-activity{align-items:center;gap:5px 14px;margin:0 0 9px;padding:8px 11px;border:1px solid var(--line);border-radius:6px;background:#f6faff}
#monitorRound{margin-right:auto;font-weight:650;color:var(--green)}
#monitorRound[data-attention=true]{color:#884026}
.delivery{gap:9px;margin-bottom:12px;padding:7px 10px;background:#f8fbff;border-color:var(--line)}
.delivery-copy{flex:1;min-width:0}
.delivery small{margin-top:1px;overflow-wrap:anywhere}
.delivery-icon{width:32px;height:32px;background:#e3efff;color:#255db6}
.delivery-actions,.notification-switch{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.notification-switch{font-size:12px;font-weight:600;cursor:pointer}
.notification-switch input{accent-color:var(--blue);width:16px;height:16px;margin:0}
.delivery .outline{margin:0;min-height:34px}
.follow-up{background:#fff3f3;border-color:#efb9be;border-left:3px solid #ad303d;color:#8d2431}
.follow-up .delivery-icon{background:#fbe0e3;color:#a02c38}
.follow-up small,.follow-up .outline{color:#842735}
.follow-up .outline{border-color:#eab4bb;white-space:normal}
.follow-up .outline:hover{background:#ffe9ec}
.tag.overdue{color:#8c2733;background:#fbe3e6}
.monitor-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,28%);gap:13px;align-items:start}
.records,.monitor-panel,.lookup-search-panel{min-width:0;border:1px solid var(--line);border-radius:8px;background:#fff}
.records-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:11px 13px 4px}
.records-head,.monitor-search{margin:0;max-width:100%;min-width:0}
.monitor-search{flex:1 1 335px;max-width:min(100%,385px)}
.records-head h2,.monitor-panel h2,.lookup-search-panel h2{font-size:16px}
.filters{margin:0;padding:6px 12px 8px}
.tabs button[aria-pressed=true],.tabs button:hover{color:#2159ad;background:#e8f1fe}
.batch-list{border:0;border-top:1px solid var(--line);border-radius:0}
.batch-head{background:#f0f5fd;border-radius:0}
.batch-summary{min-height:51px;padding-block:8px;background:#fff;box-shadow:none}
.batch-summary:hover,.batch-summary:focus-visible{background:#f0f6fe}
.batch-summary:focus-visible{outline-color:var(--focus)}
.batch-progress progress,.batch-progress progress::-webkit-progress-bar{background:#e0ebfc}
.batch-row.partial,.batch-row.ready{--batch-color:#387ddb}
.parcel-row.parcel-arrived{background:#f0faf5;box-shadow:inset 3px 0 #239572;padding-inline:8px}
.parcel-row[data-match]{background:#e4f3fe;box-shadow:inset 3px 0 var(--blue)}
.parcel-row.parcel-overdue{background:#fff4f4;box-shadow:inset 3px 0 #ad303d;padding-inline:8px}
.parcel-row.parcel-overdue[data-match]{outline:2px solid var(--focus);outline-offset:-2px}
.parcel-registered{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.table-foot{padding:8px 13px;border-top:1px solid var(--line)}
.monitor-side{display:grid;gap:12px;min-width:0}
.monitor-panel h2{padding:11px 12px}
.distribution{display:grid;grid-template-columns:84px minmax(0,1fr);align-items:center;gap:10px;padding:0 12px 12px}
.parcel-ring{display:grid;place-items:center;width:84px;aspect-ratio:1;border-radius:50%;background:conic-gradient(#2865dc var(--arrived-share),#48a7d9 var(--arrived-share) var(--waiting-end),#cedbef var(--waiting-end))}
.ring-center{display:grid;align-content:center;justify-items:center;width:62px;aspect-ratio:1;border-radius:50%;background:#fff;font-size:17px}
.ring-center small,.recent-copy small,.recent-time,.panel-empty{color:var(--muted);font-size:11px}
.distribution-key{list-style:none;display:grid;gap:5px;margin:0;padding:0;font-size:12px}
.distribution-key li{display:grid;grid-template-columns:7px minmax(0,1fr) auto;align-items:center;gap:5px}
.distribution-key li::before{content:"";width:7px;height:7px;border-radius:50%;background:#48a7d9}
.distribution-key .arrived::before{background:#2865dc}.distribution-key .cancelled::before{background:#cedbef}
.recent-arrival{display:grid;grid-template-columns:18px minmax(0,1fr) auto;width:100%;text-align:left;align-items:start;gap:7px;border:0;border-top:1px solid var(--line);padding:8px 11px;background:transparent}
.recent-arrival:hover{background:#eef6ff}.recent-arrival svg{color:var(--blue);margin-top:2px}
.recent-copy{overflow-wrap:anywhere}.recent-copy small{margin-top:3px}.panel-empty{padding:0 12px 12px}
.lookup-heading{display:block}
.lookup-search-panel{padding:12px}
.lookup-search-head,.lookup-card-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px 10px}
.lookup-search-head{margin-bottom:10px}.lookup-search-head span{color:var(--muted);font-size:12px}
.lookup-feedback{border:0;margin:3px 0}
.lookup-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,29%);grid-auto-rows:auto;background:none;border:0;overflow:visible;column-gap:12px}
.lookup-card-head,.lookup-bar,.lookup-detail,.lookup-timeline-panel,.lookup-gallery{min-width:0;padding:10px 12px;background:#fff;border:1px solid var(--line)}
.lookup-card-head{grid-column:1;border-bottom:0;border-radius:8px 8px 0 0;overflow-wrap:anywhere}
.lookup-bar{grid-column:1;grid-template-columns:repeat(2,minmax(0,1fr));padding:0;background:#f2f6fd;border-block:0}
.lookup-detail{grid-column:1;border-top:0;border-radius:0 0 8px 8px}
.lookup-timeline-panel{grid-column:1;margin-top:10px;border-radius:8px}
.lookup-gallery{grid-column:2;grid-row:1/span 3;align-self:start;border-radius:8px}
.lookup-photos{max-width:none}
dialog{width:min(100% - 24px,535px);box-shadow:0 16px 60px #15234338}
dialog::backdrop{background:#1327487a}
.modal-body textarea,.modal-body input[type=text],.account-form input:not([type=hidden]){border-color:#c5d5ed}
.account-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.account-shell.no-nav{grid-template-columns:minmax(0,1fr)}
.account-page .account-main{width:min(100% - 36px,510px);margin:23px auto auto;padding:18px;background:#fff;border:1px solid var(--line);border-radius:8px}
.account-page .no-nav .account-main{width:min(100% - 26px,414px);align-self:center;margin:21px auto}
.account-page .staff-main{width:min(100% - 44px,1500px);padding:0;border:0;background:none}
.account-main h1{font-size:25px}
.account-footer a,.account-nav a,.staff-history summary{color:#2459aa}
.staff-totals{padding:0;background:none;border:0;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.staff-totals>div,.staff-create{min-width:0;padding:11px 12px;background:#fff;border:1px solid var(--line);border-radius:8px}
.staff-totals dd{font-size:25px}
.staff-list{padding:0;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.staff-row{padding:9px 11px;gap:6px 15px}
.staff-row:last-child{border-bottom:0}
.staff-row form .outline{min-height:31px;padding:4px 8px;font-size:12px}
.staff-identity .tag{width:fit-content}
@media(max-width:1020px){.monitor-grid{grid-template-columns:minmax(0,1fr)}.monitor-side{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .layout,.account-shell{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto 1fr}
  .account-shell.no-nav{grid-template-rows:auto 1fr}
  .layout>.top,.account-top{min-height:55px;padding:0 10px}
  .top .brand img,.account-top .brand img{width:32px;height:32px}
  .top .brand strong,.account-top .brand strong{font-size:14px}
  .top-actions{gap:5px}.top .account-link{padding-left:7px}.top .account-link>span:last-child{display:none}.top .avatar{display:grid;width:26px;height:26px}
  .side{display:block;padding:4px 6px}.side nav{display:flex;margin:0;gap:4px}.side .nav-button{flex:1;min-height:48px;font-size:11px;gap:3px}
  .side .nav-button svg{width:17px;height:17px}.side-foot{display:none}
  .page{padding:12px 10px 22px}.page>.location{margin-bottom:8px}
  .heading h1,.lookup-heading h1{font-size:23px}.heading .primary{max-width:100%}
  .summary{gap:7px}.stat,.stat+.stat{min-height:76px;padding:7px;border:1px solid var(--line)}.stat strong{font-size:22px}
  .stat-icon{width:28px;height:28px}
  .delivery{flex-wrap:wrap}.delivery-icon{display:grid}.delivery-actions{max-width:100%}
  .parcel-row{display:grid;grid-template-columns:minmax(0,1fr) auto}
  .parcel-row:has(.parcel-edit){grid-template-columns:minmax(0,1fr)}
  .parcel-row:has(.parcel-edit) .parcel-tools{justify-content:flex-start}
  .lookup-card{display:block;background:#fff;border:1px solid var(--line);border-radius:8px}
  .lookup-card-head,.lookup-bar,.lookup-detail,.lookup-timeline-panel,.lookup-gallery{border:0}
  .lookup-timeline-panel,.lookup-gallery{border-top:1px solid var(--line);margin:0;border-radius:0}
  .account-page .staff-main{width:calc(100% - 20px);margin-top:13px}
  .staff-totals{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:535px){.monitor-side{grid-template-columns:minmax(0,1fr)}.records-toolbar>*{width:100%}}
