/* Shared finishing pass: compact desktop navigation, readable tables and narrow screens. */
:root{--line:#e4e7ec;--muted:#626873}
body{background:#f5f6f8}aside{display:flex;flex-direction:column;overflow-y:auto;background:#eef0f4;padding-top:24px}aside h2{margin:0 0 8px}aside>p:last-child{margin-top:auto;padding-top:20px;line-height:1.7}nav{margin:22px 0;gap:4px}nav button{line-height:1.3;border:1px solid transparent}nav button.active{border-color:#e0e6ee}nav button:hover{background:#ffffff80}
main{min-width:0;padding-top:28px}h1{font-size:29px;line-height:1.2}header small{color:#737b88}.panel{border-color:#e5e8ee;box-shadow:0 2px 8px #17263c03}.panel>p.muted{max-width:900px}h2,h3{line-height:1.35}.row{row-gap:16px}.row>label{flex:1 1 180px}.row>button{align-self:end;white-space:normal}input,select,textarea{min-height:42px}input[type=checkbox]{min-height:16px;flex-shrink:0}button{min-height:40px}.small-button{min-height:32px}.dismiss{min-height:32px}.actions{row-gap:8px}.actions>label{align-self:center}
.table-wrap{border:1px solid #e7eaf0;border-radius:12px;margin:16px 0;max-width:100%;overscroll-behavior-x:contain}.table-wrap:empty{display:none}table{font-variant-numeric:tabular-nums}th{background:#f7f8fa;color:#525c6b;font-size:11px;letter-spacing:.01em}tbody tr:last-child td{border-bottom:0}tbody tr:nth-child(even){background:#fafbfc}tbody tr:hover{background:#f0f6ff}td{line-height:1.6}td,th{overflow-wrap:anywhere}td small{line-height:1.5}.table-wrap>p{padding:12px 16px}.table-wrap input[type=checkbox]{vertical-align:middle}.date-range input{min-width:110px}#coTable table,#psTable table{min-width:580px}#psTable th:last-child,#psTable td:last-child{text-align:right;width:160px}#psTable td:first-child{width:32%}#psFallback{min-height:180px;font:12px/1.6 ui-monospace,monospace}
.notice:empty,[role=status]:empty,.error:empty{display:none}.notice{overflow-wrap:anywhere;line-height:1.6}.tag,.supply-status{font-weight:500;line-height:1.4}.done{background:#e6f3eb;color:#246039}.bad{color:#a02b25}.error{line-height:1.6}.drop{transition:border-color .15s,background .15s}.drop:hover{border-color:#0071e3;background:#eef5ff}.drop input[type=file]{font-size:12px;padding:8px;min-height:40px}dialog{max-height:90dvh;overflow:auto}.profile-title h3{line-height:1.5}.profile-stock{font-variant-numeric:tabular-nums}.job-actions{align-items:center}.job-actions small{max-width:420px}.supply-files li{line-height:1.65}#archiveCounts{margin:12px 0}#archiveProblems h3{margin-top:24px}
#shipments td:nth-child(2),#positionRows td:nth-child(2){min-width:190px}#shipments td:nth-child(2)>strong,#positionRows td:nth-child(2)>strong{white-space:nowrap}#shipments td:nth-child(3){min-width:145px}
@media(max-width:1000px){main{padding:26px 22px}.section-heading{gap:14px}.profile-summary{gap:12px}nav button{font-size:13px}}
@media(max-width:700px){aside{display:block;padding:18px;border-right:0;border-bottom:1px solid #dfe4ec;overflow:visible}aside h2{font-size:19px}nav{margin:14px 0 0;gap:6px}nav button{flex:0 1 auto;background:#ffffff80;font-size:12px;min-height:36px}nav button.active{background:white}main{padding:20px 12px}h1{font-size:25px}.panel{padding:18px 14px;border-radius:16px;margin:16px 0}.row>label{flex-basis:100%;min-width:0}.row>button{flex:1 1 auto;min-width:0}.section-heading{align-items:stretch}.section-heading>.actions{width:100%}.section-heading>button{width:100%}.actions{gap:8px}.actions>button{max-width:100%}.drop{padding:20px 12px}.drop input{max-width:100%}.profile-title{flex-basis:100%}.profile-row .actions{flex-wrap:wrap}.profile-stock{text-align:left}.profile-stock small{display:inline}.profile-summary{align-items:start}.profile-row{padding:14px 12px}.supply-card{padding:16px 12px}.ms-main-action>button{width:100%}.ms-stat{padding:14px}.ms-stat strong{font-size:24px}.ms-run-details{overflow-wrap:anywhere}#coFilters .row>button{margin-top:0}.table-wrap{border-radius:10px}dialog{padding:20px 16px;width:calc(100vw - 20px)}.table-wrap th,.table-wrap td{padding:11px 9px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
