:root{--navy:#0f1e3a;--navy-2:#1e2e52;--blue:#2563eb;--blue-d:#1d4ed8;--ink:#0f172a;--muted:#475569;--line:#e2e8f0;--bg:#f4f6fa;--card:#fff;--green:#166534;--green-bg:#dcfce7;--red:#991b1b;--red-bg:#fee2e2;--amber:#854d0e;--amber-bg:#fef9c3;--gray-bg:#f1f5f9}*{box-sizing:border-box}html,body,#root{height:100%}body{color:var(--ink);background:var(--bg);margin:0;font:14px/1.45 Inter,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif}h1{margin:0;font-size:24px;font-weight:700}h2{margin:0 0 12px;font-size:14px;font-weight:700}p{margin:4px 0 0}button,input,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default}:focus-visible{outline-offset:2px;outline:3px solid #93c5fd}.muted{color:var(--muted)}.mono{font-variant-numeric:tabular-nums}.strong{font-weight:600}.center-screen{justify-content:center;align-items:center;height:100%;display:flex}.shell{min-height:100%;display:flex}.nav{background:var(--navy);flex-direction:column;flex:none;gap:3px;width:232px;height:100vh;padding:20px 14px;display:flex;position:sticky;top:0}.brand{padding:4px 12px 20px}.brand-name{color:#fff;font-size:15px;font-weight:700}.brand-sub{color:#94a3b8;margin-top:2px;font-size:12px}.nav-item{text-align:left;color:#cbd5e1;background:0 0;border:0;border-radius:8px;padding:9px 12px;font-size:13.5px;font-weight:500}.nav-item:hover{background:var(--navy-2);color:#fff}.nav-item.on{background:var(--blue);color:#fff}.nav-foot{border-top:1px solid var(--navy-2);color:#cbd5e1;flex-direction:column;gap:4px;margin-top:auto;padding:14px 12px 4px;font-size:12px;display:flex}.sync-line{align-items:center;gap:8px;margin-bottom:8px;display:flex}.who{color:#fff;font-size:13px;font-weight:600}.who-role{color:#94a3b8}.link-btn{color:#93c5fd;text-align:left;background:0 0;border:0;padding:4px 0;font-size:12.5px}.link-btn:hover{color:#fff}.dot{border-radius:50%;width:8px;height:8px;display:inline-block}.dot.green{background:#4ade80}.dot.amber{background:#facc15}.dot.gray{background:#94a3b8}.main{flex:1;min-width:0}.page{flex-direction:column;gap:18px;max-width:1500px;padding:28px 32px;display:flex}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;display:flex}.page-head p{max-width:760px;font-size:13px}.btn{background:#fff;border:1px solid #cbd5e1;border-radius:8px;height:36px;margin-left:8px;padding:0 14px;font-size:13px;font-weight:600}.btn:hover:not(:disabled){background:#f8fafc}.btn:disabled{color:#94a3b8}.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff;margin-left:0}.btn.primary:hover:not(:disabled){background:var(--blue-d)}.btn.primary:disabled{color:#fff;background:#93c5fd;border-color:#93c5fd}.btn.big{width:100%;height:44px;margin-top:8px;font-size:15px}.seg{background:#fff;border:1px solid #cbd5e1;border-radius:8px;display:inline-flex;overflow:hidden}.seg button{color:#334155;border:0;border-right:1px solid var(--line);background:#fff;height:36px;padding:0 14px;font-size:13px;font-weight:600}.seg button:last-child{border-right:0}.seg button.on{color:var(--blue-d);background:#eff6ff}.cards{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;display:grid}.card{text-align:left;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:16px 18px}.card:hover{border-color:#93c5fd}.card-label{color:var(--muted);font-size:12px;font-weight:600}.card-of{color:var(--muted);font-size:14px;font-weight:500}.card-value.neg{color:#b91c1c}.card-value{font-variant-numeric:tabular-nums;margin-top:6px;font-size:26px;font-weight:700}.card-sub{color:var(--muted);margin-top:2px;font-size:12px}.panel{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:18px}.panel.flush{padding:0}.fix-list{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:10px;display:grid}.fix{text-align:left;border:1px solid var(--line);background:#fff;border-radius:10px;align-items:center;gap:14px;min-height:64px;padding:12px 14px;display:flex}.fix:hover:not(:disabled){border-color:#93c5fd}.fix-text{flex-direction:column;flex:1;font-size:13.5px;display:flex}.fix-text .muted{font-size:12.5px}.fix-go{color:var(--blue-d);white-space:nowrap;font-size:12.5px;font-weight:600}.badge{text-align:center;font-variant-numeric:tabular-nums;border-radius:999px;min-width:44px;padding:4px 10px;font-size:13px;font-weight:700;display:inline-block}.badge.red{background:var(--red-bg);color:var(--red)}.badge.amber{background:var(--amber-bg);color:var(--amber)}.badge.green{background:var(--green-bg);color:var(--green)}.badge.gray{background:var(--gray-bg);color:#334155}.filters{flex-wrap:wrap;gap:12px;display:flex}.filters label{color:var(--muted);flex-direction:column;gap:4px;font-size:11.5px;font-weight:600;display:flex}.filters label:first-child{flex:280px;max-width:460px}input,select{height:38px;color:var(--ink);background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:0 10px;font-size:14px;font-weight:400}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid var(--line);white-space:nowrap;background:#f8fafc;padding:10px 12px;font-size:11.5px;font-weight:600}th:first-child{border-top-left-radius:12px}th:last-child{border-top-right-radius:12px}td{white-space:nowrap;border-bottom:1px solid #eef2f6;padding:9px 12px}td.wrap{white-space:normal;max-width:420px;color:var(--red)}.n{text-align:right;font-variant-numeric:tabular-nums}.neg{color:#b91c1c;font-weight:700}.empty{text-align:center;color:var(--muted);padding:32px}.pager{justify-content:space-between;align-items:center;padding:10px 14px;font-size:13px;display:flex}.alert{background:var(--red-bg);color:var(--red);border-radius:8px;padding:10px 12px;font-size:13px}.alert.amber{background:var(--amber-bg);color:var(--amber)}.alert.green{background:var(--green-bg);color:var(--green)}.btn.danger{color:var(--red);border-color:#fca5a5}.btn.flat{margin-left:0}.row-link{cursor:pointer}.row-link:hover td{background:#f8fafc}.back{color:var(--blue-d);text-align:left;background:0 0;border:0;padding:0;font-size:13px;font-weight:600}.head-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.head-actions .btn{margin-left:0}.progress{background:#e2e8f0;border-radius:999px;height:10px;overflow:hidden}.progress>div{background:var(--blue);border-radius:999px;height:100%}.progress-line{justify-content:space-between;margin-bottom:6px;font-size:13px;display:flex}.new-count{flex-wrap:wrap;align-items:flex-end;gap:12px;display:flex}.new-count label{color:var(--muted);flex-direction:column;gap:4px;font-size:11.5px;font-weight:600;display:flex}.new-count label:first-child{flex:260px;max-width:420px}.count-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:18px;display:grid}.scan-panel{flex-direction:column;gap:14px;display:flex}.scan-panel label{color:var(--muted);flex-direction:column;gap:6px;font-size:12px;font-weight:600;display:flex}.scan-input{height:56px;padding:0 16px;font-size:22px;font-weight:600}.qty-input{text-align:right;font-variant-numeric:tabular-nums;height:64px;padding:0 16px;font-size:30px;font-weight:700}.part-card{border:2px solid var(--blue);background:#eff6ff;border-radius:12px;padding:14px 16px}.part-sku{font-size:26px;font-weight:700}.part-name{margin-top:2px;font-size:15px}.part-meta{color:var(--muted);margin-top:6px;font-size:12.5px}.pick-list{flex-direction:column;gap:6px;display:flex}.pick{text-align:left;border:1px solid var(--line);background:#fff;border-radius:8px;min-height:44px;padding:10px 12px}.pick:hover{border-color:#93c5fd}.qty-row{align-items:flex-end;gap:10px;display:flex}.qty-row label{flex:1;min-width:0}.scan-panel input{width:100%}.qty-row .btn{height:64px;margin-left:0;padding:0 22px;font-size:15px}.voided td{color:#94a3b8;text-decoration:line-through}.voided td:last-child{text-decoration:none}.pos{color:var(--green);font-weight:700}.card.plain:hover{border-color:var(--line)}.review-actions{flex-wrap:wrap;align-items:flex-end;gap:12px;margin-top:14px;display:flex}.review-actions label{color:var(--muted);flex-direction:column;gap:4px;font-size:11.5px;font-weight:600;display:flex}.review-actions .btn{height:38px;margin-left:0}.note{color:var(--muted);margin-top:10px;font-size:12.5px}.cell-actions{justify-content:flex-end;align-items:center;gap:10px;display:inline-flex}.link-btn.dark{color:var(--blue-d)}.link-btn.dark:hover{color:var(--ink)}.link-btn:disabled{color:#94a3b8}.dot.red{background:#dc2626}.ye-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:baseline;padding:14px 18px 10px;font-size:12.5px;display:flex}.ye-head h2{margin:0;font-size:15px}.ye-item{border-bottom:1px solid #eef2f6;align-items:flex-start;gap:14px;padding:12px 18px;display:flex}.ye-item:last-child{border-bottom:0}.ye-mark{flex:none;justify-content:center;width:22px;padding-top:3px;display:flex}.ye-mark input{width:20px;height:20px;accent-color:var(--blue);cursor:pointer;padding:0}.ye-mark input:disabled{cursor:default}.ye-mark .dot{width:12px;height:12px;margin-top:4px}.ye-body{flex:1;min-width:0}.ye-title{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.ye-title .badge{min-width:0;padding:2px 9px;font-size:11.5px}.ye-toggle{text-align:left;color:var(--ink);background:0 0;border:0;padding:0;font-size:14px;font-weight:600}.ye-toggle:hover{color:var(--blue-d)}.ye-live{font-size:11.5px}.ye-value{margin-top:3px;font-size:13px}.ye-value.neg{font-weight:600}.ye-meta{margin-top:2px;font-size:12px}.ye-detail{color:var(--muted);max-width:760px;margin-top:6px;font-size:13px}.ye-links{flex-direction:column;flex:none;align-items:flex-end;gap:2px;display:flex}a.btn{color:var(--ink);align-items:center;text-decoration:none;display:inline-flex}tr.off td{color:#94a3b8}.compact th,.compact td{padding-left:9px;padding-right:9px}td select{height:32px;font-size:13px}.login-wrap{background:var(--navy);justify-content:center;align-items:center;min-height:100%;padding:24px;display:flex}.login-card{background:#fff;border-radius:14px;flex-direction:column;gap:6px;width:100%;max-width:380px;padding:32px;display:flex}.login-brand{font-size:20px;font-weight:700}.login-card label{color:var(--muted);margin-top:14px;font-size:12px;font-weight:600}.login-card input{height:42px;font-size:15px}.login-card .alert{margin-top:10px}@media (width<=760px){.shell{flex-direction:column}.nav{width:auto;height:auto;position:static}.page{padding:20px 16px}.count-grid{grid-template-columns:1fr}}.reason-cell{flex-direction:column;align-items:flex-start;gap:4px;min-width:200px;max-width:260px;display:inline-flex}.reason-cell .reason-cell{width:100%;min-width:0}.reason-cell select,.reason-cell input,select.decision{width:100%;padding:4px 6px;font-size:13px}select.decision{min-width:150px}select.decision.amber{border-color:var(--amber);background:var(--amber-bg)}select.decision.red{border-color:var(--red);background:var(--red-bg)}select.decision.green{border-color:var(--green);background:var(--green-bg)}label.check{flex-direction:row;align-items:center;gap:8px;font-weight:500;display:flex}label.check input{width:auto}.note.strong{color:inherit;font-weight:600}.month-pick{align-items:center;gap:10px;display:flex}.month-pick .btn{width:36px;margin-left:0;padding:0;font-size:18px}.chart-grid{grid-template-columns:repeat(auto-fit,minmax(360px,1fr));gap:12px;margin:18px 0;display:grid}.chart-grid h2,.panel-head h2{margin:0;font-size:15px}.chart{margin-top:10px;position:relative}.chart svg{width:100%;height:auto;display:block}.chart-tip{color:#fff;pointer-events:none;white-space:nowrap;z-index:2;background:#0f172a;border-radius:8px;flex-direction:column;gap:2px;padding:6px 10px;font-size:12px;display:flex;position:absolute;top:4px;transform:translate(-50%)}.legend{color:var(--muted);flex-wrap:wrap;gap:14px;margin-bottom:4px;font-size:12px;display:flex}.legend span{align-items:center;gap:6px;display:inline-flex}.legend i{border-radius:2px;width:14px;height:3px;display:inline-block}.legend i.dash{background:0 0;border-top:2px dashed;border-radius:0;height:0}.meter{background:#e2e8f0;border-radius:999px;height:8px;margin-top:8px;overflow:hidden}.meter i{background:#2a78d6;border-radius:999px;height:100%;display:block}.panel-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:14px 18px;display:flex}.panel.flush+.panel.flush{margin-top:18px}label.inline{flex-direction:row;align-items:center;gap:8px;font-size:13px;display:inline-flex}.goal-edit{flex-wrap:wrap;align-items:flex-end;gap:10px;display:flex}.goal-edit label{font-size:12px}.goal-edit input{width:120px}.cards.wide{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}.alert-list{flex-direction:column;gap:10px;margin-top:10px;display:flex}.stock-alert{border:1px solid var(--line);border-radius:10px;flex-direction:column;gap:3px;padding:10px 12px;font-size:13px;display:flex}.stock-alert-head{justify-content:space-between;align-items:center;gap:10px;display:flex}.export-links{color:var(--muted);flex-wrap:wrap;gap:12px;font-size:13px;display:inline-flex}.stack{flex-direction:column;gap:18px;margin:18px 0;display:flex}.stack h2{margin:0;font-size:15px}.stack .alert-list{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));display:grid}.chart-grid.single .chart{max-width:820px}.part-link{font-weight:600;font-size:inherit;text-underline-offset:3px;padding:0;-webkit-text-decoration:underline #bfdbfe;text-decoration:underline #bfdbfe}.part-link:hover{color:var(--navy)}.settings-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin-top:10px;display:grid}.settings-grid label{flex-direction:column;gap:4px;font-size:13px;font-weight:600;display:flex}.settings-grid label span{font-size:12px;font-weight:400}.goal-input{text-align:right;width:110px;padding:4px 6px;font-size:13px}
