html[data-theme=light]{color-scheme:light;--bg:#f5f5f7;--panel:#fff;--line:#e5e5ea;--text:#1d1d1f;--muted:#6e6e73;--gold:#0071e3;--blue:#0071e3;--green:#168447;--red:#bf3030;--hover:#f5f5f7;--field:#f5f5f7}html[data-theme=dark]{color-scheme:dark;--bg:#101012;--panel:#1c1c1e;--line:#363638;--text:#f5f5f7;--muted:#a1a1a6;--gold:#64a8ff;--blue:#64a8ff;--green:#64d98b;--red:#ff7979;--hover:#29292c;--field:#29292c}html[data-theme] body{background:var(--bg)!important;color:var(--text);font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:-.012em}html[data-theme] .shell{max-width:1920px;grid-template-columns:190px minmax(0,1fr);gap:24px;padding:24px}html[data-theme] aside,html[data-theme] article,html[data-theme] .table-wrap{background:var(--panel)!important;border:1px solid var(--line);box-shadow:none!important;backdrop-filter:none;border-radius:18px}html[data-theme] main{min-width:0}html[data-theme] h1{font-size:36px;letter-spacing:-.035em;font-weight:650}html[data-theme] h2{letter-spacing:-.025em}html[data-theme] .brand,html[data-theme] .brand strong{color:var(--text)!important;text-shadow:none!important}html[data-theme] nav a{color:var(--muted);border-radius:10px;background:none}html[data-theme] nav a.active{color:var(--blue);background:var(--hover)!important;box-shadow:none}html[data-theme] .muted,html[data-theme] th{color:var(--muted)}html[data-theme] input,html[data-theme] select{background:var(--field)!important;color:var(--text);border:1px solid var(--line);border-radius:10px}html[data-theme] button{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:10px;box-shadow:none;cursor:pointer}html[data-theme] button:hover{background:var(--hover)}html[data-theme] button:focus-visible,html[data-theme] a:focus-visible{outline:3px solid var(--blue);outline-offset:3px}html[data-theme] .filters{gap:8px;flex-wrap:wrap}html[data-theme] .filters button{border-radius:999px;padding:8px 15px}html[data-theme] .filters button.selected,html[data-theme] .filters .export{background:var(--blue)!important;color:var(--bg)!important;border-color:transparent}html[data-theme] .metric{background:var(--panel)!important;border:1px solid var(--line);box-shadow:none}html[data-theme] .notice{background:var(--panel)!important;color:var(--muted);border:1px solid var(--line)}html[data-theme] .table-wrap{overflow-x:auto}html[data-theme] table{width:100%;min-width:1250px;border-collapse:collapse}html[data-theme] th{background:var(--panel)!important;padding:16px 12px;font-size:12px;font-weight:600}html[data-theme] td{background:transparent;padding:16px 12px;border-bottom:1px solid var(--line);vertical-align:middle}html[data-theme] tbody tr:hover{background:var(--hover)}html[data-theme] .sort-head{background:transparent;border:0;color:var(--muted);white-space:nowrap}html[data-theme] .sequence-cell{color:var(--muted)}html[data-theme] .badge{border:0;border-radius:999px;padding:5px 10px;font-weight:600;background:var(--hover);color:var(--text)}html[data-theme=light] .badge.DELIVERED{background:#e1f7eb;color:#158345}html[data-theme=dark] .badge.DELIVERED{background:#163b25;color:#80e1a3}html[data-theme] .badge.SHIPPED{color:var(--blue)}html[data-theme] .delete-btn{color:var(--red);border-color:transparent}html[data-theme] .detail-btn{color:var(--blue)}html[data-theme] .proof-viewer{background:var(--panel);color:var(--text);border:1px solid var(--line)}.ordered-time{white-space:nowrap;font-variant-numeric:tabular-nums}.ordered-time span{color:var(--muted);font-size:12px}.order-proof-cell{min-width:100px}.order-proof-list{display:flex;gap:7px;flex-wrap:wrap;max-width:240px}.order-proof-button{padding:0!important;border:0!important;background:transparent!important;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px;color:var(--muted)}.order-proof-button img{width:68px;height:48px;object-fit:cover;border-radius:8px;border:1px solid var(--line)}.order-proof-empty{color:var(--muted);font-size:12px;white-space:nowrap}@media(max-width:800px){html[data-theme] .shell{display:block;padding:12px}html[data-theme] aside{position:static;height:auto;margin-bottom:16px}html[data-theme] h1{font-size:28px}.order-proof-button img{width:60px;height:44px}}
html[data-theme] .manual-add{background:var(--panel)!important;color:var(--text)!important;border:1px solid var(--line)!important;border-radius:18px}html[data-theme] .manual-add h2{color:var(--text)!important}html[data-theme] .manual-add p,html[data-theme] header p,html[data-theme] .sidebar-footer{color:var(--muted)!important}

html[data-theme] .badge.PREPARING,html[data-theme] .badge.SHIPPED{background:color-mix(in srgb,var(--blue) 14%,var(--panel));color:var(--blue);border:1px solid color-mix(in srgb,var(--blue) 35%,transparent)}html[data-theme] .badge.CANCELLED{background:color-mix(in srgb,var(--red) 12%,var(--panel));color:var(--red);border:1px solid color-mix(in srgb,var(--red) 35%,transparent)}html[data-theme] .badge.DELAY,html[data-theme] .badge.DELAYED{background:#fff1c2;color:#8a5900;border:1px solid #e3b64b}html[data-theme=dark] .badge.DELAY,html[data-theme=dark] .badge.DELAYED{background:#493b16;color:#ffd76b}html[data-theme] .metric.green strong{color:var(--green)}html[data-theme] .metric.red strong{color:var(--red)}html[data-theme] .metric.blue strong{color:var(--blue)}.shipment-lines{display:grid;gap:8px;min-width:135px}.shipment-lines>div{display:flex;align-items:center;gap:6px}.shipment-tracking>div{display:block;overflow-wrap:anywhere}.shipment-tracking small{display:block;color:var(--muted)}

#detail[hidden]{display:none!important}.inline-order-detail>td{padding:12px!important;background:var(--hover)!important}.inline-order-detail #detail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.inline-detail-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;color:var(--text);padding:4px}.inline-order-detail article{min-width:0}.inline-order-detail .delivery-images img{max-height:260px;object-fit:contain}.inline-order-detail .proof-driver{color:var(--text)!important}@media(max-width:800px){.inline-order-detail #detail{grid-template-columns:1fr}}

.named-package-lines>div,.named-package-proof-slot{min-height:68px;display:flex;align-items:center}.named-package-proofs{display:flex!important;flex-direction:column!important;gap:8px!important}.named-package-proof-slot{justify-content:flex-start;flex-direction:column;align-items:flex-start}.named-package-proof-slot .order-proof-button{min-height:68px}.named-package-lines{gap:8px!important}.shipment-lines:has(strong)>div{min-height:68px}.proof-product-label{font-size:14px;font-weight:600;color:var(--text)}

.product-shipment-note{display:inline-block;margin-left:8px;font-size:12px;color:var(--blue);background:var(--hover);padding:3px 8px;border-radius:8px}

.grouped-products{display:grid;gap:10px;min-width:170px}.product-package{display:flex;flex-direction:column;gap:4px;min-height:68px}.product-package+ .product-package{border-top:1px solid var(--line);padding-top:10px}.product-package>span{padding-left:12px}.product-package>strong{color:var(--text)}

.shipment-tracking>div,.shipment-lines small{white-space:nowrap}
.named-package-proof-slot{min-height:68px}
