:root{--bg:#f3f6fa;--surface:#fff;--surface-soft:#f7f9fc;--panel:#fff;--ink:#172235;--muted:#647084;--line:#d9e2ec;--line-soft:#eaf0f6;--accent:#245f9f;--accent-soft:#e8f1fb;--accent-deep:#173f6b;--accent-border:#b8d1ec;--accent-tint-strong:#245f9f3d;--accent-tint-medium:#245f9f29;--accent-tint-soft:#245f9f14;--accent-tint-faint:#245f9f0a;--surface-glass:#ffffffc7;--bg-glass:#f3f6faf0;--nav-icon-bg:#edf4fb;--success:#2e6972;--success-soft:#e8f4f5;--success-border:#bdd9de;--warn:#8b611f;--warn-soft:#fff5df;--warn-border:#e8ca90;--danger:#944136;--danger-soft:#fff0ee;--danger-border:#e5b8b2;--info:#4c5d91;--info-soft:#edf1fb;--info-border:#c5cfe9}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--ink);margin:0;padding:0;font-family:Segoe UI,PingFang TC,Noto Sans TC,sans-serif;font-size:16px;line-height:1.5}a{color:inherit;text-decoration:none}[hidden]{display:none!important}button,input,select,textarea{font:inherit}.app-shell{grid-template-columns:320px minmax(0,1fr);min-height:100vh;transition:grid-template-columns .18s;display:grid}.app-shell.sidebar-collapsed{grid-template-columns:86px minmax(0,1fr)}.sidebar{border-right:1px solid var(--line);background:var(--surface);flex-direction:column;height:100vh;padding:18px 14px;display:flex;position:sticky;top:0;overflow-y:auto}.brand-row{border-bottom:1px solid var(--line-soft);justify-content:space-between;align-items:center;gap:12px;min-height:54px;margin-bottom:18px;padding:8px 10px;display:flex}.brand{align-items:center;gap:12px;min-width:0;display:flex}.brand-mark{background:var(--accent);color:#fff;border-radius:8px;justify-content:center;align-items:center;width:36px;height:36px;font-weight:800;display:inline-flex}.brand strong,.brand small{display:block}.brand-copy{min-width:0}.brand strong{white-space:nowrap;font-size:17px;line-height:1.2}.brand small{color:var(--muted);margin-top:2px;font-size:13px}.sidebar-toggle{border:1px solid var(--line);background:var(--surface-soft);width:38px;height:38px;color:var(--accent-deep);cursor:pointer;border-radius:8px;flex:none;justify-content:center;align-items:center;font-size:26px;font-weight:700;line-height:1;display:inline-flex}.sidebar-toggle:hover,.sidebar-toggle:focus-visible{border-color:var(--accent-border);background:var(--accent-soft);outline:none}.sidebar-nav{gap:16px;display:grid}.nav-group{gap:8px;display:grid}.nav-group-toggle{min-height:38px;color:var(--muted);cursor:pointer;letter-spacing:0;text-align:left;background:0 0;border:0;border-radius:8px;justify-content:space-between;align-items:center;gap:8px;margin:0;padding:6px 10px;font-size:13px;font-weight:800;display:flex}.nav-group-toggle:hover,.nav-group-toggle:focus-visible{background:var(--surface-soft);color:var(--accent-deep);outline:none}.nav-list{align-items:start;gap:4px;display:grid}.nav-tree-item{gap:4px;display:grid}.nav-item-row{align-items:flex-start;gap:6px;display:flex}.nav-item-row .nav-link{flex:auto;min-width:0}.nav-item-toggle{border:1px solid var(--line-soft);background:var(--surface-soft);width:36px;height:44px;color:var(--accent-deep);cursor:pointer;border-radius:8px;flex:0 0 36px;justify-content:center;align-items:center;font-size:16px;font-weight:800;display:inline-flex}.nav-item-toggle:hover,.nav-item-toggle:focus-visible{border-color:var(--accent-border);background:var(--accent-soft);outline:none}.nav-children{border-left:1px solid var(--line-soft);gap:4px;margin-left:16px;padding-left:10px;display:grid}.nav-tree-item.level-1 .nav-link,.nav-tree-item.level-2 .nav-link{min-height:46px;padding:9px}.nav-tree-item.level-1 .nav-item-toggle,.nav-tree-item.level-2 .nav-item-toggle{flex-basis:32px;min-height:40px}.nav-tree-item.level-1 .nav-shortcut,.nav-tree-item.level-2 .nav-shortcut{border-radius:6px;width:24px;height:24px;font-size:11px}.nav-tree-item.level-1 .nav-link-label,.nav-tree-item.level-2 .nav-link-label{font-size:14px}.nav-tree-item.level-1 .nav-link-description,.nav-tree-item.level-2 .nav-link-description{display:none}.nav-link{min-height:58px;color:var(--ink);border:1px solid #0000;border-radius:8px;align-self:start;align-items:flex-start;gap:12px;padding:12px;display:flex}.nav-link:hover{background:var(--surface-soft);border-color:var(--line-soft)}.nav-link.active{background:var(--accent-soft);border-color:var(--accent-border);color:var(--accent-deep)}.nav-shortcut{background:var(--nav-icon-bg);width:34px;height:34px;color:var(--accent-deep);border-radius:7px;flex:none;justify-content:center;align-items:center;font-size:14px;font-weight:800;display:inline-flex}.nav-link.active .nav-shortcut{background:var(--accent);color:#fff}.nav-link-copy{gap:3px;min-width:0;display:grid}.nav-link-label{font-size:16px;font-weight:750}.nav-link-description{color:var(--muted);font-size:13px;line-height:1.4}.sidebar-foot{border-top:1px solid var(--line-soft);margin-top:auto;padding:16px 10px 6px}.sidebar-foot p{color:var(--muted);margin:0 0 10px;font-size:13px;font-weight:700}.mini-link-list{flex-wrap:wrap;gap:8px;display:flex}.mini-link-list a{border:1px solid var(--line);background:var(--surface-soft);color:var(--muted);border-radius:7px;padding:6px 8px;font-size:13px}.sidebar-collapsed .sidebar{padding-inline:10px;overflow-x:hidden}.sidebar-collapsed .brand-row{justify-content:center;gap:8px;padding-inline:0}.sidebar-collapsed .brand{justify-content:center}.sidebar-collapsed .brand-copy,.sidebar-collapsed .nav-group-toggle span:first-child,.sidebar-collapsed .nav-link-copy,.sidebar-collapsed .nav-item-toggle,.sidebar-collapsed .nav-children,.sidebar-collapsed .sidebar-foot{display:none}.sidebar-collapsed .sidebar-toggle{width:34px;height:34px;font-size:24px}.sidebar-collapsed .nav-group-toggle{display:none}.sidebar-collapsed .nav-list{gap:8px}.sidebar-collapsed .nav-link{justify-content:center;align-items:center;min-height:48px;padding:7px}.sidebar-collapsed .nav-shortcut{width:38px;height:38px}.main{min-width:0;padding:0 28px 40px}.location-bar{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.breadcrumbs{color:var(--muted);flex-wrap:wrap;align-items:center;gap:6px;font-size:13px;font-weight:650;display:flex}.breadcrumb-item{align-items:center;gap:6px;display:inline-flex}.breadcrumb-separator{color:#98a6a4}.breadcrumb-current{color:var(--ink);font-weight:700}.topbar{z-index:10;border-bottom:1px solid var(--line);background:var(--bg-glass);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);justify-content:space-between;align-items:flex-start;gap:14px;min-height:64px;margin:0 -28px 20px;padding:12px 28px;display:flex;position:sticky;top:0}.topbar-main{flex:auto;align-items:center;gap:10px;min-width:0;display:flex}.topbar-back-button{border:1px solid var(--line);background:var(--surface-glass);width:40px;height:40px;color:var(--accent-deep);border-radius:8px;flex:none;justify-content:center;align-items:center;display:inline-flex;box-shadow:0 1px 2px #1722350d}.topbar-back-button:hover,.topbar-back-button:focus-visible{border-color:var(--accent-border);background:var(--accent-soft);outline:none}.topbar-back-button svg{stroke:currentColor;stroke-width:2.4px;stroke-linecap:round;stroke-linejoin:round;fill:none;width:22px;height:22px}.topbar-copy{flex:auto;min-width:0}.topbar-actions{flex-wrap:wrap;flex:none;justify-content:flex-end;gap:8px;max-width:420px;display:flex}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.user-pill{border:1px solid var(--line);background:var(--surface);min-height:40px;color:var(--ink);border-radius:8px;gap:1px;padding:6px 12px;font-size:13px;font-weight:800;display:inline-grid}.user-pill small{color:var(--muted);font-size:11px;font-weight:700}.badge{border:1px solid var(--line);background:var(--panel);color:var(--muted);border-radius:999px;align-items:center;gap:8px;padding:10px 14px;display:inline-flex}.content-frame{min-width:0}.module-subnav{gap:12px;margin:-4px 0 20px;display:grid}.module-subnav-group{border:1px solid var(--line);background:var(--surface);border-radius:8px;gap:10px;padding:14px 16px;display:grid}.module-subnav-title{color:var(--muted);letter-spacing:.08em;text-transform:uppercase;margin:0;font-size:12px;font-weight:700}.module-subnav-items{flex-wrap:wrap;gap:10px;display:flex}.module-subnav-item{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;gap:4px;min-width:180px;padding:12px 14px;display:grid}.module-subnav-item span{color:var(--muted);letter-spacing:.06em;text-transform:uppercase;font-size:11px;font-weight:700}.module-subnav-item strong{color:var(--ink);font-size:14px}.module-subnav-item.active{background:var(--accent-soft);border-color:var(--accent-border)}.month-filter{flex-wrap:wrap;align-items:end;gap:12px;display:flex}.month-filter .field{min-width:220px}.dashboard-hero,.intake-hero{background:var(--surface);border-top:4px solid var(--accent)}.dashboard-menu-hero{border:1px solid var(--line);border-top:4px solid var(--accent);background:var(--surface);border-radius:8px;justify-content:space-between;align-items:center;gap:18px;padding:22px 24px;display:flex;box-shadow:0 1px 2px #1323260d}.dashboard-menu-hero-copy{min-width:0}.dashboard-menu-hero-copy h2{color:var(--ink);margin:0 0 8px;font-size:30px;line-height:1.18}.dashboard-menu-hero-copy p{max-width:820px;color:var(--muted);margin:0;font-size:15px;line-height:1.55}.dashboard-role-summary{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;flex:none;justify-items:end;min-width:154px;padding:14px 16px;display:grid}.dashboard-role-summary span,.dashboard-role-summary small{color:var(--muted);font-size:12px;font-weight:700}.dashboard-role-summary strong{color:var(--accent-deep);font-size:28px;line-height:1.15}.dashboard-menu-section-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.dashboard-menu-section{border:1px solid var(--line);background:var(--surface);border-radius:8px;overflow:hidden;box-shadow:0 1px 2px #1323260d}.dashboard-menu-section-header{border-bottom:1px solid var(--line-soft);justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 20px;display:flex}.dashboard-menu-section-header h3{color:var(--ink);margin:0 0 5px;font-size:19px;line-height:1.25}.dashboard-menu-section-header p{color:var(--muted);margin:0;font-size:14px;line-height:1.45}.dashboard-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;display:grid}.dashboard-menu-card{border:1px solid var(--line);background:var(--surface);min-width:0;min-height:92px;color:var(--ink);border-radius:8px;align-items:center;gap:14px;padding:16px;display:flex}.dashboard-menu-card:hover,.dashboard-menu-card:focus-visible{border-color:var(--accent-border);background:var(--accent-tint-faint);outline:none}.dashboard-menu-icon{border-radius:8px;flex:none;justify-content:center;align-items:center;width:44px;height:44px;font-weight:850;display:inline-flex}.dashboard-menu-icon.tone-blue{background:var(--accent-soft);color:var(--accent-deep)}.dashboard-menu-icon.tone-green{background:var(--success-soft);color:var(--success)}.dashboard-menu-icon.tone-teal{color:#177464;background:#e5f6f3}.dashboard-menu-icon.tone-amber{background:var(--warn-soft);color:var(--warn)}.dashboard-menu-icon.tone-red{background:var(--danger-soft);color:var(--danger)}.dashboard-menu-icon.tone-slate{color:#405064;background:#eef2f7}.dashboard-menu-card-copy{gap:4px;min-width:0;display:grid}.dashboard-menu-card-copy strong{color:var(--ink);font-size:16px;line-height:1.25}.dashboard-menu-card-copy small{color:var(--muted);font-size:13px;line-height:1.35}.hero-copy h3,.intake-hero h3{margin:0 0 10px;font-size:28px;line-height:1.2}.hero-actions,.save-actions,.workflow-strip{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.workflow-pill{background:var(--surface-soft);border:1px solid var(--line);color:var(--muted);border-radius:8px;padding:9px 14px;font-size:13px}.workflow-pill.active{color:#fff;background:var(--accent)}.date-filter-picker{gap:8px;width:176px;max-width:100%;display:grid}.date-filter-picker p{color:var(--muted);margin:0;font-size:12px}.date-filter-picker .field input,.field input[type=date]{width:176px;max-width:100%}.grid{gap:16px;display:grid}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-step-grid,.dashboard-chart-grid{gap:16px;display:grid}.dashboard-step-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}.dashboard-chart-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}.dashboard-chart-grid .chart-card{min-height:280px}.dashboard-pie{width:min(180px,100%)}.dashboard-status-bars{align-self:center;gap:16px;display:grid}.full-span{grid-column:1/-1}.metrics-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:20px;box-shadow:0 1px 2px #1323260d}.card h3{margin:0 0 10px;font-size:22px}.card p,.card li{color:var(--muted);line-height:1.6}.card-title-row,.section-heading{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.section-heading{margin-bottom:16px}.section-heading h3{color:var(--accent-deep);margin:0 0 6px;font-size:20px;font-weight:800}.section-heading p{color:var(--muted);margin:0;font-size:14px;line-height:1.45}.section-note{color:var(--muted);font-size:15px}.draft-summary-card{background:var(--surface-soft);border:1px solid var(--line);border-radius:8px;min-width:180px;padding:14px 16px}.draft-summary-card span{color:var(--muted);letter-spacing:.06em;text-transform:uppercase;font-size:12px;font-weight:700;display:block}.draft-summary-card strong{color:var(--accent-deep);margin-top:6px;font-size:18px;display:block}.draft-summary-card p{margin:4px 0 0}.stack-lg{gap:20px;display:grid}.stack-lg>*{min-width:0}.stack-md{gap:16px;display:grid}.stack-md>*{min-width:0}.eyebrow{color:var(--muted);letter-spacing:.08em;text-transform:uppercase;margin:0 0 8px;font-size:12px;font-weight:700}.metric-card{min-height:140px}.metric-value{color:var(--ink);margin:0 0 6px;font-size:34px;font-weight:700;line-height:1.1}.metrics-grid.compact-metrics{gap:12px}.metrics-grid.compact-metrics .metric-card{min-height:auto;padding:12px 16px}.metrics-grid.compact-metrics .eyebrow{margin:0 0 4px;font-size:11px}.metrics-grid.compact-metrics .metric-value{margin:0 0 2px;font-size:22px}.metrics-grid.compact-metrics .metric-card .muted{font-size:11px}.reports-command-center,.report-page-intro{border-top:4px solid var(--accent)}.report-directory{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.report-tile{border:1px solid var(--line);background:var(--surface);border-radius:8px;grid-template-rows:1fr auto auto;gap:14px;min-height:230px;padding:18px;display:grid}.report-tile:hover{border-color:var(--accent-border);background:var(--accent-tint-faint)}.report-tile h3{margin:0 0 8px;font-size:20px}.report-tile p{color:var(--muted);margin:0}.report-tile-meta{border-top:1px solid var(--line-soft);color:var(--muted);padding-top:12px;font-size:13px;font-weight:700}.report-tile-actions{flex-wrap:wrap;gap:8px;display:flex}.report-section{scroll-margin-top:92px}.report-subgrid{margin-top:16px}.report-panel{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;align-content:start;gap:12px;min-width:0;padding:14px;display:grid}.report-panel h4{color:var(--ink);margin:0;font-size:16px}.report-visual-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px;display:grid}.chart-card{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;align-content:start;gap:14px;min-width:0;padding:16px;display:grid}.chart-card.wide{grid-column:1/-1}.chart-heading{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.chart-heading h4{color:var(--ink);margin:0;font-size:16px}.chart-heading span{color:var(--muted);text-align:right;font-size:13px;font-weight:700}.donut-chart-wrap{place-items:center;display:grid}.donut-chart{aspect-ratio:1;width:min(260px,100%)}.donut-track,.donut-segment{fill:none;stroke-width:24px}.donut-track{stroke:var(--line)}.donut-segment{stroke-linecap:butt}.donut-hole{fill:var(--surface-soft)}.donut-value,.donut-label{fill:var(--ink);text-anchor:middle;font-weight:800}.donut-value{font-size:24px}.donut-label{fill:var(--muted);font-size:12px}.chart-legend.vertical{gap:8px;display:grid}.chart-legend i{background:var(--accent);border-radius:50%;flex:none;width:10px;height:10px;display:inline-flex}.chart-bars{gap:14px;display:grid}.chart-bar-row{gap:6px;display:grid}.chart-bar-track{background:var(--line);border-radius:999px;height:14px;overflow:hidden}.chart-bar-track span{border-radius:inherit;height:100%;display:block}.trend-chart{border:1px solid var(--line);background:var(--surface);border-radius:8px;grid-template-columns:repeat(auto-fit,minmax(54px,1fr));gap:12px;min-height:240px;padding:12px;display:grid}.trend-month{grid-template-rows:minmax(160px,1fr) auto;align-items:end;gap:8px;min-width:0;display:grid}.trend-bars{grid-template-columns:repeat(3,minmax(8px,1fr));align-items:end;gap:4px;height:100%;display:grid}.trend-bars span{border-radius:6px 6px 0 0;min-height:4px;display:block}.trend-bars .income,.legend-income{background:var(--accent)}.trend-bars .expense,.legend-expense{background:var(--warn)}.trend-bars .profit,.legend-profit{background:var(--success)}.trend-bars .loss{background:var(--danger)}.trend-month strong{color:var(--muted);text-align:center;font-size:12px}.row-list,.entry-table{gap:12px;display:grid}.row-item{border:1px solid var(--line);background:var(--surface);border-radius:8px;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;display:flex}.row-item:hover{border-color:var(--accent-border);background:var(--accent-soft)}.row-item.monthly-row{cursor:pointer;text-align:left;width:100%}.inline-field-list{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.preview-panel{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;padding:14px}.row-item.monthly-row.active{border-color:var(--accent-border);background:var(--accent-soft)}.row-item.static{cursor:default}.row-item strong{color:var(--ink)}.align-end{text-align:right;justify-items:end;gap:6px;display:grid}.table-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.segmented-control{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;gap:4px;padding:4px;display:inline-flex}.segmented-control button,.segmented-control a{min-height:36px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:7px 12px;font-weight:700;text-decoration:none}.segmented-control button.active,.segmented-control button[aria-selected=true],.segmented-control a.active,.segmented-control a[aria-selected=true]{background:var(--surface);color:var(--accent-deep);box-shadow:0 1px 2px #17223514}.checkbox-inline{color:var(--muted);align-items:center;gap:6px;font-size:14px;display:inline-flex}.selection-bar{border:1px solid var(--line);background:var(--surface);border-radius:8px;align-items:center;gap:10px;padding:10px 12px;display:inline-flex}.run-card-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:14px;display:grid}.run-card-grid .selection-bar,.run-card-grid .empty-state{grid-column:1/-1}.run-overview-card{border:1px solid var(--line);background:var(--surface);border-radius:8px;gap:14px;min-width:0;padding:16px;display:grid;box-shadow:0 1px 2px #0f172a0d}.run-overview-card:hover{border-color:var(--accent-border);background:var(--accent-soft)}.run-card-header{align-items:flex-start;gap:12px;display:flex}.run-selector{align-items:center;padding-top:3px;display:inline-flex}.run-overview-main{flex:1;justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.run-card-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.run-card-stats div{border:1px solid var(--line);background:var(--surface-soft);border-radius:7px;gap:3px;min-width:0;padding:10px;display:grid}.run-card-stats span{color:var(--muted);font-size:12px}.run-card-stats strong{color:var(--ink);font-size:15px}.run-card-actions{flex-wrap:wrap;gap:8px;display:flex}.status-pill{border:1px solid var(--accent-tint-medium);background:var(--accent-tint-soft);min-width:88px;color:var(--accent-deep);text-transform:uppercase;letter-spacing:.04em;border-radius:999px;justify-content:center;align-items:center;padding:7px 10px;font-size:12px;font-weight:700;display:inline-flex}.compact{margin:2px 0 0}.subtle{color:var(--muted);margin-top:4px;font-size:13px}.status-chip{border:1px solid var(--line);background:var(--surface-soft);min-width:88px;color:var(--ink);text-transform:uppercase;letter-spacing:.04em;border-radius:999px;justify-content:center;align-items:center;padding:7px 10px;font-size:12px;font-weight:700;display:inline-flex}.status-chip.success{border-color:var(--success-border);background:var(--success-soft);color:var(--success)}.status-chip.warning{border-color:var(--warn-border);background:var(--warn-soft);color:var(--warn)}.status-chip.danger{border-color:var(--danger-border);background:var(--danger-soft);color:var(--danger)}.status-chip.info{border-color:var(--info-border);background:var(--info-soft);color:var(--info)}.dashboard-mini,.summary-pills{gap:12px;display:grid}.dashboard-mini{grid-template-columns:repeat(2,minmax(0,1fr));margin:18px 0}.summary-pills{grid-template-columns:repeat(4,minmax(0,1fr))}.report-volume-summary{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.report-volume-table{min-width:720px}.report-volume-table th,.report-volume-table td{white-space:nowrap}.dashboard-mini div,.summary-pill{background:var(--surface-soft);border:1px solid var(--line);border-radius:8px;padding:14px 16px}.dashboard-mini strong,.summary-pill strong{color:var(--accent-deep);overflow-wrap:anywhere;font-size:20px;display:block}.dashboard-mini span,.summary-pill span{color:var(--muted);font-size:13px}.quiet-summary{background:var(--surface)}.entry-row{background:var(--surface-soft);border:1px solid var(--line);border-radius:8px;padding:16px}.entry-index{color:var(--accent-deep);letter-spacing:.05em;margin-bottom:12px;font-size:13px;font-weight:700}.compact-entry-table .entry-row{padding:14px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.form-grid.three-up{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid.five-up{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-two{grid-template-columns:minmax(280px,.42fr) minmax(0,1fr);align-items:start;gap:20px;display:grid}.field{gap:8px;display:grid}.field.full{grid-column:1/-1}.field span{color:var(--muted);letter-spacing:.04em;text-transform:uppercase;font-size:14px;font-weight:700}.field input,.field select{border:1px solid var(--accent-tint-medium);background:var(--surface);min-height:50px;color:var(--ink);border-radius:8px;padding:12px 14px}.field textarea{border:1px solid var(--accent-tint-medium);background:var(--surface);min-height:92px;color:var(--ink);resize:vertical;border-radius:8px;padding:12px 14px}.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid var(--accent-tint-medium);border-color:var(--accent-tint-strong)}.checkbox-field{min-width:0;min-height:42px;color:var(--ink);cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:9px;font-size:14px;font-weight:650;line-height:1.3;display:inline-flex}.checkbox-field input{width:18px;height:18px;min-height:auto;accent-color:var(--accent);flex:none;padding:0}.checkbox-field span{overflow-wrap:anywhere;min-width:0}.permission-group{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;gap:12px;padding:16px;display:grid}.permission-group h4{color:var(--ink);margin:0;font-size:16px;line-height:1.25}.permission-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px 12px;display:grid}.permission-grid .checkbox-field{border:1px solid var(--line);background:var(--surface);border-radius:8px;min-height:40px;padding:8px 10px}.permission-grid .checkbox-field:hover,.permission-grid .checkbox-field:focus-within{border-color:var(--accent-border);background:var(--accent-soft)}.row-item.active{border-color:var(--accent-border);background:var(--accent-soft);box-shadow:inset 3px 0 0 var(--accent)}button.row-item{width:100%;color:inherit;text-align:left;cursor:pointer}button.row-item:focus-visible{outline:2px solid var(--accent-tint-medium);outline-offset:2px}.table-wrap{overflow-x:auto}.ops-workbench{gap:16px;display:grid}.ops-action-card{border-left:4px solid var(--accent)}.ops-action-card .section-heading{margin-bottom:12px}.ops-action-card h3{margin-bottom:0;font-size:20px}.ops-action-card .field{gap:5px}.ops-action-card .field input,.ops-action-card .field select{min-height:40px;padding:8px 12px}.ops-action-card .field textarea{min-height:76px;padding:8px 12px}.ops-action-shell{padding:16px 18px}.ops-action-grid{grid-template-columns:minmax(0,1fr) minmax(240px,300px);align-items:stretch;gap:14px;display:grid}.ops-editor-panel{min-width:0}.ops-selected-card{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;align-content:start;gap:10px;min-width:0;padding:12px;display:grid}.ops-selected-card>span{color:var(--muted);text-transform:uppercase;font-size:12px;font-weight:800}.ops-selected-card>strong{color:var(--ink);font-size:17px;line-height:1.25}.ops-selected-card dl{gap:6px;margin:0;display:grid}.ops-selected-card div{border-top:1px solid var(--line);justify-content:space-between;gap:12px;padding-top:6px;display:flex}.ops-selected-card dt{color:var(--muted);font-size:12px;font-weight:700}.ops-selected-card dd{color:var(--ink);text-align:right;margin:0;font-size:13px;font-weight:800}.ops-action-card .draft-summary-card{background:var(--surface-soft);min-width:120px}.ops-table-wrap{border:1px solid var(--line);background:var(--panel);border-radius:8px;max-height:min(62vh,680px);overflow:auto}.ops-table-wrap table{min-width:860px}.data-table.ops-data-table th,.data-table.ops-data-table td{vertical-align:top;padding:8px 10px;font-size:13px;line-height:1.3}.data-table.ops-data-table th{z-index:1;background:var(--surface);color:var(--muted);letter-spacing:0;text-transform:none;white-space:nowrap;font-size:12px;position:sticky;top:0}.ops-data-table tbody tr{cursor:default}.ops-data-table tbody tr:hover{background:var(--accent-tint-faint)}.ops-data-table tbody tr.is-selected{background:var(--accent-soft);box-shadow:inset 3px 0 0 var(--accent)}.ops-data-table .status-chip{white-space:nowrap;justify-content:center;min-width:72px;padding:4px 9px;font-size:12px}.money-cell{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.danger-text{color:var(--danger);font-weight:850}.ops-table-wrap .empty-state.compact{text-align:left;background:0 0;border:0;margin:0;padding:18px}.inline-edit-grid{gap:6px;min-width:180px;display:grid}.inline-edit-grid input{min-width:0}.top-gap{margin-top:16px}.save-status{color:var(--muted);font-size:14px;font-weight:700}.collections-sheet-card{gap:14px;display:grid}.collections-route-tabs{align-items:stretch;gap:8px;padding-bottom:2px;display:flex;overflow-x:auto}.collections-date-filter{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;flex:0 0 150px;gap:4px;padding:8px 10px;display:grid}.collections-date-filter span{color:var(--muted);font-size:11px;font-weight:800}.collections-date-filter select{border:1px solid var(--accent-tint-medium);background:var(--surface);min-height:34px;color:var(--ink);border-radius:6px;padding:6px 8px;font-weight:800}.collections-route-tabs>button{border:1px solid var(--line);background:var(--surface);min-width:190px;color:var(--muted);cursor:pointer;text-align:left;border-radius:8px 8px 0 0;flex:none;gap:3px;padding:9px 12px;display:grid}.collections-route-tabs>button.active,.collections-route-tabs>button[aria-selected=true]{border-color:var(--accent-border);border-bottom-color:var(--surface);background:var(--accent-tint-faint);color:var(--accent-deep)}.collections-route-tabs>button strong{color:var(--ink);font-size:13px;line-height:1.25}.collections-route-tabs>button span{font-size:11px;font-weight:700}.collections-sheet-summary{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;flex-wrap:wrap;align-items:center;gap:14px;padding:10px 12px;display:flex}.collections-sheet-summary span,.collections-sheet-summary small{color:var(--muted);font-size:13px;font-weight:800}.collections-sheet-summary strong{color:var(--ink);font-variant-numeric:tabular-nums;font-size:18px}.collections-sheet-wrap{max-height:min(64vh,720px)}.collections-excel-grid{overflow:hidden}.collections-excel-grid.is-fullscreen .collections-sheet-wrap{height:100%;min-height:0;max-height:none;overflow:auto}.collections-sheet-table{table-layout:fixed;min-width:1160px}.collections-sheet-table th:first-child,.collections-sheet-table td:first-child{width:44px;min-width:44px}.collections-sheet-table th:nth-child(2),.collections-sheet-table td:nth-child(2){width:160px}.collections-sheet-table input,.collections-sheet-table select{width:100%;min-height:32px;color:var(--ink);font:inherit;background:0 0;border:1px solid #0000;border-radius:4px;padding:5px 8px}.collections-sheet-table th:nth-child(3),.collections-sheet-table td:nth-child(3){width:110px}.collections-sheet-table th:nth-child(4),.collections-sheet-table td:nth-child(4),.collections-sheet-table th:nth-child(6),.collections-sheet-table td:nth-child(6){width:140px}.collections-sheet-table th:nth-child(5),.collections-sheet-table td:nth-child(5){width:88px;min-width:88px}.collections-sheet-table th:nth-child(7),.collections-sheet-table td:nth-child(7),.collections-sheet-table th:nth-child(8),.collections-sheet-table td:nth-child(8){width:120px}.collections-sheet-table th:nth-child(9),.collections-sheet-table td:nth-child(9){width:116px}.collections-sheet-table th:nth-child(10),.collections-sheet-table td:nth-child(10){width:78px;min-width:78px}.collections-sheet-table input:focus,.collections-sheet-table select:focus{border-color:var(--accent-border);background:var(--surface);outline:2px solid var(--accent-tint-medium)}.collections-sheet-table tr.is-dirty{background:var(--warn-soft)}.row-index-cell{width:44px;color:var(--muted);text-align:center;font-weight:800}.station-cell{min-width:160px;color:var(--ink);font-weight:800}.list-pagination{border-top:1px solid var(--line);flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px;margin-top:14px;padding-top:14px;display:flex}.pagination-range,.pagination-page{color:var(--muted);font-size:13px;font-weight:700}.pagination-size,.pagination-actions{align-items:center;gap:8px;display:inline-flex}.pagination-size span{color:var(--muted);font-size:13px;font-weight:700}.pagination-size select{border:1px solid var(--accent-tint-medium);background:var(--surface);min-height:38px;color:var(--ink);border-radius:8px;padding:8px 10px}.data-table{border-collapse:collapse;width:100%}.table-shell{overflow-x:auto}.block{display:block}.data-table th,.data-table td{border-bottom:1px solid var(--line);text-align:left;vertical-align:top;padding:14px 12px}.data-table th{color:var(--muted);text-transform:uppercase;letter-spacing:.06em;font-size:13px}.data-table input,.data-table select,.data-table textarea{border:1px solid var(--accent-tint-medium);background:var(--surface);width:100%;min-height:44px;color:var(--ink);border-radius:8px;padding:10px 12px}.data-table textarea{resize:vertical;min-width:220px;min-height:68px}.expense-table{min-width:1120px}.audit-table{min-width:980px}.report-balance{gap:12px;display:grid}.report-balance div{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;display:flex}.report-balance span{color:var(--muted);font-weight:700}.report-balance strong{color:var(--accent-deep);font-size:20px}.module-card-link{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;gap:8px;min-height:150px;padding:18px;display:grid}.module-card-link:hover{border-color:var(--accent-border);background:var(--accent-soft)}.module-card-link span{color:var(--accent);font-size:12px;font-weight:800}.module-card-link strong{color:var(--ink);font-size:18px}.module-card-link p{margin:0}.settings-directory{gap:18px;display:grid}.settings-directory>*,.settings-category,.settings-category-heading>div,.settings-link{min-width:0}.settings-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.settings-category{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;gap:14px;padding:16px;display:grid}.settings-category-heading{align-items:flex-start;gap:12px;display:flex}.settings-category-heading>span{background:var(--accent);color:#fff;border-radius:8px;flex:none;justify-content:center;align-items:center;width:34px;height:34px;font-weight:800;display:inline-flex}.settings-category h4{color:var(--ink);margin:0;font-size:18px}.settings-category p{color:var(--muted);overflow-wrap:anywhere;margin:4px 0 0;font-size:14px;line-height:1.5}.settings-link-list{gap:8px;display:grid}.settings-link-list.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-link{border:1px solid var(--line);background:var(--surface);border-radius:8px;gap:3px;padding:12px 14px;display:grid}.settings-link.compact{align-items:center;min-height:46px}.settings-link:hover,.settings-link:focus-visible{border-color:var(--accent-border);background:var(--accent-soft);outline:none}.settings-link strong{color:var(--ink);font-size:15px}.settings-link span{color:var(--muted);font-size:13px}.expense-calendar{grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;display:grid}.calendar-weekday{color:var(--muted);text-align:center;padding:10px;font-size:12px;font-weight:800}.calendar-empty,.calendar-day{border-radius:8px;min-height:132px}.calendar-day{border:1px solid var(--line);background:var(--surface);align-content:start;gap:8px;padding:12px;display:grid}.calendar-day:hover,.calendar-day.has-expense{border-color:var(--accent-border);background:var(--accent-soft)}.month-calendar{grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;display:grid}.month-calendar .calendar-day{min-height:156px}.calendar-day.has-work{border-color:var(--accent-border);background:var(--accent-soft)}.ops-cal-count{color:var(--ink);font-size:13px;font-weight:700}.ops-cal-flags{flex-wrap:wrap;gap:4px;display:flex}.ops-cal-flag{color:var(--muted);align-items:center;gap:4px;font-size:11px;font-weight:800;display:inline-flex}.ops-cal-dot{background:#94a3b8;border-radius:99px;width:8px;height:8px}.ops-cal-dot.not_started{background:#94a3b8}.ops-cal-dot.in_progress{background:#d97706}.ops-cal-dot.completed,.ops-cal-dot.generated{background:#0f766e}.ops-cal-legend-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.ops-cal-legend-tones{flex-wrap:wrap;gap:8px;display:flex}.ops-cal-day-counts{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.ops-cal-day-flags{gap:10px;display:grid}.ops-cal-day-flags li{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.ops-cal-jumps{flex-wrap:wrap;gap:8px;display:flex}.del-cal-count{color:var(--ink);font-size:13px;font-weight:700}.del-cal-flags{flex-wrap:wrap;gap:4px;display:flex}.del-cal-flag{color:var(--muted);align-items:center;gap:4px;font-size:11px;font-weight:800;display:inline-flex}.del-cal-dot{background:#94a3b8;border-radius:99px;width:8px;height:8px}.del-cal-dot.not_started{background:#94a3b8}.del-cal-dot.in_progress{background:#d97706}.del-cal-dot.completed{background:#0f766e}.del-cal-legend-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.del-cal-legend-tones,.del-cal-jumps{flex-wrap:wrap;gap:8px;display:flex}.wb-cal-count{color:var(--ink);font-size:13px;font-weight:700}.wb-cal-profile{border-radius:999px;align-self:flex-start;align-items:center;padding:2px 8px;font-size:11px;font-weight:800;display:inline-flex}.wb-cal-profile--active{color:#166534;background:#dcfce7}.wb-cal-profile--none{color:#64748b;background:#f1f5f9}.wb-cal-profile--closed{color:#991b1b;background:#fee2e2}.coll-cal-count{color:var(--ink);font-size:13px;font-weight:700}.coll-cal-flags{flex-wrap:wrap;gap:4px;display:flex}.coll-cal-flag{color:var(--muted);align-items:center;gap:4px;font-size:11px;font-weight:800;display:inline-flex}.coll-cal-dot{background:#94a3b8;border-radius:99px;width:8px;height:8px}.coll-cal-dot.not_started{background:#94a3b8}.coll-cal-dot.in_progress{background:#d97706}.coll-cal-dot.completed{background:#0f766e}.coll-cal-legend-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.coll-cal-legend-tones,.coll-cal-jumps{flex-wrap:wrap;gap:8px;display:flex}.cus-cal-count{color:var(--ink);font-size:13px;font-weight:700}.cus-cal-flags{flex-wrap:wrap;gap:4px;display:flex}.cus-cal-flag{color:var(--muted);align-items:center;gap:4px;font-size:11px;font-weight:800;display:inline-flex}.cus-cal-dot{background:#94a3b8;border-radius:99px;width:8px;height:8px}.cus-cal-dot.not_started{background:#94a3b8}.cus-cal-dot.in_progress{background:#d97706}.cus-cal-dot.completed,.cus-cal-dot.generated{background:#0f766e}.cus-cal-legend-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.cus-cal-legend-tones,.cus-cal-jumps{flex-wrap:wrap;gap:8px;display:flex}.recon-cal-count{color:var(--ink);font-size:13px;font-weight:700}.recon-cal-flags{flex-wrap:wrap;gap:4px;display:flex}.recon-cal-flag{color:var(--muted);align-items:center;gap:4px;font-size:11px;font-weight:800;display:inline-flex}.recon-cal-dot{background:#94a3b8;border-radius:99px;width:8px;height:8px}.recon-cal-dot.not_started{background:#94a3b8}.recon-cal-dot.in_progress{background:#d97706}.recon-cal-dot.completed{background:#0f766e}.recon-cal-legend-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.recon-cal-legend-tones{flex-wrap:wrap;gap:8px;display:flex}.recon-cal-day-counts{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.recon-cal-day-flags{gap:10px;display:grid}.recon-cal-day-flags li{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.ds-cal-count{color:var(--ink);font-size:13px;font-weight:700}.ds-cal-flags{flex-wrap:wrap;gap:4px;display:flex}.ds-cal-flag{color:var(--muted);align-items:center;gap:4px;font-size:11px;font-weight:800;display:inline-flex}.ds-cal-dot{background:#94a3b8;border-radius:99px;width:8px;height:8px}.ds-cal-dot.not_started{background:#94a3b8}.ds-cal-dot.in_progress{background:#d97706}.ds-cal-dot.completed{background:#0f766e}.ds-cal-legend-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.ds-cal-legend-tones{flex-wrap:wrap;gap:8px;display:flex}.ds-cal-day-counts{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.ds-cal-day-flags{gap:10px;display:grid}.ds-cal-day-flags li{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.ds-cal-jumps{flex-wrap:wrap;gap:8px;display:flex}.calendar-day-number{background:var(--surface-soft);width:30px;height:30px;color:var(--accent-deep);border-radius:8px;justify-content:center;align-items:center;font-weight:800;display:inline-flex}.calendar-day strong{color:var(--ink);font-size:16px}.shipment-row.saving{opacity:.68}.shipment-control-panel{gap:16px;display:grid}.manual-entry-action{align-content:end}.manual-entry-action .button{min-height:50px}.shipment-toolbar{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;grid-template-columns:minmax(150px,.8fr) minmax(170px,.9fr) minmax(220px,1fr) minmax(260px,1.3fr) auto;align-items:end;gap:12px;margin-bottom:16px;padding:14px;display:grid}.macau-hk-toolbar{grid-template-columns:minmax(240px,1.4fr) minmax(140px,.8fr) minmax(140px,.8fr) minmax(160px,.8fr) auto}.macau-hk-table{min-width:1380px}.shipment-toolbar .button{min-height:50px}.shipment-search-field{min-width:260px}.shipment-pool-table td,.grouped-shipment-table td,.grouped-shipment-table th{vertical-align:middle}.group-anchor-cell{background:var(--accent-tint-faint)}.group-anchor-block{gap:8px;display:grid}.group-badge{background:var(--accent-tint-medium);width:fit-content;color:var(--accent-deep);border-radius:8px;justify-content:center;align-items:center;padding:7px 10px;font-size:12px;font-weight:700;display:inline-flex}.group-cell-display{min-height:56px;font-weight:700}.subitem-index-cell{background:var(--surface-glass)}.subitem-index{background:var(--accent-tint-soft);min-width:42px;color:var(--accent-deep);border-radius:8px;justify-content:center;align-items:center;padding:6px 8px;font-size:12px;font-weight:700;display:inline-flex}.group-actions{align-content:start;gap:10px;display:grid}.group-meta{color:var(--muted);font-size:12px;font-weight:700}.subitem-actions{flex-wrap:wrap;gap:8px;display:flex}.cell-display{width:100%;min-height:40px;color:var(--ink);text-align:left;background:0 0;border:1px solid #0000;border-radius:8px;padding:8px 10px}.cell-display:hover:not(:disabled),.cell-display:focus-visible{border-color:var(--accent-tint-medium);background:var(--accent-tint-soft);outline:none}.cell-input{border:1px solid var(--accent-tint-strong);background:var(--surface);width:100%;min-height:40px;color:var(--ink);border-radius:8px;padding:8px 10px}.cell-input.numeric{text-align:right}.cell-input:focus{outline:2px solid var(--accent-tint-medium);border-color:var(--accent)}.table-link{color:var(--accent);font-weight:700}.empty-state{border:1px dashed var(--line);color:var(--muted);text-align:center;border-radius:8px;padding:18px}.hero{max-width:980px;margin:0 auto;padding:56px 28px 32px}.login-page{background:linear-gradient(120deg, #245f9f1f, transparent 42%), var(--bg);align-items:center;min-height:100vh;padding:28px;display:grid}.login-panel{border:1px solid var(--line);background:var(--surface);border-radius:8px;gap:22px;width:min(100%,520px);margin:0 auto;padding:28px;display:grid;box-shadow:0 18px 46px #1722351f}.login-panel h1{margin:18px 0 10px;font-size:34px;line-height:1.18}.login-panel p{color:var(--muted);margin:0}.login-form{gap:14px;display:grid}.login-form .button{width:100%}.login-hint{border-top:1px solid var(--line-soft);padding-top:12px;font-size:14px}.form-message{color:var(--success);margin:0;font-weight:700}.form-message.danger{color:var(--danger)}.test-mode-banner{border:1px solid var(--warn-border);background:var(--warn-soft);color:var(--warn);margin:0 0 16px;padding:10px 14px;font-weight:700}.page-unit-test-data{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.hero h1{margin:0 0 14px;font-size:42px;line-height:1.08}.hero p{color:var(--muted);font-size:18px;line-height:1.7}.actions{flex-wrap:wrap;gap:12px;margin-top:22px;display:flex}.button{border:1px solid var(--line);background:var(--surface);min-height:44px;color:var(--ink);border-radius:8px;justify-content:center;align-items:center;padding:12px 16px;font-weight:700;display:inline-flex}.button.small{border-radius:7px;min-height:40px;padding:9px 13px;font-size:14px}.button.primary{background:var(--accent);border-color:var(--accent);color:#fff}.button.danger{border-color:var(--danger-border);background:var(--danger-soft);color:var(--danger)}.button:disabled{cursor:not-allowed;opacity:.62}.page-shell{gap:18px;min-width:0;max-width:1600px;margin:0 auto;padding:4px 0 28px;display:grid}.page-shell>*{min-width:0;max-width:100%}.page-header,.page-header-actions,.toolbar-row,.dialog-actions{align-items:flex-start;gap:12px;display:flex}.page-header{border:1px solid var(--line);background:var(--surface);border-radius:8px;justify-content:space-between;padding:20px}.page-header h1,.page-header p{margin:0}.page-header h1{margin-top:4px;font-size:28px;line-height:1.2}.page-header p:not(.page-eyebrow){max-width:700px;color:var(--muted);margin-top:8px}.page-eyebrow{color:var(--accent-deep);font-size:13px;font-weight:800}.page-header-actions{flex-wrap:wrap;justify-content:flex-end}.content-panel,.form-notice{border:1px solid var(--line);background:var(--surface);border-radius:8px}.content-panel{min-width:0;max-width:100%;padding:18px}.form-notice{border-color:var(--warn-border);background:var(--warn-soft);color:var(--warn);margin:0;padding:12px 14px;font-weight:700}.toolbar-row{flex-wrap:wrap;align-items:end;margin-bottom:16px}.field-control{min-width:180px;color:var(--muted);gap:6px;font-size:13px;font-weight:700;display:grid}.field-control-grow{flex:260px}.field-control input,.field-control select,.field-control textarea{border:1px solid var(--line);background:var(--surface);width:100%;min-height:42px;color:var(--ink);border-radius:8px;padding:9px 10px}.field-control textarea{resize:vertical;min-height:76px}.toolbar-summary{color:var(--muted);margin:0 0 9px auto;font-size:13px;font-weight:700}.table-scroll{overflow-x:auto}.table-scroll .data-table{min-width:1120px}.app-dialog{border:1px solid var(--line);width:min(520px,100vw - 32px);color:var(--ink);background:var(--surface);border-radius:8px;padding:0;box-shadow:0 18px 42px #17223538}.app-dialog::backdrop{background:#17223561}.app-dialog form{gap:14px;padding:20px;display:grid}.dialog-header h2,.app-dialog p{margin:0}.dialog-actions{justify-content:flex-end;align-items:center;gap:8px;display:flex}.app-dialog .field-control input[type=date]{width:100%}.route-sheet-redispatch-backdrop{z-index:1300;background:#17223561;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.route-sheet-redispatch-backdrop .app-dialog{display:block}.form-error{border:1px solid var(--danger-border);background:var(--danger-soft);color:var(--danger);border-radius:8px;margin:0;padding:10px 12px;font-weight:700}@media (max-width:760px){.page-header{flex-direction:column}.page-header-actions{justify-content:flex-start}.content-panel{padding:12px}.toolbar-summary{margin-left:0}.recon-overview-toolbar{align-items:stretch}.recon-region-card-head{flex-wrap:wrap}}.mock-data-message{border:1px solid var(--line);background:var(--surface-soft);color:var(--muted);border-radius:8px;margin:16px 0 0;padding:10px 12px;font-size:14px}.mock-data-message.success{border-color:var(--success-border);background:var(--success-soft);color:var(--success)}.mock-data-message.danger{border-color:var(--danger-border);background:var(--danger-soft);color:var(--danger)}.list{margin:0;padding-left:20px}.muted{color:var(--muted)}.save-bar{justify-content:space-between;align-items:center;gap:18px;display:flex}.module-nav-links{flex-wrap:wrap;gap:12px;display:flex}.save-status{color:var(--accent-deep);font-weight:700}.inline-status{margin-top:6px}.settlement-total-card,.reconciliation-summary{border:1px solid var(--accent-border);background:var(--accent-soft);min-width:220px;color:var(--accent-deep);border-radius:8px;gap:4px;padding:14px;display:grid}.settlement-total-card span,.reconciliation-summary span{color:var(--muted);font-size:13px;font-weight:700}.settlement-total-card strong{font-size:26px;line-height:1.15}.settlement-total-card p{color:var(--muted);margin:0;font-size:14px}.reconciliation-nav-card{gap:12px;display:grid}.reconciliation-nav-metrics{margin-top:2px}.nav-metric-tile{border:1px solid var(--accent-border);background:var(--surface);border-radius:8px;gap:10px;min-height:126px;padding:18px;display:grid}.nav-metric-tile .metric-value{margin:0}.workflow-strip.compact{gap:8px}.workflow-strip.compact .workflow-pill{padding:7px 10px;font-size:13px}.reconciliation-table{min-width:920px}.reconciliation-table th:last-child,.reconciliation-table td:last-child{min-width:130px}.reconciliation-table .amount-input{text-align:right;max-width:160px}.reconciliation-actions{justify-content:flex-end;margin:12px 0;display:flex}.reconciliation-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:16px;display:grid}.recon-overview-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px 24px;padding:12px 16px;display:flex}.recon-overview-toolbar .date-filter-picker{flex-direction:row;align-items:end;gap:12px;width:auto;max-width:none;display:flex}.recon-overview-toolbar .date-filter-picker p{margin:0 0 10px}.recon-overview-scan{flex-wrap:wrap;align-items:center;gap:10px;margin:0;display:flex}.recon-overview-scan span{border:1px solid var(--line);background:var(--surface-soft);min-height:40px;color:var(--muted);border-radius:8px;align-items:center;gap:8px;padding:0 12px;font-size:13px;font-weight:700;display:inline-flex}.recon-overview-scan span.needs-review{border-color:var(--warn-border);background:var(--warn-soft);color:var(--warn)}.recon-overview-scan span.clear{border-color:var(--success-border);background:var(--success-soft);color:var(--success)}.recon-overview-scan strong{font-variant-numeric:tabular-nums;font-size:16px}.recon-region-card{min-height:0;color:inherit;cursor:pointer;align-content:start;gap:16px;transition:border-color .16s,background-color .16s;display:grid}.recon-region-card.has-review{border-color:var(--warn-border)}.recon-region-card:hover,.recon-region-card:focus-visible{border-color:var(--accent-border);background:var(--accent-tint-faint);outline:none}.recon-region-card:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.recon-region-card-head{align-items:flex-start;gap:12px;display:flex}.recon-region-card-copy{flex:auto;gap:4px;min-width:0;display:grid}.recon-region-card-copy h2{margin:0;font-size:18px;font-weight:800;line-height:1.25}.recon-region-card-copy small{color:var(--muted);font-size:13px;line-height:1.35}.recon-region-badge{border:1px solid var(--line);background:var(--surface-soft);min-height:32px;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap;border-radius:999px;flex:none;justify-content:center;align-items:center;padding:6px 10px;font-size:12px;font-weight:800;display:inline-flex}.recon-region-badge.needs-review{border-color:var(--warn-border);background:var(--warn-soft);color:var(--warn)}.recon-region-badge.clear{border-color:var(--success-border);background:var(--success-soft);color:var(--success)}.recon-region-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin:0;display:grid}.recon-region-metrics dt{color:var(--muted);font-size:12px;font-weight:700}.recon-region-metrics dd{color:var(--ink);font-variant-numeric:tabular-nums;margin:0;font-size:18px;font-weight:800;line-height:1.25}.recon-region-progress{height:8px}.recon-region-cta{justify-self:start;width:max-content}.finance-chart-card{align-content:start;gap:18px;display:grid}.finance-chart-card.wide{grid-column:1/-1}.compact-heading{align-items:start}.pie-chart{--chart-value:0%;aspect-ratio:1;background:radial-gradient(circle at center, var(--surface) 0 53%, transparent 54%), conic-gradient(var(--accent) 0 var(--chart-value), var(--line) var(--chart-value) 100%);border-radius:50%;justify-self:center;place-items:center;width:min(220px,100%);display:grid}.pie-chart.split{background:radial-gradient(circle at center, var(--surface) 0 53%, transparent 54%), conic-gradient(var(--accent) 0 var(--chart-value), #38a169 var(--chart-value) 100%)}.pie-chart span{text-align:center;max-width:128px;color:var(--ink);font-size:22px;font-weight:850;line-height:1.15}.chart-legend{color:var(--muted);flex-wrap:wrap;gap:10px 16px;font-size:13px;font-weight:700;display:flex}.chart-legend span{align-items:center;gap:7px;display:inline-flex}.legend-dot{background:var(--accent);border-radius:50%;width:10px;height:10px}.legend-dot.secondary{background:#38a169}.legend-dot.muted-dot{background:var(--line)}.finance-bars{gap:16px;display:grid}.bar-label{color:var(--muted);justify-content:space-between;gap:12px;margin-bottom:8px;font-size:13px;font-weight:750;display:flex}.bar-label strong{color:var(--ink)}.bar-track{background:var(--line);border-radius:999px;height:14px;overflow:hidden}.bar-track span{border-radius:inherit;background:var(--accent);height:100%;display:block}.bar-track.actual span{background:#38a169}.bar-track.success span{background:var(--success)}.bar-track.accent span{background:var(--accent)}.bar-track.warning span{background:var(--warn)}.compact-pills{margin-top:4px}.strong-cell{font-weight:800}.run-workspace{grid-template-columns:280px minmax(0,1fr);align-items:start;gap:20px;display:grid}.run-sidebar{gap:18px;display:grid;position:sticky;top:24px}.run-sidebar-block{gap:12px;display:grid}.run-sidebar-actions{gap:10px;display:grid}.run-command-metrics.metrics-grid{grid-template-columns:minmax(180px,.9fr) minmax(300px,1.35fr) minmax(250px,1.2fr) minmax(320px,1.5fr) minmax(210px,1fr);align-items:stretch;gap:10px}.run-command-card.metric-card{gap:6px;min-width:0;min-height:0;padding:10px 12px;display:grid}.run-command-card .eyebrow,.run-command-card .muted,.run-command-card .metric-value{margin:0}.run-command-card .metric-value{font-size:20px}.run-command-card .muted.compact{line-height:1.35}.run-command-title-row{justify-content:space-between;align-items:center;gap:10px;display:flex}.run-assignment-card{align-content:start}.run-assignment-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;min-width:0;display:grid}.run-assignment-fields .field{gap:3px;min-width:0;margin:0}.run-assignment-fields .searchable-select{width:100%}.run-command-card .field span{letter-spacing:0;text-transform:none;font-size:12px}.run-command-card .field input,.run-command-card .field select,.run-command-card .field textarea{box-sizing:border-box;width:100%;min-width:0;min-height:38px;padding:7px 10px;font-size:13px}.run-command-card .field textarea{overflow-wrap:anywhere;resize:vertical;min-height:38px}.run-command-actions{flex-wrap:wrap;gap:6px;display:flex}.run-command-actions .button{flex:86px;justify-content:center;min-height:32px;padding:6px 10px;font-size:12px}.source-total-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.source-total-card{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;gap:1px;min-width:0;padding:7px 9px;display:grid}.source-total-card span,.source-total-card small{color:var(--muted);font-size:11px;font-weight:750}.source-total-card strong{color:var(--ink);font-size:13px;line-height:1.25}.source-total-card-mo{border-color:var(--success-border);background:var(--success-soft)}.source-total-card-hk{border-color:var(--info-border);background:var(--info-soft)}.run-command-total{border-top:1px solid var(--line-soft);color:var(--accent-deep);margin:0;padding-top:6px;font-size:12px;font-weight:800}.source-badge{border:1px solid var(--line);white-space:nowrap;border-radius:999px;justify-content:center;align-items:center;min-width:60px;padding:4px 9px;font-size:12px;font-weight:800;display:inline-flex}.source-badge-mo{border-color:var(--success-border);background:var(--success-soft);color:var(--success)}.source-badge-hk{border-color:var(--info-border);background:var(--info-soft);color:var(--info)}.route-sheet-edit-cell{min-width:112px}.route-sheet-edit-cell .excel-input-flat{width:100%;min-width:100%;min-height:38px;color:var(--ink);background:0 0;border:0;outline:none;padding:6px 10px;display:block}.route-sheet-edit-cell .excel-input-flat:hover{background:var(--accent-tint-faint)}.route-sheet-edit-cell .excel-input-flat:focus{background:var(--surface);outline:2px solid var(--accent);outline-offset:-2px}.route-sheet-edit-cell .numeric-input{text-align:right;font-variant-numeric:tabular-nums}.single-column{grid-template-columns:1fr}.run-sheet{gap:12px;min-width:0;padding:16px;display:grid}.sheet-header{justify-content:space-between;align-items:center;gap:14px;display:flex}.sheet-header h3{margin-bottom:6px;font-size:28px}.run-sheet-title{flex-wrap:wrap;align-items:center;gap:16px;min-width:0;display:flex}.run-sheet-title h3{margin-bottom:0}.run-sheet-date-field{min-width:180px;margin:0}.run-sheet-date-field input[type=date]{min-height:40px}.sheet-header .muted{margin:0;line-height:1.45}.sheet-header-actions{flex-wrap:wrap;flex:none;gap:8px;display:flex}.sheet-header-actions .button{min-height:40px;padding:8px 14px}.sheet-tabs{flex-wrap:wrap;gap:12px;display:flex}.sheet-tab{border:1px solid var(--line);background:var(--surface-glass);color:var(--ink);border-radius:8px;align-items:center;gap:12px;padding:10px 14px;display:inline-flex}.sheet-tab strong{color:var(--accent-deep)}.sheet-tab.active{border-color:var(--accent-tint-strong);background:var(--accent-soft)}.sheet-table-wrap{border:1px solid var(--line);background:var(--surface);border-radius:8px;overflow-x:auto}.shipment-picker-summary{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;flex-wrap:wrap;gap:8px;padding:8px 10px;display:flex}.shipment-picker-summary div{border-right:1px solid var(--line);align-items:baseline;gap:8px;min-width:138px;padding:0 12px 0 0;display:inline-flex}.shipment-picker-summary span{color:var(--muted);white-space:nowrap;font-size:12px;font-weight:750}.shipment-picker-summary strong{color:var(--ink);font-size:18px;line-height:1.2}.shipment-picker-summary div:last-child{border-right:0}.shipment-picker-filters{flex-wrap:wrap;align-items:end;gap:10px;display:flex}.shipment-picker-filters .field{margin:0}.shipment-picker-table-wrap{max-height:min(74vh,100vh - 300px);overflow:auto}.sheet-table{border-collapse:collapse;width:100%;min-width:1320px}.sheet-table th,.sheet-table td{border-bottom:1px solid var(--line);border-right:1px solid var(--line-soft);vertical-align:middle;padding:8px}.sheet-table th:last-child,.sheet-table td:last-child{border-right:0}.sheet-table th{z-index:1;background:var(--surface-soft);color:var(--muted);letter-spacing:.05em;text-transform:uppercase;font-size:12px;font-weight:700;position:sticky;top:0}.sheet-table tr.selected-row td{background:var(--accent-soft)}.shipment-checkbox{min-width:88px;color:var(--ink);align-items:center;gap:8px;font-weight:700;display:inline-flex}.shipment-checkbox input{width:18px;height:18px;accent-color:var(--accent)}.numeric-cell{text-align:right;white-space:nowrap}.sheet-input{border:1px solid var(--accent-tint-soft);background:var(--surface);width:100%;min-height:38px;color:var(--ink);border-radius:8px;padding:8px 10px}.sheet-input.numeric{text-align:right}.sheet-input:focus{outline:2px solid var(--accent-tint-medium);border-color:var(--accent-tint-strong)}.sheet-row-actions{gap:6px;display:flex}.sheet-action{border:1px solid var(--line);background:var(--surface);border-radius:8px;min-width:38px;height:38px}.sheet-action.danger{color:var(--danger);border-color:var(--danger-border);background:var(--danger-soft)}.run-review-shell{gap:18px;min-width:0;display:grid}.review-actions{flex-wrap:wrap;align-items:end;gap:12px;display:flex}.compact-field{min-width:220px}.review-balance-strip{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.review-balance-strip div,.review-run-stats div{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;padding:12px}.review-balance-strip span,.review-run-stats span{color:var(--muted);font-size:13px;font-weight:700;display:block}.review-balance-strip strong,.review-run-stats strong{color:var(--accent-deep);margin-top:4px;font-size:22px;display:block}.review-board{grid-auto-columns:minmax(300px,360px);grid-auto-flow:column;gap:14px;padding-bottom:8px;display:grid;overflow-x:auto}.review-run-column{border:1px solid var(--line);background:var(--surface);border-radius:8px;grid-template-rows:auto auto minmax(220px,1fr);gap:12px;min-height:520px;padding:14px;display:grid}.review-run-column.drop-ready{border-color:var(--accent-tint-strong);background:var(--accent-soft)}.review-run-header{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.review-run-header strong,.review-stop-main strong{color:var(--ink);display:block}.review-run-header span,.review-stop-main span{color:var(--muted);margin-top:4px;font-size:13px;display:block}.review-run-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.review-run-stats div{padding:10px}.review-run-stats strong{font-size:18px}.review-stop-list{align-content:start;gap:10px;min-height:220px;display:grid}.review-stop-card{border:1px solid var(--line);background:var(--panel);cursor:grab;border-radius:8px;gap:10px;padding:12px;display:grid}.review-stop-card:active{cursor:grabbing}.review-stop-card:focus-within{outline:2px solid var(--accent-tint-medium);outline-offset:2px}.review-stop-meta{color:var(--muted);flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;display:flex}.review-stop-meta .status-pill{min-width:0;padding:5px 8px;font-size:12px}.review-empty-column{border:1px dashed var(--accent-tint-strong);background:var(--surface-soft);min-height:160px;color:var(--muted);text-align:center;border-radius:8px;place-items:center;padding:18px;display:grid}.monthly-preview-shell{overflow-x:auto}.monthly-statement-preview{background:#fff;width:min(100%,920px);margin:0 auto}.statement-paper{border:1px solid var(--line);color:#111827;background:#fff;min-height:1120px;padding:52px 64px;font-family:PMingLiU,MingLiU,Microsoft JhengHei,serif}.statement-header{text-align:center;justify-content:space-between;align-items:flex-start;gap:32px;display:flex}.statement-header h2{letter-spacing:.08em;margin:0;font-size:32px}.statement-header p{color:#111827;text-underline-offset:4px;margin:4px 0 0;font-size:20px;text-decoration:underline}.statement-meta{color:#111827;text-align:left;gap:16px;min-width:220px;padding-top:54px;font-size:18px;display:grid}.statement-customer-line{justify-content:space-between;gap:24px;margin:44px 0 26px;font-size:20px;font-weight:700;display:flex}.statement-table{border-collapse:collapse;width:100%;font-size:18px}.statement-table th,.statement-table td{text-align:left;border:0;padding:7px 10px}.statement-table th{color:#111827;text-underline-offset:3px;font-weight:800;text-decoration:underline}.statement-table .numeric{text-align:right}.statement-table-row.is-clickable{cursor:pointer}.statement-table-row.is-clickable:hover td,.statement-table-row.is-clickable:focus-visible td{background:color-mix(in srgb, var(--accent) 10%, transparent)}.statement-table-row.is-clickable:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.monthly-preview-jump-hint{color:#4b5563;margin:0 0 .75rem;font-size:.92rem}.statement-return{margin-top:96px;font-size:22px;font-weight:800;text-decoration:underline}.statement-footer{gap:150px;margin-top:150px;font-size:22px;font-weight:800;display:grid}.statement-footer div:first-child{justify-content:center;gap:84px;display:flex}.statement-payable{justify-content:center;align-items:baseline;gap:28px;display:flex}.statement-payable span{text-underline-offset:5px;text-decoration:underline}.statement-payable strong{color:#1f2a44;font-size:34px}@media print{.sidebar,.topbar,.card,.metrics-grid,.monthly-preview-shell+*{display:none!important}.app-shell,.main{background:#fff;padding:0;display:block}.monthly-preview-shell{overflow:visible}.monthly-statement-preview{width:auto}.monthly-preview-jump-hint{display:none!important}.statement-paper{border:0;min-height:auto;padding:0}}@media (max-width:1180px){.dashboard-menu-section-grid{grid-template-columns:1fr}.dashboard-step-grid,.dashboard-chart-grid,.form-grid.three-up,.form-grid.five-up,.shipment-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.shipment-toolbar .button{width:100%}.shipment-search-field{min-width:0}}@media (max-width:960px){.app-shell,.app-shell.sidebar-collapsed{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid var(--line);height:auto;max-height:38vh;padding:10px 14px 12px;position:static;overflow-y:auto}.brand-row{min-height:44px;margin-bottom:10px;padding:4px 0 10px}.brand-mark{width:34px;height:34px}.brand strong{font-size:16px}.brand small{font-size:12px}.sidebar-nav{gap:10px}.nav-group{gap:6px}.nav-group-toggle{margin:0;font-size:13px}.nav-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.nav-link{gap:8px;min-height:48px;padding:8px}.nav-shortcut{width:26px;height:26px;font-size:12px}.nav-link-label{font-size:14px}.nav-link-description,.sidebar-foot{display:none}.main{padding:0 14px 30px}.topbar{align-items:center;min-height:56px;margin:0 -14px 14px;padding:10px 14px;position:static}.breadcrumbs{font-size:13px}.breadcrumb-item:not(:last-child),.breadcrumb-separator,.sidebar-collapsed .sidebar-nav,.sidebar-collapsed .sidebar-foot{display:none}.sidebar-collapsed .brand-copy{display:block}.topbar-actions{flex:none;width:auto;display:flex}.topbar-actions .button{width:auto}.user-pill{display:none}.grid.two,.grid.three,.grid-two,.dashboard-menu-grid,.dashboard-step-grid,.dashboard-chart-grid,.report-visual-grid,.report-directory,.metrics-grid,.settings-category-grid,.summary-pills,.dashboard-mini,.form-grid,.form-grid.three-up,.form-grid.five-up,.permission-grid,.shipment-toolbar{grid-template-columns:1fr}.dashboard-menu-hero{flex-direction:column;align-items:flex-start;padding:18px}.dashboard-menu-hero-copy h2{font-size:24px}.dashboard-role-summary{justify-items:start;width:100%}.dashboard-menu-section-header,.dashboard-menu-grid{padding:14px}.dashboard-menu-card{min-height:82px;padding:14px}.dashboard-menu-icon{width:40px;height:40px}.ops-action-grid{grid-template-columns:1fr}.ops-selected-card{grid-template-columns:minmax(0,1fr)}.shipment-search-field{min-width:0}.hero h1{font-size:34px}.card-title-row,.row-item,.location-bar,.section-heading,.save-bar,.list-pagination,.module-subnav-items{flex-direction:column;align-items:flex-start}.align-end{text-align:left;justify-items:start}.run-overview-main{flex-direction:column;align-items:flex-start}.run-workspace,.run-command-metrics.metrics-grid,.run-assignment-fields,.source-total-grid{grid-template-columns:1fr}.run-sidebar{position:static}.sheet-header,.sheet-header-actions{flex-direction:column;align-items:flex-start}.run-sheet-date-field,.run-sheet-date-field input[type=date]{width:100%}.shipment-picker-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.shipment-picker-filters,.shipment-picker-filters .field{width:100%}.review-actions{align-items:stretch;width:100%}.review-actions .button,.compact-field{width:100%}.review-balance-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.review-board{grid-auto-flow:row;grid-auto-columns:initial;grid-template-columns:1fr;overflow-x:visible}.review-run-column{min-height:0}.module-subnav-item{width:100%}.settings-link-list.compact{grid-template-columns:1fr}.expense-calendar,.month-calendar{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-cal-legend-grid,.ops-cal-day-counts,.del-cal-legend-grid,.coll-cal-legend-grid,.cus-cal-legend-grid,.recon-cal-legend-grid,.recon-cal-day-counts,.ds-cal-legend-grid,.ds-cal-day-counts{grid-template-columns:1fr}.calendar-weekday,.calendar-empty{display:none}}.operation-workbench{gap:20px}.workbench-compact-card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:24px;box-shadow:0 10px 30px -10px #0000000a,0 1px 3px #00000005}.workbench-compact-card.card h3{color:var(--accent-deep);margin-bottom:6px;font-size:20px;font-weight:800}.workbench-compact-card.card p{color:var(--muted);margin:0;font-size:14px;line-height:1.45}.workbench-compact-card .section-heading{border-bottom:1px solid var(--line-soft);gap:16px;margin-bottom:16px;padding-bottom:16px}.workbench-compact-card .eyebrow{color:var(--accent);margin-bottom:6px;font-weight:700}.workbench-compact-card.stack-md,.workbench-compact-card .stack-md{gap:20px}@media (min-width:760px){.workbench-compact-card.stack-md:has([data-precheck-root]){gap:12px;padding-top:12px;padding-bottom:12px}.workbench-compact-card:has([data-precheck-root]) .workbench-subpage-toolbar{min-height:36px;padding-bottom:8px}.workbench-compact-card:has([data-precheck-root]) .stack-md{gap:12px}.main:has([data-precheck-root]) .topbar{margin-bottom:8px}[data-precheck-intro]{clip-path:inset(50%);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}}@media (max-width:759px){[data-precheck-line]{gap:8px;min-width:0;display:grid}}[data-precheck-intro] h3,[data-precheck-intro] p{margin:0}[data-detail-actions-lead]{z-index:2;background:var(--surface);flex-wrap:wrap;align-items:center;gap:8px;padding:8px 0;display:flex;position:sticky;top:0}.workbench-compact-card .save-actions{gap:12px}.workbench-compact-card .field{gap:6px}.workbench-subpage-toolbar{border-bottom:1px solid var(--line-soft);justify-content:flex-end;align-items:center;min-height:36px;padding-bottom:4px;display:flex}.operation-profile-compact{flex:none;justify-content:flex-end;align-items:center;gap:12px;min-width:270px;padding:0 0 0 16px;display:flex}.operation-profile-compact-copy{text-align:right;gap:2px;display:grid}.operation-profile-compact-copy span,.operation-profile-compact-date span{color:var(--muted);letter-spacing:.04em;text-transform:uppercase;font-size:11px;font-weight:800}.operation-profile-compact-copy strong{color:var(--accent-deep);font-size:15px;line-height:1.2}.operation-profile-compact-copy small{color:var(--success,#15803d);font-size:11px;font-weight:700}.operation-profile-compact-date{gap:4px;margin:0;display:grid}.operation-profile-compact-date input{border:1px solid var(--accent-border);background:var(--surface);min-height:36px;color:var(--accent-deep);border-radius:8px;padding:6px 10px;font-size:13px;font-weight:700}.data-center-profile-actions{gap:16px;padding:4px 4px 0;display:grid}.data-center-profile-actions .section-heading{border-bottom:0;margin-bottom:0;padding-bottom:0}.data-center-action-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.data-center-action-card{border:1px solid var(--accent-border);background:var(--accent-soft);min-height:132px;color:inherit;border-radius:8px;gap:7px;padding:16px;text-decoration:none;transition:border-color .16s,background .16s,transform .16s;display:grid}.data-center-action-card:hover,.data-center-action-card:focus-visible{border-color:var(--accent);background:var(--surface);transform:translateY(-1px)}.data-center-action-card.secondary{border-color:var(--line);background:var(--surface-soft)}.data-center-action-card .eyebrow{margin:0;font-size:11px}.data-center-action-card strong{color:var(--accent-deep);font-size:16px}.data-center-action-card small{color:var(--muted);font-size:12px;line-height:1.45}.data-center-create-profile{justify-self:start}.upload-input-grid{align-items:stretch;gap:20px;margin:16px 0 24px;display:grid}.upload-input-grid.embedded{margin-top:0;margin-bottom:16px}.manual-grid-toolbar{border-bottom:1px solid var(--line-soft);justify-content:space-between;align-items:center;gap:16px;padding-bottom:8px;display:flex}.manual-grid-status{color:var(--muted);margin:0;font-size:13px;line-height:1.35}.reconciliation-grid-search-row{flex-wrap:wrap;align-items:end;gap:12px;margin-bottom:12px;display:flex}.reconciliation-grid-search{flex:320px;max-width:520px}.reconciliation-grid-search input{width:100%}.reconciliation-grid-table .numeric-cell .grid-cell-btn,.reconciliation-grid-table .numeric-cell .grid-cell-input{text-align:right;font-variant-numeric:tabular-nums}.reconciliation-grid-table td.reconciliation-status-paid{background:#e7f6ec}.reconciliation-grid-table td.reconciliation-status-paid .grid-cell-btn{color:#157a32;font-weight:700}.reconciliation-grid-table td.reconciliation-status-partial{background:#fff6d8}.reconciliation-grid-table td.reconciliation-status-partial .grid-cell-btn{color:#8a5a00;font-weight:700}.reconciliation-grid-table td.reconciliation-status-unpaid{background:#fdecea}.reconciliation-grid-table td.reconciliation-status-unpaid .grid-cell-btn{color:#c62828;font-weight:700}.reconciliation-print-sheet{display:none}@media print{.card.reconciliation-entry-card{width:100%;box-shadow:none;background:#fff;border:0;border-radius:0;padding:0;display:block!important}.reconciliation-entry-card .reconciliation-screen-only{display:none!important}.reconciliation-entry-card .reconciliation-print-sheet{color:#111827;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:block!important}.reconciliation-print-header{margin-bottom:14px}.reconciliation-print-header>p,.reconciliation-print-header h1,.reconciliation-print-note{margin:0}.reconciliation-print-header>p{color:#4b5563;letter-spacing:.08em;font-size:9pt;font-weight:700}.reconciliation-print-header h1{margin-top:3px;font-size:18pt;line-height:1.2}.reconciliation-print-meta{color:#4b5563;flex-wrap:wrap;gap:6px 16px;margin-top:7px;font-size:8.5pt;display:flex}.reconciliation-print-meta strong{color:#9a3412}.reconciliation-print-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px;display:grid}.reconciliation-print-summary div{background:#f8fafc;border:1px solid #cbd5e1;gap:2px;padding:7px 9px;display:grid}.reconciliation-print-summary span{color:#4b5563;font-size:8pt}.reconciliation-print-summary strong{font-size:10pt}.reconciliation-print-table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:8.5pt}.reconciliation-print-table thead{display:table-header-group}.reconciliation-print-table tr{break-inside:avoid;page-break-inside:avoid}.reconciliation-print-table th,.reconciliation-print-table td{overflow-wrap:anywhere;text-align:left;vertical-align:top;border:1px solid #94a3b8;padding:5px 6px}.reconciliation-print-table th{background:#e2e8f0;font-weight:800}.reconciliation-print-table th:first-child{width:19%}.reconciliation-print-table th:last-child{width:15%}.reconciliation-print-table .numeric-cell{text-align:right;white-space:nowrap}.reconciliation-print-note{color:#4b5563;margin-top:8px;font-size:8pt}}@media (max-width:720px){.reconciliation-grid-search-row{align-items:stretch}.reconciliation-grid-search,.reconciliation-grid-search-row .button{width:100%;max-width:none}}.manual-grid-row-control{z-index:3;text-align:center;width:68px;min-width:68px;max-width:68px;position:sticky;left:0;background:var(--surface-soft)!important}thead .manual-grid-row-control{z-index:6}.manual-grid-row-control>input,.manual-grid-row-controls>input{width:16px;height:16px;accent-color:var(--accent);cursor:pointer;margin:0}.manual-grid-row-controls{justify-content:center;align-items:center;gap:5px;min-height:40px;display:flex}.manual-grid-drag-handle{width:24px;min-width:24px;height:28px;color:var(--muted);font:inherit;cursor:grab;background:0 0;border:1px solid #0000;border-radius:5px;padding:0;line-height:1}.manual-grid-drag-handle:hover:not(:disabled),.manual-grid-drag-handle:focus-visible{border-color:var(--accent-border);background:var(--accent-tint-faint);color:var(--accent-deep);outline:none}.manual-grid-drag-handle:active:not(:disabled){cursor:grabbing}.manual-grid-drag-handle:disabled{opacity:.35;cursor:not-allowed}.manual-grid-row-selected td{background:var(--accent-tint-faint)}.manual-grid-row-selected td.manual-grid-row-control{background:var(--accent-tint-soft)!important}.manual-grid-row-drop-before td{border-top:3px solid var(--accent)!important}.manual-grid-row-drop-after td{border-bottom:3px solid var(--accent)!important}.shipment-payment-tabs{margin-bottom:0}.workbench-compact-card .table-wrap{border:1px solid var(--line);border-radius:8px;margin-top:12px;overflow:hidden}.workbench-compact-card .data-table th,.workbench-compact-card .data-table td{padding:12px 14px}.workbench-compact-card .excel-grid-table th,.workbench-compact-card .excel-grid-table td{height:40px;padding:0!important}.operation-profile-panel{border:1px solid var(--accent-border);background:linear-gradient(135deg, var(--surface) 0%, var(--accent-soft) 100%);border-radius:12px;grid-template-columns:1.15fr .85fr 2fr;align-items:center;gap:24px;padding:20px;display:grid;box-shadow:0 4px 20px #245f9f0a}.operation-profile-copy{min-width:0}.operation-profile-copy h3{color:var(--accent-deep);margin:0 0 6px;font-size:24px;font-weight:800}.operation-profile-copy p:last-child{color:var(--muted);margin:0;font-size:14px;line-height:1.4}.operation-profile-date{flex-direction:column;margin:0;display:flex}.operation-profile-date span{color:var(--muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px;font-size:12px;font-weight:750}.operation-profile-date input[type=date]{border:1px solid var(--accent-border);background:var(--surface);color:var(--accent-deep);border-radius:8px;padding:8px 12px;font-size:14px;font-weight:700;transition:all .2s;box-shadow:0 1px 2px #245f9f0d}.operation-profile-date input[type=date]:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-tint-strong);outline:none}.workbench-metrics-grid.metrics-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.workbench-metrics-grid .draft-summary-card{background:var(--surface);border:1px solid var(--line);border-radius:8px;min-width:0;padding:12px;transition:all .2s;position:relative;overflow:hidden;box-shadow:0 2px 4px #00000005}.workbench-metrics-grid .draft-summary-card:hover{transform:translateY(-2px);box-shadow:0 4px 8px #0000000d}.workbench-metrics-grid .draft-summary-card:before{content:"";background:var(--muted);width:4px;position:absolute;top:0;bottom:0;left:0}.workbench-metrics-grid .draft-summary-card:first-child:before{background:#3b82f6}.workbench-metrics-grid .draft-summary-card:nth-child(2):before{background:#a855f7}.workbench-metrics-grid .draft-summary-card:nth-child(3):before{background:#6366f1}.workbench-metrics-grid .draft-summary-card:nth-child(4):before{background:#f59e0b}.workbench-metrics-grid .draft-summary-card:nth-child(5):before{background:#10b981}.workbench-metrics-grid .draft-summary-card span{color:var(--muted);letter-spacing:.02em;font-size:11px;font-weight:750;display:block}.workbench-metrics-grid .draft-summary-card strong{color:var(--ink);margin-top:4px;font-size:20px;font-weight:800;display:block}.segmented-tabs{background:var(--surface-soft);border:1px solid var(--line);border-radius:10px;gap:4px;padding:4px;display:inline-flex;box-shadow:inset 0 1px 2px #00000005}.segmented-tabs button{color:var(--muted);cursor:pointer;-webkit-user-select:none;user-select:none;background:0 0;border:none;border-radius:8px;padding:8px 18px;font-size:14px;font-weight:700;transition:all .2s}.segmented-tabs button:hover:not(:disabled){color:var(--ink);background:#0000000a}.segmented-tabs button.active:not(:disabled){background:var(--surface);color:var(--accent);box-shadow:0 2px 5px #0000000f,0 1px 2px #00000008}.segmented-tabs button:disabled{opacity:.5;cursor:not-allowed}.excel-grid-td{border-right:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft);vertical-align:stretch;background:var(--surface);position:relative;padding:0!important}.grid-cell-btn{width:100%;height:100%;min-height:40px;color:var(--ink);text-align:left;cursor:cell;background:0 0;border:none;border-radius:0;outline:none;align-items:center;padding:8px 12px;font-family:inherit;font-size:13.5px;transition:background-color .1s;display:flex}.grid-cell-btn:hover{background-color:var(--accent-tint-faint)}.excel-cell-active{background-color:var(--accent-tint-soft)!important}.excel-cell-active .grid-cell-btn{outline:2px solid var(--accent);outline-offset:-2px}.grid-cell-input{width:100%;height:100%;min-height:40px;padding:8px 12px;font-family:inherit;font-size:13.5px;display:block;border:2px solid var(--accent)!important;background:var(--surface)!important;color:var(--ink)!important;border-radius:0!important;outline:none!important;box-shadow:0 2px 4px #245f9f1a!important}.grid-cell-editor{min-width:180px;height:100%;position:relative}.grid-cell-suggestions{z-index:30;border:1px solid var(--line);background:var(--surface);width:max(100%,260px);max-height:220px;position:absolute;top:calc(100% - 1px);left:0;overflow-y:auto;box-shadow:0 10px 24px #0f172a24}.grid-cell-suggestion{border:none;border-bottom:1px solid var(--line-soft);width:100%;color:var(--ink);text-align:left;cursor:pointer;background:0 0;gap:2px;padding:8px 10px;display:grid}.grid-cell-suggestion:hover,.grid-cell-suggestion.active{background:var(--accent-tint-soft)}.grid-cell-suggestion span{font-size:13px;font-weight:700}.grid-cell-suggestion small,.grid-cell-suggestion-empty{color:var(--muted);font-size:12px}.grid-cell-suggestion-empty{padding:10px}.excel-grid-table input.excel-input-flat{width:100%;height:100%;min-height:38px;color:var(--ink);background:0 0;border:none;outline:none;padding:6px 10px;font-family:inherit;font-size:13px;transition:background-color .15s;display:block}.excel-grid-table input.excel-input-flat:hover{background-color:var(--accent-tint-faint)}.excel-grid-table input.excel-input-flat:focus{outline-offset:-2px;box-shadow:0 1px 3px #0000000d;background-color:var(--surface)!important;outline:2px solid var(--accent)!important}.excel-grid-table select.excel-select-flat{width:100%;height:100%;min-height:38px;color:var(--ink);cursor:pointer;background:0 0;border:none;outline:none;padding:6px 10px;font-family:inherit;font-size:13px;display:block}.excel-grid-table select.excel-select-flat:hover{background-color:var(--accent-tint-faint)}.excel-grid-table select.excel-select-flat:focus{outline-offset:-2px;background-color:var(--surface)!important;outline:2px solid var(--accent)!important}.customer-table-control-summary{color:var(--muted);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;font-size:13px;font-weight:700;display:flex}.customer-table-header-control{gap:6px;min-width:154px;display:grid}.customer-table-sort-button{width:100%;min-height:32px;color:var(--muted);cursor:pointer;font:inherit;letter-spacing:0;text-align:left;text-transform:uppercase;background:0 0;border:0;justify-content:space-between;align-items:center;gap:8px;padding:4px 0;font-size:12px;font-weight:850;display:flex}.customer-table-sort-button span:first-child{overflow-wrap:anywhere;min-width:0}.customer-table-sort-button span:last-child{color:var(--accent);flex:none;font-size:14px;line-height:1}.customer-table-sort-button:hover,.customer-table-sort-button:focus-visible{color:var(--accent-deep);outline:none}.customer-table-filter-input{text-transform:none;width:100%;font-weight:650;border:1px solid var(--accent-tint-medium)!important;background:var(--surface)!important;min-height:34px!important;color:var(--ink)!important;border-radius:7px!important;padding:6px 8px!important;font-size:12px!important}.customer-table-filter-input::placeholder{color:var(--muted);opacity:.72}.customer-table-filter-input:focus{border-color:var(--accent)!important;outline:2px solid var(--accent-tint-medium)!important}.grid-status-td{vertical-align:middle!important;padding:8px 12px!important}.status-badge{text-transform:uppercase;letter-spacing:.02em;border-radius:12px;justify-content:center;align-items:center;padding:4px 10px;font-size:12px;font-weight:700;display:inline-flex}.status-badge.badge-blank,.status-badge.badge-neutral{color:#64748b;background:#f1f5f9;border:1px solid #e2e8f0}.status-badge.badge-dirty,.status-badge.badge-warning{background:var(--warn-soft);color:var(--warn);border:1px solid var(--warn-border)}.status-badge.badge-saved,.status-badge.badge-success{background:var(--success-soft);color:var(--success);border:1px solid var(--success-border)}.status-badge.badge-error,.status-badge.badge-danger{background:var(--danger-soft);color:var(--danger);border:1px solid var(--danger-border)}.status-badge.badge-info{background:var(--info-soft);color:var(--info);border:1px solid var(--info-border)}.upload-dropzone{border:2px dashed var(--accent-border);text-align:center;background:var(--surface);cursor:pointer;border-radius:12px;padding:30px;transition:all .2s;position:relative}.upload-dropzone:hover{border-color:var(--accent);background:var(--accent-soft)}.upload-dropzone input[type=file]{opacity:0;cursor:pointer;position:absolute;inset:0}.upload-dropzone-icon{width:48px;height:48px;color:var(--accent);fill:none;stroke:currentColor;stroke-width:1.5px;margin-bottom:8px;transition:transform .2s}.upload-dropzone:hover .upload-dropzone-icon{transform:translateY(-4px)}.status-message{color:var(--danger);margin-top:4px;font-size:11px;line-height:1.3}.excel-workbench-fullscreen{z-index:50;max-height:calc(100vh - 24px);padding:20px;position:fixed;inset:12px;overflow:auto;box-shadow:0 24px 70px #0f172a38}.excel-workbench-fullscreen .section-heading{margin-bottom:8px}.excel-workbench-fullscreen .table-wrap{border:1px solid var(--line);border-radius:8px;max-height:calc(100vh - 210px);overflow:auto}.excel-workbench-fullscreen table th{z-index:1;background:var(--panel);position:sticky;top:0}@media (max-width:992px){.operation-profile-compact{justify-content:flex-start;width:100%;padding:0}.operation-profile-compact-copy{text-align:left}.workbench-subpage-toolbar{align-items:flex-start}.manual-grid-toolbar{flex-direction:column;align-items:stretch}.manual-grid-toolbar .save-actions{justify-content:flex-start}.data-center-action-grid{grid-template-columns:1fr}.operation-profile-panel{grid-template-columns:1fr 1fr}}@media (max-width:760px){.operation-profile-panel{grid-template-columns:1fr;align-items:stretch}.workbench-metrics-grid.metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.excel-workbench-fullscreen{border-radius:0;inset:0}}.customs-declaration-context{justify-content:space-between;align-items:center;gap:20px;padding:16px 20px;display:flex}.customs-declaration-context h2,.customs-declaration-context p{margin:0}.customs-declaration-context h2{margin:2px 0 4px;font-size:24px}.customs-assistant-start{background:var(--surface);grid-template-columns:auto minmax(0,700px);justify-content:center;align-items:center;gap:28px;min-height:360px;padding:44px;display:grid}.customs-assistant-start h2{margin:3px 0 10px;font-size:clamp(24px,3vw,34px)}.customs-assistant-loading{background:var(--surface);align-content:center;gap:10px;min-height:180px;padding:32px;display:grid}.customs-assistant-loading h2{margin:0;font-size:clamp(24px,3vw,34px)}.customs-assistant-loading p{margin:0}.customs-assistant-start-mark{border:1px solid var(--accent-border);background:var(--accent-soft);width:92px;height:92px;color:var(--accent-deep);box-shadow:inset 0 0 0 7px var(--surface);border-radius:22px;place-items:center;font-size:34px;font-weight:850;display:grid}.customs-assistant-shell{gap:16px;min-width:0;display:grid}.customs-assistant-hero{color:#fff;background:#183f67;border:1px solid #244b74;border-radius:12px;justify-content:space-between;align-items:center;gap:24px;padding:26px 28px;display:flex;box-shadow:0 10px 24px #173f6b29}.customs-assistant-hero h2,.customs-assistant-hero p{margin:0}.customs-assistant-hero h2{margin:2px 0 7px;font-size:clamp(26px,3vw,36px);line-height:1.15}.customs-assistant-hero p:not(.eyebrow){color:#d8e7f5;max-width:720px}.customs-assistant-hero .eyebrow{color:#b9d7f2}.customs-assistant-version{background:#ffffff14;border:1px solid #fff3;border-radius:10px;flex:none;justify-items:center;min-width:96px;padding:12px 16px;display:grid}.customs-assistant-version span{color:#c9dceb;font-size:12px}.customs-assistant-version strong{font-size:22px}.customs-assistant-summary{border:1px solid var(--line);background:var(--surface);border-radius:10px;grid-template-columns:repeat(4,minmax(0,1fr));display:grid;overflow:hidden}.customs-assistant-summary>div{border-right:1px solid var(--line-soft);gap:3px;padding:16px 20px;display:grid}.customs-assistant-summary>div:last-child{border-right:0}.customs-assistant-summary span{color:var(--muted);font-size:13px;font-weight:650}.customs-assistant-summary strong{color:var(--ink);font-size:25px;line-height:1.2}.customs-assistant-steps{border:1px solid var(--line);background:var(--surface);border-radius:11px;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:8px;display:grid}.customs-assistant-steps button{min-height:62px;color:var(--muted);text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:8px;grid-template-rows:auto auto;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:0 10px;padding:9px 12px;display:grid}.customs-assistant-steps button>span{border:1px solid var(--line);background:var(--surface-soft);width:32px;height:32px;color:var(--muted);border-radius:50%;grid-row:1/3;place-items:center;font-weight:800;display:grid}.customs-assistant-steps button strong{color:var(--ink);font-size:14px}.customs-assistant-steps button small{font-size:11px}.customs-assistant-steps button:hover{background:var(--surface-soft)}.customs-assistant-steps button.active{border-color:var(--accent-border);background:var(--accent-soft);color:var(--accent-deep)}.customs-assistant-steps button.active>span{border-color:var(--accent);background:var(--accent);color:#fff}.customs-assistant-steps button.done>span{border-color:var(--success-border);background:var(--success-soft);color:var(--success)}.customs-assistant-message{border:1px solid var(--info-border);background:var(--info-soft);color:var(--info);border-radius:8px;justify-content:space-between;align-items:center;gap:14px;margin:0;padding:12px 14px;font-weight:650;display:flex}.customs-assistant-message.success{border-color:var(--success-border);background:var(--success-soft);color:var(--success)}.customs-assistant-message.danger{border-color:var(--danger-border);background:var(--danger-soft);color:var(--danger)}.customs-assistant-stage{border:1px solid var(--line);background:var(--surface);border-radius:12px;min-width:0;padding:22px;box-shadow:0 1px 3px #1722350d}.customs-assistant-stage-heading{border-bottom:1px solid var(--line-soft);justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:18px;padding-bottom:16px;display:flex}.customs-assistant-stage-heading h3,.customs-assistant-stage-heading p{margin:0}.customs-assistant-stage-heading h3{margin-top:2px;font-size:22px}.customs-assistant-stage-heading>p{max-width:460px;color:var(--muted);font-size:14px}.customs-classification-list,.customs-data-list,.customs-preview-list{gap:14px;display:grid}.customs-classification-card,.customs-data-card,.customs-preview-card{border:1px solid var(--line);background:var(--surface);border-radius:10px;overflow:hidden}.customs-classification-card{border-left-width:5px;padding:16px}.customs-classification-card.status-exact{border-left-color:var(--success)}.customs-classification-card.status-history{border-left-color:#c28a2e}.customs-classification-card.status-manual{border-left-color:var(--accent)}.customs-classification-card.status-pending{border-left-color:var(--danger)}.customs-classification-card.status-excluded{border-left-color:#8592a3}.customs-classification-source,.customs-data-card-title,.customs-file-item-head,.customs-preview-head{justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.customs-classification-source>div,.customs-data-card-title>div{gap:3px;display:grid}.customs-classification-source strong,.customs-data-card-title strong{font-size:17px}.customs-classification-source span:not(.customs-status-tag),.customs-data-card-title span:not(.customs-status-tag){color:var(--muted);font-size:13px}.customs-status-tag{border:1px solid var(--line);background:var(--surface-soft);min-height:28px;color:var(--muted);white-space:nowrap;border-radius:999px;flex:none;align-items:center;padding:4px 9px;font-size:11px;font-weight:800;display:inline-flex}.customs-status-tag.exact{border-color:var(--success-border);background:var(--success-soft);color:var(--success)}.customs-status-tag.history{border-color:var(--warn-border);background:var(--warn-soft);color:var(--warn)}.customs-status-tag.manual{border-color:var(--accent-border);background:var(--accent-soft);color:var(--accent-deep)}.customs-status-tag.pending{border-color:var(--danger-border);background:var(--danger-soft);color:var(--danger)}.customs-status-tag.excluded{color:#59677a;background:#f0f3f6;border-color:#d6dde5}.customs-receipt-detail{background:var(--surface-soft);border-radius:7px;gap:4px;margin:13px 0;padding:11px 13px;display:grid}.customs-receipt-detail span{color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-size:11px;font-weight:750}.customs-receipt-detail strong{font-size:14px;font-weight:650}.customs-decision-switch{border:1px solid var(--line);background:var(--surface-soft);border-radius:8px;grid-template-columns:repeat(3,auto);gap:3px;padding:3px;display:inline-grid}.customs-decision-switch button{min-height:36px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:7px 11px;font-size:13px;font-weight:750}.customs-decision-switch button.active{background:var(--surface);color:var(--accent-deep);box-shadow:0 1px 4px #1722351f}.customs-classification-fields{grid-template-columns:minmax(260px,1fr) minmax(320px,1fr);align-items:end;gap:16px;margin-top:14px;display:grid}.customs-classification-fields select,.customs-data-card select,.customs-data-card input,.customs-file-lane header input,.customs-assistant-move-control select{border:1px solid var(--line);background:var(--surface);width:100%;min-height:42px;color:var(--ink);border-radius:7px;padding:9px 11px}.customs-classification-fields select:focus,.customs-data-card select:focus,.customs-data-card input:focus,.customs-file-lane header input:focus,.customs-assistant-move-control select:focus{border-color:var(--accent);outline:3px solid var(--accent-tint-medium)}.customs-confirm-panel{align-items:stretch;gap:12px;display:flex}.button.confirmed{border-color:var(--success-border);background:var(--success-soft);color:var(--success)}.customs-memory-choice{border:1px solid var(--line);cursor:pointer;border-radius:7px;align-items:center;gap:9px;min-height:44px;padding:7px 10px;display:flex}.customs-memory-choice input{width:17px;height:17px}.customs-memory-choice span{display:grid}.customs-memory-choice strong{font-size:13px}.customs-memory-choice small{color:var(--muted);font-size:10px}.customs-data-card{padding:17px}.customs-mapping-select{margin-top:14px}.customs-mapping-facts{border:1px solid var(--line);background:var(--line);border-radius:8px;grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;margin-top:14px;display:grid;overflow:hidden}.customs-mapping-facts>div{background:var(--surface-soft);gap:3px;min-width:0;padding:10px;display:grid}.customs-mapping-facts span,.customs-calculated-value span{color:var(--muted);text-transform:uppercase;font-size:10px;font-weight:750}.customs-mapping-facts strong{text-overflow:ellipsis;font-size:13px;overflow:hidden}.customs-quantity-grid{border:1px solid var(--accent-border);background:var(--accent-tint-faint);border-radius:9px;grid-template-columns:.7fr .8fr 1fr 1.2fr auto;align-items:end;gap:12px;margin-top:14px;padding:14px;display:grid}.customs-calculated-value{border:1px solid var(--line);background:var(--surface);border-radius:7px;align-content:center;min-height:66px;padding:9px 11px;display:grid}.customs-calculated-value strong{font-size:15px}.customs-final-qty input{border-color:var(--warn-border);background:#fffdf7}.customs-final-qty small{color:var(--warn);font-size:11px}.customs-inline-warning{border:1px solid var(--warn-border);background:var(--warn-soft);color:var(--warn);border-radius:7px;margin-top:14px;padding:12px;font-size:13px;font-weight:650}.customs-drag-help{color:var(--muted);margin:-6px 0 14px;font-size:13px}.customs-file-board{scroll-snap-type:x proximity;grid-auto-columns:minmax(300px,340px);grid-auto-flow:column;gap:12px;padding:2px 2px 14px;display:grid;overflow-x:auto}.customs-file-lane{border:1px solid var(--line);background:var(--surface-soft);scroll-snap-align:start;border-radius:10px;grid-template-rows:auto minmax(170px,1fr);min-height:340px;display:grid;overflow:hidden}.customs-file-lane.drop-ready{border-color:var(--accent);box-shadow:inset 0 0 0 2px var(--accent-tint-medium)}.customs-file-lane.unassigned{border-top:4px solid var(--danger)}.customs-file-lane.excluded{border-top:4px solid #8592a3}.customs-file-lane:not(.unassigned):not(.excluded){border-top:4px solid var(--accent)}.customs-file-lane>header{border-bottom:1px solid var(--line);background:var(--surface);justify-content:space-between;align-items:center;gap:10px;min-height:68px;padding:11px 12px;display:flex}.customs-file-lane>header>div{gap:2px;min-width:0;display:grid}.customs-file-lane>header span{color:var(--muted);text-transform:uppercase;font-size:10px;font-weight:800}.customs-file-lane>header strong,.customs-file-lane>header input{font-size:14px;font-weight:800}.customs-file-lane>header input{min-height:34px;padding:5px 7px}.customs-file-lane>header b{background:var(--surface-soft);min-width:30px;height:30px;color:var(--muted);border-radius:50%;place-items:center;font-size:13px;display:grid}.customs-lane-remove{border:1px solid var(--line);background:var(--surface);width:30px;height:30px;color:var(--muted);cursor:pointer;border-radius:6px;flex:none;place-items:center;font-size:19px;display:grid}.customs-lane-remove:hover{border-color:var(--danger-border);background:var(--danger-soft);color:var(--danger)}.customs-file-lane-body{align-content:start;gap:9px;padding:10px;display:grid}.customs-file-item{border:1px solid var(--line);border-left:4px solid var(--accent);background:var(--surface);cursor:grab;border-radius:8px;gap:6px;padding:11px;display:grid;box-shadow:0 1px 2px #1722350f}.customs-file-item:active{cursor:grabbing}.customs-file-item.status-history{border-left-color:#c28a2e}.customs-file-item.status-pending{border-left-color:var(--danger)}.customs-file-item.status-excluded{border-left-color:#8592a3}.customs-file-item.status-exact{border-left-color:var(--success)}.customs-file-item-head strong{text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.customs-file-item>span{color:var(--ink);font-size:13px}.customs-file-item>small{color:var(--muted);font-size:11px}.customs-assistant-move-control{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;margin-top:3px;display:grid}.customs-assistant-move-control>span{color:var(--muted);font-size:10px;font-weight:700}.customs-assistant-move-control select{min-height:34px;padding:5px 7px;font-size:11px}.customs-lane-empty{border:1px dashed var(--line);min-height:120px;color:var(--muted);border-radius:8px;place-items:center;font-size:13px;display:grid}.customs-preview-card{padding:18px}.customs-preview-head h3,.customs-preview-head p{margin:0}.customs-preview-head h3{margin-top:7px;font-size:20px}.customs-preview-head p{color:var(--muted);font-size:13px}.customs-blocker-list{border:1px solid var(--danger-border);background:var(--danger-soft);color:var(--danger);border-radius:7px;flex-wrap:wrap;gap:6px 18px;margin:14px 0 0;padding:11px 14px 11px 30px;font-size:12px;display:flex}.customs-preview-table{border:1px solid var(--line);border-radius:8px;margin-top:14px}.customs-preview-table table{min-width:1220px}.customs-preview-table th,.customs-preview-table td{white-space:nowrap}.customs-assistant-savebar{z-index:8;border:1px solid var(--line);background:var(--surface-glass);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:10px;justify-content:space-between;align-items:center;gap:16px;padding:12px 14px;display:flex;position:sticky;bottom:12px;box-shadow:0 10px 30px #17223529}.customs-assistant-savebar>div:first-child{grid-template-columns:auto auto;align-items:center;gap:0 9px;display:grid}.customs-assistant-savebar small{color:var(--muted);grid-column:2;font-size:11px}.customs-unsaved-dot{border-radius:50%;grid-row:1/3;width:10px;height:10px}.customs-unsaved-dot.dirty{background:var(--warn);box-shadow:0 0 0 4px var(--warn-soft)}.customs-unsaved-dot.saved{background:var(--success);box-shadow:0 0 0 4px var(--success-soft)}.customs-save-actions{gap:8px;display:flex}@media (max-width:1100px){.customs-mapping-facts{grid-template-columns:repeat(3,minmax(0,1fr))}.customs-quantity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.customs-quantity-grid>.button{align-self:stretch}}@media (max-width:800px){.customs-assistant-start{grid-template-columns:1fr;padding:28px 22px}.customs-assistant-start-mark{border-radius:16px;width:68px;height:68px;font-size:26px}.customs-assistant-hero{align-items:flex-start;padding:22px}.customs-assistant-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.customs-assistant-summary>div:nth-child(2){border-right:0}.customs-assistant-summary>div:nth-child(-n+2){border-bottom:1px solid var(--line-soft)}.customs-assistant-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.customs-classification-fields{grid-template-columns:1fr}.customs-confirm-panel{align-items:stretch}.customs-assistant-stage-heading{gap:9px;display:grid}.customs-file-board{grid-auto-columns:minmax(280px,86vw)}.customs-assistant-savebar{display:grid;position:static}.customs-save-actions{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.customs-save-actions .primary:last-child{grid-column:1/-1}}@media (max-width:560px){.customs-declaration-context,.customs-assistant-hero,.customs-classification-source,.customs-data-card-title,.customs-preview-head{flex-direction:column;align-items:stretch}.customs-assistant-version{justify-items:start;width:fit-content}.customs-assistant-stage{padding:14px}.customs-assistant-steps button{grid-template-columns:28px minmax(0,1fr);padding:7px}.customs-assistant-steps button>span{width:27px;height:27px}.customs-assistant-steps button strong{font-size:12px}.customs-assistant-steps button small{display:none}.customs-decision-switch{grid-template-columns:1fr;width:100%;display:grid}.customs-confirm-panel{display:grid}.customs-mapping-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.customs-quantity-grid,.customs-save-actions{grid-template-columns:1fr}.customs-save-actions .primary:last-child{grid-column:auto}.customs-assistant-message{flex-direction:column;align-items:stretch}}.excel-data-grid{min-width:0}.excel-data-grid-header-control{min-width:0;height:100%;position:relative}.excel-data-grid-header-main{grid-template-columns:minmax(0,1fr) 24px;align-items:center;min-width:0;height:100%;display:grid}.excel-data-grid-header-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.excel-data-grid-header-menu-button{border:1px solid var(--line);background:var(--surface);width:22px;height:22px;color:var(--ink-soft);border-radius:2px;place-items:center;font-size:12px;line-height:1;display:inline-grid}.excel-data-grid-header-menu-button:hover,.excel-data-grid-header-menu-button[aria-expanded=true]{border-color:var(--accent-border);color:var(--accent-deep);background:var(--accent-tint-faint)}.excel-data-grid-header-menu-button.is-filtered{border-color:var(--accent);color:var(--accent-deep)}.excel-data-grid-filter-menu{z-index:1000;border:1px solid var(--line);background:var(--surface);width:clamp(320px,34vw,420px);min-width:320px;max-width:calc(100vw - 32px);color:var(--ink);text-align:left;border-radius:6px;padding:8px;font-weight:400;position:fixed;box-shadow:0 18px 40px #0f172a2e}.excel-data-grid-filter-menu button[role=menuitem]{width:100%;min-height:32px;color:inherit;text-align:left;background:0 0;border:0;border-radius:4px;align-items:center;gap:10px;padding:5px 8px;font-size:14px;font-weight:400;line-height:1.35;display:flex}.excel-data-grid-filter-menu button[role=menuitem]:hover:not(:disabled){background:var(--accent-tint-faint)}.excel-data-grid-filter-menu button:disabled{color:var(--muted);cursor:not-allowed}.excel-data-grid-filter-separator{background:var(--line);height:1px;margin:6px 0}.excel-data-grid-filter-search{border:1px solid var(--line);background:var(--surface);width:100%;height:34px;color:inherit;border-radius:4px;margin-bottom:6px;padding:5px 8px;font-size:14px;font-weight:400}.excel-data-grid-filter-values{border:1px solid var(--line);background:var(--surface-soft);gap:1px;max-height:260px;padding:4px;display:grid;overflow:auto}.excel-data-grid-filter-option{background:var(--surface);min-height:26px;color:var(--ink);align-items:center;gap:6px;padding:2px 4px;font-size:14px;font-weight:400;line-height:1.35;display:flex}.excel-data-grid-filter-option input{width:16px;min-width:16px;height:16px;min-height:16px;accent-color:var(--accent);flex:none;margin:0}.excel-data-grid-filter-option span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.excel-data-grid-filter-empty{color:var(--muted);margin:8px}.excel-data-grid-filter-actions{justify-content:flex-end;gap:8px;margin-top:10px;display:flex}.excel-data-grid-shell{border:1px solid var(--line);background:var(--surface);min-width:0;box-shadow:var(--shadow-sm);border-radius:8px;position:relative}.excel-data-grid-toolbar{border-bottom:1px solid var(--line);background:var(--surface-soft);justify-content:space-between;align-items:center;gap:12px;min-height:48px;padding:8px 10px;display:flex}.excel-data-grid-toolbar-content{min-width:0}.excel-data-grid-toolbar-actions{align-items:center;gap:6px;margin-left:auto;display:flex}.excel-data-grid-scroll{max-width:100%;overflow:auto}.reconciliation-excel-grid{min-width:0;max-width:100%}.reconciliation-grid-wrap{min-width:0;max-width:100%;max-height:none;overflow:auto hidden}.reconciliation-excel-grid.is-fullscreen .reconciliation-grid-wrap{height:100%;min-height:0;max-height:none;overflow:auto!important}.excel-data-grid-table{table-layout:fixed}.excel-grid-custom-table{width:max-content;min-width:100%}.excel-grid-custom-table th{min-width:96px}.excel-grid-custom-table th.excel-data-grid-metadata-column,.excel-grid-custom-table td.excel-data-grid-metadata-column{z-index:2;background:var(--surface);position:sticky}.excel-grid-custom-table thead th.excel-data-grid-metadata-column{z-index:5;background:var(--surface-soft)}.excel-grid-horizontal-scroll{scrollbar-gutter:stable;padding-bottom:8px;overflow-y:hidden;overflow-x:auto!important}.excel-grid-horizontal-scroll::-webkit-scrollbar{height:12px}.excel-grid-horizontal-scroll::-webkit-scrollbar-track{background:var(--surface-soft);border-top:1px solid var(--line)}.excel-grid-horizontal-scroll::-webkit-scrollbar-thumb{background:var(--muted);border:3px solid var(--surface-soft);border-radius:999px}.reconciliation-excel-grid.is-fullscreen .excel-grid-horizontal-scroll{overflow-y:auto!important}.excel-data-grid-table th{z-index:3;background:var(--surface-soft);position:sticky;top:0}.excel-data-grid-table th,.excel-data-grid-table td{white-space:nowrap;background-clip:padding-box;height:40px;padding:0}.excel-data-grid-table th{overflow:visible}.excel-data-grid-table td{overflow:hidden}.excel-data-grid-table .grid-column-sort{width:100%;height:40px;color:inherit;text-align:left;background:0 0;border:0;border-radius:0;padding:0 .65rem}.excel-data-grid-table .grid-column-sort:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.excel-data-grid-select-column{z-index:4;text-align:center;background:var(--surface);width:42px;min-width:42px;position:sticky;left:0}.excel-data-grid-select-column input[type=checkbox]{appearance:none;border:1.5px solid var(--line);background:var(--surface);color:#fff;vertical-align:middle;cursor:pointer;border-radius:3px;place-content:center;width:16px;min-width:16px;height:16px;min-height:16px;margin:0;padding:0;display:inline-grid}.excel-data-grid-select-column input[type=checkbox]:hover{border-color:var(--accent)}.excel-data-grid-select-column input[type=checkbox]:checked,.excel-data-grid-table tr.is-selected td.excel-data-grid-select-column input[type=checkbox],.excel-data-grid-table tr.selected-row td.excel-data-grid-select-column input[type=checkbox]{background:var(--accent);border-color:var(--accent)}.excel-data-grid-select-column input[type=checkbox]:checked:after,.excel-data-grid-table tr.is-selected td.excel-data-grid-select-column input[type=checkbox]:after,.excel-data-grid-table tr.selected-row td.excel-data-grid-select-column input[type=checkbox]:after{content:"";border-top:0;border-bottom:2px solid;border-left:2px solid;border-right:0;width:9px;height:5px;margin-top:-2px;transform:rotate(-45deg)}@media (forced-colors:active){.excel-data-grid-select-column input[type=checkbox]{appearance:auto}.excel-data-grid-select-column input[type=checkbox]:after{content:none}}.excel-data-grid-table th.excel-data-grid-select-column{background:var(--surface-soft)}.excel-data-grid-table thead th.excel-data-grid-select-column{z-index:10}.excel-data-grid-metadata-column{z-index:2;background:var(--surface);position:sticky;left:42px}.excel-data-grid-table th.excel-data-grid-metadata-column{z-index:4;background:var(--surface-soft)}.excel-data-grid-table thead th.excel-data-grid-metadata-column{z-index:9}.excel-data-grid-table td.excel-data-grid-readonly{background:#f9f9f9!important}.excel-data-grid-table td.excel-cell-active.excel-data-grid-metadata-column{background:color-mix(in srgb, var(--accent) 8%, var(--surface))!important}.excel-data-grid-table tr.is-selected td{background:var(--accent-tint-faint)}.excel-data-grid-table tr.is-selected td.excel-data-grid-select-column,.excel-data-grid-table tr.is-selected td.excel-data-grid-metadata-column{background:color-mix(in srgb, var(--accent) 4%, var(--surface))!important}.excel-data-grid-table tr.is-dirty td:first-child{box-shadow:inset 3px 0 0 var(--warn)}.excel-data-grid-table tr.is-error td{background:var(--surface)}.excel-data-grid-table tr.is-error td.is-error{background:var(--danger-soft)}.excel-data-grid-table tr.is-error td:first-child{box-shadow:inset 3px 0 0 var(--danger)}.excel-data-grid-table .excel-data-grid-cell-inner{z-index:1;min-width:0;height:100%;position:relative;overflow:hidden}.excel-data-grid-table .grid-cell-btn,.excel-data-grid-table .grid-cell-input{text-overflow:ellipsis;white-space:nowrap;border-radius:0;width:100%;max-width:100%;min-height:40px;padding:7px 10px;overflow:hidden}.excel-data-grid-empty{color:var(--muted);text-align:center;height:104px!important;padding:24px!important}.excel-data-grid-shell.is-fullscreen{z-index:120;border-radius:0;grid-template-rows:auto minmax(0,1fr);display:grid;position:fixed;inset:0}.excel-data-grid-shell.is-fullscreen .excel-data-grid-scroll{height:100%}.excel-grid-adapter-surface{box-shadow:none;overflow:visible}.excel-grid-adapter-surface>.ops-table-wrap{border-radius:inherit;border:0}.customs-excel-grid{border:1px solid var(--line);background:var(--surface);border-radius:8px;min-width:0;position:relative;overflow:hidden}.customs-excel-toolbar{border-bottom:1px solid var(--line);background:var(--surface-soft);justify-content:space-between;align-items:center;gap:12px;padding:9px 12px;display:flex}.customs-excel-scroll{scrollbar-gutter:stable;max-width:100%;padding-bottom:8px;overflow:auto}.customs-excel-table{border-collapse:separate;border-spacing:0;table-layout:fixed}.customs-excel-table th{z-index:3;border-bottom:2px solid var(--accent-tint-soft);color:var(--ink-soft);box-shadow:0 1px 0 var(--line);background:#eef4fb;position:sticky;top:0}.customs-excel-table th,.customs-excel-table td{white-space:nowrap;background-clip:padding-box;height:40px;padding:0}.customs-excel-table th{overflow:visible}.customs-excel-table td{overflow:hidden}.customs-excel-table .grid-column-sort,.customs-excel-table .excel-grid-sort-button{width:100%;height:40px;color:var(--muted);font:inherit;text-align:left;cursor:pointer;letter-spacing:0;text-transform:none;background:0 0;border:0;padding:0 .65rem;font-weight:700}.customs-excel-table .grid-column-sort:hover,.customs-excel-table .excel-grid-sort-button:hover{color:var(--accent-deep);background:var(--accent-tint-faint)}.customs-excel-table .grid-column-sort:focus-visible,.customs-excel-table .excel-grid-sort-button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.customs-excel-select-column{z-index:8;background:var(--surface-soft);isolation:isolate;width:72px;min-width:72px;max-width:72px;box-shadow:1px 0 0 var(--line-soft);text-align:center;background-clip:border-box;position:sticky;left:0;padding:0!important}.customs-excel-metadata-column{z-index:7;background:var(--surface);isolation:isolate;box-shadow:1px 0 0 var(--line-soft);background-clip:border-box;position:sticky;left:72px}.customs-excel-select-column>:not(.sr-only),.customs-excel-metadata-column>:not(.sr-only){z-index:1;position:relative}.excel-data-grid-select-column>.excel-data-grid-select-hit,.customs-excel-select-column>.excel-data-grid-select-hit{z-index:1;cursor:pointer;justify-content:center;align-items:center;margin:0;display:flex;position:absolute;inset:0}.customs-excel-table td.customs-excel-select-column,.customs-excel-table td.customs-excel-metadata-column{box-shadow:inset 0 -1px 0 var(--line-soft), 1px 0 0 var(--line-soft)}.customs-excel-table th.customs-excel-metadata-column{z-index:9;background:#eef4fb}.customs-excel-table td.excel-cell-active.customs-excel-metadata-column{background:color-mix(in srgb, var(--accent) 8%, var(--surface))!important}.customs-excel-table th.customs-excel-select-column{z-index:10;background:#eef4fb}.customs-excel-table tr.is-dirty td:first-child{box-shadow:inset 3px 0 0 var(--warn)}.customs-excel-table .customs-excel-cell-inner{z-index:1;width:100%;min-width:0;height:100%;position:relative;overflow:hidden}.customs-excel-table .grid-cell-btn,.customs-excel-table .grid-cell-input{text-overflow:ellipsis;white-space:nowrap;border-radius:0;width:100%;min-width:0;max-width:100%;min-height:40px;padding:7px 10px;overflow:hidden}.customs-excel-empty{color:var(--muted);text-align:center;height:104px!important;padding:24px!important}.customs-excel-grid.is-fullscreen{z-index:120;border:0;border-radius:0;grid-template-rows:auto minmax(0,1fr);display:grid;position:fixed;inset:0}.customs-excel-grid.is-fullscreen .customs-excel-scroll{height:100%;min-height:0;max-height:none;overflow:auto}.customs-assistant-workbook .customs-excel-grid.is-fullscreen{height:100dvh;min-height:0}.customs-assistant-workbook .customs-excel-grid.is-fullscreen .customs-excel-scroll{min-height:0;max-height:none}@media (max-width:1024px){.customs-excel-table{min-width:760px}.customs-excel-toolbar{align-items:stretch}}@media (max-width:560px){.customs-excel-toolbar{padding:8px;display:grid}.customs-excel-toolbar .button{width:100%}.customs-excel-table{min-width:680px}.customs-excel-table th,.customs-excel-table td,.customs-excel-table .grid-cell-btn,.customs-excel-table .grid-cell-input{height:36px;min-height:36px}}.customs-assistant-workbook{gap:.75rem;min-width:0;display:grid}.customs-assistant-workbook-header,.customs-assistant-filters,.customs-assistant-batch-actions,.customs-assistant-pagination{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.6rem;display:flex}.customs-assistant-workbook-header h2{margin:0}.customs-assistant-filters input{flex:22rem;min-width:12rem}.customs-assistant-filters input,.customs-assistant-filters select,.customs-assistant-batch-actions select,.customs-assistant-batch-actions button{min-height:2.25rem}.customs-assistant-sheet-tabs{border-bottom:1px solid var(--line);align-items:stretch;gap:.25rem;display:flex;overflow-x:auto}.customs-assistant-sheet-tabs>span{flex:none;display:inline-flex}.customs-assistant-sheet-tabs button{border:1px solid var(--line);background:var(--surface);white-space:nowrap;border-bottom:0;padding:.5rem .65rem}.customs-assistant-sheet-tabs button.active{background:var(--accent-soft);font-weight:700}.customs-assistant-workbook .customs-excel-scroll{max-height:65vh}.customs-assistant-workbook .customs-excel-table tr.customs-assistant-status-history td:first-child{box-shadow:inset 3px 0 #d7a620}.customs-assistant-workbook .customs-excel-table tr.customs-assistant-status-unmatched td:first-child{box-shadow:inset 3px 0 0 var(--danger)}.customs-assistant-workbook .customs-excel-table tr.customs-assistant-status-exclude td{color:var(--muted);text-decoration:line-through}.customs-assistant-workbook .customs-excel-table tr.customs-assistant-status-exclude td:first-child{box-shadow:inset 3px 0 #7d8590}.customs-assistant-workbook .customs-excel-table tr.customs-assistant-status-qty-unverified td:first-child{box-shadow:inset 3px 0 0 var(--warn)}.customs-assistant-workbook .customs-excel-table tr.customs-assistant-status-ready td:first-child{box-shadow:inset 3px 0 0 var(--success)}.customs-assistant-workbook .customs-excel-table td.customs-assistant-status-history{background:#fff8db}.customs-assistant-workbook .customs-excel-table td.customs-assistant-status-unmatched{background:var(--danger-soft)}.customs-assistant-workbook .customs-excel-table td.customs-assistant-status-exclude{background:#eff1f3}.customs-assistant-workbook .customs-excel-table td.customs-assistant-status-qty-unverified{background:var(--warn-soft)}.customs-assistant-workbook .customs-excel-table td.customs-assistant-status-ready{background:var(--success-soft)}.customs-workbook-shell{border:1px solid var(--line);background:var(--surface);border-radius:10px;gap:0;padding:0;display:grid;overflow:visible;box-shadow:0 1px 2px #1422340a}.customs-workbook-header{border-bottom:1px solid var(--line-soft);background:linear-gradient(#fff 0%,#fbfdff 100%);grid-template-columns:minmax(260px,1fr) minmax(360px,auto) auto;align-items:center;gap:14px;padding:14px 18px;display:grid}.customs-workbook-heading{min-width:0}.customs-workbook-heading .eyebrow{color:var(--accent);letter-spacing:.03em;margin:0 0 3px;font-size:11px;font-weight:800}.customs-workbook-heading h2{color:var(--ink);letter-spacing:0;margin:0;font-size:20px;line-height:1.2}.customs-workbook-heading>p:last-child{max-width:520px;color:var(--muted);margin:5px 0 0;font-size:12px;line-height:1.45}.customs-workbook-summary{justify-content:flex-end;align-items:stretch;gap:4px;min-width:0;display:flex}.customs-workbook-summary-item{border:1px solid var(--line-soft);background:#f8fafcd1;border-radius:6px;gap:1px;min-width:78px;padding:6px 9px;display:grid}.customs-workbook-summary-item span{color:var(--muted);white-space:nowrap;font-size:11px}.customs-workbook-summary-item strong{color:var(--ink);font-size:16px;line-height:1.1}.customs-workbook-summary-item.tone-success{border-color:var(--success-border);background:var(--success-soft)}.customs-workbook-summary-item.tone-warning{border-color:var(--warn-border);background:var(--warn-soft)}.customs-workbook-summary-item.tone-danger{border-color:var(--danger-border);background:var(--danger-soft)}.customs-workbook-summary-item.tone-info{border-color:var(--accent-border);background:var(--accent-soft)}.customs-workbook-header-actions,.customs-workbook-create-controls{flex-wrap:nowrap;justify-content:flex-end;align-items:center;gap:7px;min-width:0;display:flex}.customs-workbook-create-controls{flex:auto}.customs-workbook-create-controls select{width:clamp(220px,24vw,360px)}.customs-workbook-create-controls input[type=date]{width:150px}.customs-workbook-header-actions .button,.customs-workbook-create-controls input,.customs-workbook-create-controls select{min-height:34px}.customs-workbook-header-actions .button{white-space:nowrap;min-width:104px}.customs-output-next-step{border-bottom:1px solid var(--line-soft);background:var(--accent-soft);gap:7px;padding:10px 18px;display:grid}.customs-output-next-step>div{color:var(--ink-soft);flex-wrap:wrap;align-items:center;gap:12px;font-size:13px;display:flex}.customs-output-next-step strong{color:var(--ink)}.customs-output-next-step span{white-space:nowrap}.customs-output-next-step p{color:var(--muted);margin:0;font-size:12px}.customs-output-create-controls{flex-direction:column;align-items:stretch;min-width:220px}.customs-output-create-controls input[type=date],.customs-output-create-controls .button{width:100%}.customs-output-date-field{gap:3px;display:grid}.customs-output-date-field>span{color:var(--muted);font-size:12px;font-weight:700}.customs-workbook-save-state{color:var(--muted);white-space:nowrap;align-items:center;gap:6px;font-size:12px;font-weight:700;display:inline-flex}.customs-workbook-save-state>span,.customs-workbook-status-badge>span{background:currentColor;border-radius:50%;width:7px;height:7px}.customs-workbook-save-state.tone-success{color:var(--success)}.customs-workbook-save-state.tone-warning{color:var(--warn)}.customs-workbook-save-state.tone-danger{color:var(--danger)}.customs-workbook-save-state.tone-info{color:var(--accent)}.customs-workbook-filter-bar{border-bottom:1px solid var(--line-soft);background:#f8fafc;grid-template-columns:minmax(260px,1fr) minmax(150px,auto) minmax(150px,auto) auto;align-items:center;gap:8px;padding:10px 12px;display:grid}.customs-workbook-filter-bar input,.customs-workbook-filter-bar select,.customs-workbook-filter-bar summary,.customs-workbook-search-filter>button{min-height:36px;font-size:13px}.customs-workbook-filter-bar input,.customs-workbook-filter-bar select,.customs-workbook-create-controls input,.customs-workbook-create-controls select,.customs-workbook-search-filter>button,.customs-workbook-more-filters summary{border:1px solid var(--accent-tint-soft);background:var(--surface);color:var(--ink);border-radius:8px;box-shadow:0 1px 2px #1422340a}.customs-workbook-filter-bar input,.customs-workbook-filter-bar select,.customs-workbook-create-controls input,.customs-workbook-create-controls select{padding:7px 10px}.customs-workbook-filter-bar input::placeholder{color:var(--muted);opacity:.78}.customs-workbook-filter-bar input:focus,.customs-workbook-filter-bar select:focus,.customs-workbook-create-controls input:focus,.customs-workbook-create-controls select:focus,.customs-workbook-search-filter>button:focus-visible,.customs-workbook-more-filters summary:focus-visible{border-color:var(--accent);outline:2px solid var(--accent-tint-medium);outline-offset:0}.customs-workbook-filter-bar>input:first-child{width:100%}.customs-workbook-filter-check{min-height:36px;color:var(--ink-soft);white-space:nowrap;align-items:center;gap:7px;padding:0 10px;font-size:13px;display:inline-flex}.customs-workbook-filter-check input{min-height:auto}.customs-workbook-search-filter{min-width:190px;position:relative}.customs-workbook-search-filter>button{text-align:left;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:0 10px;display:flex}.customs-workbook-search-filter>button>span:first-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.customs-workbook-search-filter-popover{z-index:40;border:1px solid var(--line);background:var(--surface);border-radius:8px;width:min(340px,80vw);max-height:360px;padding:8px;display:grid;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 18px 38px #1422342e}.customs-workbook-search-filter-popover input{width:100%;margin-bottom:6px}.customs-workbook-search-filter-popover [role=listbox]{gap:2px;max-height:270px;display:grid;overflow:auto}.customs-workbook-search-filter-popover [role=option]{min-height:32px;color:var(--ink);text-align:left;background:0 0;border:0;border-radius:5px;padding:6px 8px}.customs-workbook-search-filter-popover [role=option]:hover,.customs-workbook-search-filter-popover [role=option][aria-selected=true]{background:var(--accent-soft);color:var(--accent-deep)}.customs-workbook-search-filter-empty{color:var(--muted);padding:10px 8px;font-size:12px}.customs-workbook-search-select{width:100%;min-width:0}.customs-workbook-search-select>button{border:1px solid var(--accent);background:var(--surface);width:100%;min-height:36px;color:var(--ink);text-align:left;border-radius:0;justify-content:space-between;align-items:center;gap:8px;padding:0 10px;display:flex}.customs-workbook-search-select>button>span:first-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.customs-workbook-search-select>button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.customs-workbook-search-select-popover{z-index:1200;border:1px solid var(--line);background:var(--surface);border-radius:8px;width:min(320px,100vw - 16px);max-height:min(360px,100vh - 16px);padding:8px;display:grid;position:fixed;box-shadow:0 18px 38px #1422342e}.customs-workbook-search-select-popover input{width:100%;margin-bottom:6px}.customs-workbook-search-select-popover [role=listbox]{gap:2px;max-height:270px;display:grid;overflow:auto}.customs-workbook-search-select-popover [role=option]{min-height:32px;color:var(--ink);text-align:left;background:0 0;border:0;border-radius:5px;padding:6px 8px}.customs-workbook-search-select-popover [role=option]:hover,.customs-workbook-search-select-popover [role=option][aria-selected=true]{background:var(--accent-soft);color:var(--accent-deep)}.customs-workbook-more-filters{position:relative}.customs-workbook-more-filters summary{border:1px solid var(--line);background:var(--surface);cursor:pointer;white-space:nowrap;border-radius:6px;align-items:center;padding:0 11px;list-style:none;display:inline-flex}.customs-workbook-more-filters summary::-webkit-details-marker{display:none}.customs-workbook-more-filters[open]>:not(summary){z-index:30;border:1px solid var(--line);background:var(--surface);border-radius:7px;min-width:220px;padding:10px 12px;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 12px 28px #14223424}.customs-workbook-selection-bar{z-index:25;border:1px solid var(--accent-border);border-left:4px solid var(--accent);background:#edf6ff;border-radius:8px;align-items:center;gap:14px;margin:8px 12px;padding:10px 12px 10px 14px;display:flex;position:sticky;top:8px;box-shadow:0 10px 24px #19426c26}.customs-workbook-selection-bar>strong{color:var(--accent-deep);white-space:nowrap;font-size:14px}.customs-workbook-selection-bar>div{flex-wrap:wrap;flex:1;align-items:center;gap:7px;display:flex}.customs-workbook-selection-bar button,.customs-workbook-selection-bar select{border:1px solid var(--accent-tint-soft);background:var(--surface);min-height:32px;color:var(--ink);border-radius:7px;font-size:12px}.customs-workbook-selection-bar button{border:1px solid var(--accent-tint-soft);background:var(--surface);min-height:32px;color:var(--ink);border-radius:7px;font-size:12px;font-weight:700}.customs-workbook-selection-bar button:hover{border-color:var(--accent-border);background:var(--accent-soft);color:var(--accent-deep)}.customs-workbook-status-badge{border:1px solid var(--line);background:var(--surface-soft);width:fit-content;color:var(--muted);white-space:nowrap;border-radius:999px;align-items:center;gap:6px;padding:3px 8px;font-size:12px;font-weight:700;line-height:1.25;display:inline-flex}.customs-workbook-status-badge.tone-success{border-color:var(--success-border);background:var(--success-soft);color:var(--success)}.customs-workbook-status-badge.tone-warning{border-color:var(--warn-border);background:var(--warn-soft);color:var(--warn)}.customs-workbook-status-badge.tone-danger{border-color:var(--danger-border);background:var(--danger-soft);color:var(--danger)}.customs-workbook-status-badge.tone-info{border-color:var(--accent-border);background:var(--accent-soft);color:var(--accent-deep)}.customs-workbook-status-badge.is-icon-only{cursor:help;border-radius:50%;justify-content:center;width:28px;height:28px;padding:0;font-size:15px;line-height:1}.customs-workbook-status-badge.is-icon-only>span{background:0 0;width:auto;height:auto}.customs-workbook-sheet-tab{flex:none;align-items:stretch;display:inline-flex;position:relative}.customs-workbook-sheet-tab>button>span,.customs-assistant-sheet-tabs>button>span{color:var(--muted);margin-left:6px;font-size:11px}.customs-workbook-sheet-tab>button>em{color:var(--danger);margin-left:6px;font-size:10px;font-style:normal}.customs-files-sheet-tabs{border-bottom:1px solid var(--line);background:var(--surface);align-items:stretch;gap:4px;padding:8px 12px 0;display:flex;overflow-x:auto}.customs-files-sheet-tabs>button,.customs-files-sheet-tabs .customs-workbook-sheet-tab>button{min-height:38px;color:var(--muted);white-space:nowrap;cursor:pointer;background:0 0;border:1px solid #0000;border-bottom-width:2px;border-radius:8px 8px 0 0;padding:8px 12px;font-size:13px;font-weight:700;line-height:1.2;transition:background-color .12s,border-color .12s,color .12s}.customs-files-sheet-tabs>button:hover,.customs-files-sheet-tabs .customs-workbook-sheet-tab>button:hover{border-color:var(--accent-border);background:var(--accent-soft);color:var(--accent-deep)}.customs-files-sheet-tabs>button:focus-visible,.customs-files-sheet-tabs .customs-workbook-sheet-tab>button:focus-visible{outline:2px solid var(--accent-tint-medium);outline-offset:-2px}.customs-files-sheet-tabs>button.active,.customs-files-sheet-tabs .customs-workbook-sheet-tab>button.active{border-color:var(--accent-border);border-bottom-color:var(--accent);background:var(--surface);color:var(--accent-deep)}.customs-files-sheet-tabs>button>span,.customs-files-sheet-tabs .customs-workbook-sheet-tab>button>span{background:var(--accent-soft);min-width:24px;height:22px;color:var(--accent-deep);border-radius:999px;justify-content:center;align-items:center;margin-left:6px;padding:0 6px;font-size:12px;line-height:1;display:inline-flex}.customs-files-sheet-tabs .customs-files-unassigned-tab{color:var(--warn)}.customs-files-sheet-tabs .customs-files-unassigned-tab:hover,.customs-files-sheet-tabs .customs-files-unassigned-tab.active{border-color:var(--warn-border);border-bottom-color:var(--warn);background:var(--warn-soft);color:var(--warn)}.customs-files-sheet-tabs .customs-files-unassigned-tab>span{color:var(--warn);background:#fff0c7}.customs-workbook-sheet-menu{flex:none;display:inline-flex}.customs-workbook-sheet-menu-trigger{border:1px solid var(--line);background:var(--surface);width:30px;min-height:34px;color:var(--ink);cursor:pointer;border-bottom:0;border-left:0;border-radius:0;place-items:center;font-weight:800;line-height:1;display:grid}.customs-workbook-sheet-menu-trigger:hover,.customs-workbook-sheet-menu-trigger[aria-expanded=true]{border-color:var(--accent-border);background:var(--accent-soft);color:var(--accent-deep)}.customs-workbook-sheet-menu-panel{z-index:240;border:1px solid var(--line);background:var(--surface);border-radius:8px;min-width:168px;padding:6px;display:grid;position:fixed;box-shadow:0 18px 42px #1422342e}.customs-workbook-sheet-menu-panel button{min-height:34px;color:var(--ink);text-align:left;background:0 0;border:0;border-radius:5px;padding:0 10px}.customs-workbook-sheet-menu-panel button:hover:not(:disabled){background:var(--surface-soft)}.customs-workbook-sheet-menu-panel button:disabled{color:var(--muted);cursor:not-allowed;opacity:.55}.customs-workbook-sheet-menu-panel button.danger{color:var(--danger)}.customs-workbook-fullscreen-button{border:1px solid var(--line);background:var(--surface);min-height:32px;color:var(--ink-soft);border-radius:6px;align-items:center;gap:6px;padding:0 10px;font-size:12px;font-weight:700;display:inline-flex}.customs-workbook-fullscreen-button:hover{border-color:var(--accent-border);background:var(--accent-soft);color:var(--accent-deep)}.customs-workbook-grid-context{color:var(--muted);font-size:12px}.customs-workbook-pagination,.customs-assistant-pagination{border-top:1px solid var(--line-soft);background:var(--surface);color:var(--muted);justify-content:flex-end;align-items:center;gap:8px;padding:8px 12px;font-size:12px;display:flex}.customs-workbook-pagination button,.customs-assistant-pagination button{min-height:30px}.customs-excel-grid{box-shadow:none;border-width:1px 0 0;border-radius:0}.customs-inspection-column,.customs-inspection-column .grid-cell-btn{text-align:center}.customs-inspection-icon{width:24px;height:24px;color:var(--accent-deep);place-items:center;display:inline-grid}.customs-inspection-icon svg{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8px;width:18px;height:18px}.customs-excel-table .customs-inspection-column .grid-cell-btn:hover .customs-inspection-icon,.customs-excel-table .customs-inspection-column .grid-cell-btn:focus-visible .customs-inspection-icon{color:var(--accent);transform:scale(1.08)}.customs-file-inspection-backdrop{z-index:1300;background:#1422346b;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.customs-file-inspection-dialog{border:1px solid var(--line);background:var(--surface);border-radius:10px;width:min(960px,100%);max-height:min(780px,100vh - 32px);display:grid;overflow:hidden;box-shadow:0 24px 64px #14223447}.customs-file-inspection-header{border-bottom:1px solid var(--line-soft);justify-content:space-between;align-items:flex-start;gap:16px;padding:20px 22px 14px;display:flex}.customs-file-inspection-header h2{color:var(--ink);margin:2px 0 4px;font-size:20px}.customs-file-inspection-subtitle{color:var(--muted);margin:0;font-size:13px}.customs-file-inspection-close{border:1px solid var(--line);background:var(--surface);width:32px;height:32px;color:var(--muted);cursor:pointer;border-radius:6px;place-items:center;font-size:22px;line-height:1;display:grid}.customs-file-inspection-close:hover,.customs-file-inspection-close:focus-visible{border-color:var(--accent-border);background:var(--accent-soft);color:var(--accent-deep);outline:2px solid var(--accent-tint-medium);outline-offset:0}.customs-file-inspection-summary{border-bottom:1px solid var(--line-soft);background:var(--surface-soft);grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0;padding:16px 22px;display:grid}.customs-file-inspection-summary>div{border:1px solid var(--line);background:var(--surface);border-radius:7px;min-width:0;padding:10px 12px}.customs-file-inspection-summary dt{color:var(--muted);font-size:12px;font-weight:700}.customs-file-inspection-summary dd{color:var(--accent-deep);margin:4px 0 0;font-size:19px;font-weight:800}.customs-file-inspection-state{color:var(--muted);justify-items:start;gap:10px;margin:0;padding:28px 22px;display:grid}.customs-file-inspection-state p{margin:0}.customs-file-inspection-state.danger{color:var(--danger)}.customs-file-inspection-table-wrap{min-height:0;padding:0 22px 22px;overflow:auto}.customs-file-inspection-table{border-collapse:collapse;width:100%;min-width:680px;font-size:13px}.customs-file-inspection-table caption{color:var(--ink-soft);text-align:left;padding:14px 0 9px;font-size:13px;font-weight:800}.customs-file-inspection-table th,.customs-file-inspection-table td{border-bottom:1px solid var(--line-soft);text-align:left;vertical-align:top;padding:10px 9px}.customs-file-inspection-table th{background:var(--surface-soft);color:var(--muted);white-space:nowrap;font-size:12px;font-weight:800}.customs-file-inspection-table td.numeric-cell{text-align:right;white-space:nowrap}.customs-file-inspection-table tbody tr:hover td{background:#f8fbff}.customs-file-inspection-source-row.is-clickable{cursor:pointer}.customs-file-inspection-source-row.is-clickable:hover td,.customs-file-inspection-source-row.is-clickable:focus-visible td{background:color-mix(in srgb, var(--accent) 10%, transparent)}.customs-file-inspection-source-row.is-clickable:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.shipment-row-target td{background:color-mix(in srgb, var(--accent) 12%, transparent)}.shipment-row-target td:first-child{box-shadow:inset 3px 0 0 var(--accent)}.customs-excel-toolbar{background:var(--surface);min-height:42px;padding:5px 8px 5px 12px}.customs-excel-toolbar-content{min-width:0}.customs-excel-toolbar-actions{align-items:center;gap:6px;margin-left:auto;display:flex}.customs-excel-table{font-size:14px}.customs-excel-table th,.customs-excel-table td{height:42px}.customs-excel-table tbody td{background:var(--surface)}.customs-excel-table tbody tr:hover td{background:#f8fbff}.customs-excel-table tr.is-selected td{background:color-mix(in srgb, var(--accent) 4%, var(--surface))}.customs-excel-table tr.is-error td{background:var(--surface)}.customs-excel-table tr.is-error td.is-error{background:var(--danger-soft)}.customs-excel-table tr.is-error td:first-child{box-shadow:inset 3px 0 0 var(--danger)}.customs-excel-table .grid-cell-btn,.customs-excel-table .grid-cell-input{height:42px;min-height:42px;font-size:14px}.customs-excel-table .customs-excel-select-column input{width:22px;min-width:22px;height:22px;min-height:22px}.customs-excel-table .customs-excel-select-column input[type=checkbox]:checked:after,.customs-excel-table tr.is-selected td.customs-excel-select-column input[type=checkbox]:after{width:11px;height:6px}.customs-assistant-index-column .excel-data-grid-header-main{grid-template-columns:minmax(0,1fr)}.customs-assistant-index-column .excel-data-grid-header-label,.customs-assistant-index-column .grid-cell-btn{text-align:center;font-variant-numeric:tabular-nums;font-weight:700}.customs-assistant-index-column .grid-cell-btn{justify-content:center;padding-inline:0}.customs-assistant-sheet-tabs{background:var(--surface);padding:8px 12px 0}.customs-assistant-sheet-tabs button{min-height:34px;color:var(--ink-soft);padding:7px 11px;font-size:12px}.customs-assistant-sheet-tabs button.active{border-color:var(--accent-border);border-bottom:2px solid var(--accent);background:var(--surface);color:var(--accent-deep)}.customs-assistant-workbook .customs-excel-table tr.customs-assistant-status-exclude td{background:var(--surface)}.customs-assistant-workbook .customs-excel-table tr.customs-assistant-status-exclude td:not(.customs-excel-select-column){color:var(--muted);text-decoration:line-through}.customs-assistant-workbook .customs-excel-table tbody tr.customs-assistant-status-pending>td{background:var(--warn-soft)!important}.customs-assistant-workbook .customs-excel-table tbody tr.customs-assistant-status-history>td{background:#fff8db!important}.customs-assistant-workbook .customs-excel-table tbody tr.customs-assistant-status-unmatched>td{background:var(--danger-soft)!important}.customs-assistant-workbook .customs-excel-table tbody tr.customs-assistant-status-qty-unverified>td{background:var(--warn-soft)!important}.customs-assistant-workbook .customs-excel-table tbody tr.customs-assistant-status-ready>td{background:var(--success-soft)!important}.customs-assistant-workbook .customs-excel-table tbody tr.customs-assistant-status-exclude>td{background:#eff1f3!important}.button.danger{border-color:var(--danger-border);color:var(--danger)}.button.danger:hover{background:var(--danger-soft)}@media (max-width:1180px){.customs-workbook-header{grid-template-columns:minmax(240px,1fr) auto}.customs-workbook-summary{order:3;grid-column:1/-1;overflow-x:auto}.customs-workbook-header-actions{align-self:start}.customs-workbook-filter-bar{grid-template-columns:minmax(220px,1fr) repeat(2,minmax(140px,auto))}}@media (max-width:760px){.customs-workbook-header{grid-template-columns:1fr;gap:12px;padding:15px}.customs-workbook-summary{grid-column:auto}.customs-workbook-header-actions{justify-content:flex-start}.customs-workbook-header-actions,.customs-workbook-create-controls{flex-direction:column;align-items:stretch;width:100%;min-width:0}.customs-workbook-header-actions .button,.customs-workbook-create-controls input,.customs-workbook-create-controls select{width:100%}.customs-output-create-controls .button{white-space:normal;height:auto;min-height:44px;padding-inline:12px}.customs-workbook-filter-bar{grid-template-columns:1fr}.customs-workbook-selection-bar{flex-direction:column;align-items:flex-start}.customs-workbook-selection-bar>div{width:100%}.customs-excel-table th,.customs-excel-table td,.customs-excel-table .grid-cell-btn,.customs-excel-table .grid-cell-input{height:40px;min-height:40px;font-size:14px}.customs-file-inspection-backdrop{padding:8px}.customs-file-inspection-dialog{max-height:calc(100vh - 16px)}.customs-file-inspection-header{padding:16px}.customs-file-inspection-summary{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px 16px}.customs-file-inspection-table-wrap{padding:0 16px 16px}}.run-sheet-grid{box-shadow:none;border-radius:6px;overflow:hidden}.run-sheet-grid .excel-data-grid-toolbar{min-height:44px;padding:6px 8px}.run-sheet-grid .excel-data-grid-toolbar-content{flex:auto;min-width:0}.run-sheet-grid-toolbar-content{width:100%;min-width:0;color:var(--muted);flex-wrap:wrap;align-items:center;gap:10px;font-size:12px;font-weight:700;display:flex}.run-sheet-grid-toolbar-content .button{flex:none}.run-sheet-toolbar-assign,.run-sheet-toolbar-delay{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:inline-flex}.run-sheet-toolbar-label{color:var(--ink);white-space:nowrap}.run-sheet-toolbar-field{align-items:center;gap:6px;min-width:0;margin:0;display:inline-flex}.run-sheet-toolbar-field>span{color:var(--muted);white-space:nowrap;font-size:12px;font-weight:700}.run-sheet-toolbar-field .searchable-select{width:132px}.run-sheet-toolbar-field-driver .searchable-select{width:156px}.run-sheet-toolbar-field .searchable-select-trigger,.run-sheet-toolbar-delay input[type=date]{box-sizing:border-box;height:32px;min-height:32px;padding:4px 8px;font-size:13px;font-weight:600}.run-sheet-toolbar-status{color:var(--accent-deep);font-size:12px;font-weight:700}.run-sheet-toolbar-delay{margin-left:auto}.run-sheet-grid-scroll{max-height:min(74vh,100vh - 270px);overflow:auto}.run-sheet-grid-table th,.run-sheet-grid-table td{height:32px;font-size:13px}.run-sheet-grid-table .grid-cell-btn,.run-sheet-grid-table .grid-cell-input{height:32px;min-height:32px;padding:4px 8px;font-size:13px}.run-sheet-grid-table .excel-data-grid-cell-inner{height:32px}.run-sheet-grid-table .excel-data-grid-select-column,.run-sheet-grid-table .excel-data-grid-select-column input{cursor:pointer}.run-sheet-grid-table .grid-cell-btn{text-align:left}.run-sheet-grid-table .numeric-cell .grid-cell-btn,.run-sheet-grid-table .numeric-cell .grid-cell-input{text-align:right}.run-sheet-grid-table .stack-xs{gap:2px}.run-sheet-grid.is-fullscreen .run-sheet-grid-scroll{max-height:none}@media (max-width:760px){.run-sheet-grid-scroll{max-height:calc(100vh - 250px)}.run-sheet-grid-table th,.run-sheet-grid-table td,.run-sheet-grid-table .grid-cell-btn,.run-sheet-grid-table .grid-cell-input{height:34px;min-height:34px}.run-sheet-toolbar-delay{justify-content:flex-end;width:100%;margin-left:0}}.searchable-select{vertical-align:middle;min-width:0;max-width:100%;display:inline-flex}.searchable-select-trigger{border:1px solid var(--line);background:var(--surface);width:100%;min-width:0;min-height:38px;color:var(--ink);text-align:left;cursor:pointer;border-radius:7px;justify-content:space-between;align-items:center;gap:8px;padding:7px 10px;display:inline-flex}.searchable-select-trigger:hover:not(:disabled),.searchable-select-trigger[aria-expanded=true]{border-color:var(--accent-border);background:var(--accent-soft)}.searchable-select-trigger:focus-visible{border-color:var(--accent);outline:3px solid var(--accent-tint-medium);outline-offset:0}.searchable-select-trigger:disabled,.searchable-select[data-disabled=true] .searchable-select-trigger{background:var(--surface-soft);color:var(--muted);cursor:not-allowed;opacity:.7}.searchable-select-trigger[aria-invalid=true]{border-color:var(--danger)}.searchable-select-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.searchable-select-chevron{color:var(--muted);flex:none;font-size:16px;line-height:1}.searchable-select-trigger.grid-cell-input{background:0 0;border-color:#0000;border-radius:0;min-height:30px;padding:4px 7px}.searchable-select-trigger.grid-cell-input:focus-visible,.searchable-select-trigger.grid-cell-input[aria-expanded=true]{border-color:var(--accent);outline:2px solid var(--accent-tint-medium)}.searchable-select-panel{z-index:1100;border:1px solid var(--accent-border);background:var(--surface);border-radius:8px;gap:8px;max-width:calc(100vw - 16px);padding:8px;display:grid;position:fixed;box-shadow:0 18px 42px #14223433}.searchable-select-search{border:1px solid var(--line);background:var(--surface);width:100%;min-height:36px;color:var(--ink);border-radius:6px;padding:7px 9px}.searchable-select-search:focus{border-color:var(--accent);outline:3px solid var(--accent-tint-medium)}.searchable-select-options{grid-auto-rows:max-content;max-height:min(360px,100vh - 120px);display:grid;overflow:auto}.searchable-select-options button{width:100%;min-height:34px;color:var(--ink);text-align:left;white-space:normal;overflow-wrap:anywhere;word-break:break-word;cursor:pointer;background:0 0;border:0;border-radius:5px;padding:6px 9px;line-height:1.35;display:block}.searchable-select-options button:hover,.searchable-select-options button.is-highlighted,.searchable-select-options button[aria-selected=true]{background:var(--accent-soft);color:var(--accent-deep)}.searchable-select-options button:disabled{color:var(--muted);cursor:not-allowed;opacity:.6}.searchable-select-empty{color:var(--muted);margin:0;padding:10px 9px;font-size:13px}.field>.searchable-select,.customs-classification-fields>.searchable-select,.customs-data-card .searchable-select,.customs-assistant-move-control .searchable-select,.customs-workbook-filter-bar>.searchable-select{width:100%}.field>.searchable-select>.searchable-select-trigger{border-color:var(--accent-tint-medium);min-height:50px;padding:12px 14px}.field>.searchable-select>.searchable-select-trigger:focus-visible,.customs-classification-fields .searchable-select-trigger:focus-visible,.customs-data-card .searchable-select-trigger:focus-visible,.customs-assistant-move-control .searchable-select-trigger:focus-visible{border-color:var(--accent-tint-strong);outline:2px solid var(--accent-tint-medium)}.collections-date-filter .searchable-select-trigger{border-color:var(--accent-tint-medium);border-radius:6px;min-height:34px;padding:6px 8px;font-weight:800}.pagination-size .searchable-select-trigger{border-color:var(--accent-tint-medium);min-height:38px;padding:8px 10px}.customs-workbook-create-controls>.searchable-select{width:clamp(220px,24vw,360px)}.customs-workbook-filter-bar .searchable-select,.customs-workbook-create-controls .searchable-select{min-height:34px}.customs-workbook-filter-bar .searchable-select-trigger,.customs-workbook-create-controls .searchable-select-trigger{border-color:var(--accent-tint-soft);border-radius:8px;min-height:34px;padding:7px 10px;box-shadow:0 1px 2px #1422340a}.customs-declaration-merge-panel{border:1px solid var(--accent-tint-medium);background:var(--accent-soft);border-radius:8px;gap:14px;margin:0 0 14px;padding:16px;display:grid}.customs-declaration-merge-panel h3,.customs-declaration-merge-panel p{margin:0}.customs-declaration-merge-panel>div:first-child{gap:6px;display:grid}.customs-declaration-merge-panel>dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;display:grid}.customs-declaration-merge-panel>dl>div{border:1px solid var(--line-soft);background:var(--surface);border-radius:6px;min-width:0;padding:10px}.customs-declaration-merge-panel dt{color:var(--muted);font-size:12px;font-weight:700}.customs-declaration-merge-panel dd{overflow-wrap:anywhere;margin:4px 0 0}.customs-declaration-merge-panel>label{max-width:220px;color:var(--ink);gap:6px;font-size:13px;font-weight:700;display:grid}.customs-declaration-merge-actions{justify-content:flex-end;gap:8px;display:flex}@media (max-width:640px){.customs-declaration-merge-panel>dl{grid-template-columns:1fr}.customs-declaration-merge-actions{justify-content:stretch}.customs-declaration-merge-actions>button{flex:1}}.monthly-toolbar{gap:.85rem;display:grid}.monthly-toolbar__filters{grid-template-columns:auto minmax(11rem,1.4fr) minmax(7rem,.7fr) minmax(6.5rem,.6fr) auto;align-items:end;gap:.7rem .85rem;display:grid}.monthly-toolbar__region .segmented-control,.monthly-toolbar__tabs .segmented-control{width:max-content}.monthly-current-actions{border-top:1px solid var(--line);grid-template-columns:minmax(9rem,1fr) minmax(9rem,.9fr) auto;align-items:end;gap:.7rem .85rem;padding-top:.75rem;display:grid}.monthly-current-actions.has-manual-total{grid-template-columns:minmax(9rem,1fr) minmax(9rem,.9fr) minmax(9rem,.9fr) auto}.monthly-toolbar .field{gap:4px}.monthly-toolbar .field span{letter-spacing:.02em;font-size:12px}.monthly-toolbar .field input,.monthly-toolbar .field>.searchable-select>.searchable-select-trigger{min-height:38px;padding:6px 10px}.monthly-customer-workspace{grid-template-columns:minmax(15rem,22rem) minmax(0,1fr);align-items:end;gap:1rem;display:grid}.monthly-customer-workspace__customer{grid-template-columns:minmax(11rem,1fr) auto;align-items:end;gap:.85rem;display:grid}.monthly-customer-workspace__identity{white-space:nowrap;gap:.1rem;padding-bottom:.15rem;display:grid}.monthly-customer-workspace__identity span,.monthly-customer-workspace__identity small{color:var(--muted-foreground,#5b6472);font-size:.78rem}.monthly-customer-workspace__tabs{justify-content:flex-end;display:flex}@media (max-width:1280px){.monthly-toolbar__filters{grid-template-columns:auto minmax(11rem,1.4fr) minmax(7rem,.7fr) minmax(6.5rem,.6fr)}.monthly-toolbar__tabs{grid-column:1/-1}}@media (max-width:1100px){.monthly-toolbar__filters{grid-template-columns:1fr 1fr}.monthly-toolbar__region,.monthly-toolbar__tabs{grid-column:1/-1}.monthly-current-actions{grid-template-columns:1fr 1fr}.monthly-current-actions .save-actions{grid-column:1/-1}}@media (max-width:900px){.monthly-customer-workspace,.monthly-customer-workspace__customer{grid-template-columns:1fr}.monthly-customer-workspace__tabs,.monthly-toolbar__tabs{justify-content:stretch}.monthly-customer-workspace__tabs .segmented-control,.monthly-toolbar__tabs .segmented-control{width:100%}}@media (max-width:720px){.monthly-toolbar__filters,.monthly-current-actions{grid-template-columns:1fr}.monthly-toolbar__region{grid-column:auto}}.monthly-center-toolbar{gap:.85rem;display:grid}.monthly-center-toolbar__row{grid-template-columns:auto minmax(16rem,max-content) minmax(12rem,1fr);align-items:end;gap:.7rem .85rem;display:grid}.monthly-center-toolbar__row .month-filter{margin:0}.monthly-center-month{gap:4px;display:grid}.monthly-center-month>span,.monthly-center-search>span{letter-spacing:.02em;font-size:12px}.monthly-center-month__controls{align-items:center;gap:8px;display:flex}.monthly-center-month__select{min-width:8rem;min-height:38px;padding:6px 10px}.monthly-center-summary{color:var(--ink);margin:0;font-size:14px;font-weight:600}.monthly-center-filters{flex-wrap:wrap;gap:8px;display:flex}.monthly-center-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;display:grid}.monthly-center-card{border:1px solid var(--line);background:var(--surface);min-height:176px;color:inherit;border-radius:8px;align-content:start;gap:6px;padding:12px;text-decoration:none;display:grid;position:relative}.monthly-center-card:hover,.monthly-center-card.is-formal{border-color:var(--accent-border);background:var(--accent-soft)}.monthly-center-card.is-paid{border-color:var(--success-border);background:var(--success-soft)}.monthly-center-card.is-pending{border-color:var(--warn-border);background:var(--surface)}.monthly-center-card.is-blocked,.monthly-center-card.is-disputed{border-color:var(--danger-border);background:var(--danger-soft)}.monthly-center-card__name{color:var(--ink);font-size:16px;line-height:1.3}.monthly-center-card__currency{color:var(--muted);font-size:12px;font-weight:700;position:absolute;top:12px;right:12px}.monthly-center-badge{background:var(--surface-soft);width:fit-content;color:var(--accent-deep);border-radius:999px;padding:2px 8px;font-size:12px;font-weight:700;display:inline-flex}.monthly-center-badge.is-pending{background:var(--warn-soft);color:var(--warn)}.monthly-center-badge.is-formal{background:var(--accent-soft);color:var(--accent-deep)}.monthly-center-badge.is-paid,.monthly-center-card.is-paid .monthly-center-badge{background:var(--success-soft);color:var(--success)}.monthly-center-badge.is-blocked,.monthly-center-badge.is-disputed{background:var(--danger-soft);color:var(--danger)}.monthly-center-badge.is-empty{color:var(--muted)}.monthly-center-card__amount{color:var(--ink);font-size:15px;font-weight:800}.monthly-center-card__qty,.monthly-center-card__collection{color:var(--ink);font-size:13px}.monthly-center-card__collection.is-unpaid,.monthly-center-card__collection.is-partially_paid{color:var(--warn)}.monthly-center-card__collection.is-paid{color:var(--success)}.monthly-center-card__note{color:var(--danger);font-size:12px;line-height:1.4}.monthly-center-back{margin:0}@media (max-width:1180px){.monthly-center-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.monthly-center-toolbar__row{grid-template-columns:1fr 1fr}}@media (max-width:760px){.monthly-center-grid{grid-template-columns:minmax(0,1fr)}.monthly-center-toolbar__row,.monthly-center-month__controls{grid-template-columns:1fr;display:grid}}.monthly-workbench__intro,.monthly-section-help{color:var(--muted-foreground,#5b6472);margin:.35rem 0 0;line-height:1.5}.monthly-collapsible{overflow:hidden}.monthly-collapsible__summary{cursor:pointer;justify-content:space-between;align-items:center;gap:1rem;list-style:none;display:flex}.monthly-collapsible__summary::-webkit-details-marker{display:none}.monthly-collapsible__summary:after{content:"展開";color:#2e77b6;flex:none;font-size:.82rem;font-weight:700}.monthly-collapsible[open]>.monthly-collapsible__summary:after{content:"收起"}.monthly-collapsible__summary>div{min-width:0}.monthly-collapsible__summary strong,.monthly-collapsible__summary small{display:block}.monthly-collapsible__summary small{color:var(--muted-foreground,#5b6472);margin-top:.2rem;line-height:1.4}.monthly-collapsible__content{margin-top:1rem}.monthly-collapsible--inner{background:#f8fafcc2;border:1px solid #7a8ca433;border-radius:.85rem;margin-top:1rem;padding:.8rem .95rem}.monthly-collapsible--inner .monthly-collapsible__content{margin-top:.8rem}.monthly-auto-format{background:#2e77b612;border-left:4px solid #2e77b6;flex-wrap:wrap;align-items:center;gap:.45rem .7rem;margin-top:1rem;padding:.75rem .9rem;display:flex}.monthly-auto-format span{color:#174c78;font-weight:700}.monthly-auto-format small{color:var(--muted-foreground,#5b6472);flex:100%}.template-workbench{gap:1rem}.template-workbench__hero{border-bottom:1px solid #7a8ca433;justify-content:space-between;align-items:center;gap:1rem;padding-bottom:.7rem;display:flex}.template-workbench__hero h2,.template-workbench__hero p{margin:0}.template-workbench__hero p:not(.eyebrow){max-width:46rem;color:var(--muted-foreground,#5b6472);margin-top:.45rem;line-height:1.55}.template-workbench__customer-context{gap:.18rem;min-width:min(100%,16rem);padding:0;display:grid}.template-workbench__customer-context>span,.template-workbench__customer-context>small{color:var(--muted-foreground,#5b6472)}.template-workbench__customer-context>span{font-size:.78rem;font-weight:700}.template-workbench__customer-context>small{line-height:1.4}.template-workbench__customer-context>a{color:#2e77b6;width:fit-content;margin-top:.35rem;font-size:.85rem;font-weight:700}.template-workbench__purpose-switch{grid-template-columns:repeat(2,minmax(11.5rem,1fr));gap:.5rem;min-width:min(100%,25rem);display:grid}.template-workbench__purpose-switch>div,.template-workbench__purpose-switch>a{background:var(--surface,#fff);min-width:0;color:var(--ink,#1c2733);border:1px solid #7a8ca447;border-radius:.7rem;align-items:center;gap:.65rem;padding:.75rem;text-decoration:none;display:flex}.template-workbench__purpose-switch>.is-current{color:#174c78;background:#2e77b614;border-color:#2e77b6}.template-workbench__purpose-switch>a:hover{border-color:#2e77b69e}.template-workbench__purpose-switch>div>span,.template-workbench__purpose-switch>a>span{background:#2e77b61a;border-radius:50%;flex:0 0 2rem;place-items:center;width:2rem;height:2rem;font-weight:800;display:grid}.template-workbench__purpose-switch strong,.template-workbench__purpose-switch small{display:block}.template-workbench__purpose-switch small{color:var(--muted-foreground,#5b6472);margin-top:.1rem;font-size:.76rem}.template-workbench__summary{background:var(--surface,#fff);border:1px solid #7a8ca438;border-radius:.75rem;grid-template-columns:minmax(14rem,2fr) repeat(3,minmax(7rem,1fr));display:grid;overflow:hidden}.template-workbench__summary>div{border-right:1px solid #7a8ca42e;min-width:0;padding:.75rem .9rem}.template-workbench__summary>div:last-child{border-right:0}.template-workbench__summary span,.template-workbench__summary strong{display:block}.template-workbench__summary span{color:var(--muted-foreground,#5b6472);font-size:.76rem}.template-workbench__summary strong{overflow-wrap:anywhere;margin-top:.15rem}.template-workbench__status{color:var(--muted-foreground,#5b6472);margin:-.25rem 0 0;font-size:.86rem}.template-workbench__subhead{color:var(--muted-foreground,#5b6472);margin-top:.35rem}.template-workbench__migration-status{background:#f8fafce6;border:1px solid #7a8ca43d;border-radius:1rem;padding:1rem 1.1rem}.template-workbench__migration-status summary{cursor:pointer;flex-direction:column;gap:.25rem;list-style:none;display:flex}.template-workbench__migration-status summary::-webkit-details-marker{display:none}.template-workbench__migration-status summary:after{content:"展開公司遷移清單";color:#2e77b6;margin-top:.35rem;font-size:.82rem;font-weight:700}.template-workbench__migration-status[open] summary:after{content:"收起公司遷移清單"}.template-workbench__migration-status summary>strong,.template-workbench__migration-status p{margin:0}.template-workbench__migration-status summary>span:last-child,.template-workbench__migration-status li>p{color:var(--muted-foreground,#5b6472);margin-top:.3rem;font-size:.87rem}.template-workbench__migration-status ul{grid-template-columns:repeat(auto-fit,minmax(16rem,1fr));gap:.65rem;margin:1rem 0 0;padding:0;list-style:none;display:grid}.template-workbench__migration-status li{border-left:3px solid #aa6f00;padding-left:.65rem}.template-workbench__migration-status li>span{color:#654000;margin-top:.15rem;font-size:.82rem;display:block}.template-toolbar{background:#f4f7fbf5;border:1px solid #7a8ca43d;border-radius:1rem;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:.85rem;padding:1rem 1.1rem;display:flex}.template-toolbar__group{flex-wrap:wrap;align-items:end;gap:.65rem;display:flex}.template-toolbar__field{min-width:18rem}.template-toolbar__meta{color:#5b6472;flex-direction:column;align-items:flex-end;gap:.2rem;font-size:.87rem;display:flex}.template-workbench__workspace{background:#f8fafceb;border:1px solid #7a8ca43d;border-radius:1rem;flex-direction:column;gap:1rem;padding:1rem;display:flex}.template-workbench__workspace:fullscreen,.template-workbench__workspace.is-fullscreen{background:var(--background,#f8fafc);border:0;border-radius:0;width:100%;height:100%;overflow:auto}.template-workbench__workspace-heading{justify-content:space-between;align-items:center;gap:1rem;display:flex}.template-workbench__workspace-heading h4,.template-workbench__workspace-heading h3,.template-workbench__workspace-heading p{margin:0}.template-workbench__workspace-actions{flex-wrap:wrap;justify-content:flex-end;gap:.5rem;display:flex}.template-workbench__subnav{grid-template-columns:repeat(auto-fit,minmax(10.5rem,1fr));gap:.5rem;display:grid}.template-workbench__subnav button{color:#3d4858;text-align:center;background:#ffffffd1;border:1px solid #7a8ca43d;border-radius:.75rem;justify-content:center;align-items:center;min-width:0;padding:.7rem .8rem;display:flex}.template-workbench__subnav button:hover{border-color:#2e77b67a}.template-workbench__subnav button.is-active{color:#174c78;background:#2e77b61a;border-color:#2e77b6}.template-workbench__subnav button span{color:#5b6472;font-size:.8rem;line-height:1.35}.template-workbench__step-guide{background:#2e77b612;border-left:4px solid #2e77b6;align-items:flex-start;gap:.85rem;padding:.9rem 1rem;display:flex}.template-workbench__step-guide p,.template-workbench__step-guide small{margin:.2rem 0 0;display:block}.template-workbench__step-guide p{line-height:1.5}.template-workbench__step-guide small{color:var(--muted-foreground,#5b6472)}.template-workbench__step-number{color:#fff;background:#2e77b6;border-radius:50%;flex:0 0 2rem;place-items:center;width:2rem;height:2rem;font-weight:800;display:grid}.template-workbench__workspace-page{min-width:0}.template-workbench__settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;display:grid}.template-workbench__settings-wide{grid-column:1/-1}.template-workbench__settings-assignment{order:-2}.template-workbench__settings-source{order:-1}.template-workbench__settings-meta{order:0}.template-workbench__advanced-settings{border-top:1px solid #7a8ca433;margin-top:1rem;padding-top:.75rem}.template-workbench__advanced-settings summary{cursor:pointer;color:#2e77b6;font-weight:700}.template-workbench__advanced-settings[open] summary{margin-bottom:.75rem}.template-workbench__step-actions{justify-content:space-between;align-items:center;gap:.75rem;padding-top:.25rem;display:flex}.template-workbench__step-actions span{color:var(--muted-foreground,#5b6472);font-size:.82rem}@media (max-width:960px){.template-workbench__hero{flex-direction:column}.template-workbench__purpose-switch,.template-workbench__customer-context{width:100%}.template-workbench__summary{grid-template-columns:repeat(2,minmax(0,1fr))}.template-workbench__summary>div:nth-child(2){border-right:0}.template-workbench__summary>div:nth-child(-n+2){border-bottom:1px solid #7a8ca42e}.template-workbench__settings-grid{grid-template-columns:1fr}.template-workbench__settings-wide{grid-column:auto}}@media (max-width:640px){.template-workbench__purpose-switch,.template-workbench__summary,.template-workbench__subnav{grid-template-columns:1fr}.template-workbench__summary>div{border-bottom:1px solid #7a8ca42e;border-right:0}.template-workbench__summary>div:last-child{border-bottom:0}.template-toolbar,.template-toolbar__group,.template-workbench__workspace-heading{align-items:stretch}.template-toolbar__group,.template-workbench__workspace-heading{flex-direction:column}.template-toolbar__field{width:100%;min-width:0}.template-toolbar__meta{align-items:flex-start}.template-workbench__workspace-actions{justify-content:stretch}.template-workbench__workspace-actions>button{flex:1}.template-workbench__step-actions{grid-template-columns:1fr 1fr;display:grid}.template-workbench__step-actions span{text-align:center;grid-area:1/1/auto/-1}}.template-panel{background:#ffffffeb;border:1px solid #7b8aa038;border-radius:1rem;padding:1rem;box-shadow:0 18px 48px #0f172a0d}.template-palette__block-list,.template-palette__field-groups,.template-inspector__section-list{flex-direction:column;gap:.9rem;display:flex}.template-palette__block-button{width:100%;color:inherit;text-align:left;background:linear-gradient(#fffffff5,#f6f9fcf5);border:1px solid #70829c42;border-radius:.85rem;flex-direction:column;align-items:flex-start;gap:.2rem;padding:.8rem .9rem;display:flex}.template-palette__block-button span,.template-palette__hint,.template-palette__field-group h4{color:#5b6472}.template-palette__hint{background:#f4f6faeb;border-radius:.85rem;padding:.75rem .85rem;font-size:.88rem}.template-palette__advanced-types{border-top:1px solid #7a8ca433;margin-top:.8rem;padding-top:.8rem}.template-palette__advanced-types summary{cursor:pointer;color:#2e77b6;font-weight:700}.template-palette__advanced-types[open] summary{margin-bottom:.75rem}.template-palette__field-list{flex-direction:column;gap:.55rem;display:flex}.template-field-chip{width:100%;color:inherit;text-align:left;background:#fafcfff5;border:1px solid #7a8ca43d;border-radius:.8rem;flex-direction:column;align-items:flex-start;gap:.15rem;padding:.7rem .8rem;display:flex}.template-field-chip span{color:#5b6472;font-size:.82rem}.template-grid-panel{overflow:hidden}.template-grid-panel__meta{color:#5b6472;font-size:.87rem}.template-grid{--template-grid-columns:10;--template-grid-rows:40;grid-template-columns:3.25rem repeat(var(--template-grid-columns), minmax(4.4rem, 1fr));grid-template-rows:2.25rem repeat(var(--template-grid-rows), minmax(2.5rem, auto));background:#fff;border:1px solid #7b8aa02e;border-radius:.95rem;gap:0;height:min(72vh,52rem);padding:.2rem;display:grid;overflow:auto}.template-grid__corner,.template-grid__column-header,.template-grid__row-header{z-index:5;color:#3d4858;background:#e8eef6fa;border:1px solid #cdd6e2eb;justify-content:center;align-items:center;font-size:.82rem;font-weight:700;display:flex;position:sticky}.template-grid__corner{top:0;left:0}.template-grid__column-header{top:0}.template-grid__row-header{left:0}.template-grid__cell,.template-grid__block,.template-grid__merge,.template-grid__selection{min-width:0;min-height:0}.template-grid__cell{z-index:0;background:#fff;border:1px solid #dae0e9f5;justify-content:flex-start;align-items:flex-start;display:flex;position:relative}.template-grid__cell.is-selected{background:#10785f14}.template-grid__cell.is-outside-print{color:#a0a8b4;background:#e9ecf1f2}.template-grid__merge{z-index:1;pointer-events:none;border:1px solid #2e77b652}.template-grid__selection{z-index:2;pointer-events:none;background:#10785f0f;border:2px solid #10785fc7}.template-grid__block{z-index:3;color:#1c2733;text-align:left;cursor:pointer;border:0;border-radius:0;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:.2rem;padding:.12rem .35rem;font-size:.82rem;line-height:1.05;display:flex;position:relative;overflow:hidden}.template-grid__block.is-active{outline-offset:1px;outline:2px solid #1859b0d1}.template-grid__block.is-resizing{outline-offset:1px;outline:2px dashed #1859b0e6}.template-grid__block-resize-handle{z-index:4;cursor:nwse-resize;opacity:0;touch-action:none;background:#1859b0;border:2px solid #fff;border-radius:999px;width:.78rem;height:.78rem;padding:0;position:absolute;bottom:.22rem;right:.22rem}.template-grid__block.is-active .template-grid__block-resize-handle,.template-grid__block:focus-visible .template-grid__block-resize-handle,.template-grid__block.is-resizing .template-grid__block-resize-handle{opacity:1}.template-grid__block-resize-handle:focus-visible{outline-offset:2px;outline:2px solid #0e7b61}.template-grid__block--field,.template-grid__block--aggregate{color:#516b7f}.template-grid__block-content{white-space:pre-line;overflow-wrap:anywhere;width:100%}.template-grid__table-preview{color:#1c2733;border-top:1px solid;border-left:1px solid;grid-template-columns:repeat(auto-fit,minmax(3.4rem,1fr));width:100%;display:grid}.template-grid__table-preview>span{text-align:center;border-bottom:1px solid;border-right:1px solid;justify-content:center;align-items:center;min-height:1.8rem;padding:.2rem;font-size:.75rem;font-weight:700;line-height:1.2;display:flex}.template-inspector__section{flex-direction:column;gap:.75rem;padding-top:.1rem;display:flex}.template-inspector__section h4,.template-palette__field-group h4{margin:0;font-size:.92rem}.template-workbench__footer-card{background:#ffffffe6;border:1px solid #7b8aa038;border-radius:1rem;padding:1rem}.template-workbench__footer-card .section-heading p:not(.eyebrow),.template-inspector .section-heading p:not(.eyebrow),.template-palette .section-heading p:not(.eyebrow){max-width:48rem;color:var(--muted-foreground,#5b6472);margin:.35rem 0 0;line-height:1.5}.template-preview-grid-shell{background:#f4f7fb;border:1px solid #7b8aa033;border-radius:.95rem;max-height:min(72vh,52rem);padding:.35rem;overflow:auto}.template-preview{gap:.8rem;display:grid}.template-preview__intro{background:#eaf2fae6;border-left:3px solid #2e77b6;justify-content:space-between;align-items:flex-start;gap:1rem;padding:.9rem 1rem;display:flex}.template-preview__intro strong{color:#173b61;display:block}.template-preview__intro p{color:#536579;max-width:58rem;margin:.3rem 0 0;line-height:1.5}.template-preview__meta{color:#5b6472;flex-wrap:wrap;gap:.45rem 1rem;font-size:.82rem;display:flex}.template-preview__sheet-tabs{flex-wrap:wrap;gap:.45rem;display:flex}.template-preview__sheet-tabs button{color:#43566b;font:inherit;cursor:pointer;background:#fff;border:1px solid #7b8aa040;border-radius:.55rem;padding:.45rem .75rem}.template-preview__sheet-tabs button.is-active{color:#174d7e;background:#eaf2fa;border-color:#2e77b6;font-weight:700}.template-preview-grid{background:#fff;border:1px solid #7b8aa04d;width:max-content;min-width:100%;display:grid}.template-preview-grid__corner,.template-preview-grid__header,.template-preview-grid__row-header{color:#3d4858;background:#eaf0f8fa;border:1px solid #d3dbe6eb;justify-content:center;align-items:center;min-width:0;min-height:0;font-size:.8rem;font-weight:700;display:flex}.template-preview-grid__cell{color:#1f2937;overflow-wrap:normal;word-break:keep-all;background:0 0;border:1px solid #e1e7efeb;justify-content:flex-start;align-items:flex-start;min-width:0;min-height:0;padding:0 3px;font-size:.9rem;line-height:1.15;display:flex;overflow:hidden}.template-preview-grid__cell.is-filled{z-index:1;background:#fffffffa;overflow:visible}.template-preview-grid__cell.is-wrap{white-space:pre-wrap;overflow:hidden}a.template-preview-grid__cell{color:inherit;text-decoration:none}.template-preview-grid__cell.is-clickable{cursor:pointer}.template-preview-grid__cell.is-clickable:hover,.template-preview-grid__cell.is-clickable:focus-visible{background:color-mix(in srgb, var(--accent) 10%, #fff)}.template-preview-grid__cell.is-clickable:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.button.small.danger{color:#a12f24;border-color:#bf44384d}.form-grid.four-up{grid-template-columns:repeat(4,minmax(0,1fr))}.field-span-2{grid-column:span 2}.customer-rule-workbench{gap:16px;min-width:0;display:grid}.customer-rule-workbench__hero{border:1px solid var(--accent-border);background:var(--surface);border-radius:8px;grid-template-columns:minmax(0,1fr) minmax(300px,.72fr);align-items:stretch;gap:20px;padding:24px;display:grid}.customer-rule-workbench__hero h2{color:var(--accent-deep);margin:0 0 8px;font-size:clamp(26px,3vw,36px);line-height:1.1}.customer-rule-workbench__hero p:not(.eyebrow){max-width:720px;color:var(--muted);margin:0}.customer-rule-workbench__purpose-switch{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.customer-rule-workbench__purpose-switch>a,.customer-rule-workbench__purpose-switch>div{border:1px solid var(--line);background:var(--surface);min-width:0;color:var(--ink);border-radius:7px;align-items:center;gap:10px;padding:12px 14px;text-decoration:none;display:flex}.customer-rule-workbench__purpose-switch>a:hover{border-color:var(--accent)}.customer-rule-workbench__purpose-switch>.is-current{border-color:var(--accent);background:var(--accent-tint-faint);color:var(--accent-deep)}.customer-rule-workbench__purpose-switch>a>span,.customer-rule-workbench__purpose-switch>div>span{background:var(--accent-tint-soft);border-radius:50%;flex:0 0 32px;place-items:center;width:32px;height:32px;font-weight:800;display:grid}.customer-rule-workbench__purpose-switch strong,.customer-rule-workbench__purpose-switch small{display:block}.customer-rule-workbench__purpose-switch small{color:var(--muted);margin-top:2px}.customer-rule-workbench__steps{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none;display:grid}.customer-rule-workbench__steps li{border:1px solid var(--line);background:var(--surface);border-radius:7px;align-items:flex-start;gap:9px;min-width:0;padding:12px;display:flex}.customer-rule-workbench__steps li>span{background:var(--accent-deep);color:#fff;border-radius:50%;flex:0 0 24px;place-items:center;width:24px;height:24px;font-size:12px;font-weight:800;display:grid}.customer-rule-workbench__steps strong,.customer-rule-workbench__steps small{display:block}.customer-rule-workbench__steps small{color:var(--muted);margin-top:3px;line-height:1.35}.customer-rule-workbench__hero-summary,.customer-rule-workbench__metrics,.rule-workbench-meta,.rule-diagnostic-grid{gap:10px;display:grid}.customer-rule-workbench__hero-summary{grid-template-columns:repeat(3,minmax(0,1fr));align-self:stretch}.customer-rule-workbench__hero-summary div,.customer-rule-workbench__metrics>div,.rule-workbench-meta>div,.rule-diagnostic-grid>div{border:1px solid var(--line);background:var(--surface);border-radius:7px;align-content:center;gap:3px;min-width:0;padding:13px 14px;display:grid}.customer-rule-workbench__hero-summary span,.customer-rule-workbench__metrics span,.customer-rule-workbench__metrics small,.rule-workbench-meta span,.rule-diagnostic-grid span{color:var(--muted);font-size:12px;font-weight:700}.customer-rule-workbench__hero-summary strong,.customer-rule-workbench__metrics strong,.rule-diagnostic-grid strong{color:var(--accent-deep);overflow-wrap:anywhere;font-size:21px;line-height:1.2}.customer-rule-workbench__notice{border:1px solid var(--warn-border);border-left:4px solid var(--warn);background:var(--warn-soft);border-radius:8px;align-items:flex-start;gap:12px;padding:14px 16px;display:flex}.customer-rule-workbench__notice-icon{background:var(--warn);color:#fff;border-radius:50%;flex:none;justify-content:center;align-items:center;width:24px;height:24px;font-weight:800;display:inline-flex}.customer-rule-workbench__notice strong{color:var(--ink)}.customer-rule-workbench__notice p{color:var(--muted);margin:3px 0 0;font-size:14px}.customer-rule-workbench__metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.customer-rule-workbench__metrics strong{font-size:26px}.customer-rule-workbench__customer-panel{border-top:3px solid var(--accent)}.customer-rule-workbench__customer-fields{margin-bottom:16px}.customer-rule-workbench__customer-fields .field input[readonly]{background:var(--surface-soft);color:var(--muted)}.rule-workbench-meta{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:10px}.rule-workbench-advanced{color:var(--muted);margin-top:14px}.rule-workbench-advanced summary{width:fit-content;color:var(--accent-strong);cursor:pointer;font-size:13px;font-weight:750}.rule-workbench-meta>div{justify-content:space-between;align-items:center;gap:12px;padding:9px 12px;display:flex}.rule-workbench-meta strong{min-width:0;color:var(--ink);text-align:right;overflow-wrap:anywhere;font-size:13px}.customer-rule-workbench__columns{grid-template-columns:minmax(0,1.46fr) minmax(310px,.74fr);align-items:start;gap:16px;display:grid}.customer-rule-workbench__editors{gap:16px;min-width:0;display:grid}.rule-editor-card{min-width:0;padding:18px}.rule-editor-card .section-heading p{max-width:760px}.rule-workbench-table-wrap{border:1px solid var(--line);border-radius:7px;max-height:520px}.rule-workbench-table{min-width:980px}.rule-workbench-table--matrix{min-width:1520px}.rule-workbench-table th{z-index:1;background:var(--surface-soft);white-space:nowrap;position:sticky;top:0}.rule-workbench-table td{vertical-align:top}.rule-workbench-table input,.rule-workbench-table select{border:1px solid var(--line);background:var(--surface);width:100%;min-width:100px;min-height:38px;color:var(--ink);border-radius:6px;padding:7px 9px}.rule-workbench-table input:focus,.rule-workbench-table select:focus{outline:2px solid var(--accent-tint-medium);border-color:var(--accent)}.rule-workbench-table input[type=checkbox]{width:18px;min-width:18px;min-height:18px;margin:10px auto;display:block}.manual-fee-list{gap:12px;display:grid}.manual-fee-row{border:1px solid var(--line);background:var(--surface-soft);border-radius:7px;padding:14px}.manual-fee-row__heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.manual-fee-row .field input[type=checkbox]{width:18px;min-height:18px;margin:8px 0}.rule-test-preview{border-top:3px solid var(--info);gap:14px;min-width:0;display:grid;position:sticky;top:16px}.rule-test-preview .section-heading{margin-bottom:0}.rule-diagnostic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rule-diagnostic-grid>div{background:var(--surface-soft)}.rule-preview-table{min-width:640px}.rule-preview-note,.customer-rule-workbench__readonly-note{color:var(--muted);margin:0;font-size:13px}.customer-rule-workbench__release-panel{align-items:start;gap:12px;display:grid}.customer-rule-workbench__release-panel h3{margin-bottom:4px}.customer-rule-workbench__release-panel p{margin:0}.customer-rule-workbench__reason-field{min-width:0}.customer-rule-workbench__reason-field textarea{min-height:92px}.customer-rule-workbench__release-actions{grid-column:1/-1;margin-top:0}.customer-rule-workbench__flow{border:1px solid var(--line);background:var(--surface);border-radius:8px}.customer-rule-workbench__flow-tabs{border-bottom:1px solid var(--line);background:var(--surface-soft);grid-template-columns:repeat(4,minmax(0,1fr));gap:0;display:grid}.customer-rule-page{gap:10px;display:grid}.customer-rule-toolbar{padding:14px 16px 12px}.customer-rule-toolbar__row{margin-bottom:0}.customer-rule-toolbar__actions{flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto;padding-bottom:2px;display:flex}.customer-rule-toolbar__currency{color:var(--muted);font-size:13px;font-weight:700}.customer-rule-toolbar .form-notice{margin:12px 0 0}.customer-rule-workbench__flow-tab{border:0;border-right:1px solid var(--line);min-width:0;color:var(--muted);cursor:pointer;font:inherit;text-align:center;background:0 0;justify-content:center;align-items:center;padding:12px 14px;font-weight:700;display:flex}.customer-rule-workbench__flow-tab:last-child{border-right:0}.customer-rule-workbench__flow-tab>span{background:var(--line);width:24px;height:24px;color:var(--ink);border-radius:50%;grid-row:span 2;place-items:center;font-size:12px;font-weight:800;display:grid}.customer-rule-workbench__flow-tab strong,.customer-rule-workbench__flow-tab small{min-width:0}.customer-rule-workbench__flow-tab strong{color:var(--ink);font-size:14px}.customer-rule-workbench__flow-tab small{color:var(--muted);margin-top:2px;font-size:12px;line-height:1.35}.customer-rule-workbench__flow-tab:hover,.customer-rule-workbench__flow-tab.is-active{background:var(--surface)}.customer-rule-workbench__flow-tab.is-active{box-shadow:inset 0 -3px 0 var(--accent)}.customer-rule-workbench__flow-tab.is-active>span{background:var(--accent);color:var(--surface)}.customer-rule-workbench__flow-tab:focus-visible{z-index:1;outline:2px solid var(--accent);outline-offset:-2px;position:relative}.customer-rule-workbench__flow-panel{padding:16px}.customer-rule-workbench__panel-intro{margin-bottom:2px}.customer-rule-workbench__panel-intro h3,.customer-rule-workbench__panel-intro p{margin-bottom:4px}.customer-rule-workbench__details,.customer-rule-workbench__help,.customer-rule-workbench__summary{border:1px solid var(--line);background:var(--surface-soft);border-radius:7px}.customer-rule-workbench__details{overflow:hidden}.customer-rule-workbench__details>summary,.customer-rule-workbench__help>summary,.customer-rule-workbench__summary>summary{color:var(--ink);cursor:pointer;padding:12px 14px;font-size:14px;font-weight:750}.customer-rule-workbench__details>.rule-editor-card{border:0;border-radius:0;margin:0}.customer-rule-workbench__help{margin-top:12px}.customer-rule-workbench__help p{color:var(--muted);margin:0 14px 14px;font-size:13px}.customer-rule-workbench__summary{margin-top:12px}.customer-rule-workbench__summary .customer-rule-workbench__metrics{padding:0 14px 14px}.customer-rule-workbench__check-panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:16px;display:grid}.customer-rule-workbench__check-panel .rule-test-preview,.customer-rule-workbench__check-panel .customer-rule-workbench__release-panel{margin:0}@media (max-width:1180px){.customer-rule-workbench__hero,.customer-rule-workbench__columns{grid-template-columns:1fr}.rule-test-preview{position:static}.customer-rule-workbench__release-panel{grid-template-columns:1fr}.customer-rule-workbench__steps{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-rule-workbench__check-panel{grid-template-columns:1fr}}@media (max-width:760px){.form-grid.four-up,.customer-rule-workbench__metrics,.rule-workbench-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-rule-workbench__hero{padding:18px}.customer-rule-workbench__hero-summary{grid-template-columns:1fr}.customer-rule-workbench__flow-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-rule-workbench__flow-tab:nth-child(2){border-right:0}.customer-rule-workbench__flow-tab:nth-child(-n+2){border-bottom:1px solid var(--line)}.customer-rule-workbench__customer-panel,.rule-editor-card,.rule-test-preview,.customer-rule-workbench__release-panel{padding:15px}}@media (max-width:560px){.form-grid.four-up,.customer-rule-workbench__metrics,.rule-workbench-meta{grid-template-columns:1fr}.field-span-2{grid-column:auto}.customer-rule-workbench__purpose-switch,.customer-rule-workbench__steps,.customer-rule-workbench__flow-tabs{grid-template-columns:1fr}.customer-rule-workbench__flow-tab,.customer-rule-workbench__flow-tab:nth-child(2){border-right:0;border-bottom:1px solid var(--line)}.customer-rule-workbench__flow-tab:last-child{border-bottom:0}.customer-rule-workbench__flow-panel,.customer-rule-workbench__notice{padding:12px}.customer-rule-workbench__release-actions{flex-direction:column;align-items:stretch}.customer-rule-workbench__release-actions .button,.customer-rule-workbench__release-actions .save-status{width:100%}}@media (max-width:1024px){.template-toolbar{align-items:stretch}.template-toolbar__meta{align-items:flex-start}.template-workbench__workspace-heading{flex-direction:column;align-items:flex-start}}.macau-hk-grid-toolbar{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.macau-hk-override-control{align-items:center;gap:6px;display:inline-flex}.macau-hk-override-control span{color:var(--muted);white-space:nowrap;font-size:12px}.macau-hk-override-control input{min-width:220px}.excel-data-grid-table tr.is-legacy-pending{background:color-mix(in srgb, var(--surface-soft) 78%, #f3c969 22%)}.table-settings-card{gap:16px;display:grid}.table-settings-layout{grid-template-columns:minmax(180px,240px) minmax(0,1fr);align-items:start;gap:16px;display:grid}.table-settings-nav,.table-settings-editor,.table-settings-columns{min-width:0}.table-settings-group{border-bottom:1px solid var(--line-soft);padding:8px 0}.table-settings-group p{color:var(--muted);margin:0 0 6px;font-size:12px}.table-settings-nav button,.table-settings-subnav button{color:var(--ink);cursor:pointer;text-align:left;background:0 0;border:0;border-radius:8px;width:100%;padding:8px 10px;display:block}.table-settings-nav button.active,.table-settings-subnav button.active{background:var(--accent-soft);color:var(--accent-deep)}.table-settings-subnav{gap:4px;padding-left:8px;display:grid}.table-settings-columns{gap:8px;margin:12px 0;padding:0;list-style:none;display:grid}.table-settings-columns li{border:1px solid var(--line-soft);border-radius:10px;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}.table-settings-flags{gap:6px;min-width:0;display:grid}.table-settings-columns label{align-items:flex-start;gap:8px;min-width:0;display:flex}.table-settings-columns small{color:var(--muted);display:block}.table-settings-order{flex-shrink:0;gap:6px;display:flex}.table-settings-actions{flex-wrap:wrap;gap:8px;display:flex}.table-settings-mobile-select{display:none}@media (max-width:720px){.table-settings-layout{grid-template-columns:1fr}.table-settings-nav{display:none}.table-settings-mobile-select{display:grid}.table-settings-columns li{flex-direction:column;align-items:flex-start}}
