:root{color-scheme:light;--bg:#f4f6fa;--paper:#fff;--ink:#151e2f;--muted:#52627a;--line:#dce2ec;--primary:#244baa;--soft:#eaf0ff;--nav:#17233a;--danger:#972e25;--radius:12px;font-family:system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}body{margin:0}[hidden]{display:none!important}button,input,select,textarea{font:inherit}button,input,select,textarea{min-height:38px}button{cursor:pointer;white-space:nowrap}button:disabled{cursor:wait;opacity:.6}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #4770d7;outline-offset:2px}button{border:1px solid transparent;border-radius:8px;padding:7px 14px;font-weight:630}.primary{background:var(--primary);color:white}.primary:hover{background:#1b3985}.secondary{background:var(--paper);border-color:var(--line);color:var(--ink)}.secondary:hover{background:var(--soft)}.link{border:none;background:transparent;padding:4px 6px;min-height:30px;color:var(--primary)}.link:hover{text-decoration:underline}.danger{color:var(--danger)}
.shell{display:grid;grid-template-columns:222px minmax(0,1fr);min-height:100dvh}.sidebar{position:sticky;top:0;display:flex;flex-direction:column;height:100dvh;background:var(--nav);color:#f4f6ff;padding:24px 15px 16px}.brand{display:flex;gap:10px;align-items:center;padding:2px 5px 23px}.brand-mark{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:10px;background:#c8d8ff;color:#173271;font-size:20px;font-weight:750}.brand strong{display:block;font-size:15px}.brand small{display:block;color:#b9c5da;margin-top:3px;font-size:12px}.sidebar nav{display:grid;gap:5px}.sidebar nav button,.logout{width:100%;text-align:left;color:#e1e8f7;background:transparent;padding:9px 11px}.sidebar nav button:hover,.logout:hover{background:#233652}.sidebar nav button[aria-current=page]{background:#2d4470;color:#fff}.nav-icon{display:inline-block;width:23px;color:#b3c8fa}.logout{margin-top:auto;color:#c3cfe6}
main{padding:28px clamp(18px,3vw,42px) 52px;width:100%;max-width:1680px;margin-inline:auto}.page-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.page-head h1,.login-card h1{font-size:27px;margin:0 0 5px;letter-spacing:-.035em}.page-head p,.login-card p{color:var(--muted);line-height:1.55;margin:0}.toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin-bottom:17px}.toolbar label{min-width:126px}.toolbar .grow{flex:1;min-width:185px}.toolbar button{align-self:end}.toolbar output{align-self:center;color:var(--muted);font-size:12px}.setup-note{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;background:var(--soft);color:#1c3674;border:1px solid #cbd9fa;border-radius:var(--radius);padding:10px 13px;margin-bottom:16px}
label,.field{display:grid;gap:5px;min-width:0;color:#334159;font-weight:600;font-size:13px}input,select,textarea{width:100%;min-width:0;border:1px solid #c5cfdf;border-radius:8px;color:var(--ink);background:var(--paper);padding:8px 10px}input::placeholder,textarea::placeholder{color:#596984}textarea{resize:vertical}label small,.hint{font-weight:400;color:var(--muted);line-height:1.55;font-size:12px}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.kpi,.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius)}.kpi{padding:14px 16px}.kpi span,.kpi small{color:var(--muted);display:block}.kpi small{font-size:12px;margin-top:4px}.kpi strong{display:block;font-variant-numeric:tabular-nums;font-size:clamp(19px,2.05vw,30px);line-height:1.25;margin-top:5px;overflow-wrap:anywhere}.kpi.attention{border-top:3px solid #ac4638;padding-top:12px}.panel{margin:0 0 17px;overflow:hidden}.panel-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:7px;padding:13px 16px}.panel-head h2{font-size:16px;margin:0}.panel-head p{color:var(--muted);margin:0;font-size:12px}.table-wrap{overflow:auto}.table-wrap table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}.table-wrap th,.table-wrap td{padding:10px 14px;border-top:1px solid var(--line)}.table-wrap th{background:#f4f6fb;color:#42536e;font-size:12px;font-weight:700}.table-wrap tr:hover td{background:#f8faff}.table-wrap .num{text-align:right;font-variant-numeric:tabular-nums}.note-cell{white-space:normal;min-width:120px;max-width:265px;overflow-wrap:anywhere}.empty{padding:24px 16px;color:var(--muted);border-top:1px solid var(--line);margin:0}.tag{display:inline-block;padding:3px 7px;border-radius:5px;background:#eaf0fa;color:#354868;font-size:12px}.tag.red{background:#fbece9;color:#872b24}.tag.green{background:#e8f5ed;color:#23583a}.tag.amber{background:#fff0cd;color:#843b0d}.voided{color:var(--muted)}
.gate{display:grid;place-items:center;min-height:100dvh;padding:20px}.login-card{width:min(100%,390px);display:grid;gap:14px;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:26px}.login-card h1{margin:0}.login-card .error,.error{color:var(--danger);font-size:13px;margin:0}.error:empty{display:none}.notice{position:fixed;right:18px;bottom:18px;z-index:2;background:var(--nav);color:white;border-radius:8px;padding:12px 16px;max-width:calc(100vw - 36px)}
dialog{width:min(600px,calc(100vw - 24px));max-height:calc(100dvh - 24px);border:1px solid var(--line);border-radius:var(--radius);padding:0;color:var(--ink);background:var(--paper)}dialog::backdrop{background:#11213e72}dialog form{padding:16px 19px}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.modal-head h2{font-size:19px;margin:0}.icon-button{min-height:32px;padding:0 8px;font-size:22px;line-height:1;background:transparent;color:var(--muted)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px 13px}.form-grid .full{grid-column:1/-1}.amount-preview{margin:0;padding:10px 12px;color:#243f7d;background:var(--soft);border-radius:8px;font-variant-numeric:tabular-nums}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}#edit-error{margin-top:9px}.break-text{white-space:normal;overflow-wrap:anywhere}
@media(max-width:990px){.shell{grid-template-columns:178px minmax(0,1fr)}.sidebar{padding-inline:10px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
.account-actions{margin-top:auto;display:grid;gap:3px}
.review-desk-entry{display:block;text-decoration:none;font-weight:630;border-radius:8px}
.orders-stock{grid-template-columns:repeat(3,minmax(0,1fr))}
.page-head-actions{display:flex;flex:none;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.filter-actions{display:flex;align-items:center;gap:8px;flex:none}
@media(max-width:700px){.page-head-grouped{flex-wrap:wrap;gap:10px}.page-head-actions{margin-left:auto;max-width:100%}}
.order-scroll{max-block-size:clamp(300px,68dvh,720px);scroll-padding-block-start:68px}
.order-scroll:focus-visible{outline:2px solid #4770d7;outline-offset:-2px}
.table-wrap .order-table{table-layout:fixed;border-collapse:separate;border-spacing:0}
.order-table thead{position:sticky;inset-block-start:0;z-index:1;box-shadow:0 1px var(--line),0 2px 5px #17233a10}
.order-table .order-column-groups th{height:28px;text-align:left;background:#eef2f8}
.order-table .order-column-groups th+th{border-inline-start:1px solid #d2dced}
.order-table .order-column-groups .order-reconcile-heading{background:#e4ecfb;color:#234179}
.order-column-groups small{margin-inline-start:8px;font-size:11px;font-weight:500}
.order-table thead tr:last-child small{display:block;color:var(--muted);font-size:10px;font-weight:500}
.order-table .order-cell-qty,.order-table .order-cell-giftsText{border-inline-start:1px solid #d2dced}
.order-table th:is(.order-cell-qty,.order-cell-giftsText,.order-cell-shippedQty,.order-cell-unit,.order-cell-serviceFee,.order-cell-total,.order-cell-paidDue,.order-cell-state){background:#edf3fd}
.order-table td.order-cell-total{font-weight:650}
.order-table .order-col-date{width:92px}
.order-table .order-col-seller{width:92px}
.order-table .order-col-state{width:84px}
.order-table .order-col-customer{width:152px}
.order-table .order-col-productName,.order-table .order-col-stockAfter,.order-table .order-col-unit{width:78px}
.order-table .order-col-qty,.order-table .order-col-shippedQty{width:72px}
.order-table .order-col-giftsText{width:90px}
.order-table .order-col-reference{width:108px}
.order-table .order-col-serviceFee,.order-table .order-col-total{width:88px}
.order-table .order-col-paidDue{width:166px}
.order-table .order-col-note{width:158px}
.table-wrap .order-table th,.table-wrap .order-table td{padding:4px 7px;vertical-align:middle}
.table-wrap .order-table th{height:36px;white-space:normal;line-height:1.25}
.table-wrap .order-table td{height:38px;line-height:1.25;white-space:nowrap}
.order-table td.note-cell{min-width:0;max-width:none}
.order-text{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
:is(.order-text-preview,.order-customer-edit){width:100%;min-height:28px;padding:0 1px;border:0;border-radius:3px;background:none;color:inherit;text-align:left;font-weight:inherit}
.order-text-preview:hover,.order-text-preview:focus-visible{color:var(--primary);text-decoration:underline dotted;text-underline-offset:3px}
.order-customer-edit{color:var(--primary);text-decoration:underline;text-decoration-color:#9eb5e9;text-underline-offset:3px}
.order-customer-edit:hover,.order-customer-edit:focus-visible{text-decoration-color:currentColor}
.order-full-text{position:fixed;z-index:5;width:max-content;max-width:min(380px,calc(100vw - 24px));overflow:auto;overscroll-behavior:contain;border:1px solid #354868;border-radius:8px;background:var(--nav);color:#fff;box-shadow:0 6px 18px #17233a40;padding:8px 11px;font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.order-payment{display:inline-flex;justify-content:flex-end;align-items:baseline;gap:4px;font-size:12px;white-space:nowrap}
.order-payment-divider{color:var(--muted)}
.order-payment .order-balance-due{color:var(--danger);font-weight:650}
.order-state-button{min-height:26px;border:1px solid transparent;padding:2px 5px;line-height:1.25}
.order-state-button span{margin-left:3px}
.order-state-button:hover{border-color:currentColor;text-decoration:underline}
.order-gift{line-height:14px}
.order-gift small{display:block;color:var(--muted)}
.order-seller-review{display:flex;align-items:center;gap:5px;min-width:0}
.order-seller-review .order-text{min-width:0}
.order-seller-review .order-review-badge{display:inline-grid;place-items:center;flex:0 0 20px;width:20px;height:26px;min-height:0;line-height:1;color:#843b0d;background:#fff0cd;border:1px solid #e5be78;border-radius:5px;font-size:13px;font-weight:800;text-align:center}
.order-seller-review .order-review-badge:hover,.order-seller-review .order-review-badge:focus-visible{color:#5e2705;text-decoration:none;background:#ffe2a8}
.order-review-editor{border:1px solid var(--line);border-radius:8px;padding:0 10px}
.order-review-editor summary{cursor:pointer;padding:9px 0;font-size:13px;font-weight:650}
.order-review-editor summary span{margin-inline-start:6px;color:var(--muted);font-weight:400}
.order-review-content{display:grid;gap:6px;padding-bottom:10px}
.order-review-content p{margin:0}
.order-review-actions{display:flex;flex-wrap:wrap;gap:6px}
#order-review-result:empty{display:none}
.order-void-entry{display:flex;align-items:center;flex-wrap:wrap;gap:4px 9px;padding-top:8px;border-top:1px solid var(--line)}
.order-void-impact{white-space:normal;overflow-wrap:anywhere}
.order-void-impact p{margin:0}
.order-void-impact ul{margin:6px 0 10px;padding-left:21px;line-height:1.6}
.order-void-impact li+li{margin-top:4px}
.danger-primary{background:#972e25}
.danger-primary:hover{background:#7c251e}
.gift-fields{margin:0;min-width:0;border:1px solid var(--line);border-radius:8px;padding:6px 10px 9px}
.gift-fields legend{padding:0 4px;color:#334159;font-size:13px;font-weight:650}
.gift-list{display:grid;gap:8px}
.gift-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,.7fr) minmax(0,1fr) auto;align-items:end;gap:6px}
.gift-row .icon-button{height:38px;padding-inline:5px}
.gift-add{font-size:12px}
.gift-hint{margin:3px 0 0}
@media(max-width:700px){.order-customer-edit,.order-state-button,.order-text-preview{min-height:32px}.table-wrap .order-table td{height:42px}}
.order-section{margin-bottom:14px;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper);padding:0 12px}
.order-section>summary{cursor:pointer;padding:13px 3px;font-weight:700;color:var(--ink)}
.export-fields{margin:0;min-width:0;border:1px solid var(--line);border-radius:8px;padding:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.export-fields label{display:flex;align-items:center;gap:6px}
.export-fields input{min-height:0;width:17px;height:17px;accent-color:var(--primary)}
@media (max-width:700px){.orders-stock{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.orders-stock .kpi{padding:10px 7px}.orders-stock .kpi small{font-size:11px}}
.customer-picker{position:relative;display:grid;gap:5px}
.customer-options{position:absolute;inset:65px 0 auto;z-index:1;max-height:174px;overflow:auto;margin:0;padding:4px;list-style:none;background:var(--paper);border:1px solid var(--line);border-radius:8px;box-shadow:0 6px 18px #17233a20}
.customer-options li{padding:8px 10px;border-radius:5px;cursor:pointer;overflow-wrap:anywhere}
.customer-options li:hover,.customer-options li[aria-selected=true]{background:var(--soft);color:var(--primary)}
.receipt-orders{border:1px solid var(--line);border-radius:8px;max-height:270px;overflow:auto}
.receipt-order{display:grid;grid-template-columns:minmax(0,1fr) 130px;align-items:start;gap:10px;padding:10px}
.receipt-order + .receipt-order,.receipt-review li + li,.receipt-breakdown li + li{border-top:1px solid var(--line)}
.receipt-order-check{grid-template-columns:auto minmax(0,1fr);align-items:start;gap:7px;cursor:pointer;overflow-wrap:anywhere}
.receipt-order-check input{width:17px;height:17px;min-height:0;margin:2px 0;accent-color:var(--primary)}
.receipt-order input:disabled{background:var(--bg)}
.receipt-order small,.receipt-review small{display:block;color:var(--muted);font-weight:400;line-height:1.55;margin-top:2px}
.receipt-review,.receipt-breakdown ul{padding:0;list-style:none}
.receipt-review li,.receipt-breakdown li{display:flex;justify-content:space-between;gap:14px;padding:8px 0;overflow-wrap:anywhere}
.receipt-review strong,.receipt-breakdown strong{font-variant-numeric:tabular-nums}
.receipt-breakdown summary{color:var(--primary);cursor:pointer}
.receipt-breakdown ul{width:260px;max-width:65vw;white-space:normal;margin:2px 0 0}
.receipt-review strong:last-child,.receipt-breakdown strong{white-space:nowrap}
@media(max-width:700px){.shell{display:block}.sidebar{height:auto;position:static;padding:10px 12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.brand{padding:0}.brand-mark{width:34px;height:34px}.brand small{display:none}.sidebar nav{grid-column:1/-1;grid-row:2;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}.sidebar nav button{padding:4px 6px;font-size:12px}.nav-icon{width:16px}.logout{align-self:center;font-size:12px;padding:4px 7px}.page-head{align-items:start}.page-head h1{font-size:22px}.page-head p{font-size:12px}main{padding:16px 12px 30px}.toolbar label{flex:1 1 125px}.kpi{padding-inline:10px}.table-wrap td,.table-wrap th{padding-inline:10px}.form-grid{grid-template-columns:1fr}}
@media(max-width:700px){.account-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-self:center;gap:2px;margin:0}.account-actions .logout{width:auto;margin:0;padding:4px 6px;font-size:11px}}

@media (max-width: 700px) {
  .toolbar input, .toolbar select { height: 40px; }
  .toolbar input[type="month"] {
    display: block;
    -webkit-appearance: none;
    appearance: none;
    text-align: left;
  }
  .toolbar input[type="month"]::-webkit-date-and-time-value {
    margin: 0;
    text-align: left;
  }
}
.report-heading{flex-wrap:wrap;gap:10px 16px}
.report-heading p{margin-top:3px}
.report-heading-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px}
.report-display-options{display:flex;flex-wrap:wrap;gap:5px}
.report-heading-actions button{padding:5px 9px;min-height:32px;font-size:12px}
.report-display-options [aria-pressed="true"]{background:#e8efff;border-color:#9eb5e9;color:#244baa}
.report-scroll{
  --person-width:128px;--year-width:90px;--actual-width:86px;--remaining-width:90px;--rate-width:76px;
  --month-width:96px;--summary-width:124px;
  --pinned-width:calc(var(--person-width) + var(--year-width) + var(--actual-width) + var(--remaining-width) + var(--rate-width));
  max-block-size:clamp(280px,63dvh,690px);scroll-padding-inline-start:var(--pinned-width);scroll-padding-block-start:40px;
}
.report-scroll:not([data-display="both"]){--month-width:66px;--summary-width:108px}
.table-wrap .report-table{
  table-layout:fixed;border-collapse:separate;border-spacing:0;
  width:max(100%,calc(var(--pinned-width) + 12 * var(--month-width) + var(--summary-width)));
}
.report-col-person{width:var(--person-width)}.report-col-year{width:var(--year-width)}
.report-col-actual{width:var(--actual-width)}.report-col-remaining{width:var(--remaining-width)}
.report-col-rate{width:var(--rate-width)}.report-col-month{width:var(--month-width)}.report-col-summary{width:var(--summary-width)}
.table-wrap .report-table th,.table-wrap .report-table td{padding:5px 8px;height:40px}
.report-table th,.report-table td{font-variant-numeric:tabular-nums}.report-table thead th{position:sticky;top:0;z-index:2;box-shadow:0 1px var(--line)}
.report-table :is(th,td):nth-child(-n+5){position:sticky;z-index:1;background:var(--paper)}
.report-table :is(th,td):nth-child(1){inset-inline-start:0}
.report-table :is(th,td):nth-child(2){inset-inline-start:var(--person-width)}
.report-table :is(th,td):nth-child(3){inset-inline-start:calc(var(--person-width) + var(--year-width))}
.report-table :is(th,td):nth-child(4){inset-inline-start:calc(var(--person-width) + var(--year-width) + var(--actual-width))}
.report-table :is(th,td):nth-child(5){inset-inline-start:calc(var(--pinned-width) - var(--rate-width));border-inline-end:1px solid var(--line)}
.report-table thead th:nth-child(-n+5){z-index:3;background:#f4f6fb}
.report-table tbody tr:hover :is(th,td):nth-child(-n+5){background:#f8faff}
.report-table tfoot :is(th,td){background:#edf3ff;font-weight:700}
.report-table tfoot tr:hover :is(th,td){background:#edf3ff}
.report-table .report-summary{border-inline-start:1px solid var(--line);font-weight:700;min-width:108px}
.report-scroll[data-display="both"] .report-table tfoot td{height:auto;padding:6px 8px}
.report-scroll[data-display="both"] .report-table tfoot .report-pair{display:inline-flex;flex-direction:column;align-items:flex-end;gap:1px;line-height:1.2}
.report-scroll[data-display="both"] .report-table tfoot .report-pair>:first-child{color:#244baa;font-size:12px;font-weight:700}
.report-scroll[data-display="both"] .report-table tfoot .report-pair .report-tfoot-task{display:inline-flex;align-items:center;gap:2px;color:#4a5d82;font-size:11px;font-weight:600}
.report-rep{display:flex;align-items:center;justify-content:space-between;gap:7px;color:var(--ink)}
.report-rep>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.report-rep small{color:var(--muted);font-size:10px}.report-net{font-weight:700;color:#244baa}
.report-table td .link,.report-rep .link{padding-inline:3px;font-size:12px;min-height:28px}
.report-caption{margin:0;border-top:1px solid var(--line);padding:10px 15px}
.report-pair{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.report-divider{color:var(--muted);opacity:.75}.report-target{font-variant-numeric:tabular-nums;text-decoration:underline;text-decoration-color:#9eb5e9;text-underline-offset:3px}.report-rep .report-pencil{display:inline-grid;place-items:center;flex:none;height:28px;width:28px;border:1px solid var(--line);border-radius:6px;background:#f5f8ff}
@media(max-width:620px){.report-filters label{flex:1 1 105px;min-width:0}}
@media(max-width:820px){
  .report-scroll{--person-width:clamp(74px,21vw,103px);--year-width:clamp(47px,13vw,70px);--actual-width:var(--year-width);--remaining-width:var(--year-width);--rate-width:clamp(43px,11vw,60px);--month-width:86px;--summary-width:108px;max-block-size:55dvh}
  .table-wrap .report-table :is(th,td):nth-child(-n+5){padding-inline:4px;font-size:11px;white-space:normal;overflow-wrap:anywhere}
  .report-table td .report-target{font-size:11px;padding-inline:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
  .report-rep{gap:2px}.report-rep .report-pencil{width:20px;padding-inline:0}.report-rep small{display:none}
}
.report-order-dialog{width:min(820px,calc(100vw - 24px))}
.report-order-details{min-width:0}
.report-order-details .table-wrap{max-block-size:55dvh}
.report-order-details table{min-width:590px;border-collapse:separate;border-spacing:0}
.report-order-details thead th{position:sticky;top:0;z-index:1;box-shadow:0 1px var(--line)}
.order-pager{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 15px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}
.order-pager>div{display:flex;align-items:center;gap:8px}
.orders-stock .kpi strong{font-size:clamp(15px,1.75vw,25px)}
@media (max-width:700px){.orders-stock .kpi strong{font-size:14px}}
.order-subtotal{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;margin:-6px 0 14px;padding:9px 14px;background:var(--paper);border:1px solid var(--line);border-radius:10px;font-size:13px;color:#334159;font-variant-numeric:tabular-nums}
.order-subtotal strong{color:var(--ink)}
.order-subtotal .subtotal-due{color:var(--danger)}
.order-subtotal .subtotal-sep{color:#b6c1d3}
.custody-summary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;list-style:none}
.custody-summary::-webkit-details-marker{display:none}
.custody-summary-title{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.custody-summary-title::before{content:"▸";display:inline-block;font-size:12px;color:var(--muted);transition:transform .15s}
#order-custody[open] .custody-summary-title::before{transform:rotate(90deg)}
.custody-badge{display:inline-block;padding:2px 8px;border-radius:999px;background:#fff0cd;color:#843b0d;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.custody-add-btn{min-height:30px;padding:4px 10px;font-size:12px}
.custody-remaining{color:#843b0d;font-weight:700}
.custody-actions{display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap}
.custody-pickups summary{color:var(--primary);cursor:pointer;font-size:12px}
.custody-pickups ul{margin:4px 0 0;padding:0;list-style:none;min-width:210px;white-space:normal}
.custody-pickups li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 0;font-size:12px}
.custody-pickups li+li{border-top:1px solid var(--line)}
.custody-pickups small{display:block;color:var(--muted)}
.report-actual.is-zero{color:var(--muted);font-weight:400}
.report-task-edit{color:var(--ink);font-weight:500}
.report-task-edit.is-empty{color:var(--muted);font-weight:400}
.report-actual.is-overridden,.report-task-edit.is-overridden{position:relative;color:#843b0d;background:#fff4d6;border-radius:5px;padding:2px 5px;font-weight:700}
.report-actual.is-overridden::after,.report-task-edit.is-overridden::after{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:#c2610c;margin-inline-start:3px;vertical-align:super}
.report-inline-input{width:64px;min-width:48px;min-height:28px;height:28px;padding:2px 5px;font-size:12px;text-align:right;font-variant-numeric:tabular-nums;border:1.5px solid var(--primary);border-radius:6px;background:#fff}
.report-inline-target{width:76px}
.report-override-box{border:1px solid #cbd9fa;background:#f7faff;border-radius:10px;padding:11px 13px;display:grid;gap:8px}
.report-override-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px 12px}
.report-override-head strong{font-size:13px;color:#1c3674}
.report-override-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.report-override-controls input{flex:1 1 160px;max-width:240px;min-height:34px;padding:5px 9px}
.report-override-controls button{min-height:34px;padding:5px 12px;font-size:13px}
#actual-override-result{margin:0}
#actual-override-result:empty{display:none}
.board-toolbar{align-items:center}
.board-month-nav{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px}
.board-month-nav input[type="month"]{width:154px}
.board-month-nav button{min-height:38px;padding:6px 10px}
.board-kpi-products{display:grid;gap:5px;margin-top:6px;font-size:12px;font-variant-numeric:tabular-nums;color:var(--ink)}
.board-kpi-products>div{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:2px 8px}
.board-kpi-products .board-kpi-prod-name{color:var(--muted);font-weight:500}
.board-kpi-products .board-kpi-prod-vals{display:inline-flex;align-items:baseline;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.board-kpi-products .board-kpi-prod-vals strong{font-size:12px;display:inline;margin:0;line-height:1.3}
.board-kpi-products .board-kpi-prod-prev{color:var(--muted);font-weight:500;font-size:11px}
.board-table th,.board-table td{font-variant-numeric:tabular-nums}
.board-table thead tr:first-child th{background:#eef2f8}
.board-table .board-product-group{text-align:center;border-inline-start:1px solid #d2dced;line-height:1.35}
.board-table .board-prev-stock{display:block;margin-top:2px;font-size:11px;font-weight:500;color:var(--muted)}
.board-table .board-total-group{text-align:center;border-inline-start:1px solid #b8c8e4;background:#e4ecfb;color:#234179}
.board-table .board-group-start{border-inline-start:1px solid #dce2ec}
.board-table .board-total-start{border-inline-start:1px solid #b8c8e4;font-weight:700}
.board-table tfoot th,.board-table tfoot td{background:#edf3ff;font-weight:700}
.board-table tfoot tr:hover th,.board-table tfoot tr:hover td{background:#edf3ff}
.board-qty-btn{padding:2px 5px;min-height:28px;font-variant-numeric:tabular-nums;font-weight:650}
.board-qty-btn.is-zero{color:var(--muted);font-weight:400}
.tenant-switcher{margin:-10px 0 14px;padding:0 2px}
.tenant-switcher label{gap:4px;color:#b9c5da;font-size:11px;font-weight:500}
.tenant-switcher select{min-height:32px;padding:4px 8px;border:1px solid #354b73;background:#223352;color:#f4f6ff;font-size:12px}
@media(max-width:700px){.tenant-switcher{grid-column:1/-1;margin:0;padding:0}.tenant-switcher label{display:flex;align-items:center;gap:6px}.tenant-switcher select{flex:1}}
.order-panel-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.order-panel-actions button{min-height:30px;padding:4px 10px;font-size:12px}
.order-table .order-col-select{width:34px}
.order-table .order-col-print{width:56px}
.order-cell-select{text-align:center}
.order-cell-select input{width:16px;height:16px;min-height:0;accent-color:var(--primary);cursor:pointer}
.order-cell-print{text-align:center}
.product-extra-fields{border:1px solid var(--line);border-radius:8px;padding:0 10px}
.product-extra-fields summary{cursor:pointer;padding:9px 0;font-size:13px;font-weight:650;color:#334159}
.product-extra-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;padding-bottom:10px}
@media(max-width:700px){.product-extra-grid{grid-template-columns:1fr}}
