.al-metrics .metric strong,.fm-metrics .metric strong{font-size:25px}.al-flow{display:flex;align-items:center;justify-content:center;gap:12px;padding:16px 20px;border:1px solid #D4E2FF;border-radius:8px;background:#F4F7FF;color:#475569;font-size:12px;flex:none}.al-flow span{display:flex;align-items:center;gap:8px;white-space:nowrap}.al-flow b{display:inline-flex;width:24px;height:24px;border-radius:50%;align-items:center;justify-content:center;background:#2563EB;color:white;font-weight:500}.al-flow i{color:#94A3B8;font-style:normal}.al-list-panel,.fm-list-panel{display:flex;flex-direction:column;min-height:360px}.al-list-panel>.pagination,.fm-list-panel>.pagination{margin-top:auto}.al-table table,.fm-table table{white-space:normal;table-layout:fixed;min-width:1050px}.al-table th,.al-table td,.fm-table th,.fm-table td{padding:13px 11px;vertical-align:middle;overflow-wrap:anywhere}.al-table th:nth-child(1){width:16%}.al-table th:nth-child(2){width:16%}.al-table th:nth-child(3){width:18%}.al-table th:nth-child(4){width:11%}.al-table th:nth-child(5){width:17%}.al-table th:nth-child(6){width:11%}.al-table th:nth-child(7){width:8%}.fm-table th:nth-child(1){width:19%}.fm-table th:nth-child(2){width:16%}.fm-table th:nth-child(3){width:17%}.fm-table th:nth-child(4){width:14%}.fm-table th:nth-child(5){width:19%}.fm-table th:nth-child(6){width:8%}.fm-table th:nth-child(7){width:8%}.fm-reserve-bar{display:block;height:4px;background:#E7EDF6;border-radius:4px;margin-top:8px;overflow:hidden}.fm-reserve-bar i{display:block;height:100%;background:#2563EB;border-radius:4px}.fm-detail-hero,.al-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.fm-detail-hero h2,.al-detail-head h2{font-size:20px;margin:4px 0}.fm-detail-hero p,.al-detail-head p{font-size:12px;color:#64748B}.fm-kv-grid,.al-kv-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 24px;margin-top:16px}.fm-kv-grid .kv,.al-kv-grid .kv{display:flex;flex-direction:column;gap:4px}.fm-kv-grid .kv strong,.al-kv-grid .kv strong{text-align:left}.fm-drawer,.al-drawer{width:900px!important}.fm-form-section,.al-form-section{padding:20px 0;border-bottom:1px solid #E2E8F0}.fm-form-section:first-child,.al-form-section:first-child{padding-top:0}.fm-form-section:last-child,.al-form-section:last-child{border-bottom:0;padding-bottom:0}.fm-form-section h3,.al-form-section h3{font-size:15px;font-weight:500;margin-bottom:14px}.fm-store-picker,.al-store-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}.fm-store-picker label,.al-store-picker label{display:grid;grid-template-columns:18px minmax(0,1fr);grid-template-rows:auto auto;column-gap:8px;padding:12px;border:1px solid #E2E8F0;border-radius:8px;cursor:pointer}.fm-store-picker label:has(input:checked),.al-store-picker label:has(input:checked){border-color:#93B4FF;background:#F4F7FF}.fm-store-picker input,.al-store-picker input{grid-row:1/3;width:16px;height:16px;margin-top:2px;accent-color:#2563EB}.fm-store-picker span,.al-store-picker span{font-size:12px;color:#142033}.fm-store-picker small,.al-store-picker small{font-size:10px;color:#64748B;margin-top:3px}.fm-edit-modal,.al-new-modal{width:900px!important}.al-detail-head+.metrics,.fm-detail-hero+.metrics{margin-top:2px}
@media(max-width:1100px){.al-flow{justify-content:flex-start;overflow:auto}.al-flow i{display:none}.al-flow span{border-right:1px solid #D4E2FF;padding-right:12px}.al-flow span:last-child{border:0}.al-metrics,.fm-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.fm-kv-grid,.al-kv-grid,.fm-store-picker,.al-store-picker{grid-template-columns:1fr}.fm-edit-modal .form-grid,.al-new-modal .form-grid{grid-template-columns:1fr}.fm-detail-hero,.al-detail-head{flex-wrap:wrap}.al-metrics,.fm-metrics{grid-template-columns:1fr}.al-flow{padding:12px}}

/* Headquarters allocation and POS replenishment are separate workflows. */
.al-flows{display:flex;flex-direction:column;border:1px solid #D4E2FF;border-radius:8px;background:#F4F7FF;overflow:hidden;color:#475569;font-size:12px;flex:none}.al-flow-row{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:18px;padding:12px 18px}.al-flow-row+.al-flow-row{border-top:1px solid #D4E2FF}.al-flow-row>strong{font-size:12px;font-weight:500;color:#1E4FBF}.al-flow-steps{display:flex;align-items:center;gap:10px;min-width:0}.al-flow-steps span{padding:7px 11px;background:white;border:1px solid #DCE6FA;border-radius:6px;white-space:nowrap}.al-flow-steps i{color:#94A3B8;font-style:normal;flex:none}
@media(max-width:1100px){.al-flow-row{grid-template-columns:130px minmax(0,1fr)}.al-flow-steps{overflow:auto;padding-bottom:2px}}
@media(max-width:760px){.al-flow-row{grid-template-columns:1fr;gap:8px}.al-flow-steps{align-items:stretch;flex-direction:column;overflow:visible}.al-flow-steps i{display:none}.al-flow-steps span{white-space:normal}}

.al-title-row{display:flex;align-items:center;gap:10px}.al-flow-toggle{width:34px;height:34px;padding:7px;border:1px solid #D4E2FF;border-radius:8px;background:#fff;color:#2563EB;display:inline-flex;align-items:center;justify-content:center}.al-flow-toggle:hover,.al-flow-toggle[aria-expanded=true]{background:#EFF5FF;border-color:#93B4FF}.al-flow-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.al-new-modal{width:min(1080px,calc(100vw - 48px))!important}.al-new-modal .modal-body{padding-top:16px}.al-new-modal .al-form-section{padding:14px 0}.al-new-modal .al-form-section h3{margin-bottom:10px}.al-target-grid,.al-receiver-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.al-receiver-grid{margin-top:10px}.al-field-label{display:flex!important;align-items:center;gap:7px;min-width:0}.al-field-label .pill{padding:2px 7px;font-size:10px}.al-balance{margin-left:auto;color:#64748B;font-size:10px;white-space:nowrap}.al-balance strong{color:#182338;font-weight:500}.al-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.al-section-head h3{margin:0!important}.al-sku-add{display:flex;gap:10px;align-items:center;margin:0 0 10px}.al-sku-add input{flex:1}.al-import-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;padding:10px;margin-bottom:10px;border:1px solid #D4E2FF;border-radius:8px;background:#F8FAFF}.al-import-panel textarea{height:64px;min-height:64px}.al-import-panel>div{display:flex;gap:8px}.al-sku-table{border:1px solid #E2E8F0;border-radius:8px;overflow:auto}.al-sku-table table{min-width:850px;white-space:normal;table-layout:fixed}.al-sku-table th,.al-sku-table td{padding:8px 10px;height:50px;vertical-align:middle}.al-sku-table th:nth-child(1){width:22%}.al-sku-table th:nth-child(2){width:21%}.al-sku-table th:nth-child(3){width:15%}.al-sku-table th:nth-child(4),.al-sku-table th:nth-child(5){width:14%}.al-sku-table th:nth-child(6){width:8%}.al-sku-table td>span{display:block;color:#64748B;font-size:11px;margin-top:2px}.al-sku-table td>strong{font-weight:500}.al-sku-table input{width:100%;height:32px;padding:0 8px}.al-sku-table .empty{height:74px;text-align:center}.al-sku-summary{display:flex;align-items:center;justify-content:flex-end;gap:20px;padding:8px 2px;font-size:12px;color:#64748B}.al-sku-summary strong{font-size:16px;font-weight:500;color:#182338}.al-reason-field textarea{height:56px;min-height:56px}.al-target-section{padding-top:0!important}
.al-import-modal{width:min(980px,calc(100vw - 48px))!important}.al-import-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.al-import-head>div{display:flex;flex-direction:column;gap:3px}.al-import-head span{font-size:12px;color:#64748B}.al-import-file{display:block;padding:14px;border:1px solid #D4E2FF;border-radius:8px;background:#F8FAFF}.al-import-file>span{display:block;margin-bottom:8px;font-size:13px;font-weight:500}.al-import-file input{width:100%;background:#fff}.al-import-preview{margin-top:16px}.al-import-preview .table-scroll{max-height:390px}.al-import-preview th,.al-import-preview td{padding:9px 10px}.al-import-state{padding:30px 16px;text-align:center;color:#64748B;border:1px dashed #CBD5E1;border-radius:8px;background:#F8FAFC}.al-import-result{margin:0 0 10px;font-weight:500}.al-import-error{color:#C44747}
@media(max-width:760px){.al-page-heading{align-items:flex-start}.al-target-grid,.al-receiver-grid{grid-template-columns:1fr}.al-import-panel{grid-template-columns:1fr}.al-import-panel>div{justify-content:flex-end}.al-sku-add{align-items:stretch;flex-direction:column}.al-new-modal{width:100vw!important}.al-title-row h1{font-size:22px}}

/* Smart allocation follows the legacy allocation console: store index on the left, dense fact table on the right. */
.sa-asof{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 14px;border:1px solid #cbdcfb;border-radius:8px;background:#f5f8ff;color:#52617a;font-size:11px}.sa-asof>div{display:flex;align-items:center;gap:12px;min-width:0}.sa-asof strong{display:inline-flex;align-items:center;flex:none;padding:3px 9px;border:1px solid #b9d1ff;border-radius:999px;background:#eaf2ff;color:#1e5ccc;font-size:11px}.sa-asof span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sa-reference-kpis{display:grid;grid-template-columns:repeat(8,minmax(112px,1fr));gap:8px}.sa-reference-kpis .metric{min-height:78px;padding:10px 12px;border-radius:8px;box-shadow:0 1px 0 #13243d05}.sa-reference-kpis .metric p{font-size:11px}.sa-reference-kpis .metric strong{font-size:19px;line-height:28px;margin:2px 0}.sa-reference-kpis .metric small{display:block;overflow:hidden;color:#7d8aa0;font-size:10px;line-height:15px;text-overflow:ellipsis;white-space:nowrap}
.sa-reference-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:12px;align-items:start;min-width:0}.sa-store-panel,.sa-detail-panel{overflow:hidden;border-radius:9px}.sa-store-panel{position:sticky;top:0}.sa-store-panel .panel-head{min-height:47px;padding:12px 14px;border-bottom:1px solid var(--line);background:#f8fafd}.sa-store-panel .panel-head h2{font-size:13px;font-weight:600}.sa-store-search{display:flex;flex-wrap:wrap;gap:6px;padding:9px 10px;border-bottom:1px solid var(--line)}.sa-store-search input{width:auto;min-width:0;flex:1;height:34px;padding:0 9px;font-size:12px}.sa-store-search select{order:3;width:100%;height:32px;padding:0 8px;font-size:11.5px}.sa-store-search .btn{min-height:34px;padding:0 10px;font-size:12px}.sa-store-list{max-height:calc(100vh - 387px);min-height:210px;overflow:auto}.sa-store-list>.empty{padding:34px 12px}.sa-store-item{display:flex;width:100%;flex-direction:column;gap:4px;padding:10px 12px;border:0;border-bottom:1px solid #edf1f6;background:#fff;color:var(--ink);text-align:left}.sa-store-item:hover{background:#f8faff}.sa-store-item.active{padding-left:9px;border-left:3px solid var(--brand);background:#eef4ff}.sa-store-item>strong{font-size:12.5px;font-weight:600}.sa-store-item>small{color:#7b879b;font-size:10.5px;line-height:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sa-store-item>span{display:flex;flex-wrap:wrap;gap:3px 9px;color:#69778d;font-size:10.5px}.sa-store-item>span b{font-weight:500}.sa-store-item>span:last-child{justify-content:space-between;color:#1f5dc7}.sa-store-item em{color:#b45309;font-style:normal}.sa-detail-column{min-width:0}.sa-detail-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:47px;padding:8px 12px;border-bottom:1px solid var(--line);background:#f8fafd}.sa-detail-head>div{display:flex;align-items:center;gap:9px;min-width:0}.sa-detail-head h2{font-size:13px;font-weight:600;white-space:nowrap}.sa-detail-head span{color:var(--muted);font-size:11px}.sa-detail-head .btn{min-height:32px;padding:0 10px;font-size:11.5px}.sa-check{display:flex;align-items:center;gap:5px;color:#52617a;font-size:11.5px;white-space:nowrap}.sa-check input{width:15px;height:15px;margin:0;accent-color:var(--brand)}
.sa-reference-filter{display:grid;grid-template-columns:minmax(210px,1.7fr) repeat(5,minmax(112px,1fr)) auto;gap:7px;align-items:end;padding:9px 12px;border-bottom:1px solid var(--line);background:#fff}.sa-reference-filter label{display:flex;min-width:0;flex-direction:column;gap:3px}.sa-reference-filter label>span{overflow:hidden;color:#68778e;font-size:10.5px;text-overflow:ellipsis;white-space:nowrap}.sa-reference-filter input,.sa-reference-filter select{width:100%;height:32px;padding:0 8px;border-radius:6px;font-size:11.5px}.sa-filter-actions{display:flex;gap:6px}.sa-filter-actions .btn{min-height:32px;padding:0 10px;font-size:11.5px}.sa-size-panel{margin:10px 12px 0;border-radius:7px}.sa-size-panel .panel-head{padding:8px 10px;border-bottom:1px solid var(--line);background:#f4f7fb}.sa-size-panel .panel-head h2{font-size:12px}.sa-size-panel .table-scroll{max-height:260px;padding:0;overflow:auto}.sa-size-table{min-width:720px;font-size:11.5px}.sa-size-table th,.sa-size-table td{height:auto;padding:6px 8px;border-right:1px solid #edf1f6;text-align:center}.sa-size-table th{position:sticky;top:0;z-index:1;background:#eaf3ec;color:#4c6655}.sa-size-table th:first-child,.sa-size-table td:first-child{position:sticky;left:0;z-index:2;min-width:170px;text-align:left}.sa-size-table th:first-child{z-index:3}.sa-size-table td:first-child{background:#fff}.sa-size-table td b{display:block;font-size:13px}.sa-size-table .sub{font-size:10px;line-height:15px;white-space:nowrap}
.sa-workbench-table{min-width:0;border-top:1px solid var(--line)}.sa-workbench-table .table-scroll{max-height:58vh;padding:0;overflow:auto}.sa-workbench-table table{width:2689px;min-width:2689px;table-layout:fixed;font-size:11.5px}.sa-workbench-table th,.sa-workbench-table td{box-sizing:border-box;height:auto;padding:7px 8px;overflow:hidden;border-right:1px solid #edf1f6;vertical-align:middle}.sa-workbench-table th{position:sticky;top:0;z-index:3;height:38px;background:#f5f7fb;color:#59687e;font-size:11px}.sa-workbench-table tbody tr:hover td{background:#f8faff}.sa-workbench-table th:nth-child(1),.sa-workbench-table td:nth-child(1){position:sticky;left:0;z-index:4;width:52px;min-width:52px;max-width:52px;text-align:center}.sa-workbench-table th:nth-child(2),.sa-workbench-table td:nth-child(2){position:sticky;left:52px;z-index:4;width:220px;min-width:220px;max-width:220px;white-space:normal;overflow-wrap:anywhere;word-break:break-word;box-shadow:4px 0 7px #13243d0a}.sa-workbench-table th:nth-child(1),.sa-workbench-table th:nth-child(2){z-index:5}.sa-workbench-table td:nth-child(1),.sa-workbench-table td:nth-child(2){background:#fff}.sa-workbench-table tbody tr:hover td:nth-child(1),.sa-workbench-table tbody tr:hover td:nth-child(2){background:#f8faff}.sa-workbench-table th:nth-child(n+5):nth-child(-n+9){background:#eef7f0;color:#4c6655}.sa-workbench-table th:nth-child(n+10):nth-child(-n+13){background:#eef4ff;color:#42639d}.sa-workbench-table th:nth-child(20),.sa-workbench-table th:nth-child(21){background:#fff5e8;color:#96611a}.sa-workbench-table td:nth-child(n+5):nth-child(-n+21){text-align:right;font-variant-numeric:tabular-nums}.sa-workbench-table td:nth-child(2) strong{display:block;font-weight:600}.sa-workbench-table td:nth-child(2) .sub{display:block;line-height:16px;white-space:normal}.sa-sort{display:flex;width:100%;align-items:center;justify-content:space-between;gap:4px;padding:0;border:0;background:transparent;color:inherit;font-size:inherit;white-space:nowrap}.sa-sort:hover{color:var(--brand)}.sa-sort span{font-size:9px;opacity:.65}.sa-suggestion{color:var(--brand);font-size:14px}.sa-blocked{color:#b45309;font-weight:600}.sa-missing{color:#9a6b1f}.sa-na{color:var(--muted)}.sa-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:9px 12px;border-top:1px solid var(--line);background:#fbfcfe;color:var(--muted);font-size:11.5px}.sa-pager>span{margin-right:auto}.sa-pager label{display:flex;align-items:center;gap:5px}.sa-pager select{width:68px;height:31px;padding:0 7px;font-size:11.5px}.sa-pager .btn{min-height:31px;padding:0 10px;font-size:11.5px}.sa-footnote{margin:8px 2px 0;color:var(--muted);font-size:11px}
.sa-workbench-table th:nth-child(3),.sa-workbench-table td:nth-child(3){width:90px}.sa-workbench-table th:nth-child(4),.sa-workbench-table td:nth-child(4){width:75px}.sa-workbench-table th:nth-child(n+5):nth-child(-n+9),.sa-workbench-table td:nth-child(n+5):nth-child(-n+9){width:88px}.sa-workbench-table th:nth-child(n+10):nth-child(-n+13),.sa-workbench-table td:nth-child(n+10):nth-child(-n+13){width:92px}.sa-workbench-table th:nth-child(n+14):nth-child(-n+19),.sa-workbench-table td:nth-child(n+14):nth-child(-n+19){width:96px}.sa-workbench-table th:nth-child(20),.sa-workbench-table td:nth-child(20),.sa-workbench-table th:nth-child(21),.sa-workbench-table td:nth-child(21){width:92px}.sa-workbench-table th:nth-child(22),.sa-workbench-table td:nth-child(22){width:280px;white-space:normal}.sa-workbench-table th:nth-child(23),.sa-workbench-table td:nth-child(23),.sa-workbench-table th:nth-child(24),.sa-workbench-table td:nth-child(24){width:152px;white-space:normal;overflow-wrap:anywhere}.sa-workbench-table th:nth-child(25),.sa-workbench-table td:nth-child(25){width:100px;white-space:normal}.sa-explanation{display:block;max-width:260px;color:#52617a;font-size:10.5px;line-height:16px}
/* The source console uses a compact image column and narrow numeric facts so more operating data stays visible. */
.sa-store-item>.sa-store-level{align-self:flex-start;width:auto;padding:1px 6px;border:1px solid #c9d9f7;border-radius:999px;background:#f2f6ff;color:#315eaa;font-size:10px;line-height:16px}.sa-store-item>.sa-store-level.is-missing{border-color:#e5e7eb;background:#f8fafc;color:#7b879b}
.sa-store-item>.sa-store-owner{align-self:flex-start;width:auto;padding:1px 6px;border:1px solid #bbdfc4;border-radius:999px;background:#f0f9f2;color:#25723a;font-size:10px;line-height:16px}.sa-store-item>.sa-store-owner.is-history{border-color:#bfd5ff;background:#eef5ff;color:#2459a8}.sa-store-item>.sa-store-owner.is-missing{border-color:#f0d39b;background:#fff8e8;color:#9a6218}.sa-review-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #bfd5ff;background:#eef5ff}.sa-review-bar>div:first-child{display:flex;min-width:0;flex-direction:column;gap:2px}.sa-review-bar strong{font-size:12px;color:#1f4f9d}.sa-review-bar span{overflow:hidden;color:#607089;font-size:10.5px;text-overflow:ellipsis;white-space:nowrap}.sa-review-bar>div:last-child{display:flex;gap:6px}.sa-review-bar .btn{min-height:31px;padding:0 9px;font-size:11px}.sa-review-reason{display:flex;min-width:220px;flex:1;align-items:center;justify-content:flex-end;gap:8px}.sa-review-reason span{flex:0 0 auto}.sa-review-reason input{width:min(320px,100%);height:31px;border:1px solid #a9c3ec;border-radius:5px;background:#fff;padding:0 9px;color:#20324d}.sa-review-choice{display:flex;align-items:center;justify-content:flex-end;gap:5px;color:var(--brand)}.sa-review-choice>input[type="checkbox"]{width:15px;height:15px;margin:0;accent-color:var(--brand)}.sa-review-choice .sa-review-quantity{width:52px;height:27px;margin:0;border:1px solid #a9c3ec;border-radius:4px;padding:0 4px;text-align:right;color:#173f80}.sa-review-choice strong{font-size:13px}@media(max-width:1100px){.sa-review-bar{align-items:stretch;flex-wrap:wrap}.sa-review-reason{order:3;min-width:100%;justify-content:flex-start}.sa-review-reason input{width:320px}}
.sa-workbench-table table{width:2146px;min-width:2146px;table-layout:fixed}.sa-workbench-table th,.sa-workbench-table td{padding:6px 5px}.sa-workbench-table th{height:44px;line-height:14px;white-space:normal}
.sa-workbench-table th:nth-child(1),.sa-workbench-table td:nth-child(1){left:0;width:40px;min-width:40px;max-width:40px}.sa-workbench-table th:nth-child(2),.sa-workbench-table td:nth-child(2){position:sticky;left:40px;z-index:4;width:50px;min-width:50px;max-width:50px;padding:4px;text-align:center;background:#fff}.sa-workbench-table th:nth-child(3),.sa-workbench-table td:nth-child(3){position:sticky;left:90px;z-index:4;width:196px;min-width:196px;max-width:196px;white-space:normal;overflow-wrap:anywhere;word-break:break-word;box-shadow:4px 0 7px #13243d0a;background:#fff}.sa-workbench-table th:nth-child(1),.sa-workbench-table th:nth-child(2),.sa-workbench-table th:nth-child(3){z-index:5}.sa-workbench-table tbody tr:hover td:nth-child(1),.sa-workbench-table tbody tr:hover td:nth-child(2),.sa-workbench-table tbody tr:hover td:nth-child(3){background:#f8faff}
.sa-product-image,.sa-no-image{display:flex;width:36px;height:44px;margin:auto;align-items:center;justify-content:center;border:1px solid #e2e8f0;border-radius:4px;background:#fff}.sa-product-image{object-fit:contain}.sa-no-image{color:#94a3b8;font-size:9px;line-height:12px;white-space:normal}
.sa-workbench-table th:nth-child(4),.sa-workbench-table td:nth-child(4){width:68px}.sa-workbench-table table th:nth-child(5),.sa-workbench-table table td:nth-child(5){width:54px}.sa-workbench-table th:nth-child(n+6):nth-child(-n+10),.sa-workbench-table td:nth-child(n+6):nth-child(-n+10){width:64px}.sa-workbench-table th:nth-child(n+11):nth-child(-n+14),.sa-workbench-table td:nth-child(n+11):nth-child(-n+14){width:68px}.sa-workbench-table th:nth-child(n+15):nth-child(-n+20),.sa-workbench-table td:nth-child(n+15):nth-child(-n+20){width:72px}.sa-workbench-table th:nth-child(21),.sa-workbench-table td:nth-child(21),.sa-workbench-table th:nth-child(22),.sa-workbench-table td:nth-child(22){width:76px}.sa-workbench-table th:nth-child(23),.sa-workbench-table td:nth-child(23){width:224px;white-space:normal}.sa-workbench-table th:nth-child(24),.sa-workbench-table td:nth-child(24),.sa-workbench-table th:nth-child(25),.sa-workbench-table td:nth-child(25){width:126px;white-space:normal;overflow-wrap:anywhere}.sa-workbench-table th:nth-child(26),.sa-workbench-table td:nth-child(26){width:86px;white-space:normal}
.sa-workbench-table table th:nth-child(5):nth-child(5),.sa-workbench-table table td:nth-child(5):nth-child(5){width:54px}
.sa-workbench-table th:nth-child(4),.sa-workbench-table th:nth-child(5),.sa-workbench-table th:nth-child(n+15):nth-child(-n+20),.sa-workbench-table th:nth-child(n+23):nth-child(-n+26){background:#f5f7fb;color:#59687e}.sa-workbench-table th:nth-child(n+6):nth-child(-n+10){background:#eef7f0;color:#4c6655}.sa-workbench-table th:nth-child(n+11):nth-child(-n+14){background:#eef4ff;color:#42639d}.sa-workbench-table th:nth-child(21),.sa-workbench-table th:nth-child(22){background:#fff5e8;color:#96611a}.sa-workbench-table td:nth-child(n+6):nth-child(-n+22){text-align:right;font-variant-numeric:tabular-nums}.sa-workbench-table td:nth-child(4),.sa-workbench-table td:nth-child(5){text-align:center}.sa-workbench-table td:nth-child(3) strong{display:block;font-weight:600}.sa-workbench-table td:nth-child(3) .sub{display:block;line-height:16px;white-space:normal}.sa-workbench-table .sa-sort{white-space:normal;line-height:14px}.sa-explanation{max-width:214px}
.sa-rule-status,.sa-history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border:1px solid #cbdcfb;border-radius:8px;background:#f5f8ff}.sa-rule-status>span,.sa-history-toolbar span{color:var(--muted);font-size:12px}.sa-history-toolbar>div{display:flex;flex-direction:column;gap:2px}.sa-param-input{width:120px;height:34px}.sa-rule-save{display:flex;justify-content:flex-end;padding:0 20px 18px}.sa-activate{display:flex;gap:7px}.sa-activate input{width:160px;height:34px}.sa-activate .btn{min-height:34px;padding:0 10px}.sa-detail-column+.sa-footnote{margin-top:8px}
@media(max-width:1500px){.sa-reference-kpis{grid-template-columns:repeat(4,minmax(120px,1fr))}.sa-reference-filter{grid-template-columns:minmax(210px,2fr) repeat(3,minmax(110px,1fr))}.sa-filter-actions{grid-column:auto}.sa-store-list{max-height:calc(100vh - 430px)}}
@media(max-width:1100px){.sa-reference-layout{grid-template-columns:230px minmax(0,1fr)}.sa-reference-filter{grid-template-columns:repeat(3,minmax(130px,1fr))}.sa-reference-filter .wide{grid-column:span 2}.sa-filter-actions{justify-content:flex-end}.sa-reference-kpis{grid-template-columns:repeat(4,minmax(110px,1fr))}}
@media(max-width:820px){.sa-asof,.sa-detail-head,.sa-rule-status,.sa-history-toolbar{align-items:flex-start;flex-direction:column}.sa-reference-layout{grid-template-columns:1fr}.sa-store-panel{position:static}.sa-store-list{display:grid;max-height:280px;grid-template-columns:repeat(2,minmax(0,1fr))}.sa-reference-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.sa-reference-filter .wide{grid-column:span 2}.sa-filter-actions{grid-column:span 2}.sa-reference-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.sa-reference-kpis,.sa-store-list,.sa-reference-filter{grid-template-columns:1fr}.sa-reference-filter .wide,.sa-filter-actions{grid-column:auto}.sa-filter-actions{justify-content:stretch}.sa-filter-actions .btn{flex:1}.sa-pager{flex-wrap:wrap;justify-content:flex-start}.sa-pager>span{width:100%}}
.al-store-control{position:relative;display:flex;min-width:0}.al-store-control input{width:100%;padding-right:44px}.al-store-clear{position:absolute;right:24px;top:50%;transform:translateY(-50%);width:22px;height:22px;border:0;border-radius:50%;padding:0;background:#EEF2F7;color:#64748B;font-size:17px;line-height:22px}.al-store-clear:hover{background:#DBEAFE;color:#2563EB}.al-store-clear[hidden]{display:none}.al-courier-control{display:flex;align-items:center;gap:8px;min-width:0}.al-courier-control select{flex:1;width:100%}.al-courier-control select:disabled{background:#F8FAFC;color:#64748B}.al-courier-control .table-link{flex:none}
.al-detail-drawer{width:min(1040px,calc(100vw - 216px))!important}.al-detail-drawer .modal-head{padding:14px 20px}.al-detail-drawer .modal-body{padding:14px 20px;gap:14px}.al-detail-drawer .modal-foot{padding:10px 20px}.al-detail-section{flex:none;min-width:0}.al-detail-section h3,.al-detail-history h3{font-size:14px;font-weight:500;margin-bottom:7px}.al-order-info{width:100%;table-layout:fixed;white-space:normal;border:1px solid #E2E8F0}.al-order-info th,.al-order-info td{padding:7px 10px;height:auto;vertical-align:top;font-size:12px;border:1px solid #E2E8F0;overflow-wrap:anywhere}.al-order-info th{width:13%;color:#64748B;background:#F8FAFC;font-weight:400}.al-order-info td{width:37%}.al-order-info .pill{padding:1px 7px;font-size:11px}.al-detail-skus>.table-scroll{padding:0;max-height:42vh;overflow:auto;border:1px solid #E2E8F0;border-radius:6px}.al-detail-skus table{min-width:700px;table-layout:fixed;white-space:normal}.al-detail-skus th,.al-detail-skus td{font-size:12px;padding:7px 9px;vertical-align:middle;overflow-wrap:anywhere}.al-detail-skus th:nth-child(1){width:22%}.al-detail-skus th:nth-child(2){width:26%}.al-detail-skus th:nth-child(3),.al-detail-skus th:nth-child(4){width:12%}.al-detail-skus th:nth-child(5),.al-detail-skus th:nth-child(6){width:14%}.al-detail-skus .sub{font-size:11px;line-height:17px}.al-detail-history{padding-top:2px}.al-detail-history p{display:flex;flex-wrap:wrap;gap:10px;font-size:11px;color:#64748B;margin:3px 0}.al-detail-history strong{font-weight:400;color:#334155}
@media(max-width:900px){.al-detail-drawer{width:calc(100vw - 48px)!important}.al-order-info th{width:18%}.al-order-info td{width:32%}}
@media(max-width:760px){.al-detail-drawer{width:100vw!important}.al-detail-drawer .modal-body{padding:12px}.al-order-info th,.al-order-info td{padding:6px;font-size:11px}}
.al-detail-section>.table-scroll{padding:0;overflow:auto}.al-detail-section table{white-space:normal}.al-detail-section td,.al-detail-section th{padding:7px 9px;font-size:12px;vertical-align:top;overflow-wrap:anywhere}.al-detail-section .sub{font-size:11px}.al-detail-drawer .modal-foot{flex-wrap:wrap}

.al-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 12px;padding:16px 20px;border-bottom:1px solid #E2E8F0}.al-filter-field{min-width:0}.al-filter-field>label{display:block;font-size:12px;color:#64748B;margin-bottom:6px}.al-filter-field>input,.al-filter-field>select{width:100%;height:36px;min-width:0;font-size:12px}.al-filter-dates{grid-column:span 2}.al-filter-dates>div{display:flex;align-items:center;gap:8px}.al-filter-dates input{width:100%;height:36px;min-width:0;font-size:12px}.al-filter-dates span{color:#94A3B8;font-size:12px;flex:none}.al-filter-actions{display:flex;justify-content:flex-end;align-items:flex-end;gap:8px}.al-filter-actions .btn{height:36px}.al-list-panel .al-table table{min-width:860px}.al-list-panel .al-table th:nth-child(1){width:25%}.al-list-panel .al-table th:nth-child(2){width:23%}.al-list-panel .al-table th:nth-child(3){width:8%;white-space:nowrap}.al-list-panel .al-table th:nth-child(4){width:12%}.al-list-panel .al-table th:nth-child(5){width:15%}.al-list-panel .al-table th:nth-child(6){width:11%}.al-list-panel .al-table th:nth-child(7){width:6%}.al-list-panel .al-table td:nth-child(3){white-space:nowrap}
@media(max-width:1050px){.al-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.al-filter-actions{grid-column:span 2}}
@media(max-width:600px){.al-filters{grid-template-columns:1fr;padding:14px}.al-filter-dates,.al-filter-actions{grid-column:span 1}}
.al-list-panel .al-table table{min-width:1000px;table-layout:fixed}
.al-list-panel .al-table th:nth-child(1){width:164px}
.al-list-panel .al-table th:nth-child(2){width:184px}
.al-list-panel .al-table th:nth-child(3){width:76px}
.al-list-panel .al-table th:nth-child(4){width:96px}
.al-list-panel .al-table th:nth-child(5){width:176px}
.al-list-panel .al-table th:nth-child(6){width:116px}
.al-list-panel .al-table th:nth-child(7){width:170px}
.al-list-panel .al-table th,.al-list-panel .al-table td{padding:10px;line-height:20px;overflow-wrap:break-word}
.al-list-panel .al-table .table-link{white-space:nowrap;font-size:12px}
.al-list-panel .al-table th:last-child,.al-list-panel .al-table td:last-child{position:sticky;right:0;background:white;box-shadow:-3px 0 6px #13243d0b}
.al-list-panel .al-table th:last-child{background:#F8FAFD;z-index:2}
.al-load-error{padding:8px 20px;font-size:12px;color:var(--danger)}
.al-product-cell{display:flex;gap:10px;align-items:center;min-width:0}.al-product-cell img,.al-no-image{width:44px;height:52px;object-fit:contain;flex:none;border:1px solid var(--line);border-radius:4px;background:#fff}.al-no-image{display:flex;align-items:center;justify-content:center;font-size:10px;color:var(--muted)}.al-product-cell>div{min-width:0}.al-product-cell strong{font-weight:500}.al-detail-skus th:first-child{width:30%}.al-product-cell .sub{line-height:17px}
.al-erp-order{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.al-erp-order strong{color:var(--brand);font-weight:500;font-variant-numeric:tabular-nums}.al-erp-order .table-link{font-size:11px}
.al-erp-summary{display:block}.al-erp-summary>.sub{display:block;margin-top:3px}
.al-order-source,.al-order-created{display:block}.al-order-source{margin-top:4px}.al-order-created{margin-top:3px;white-space:nowrap;font-variant-numeric:tabular-nums}
.al-store-nature,.al-store-subject{display:block}.al-store-nature{margin-top:3px;color:#334155}.al-store-subject{font-size:11px;line-height:16px}
.al-row-actions{display:flex;flex-wrap:wrap;gap:3px 10px;align-items:center}.al-row-actions .table-link{padding:0}.al-row-actions .al-row-danger{color:#B42318}

/* Keep the allocation overview compact while leaving the list as the visual focus. */
.al-metrics{gap:10px}
.al-metrics .metric{min-height:76px;padding:11px 16px}
.al-metrics .metric p{line-height:18px}
.al-metrics .metric strong{font-size:22px;line-height:30px;margin:1px 0}
.al-metrics .metric small:empty{display:none}
.al-lifecycle-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.al-filters{gap:12px;padding:14px 20px}
.al-filter-query{grid-column:span 2}
@media(max-width:1050px){.al-filter-query{grid-column:span 2}}
@media(max-width:1050px){.al-lifecycle-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.al-filter-query,.al-filter-dates,.al-filter-actions{grid-column:span 1}.al-lifecycle-metrics{grid-template-columns:1fr}}

.al-item-error,.al-create-error{display:block;color:#B42318;font-size:11px;line-height:16px;margin:4px 0 0;white-space:normal}.al-item-error:empty,.al-create-error:empty{display:none}.al-sku-table input[aria-invalid="true"]{border-color:#B42318}
.al-sku-table th:nth-child(2){width:19%}.al-sku-table th:nth-child(3){width:14%}.al-sku-table th:nth-child(4){width:23%}.al-quantity-control{display:flex;align-items:center;gap:8px}.al-quantity-control input{flex:1;min-width:62px;width:0}.al-quantity-available{flex:none;color:#64748B;font-size:11px;white-space:nowrap}
