:root{--brand-blue:#096CFF;--brand-cyan:#1DCAD3;--brand-gray:#9FA0A0;--white:#FFFFFF;--black:#000000;--surface:#F5F7FA;--text:#182230;--muted:#475467;--line:#d8dee8;--radius:12px;--space:16px;--font:15px;background:var(--surface);color:var(--text);font-size:var(--font);font-family:system-ui,"Microsoft YaHei",sans-serif}body{background:var(--surface);color:var(--text)}*{box-sizing:border-box}input:not([type=checkbox]):not([type=radio]),select,textarea,button{font:inherit}input:not([type=checkbox]):not([type=radio]),select,textarea{max-width:100%;border:1px solid #98a2b3;border-radius:7px;padding:9px;min-height:42px;color:var(--text);background:white}button{cursor:pointer;background:white;border:1px solid #667085;border-radius:8px;padding:10px 15px;color:#1754ad;min-height:42px}button.primary{background:var(--brand-blue);border-color:var(--brand-blue);color:#000;font-weight:700}button:disabled{background:#e4e7ec;color:#475467;cursor:not-allowed;opacity:1}input:not([type=checkbox]):not([type=radio]):focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:3px solid var(--brand-blue);outline-offset:3px}.muted,small,.mini{color:var(--muted)}a{color:#075bcf}.card{background:white;border:1px solid var(--line);box-shadow:0 2px 8px #10182806;border-radius:var(--radius)}.metric,.formula,.field{background:#f5f8fc}.formula{border-left:3px solid var(--brand-cyan)}.gain{color:#11643a}.loss,.bad{color:#a32020}.warn{color:#79500b}.alert{background:#fff6df;color:#604310}.eyebrow{color:#1754ad}table{font-variant-numeric:tabular-nums}td:not(.range):not(.code):not(.status-cell){font-variant-numeric:tabular-nums}.main-table>tbody>tr:not(.details-row)>td:nth-child(n+3):nth-child(-n+10){text-align:right}.main-table input:not([type=checkbox]):not([type=radio]){text-align:right}.main-table th{background:#eef3fa;color:#182230}.main-table>thead>tr>th:nth-child(-n+2){background:#e7eef8}input:not([type=checkbox]):not([type=radio]):disabled{opacity:1;color:#475467;background:#eef1f5}main{max-width:1600px}.card:focus-within{scroll-margin-top:75px}
@media(max-width:700px){main{padding:12px!important;max-width:100vw;overflow-x:clip}.card{padding:14px!important}.table-scroll{overflow:visible;max-height:none;border:0}.main-table{display:block;min-width:0;width:100%}.main-table>thead{display:none}.main-table>tbody{display:block}.main-table>tbody>tr:not(.details-row){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border:1px solid var(--line);border-radius:12px;margin:16px 0 0;padding:10px;background:white;gap:5px}.main-table>tbody>tr>td{position:static!important;min-width:0!important;width:auto!important;padding:8px!important;border:0}.main-table .range,.main-table .code{background:#eef3fa;font-size:18px}.main-table>tbody>tr:not(.details-row)>td:nth-child(3)::before{content:'到货数量（箱或桶）';display:block}.main-table>tbody>tr:not(.details-row)>td:nth-child(4)::before{content:'单箱或桶净重 lb';display:block}.main-table>tbody>tr:not(.details-row)>td:nth-child(5)::before{content:'总净重斤';display:block}.main-table>tbody>tr:not(.details-row)>td:nth-child(6)::before{content:'成本 CAD/lb';display:block}.main-table>tbody>tr:not(.details-row)>td:nth-child(7)::before{content:'清关后 CNY/斤';display:block}.main-table>tbody>tr:not(.details-row)>td:nth-child(8)::before{content:'拟售价 CNY/斤';display:block}.main-table>tbody>tr:not(.details-row)>td:nth-child(9)::before{content:'每斤预计毛利 CNY';display:block}.main-table>tbody>tr:not(.details-row)>td:nth-child(10)::before{content:'预计毛利 CNY';display:block}.main-table .status-cell{grid-column:1/-1;max-width:none}.main-table .details-row{display:block;background:white;border:1px solid var(--line);border-radius:0 0 12px 12px}.main-table .details-row>td{display:block}.details-panel{max-width:100%;min-width:0}.details-panel .param-grid{grid-template-columns:minmax(0,1fr)}.main-table input:not([type=checkbox]):not([type=radio]){width:100%;min-width:0;max-width:none}.field{min-width:0;overflow-wrap:anywhere}.inline-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.grid,.param-grid{grid-template-columns:minmax(0,1fr)}.metric strong{font-size:22px}.actions{position:relative}.detail-table{min-width:500px}.summary-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
/* R003: bounded desktop table keeps its header and horizontal controls in view. */
.table-top-scroll{height:22px;overflow-x:auto;overflow-y:hidden;border:1px solid var(--line);background:#eef3fa;border-radius:6px 6px 0 0}.table-top-scroll>div{height:1px}.table-scroll-hint{font-size:13px;color:var(--muted)}
@media(min-width:701px){.table-scroll{max-height:min(560px,65vh);min-height:330px;overflow:auto;position:relative;isolation:isolate}.main-table{min-width:1320px;table-layout:fixed;border-collapse:separate;border-spacing:0}.main-table>thead>tr>th{position:sticky;top:0;z-index:4;white-space:normal;padding:12px 8px;font-size:13px}.main-table>thead>tr>th:first-child,.main-table td.range{width:110px;min-width:110px;left:0}.main-table>thead>tr>th:nth-child(2),.main-table td.code{width:72px;min-width:72px;left:110px}.main-table td.range,.main-table td.code{position:sticky;z-index:2;background:#eef3fa}.main-table>thead>tr>th:nth-child(-n+2){z-index:6}.main-table td{padding:12px 8px;overflow-wrap:anywhere}.main-table input:not([type=checkbox]):not([type=radio]){width:100%;min-width:0}.main-table .status-cell{width:190px;max-width:190px;white-space:normal;font-size:12px}.main-table .details-row td{position:static}.main-table .details-panel{max-width:1100px}.main-table th:last-child{width:190px}}
@media(max-width:700px){.table-top-scroll{display:none}.table-scroll-hint{line-height:1.6}.main-table>tbody>tr:not(.details-row)>td{overflow-wrap:anywhere}.main-table .range,.main-table .code{text-align:left!important}.detail-table{min-width:550px}}
/* R006 keeps the approved in-project brand values above and adjusts interaction hierarchy. */
.card{box-shadow:none}button{min-height:40px;padding:8px 14px}button.primary{color:#000}button:disabled{opacity:1}input:not([type=checkbox]):not([type=radio]),select,textarea{font-variant-numeric:tabular-nums}
@media(max-width:700px){:root{--font:16px}input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px;min-height:44px}button{min-height:44px;padding:10px 12px}button.primary{min-height:48px}}
/* R007: text-input sizing must not enlarge checkbox/radio controls on other pages. */
input[type=checkbox],input[type=radio]{width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;max-width:18px!important;padding:0!important;display:inline-block!important;vertical-align:middle;flex:0 0 18px}
label:has(>input[type=checkbox]),label:has(>input[type=radio]){min-height:36px;cursor:pointer}
@media(max-width:700px){label:has(>input[type=checkbox]),label:has(>input[type=radio]){min-height:44px}}