:root{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","PingFang SC","Helvetica Neue",Arial,sans-serif;color:#1d1d1f;background:#f5f5f7;font-synthesis:none;--blue:#0071e3;--muted:#86868b;--line:#e8e8ed;--paper:#fff;--red:#b42332;--green:#16834b;--sidebar:230px}*{box-sizing:border-box}body{margin:0;font-size:14px}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #91c4ff;outline-offset:2px}.hidden{display:none!important}.auth-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 50% 0,#fff 0,#f5f5f7 60%)}.auth-card{width:min(420px,100%);padding:38px;background:#fff;border:1px solid #ececf0;border-radius:22px;box-shadow:0 18px 70px #1d1d1f0b}.auth-card h1{margin:4px 0 8px;font-size:28px;letter-spacing:-.04em}.auth-card .eyebrow{margin-top:18px}.brand-mark{width:48px;height:48px;border-radius:15px;background:#e21b2d;color:#fff;display:grid;place-items:center;font-size:26px;font-weight:800;letter-spacing:-3px}.eyebrow{font-size:11px;color:#98989f;letter-spacing:.1em}.muted{color:var(--muted);line-height:1.6}.auth-form,.manage-form{display:grid;gap:14px;margin-top:22px}.auth-form label,.manage-form label,.modal label{display:grid;gap:7px;color:#55555c;font-size:12px;font-weight:600}.auth-form input,.manage-form input,.manage-form select,.form-control{width:100%;height:40px;padding:0 11px;border:1px solid #dedee5;border-radius:9px;background:#fff;color:#222}.auth-note{margin:18px 0 0;color:#9a9aa0;font-size:11px}.error-text{min-height:18px;margin-top:10px;color:#b42332;font-size:12px}.button{height:38px;padding:0 15px;border:0;border-radius:20px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:12px;font-weight:650;white-space:nowrap}.button.primary{background:var(--blue);color:#fff;box-shadow:0 3px 8px #0071e326}.button.primary:hover{background:#0077ed}.button.secondary{background:#fff;color:#333;border:1px solid #dedee5}.button.small{height:31px;padding:0 12px}.shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);padding:24px 15px;background:#ffffffd9;backdrop-filter:blur(20px);border-right:1px solid #0000000c;z-index:4;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;padding:0 10px 32px;font-weight:700;font-size:13px}.brand small{display:block;margin-top:4px;font-size:9px;font-weight:500;letter-spacing:.11em;color:#909097}.small-mark{width:32px;height:32px;border-radius:10px;font-size:18px}.nav-label{padding:0 12px 8px;color:#a0a0a5;font-size:10px;letter-spacing:.1em}.nav{display:grid;gap:4px}.nav button{height:40px;padding:0 12px;border:0;border-radius:10px;background:transparent;color:#626269;text-align:left;display:flex;align-items:center;gap:11px;font-size:12px}.nav button span{width:16px;text-align:center;font-size:15px}.nav button:hover{background:#f2f2f5}.nav button.active{background:#eaf3ff;color:var(--blue);font-weight:650}.nav button b{margin-left:auto;color:#bd2834;font-size:10px}.side-bottom{margin-top:auto;padding:14px 12px;border-top:1px solid var(--line);color:#898990;font-size:10px;line-height:1.8}.side-bottom strong{color:#525259}.dot{display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#2aae5e}.main{margin-left:var(--sidebar);min-height:100vh}.topbar{height:64px;position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;padding:0 36px;background:#f5f5f7dd;backdrop-filter:blur(20px);border-bottom:1px solid #0000000a}.crumb{font-size:12px;color:#77777e}.crumb span{padding:0 8px;color:#c2c2c8}.crumb strong{color:#333}.top-actions{display:flex;align-items:center;gap:11px}.freshness{display:flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #cfe3ff;border-radius:9px;background:#eaf3ff;color:#1768bd;font-size:11px;font-weight:600}.freshness:before{content:"";width:7px;height:7px;border-radius:50%;background:#1683ee}.freshness strong{color:#075db2}.user-badge{font-size:11px;color:#55555b}.content{max-width:1440px;margin:auto;padding:30px 36px 52px}.heading-row{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 0 21px}.heading-row h1{margin:0;font-size:31px;letter-spacing:-.04em}.heading-row p{margin:8px 0 0;color:var(--muted);font-size:12px}.heading-row .eyebrow{margin:0 0 8px}.toolbar,.panel-actions{display:flex;align-items:center;gap:8px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.metric{min-height:115px;padding:17px 18px;background:#fff;border-radius:15px;box-shadow:0 1px 2px #00000005}.metric span{display:block;color:#7e7e85;font-size:11px}.metric strong{display:block;margin-top:12px;font-size:27px;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.metric small{display:block;margin-top:5px;color:#9999a0;font-size:10px}.metric.blue strong{color:#0871d5}.metric.alert strong{color:#9b5a00}.metrics.compact .metric{min-height:92px}.metrics.compact .metric strong{font-size:23px}.panel{overflow:hidden;background:#fff;border-radius:15px;box-shadow:0 1px 2px #00000005;margin-bottom:17px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:19px 20px 14px}.panel-head h2{margin:0;font-size:15px;letter-spacing:-.02em}.panel-head p{margin:5px 0 0;color:#909097;font-size:10px}.search{width:205px;height:33px;padding:0 10px;border:1px solid #e1e1e6;border-radius:8px;background:#fafafd;font-size:11px}.select{height:33px;padding:0 9px;border:1px solid #e1e1e6;border-radius:8px;background:#fff;color:#555;font-size:11px}.table-scroll{overflow:auto}table{width:100%;min-width:760px;border-collapse:collapse}table.orders-table{min-width:1180px}th{padding:10px 13px;border-top:1px solid #f0f0f2;color:#96969d;text-align:left;font-size:10px;font-weight:600;white-space:nowrap}td{padding:12px 13px;border-top:1px solid #f0f0f2;text-align:left;font-size:11px;vertical-align:middle}tbody tr:hover td{background:#fbfbfd}td:first-child,th:first-child{padding-left:20px}.product{min-width:190px}.product strong{display:block;font-size:11px;color:#29292d}.product small{display:block;margin-top:4px;color:#929299;font-size:9px}.qty{font-variant-numeric:tabular-nums;font-weight:650}.good{color:var(--green)}.bad{color:var(--red)}.status{display:inline-flex;padding:4px 7px;border-radius:20px;font-size:9px;font-weight:650;white-space:nowrap}.status.good{background:#eaf7ef}.status.bad{background:#fff0f1}.status.wait{background:#fff5e6;color:#98600c}.tag{padding:5px 8px;border-radius:7px;background:#f3f3f6;color:#707077;font-size:10px;white-space:nowrap}.row-action{padding:5px 7px;border:0;background:transparent;color:var(--blue);font-size:10px;font-weight:650}.empty-cell{padding:32px;text-align:center;color:#888;font-size:12px}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding:11px 18px;border-top:1px solid #f0f0f2;color:#777;font-size:10px}.pagination select,.pagination input{height:28px;padding:0 7px;border:1px solid #e0e0e5;border-radius:7px;background:#fff;color:#333;font:inherit}.pagination select{min-width:65px}.pagination input{width:48px;text-align:center}.pagination button{height:28px;padding:0 8px;border:1px solid #e0e0e5;border-radius:7px;background:#fff;color:#333;font:inherit}.pagination button:disabled{opacity:.4;cursor:not-allowed}.progress-panel{margin-bottom:18px}.progress-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;padding:0 19px 15px}.progress-summary article{padding:12px;border-radius:10px;background:#f7f7f9}.progress-summary span{display:block;color:#888;font-size:10px}.progress-summary strong{display:block;margin-top:6px;font-size:18px;font-variant-numeric:tabular-nums}.progress-summary .remaining-value{background:#fff4e8}.progress-summary .remaining-value span,.progress-summary .remaining-value strong{color:#a35d08}.progress-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 19px 19px}.progress-card{padding:14px;border:1px solid #ededf1;border-radius:11px}.progress-card-head{display:flex;justify-content:space-between;gap:12px}.progress-card h3{margin:0;font-size:12px}.progress-card small{display:block;margin-top:4px;color:#909097;font-size:9px}.percent{font-size:19px;font-weight:700;color:var(--green)}.progress-track{height:6px;margin:11px 0 8px;overflow:hidden;border-radius:8px;background:#eeeef2}.progress-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#39bf70,#16834b)}.progress-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;color:#777;font-size:9px}.progress-stats strong{color:#333}.progress-stats .unpicked-amount,.progress-stats .unpicked-amount strong{color:#a35d08}.manage-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.manage-form{padding:0 20px 18px}.manage-form input,.manage-form select{height:36px}.simple-list{border-top:1px solid #f0f0f2}.simple-row{display:flex;justify-content:space-between;gap:12px;padding:11px 20px;border-top:1px solid #f4f4f6;font-size:11px}.simple-row small{display:block;margin-top:3px;color:#929299}.form-message{min-height:15px;color:var(--green);font-size:11px}.overlay{position:fixed;inset:0;z-index:10;display:none;align-items:center;justify-content:center;padding:18px;background:#16171b50;backdrop-filter:blur(4px)}.overlay.open{display:flex}.modal{width:min(520px,100%);max-height:90vh;overflow:auto;padding:23px;background:#fff;border-radius:18px;box-shadow:0 24px 80px #0003}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:17px}.modal-head h2{margin:0;font-size:18px}.modal-head p{margin:6px 0 0;color:#888;font-size:11px;line-height:1.5}.close{width:28px;height:28px;border:0;border-radius:50%;background:#f1f1f4;color:#666;font-size:18px}.file-drop{display:grid;place-items:center;gap:8px;margin-top:17px;padding:25px;border:1px dashed #bcbcc4;border-radius:12px;background:#fafafd;text-align:center}.file-drop input{max-width:100%;font-size:11px}.file-drop strong{font-size:12px}.file-drop span{color:#929299;font-size:10px}.upload-result{margin-top:14px;color:#555;font-size:11px;line-height:1.9}.upload-result ul{padding-left:18px}.modal-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:19px}.allocation-fields{display:grid;gap:9px}.allocation-line{display:grid;grid-template-columns:1fr auto 90px;align-items:center;gap:10px;font-size:11px}.allocation-line input{width:90px;height:33px;padding:0 8px;text-align:right;border:1px solid #ddd;border-radius:7px}.toast{position:fixed;bottom:22px;left:50%;z-index:20;transform:translate(-50%,15px);padding:10px 15px;border-radius:20px;background:#252529;color:white;font-size:11px;opacity:0;pointer-events:none;transition:.2s}.toast.show{transform:translate(-50%,0);opacity:1}.mobile-menu{display:none}
@media(max-width:1100px){.content{padding:27px 24px}.topbar{padding:0 24px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.progress-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){:root{--sidebar:0px}.sidebar{width:255px;transform:translateX(-103%);transition:.2s;box-shadow:0 12px 40px #0002}.sidebar.open{transform:translateX(0)}.main{margin:0}.topbar{height:57px;padding:0 14px}.mobile-menu{display:inline-block;margin-right:7px;border:0;background:transparent}.freshness{display:none}.user-badge{display:none}.content{padding:23px 14px 36px}.heading-row{align-items:flex-start;flex-direction:column}.heading-row h1{font-size:27px}.heading-row .toolbar{width:100%;flex-wrap:wrap}.heading-row .toolbar .button{flex:1}.panel-head{align-items:flex-start;flex-direction:column;padding:16px}.panel-actions{width:100%;flex-wrap:wrap}.search{flex:1;min-width:150px}.metrics{gap:8px}.metric{padding:14px;min-height:100px}.metric strong{font-size:23px}.progress-cards{grid-template-columns:1fr;padding:0 14px 14px}.progress-summary{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 14px 12px;gap:7px}.progress-summary article{padding:10px}.progress-summary strong{font-size:16px}.progress-stats{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:9px}.manage-grid{grid-template-columns:1fr}.pagination{justify-content:center;padding:10px 7px;gap:5px}.pagination button{padding:0 6px}.modal{padding:19px}}

table tfoot td{background:#f7f7f9;border-top:2px solid #e3e3e8;color:#333;font-weight:700;white-space:nowrap}table tfoot td small{display:block;margin-top:4px;color:#85858c;font-size:9px;font-weight:500}
.pickup-history-list{max-height:55vh;overflow:auto;border-top:0}.pickup-history-list .simple-row{align-items:center}.pickup-history-list .row-action{white-space:nowrap}

/* Keep the two inventory tables compact and easier to scan on wide screens. */
#view-overview .table-scroll table,
#view-stock .table-scroll table{width:min(100%,1200px);max-width:1200px;margin-inline:auto;table-layout:fixed}
#view-overview .table-scroll th:not(:first-child),
#view-overview .table-scroll td:not(:first-child),
#view-stock .table-scroll th:not(:first-child),
#view-stock .table-scroll td:not(:first-child){text-align:center}
#view-overview .table-scroll th:nth-child(1){width:38%}
#view-overview .table-scroll th:nth-child(2){width:9%}
#view-overview .table-scroll th:nth-child(3){width:12%}
#view-overview .table-scroll th:nth-child(4){width:13%}
#view-overview .table-scroll th:nth-child(5){width:17%}
#view-overview .table-scroll th:nth-child(6){width:11%}
#view-stock .table-scroll th:nth-child(1){width:35%}
#view-stock .table-scroll th:nth-child(2){width:8%}
#view-stock .table-scroll th:nth-child(3){width:11%}
#view-stock .table-scroll th:nth-child(4){width:11%}
#view-stock .table-scroll th:nth-child(5){width:13%}
#view-stock .table-scroll th:nth-child(6){width:12%}
#view-stock .table-scroll th:nth-child(7){width:10%}
