/* Approved 2026-10-08 homepage is the visual master. Business handlers remain unchanged. */
:root,body.cf-view{--ink:#242b38;--muted:#647084;--teal:#286bff;--green:#286bff;--cream:#f7f9fe;--line:#e8edf5;--gold:#eaa144;--red:#cf4f53;--white:#fff;--shadow:0 2px 8px #15356903;--factory-blue:#286bff;--factory-ink:#242b38;--factory-muted:#647084;--factory-line:#e8edf5;--erp-sidebar:192px}
body,body.cf-view{font-size:13px;line-height:1.5;color:var(--ink);background:#f7f9fe;overflow-wrap:break-word}body .shell,body.cf-view .shell{display:grid;grid-template-columns:var(--erp-sidebar) minmax(0,1fr);min-height:100vh}body aside,body.cf-view aside{position:fixed;inset:0 auto 0 0;width:var(--erp-sidebar);height:100dvh;background:#0d2a50;padding:0 9px 12px;color:#c6d1e3;display:flex;flex-direction:column;overflow:hidden;z-index:40}body .workspace{grid-column:2;min-width:0}body aside .brand,body.cf-view aside .brand{display:flex;align-items:center;gap:12px;height:76px;min-height:76px;margin:0;padding:17px 4px 22px;color:#fff;font-size:22px;letter-spacing:.3px;line-height:1.1}.brand-logo{width:34px;height:38px;flex-shrink:0}body .brand small{display:block;font-size:10px;line-height:1.5;color:#c6d2e5;letter-spacing:0;margin-top:4px}body #nav{display:flex;flex-direction:column;flex:1;gap:3px;overflow:auto;overflow-x:hidden;margin:0;padding:2px 0 8px;scrollbar-width:thin;scrollbar-color:#385174 transparent}body .erp-nav-group{flex-shrink:0}.erp-nav-parent{border:0;background:transparent;color:#d1daea;display:flex;align-items:center;gap:11px;width:100%;min-height:47px;padding:10px 16px;font-size:13px;font-weight:500;text-align:left;border-radius:5px}.erp-nav-parent svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.erp-nav-parent .erp-arrow{width:11px;height:11px;margin-left:auto}.erp-nav-parent[aria-expanded=true] .erp-arrow{transform:rotate(90deg)}.erp-nav-parent:hover{background:#1b3c66;color:white}.erp-nav-parent.is-current{background:#286bff;color:white}.erp-nav-children[hidden]{display:none}body #nav .erp-nav-children a,body #nav-settings .erp-nav-children a{display:block;color:#c6d1e3;background:transparent;padding:9px 10px 9px 44px;font-size:12px;line-height:1.5;min-height:36px;margin:2px 0;border-radius:4px;border:0;box-shadow:none;white-space:normal}body #nav .erp-nav-children a.active,body #nav-settings .erp-nav-children a.active{color:white;background:#1e477b;box-shadow:inset 3px 0 #83b0ff}body #nav a:hover,body #nav-settings a:hover{background:#193b67;text-decoration:none}body #nav a:before{display:none}#nav-settings{flex-shrink:0}body .side-note{margin:12px 0 0;padding:12px 13px;background:#173659;border:1px solid #234167;border-radius:4px;color:#c4d3e7;font-size:11px;flex-shrink:0}body .side-note p{color:#a9bbd3;font-size:10px;line-height:1.6;margin:10px 0}.side-note button{padding:5px 7px}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body header,body.cf-view header{height:64px;min-height:64px;padding:0 20px 0 22px;display:flex;justify-content:flex-start;gap:13px;background:#fff;border-bottom:1px solid #eff2f7;position:relative;z-index:35}#erp-menu{display:flex;align-items:center;justify-content:center;width:32px;min-height:36px;border:0;padding:5px;background:transparent;border-radius:4px;flex-shrink:0}#erp-menu svg{width:20px;height:20px;stroke:#59677d;fill:none;stroke-width:1.6}#erp-page-title{font-size:19px;line-height:1.35;white-space:nowrap}.erp-search{position:relative;width:232px;margin-left:auto}.erp-search[hidden]{display:none}.erp-search input{width:100%;min-height:34px;padding:7px 10px;font-size:11px;border-color:#edf0f5;border-radius:7px}#erp-search-results{position:absolute;top:40px;left:0;right:0;padding:8px;background:#fff;border:1px solid var(--line);box-shadow:0 8px 24px #172c4b15;z-index:50}#erp-search-results a{display:block;padding:10px;font-size:13px}#erp-search-results p{padding:0 8px}.role-label{font-size:11px;gap:8px;margin-left:auto;flex-shrink:0}.erp-search+.role-label{margin-left:12px}.role-label select{min-width:108px;max-width:190px;min-height:34px;padding:5px 8px;font-size:12px}.cf-menu-button{display:none!important}body #erp-breadcrumb{padding:13px 22px 0;font-size:12px;color:#647084}body main,body.cf-view main{padding:16px 20px 24px;max-width:none;min-width:0;margin:0;min-height:75vh}body .demo-banner{font-size:11px;background:#eef4ff;color:#47628c;border:0;padding:6px 22px}body footer{font-size:11px;line-height:1.6;padding:16px 20px;color:#647084}
body .page-head,body .cf-heading{gap:16px;margin-bottom:18px;align-items:center}body .page-head h1,body .cf-heading h1,body .login-card h1{font-size:22px;line-height:1.35;letter-spacing:0;font-weight:650;margin:0 0 6px}body .page-head p:not(.eyebrow),body .cf-heading p{font-size:12px;line-height:1.65;color:#647084;margin:0;max-width:65em}body .eyebrow{font-size:11px;letter-spacing:0;color:#647084;margin-bottom:5px}body h2,body .section-head h2,body .cf-panel-title h2{font-size:15px;line-height:1.5;font-weight:600}body .subtle,body .mini-note,body .cf-panel-title p{font-size:12px;line-height:1.65;color:#647084}body .card,body .cf-panel,body .operating-panel{border:1px solid #edf1f7;border-radius:5px;background:white;box-shadow:0 2px 8px #15356903;padding:18px;margin-bottom:16px;min-width:0}body .cf-panel{padding:0;overflow:hidden}body .section-head{margin-bottom:14px}.section-head>div{min-width:0}body .context-panel,body .role-intent{background:#fff;border:1px solid var(--line);border-radius:5px;padding:14px 16px;box-shadow:none;margin-bottom:16px}body .context-panel strong{font-size:15px}body .context-panel p{font-size:12px;line-height:1.6}body .scope-chip{border-radius:4px;background:#f0f5ff;color:#47628c;border-color:#e2ebfa;font-size:11px}body .metrics{gap:12px;margin-bottom:16px;grid-template-columns:repeat(4,minmax(0,1fr))}body .metric,body .metric.highlight{background:#fff;color:#242b38;border:1px solid #edf1f7;border-radius:5px;padding:16px 18px;min-width:0}body .metric label,body .metric.highlight label,body .metric.highlight p{font-size:12px;color:#647084}body .metric strong{font-size:23px;line-height:1.5}body .metric strong small{font-size:12px}body .metric.highlight strong small{color:#647084}body .info-grid>div{border-radius:5px;background:white;border-color:var(--line)}body .split,body .finance-grid{gap:16px}
body button,body .button-link,body .cf-workspace button,body .cf-modal button{border:1px solid var(--line);border-radius:5px;padding:8px 13px;font-size:13px;font-weight:500;line-height:1.5;box-shadow:none;min-height:36px}body button:hover,body .button-link:hover{background:#f0f5ff;text-decoration:none}body button.primary,body .primary,body .cf-heading button,body .cf-modal button.primary{background:#286bff;border-color:#286bff;color:white}body button.primary:hover,body a.primary:hover{background:#1f5fec}body button.small{font-size:12px;padding:5px 9px;min-height:30px}body button:disabled{opacity:.45;cursor:not-allowed}body input,body select,body textarea{border:1px solid #dce4ef;border-radius:5px;font-size:13px;min-height:36px;padding:7px 10px;max-width:100%}body textarea{line-height:1.65}body a{color:#286bff}body :is(button,a,input,select,textarea):focus-visible,body .cf-workspace :focus-visible,body .cf-modal :focus-visible{outline:2px solid #5289ff;outline-offset:3px}body .cf-tabs{border-color:var(--line)}body .cf-tabs a{font-size:13px;padding:10px 16px;min-height:40px}body .cf-tabs a[aria-current]{color:#286bff;border-color:#286bff;background:#f1f6ff}body .tabs .tab-link.active,body .tabs button.active{background:#286bff;border-color:#286bff;color:#fff}
body .table-wrap,body .report-scroll,body .catalog-grid,body .cost-sheet-scroll,body .cf-table{max-width:100%;overflow:auto;min-width:0}body table{font-size:13px}body th,body .cf-table th{font-size:12px;line-height:1.5;padding:10px 12px;background:#f5f8fd;color:#647084;border-color:#e8edf5;letter-spacing:0}body td,body .cf-table td{font-size:13px;line-height:1.6;padding:12px;border-color:#edf1f7}body td .name{font-size:13px}body td small{font-size:11px;color:#647084}body tbody tr:hover{background:#f8fbff}body .catalog-grid tbody tr:hover{background:#f1f6ff}body .cf-table .cf-selected-row{background:#edf4ff}body .catalog-grid th{background:#f5f8fd;border-color:#e8edf5;color:#647084}body .cost-sheet th{background:#f5f8fd}body .cost-sheet tr:nth-child(even) td{background:#f9fbfe}body .catalog-price,body .cf-number{font-variant-numeric:tabular-nums;text-align:right}body .pill{font-size:11px;padding:3px 7px;border-radius:4px;background:#edf5ff;color:#35639d}body .pill.warn{background:#fff3df;color:#94651b}body .pill.bad{background:#fff0f0;color:#b64045}body .pill.neutral{background:#f0f3f7;color:#647084}body .progress{background:#edf1f7}body .progress span{background:#6d9df2}body .flow-stage.current{background:#f0f5ff;border-radius:5px}body .task-index{background:#edf4ff;color:#286bff}body .notice{background:#fff5e5;border-color:#f4ddb2;color:#88601d;border-radius:5px;font-size:12px;line-height:1.7}body .form-error{font-size:12px;line-height:1.7;background:#fff0f0;color:#b64045}body .cf-panel-title{padding:14px 16px;border-color:var(--line)}body .cf-detail{background:#f6f9ff;border-color:#e3ebf7}body dialog{border-radius:8px;border:1px solid #e3eaf4;box-shadow:0 18px 60px #14284426;max-width:96vw;max-height:90dvh}body dialog::backdrop{background:#12254255}body dialog h2{font-size:18px}body dialog label{font-size:13px}body .login-card{max-width:480px}
body.erp-collapsed{--erp-sidebar:64px}.erp-collapsed aside .brand>span,.erp-collapsed .erp-nav-parent>span,.erp-collapsed .erp-arrow,.erp-collapsed .erp-nav-children,.erp-collapsed .side-note{display:none!important}.erp-collapsed .erp-nav-parent{justify-content:center;padding:12px 5px}.erp-collapsed aside .brand{padding:17px 5px}.erp-collapsed .brand-logo{width:34px}.erp-nav-parent:focus-visible{outline-offset:-2px}#erp-scrim[hidden]{display:none}
/* Homepage: four layers from the approved master, derived facts instead of illustrative amounts. */
.ref-home{display:grid;gap:16px}.ref-panel{background:#fff;border:1px solid #edf1f7;border-radius:5px;padding:16px;min-width:0}.ref-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.ref-heading h2{font-size:14px;margin:0}.ref-heading>span,.ref-heading>a{font-size:11px;color:#647084}.ref-home-top{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:16px}.ref-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.ref-stat{position:relative;min-height:154px;padding:12px 13px;color:#242b38;border-right:1px solid #edf1f7;overflow-wrap:anywhere}.ref-stat:last-child{border:0}.ref-stat>span{display:block;font-size:11px;color:#647084;padding-right:25px}.ref-stat strong{display:block;font-size:21px;line-height:1.5;margin:8px 0 10px;font-variant-numeric:tabular-nums}.ref-stat strong small{font-size:11px;font-weight:400;margin-left:4px}.ref-stat em{font-size:11px;line-height:1.5;color:#647084;font-style:normal;display:block}.ref-stat-foot{font-size:10px;color:#647084;margin-top:20px}.ref-stat-icon{position:absolute;right:10px;top:12px;width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.7;filter:drop-shadow(0 0 8px #729ef24a)}.ref-stat:hover{text-decoration:none;background:#f8fbff}.ref-todos .ref-heading{margin-bottom:10px}.ref-todos>a,.ref-todo-more>a{display:flex;align-items:center;gap:9px;padding:6px 0;color:#273346;min-height:30px}.ref-todos>a>span:nth-child(2),.ref-todo-more>a>span:nth-child(2){min-width:0;flex:1}.ref-todos strong{display:block;font-size:12px;font-weight:500}.ref-todos small{display:block;font-size:10px;color:#647084}.ref-todos b{font-size:10px;font-weight:400;color:#286bff}.ref-task-dot{width:6px;height:6px;border-radius:50%;background:#286bff;flex-shrink:0}.ref-module-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 16px;max-width:996px}.ref-module{display:flex;align-items:center;gap:12px;height:68px;padding:10px 14px;border:1px solid #edf1f7;border-radius:5px;color:#242b38;background:#fff}.ref-module:hover{background:#f7faff;text-decoration:none;border-color:#d9e7ff}.ref-module>span:last-child{min-width:0}.ref-module strong{display:block;font-size:13px}.ref-module small{display:block;font-size:10px;line-height:1.6;color:#647084;margin-top:4px}.ref-module .tile{position:relative;display:flex;align-items:center;justify-content:center;width:42px;height:42px;flex-shrink:0;--tile-light:#78a6ff;--tile-main:#286bff}.tile.purple{--tile-light:#bd7dff;--tile-main:#933deb}.tile.orange{--tile-light:#ffd17d;--tile-main:#eaa13e}.tile.green{--tile-light:#70dcad;--tile-main:#22b27e}.ref-module .tile-aura{position:absolute;inset:3px;border-radius:12px;background:var(--tile-light);opacity:.12;filter:blur(4px)}.illustrated-icon{width:38px;height:38px;position:relative;filter:drop-shadow(0 2px 3px #286bff30)}.ref-three{display:grid;grid-template-columns:1.18fr 1fr 1fr;gap:16px}.ref-three>.ref-panel{min-height:244px}.ref-distribution{display:flex;gap:24px;align-items:center;justify-content:center;min-height:165px}.ref-donut{width:155px;height:155px;border-radius:50%;display:grid;place-items:center;flex-shrink:0}.ref-donut>div{width:92px;height:92px;border-radius:50%;background:white;display:flex;flex-direction:column;align-items:center;justify-content:center}.ref-donut strong{font-size:21px}.ref-donut small{font-size:11px;color:#647084}.ref-distribution ul{list-style:none;padding:0;margin:0;flex:1;max-width:155px}.ref-distribution li{display:flex;align-items:center;gap:6px;padding:3px 0;font-size:11px;color:#647084}.ref-distribution li i{height:6px;width:6px;border-radius:50%;flex-shrink:0}.ref-distribution li b{margin-left:auto;font-weight:500}.ref-warning{display:flex;align-items:center;gap:10px;border:1px solid #edf1f7;padding:8px;margin-bottom:10px;color:#273346;min-height:54px}.ref-warning>span:nth-child(2){min-width:0;flex:1}.ref-warning strong{display:block;font-size:12px}.ref-warning small{display:block;font-size:10px;color:#647084}.ref-warning b{font-size:10px;font-weight:400;color:#aa5860}.ref-product-icon{width:44px;height:36px;display:grid;place-items:center;background:#f4f7fc;border-radius:4px;color:#7188af;font-size:17px}.ref-order-list>a{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#273346;border-bottom:1px solid #edf1f7;padding:9px 0;font-size:12px}.ref-order-list strong,.ref-order-list small{display:block}.ref-order-list small{font-size:10px;color:#647084;margin-top:3px}.ref-empty{font-size:12px;color:#647084;padding:24px 0;text-align:center}.ref-note{font-size:11px;line-height:1.65;color:#647084;margin:10px 0 0}.ref-bottom>.ref-panel{min-height:140px}.ref-bottom p{font-size:11px;line-height:1.7}.ref-label{padding:1px 4px;border:1px solid #b5cbf4;color:#376fa7;font-size:10px}.ref-label.purple{border-color:#dbc6f8;color:#9b62c6}.ref-briefs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.ref-briefs span{font-size:10px;color:#647084;display:block}.ref-briefs strong{font-size:16px;display:block;margin-top:8px}.ref-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.ref-quick a{display:grid;place-items:center;background:#f2f6ff;border-radius:5px;min-height:60px;font-size:11px;text-align:center}
@media(max-width:1150px) and (min-width:901px){.ref-home-top{grid-template-columns:1fr 225px}.ref-stat strong{font-size:18px}.ref-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ref-three{grid-template-columns:1fr 1fr}.ref-three>.ref-panel:last-child{grid-column:1/-1}.ref-distribution{gap:15px}}
@media(max-width:900px){body .shell,body.cf-view .shell{display:block}body .workspace{width:100%}body aside,body.cf-view aside{inset:64px auto 0 0;height:calc(100dvh - 64px);width:232px;transform:translateX(-100%);transition:transform .15s ease;z-index:60}body.erp-mobile-open aside{transform:translateX(0)}#erp-scrim:not([hidden]){position:fixed;inset:64px 0 0 232px;z-index:55;background:#12254255;border:0;border-radius:0}body header,body.cf-view header{padding:0 12px;gap:8px}#erp-menu{min-width:44px;min-height:44px}#erp-page-title{font-size:16px;white-space:normal;line-height:1.4}.erp-search{display:none}body .role-label{margin-left:auto;gap:4px;font-size:10px}body .role-label select{max-width:130px;min-width:80px;min-height:44px;font-size:11px}body main,body.cf-view main{padding:12px}body #erp-breadcrumb{padding:12px 12px 0;line-height:1.6}body .demo-banner{padding:6px 12px}body .page-head,body .cf-heading{flex-wrap:wrap;gap:12px;align-items:flex-start}body .page-head h1,body .cf-heading h1{font-size:21px}.page-head>*{min-width:0}body .metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}.card,.cf-panel,.context-panel{max-width:100%}body .split,body .finance-grid,body .info-grid{grid-template-columns:1fr!important}body .toolbar input{min-width:0;width:100%}body .toolbar,body .page-toolbar{flex-wrap:wrap}.toolbar-field{max-width:100%;min-width:0}.toolbar-field input{width:100%;min-width:0}body .erp-nav-parent{min-height:46px;font-size:14px}body #nav .erp-nav-children a,body #nav-settings .erp-nav-children a{min-height:44px;font-size:13px}body button,body .button-link,body input:not([type=checkbox]):not([type=radio]):not([type=range]),body select,body .cf-workspace button,body .cf-modal button,body button.small{min-height:44px}body input[type=checkbox],body input[type=radio]{min-height:20px;min-width:20px}body dialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px);padding:16px}body .cf-table table{min-width:680px}body .cf-table tr{display:table-row}body .cf-table td{display:table-cell}body .cf-table td:before{display:none}body .cf-table thead{display:table-header-group}body .cf-table th{display:table-cell}body .card{padding:14px}body .ref-home-top,body .ref-three{grid-template-columns:1fr}.ref-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ref-stat{border:1px solid #edf1f7;min-height:146px}.ref-stat:last-child{border:1px solid #edf1f7}.ref-stat strong{font-size:20px}.ref-module-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ref-module{height:82px;padding:8px;gap:5px}.ref-module strong{font-size:12px}.ref-module small{font-size:10px}.ref-module .tile{width:34px;height:38px}.illustrated-icon{width:30px;height:30px}.ref-panel{padding:12px}.ref-distribution{gap:20px}.ref-todos>a,.ref-todo-more>a{min-height:44px}.ref-quick a{min-height:60px}.ref-warning{min-height:66px}.ref-briefs strong{font-size:14px}body.erp-collapsed aside .brand>span,body.erp-collapsed .erp-nav-parent>span,body.erp-collapsed .erp-arrow,body.erp-collapsed .side-note{display:block!important}body.erp-collapsed .erp-nav-children:not([hidden]){display:block!important}body.erp-collapsed .erp-nav-parent{justify-content:flex-start;padding:10px 16px}.new-order-meta,.cost-meta{grid-template-columns:1fr!important}body footer{padding:12px}#server-logout{font-size:11px;padding:5px 7px}.ref-stat-foot{font-size:11px}}
@media(max-width:360px){body #role-mode-label{display:none}.ref-donut{width:132px;height:132px}.ref-donut>div{width:82px;height:82px}.ref-distribution{gap:12px}.role-label select{max-width:105px!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{body .shell,body.cf-view .shell{display:block}body aside,body header,#erp-breadcrumb,body .demo-banner,body footer,#erp-scrim{display:none!important}body .workspace{width:100%}body main{padding:0}.ref-module,.card{break-inside:avoid}}
/* Secondary information stays compact, while an expanded explanation remains readable. */
body .demo-banner:not([hidden]){display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;min-height:30px;padding-top:5px;padding-bottom:5px}body .demo-banner>strong{font-size:11px;font-weight:500}body .demo-banner details{margin:0}body .demo-banner summary{font-size:11px;padding:0}body .demo-banner details[open]{flex:1 1 100%;font-size:12px;line-height:1.7}body .export-toolbar{padding:10px 12px;border:1px solid #edf1f7;border-radius:5px;min-height:0}body .operation,body .workbench-grid .card,body .today-card,body .trial-grid>div,body .trial-flow>div{border-radius:5px}body .cost-total{background:#f1f6ff;border-radius:5px}body .cost-total strong{font-size:26px}body .cost-bar{background:#edf1f7}body .cost-bar i{background:#6d9df2}body .process-node.done .process-dot{background:#20bb88;border-color:#20bb88}body .process-node.running .process-dot{background:#286bff;border-color:#286bff}body .process-node.running>span:not(.process-dot){color:#286bff}body .process-node.blocked .process-dot{background:#cf4f53;border-color:#cf4f53}
@media(max-width:900px){body .demo-banner:not([hidden]){gap:10px}body .demo-banner summary{min-height:28px;padding:4px 0}body .export-toolbar{padding:10px}}
/* frontend-design refinement: each business page has its own content hierarchy. */
body .page-head .eyebrow{display:none}body .page-head{margin-bottom:20px}body .ref-context-compact{display:flex;align-items:center;gap:20px;padding:12px 16px;border:1px solid #e6edf7;border-left:3px solid #8bb5ff;border-radius:5px}body .ref-context-compact .context-kicker{font-size:11px}body .ref-context-compact strong{font-size:14px;line-height:1.6}body .ref-context-compact p{margin:3px 0 0;font-size:12px;color:#647084}body .ref-order-summary{padding:14px 18px}.ref-order-summary .scope-chips{gap:10px}.ref-order-summary .scope-chip{background:#f4f7fc;min-width:90px;text-align:center;padding:8px 12px;border:1px solid #edf1f7;font-size:12px}.ref-order-summary .scope-chip.is-attention{background:#fff7e9;border-color:#fff0d7;color:#966a25}body .ref-order-summary strong{font-size:18px}.ref-summary-description{max-width:50em}body #app[data-reference-page=orders] .order-filters{border-radius:5px;background:#fff;border:1px solid #edf1f7;padding:14px;margin-bottom:10px;gap:12px;align-items:flex-end}body .order-filters .export-actions{padding:0;gap:8px;border:0;background:transparent}body .order-filters .toolbar-actions{gap:8px;align-items:center;margin-left:auto;flex-wrap:wrap}body #app[data-reference-page=orders]>.mini-note{margin:8px 0 14px}body #app[data-reference-page=orders]>.card .section-head{padding-bottom:12px;border-bottom:1px solid #edf1f7;margin-bottom:0}body #app[data-reference-page=orders] table th{background:white;padding-top:14px;padding-bottom:14px}body #app[data-reference-page=orders] td{padding:16px 12px}.ref-production-panels{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);align-items:start;gap:16px}.ref-production-panels>.card{min-width:0;min-height:225px}.ref-production-panels .section-head{align-items:flex-start;gap:14px;flex-wrap:wrap;padding-bottom:14px;border-bottom:1px solid #edf1f7}.ref-production-panels .section-head>div{flex:1;min-width:160px}.ref-production-panels .section-head p{font-size:12px;color:#647084;line-height:1.7;margin:6px 0 0;max-width:43em}.ref-production-panels .ref-heading-action{white-space:normal;max-width:100%;align-self:flex-start}.ref-production-panels .empty{padding:24px 18px;font-size:12px;line-height:1.8;border:1px dashed #dce5f1;background:#fafcff;border-radius:5px;margin:16px 0 0}.ref-production-panels .operation{padding:14px;border:1px solid #e8edf5;margin:14px 0 0}.ref-production-panels h3{font-size:14px;margin:0}.ref-production-panels .mini-note{line-height:1.8}.ref-production-panels [data-load-ras]{font-size:11px;padding:5px 9px;margin-top:2px;min-height:30px;color:#647084}body #app[data-reference-page=production]>.export-toolbar{display:flex;align-items:flex-end;justify-content:space-between}body #app[data-reference-page=production]>.export-toolbar label{display:flex;align-items:center;gap:10px;font-size:12px}.ref-purchase-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:16px;align-items:start}.ref-purchase-main,.ref-purchase-side{min-width:0}.ref-purchase-layout.no-side{grid-template-columns:1fr}.ref-purchase-side .card{padding:16px}.ref-purchase-side .card>p{font-size:12px;color:#647084;line-height:1.75}.ref-purchase-side .empty{padding:16px;font-size:12px}.ref-purchase-main [data-focus-purchase]>.section-head{padding-bottom:14px;border-bottom:1px solid #edf1f7}.ref-purchase-main .info-grid{gap:0;grid-template-columns:repeat(4,minmax(0,1fr))!important;margin-bottom:14px}.ref-purchase-main .info-grid>div{border:0;border-radius:0;padding:8px 12px;border-right:1px solid #edf1f7;background:white;min-width:0}.ref-purchase-main .info-grid>div:last-child{border:0}.ref-purchase-main .info-grid strong{font-size:15px;line-height:1.7}.ref-purchase-main .info-grid span{font-size:11px}.ref-purchase-main .purchase-review{font-size:12px;line-height:1.7;color:#9a6b23}.ref-purchase-main .amount{text-align:right;font-variant-numeric:tabular-nums}.ref-purchase-main>.card>.actions{border-top:1px solid #edf1f7;padding-top:14px}.ref-secondary{border:1px solid #e8edf5;border-radius:5px;background:#f9fbff;margin:14px 0 0;padding:0 12px}.ref-secondary>summary{font-size:12px;color:#476a9f;padding:11px 0}.ref-secondary[open]{background:white}.ref-secondary .operation{padding:14px;margin:0 0 12px;border-color:#edf1f7;border-radius:5px}.ref-secondary .operation h3{font-size:14px;margin:0 0 8px}.ref-secondary .operation p{font-size:12px;line-height:1.7}.ref-secondary .purchase-rules{font-size:12px}.ref-secondary summary:hover{color:#286bff}body #app[data-reference-page=purchase]>.page-toolbar{margin-bottom:16px;align-items:end}body #app[data-reference-page=purchase]>.page-toolbar label{display:grid;gap:6px;font-size:12px}body #app[data-reference-page=purchase]>.page-toolbar input{width:100%;min-width:0}body #app[data-reference-page=purchase]>.mini-note{font-size:11px;margin:0 0 12px}
@media(max-width:1150px){.ref-production-panels{grid-template-columns:1fr}.ref-purchase-layout{grid-template-columns:minmax(0,1fr) 245px}.ref-purchase-main .info-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ref-purchase-main .info-grid>div:nth-child(2){border:0}}
@media(max-width:900px){body .ref-context-compact{flex-wrap:wrap;gap:10px;padding:12px}.ref-order-summary .scope-chips{width:100%}.ref-order-summary .scope-chip{flex:1}.ref-purchase-layout{grid-template-columns:1fr}.ref-purchase-side{display:grid;grid-template-columns:1fr;gap:0}.ref-purchase-main .info-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}body #app[data-reference-page=production]>.export-toolbar{gap:12px;align-items:flex-start;flex-wrap:wrap}body #app[data-reference-page=production]>.export-toolbar label{display:grid;gap:6px;width:100%;max-width:100%}body #app[data-reference-page=production]>.export-toolbar label input{width:100%}body #app[data-reference-page=purchase] .toolbar-field{min-width:0;width:100%;max-width:100%}body #app[data-reference-page=purchase] .toolbar-field label{min-width:0;max-width:100%}body #purchase-search{width:100%;min-width:0}body #erp-page-title{min-width:0;flex:1}body header .role-label{min-width:0;flex-shrink:0}.ref-production-panels .section-head>div{min-width:0;width:100%;flex:1 1 100%}.ref-production-panels .ref-heading-action{width:100%}.ref-production-panels [data-load-ras]{min-height:44px}.ref-production-panels .empty{padding:20px 14px}body #app[data-reference-page=orders] .order-filters{padding:12px}.ref-purchase-main [data-focus-purchase]>.section-head{align-items:flex-start;flex-wrap:wrap}.ref-purchase-main .info-grid strong{font-size:14px}.ref-purchase-main .info-grid>div{padding:8px}.ref-purchase-main .document-export-actions{width:100%}}
/* User correction: operational data first, explanations only when requested. */
.ref-page-help{position:relative;margin-left:4px;align-self:center;flex-shrink:0}.ref-page-help>summary{list-style:none;width:26px;height:26px;border:1px solid #dce5f1;border-radius:50%;display:grid;place-items:center;font-size:13px;color:#647084;padding:0;cursor:pointer;background:#fff}.ref-page-help>summary::-webkit-details-marker{display:none}.ref-page-help>summary:hover{color:#286bff;border-color:#8bb5ff}.ref-help-content{position:absolute;top:34px;right:0;width:360px;max-height:60vh;overflow:auto;background:#fff;border:1px solid #dfe7f2;border-radius:6px;box-shadow:0 10px 30px #14284418;z-index:30;padding:16px;color:#647084;font-size:12px;line-height:1.8}.ref-help-content p{margin:0 0 12px!important;font-size:12px!important;line-height:1.8!important}.ref-help-content p:last-child{margin-bottom:0!important}.ref-help-content strong{display:block;font-size:13px!important;color:#273346}.ref-help-content .context-kicker{display:none}.page-head:has(.ref-page-help){justify-content:flex-start}.page-head:has(.ref-page-help)>div:first-child{margin-right:auto}.cf-heading:has(.ref-page-help){justify-content:flex-start}.cf-heading:has(.ref-page-help)>div:first-child{margin-right:auto}body .ref-order-summary{min-height:58px;padding:12px 16px}body .ref-order-summary strong{font-size:16px}.ref-record-identity{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 9px;flex:1;min-width:0}.ref-record-identity h2{order:0;margin:0}.ref-record-identity>.eyebrow{order:1;margin:0;color:#647084;font-size:11px}.ref-record-identity>.subtle{order:2;flex:1 1 100%;font-size:11px;line-height:1.6}.ref-record-meta{font-size:11px;color:#647084;margin:10px 0}.ref-record-tools{display:flex;align-items:center;gap:12px;margin:8px 0 14px;flex-wrap:wrap}.ref-inline-info{position:relative;font-size:11px;line-height:1.7}.ref-inline-info>summary{font-size:11px;padding:4px 0;color:#647084}.ref-inline-info>p{max-width:28em;background:#fff8eb;border:1px solid #f4e3be;border-radius:4px;padding:10px;color:#8b6427}.ref-purchase-main .info-grid.ref-three-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}.ref-purchase-main .info-grid.ref-three-stats>div:last-child{border-right:0}.ref-purchase-main .info-grid.ref-three-stats>div:nth-child(2){border-right:1px solid #edf1f7}body #app[data-reference-page=purchase]>.page-toolbar{align-items:flex-end;gap:12px;padding:12px;border-radius:5px}.ref-purchase-main .card .table-wrap{border:1px solid #edf1f7;border-radius:5px}.ref-purchase-main .card .table-wrap td{font-size:15px}.ref-purchase-main .card>p:not(.ref-record-meta){font-size:12px}.ref-purchase-main [data-focus-purchase]>.section-head{margin-bottom:12px}.ref-production-panels>.card{min-height:180px}.ref-production-panels .section-head{align-items:center}.ref-production-panels .empty{margin-top:12px;padding:18px}.ref-secondary{margin-top:12px}.ref-purchase-layout.no-side .ref-purchase-main{max-width:100%}.ref-purchase-layout.no-side [data-focus-purchase]{padding:16px 18px}.ref-purchase-layout.no-side .info-grid{margin-bottom:8px}
@media(max-width:900px){.ref-page-help>summary{width:44px;height:44px}.ref-help-content{position:fixed;left:12px;right:12px;top:140px;width:auto;max-height:60vh}.ref-purchase-main .info-grid.ref-three-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}.ref-purchase-main .info-grid.ref-three-stats strong{font-size:12px}.ref-purchase-main .info-grid.ref-three-stats span{font-size:10px}.ref-purchase-main .info-grid.ref-three-stats>div{padding:7px 4px}.ref-record-meta{font-size:12px;line-height:1.7}.ref-record-identity>.subtle{font-size:12px}.ref-record-tools button{width:auto}.ref-inline-info>summary{min-height:44px;display:flex;align-items:center}.ref-production-panels .section-head{align-items:flex-start}.ref-purchase-layout.no-side [data-focus-purchase]{padding:14px}.ref-page-help{margin-left:0}.page-head:has(.ref-page-help)>button{margin-left:0}}
/* Compact colored elements follow the approved homepage rather than adding new artwork. */
.ref-color-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#fff;border:1px solid #edf1f7;border-radius:5px;margin-bottom:16px;padding:15px 0}.ref-color-stat{display:flex;align-items:center;gap:14px;padding:4px 20px;border-right:1px solid #edf1f7;min-width:0}.ref-color-stat:last-child{border:0}.ref-color-stat>div{min-width:0}.ref-color-stat>div>span{display:block;font-size:12px;color:#647084;margin-bottom:4px}.ref-color-stat strong{display:block;font-size:23px;line-height:1.4;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.ref-graphic{width:40px;height:40px;flex-shrink:0;border-radius:9px;display:grid;place-items:center;background:#edf4ff;color:#286bff}.ref-graphic svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 2px 3px #286bff24)}.ref-graphic.green{color:#20ae83;background:#eafaF3}.ref-graphic.orange{color:#e7a340;background:#fff5e6}.ref-graphic.purple{color:#9754e7;background:#f6efff}.ref-arrival-progress{display:flex;align-items:center;gap:10px;max-width:100%;padding:0 12px;margin:4px 0 14px;color:#647084;font-size:11px}.ref-arrival-track{flex:1;height:5px;border-radius:5px;background:#edf2fb;overflow:hidden}.ref-arrival-track i{display:block;height:100%;background:linear-gradient(90deg,#a9c8ff,#286bff);border-radius:5px}.ref-arrival-progress b{font-weight:500;font-variant-numeric:tabular-nums;color:#4374bd}.ref-purchase-object{width:36px;height:36px;border-radius:7px}.ref-purchase-main [data-focus-purchase]>.section-head{gap:12px;align-items:center}.ref-purchase-main .info-grid>div{padding-top:5px;padding-bottom:5px}.ref-purchase-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #edf1f7;margin-top:14px;padding-top:12px}.ref-purchase-footer .actions{margin:0!important;justify-content:flex-end}.ref-purchase-footer .ref-record-meta{margin:0;font-size:11px}.ref-purchase-footer .ref-record-tools{margin:5px 0 0;gap:10px}.ref-purchase-footer .ref-record-tools button{min-height:28px;padding:4px 8px;font-size:11px}.ref-purchase-footer .ref-inline-info>summary{padding:3px 0}.ref-purchase-main .card>p:has(+ .ref-secondary){margin:8px 0;font-size:12px}.ref-purchase-main .card>.ref-secondary{border:0;border-radius:0;border-top:1px solid #edf1f7;background:white;padding:0;margin-top:10px}.ref-secondary>summary{font-size:11px;color:#647084}.ref-page-help>summary:focus-visible{outline:2px solid #5289ff;outline-offset:3px}
@media(max-width:900px){.ref-color-strip{gap:0;padding:12px 0}.ref-color-stat{padding:3px 10px;gap:8px;flex-direction:column;align-items:flex-start}.ref-color-stat .ref-graphic{width:30px;height:30px;border-radius:7px}.ref-color-stat .ref-graphic svg{width:19px;height:19px}.ref-color-stat>div>span{font-size:11px;margin:0 0 4px}.ref-color-stat strong{font-size:17px;line-height:1.45}.ref-purchase-footer{flex-wrap:wrap;gap:10px}.ref-purchase-footer .actions{width:100%;justify-content:flex-start}.ref-purchase-footer .ref-record-tools button{min-height:44px;font-size:12px}.ref-purchase-footer .ref-record-meta{font-size:11px}.ref-purchase-footer .ref-inline-info>summary{min-height:44px}.ref-arrival-progress{padding:0 4px}.ref-purchase-main [data-focus-purchase]>.section-head .ref-purchase-object{width:30px;height:30px}.ref-purchase-main [data-focus-purchase]>.section-head .ref-record-identity{flex:1;min-width:120px}.ref-purchase-main [data-focus-purchase]>.section-head .document-export-actions{width:100%}}

.ref-panel-title{display:flex;align-items:center;gap:10px}.ref-panel-title .ref-graphic{flex:0 0 34px;width:34px;height:34px}.ref-panel-title .ref-graphic svg{width:20px;height:20px}

.ref-purchase-tabs{display:flex;gap:6px;margin:0 0 12px;border-bottom:1px solid #e7edf5;padding-bottom:8px}.ref-purchase-tabs button{background:transparent;border:0;color:#657388;padding:8px 18px;border-radius:6px}.ref-purchase-tabs button[aria-pressed=true]{background:#eaf1ff;color:#2865ef;font-weight:600}.ref-purchase-browser{background:white;border:1px solid #e7edf5;border-radius:7px;overflow:hidden}.ref-list-heading{padding:16px 20px;font-weight:600;border-bottom:1px solid #edf1f6}.ref-purchase-row{width:100%;display:grid;grid-template-columns:36px minmax(240px,2fr) minmax(150px,1fr) 130px 90px;gap:16px;align-items:center;text-align:left;background:#fff;border:0;border-bottom:1px solid #edf1f6;border-radius:0;padding:20px}.ref-purchase-row:hover{background:#f7faff}.ref-purchase-row:last-child{border-bottom:0}.ref-list-identity{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}.ref-list-identity strong{font-size:14px;color:#252e3e}.ref-list-identity span{font-size:11px;color:#7b8797}.ref-list-identity small{flex-basis:100%;color:#728098;font-size:12px;line-height:1.5}.ref-list-progress .ref-arrival-progress{margin:0}.ref-list-arrival{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#8490a0}.ref-list-arrival strong{color:#46546a;font-size:12px}.ref-list-open{color:#2f68ea;font-size:12px}.ref-purchase-back{margin-bottom:12px}.ref-purchase-main>[hidden],.ref-purchase-browser[hidden],.ref-purchase-back[hidden],.page-toolbar .toolbar-field[hidden]{display:none!important}
body #modal input[type=checkbox],body #modal input[type=radio]{width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;padding:0;display:inline-block;vertical-align:middle;flex-shrink:0;accent-color:#3467ef}body #receipt-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}body #receipt-form>label:first-child,body #receipt-form>label:nth-child(2),body #receipt-form>label:has(input[type=checkbox]),body #receipt-form>.form-error{grid-column:1/-1}body #receipt-form>label:has(input[type=checkbox]){display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.6}body #receipt-form>button{width:auto;min-height:40px;margin-top:4px}body #receipt-form>button[type=submit]{background:#3467ef;color:#fff;border-color:#3467ef}
@media(max-width:900px){.ref-purchase-row{grid-template-columns:30px minmax(0,1fr) auto;gap:10px;padding:16px 12px}.ref-purchase-row>.ref-graphic{width:30px;height:30px}.ref-list-progress{grid-column:2/4}.ref-list-arrival{grid-column:2}.ref-list-open{grid-column:3;font-size:11px}.ref-purchase-tabs button{padding:8px 12px}.ref-list-identity small{overflow-wrap:anywhere}body #receipt-form{grid-template-columns:1fr}body #receipt-form>label{grid-column:1/-1}body #receipt-form>button{width:100%}}

body #modal:has(#receipt-form){width:640px;max-width:calc(100vw - 24px)}body #receipt-form>label:has(input[type=checkbox]){min-height:36px}.ref-purchase-row{min-height:84px}@media(max-width:900px){body #receipt-form>label:has(input[type=checkbox]){min-height:44px}.ref-purchase-row{min-height:120px}}

@media(max-width:900px){.ref-purchase-row{padding:12px;row-gap:8px}.ref-list-arrival{flex-direction:row;align-items:center;gap:6px}}

.ref-order-object{display:flex;align-items:center;gap:12px}.ref-order-object>.ref-graphic{width:36px;height:36px;flex-shrink:0}.ref-order-object>div{min-width:0}.ref-order-flags{display:flex;align-items:center;gap:6px;margin-top:5px;flex-wrap:wrap}.ref-order-flags>small{margin:0!important;font-size:11px}.ref-order-flags>.pill{font-size:11px}.ref-order-table .progress{height:5px}.ref-order-table .progress span{background:#286bff}.ref-list-count{font-size:12px;color:#647084;margin:0!important}.work-list>.section-head{align-items:center!important;justify-content:space-between}.ref-object-heading>div>p{font-size:13px!important;margin-top:6px!important}.ref-single-task-panel{display:block}.ref-single-task-panel>.card{min-height:0}.ref-task-browser{border:1px solid #edf1f7;border-radius:5px;overflow:hidden}.ref-task-row{display:flex;align-items:center;gap:16px;width:100%;height:84px;padding:16px 20px;border:0;border-bottom:1px solid #edf1f7;border-radius:0;background:#fff;text-align:left}.ref-task-row:last-child{border-bottom:0}.ref-task-row>div{flex:1;min-width:0}.ref-task-row strong{display:block;font-size:13px;line-height:1.5}.ref-task-row small{display:block;margin-top:5px;color:#647084;font-size:12px;line-height:1.5}.ref-task-row .ref-graphic{width:36px;height:36px;flex-shrink:0}.ref-task-back{margin:0 0 12px}.ref-task-browser[hidden],.ref-task-back[hidden],.operation[hidden]{display:none!important}body .toolbar-check input[type=checkbox]{width:18px;min-width:18px;height:18px;min-height:18px;padding:0;accent-color:#286bff}body .toolbar-check{min-height:36px;display:flex;align-items:center;gap:8px}body .ref-single-task-panel .empty{max-width:none;padding:20px;margin-top:0}body .ref-single-task-panel .ref-secondary{margin-top:16px;padding:8px 12px}.ref-order-table tbody td{height:84px;box-sizing:border-box}.ref-order-table thead th{padding:12px!important}
@media(max-width:900px){.ref-order-object>.ref-graphic{width:30px;height:30px}.ref-order-table .ref-order-object{gap:8px}.ref-order-flags{justify-content:flex-end;gap:5px}.ref-order-flags>small{font-size:12px}.ref-task-row{height:auto;min-height:120px;padding:16px 12px;gap:10px}.ref-task-row strong{font-size:13px;overflow-wrap:anywhere}.ref-task-row small{font-size:12px}.ref-task-row .ref-graphic{width:30px;height:30px}.ref-task-row>.ref-list-open{flex-shrink:0;font-size:12px}.ref-task-row>div{flex:1}body .toolbar-check{min-height:44px}.ref-order-table tbody td{height:auto}.ref-order-table tbody td:last-child{padding:8px 12px!important}.ref-order-table tbody td:last-child a{min-height:44px;display:inline-flex;align-items:center}.ref-order-table tbody tr{padding-bottom:4px}.ref-list-count{font-size:12px!important}}

body .ref-linked-object{padding:10px 16px;gap:12px;border-left-width:3px;min-height:48px}body .ref-linked-object strong{font-size:13px}body .ref-linked-object p{margin-top:3px;font-size:12px}body .ref-linked-object a{font-size:12px;display:inline-flex;align-items:center;min-height:36px}@media(max-width:900px){body .ref-linked-object a{min-height:44px}}

.ref-order-object a.name{display:inline-flex;flex-direction:column;justify-content:center;min-height:44px}.ref-order-object a.name small{display:block;color:#647084;font-weight:400;margin-top:3px}.ref-order-table .return-followup{white-space:normal}
@media(max-width:900px){body .ref-order-table,body .ref-order-table tbody{display:block;width:100%;min-width:0}body .ref-order-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}body .ref-order-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 12px;padding:12px;border-bottom:1px solid #edf1f7}body #app[data-reference-page=orders] .ref-order-table td{display:block;padding:0!important;border:0;font-size:12px;line-height:1.5;min-width:0}body .ref-order-table td:before{display:none}body .ref-order-table td:first-child{grid-column:1/-1}body .ref-order-table td:nth-child(3){text-align:right}body .ref-order-table td:last-child{display:flex;align-items:center;justify-content:flex-end;padding:0!important}body .ref-order-table td:last-child a{min-height:44px;min-width:44px;font-size:12px}body .ref-order-table td small{font-size:12px;line-height:1.5;margin-top:4px}body .ref-order-table .ref-order-flags small{font-size:11px}body .ref-order-table .progress{width:100%;margin-top:12px;max-width:none}body .ref-order-table .ref-order-object a.name{font-size:13px}.ref-order-table .return-followup{grid-column:1/-1;font-size:12px}}

@media(max-width:900px){body .ref-order-table tbody tr{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr)}body .ref-order-table .ref-order-flags{gap:4px}body .ref-order-table .ref-order-flags .pill{padding:3px 5px}}

.ref-four-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.ref-flow-browser{background:white;border:1px solid #edf1f7;border-radius:5px;overflow:hidden;margin-bottom:16px}.ref-flow-row{display:grid;grid-template-columns:36px minmax(180px,1.2fr) minmax(340px,1.7fr) 90px 70px;align-items:center;gap:16px;width:100%;height:84px;padding:12px 20px;text-align:left;border:0;border-bottom:1px solid #edf1f7;border-radius:0;background:#fff}.ref-flow-row:last-child{border-bottom:0}.ref-flow-row>.ref-graphic{width:36px;height:36px}.ref-flow-identity{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 8px;min-width:0}.ref-flow-identity strong{font-size:13px;font-weight:600}.ref-flow-identity>span{color:#647084;font-size:11px}.ref-flow-identity small{flex-basis:100%;font-size:12px;color:#647084;line-height:1.5}.ref-flow-quantities{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.ref-flow-quantities>div{display:flex;flex-direction:column;gap:4px}.ref-flow-quantities span{font-size:11px;color:#647084}.ref-flow-quantities b{font-size:15px;font-weight:600;line-height:1.5;color:#242b38}.ref-flow-route{justify-self:start;white-space:nowrap}.ref-flow-back{margin:0 0 12px}.ref-flow-empty{padding:24px;color:#647084;font-size:13px}.ref-flow-detail>.section-head{border-bottom:1px solid #edf1f7;padding-bottom:12px}.ref-flow-detail .stat-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.ref-flow-detail>.actions{margin-top:12px!important}.ref-flow-detail .stat-row b{font-size:23px}.ref-flow-detail .stat-row p{font-size:12px}.ref-flow-product-view[hidden],.ref-flow-detail[hidden],.ref-flow-browser[hidden],.ref-flow-row[hidden],.ref-flow-back[hidden],.ref-shipping-tools[hidden],.ref-flow-tabs[hidden]{display:none!important}.ref-shipping-tools>h2{margin-bottom:12px}.ref-shipping-tools>.ref-secondary{margin-top:16px}
@media(max-width:1150px) and (min-width:901px){.ref-flow-row{grid-template-columns:30px minmax(140px,1fr) minmax(270px,1.5fr) 60px;gap:12px;padding:12px}.ref-flow-route{display:none}.ref-flow-row>.ref-graphic{width:30px;height:30px}}
@media(max-width:900px){.ref-four-stats{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:14px}.ref-four-stats .ref-color-stat{flex-direction:row;align-items:center;gap:10px}.ref-flow-tabs{flex-wrap:wrap;gap:4px}.ref-flow-tabs button{padding:8px 10px;font-size:12px}.ref-flow-row{grid-template-columns:30px minmax(0,1fr) 64px;gap:8px 10px;height:auto;min-height:152px;padding:12px}.ref-flow-row>.ref-graphic{width:30px;height:30px}.ref-flow-identity{grid-column:2/4;row-gap:3px}.ref-flow-identity strong{font-size:13px}.ref-flow-identity small{font-size:12px;overflow-wrap:anywhere}.ref-flow-quantities{grid-column:1/-1;gap:5px}.ref-flow-quantities span{font-size:11px}.ref-flow-quantities b{font-size:14px}.ref-flow-route{grid-column:1/3;min-height:22px;display:inline-flex;align-items:center}.ref-flow-row>.ref-list-open{grid-column:3;min-height:22px;display:flex;align-items:center;justify-content:flex-end;font-size:12px}.ref-flow-detail .stat-row{gap:6px}.ref-flow-detail .stat-row p{font-size:11px}.ref-flow-detail .stat-row b{font-size:19px}.ref-shipping-tools>button{min-height:44px}}

.ref-flow-export{position:relative;margin-left:auto}.ref-flow-export>summary{list-style:none;cursor:pointer;border:1px solid #e8edf5;border-radius:5px;padding:8px 13px;min-height:36px;font-size:13px}.ref-flow-export>summary:after{content:'⌄';margin-left:10px;color:#647084}.ref-flow-export>.export-actions{position:absolute;right:0;top:44px;display:flex;flex-direction:column;align-items:stretch;padding:8px!important;min-width:180px;background:white;border:1px solid #e8edf5;border-radius:5px;z-index:30;box-shadow:0 8px 24px #172c4b15}.ref-flow-export:not([open])>.export-actions{display:none!important}.ref-owner-chip{white-space:normal;line-height:1.5}.ref-flow-export>summary:focus-visible{outline:2px solid #5289ff;outline-offset:3px}@media(max-width:900px){.ref-flow-export>summary{min-height:44px;display:flex;align-items:center}.ref-flow-export>.export-actions{top:48px}.ref-owner-chip{max-width:100%;font-size:12px}}

body #modal:has(#shipping-document-form){width:640px;max-width:calc(100vw - 24px)}body #shipping-document-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}body #shipping-document-form>label{margin:0;min-width:0}body #shipping-document-form>label:first-child,body #shipping-document-form>#package-rows,body #shipping-document-form>#add-package,body #shipping-document-form>p[role=alert]{grid-column:1/-1}body #shipping-document-form>#add-package{justify-self:start}body #shipping-document-form>button{margin:0;min-height:40px}body #shipping-document-form>button[type=submit]{background:#286bff;color:white;border-color:#286bff}body #shipping-document-form [data-package-row]{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:12px;border:1px solid #e8edf5;margin-bottom:12px}body #shipping-document-form [data-package-row]>label{min-width:0;font-size:12px}body #shipping-document-form [data-package-row]>button{grid-column:1/-1;justify-self:start}
@media(max-width:900px){body #shipping-document-form{grid-template-columns:1fr}body #shipping-document-form>label,body #shipping-document-form>button{grid-column:1/-1}body #shipping-document-form [data-package-row]{grid-template-columns:repeat(2,minmax(0,1fr))}body #shipping-document-form>button{min-height:44px}}

@media(max-width:900px){body #shipping-document-form [data-package-row]{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
body #shipping-document-form [data-package-row] input{width:100%;min-width:0;max-width:100%}

/* Inventory lists: 84px desktop; source rows retained as one selected detail. */
.ref-stock-browser{background:#fff;border:1px solid #edf1f7;border-radius:5px;overflow:hidden;margin-bottom:16px}.ref-stock-row{display:grid;grid-template-columns:36px minmax(180px,1.2fr) minmax(360px,1.5fr) 82px;gap:16px;align-items:center;width:100%;height:84px;padding:12px 20px;border:0;border-bottom:1px solid #edf1f7;border-radius:0;text-align:left;background:white}.ref-stock-row:last-child{border-bottom:0}.ref-stock-row>.ref-graphic{width:36px;height:36px}.ref-stock-quantities{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.ref-stock-quantities>div{display:flex;flex-direction:column;gap:4px;min-width:0}.ref-stock-quantities span{font-size:11px;color:#647084}.ref-stock-quantities b{font-size:15px;font-weight:600;overflow-wrap:anywhere}.ref-stock-browser[hidden],.ref-stock-row[hidden],.ref-stock-detail[hidden],.ref-stock-detail-table tr[hidden]{display:none!important}body .ref-stock-detail-table{display:block;width:100%;min-width:0}.ref-stock-detail-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}body .ref-stock-detail-table tbody{display:block;width:100%}body .ref-stock-detail-table tbody tr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}body .ref-stock-detail-table td{display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid #edf1f7;border-radius:5px;min-width:0;font-size:23px;overflow-wrap:anywhere}body .ref-stock-detail-table td:first-child{grid-column:1/-1;font-size:13px;border:0;padding:0 0 12px}.ref-stock-cell-label{font-size:12px;color:#647084}.ref-stock-unit{font-size:12px;color:#647084}body .ref-stock-detail-table td .actions{flex-wrap:wrap;gap:8px}body .ref-stock-detail-table td:has([data-material-action]){grid-column:1/-1;font-size:13px}body .ref-stock-detail-table td:has(.ref-stock-cell-label):not(:has(.ref-stock-unit)){font-size:15px}.ref-stock-history>summary{padding:12px 0;min-height:44px;cursor:pointer;font-size:13px}.ref-stock-history>.card{margin-top:12px}body #modal:has(#material-form){width:640px;max-width:calc(100vw - 24px)}body #material-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}body #material-form>label{margin:0;min-width:0}body #material-form>label:last-of-type,body #material-form>.form-error,body #material-form>.actions{grid-column:1/-1}body #material-form input,body #material-form select{width:100%;min-width:0}body #material-form>.actions{justify-content:flex-end;gap:12px;margin:0}
@media(max-width:1150px) and (min-width:901px){.ref-stock-row{grid-template-columns:30px minmax(140px,1fr) minmax(270px,1.5fr) 70px;gap:12px;padding:12px}}
@media(max-width:900px){.ref-stock-row{height:auto;min-height:140px;grid-template-columns:30px minmax(0,1fr) 64px;gap:10px;padding:12px}.ref-stock-row>.ref-graphic{width:30px;height:30px}.ref-stock-row>.ref-flow-identity{grid-column:2/4}.ref-stock-row .ref-flow-identity small{overflow-wrap:anywhere}.ref-stock-quantities{grid-column:1/3;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.ref-stock-quantities b{font-size:14px}.ref-stock-row>.ref-list-open{grid-column:3;font-size:12px}body .ref-stock-detail-table tbody tr{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body .ref-stock-detail-table td{font-size:20px;padding:10px}body .ref-stock-detail-table td:first-child{grid-column:1/-1}body .ref-stock-detail-table td .actions button{min-height:44px}body #material-form{grid-template-columns:1fr}body #material-form>.actions{display:grid;grid-template-columns:1fr 1fr}body #material-form>.actions button{min-height:44px}}
.ref-material-stock-row .ref-stock-quantities{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:900px){.ref-material-stock-row .ref-stock-quantities{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Cost: original horizontal BOM editor; compact list before one original detail. */
.ref-cost-row{display:grid;grid-template-columns:36px minmax(180px,1.3fr) minmax(150px,.75fr) minmax(170px,.9fr) 82px;align-items:center;gap:16px;width:100%;height:84px;padding:12px 20px;background:white;border:0;border-bottom:1px solid #edf1f7;border-radius:0;text-align:left}.ref-cost-row:last-of-type{border-bottom:0}.ref-cost-amount,.ref-cost-state{display:flex;flex-direction:column;gap:5px;min-width:0}.ref-cost-amount span,.ref-cost-state small{font-size:12px;color:#647084}.ref-cost-amount b{font-size:17px;font-weight:600;font-variant-numeric:tabular-nums}.ref-cost-state .pill{align-self:flex-start}.ref-cost-row[hidden],.ref-cost-detail[hidden],.ref-stock-browser>.ref-flow-empty[hidden],.ref-cost-editor [data-cost-new][hidden]{display:none!important}body .ref-cost-editor .cost-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}body .ref-cost-editor .cost-meta label{min-width:0;margin:0}body .ref-cost-editor .cost-meta input,body .ref-cost-editor .cost-meta select{width:100%;min-width:0}body .ref-cost-editor .cost-meta{margin-bottom:16px}body .ref-cost-editor .scope-chip{display:inline-block;margin-bottom:16px}body .ref-cost-editor .cost-sheet-scroll{margin:0 0 16px}body .ref-cost-editor .cost-sheet{min-width:1100px}body .ref-cost-editor .cost-sheet input,body .ref-cost-editor .cost-sheet select{min-height:36px}body .ref-cost-detail .cost-total,body .ref-cost-editor .cost-total{background:#f5f8ff;border:1px solid #e8edf5;border-radius:5px;gap:16px;padding:16px}body .ref-cost-detail .cost-total strong,body .ref-cost-editor .cost-total strong{font-size:23px}body .ref-cost-detail .cost-total span,body .ref-cost-editor .cost-total span{font-size:12px;color:#647084}body .ref-cost-detail>.table-wrap{margin:16px 0}body .ref-cost-detail .cost-breakdown{margin-top:16px}body .ref-cost-detail>.section-head .actions{gap:8px;flex-wrap:wrap}body .ref-cost-detail details>summary{min-height:36px;cursor:pointer;padding:8px 0}
@media(max-width:1150px) and (min-width:901px){.ref-cost-row{grid-template-columns:30px minmax(140px,1fr) 130px 150px 70px;gap:12px;padding:12px}}
@media(max-width:900px){.ref-cost-row{grid-template-columns:30px minmax(0,1fr) 64px;gap:10px;padding:12px;height:auto;min-height:152px}.ref-cost-row>.ref-graphic{width:30px;height:30px}.ref-cost-row>.ref-flow-identity{grid-column:2/4}.ref-cost-row .ref-flow-identity small{overflow-wrap:anywhere}.ref-cost-amount{grid-column:1/3}.ref-cost-state{grid-column:1/3;grid-row:3}.ref-cost-state small{font-size:11px}.ref-cost-row>.ref-list-open{grid-column:3;grid-row:3;font-size:12px}body .ref-cost-editor .cost-meta{grid-template-columns:1fr}body .ref-cost-editor .cost-sheet input,body .ref-cost-editor .cost-sheet select,body .ref-cost-editor .cost-sheet button{min-height:44px}body .ref-cost-editor .section-head,body .ref-cost-detail>.section-head{align-items:flex-start;flex-wrap:wrap}body .ref-cost-detail>.section-head .actions button{min-height:44px}body .ref-cost-detail details>summary{min-height:44px}body .ref-cost-detail .cost-total,body .ref-cost-editor .cost-total{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}body .ref-cost-detail .cost-total>div:first-child,body .ref-cost-editor .cost-total>div:first-child{grid-column:1/-1}body .ref-cost-detail .cost-total strong,body .ref-cost-editor .cost-total strong{font-size:20px}body .ref-cost-detail>.table-wrap>table{min-width:700px}}
@media(max-width:900px){.ref-cost-row{gap:8px 10px}.ref-cost-row .ref-cost-amount,.ref-cost-row .ref-cost-state{flex-direction:row;flex-wrap:wrap;align-items:center}.ref-cost-row .ref-cost-state .pill{align-self:auto}}

.ref-supplier-search{display:flex;align-items:center;gap:12px;margin:0 0 16px;font-size:12px;color:#647084}.ref-supplier-search input{width:320px;min-width:0}.ref-supplier-row{display:grid;grid-template-columns:36px minmax(180px,1.3fr) minmax(180px,1fr) 130px 82px;align-items:center;gap:16px;width:100%;height:84px;padding:12px 20px;background:white;border:0;border-bottom:1px solid #edf1f7;border-radius:0;text-align:left}.ref-supplier-row:last-of-type{border-bottom:0}.ref-supplier-terms,.ref-supplier-meta{display:flex;flex-direction:column;gap:5px;min-width:0}.ref-supplier-terms span,.ref-supplier-meta small{font-size:12px;color:#647084}.ref-supplier-terms b{font-size:13px;font-weight:500}.ref-supplier-meta .pill{align-self:flex-start}.ref-supplier-row[hidden],.ref-supplier-detail[hidden]{display:none!important}body .ref-supplier-detail .info-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}body .ref-supplier-detail .info-grid strong{font-size:15px;overflow-wrap:anywhere}body .ref-supplier-detail>.section-head{padding-bottom:12px;border-bottom:1px solid #edf1f7}body .ref-supplier-detail details>summary{cursor:pointer;min-height:36px;padding:8px 0}body #modal:has(#supplier-form){width:640px;max-width:calc(100vw - 24px)}body #supplier-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}body #supplier-form>label{margin:0;min-width:0}body #supplier-form>p,body #supplier-form>label:has(textarea),body #supplier-form>.form-error,body #supplier-form>.actions{grid-column:1/-1}body #supplier-form input,body #supplier-form select,body #supplier-form textarea{width:100%;min-width:0}body #supplier-form>.actions{justify-content:flex-end;gap:12px;margin:0}body #supplier-form>[hidden]{display:none!important}
@media(max-width:1150px) and (min-width:901px){.ref-supplier-row{grid-template-columns:30px minmax(140px,1fr) minmax(140px,1fr) 110px 70px;gap:12px;padding:12px}}
@media(max-width:900px){.ref-supplier-search{display:grid;gap:6px}.ref-supplier-search input{width:100%}.ref-supplier-row{grid-template-columns:30px minmax(0,1fr) 64px;gap:8px 10px;height:auto;min-height:152px;padding:12px}.ref-supplier-row>.ref-graphic{width:30px;height:30px}.ref-supplier-row>.ref-flow-identity{grid-column:2/4}.ref-supplier-terms{grid-column:1/3;flex-direction:row;flex-wrap:wrap;align-items:center}.ref-supplier-meta{grid-column:1/3;grid-row:3;flex-direction:row;flex-wrap:wrap;align-items:center}.ref-supplier-meta .pill{align-self:auto}.ref-supplier-row>.ref-list-open{grid-column:3;grid-row:3;font-size:12px}body .ref-supplier-detail .info-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body .ref-supplier-detail details>summary{min-height:44px}body #supplier-form{grid-template-columns:1fr}body #supplier-form>.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}body #supplier-form>.actions button{min-height:44px}}
.export-toolbar>.ref-supplier-search{margin:0}@media(max-width:900px){.export-toolbar>.ref-supplier-search{width:100%}.export-toolbar:has(.ref-supplier-search){justify-content:space-between}}

body .ref-finance-shell{gap:16px}.ref-finance-shell>.finance-intro{padding:0;margin:0}body .ref-finance-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}body .ref-finance-metrics>section{display:flex;align-items:flex-start;gap:12px;min-height:0;padding:16px;background:#fff;border:1px solid #edf1f7;border-radius:5px;min-width:0}.ref-finance-metrics>section>div{min-width:0}.ref-finance-metrics .ref-graphic{flex-shrink:0;width:40px;height:40px}body .ref-finance-metrics strong{font-size:23px;min-height:0;margin:8px 0 4px;letter-spacing:0;overflow-wrap:anywhere}body .ref-finance-metrics small{font-size:11px;line-height:1.5}.ref-finance-pane[hidden],.ref-finance-detail[hidden]{display:none!important}.ref-finance-shell .finance-pair{border-color:#edf1f7;border-radius:5px}.ref-finance-shell .finance-pair>div{padding:16px}.ref-finance-shell .finance-pair .amount-value{font-size:23px}.ref-finance-shell .finance-pair .amount-state{font-size:12px}.ref-finance-row{display:grid;grid-template-columns:36px minmax(170px,1fr) minmax(370px,1.7fr) 140px 82px;gap:16px;align-items:center;width:100%;height:84px;padding:12px 20px;background:white;border:0;border-bottom:1px solid #edf1f7;border-radius:0;text-align:left}.ref-finance-row:last-of-type{border-bottom:0}.ref-finance-quantities{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ref-finance-quantities>div{display:flex;flex-direction:column;gap:5px;min-width:0}.ref-finance-quantities span{font-size:11px;color:#647084}.ref-finance-quantities b{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.ref-finance-row-status>td{display:block;padding:0;border:0}.ref-finance-detail .finance-table{margin:16px 0}.ref-finance-detail>.mini-note{font-size:12px;color:#647084;line-height:1.6}body .ref-finance-detail .ref-stock-detail-table{min-width:0}.ref-finance-row[hidden]{display:none!important}
@media(max-width:1150px) and (min-width:901px){.ref-finance-row{grid-template-columns:30px minmax(130px,1fr) minmax(270px,1.5fr) 110px 70px;gap:12px;padding:12px}}
@media(max-width:900px){body .ref-finance-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body .ref-finance-metrics>section{display:block;padding:14px}body .ref-finance-metrics strong{font-size:19px}.ref-finance-metrics .ref-graphic{width:30px;height:30px;margin-bottom:8px}.ref-finance-row{grid-template-columns:30px minmax(0,1fr) 64px;gap:8px 10px;min-height:152px;height:auto;padding:12px}.ref-finance-row>.ref-graphic{width:30px;height:30px}.ref-finance-row>.ref-flow-identity{grid-column:2/4}.ref-finance-row .ref-flow-identity small{overflow-wrap:anywhere}.ref-finance-quantities{grid-column:1/-1;gap:6px}.ref-finance-quantities b{font-size:13px}.ref-finance-row-status{grid-column:1/3}.ref-finance-row>.ref-list-open{grid-column:3;font-size:12px}.ref-finance-shell .finance-pair{grid-template-columns:repeat(2,minmax(0,1fr))}.ref-finance-shell .finance-pair>div{padding:14px}.ref-finance-shell .finance-pair .amount-value{font-size:19px}.ref-finance-detail>.section-head{flex-wrap:wrap}}
/* Customer finance: original currency fields and actions, measured list / detail sizes. */
body .ref-customer-workspace{min-width:0;font-size:13px}
body .ref-customer-workspace .cf-heading{margin-bottom:16px}
body .ref-customer-workspace .cf-tabs{border:0;gap:8px;background:transparent;margin-bottom:16px}
body .ref-customer-workspace .cf-tabs a{border:1px solid #e8edf5;border-radius:5px;background:#fff;padding:8px 13px;min-height:36px;font-size:13px}
body .ref-customer-workspace .cf-tabs a[aria-current]{background:#edf4ff;border-color:#9ebeff;color:#286bff}
body .ref-customer-workspace .cf-summary{border:0;background:transparent;margin-bottom:16px}
body .ref-customer-workspace .cf-summary-row{gap:12px;border:0;margin-bottom:12px}
body .ref-customer-workspace .cf-summary-row>div{display:flex;gap:12px;align-items:flex-start;border:1px solid #edf1f7;border-radius:5px;background:#fff;padding:16px;min-width:0}
body .ref-customer-workspace .cf-summary-row>div>div{min-width:0}
body .ref-customer-workspace .cf-summary-row span:not(.ref-graphic),body .ref-customer-workspace .cf-summary-row small{font-size:12px;color:#647084;line-height:1.5}
body .ref-customer-workspace .cf-summary-row strong{font-size:23px;margin:6px 0;line-height:1.4}
body .ref-customer-workspace .cf-scope-note{padding:8px 0;font-size:12px;line-height:1.65;color:#647084}
body .ref-customer-workspace .cf-query{border-color:#edf1f7;border-radius:5px;padding:14px;gap:12px}
body .ref-customer-workspace .cf-query :is(input,select){min-height:36px;padding:7px 10px}
body .ref-customer-workspace .cf-query .cf-clear{min-height:36px;padding:7px 12px}
body .ref-customer-workspace .cf-panel[hidden]{display:none!important}
body .ref-customer-workspace .cf-panel-title{padding:14px 18px}
body .ref-customer-workspace .cf-panel-title h2{margin:0}
body .ref-customer-row{display:grid;grid-template-columns:36px minmax(160px,1fr) minmax(280px,1.8fr) minmax(100px,.8fr) auto;gap:16px;align-items:center;min-height:84px;padding:14px 20px;border-top:1px solid #edf1f7;min-width:0}
body .ref-customer-row>div{min-width:0}
body .ref-customer-row small{display:block;font-size:12px;color:#647084;line-height:1.5;overflow-wrap:anywhere}
body .ref-customer-row strong{display:block;font-size:13px}
body .ref-customer-row .cf-number{display:block;font-size:15px;color:#242b38;line-height:1.5;text-align:left}
body .ref-customer-identity [data-cf-action=details]{padding:0;min-height:30px;border:0;background:transparent;color:#286bff;line-height:1.5;font-size:13px}
body .ref-customer-amounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body .ref-customer-row :is(.ref-customer-amounts,.ref-customer-facts,.ref-customer-actions)>div>span:first-child{display:block;color:#647084;font-size:12px;margin-bottom:4px}
body .ref-customer-facts{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
body .ref-customer-actions{font-size:12px;line-height:1.5}
body .ref-customer-actions>div>span:first-child{display:none!important}
body .ref-customer-row:has(.ref-customer-actions):not(:has(.ref-customer-amounts)){grid-template-columns:36px minmax(180px,1.8fr) minmax(150px,1fr) auto}
body .ref-customer-back{display:inline-flex;align-items:center;min-height:36px;padding:7px 12px;border:1px solid #e8edf5;border-radius:5px;background:#fff;margin-bottom:16px;font-size:13px}
body .ref-customer-workspace .cf-detail-main{gap:20px;padding:18px}
body .ref-customer-workspace .cf-detail-main .cf-facts{gap:16px;font-size:13px}
body .cf-modal{width:640px;max-width:calc(100vw - 24px);padding:24px}
body .cf-modal .cf-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body .cf-modal .cf-form>label{margin:0;display:grid;gap:6px;min-width:0;font-size:13px}
body .cf-modal .cf-form>label :is(input,select){width:100%;min-width:0;margin:0;font:inherit}
body .cf-modal .cf-form>:is(p,.cf-actions,.cf-check){grid-column:1/-1}
body .cf-modal .cf-form>.cf-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:8px}
body .cf-modal .cf-form>.cf-check{display:flex;gap:8px;align-items:center;min-height:36px;line-height:1.5}
body .cf-modal .cf-check input[type=checkbox]{width:18px;height:18px;min-width:18px;min-height:18px;margin:0;flex-shrink:0;accent-color:#286bff}
@media(max-width:900px){
 body .ref-customer-workspace .cf-summary-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body .ref-customer-workspace .cf-summary-row>div{padding:14px;gap:8px;flex-wrap:wrap}
 body .ref-customer-workspace .cf-summary-row strong{font-size:19px}
 body .ref-customer-workspace .cf-tabs a{min-height:44px;padding:10px 12px}
 body .ref-customer-workspace .cf-query :is(input,select),body .ref-customer-workspace .cf-query .cf-clear{min-height:44px}
 body .ref-customer-row,body .ref-customer-row:has(.ref-customer-actions):not(:has(.ref-customer-amounts)){grid-template-columns:30px minmax(0,1fr) auto;gap:8px;min-height:152px;padding:14px}
 body .ref-customer-row .ref-customer-identity{grid-column:2/-1}
 body .ref-customer-row .ref-customer-amounts{grid-column:1/-1;gap:8px}
 body .ref-customer-row .ref-customer-facts{grid-column:1/3}
 body .ref-customer-row .ref-customer-actions{grid-column:3}
 body .ref-customer-row .cf-number{font-size:13px}
 body .ref-customer-row .cf-state{font-size:12px;white-space:normal}
 body .ref-customer-identity [data-cf-action=details],body .ref-customer-back{min-height:44px}
 body .ref-customer-workspace .cf-detail-main{display:block;padding:14px}
 body .cf-modal{padding:20px}
 body .cf-modal .cf-form{grid-template-columns:minmax(0,1fr)}
 body .cf-modal .cf-form>.cf-check{min-height:44px}
 body .ref-customer-workspace .ref-page-help>summary{width:44px;height:44px}
}
body .ref-customer-identity [data-cf-action=details]{display:inline;min-height:0;margin-right:8px}
body .ref-customer-identity:has([data-cf-action=details])>strong{display:inline}
body .ref-customer-facts{display:grid;gap:4px}
body .ref-customer-facts>div>span:first-child{display:inline!important;margin-right:6px}
body .ref-customer-row:not(:has(.ref-customer-amounts)):not(:has(.ref-customer-actions)){grid-template-columns:36px minmax(240px,1fr) minmax(420px,2fr)}
body .ref-customer-row:not(:has(.ref-customer-amounts)):not(:has(.ref-customer-actions)) .ref-customer-facts{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
body .ref-customer-row:not(:has(.ref-customer-amounts)):not(:has(.ref-customer-actions)) .ref-customer-facts>div>span:first-child{display:block!important}
@media(max-width:900px){
 body .ref-customer-row:not(:has(.ref-customer-amounts)):not(:has(.ref-customer-actions)){grid-template-columns:30px minmax(0,1fr) auto}
 body .ref-customer-row:not(:has(.ref-customer-amounts)):not(:has(.ref-customer-actions)) .ref-customer-facts{grid-template-columns:repeat(2,minmax(0,1fr));grid-column:1/-1;gap:8px}
 body .ref-customer-identity [data-cf-action=details]{display:inline-flex;align-items:center;min-height:44px}
}
body .ref-customer-workspace .ref-graphic.blue{color:#286bff}
body .ref-customer-workspace .cf-summary-row .ref-graphic{display:grid;place-items:center;width:40px;height:40px}
body .ref-customer-row>.ref-graphic{width:36px;height:36px}
@media(max-width:900px){body .ref-customer-workspace .cf-summary-row .ref-graphic,body .ref-customer-row>.ref-graphic{width:30px;height:30px}}
body .ref-customer-identity [data-cf-action=details]>strong{display:inline;margin-left:8px;font-weight:600}
@media(max-width:900px){
 body .ref-customer-row,body .ref-customer-row:has(.ref-customer-actions):not(:has(.ref-customer-amounts)),body .ref-customer-row:not(:has(.ref-customer-amounts)):not(:has(.ref-customer-actions)){padding:12px;gap:6px}
 body .ref-customer-row .ref-customer-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 body .ref-customer-row:has(.ref-customer-actions) .ref-customer-facts{grid-template-columns:minmax(0,1fr)}
 body .ref-customer-identity [data-cf-action=details]{display:block;min-height:44px;text-align:left;font-size:13px}
}
@media(max-width:900px){body .ref-customer-row,body .ref-customer-row:has(.ref-customer-actions):not(:has(.ref-customer-amounts)),body .ref-customer-row:not(:has(.ref-customer-amounts)):not(:has(.ref-customer-actions)){gap:4px}}
body .cf-modal #modal-body{padding:0}
@media(min-width:901px){body .ref-customer-workspace[data-ref-customer-tab=accounts] .ref-customer-row:has(.ref-customer-actions) .ref-customer-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}}
/* Backup: three existing operations, one selected panel, original replacement guards. */
.ref-backup-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:16px}
body .ref-backup-choices>button{display:flex;align-items:center;text-align:left;gap:16px;padding:20px;min-height:112px;background:#fff;border-color:#e8edf5}
.ref-backup-choices>button>span:not(.ref-graphic){min-width:0}
.ref-backup-choices strong{display:block;font-size:15px;line-height:1.5;color:#242b38;margin-bottom:6px}
.ref-backup-choices small{display:block;font-size:12px;line-height:1.5;color:#647084}
.ref-backup-coverage{font-size:12px;color:#647084;line-height:1.6;margin-bottom:16px}
.ref-backup-choices[hidden],.ref-backup-workspace[hidden],.ref-backup-panel[hidden]{display:none!important}
body .ref-backup-panel{max-width:920px;padding:18px;margin-top:16px}
.ref-backup-panel h2{margin:0 0 14px}.ref-backup-panel>p{font-size:12px;line-height:1.7;color:#647084}
.ref-backup-panel>label{display:block;font-size:13px;margin:16px 0;line-height:1.6}
.ref-backup-panel input[type=file]{display:block;max-width:100%;width:100%;min-width:0;padding:8px;margin-top:6px;background:#f7f9fe}
.ref-backup-panel label:has(#restore-confirm){display:flex;align-items:flex-start;gap:8px;min-height:36px;padding:10px 12px;background:#fff5e5;border:1px solid #f4ddb2;border-radius:5px;font-size:13px}
body .ref-backup-panel #restore-confirm{width:18px;height:18px;min-width:18px;min-height:18px;flex-shrink:0;margin:1px 0 0;accent-color:#286bff}
.ref-backup-counts{margin-top:16px;border-top:1px solid #edf1f7;padding-top:12px}
.ref-backup-counts>summary{min-height:36px;cursor:pointer;font-size:13px;color:#286bff}
body .ref-backup-counts .info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0 0}
.ref-backup-counts .info-grid>div{padding:12px;font-size:12px;color:#647084}
.ref-backup-counts .info-grid strong{display:block;font-size:19px;color:#242b38;margin-top:4px}
.ref-backup-panel .table-wrap{max-height:400px;overflow:auto;margin:16px 0;border:1px solid #edf1f7;border-radius:5px}
.ref-backup-panel table{width:100%;min-width:0}.ref-backup-panel td{overflow-wrap:anywhere}
@media(max-width:900px){
 .ref-backup-choices{grid-template-columns:minmax(0,1fr);gap:12px}
 body .ref-backup-choices>button{min-height:96px;padding:16px;gap:12px}
 .ref-backup-choices .ref-graphic{width:36px;height:36px}
 body .ref-backup-panel{padding:14px;width:100%}
 .ref-backup-panel>button{max-width:100%;margin-bottom:8px}
 .ref-backup-panel input[type=file]{font-size:12px;min-height:44px}
 .ref-backup-panel label:has(#restore-confirm){min-height:44px}
 body .ref-backup-counts .info-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .ref-backup-counts>summary{min-height:44px}
 .ref-backup-panel :is(th,td){padding:10px 8px;font-size:12px}
 #app:has(.ref-backup-choices) .ref-page-help>summary{width:44px;height:44px}
}
.ref-backup-error:not(:empty),#backup-error:not(:empty){padding:10px 12px;background:#fff0f0;border:1px solid #f2d9d9;border-radius:5px;color:#b64045;font-size:12px;line-height:1.65}
body .ref-backup-panel #backup-download{margin-top:16px;padding:16px}
.ref-backup-panel #backup-download>a{display:inline-flex;align-items:center;min-height:36px;padding:8px 12px;border:1px solid #dce6f5;border-radius:5px}
.ref-backup-panel #backup-download details{margin-top:12px}.ref-backup-panel #backup-download summary{font-size:12px;min-height:36px}
.ref-backup-panel #backup-download textarea{width:100%;min-width:0;font-size:12px}
@media(max-width:900px){.ref-backup-panel #backup-download>a,.ref-backup-panel #backup-download summary{min-height:44px}}
@media(max-width:900px){body .ref-backup-counts .info-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
/* Login and accounts: existing authentication / role handlers remain authoritative. */
body .role-label[hidden]{display:none!important}
body .ref-login-card{width:480px;max-width:100%;margin:32px auto;padding:24px}
.ref-login-card>.ref-graphic{margin-bottom:16px}
body .ref-login-card h1{margin:0 0 8px;font-size:22px}
body .ref-login-card>p{font-size:12px;line-height:1.65;color:#647084;margin:0 0 20px}
body .ref-login-card form{display:grid;gap:16px}
body .ref-login-card label{display:grid;gap:6px;font-size:13px}
body .ref-login-card :is(input,button){width:100%;min-height:40px}
body .ref-login-card .setup-owner{margin-top:20px;padding-top:16px;border-color:#edf1f7}
.ref-login-card .setup-owner>summary{min-height:36px;font-size:13px;cursor:pointer;color:#647084}
body .ref-login-card .setup-owner>p{font-size:12px;line-height:1.65;color:#647084}
body .ref-account-form[hidden],body .ref-account-list[hidden],body .ref-account-row[hidden]{display:none!important}
body .ref-account-form{max-width:640px;margin-top:16px;padding:24px}
.ref-account-form .account-form{display:grid;gap:16px}
body .ref-account-form .form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}
.ref-account-form label{display:grid;gap:6px;font-size:13px;min-width:0}
.ref-account-form input,.ref-account-form select{width:100%;min-width:0}
.ref-account-form .actions{margin:0;justify-content:flex-end}
.ref-account-tools{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:0 0 16px}
.ref-account-tools>label{display:grid;gap:6px;font-size:12px;min-width:220px}
.ref-account-row{display:grid;grid-template-columns:minmax(210px,1.3fr) minmax(130px,1fr) 80px 145px 110px;align-items:center;gap:16px;min-height:84px;border-top:1px solid #edf1f7;padding:14px 0;font-size:13px}
.ref-account-row>div{min-width:0}
.ref-account-person{display:flex;align-items:center;gap:12px}
.ref-account-person .ref-graphic{width:36px;height:36px}
.ref-account-person .name{font-size:13px;font-weight:600}
.ref-account-person small{display:block;overflow-wrap:anywhere;font-size:12px;color:#647084}
.ref-account-row small{font-size:12px;color:#647084}
.ref-account-empty{padding:20px 0;font-size:13px;color:#647084}
@media(max-width:900px){
 body .ref-login-card{margin:16px auto;padding:20px}
 body .ref-login-card h1{font-size:21px}
 body .ref-login-card :is(input,button),.ref-login-card .setup-owner>summary{min-height:44px}
 body .ref-account-form{max-width:100%;padding:14px}
 body .ref-account-form .form-row{grid-template-columns:minmax(0,1fr)!important}
 .ref-account-tools>label{min-width:0;width:100%}
 .ref-account-row{grid-template-columns:minmax(0,1fr) 80px;gap:8px;min-height:152px;padding:12px 0}
 .ref-account-person{grid-column:1/-1}
 .ref-account-row>div:nth-child(2){grid-column:1}
 .ref-account-row>div:nth-child(3){grid-column:2;grid-row:2}
 .ref-account-row>div:nth-child(4){grid-column:1}
 .ref-account-row>div:nth-child(5){grid-column:2;grid-row:3}
}
@media(max-width:900px){#app:has(.ref-account-list) .ref-page-help>summary{width:44px;height:44px}}

/* Fees: source list, one selected record, separate actual payments. */
.fe-page{font-size:13px;min-width:0}.fe-heading,.fe-heading>div,.fe-detail-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.fe-heading{margin-bottom:18px}.fe-heading h1{font-size:22px;margin:0}.fe-heading>div{justify-content:flex-end}.fe-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#fff;border:1px solid #e6ecf5;border-radius:8px;margin-bottom:16px;padding:18px}.fe-metric{display:flex;gap:16px;align-items:center;padding:0 8px;min-width:0}.fe-metric+div{border-left:1px solid #edf1f7}.fe-metric span,.fe-row>div>span,.fe-detail-grid span{color:#64748b;display:block;font-size:12px}.fe-metric strong{font-size:23px;display:block;font-variant-numeric:tabular-nums}.fe-icon{display:flex!important;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;flex-shrink:0}.fe-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8}.fe-icon.blue{color:#2864ff;background:#ecf2ff}.fe-icon.green{color:#16a37a;background:#e9faf3}.fe-icon.orange{color:#f39824;background:#fff5e8}.fe-query{display:flex;gap:12px;align-items:end;padding:18px;background:white;border:1px solid #e6ecf5;border-radius:8px;margin-bottom:16px}.fe-query label{display:grid;gap:6px;min-width:0;font-size:12px}.fe-query label:first-child{width:260px}.fe-page input,.fe-page select,.fe-page button{min-height:36px;height:36px;padding:7px 12px;font-size:13px}.fe-list,.fe-detail{background:white;border:1px solid #e6ecf5;border-radius:8px;overflow:hidden}.fe-list-heading{padding:14px 18px;color:#64748b;font-size:12px;border-bottom:1px solid #edf1f7}.fe-row{display:grid;grid-template-columns:minmax(240px,2fr) repeat(3,minmax(100px,1fr)) 100px;gap:14px;align-items:center;min-height:84px;padding:12px 18px;border-bottom:1px solid #edf1f7;min-width:0}.fe-row:last-child{border-bottom:0}.fe-person{display:flex;align-items:center;gap:12px;min-width:0}.fe-person>div{min-width:0}.fe-title{font-weight:600;color:#252c3a}.fe-row strong{font-size:13px;display:block;font-variant-numeric:tabular-nums}.fe-row small,.fe-payment small{font-size:12px;color:#64748b;display:block;overflow-wrap:anywhere}.fe-open{display:flex;align-items:center;justify-content:center;min-height:36px;color:#2864ff;border:1px solid #e6ecf5;border-radius:6px;font-size:12px}.fe-row>div{min-width:0;overflow-wrap:anywhere}.fe-boundary{font-size:12px;color:#64748b;margin:12px 0}.fe-empty{padding:24px;color:#64748b;background:white}.fe-back{display:inline-flex;min-height:36px;align-items:center;margin-bottom:12px}.fe-detail{padding:18px}.fe-detail h2{font-size:17px;margin:0}.fe-detail p{font-size:12px;color:#64748b}.fe-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:18px 0}.fe-detail-grid strong{display:block;overflow-wrap:anywhere}.fe-source{overflow-wrap:anywhere}.fe-detail h3{font-size:14px;margin:18px 0 10px}.fe-payment{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid #edf1f7;flex-wrap:wrap}.fe-modal{max-width:100%;font-size:13px}.fe-modal h2{font-size:20px;margin:0 0 20px}.fe-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.fe-fields>label{display:grid;gap:6px;min-width:0}.fe-fields input,.fe-fields select{width:100%;min-width:0;font-size:13px;min-height:40px;height:40px}.fe-modal .fe-form-context,.fe-allocations,.fe-confirm{grid-column:1/-1}.fe-allocations{margin:0;padding:12px;border:1px solid #e6ecf5;min-width:0}.fe-allocations label{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:12px;margin:10px 0;align-items:center}.fe-allocations span{overflow-wrap:anywhere}.fe-allocations small{display:block;font-size:12px;color:#64748b}.fe-confirm{display:flex!important;align-items:center;gap:8px;min-height:44px}.fe-confirm input{width:18px;height:18px;min-height:18px;flex-shrink:0;margin:0}.fe-form-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.fe-form-actions button{min-height:40px;font-size:13px}.fe-error{color:#b44537;font-size:13px}.fe-error[hidden]{display:none!important}.fe-modal .fe-form-context{margin:0}.fe-page .ref-page-help{position:relative}
@media(max-width:900px){.fe-heading h1{font-size:21px}.fe-heading{margin-bottom:14px}.fe-metrics{padding:14px;gap:8px}.fe-metric{display:block;padding:0 8px}.fe-metric .fe-icon{width:30px;height:30px;margin-bottom:8px}.fe-metric strong{font-size:17px;overflow-wrap:anywhere}.fe-metric span{font-size:12px}.fe-query{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px}.fe-query label:first-child{width:auto;grid-column:1/-1}.fe-query button{grid-column:1/-1}.fe-page input,.fe-page select,.fe-page button{min-height:44px;height:44px}.fe-row{grid-template-columns:repeat(3,minmax(0,1fr));min-height:152px;padding:14px;gap:8px}.fe-person{grid-column:1/-1}.fe-row>div:nth-child(2){grid-column:1}.fe-row>div:nth-child(3){grid-column:2}.fe-row>div:nth-child(4){grid-column:3}.fe-row .fe-open{grid-column:1/-1;min-height:44px}.fe-row .fe-icon{width:32px;height:32px}.fe-detail{padding:14px}.fe-detail-head{align-items:flex-start;flex-wrap:wrap}.fe-detail-grid{grid-template-columns:1fr 1fr}.fe-back{min-height:44px}.fe-fields{grid-template-columns:1fr}.fe-fields input,.fe-fields select,.fe-form-actions button{height:44px;min-height:44px}.fe-allocations{padding:10px}.fe-allocations label{grid-template-columns:1fr;gap:8px}.fe-confirm input{height:18px;min-height:18px}.fe-form-actions button{flex:1}.fe-boundary{overflow-wrap:anywhere}}

dialog:has(#fe-form){width:640px;padding:24px}@media(max-width:900px){.fe-row{gap:4px}dialog:has(#fe-form){padding:20px}}

#modal-body.fe-modal{padding:0}

.fe-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.fe-icon.purple{color:#9a4dff;background:#f5edff}@media(max-width:900px){.fe-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.fe-metric:nth-child(3){border-left:0}}

.fe-detail-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.fe-fields>input[type=hidden]{display:none}@media(max-width:900px){.fe-detail-actions{justify-content:flex-start;width:100%}.fe-detail-actions button{flex:1;white-space:nowrap}}

/* 月度核对：原单只读，3指标与4入口，表内滚动。 */
.mr-page{font-size:13px;min-width:0}.mr-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.mr-heading h1{font-size:22px;line-height:1.35;margin:0;font-weight:650}.mr-page button,.mr-page input{font-size:13px;min-height:40px;height:40px}.mr-query{display:flex;gap:12px;align-items:flex-end;background:white;border:1px solid #e8edf5;border-radius:5px;padding:18px}.mr-query label{display:grid;gap:6px;min-width:0}.mr-query input{width:180px;max-width:100%}.mr-version,.mr-boundary{font-size:12px;color:#647084;overflow-wrap:anywhere;margin:12px 0}.mr-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#fff;border:1px solid #e8edf5;border-radius:5px;margin-bottom:16px;padding:18px 0}.mr-metric{display:flex;align-items:center;gap:14px;padding:0 18px;min-width:0}.mr-metric+.mr-metric{border-left:1px solid #edf1f7}.mr-metric strong{display:block;font-size:23px;color:#242b38;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.mr-metric span{color:#647084}.mr-icon{width:40px;height:40px;display:grid;place-items:center;flex-shrink:0;border-radius:8px}.mr-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}.mr-icon.blue{background:#edf3ff;color:#286bff}.mr-icon.orange{background:#fff4e5;color:#f39b28}.mr-icon.green{background:#eaf8f2;color:#20aa7d}.mr-icon.purple{background:#f5edff;color:#9854ee}.mr-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.mr-tabs a{display:flex;align-items:center;min-height:36px;padding:6px 12px;border-radius:5px;background:#fff;border:1px solid #e8edf5;color:#647084}.mr-tabs a[aria-current]{color:#286bff;background:#edf3ff;border-color:#ccdcff}.mr-entries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.mr-entry{display:flex;align-items:center;gap:14px;padding:18px;min-height:84px;background:#fff;border:1px solid #e8edf5;border-radius:5px;color:#242b38}.mr-entry>div{flex:1;min-width:0}.mr-entry strong{display:block;font-size:15px}.mr-entry>div>span{display:block;font-size:12px;color:#647084;margin-top:4px}.mr-scroll{overflow-x:auto;max-width:100%;background:#fff;border:1px solid #e8edf5;border-radius:5px}.mr-scroll table{min-width:800px;width:100%;border-collapse:collapse;font-size:13px}.mr-scroll th,.mr-scroll td{padding:12px;text-align:left;border-bottom:1px solid #edf1f7;overflow-wrap:anywhere}.mr-scroll th{background:#f3f6fc;color:#647084;font-weight:600}.mr-scroll small{display:block;font-size:12px;color:#647084}.mr-gaps{display:grid;gap:12px}.mr-gaps article{background:#fff;border:1px solid #e8edf5;border-radius:5px;padding:18px;min-width:0}.mr-gaps article>div{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}.mr-gaps strong{overflow-wrap:anywhere}.mr-gaps article>div>span{color:#94651b}.mr-gaps p{margin:8px 0 0;font-size:12px;color:#647084;overflow-wrap:anywhere}.mr-gaps summary{min-height:36px;padding-top:10px;color:#286bff;cursor:pointer}.mr-error{color:#b44537}.mr-empty{background:#fff;padding:18px;border-radius:5px;color:#647084}
@media(max-width:900px){.mr-heading h1{font-size:21px}.mr-page button,.mr-page input{height:44px;min-height:44px}.mr-query{display:grid;grid-template-columns:1fr 1fr;padding:14px;gap:12px}.mr-query label{grid-column:1/-1}.mr-query input{width:100%}.mr-metrics{padding:14px 0}.mr-metric{display:block;padding:0 8px}.mr-metric strong{font-size:17px}.mr-icon{width:30px;height:30px;margin-bottom:8px}.mr-icon svg{width:20px;height:20px}.mr-metric span{font-size:12px}.mr-tabs a{min-height:44px}.mr-entries{grid-template-columns:1fr;gap:12px}.mr-entry{padding:14px;min-height:84px}.mr-entry .mr-icon{margin-bottom:0}.mr-gaps article{padding:14px}.mr-gaps summary{min-height:44px}}

.mr-download-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.mr-save{display:inline-flex;align-items:center;min-height:40px;padding:6px 12px;border:1px solid #d5e2ff;border-radius:5px;color:#286bff;background:white}@media(max-width:900px){.mr-save{min-height:44px}}

/* 月度分类沿用文字层级，取消旧nav规则附加的装饰小方块。 */
.mr-tabs a::before{content:none;display:none}

.mr-scroll summary{min-height:36px;display:list-item;padding:8px 0;color:var(--ref-blue,#286bff);cursor:pointer}
@media(max-width:900px){.mr-scroll summary{min-height:44px}}

/* Internal transfer forms and on-demand source detail reuse the approved business shell. */
.ft-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0}.ft-top h2{font-size:15px;margin:0 0 4px}.ft-top strong{font-size:23px}.ft-top span,.ft-list small{color:#647084;font-size:12px}.ft-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 16px}.ft-facts dt{font-size:12px;color:#647084}.ft-facts dd{margin:4px 0 0;overflow-wrap:anywhere}.ft-source>summary,.ft-history>summary{cursor:pointer;min-height:36px;display:flex;align-items:center;color:#47628c;font-size:13px}.ft-history{margin-top:12px}.ft-list{list-style:none;padding:0;margin:0}.ft-list li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #edf1f7}.ft-list li div{display:grid;gap:4px;min-width:0}.ft-list small,.ft-history p small{display:block;overflow-wrap:anywhere}.ft-modal .ft-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ft-form label{margin:0;min-width:0}.ft-form textarea{width:100%;min-height:72px;padding:10px;border:1px solid #dce5f1;border-radius:5px;font:inherit}.ft-wide{grid-column:1/-1}.ft-form .ft-confirm{display:flex;align-items:center;gap:8px;min-height:36px}.ft-form .ft-confirm input{width:18px;height:18px;min-width:18px;min-height:18px;margin:0;flex-shrink:0}.ft-boundary,.ft-fixed{font-size:12px;line-height:1.6;color:#647084;margin:12px 0}.ft-selected{scroll-margin-top:16px}@media(max-width:900px){.ft-modal .ft-form,.ft-facts{grid-template-columns:1fr}.ft-form .ft-confirm,.ft-source>summary,.ft-history>summary{min-height:44px}.ft-top{align-items:flex-start;flex-wrap:wrap}.ft-top strong{font-size:20px}.ft-list li{align-items:flex-start}.ft-list a{min-height:44px;display:flex;align-items:center}.ft-modal{max-height:calc(100dvh - 24px);overflow:auto}}

.ft-form label>.cf-error{margin:0;line-height:1.5}

.mr-account-balances{margin:0 0 16px;padding:12px 16px;background:#fff;border:1px solid #e8edf5;border-radius:5px}.mr-account-balances>summary{cursor:pointer;min-height:36px;display:flex;align-items:center;color:#47628c}.fo-book .ft-top{margin-top:0}.fo-selected{scroll-margin-top:16px}@media(max-width:900px){.mr-account-balances{padding:12px}.mr-account-balances>summary{min-height:44px}.fo-book .ft-list li{flex-wrap:wrap}.fo-book .ft-list li>.cf-actions{flex-shrink:0}}

.fo-row-balance{font-size:12px;color:#647084;white-space:normal}

/* Current customer opening confirmation within the monthly read-only report. */
.mr-coverage-status{display:inline-block;padding:4px 8px;border-radius:4px;font-size:12px;line-height:18px}.mr-coverage-status.is-confirmed{color:#167657;background:#eaf8f2}.mr-coverage-status.is-pending{color:#94651b;background:#fff4e5}.mr-source-link{display:inline-flex;align-items:center;min-height:40px;padding:6px 10px;border:1px solid #e8edf5;border-radius:5px;white-space:nowrap}.mr-scroll details p{font-size:12px;margin:8px 0;max-width:260px}
@media(max-width:900px){.mr-source-link{min-height:44px}}
.rod-page .rod-heading{align-items:center;gap:16px;margin-bottom:16px}.rod-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.rod-page .rod-title h1{margin:0;overflow-wrap:anywhere}.rod-page .rod-title .pill{font-size:12px;padding:4px 8px}.rod-page .rod-heading>div:first-child{min-width:0;flex:1}.rod-page .rod-heading>div:first-child>p:last-child{margin-top:6px;line-height:1.5}.rod-tools{display:flex;align-items:center;gap:8px;flex-shrink:0}.rod-tools>a,.rod-tools>button{min-height:36px;display:inline-flex;align-items:center;padding:8px 14px;border:1px solid #dfe7f2;border-radius:5px;background:#fff;color:#286bff;font-size:13px}.rod-page>.rod-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:white;border:1px solid #edf1f7;border-radius:5px;padding:16px 0;margin:0 0 16px}.rod-page>.rod-overview>div{display:flex;align-items:center;gap:12px;padding:0 18px;min-width:0;border-right:1px solid #edf1f7;background:none}.rod-page>.rod-overview>div:last-child{border:0}.rod-overview>div>div{min-width:0}.rod-page .rod-overview strong{font-size:19px;margin-top:4px;overflow-wrap:anywhere;line-height:1.4}.rod-page .rod-overview .ref-graphic{width:36px;height:36px}.rod-page .rod-product{padding:18px}.rod-page .rod-product>.section-head{margin-bottom:16px;gap:12px}.rod-product-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.rod-product-title .ref-graphic{width:36px;height:36px}.rod-page .rod-product>.section-head .subtle{max-width:75ch;line-height:1.5;margin:6px 0 0 46px}.rod-page .rod-product>.flow{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:0;background:none}.rod-page .rod-stage{min-width:0;background:#f7f9fe;border:1px solid #edf1f7;border-radius:5px;padding:14px 8px;text-align:center}.rod-page .rod-stage.current[data-tone=blue]{background:#edf3ff;border-color:#ccdcff;color:#286bff}.rod-page .rod-stage.current[data-tone=orange]{background:#fff4e5;border-color:#f8dfb9;color:#a56510}.rod-page .rod-stage.current[data-tone=purple]{background:#f5efff;border-color:#e7d6fc;color:#8658c5}.rod-page .rod-stage.current[data-tone=green]{background:#eaf8f2;border-color:#cceede;color:#208664}.rod-page .rod-stage strong{font-size:23px;line-height:1.4;margin-top:6px}.rod-page .rod-extra-stock{font-size:12px;margin:10px 0 12px;line-height:1.5}.rod-page .rod-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.rod-links>a,.rod-links>button{display:inline-flex;align-items:center;min-height:36px;padding:8px 12px;border:1px solid #e8edf5;border-radius:5px;background:#fff;color:#286bff;font-size:13px;line-height:1.4}.rod-fold{border:1px solid #edf1f7;border-radius:5px;background:#fff;margin-bottom:12px;min-width:0}.rod-fold>summary{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 16px;cursor:pointer;list-style:none;color:#242b38;font-size:13px}.rod-fold>summary::-webkit-details-marker{display:none}.rod-fold>summary:after{content:'⌄';margin-left:auto;color:#647084}.rod-fold[open]>summary:after{transform:rotate(180deg)}.rod-fold>summary small{font-size:12px;color:#647084;background:#f1f5fb;padding:2px 8px;border-radius:4px}.rod-fold-content{padding:0 16px 14px;min-width:0}.rod-fold-content>.operation{border:0;padding:0;margin:0}.rod-fold-content>.info-grid{margin:0}.rod-page .rod-product>.rod-fold{margin:12px 0 0;border-color:#edf1f7;background:#f9fbff}.rod-fold-content .log-list{margin:0}.rod-fold-content p{overflow-wrap:anywhere}.rod-attachments .mini-note{margin:8px 0}.rod-history .section-head{display:none}
@media(max-width:900px){.rod-page .rod-heading{display:flex;flex-wrap:wrap;gap:12px}.rod-tools{flex:1 1 100%;display:grid;grid-template-columns:1fr 1fr}.rod-tools>a,.rod-tools>button{min-height:44px;justify-content:center}.rod-page>.rod-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 0;padding:14px 0}.rod-page>.rod-overview>div{padding:0 12px;gap:8px}.rod-page>.rod-overview>div:nth-child(2){border:0}.rod-page .rod-overview strong{font-size:17px}.rod-page .rod-overview .ref-graphic{width:30px;height:30px}.rod-page .rod-product{padding:14px}.rod-page .rod-product>.section-head{flex-wrap:wrap;margin-bottom:12px}.rod-page .rod-product>.section-head>div{min-width:0;width:100%}.rod-page .rod-product>.section-head .subtle{margin-left:0}.rod-page .rod-product>.section-head>button{min-height:44px}.rod-page .rod-product>.flow{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.rod-page .rod-stage{padding:10px 6px}.rod-page .rod-stage span{font-size:12px;white-space:normal}.rod-page .rod-stage strong{font-size:20px}.rod-page .rod-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.rod-links>a,.rod-links>button{min-height:44px;justify-content:center;padding:8px}.rod-fold>summary{min-height:44px;padding:10px 12px}.rod-fold-content{padding:0 12px 12px}.rod-fold-content button{min-height:44px}.rod-fold-content .info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rod-fold-content .info-grid strong{font-size:16px}}
.mr-page .mr-metrics{gap:12px;border:0;background:none;padding:0}.mr-page .mr-metric{border:1px solid #e8edf5;border-radius:5px;background:white;padding:18px;min-height:96px}.mr-page .mr-metric strong{margin-top:6px}.mr-page .mr-query{padding:12px 16px}.mr-page .mr-tabs{flex-wrap:nowrap;overflow-x:auto;min-width:0;max-width:100%;padding-bottom:4px}.mr-page .mr-tabs a{flex-shrink:0;white-space:nowrap}.mr-section{border:1px solid #e8edf5;border-radius:5px;background:#fff;min-width:0;padding:16px}.mr-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.mr-section-heading h2{margin:0;display:flex;gap:10px;align-items:center}.mr-section-heading h2 small{font-size:12px;font-weight:400;color:#647084;background:#f1f5fb;padding:3px 8px;border-radius:4px}.mr-section-heading>a{display:inline-flex;align-items:center;min-height:36px;padding:8px 12px;border:1px solid #e8edf5;border-radius:5px;font-size:13px;white-space:nowrap}.mr-section>.mr-scroll{border:0;border-radius:0}.mr-origin{margin-top:4px;font-size:12px}.mr-origin>summary{min-height:30px;display:flex;align-items:center;color:#286bff;cursor:pointer}.mr-scroll .mr-origin small{margin-top:4px;max-width:40ch;overflow-wrap:anywhere}.mr-page .mr-tabs a[aria-current]{box-shadow:inset 0 -2px #286bff}.mr-page .mr-entry{border-radius:5px}.mr-page .mr-entry:hover{border-color:#a6c4ff;background:#f9fbff}
@media(max-width:900px){.mr-page .mr-metrics{grid-template-columns:1fr;gap:8px}.mr-page .mr-metric{display:flex;align-items:center;padding:12px 14px;min-height:72px;gap:12px}.mr-page .mr-metric>div{display:flex;align-items:center;justify-content:space-between;flex:1;gap:12px;min-width:0}.mr-page .mr-metric strong{font-size:18px;margin:0}.mr-page .mr-metric .mr-icon{margin:0}.mr-page .mr-metric>div>span{white-space:nowrap}.mr-page .mr-query{padding:12px}.mr-section{padding:12px}.mr-section-heading>a{min-height:44px;padding:8px}.mr-section-heading h2{font-size:15px;flex-wrap:wrap;gap:6px}.mr-origin>summary{min-height:44px}.mr-page .mr-tabs{gap:6px;margin:12px 0}.mr-page .mr-tabs a{padding:6px 10px}.mr-section>.mr-scroll{max-width:100%}}
body #modal:has(#attachment-form){width:480px;max-width:calc(100vw - 24px)}body #attachment-form{display:grid;grid-template-columns:1fr;gap:16px}body #attachment-form>label{margin:0;min-width:0}body #attachment-form input{width:100%;min-height:44px}body #attachment-form>p{margin:0;font-size:12px;line-height:1.5}body #attachment-form #attachment-error:empty{display:none}body #attachment-form #attachment-error{color:#b43434}body #attachment-form>.actions{display:flex;justify-content:flex-end;gap:12px;margin:0}body #attachment-form>.actions>button{min-height:40px;width:auto;min-width:88px}@media(max-width:900px){body #attachment-form>.actions{display:grid;grid-template-columns:1fr 1fr}body #attachment-form>.actions>button{min-height:44px;width:100%}}

/* 主管工序使用独立状态卡，不绘制强制先后连接线。 */
#app .production-flow{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:8px;padding:12px 0;margin:0;overflow:visible}
#app .production-flow .process-node{min-width:0;max-width:none;width:100%;min-height:112px;display:flex;align-items:center;gap:6px;padding:12px 6px!important;border:1px solid #edf1f7!important;border-radius:5px;background:#f8faff!important;white-space:normal;color:#647084!important}
#app .production-flow .process-node:before{content:none}
#app .production-flow .process-node strong{font-size:13px;line-height:1.5;color:#242b38}
#app .production-flow .process-node>span:not(.process-icon){font-size:12px;color:#647084}
#app .production-flow .process-node small{font-size:12px;overflow-wrap:anywhere}
#app .production-flow .process-node:not(:disabled){cursor:pointer}
#app .production-flow .process-node:not(:disabled):hover{border-color:#a8c6ff!important;background:#eef4ff!important}
.process-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:5px;background:#edf1f7;color:#7b8798;flex-shrink:0}
.process-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#app .process-node.running{background:#f2f6ff!important;border-color:#d7e5ff!important}
#app .process-node.running .process-icon{background:#e9f1ff;color:#286bff}
#app .process-node.running>span:not(.process-icon),#app .process-node.running b{color:#286bff}
#app .process-node.done{background:#f2faf6!important;border-color:#dcefe5!important}
#app .process-node.done .process-icon{background:#e4f5eb;color:#248661}
#app .process-node.blocked{background:#fff8ed!important;border-color:#f4e4c8!important}
#app .process-node.blocked .process-icon{background:#fff0d9;color:#b8791d}
#app .process-node.blocked>span:not(.process-icon),#app .process-node .process-alert{color:#94651b}
#app .production-flow+p.mini-note{margin:4px 0 12px;font-size:12px;line-height:1.5}
#app [data-ref-task-open]>.section-head{align-items:flex-start;gap:12px}
#modal:has(#unified-form){width:min(720px,calc(100vw - 24px));max-width:720px}
#unified-form>.unified-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#unified-form>.unified-rows>label{margin:0;min-width:0}
#unified-form>.unified-rows>fieldset{grid-column:1/-1;margin:0;padding:14px;border-radius:5px}
#unified-form>.unified-rows>fieldset>.form-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#unified-form .weld-slider-label{grid-column:1/-1}
#unified-form>.actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:1100px){#app .production-flow{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:900px){#app .production-flow{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#app .production-flow .process-node{min-height:108px;padding:10px 5px!important}#app [data-ref-task-open]>.section-head{flex-direction:column;align-items:stretch}#app [data-ref-task-open]>.section-head button,#app .ref-task-back{min-height:44px}#unified-form>.unified-rows{grid-template-columns:1fr}#unified-form>.unified-rows>fieldset>.form-row{grid-template-columns:1fr}#unified-form .actions>button{min-height:44px}}

@media(max-width:360px){#app .production-flow{grid-template-columns:repeat(2,minmax(0,1fr))}#app .production-flow .process-node{padding:10px 6px!important}#app .production-flow .process-record{font-size:12px}}

#erp-breadcrumb:has([aria-current=page]){display:flex;align-items:center;flex-wrap:wrap;gap:8px;line-height:1.5}#erp-breadcrumb>a{display:inline-flex;align-items:center;color:#647084;min-height:24px}#erp-breadcrumb>a:hover{color:#286bff}.rod-page .rod-customer{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:6px 0 0;font-size:13px;line-height:1.5}.rod-customer-label{color:#647084}.rod-page .rod-customer strong{font-size:13px;font-weight:600;color:#242b38;overflow-wrap:anywhere}.rod-trial-tag{font-size:12px;padding:2px 6px;background:#fff3df;color:#94651b;border-radius:4px}@media(max-width:900px){#erp-breadcrumb>a{min-height:44px}.rod-page .rod-customer{gap:6px}}

.rwb-page .page-head{margin-bottom:16px}.rwb-page .page-head h1{margin:0}.rwb-metrics{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px}.rwb-entries{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.rwb-entry{display:flex;align-items:center;gap:12px;padding:14px 16px;min-height:72px;background:#fff;border:1px solid #edf1f7;border-radius:5px;color:#242b38}.rwb-entry .ref-graphic{width:36px;height:36px;flex-shrink:0}.rwb-entry strong{font-size:13px;font-weight:600;overflow-wrap:anywhere}.rwb-entry>span:last-child{margin-left:auto;color:#647084}.rwb-entry:hover{border-color:#a8c6ff;background:#fafcff}.rwb-page .rwb-today{min-height:0;padding:16px 18px}.rwb-today .section-head{margin:0 0 10px}.rwb-today .badge-total{font-size:12px;padding:2px 6px;background:#edf3ff;color:#286bff}.rwb-empty{padding:0;min-height:0;font-size:13px;line-height:1.5;color:#647084}.rwb-today .task{padding:12px 0;gap:12px}.rwb-today .task .ref-graphic{width:32px;height:32px;flex-shrink:0}.rwb-page .rwb-orders .section-head{margin-bottom:12px}.rwb-page .overview-flow{padding:10px 16px}.rwb-page .overview-flow summary{min-height:24px}.rwb-page .rwb-orders>.table-wrap{overflow:auto}
@media(max-width:900px){.rwb-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.rwb-entries{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.rwb-entry{padding:12px;min-height:72px;gap:8px}.rwb-entry .ref-graphic{width:30px;height:30px}.rwb-entry strong{font-size:13px}.rwb-page .rwb-today{padding:14px}.rwb-page .overview-flow summary{min-height:44px}.rwb-page .rwb-orders .section-head>a{min-height:44px;display:inline-flex;align-items:center}.rwb-metrics .ref-color-stat{align-items:center;gap:8px}.rwb-metrics .ref-color-stat .ref-graphic{width:30px;height:30px}.rwb-page .rwb-orders .empty{min-height:0;padding:14px}.rwb-page .rwb-orders .section-head{flex-wrap:wrap}}

.rwb-metric-link{color:inherit;display:block}.rwb-metric-link>.ref-color-stat{height:100%}.rwb-metric-link:focus-visible{outline:2px solid #5289ff;outline-offset:3px}

.rwb-entries:has(>.rwb-entry:only-child){grid-template-columns:minmax(0,1fr)}
.rwb-entries:has(>.rwb-entry:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:901px){.rwb-entries:has(>.rwb-entry:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.rwb-today .task a{display:inline-flex;align-items:center;min-height:44px}}

/* 来源单据录入：沿用首页的字号、边框和蓝色操作，仅在严格外协模式使用。 */
body #modal:has(.spray-form){width:min(720px,calc(100vw - 24px));max-width:720px}body .spray-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}body .spray-fields>label{margin:0;min-width:0;display:grid;gap:6px;font-size:13px}body .spray-fields input:not([type=checkbox]),body .spray-fields select{width:100%;min-width:0;min-height:40px;font:inherit}body .spray-wide{grid-column:1/-1}body .spray-source-status{margin:0;font-size:12px;line-height:1.5;color:#647084}body .spray-fields [hidden]{display:none!important}body .spray-fields .spray-confirm{display:flex;align-items:center;gap:8px;min-height:44px}body .spray-confirm input{width:18px;height:18px;min-height:18px;flex-shrink:0;margin:0}body .spray-note summary{min-height:36px;display:flex;align-items:center;font-size:13px;cursor:pointer;color:#647084}body .spray-note label{font-size:13px}body .spray-form>.actions{display:flex;justify-content:flex-end;gap:12px}body .spray-form>.actions>button{min-height:40px;min-width:88px;width:auto}@media(max-width:900px){body .spray-fields{grid-template-columns:1fr;gap:12px}body .spray-fields input:not([type=checkbox]),body .spray-fields select,body .spray-note summary{min-height:44px}body .spray-form>.actions{display:grid;grid-template-columns:1fr 1fr}body .spray-form>.actions>button{min-height:44px;width:100%}}
body .spray-history{margin-top:16px;border-top:1px solid #e8edf5}body .spray-history>summary{display:flex;gap:8px;align-items:center;min-height:44px;font-size:13px;cursor:pointer}body .spray-history>summary span{font-size:12px;color:#647084}body .spray-record{border-top:1px solid #edf1f7}body .spray-record>summary{display:flex;align-items:center;gap:12px;min-height:56px;padding:8px 0;cursor:pointer;font-size:13px}body .spray-record>summary strong{font-weight:600}body .spray-reference{flex:1;overflow-wrap:anywhere;min-width:0}body .spray-record>summary small{color:#647084;font-size:12px}body .spray-action{background:#edf3ff;color:#286bff;border-radius:4px;padding:4px 8px;white-space:nowrap}body .spray-record dl{margin:8px 0;display:grid;gap:8px;font-size:12px}body .spray-record dl>div{display:flex;gap:12px}body .spray-record dt{min-width:60px;color:#647084}body .spray-record dd{margin:0;overflow-wrap:anywhere;min-width:0}body .spray-attachments{display:grid;gap:8px;padding:8px 0 14px}body .spray-attachments>button{justify-self:start;min-height:40px}body .spray-attachments>small{color:#647084;font-size:12px}body .spray-file{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}body .spray-file span{overflow-wrap:anywhere;min-width:0}body .spray-file small{font-size:12px;color:#647084}body .spray-file button{min-height:40px;flex-shrink:0}@media(max-width:900px){body .spray-record>summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;min-height:80px}body .spray-reference{grid-column:2;grid-row:2}body .spray-record>summary small{grid-column:2/-1;grid-row:3}body .spray-record>summary b{grid-column:3;grid-row:1}body .spray-attachments>button,body .spray-file button{min-height:44px}}

/* Finance homepage: separate currencies, registered facts only. */
.rwb-financial-metrics .ref-color-stat strong{font-size:18px;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere}.rwb-financial-metrics .ref-color-stat small{display:block;font-size:12px;color:#647084;line-height:1.5}.rwb-order-reference>.rwb-orders{border:0;padding:14px 0 0;margin:0}.rwb-financial-metrics .rwb-metric-link{min-height:94px}.rwb-financial-metrics .rwb-metric-link:focus-visible{outline:2px solid #5289ff;outline-offset:3px}
@media(max-width:900px){.rwb-financial-metrics .ref-color-stat strong{font-size:16px}.rwb-financial-metrics .ref-color-stat{padding:12px 8px}.rwb-financial-metrics .rwb-metric-link{min-height:88px}}

.sl-head,.sl-actions,.sl-tabs{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.sl-head{justify-content:space-between;margin-bottom:16px}.sl-head h1{font-size:24px;margin:0}.sl-head h2{font-size:20px;margin:0}.sl-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:white;border:1px solid #e8edf5;border-radius:5px;margin-bottom:16px}.sl-metrics>div{padding:20px;border-left:4px solid #286bff}.sl-metrics>div:nth-child(2){border-color:#20bb88}.sl-metrics>div:nth-child(3){border-color:#9854ee}.sl-metrics span,.sl-facts div{color:#647084;font-size:13px}.sl-metrics strong,.sl-facts strong{display:block;color:#242b38;font-size:20px;margin-top:8px}.sl-tabs{margin-bottom:16px}.sl-tabs a,.sl-back{min-height:44px;display:inline-flex;align-items:center;padding:0 14px}.sl-tabs a.active{background:#edf3ff;border:1px solid #bcd1ff;border-radius:5px}.sl-list{padding:0 18px}.sl-row{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid #edf1f7}.sl-row>div{min-width:0;flex:1}.sl-row a{display:inline-flex;align-items:center;min-height:44px;overflow-wrap:anywhere}.sl-row small{display:block;color:#647084;font-size:13px}.sl-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:16px 0}.sl-detail details{border-top:1px solid #edf1f7;margin-top:16px}.sl-detail summary{min-height:44px;cursor:pointer}.sl-detail p{overflow-wrap:anywhere}.sl-empty{padding:16px 0;margin:0;color:#647084}.sl-page button{min-height:44px}.sl-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.sl-fields label{display:flex;flex-direction:column;gap:6px;font-size:14px;min-width:0}.sl-fields input:not([type=checkbox]),.sl-fields select{width:100%;height:44px;min-width:0}.sl-fields .sl-confirm{flex-direction:row;align-items:center;grid-column:1/-1;min-height:44px}.sl-fields input[type=checkbox]{width:18px;height:18px;flex:none}.sl-modal h2{font-size:20px}.sl-form>.sl-actions{justify-content:flex-end;margin-top:20px}.sl-form>[role=alert]{color:#cf4f53;margin:6px 0}.sl-modal{max-height:calc(100vh - 48px);overflow-y:auto}
@media(max-width:640px){.sl-fields{grid-template-columns:1fr}.sl-metrics{grid-template-columns:1fr}.sl-metrics>div{padding:14px}.sl-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.sl-row{flex-wrap:wrap;gap:8px}.sl-row>div{flex-basis:100%}.sl-head h1{font-size:22px}.sl-detail{padding:14px}.sl-actions{gap:8px}.sl-modal{max-height:calc(100dvh - 48px)}}
body .sl-tabs a{color:#286bff;background:transparent;box-shadow:none;border:1px solid transparent;font-size:13px}body .sl-tabs a:before{display:none}body .sl-tabs a.active,body .sl-tabs a:hover{color:#286bff;background:#edf3ff;border-color:#bcd1ff;box-shadow:none}

.sl-fields [data-sl-rows]{grid-column:1/-1;display:grid;gap:12px}.sl-fields [data-sl-row]{min-width:0;margin:0;padding:12px;border:1px solid #e4eaf5;display:grid;grid-template-columns:2fr 1fr auto;gap:12px;align-items:end}.sl-fields [data-sl-row] legend{font-size:12px;color:#647084;padding:0 4px}.sl-fields [data-sl-row] button{min-height:44px}.sl-fields [data-sl-total]{align-self:center;font-weight:600}@media(max-width:900px){.sl-fields [data-sl-row]{grid-template-columns:1fr;gap:8px}.sl-fields [data-sl-row] button{justify-self:end}}

.sl-fields .sl-source-row{grid-template-columns:1fr 1fr}.sl-source-row label:first-of-type,.sl-source-row label:nth-of-type(4){grid-column:1/-1}.sl-source-row [data-sl-remove]{justify-self:end;grid-column:1/-1}@media(max-width:900px){.sl-fields .sl-source-row{grid-template-columns:1fr}}

/* Cost candidates, read-only: four choices before one source panel. */
.cs-page{display:grid;gap:16px;min-width:0}.cs-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.cs-head h1,.cs-head h2{margin:0;flex:1}.cs-head h1{font-size:22px}.cs-head h2{font-size:15px}.cs-filter{display:flex;align-items:center;gap:12px;margin:0}.cs-filter select{min-height:44px;width:min(440px,100%)}.cs-groups{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.cs-groups>a{display:flex;align-items:center;gap:12px;min-height:88px;padding:14px;background:white;border:1px solid #e8edf5;border-radius:5px;color:#647084}.cs-groups>a[aria-current]{border-color:#286bff;background:#f0f5ff}.cs-groups strong{display:block;color:#242b38;font-size:20px;margin-top:4px}.cs-groups>a>span:last-child{margin-left:auto}.cs-status{display:flex;gap:12px;align-items:center;color:#647084;font-size:12px}.cs-detail,.cs-planned{margin:0;min-width:0}.cs-scroll{overflow-x:auto;max-width:100%;margin-top:12px}.cs-scroll table{min-width:700px;width:100%;border-collapse:collapse}.cs-scroll th,.cs-scroll td{padding:12px;text-align:left;white-space:nowrap;border-bottom:1px solid #e8edf5}.cs-basis{margin-top:12px}.cs-basis summary,.cs-planned>summary{min-height:44px;display:flex;align-items:center;cursor:pointer}.cs-basis p{color:#647084}.cs-empty{margin:0;min-height:80px;display:flex;align-items:center;gap:12px}.cs-groups a:focus-visible,.cs-scroll:focus-visible{outline:2px solid #5289ff;outline-offset:3px}
@media(max-width:900px){.cs-head h1{font-size:21px}.cs-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cs-groups>a{padding:10px;gap:8px;min-height:88px}.cs-groups strong{font-size:17px}.cs-filter{flex-wrap:wrap}.cs-filter select{width:100%;min-width:0}.cs-detail{overflow:hidden}.cs-groups .ref-graphic{width:30px;height:30px;flex-shrink:0}}

.cs-groups>a::before{display:none!important}.cs-groups{padding:0;margin:0}.cs-groups>a{margin:0}.cs-scroll table{display:table}.cs-scroll thead{display:table-header-group}.cs-scroll tbody{display:table-row-group}.cs-scroll tr{display:table-row}.cs-scroll th,.cs-scroll td{display:table-cell}.cs-scroll td::before{display:none}

.cs-head>a,.cs-filter>a,.cs-scroll td>a{display:inline-flex;align-items:center;min-height:44px}

body .cf-form .vsales-line{grid-column:1/-1;min-width:0;margin:0;padding:12px;border:1px solid #dce4ef;border-radius:5px;display:grid;grid-template-columns:1fr 1fr;gap:12px}body .vsales-line legend{font-size:13px}body .cf-form .vsales-line label{min-width:0;margin:0;font-size:13px}body .cf-form .vsales-line p,body .cf-form .vsales-wide,body .cf-form .vsales-preview{grid-column:1/-1}body .cf-form .vsales-preview{background:#f6f8fc;border-radius:5px;padding:12px;font-size:13px;overflow-wrap:anywhere}@media(max-width:900px){body .cf-form .vsales-line{grid-template-columns:1fr}}
body .shipping-version-modal{width:640px;max-width:calc(100vw - 24px);padding:24px}body .shipping-version-modal form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body .shipping-version-modal form>label{min-width:0;margin:0}body .shipping-version-modal form>div,body .shipping-version-modal form>p,body .shipping-version-modal form>fieldset{grid-column:1/-1}body .shipping-version-modal :is(input,select){width:100%;min-width:0;height:44px}body .shipping-version-modal input[type=checkbox]{width:18px;height:18px;min-height:18px;flex-shrink:0;margin:0 8px 0 0}body .shipping-version-modal label:has(input[type=checkbox]){display:flex;align-items:center;grid-column:1/-1;min-height:44px}body .shipping-version-item{margin:0;padding:12px;min-width:0;border:1px solid #e8edf5;border-radius:5px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body .shipping-version-item legend{font-size:13px;font-weight:600}body .shipping-version-item p{grid-column:1/-1;margin:0;font-size:12px;overflow-wrap:anywhere}body .shipping-version-item label{margin:0;min-width:0}body .shipping-version-actions{display:flex;justify-content:flex-end;gap:12px}body .shipping-version-actions button{width:auto;min-height:44px}body .shipping-version-modal [data-document-spec]{font-size:12px;overflow-wrap:anywhere;margin:6px 0 0}body .shipping-version-modal [role=alert]{color:#b64045;font-size:13px;overflow-wrap:anywhere}@media(max-width:900px){body .shipping-version-modal{padding:18px}body .shipping-version-modal form,body .shipping-version-item{grid-template-columns:1fr}}
/* Dispatch workspace: list first, one original dispatch detail at a time. */
.dispatch-workspace [hidden]{display:none!important}.dispatch-head,.dispatch-detail-head{display:flex;align-items:center;gap:12px;justify-content:space-between}.dispatch-head h2{margin:0;font-size:16px}.dispatch-head{margin-bottom:16px}.dispatch-workspace button,.dispatch-workspace summary{min-height:40px}.dispatch-filters{display:flex;gap:16px;align-items:end;margin:0 0 16px}.dispatch-filters label{margin:0;max-width:340px;flex:1;font-size:12px;color:#647084}.dispatch-filters input{width:100%;height:40px;margin-top:6px}.dispatch-scopes{display:flex;gap:8px}.dispatch-scopes button{font-size:13px;white-space:nowrap}.dispatch-scopes button[aria-pressed=true]{color:#2764ff;background:#edf3ff;border-color:#c5d6ff}.dispatch-scopes span{margin-left:4px;font-size:12px}.dispatch-list{border:1px solid #edf1f7;border-radius:5px;overflow:hidden}.dispatch-row{display:grid;grid-template-columns:36px minmax(160px,1.5fr) minmax(260px,1fr) 90px 80px;gap:16px;align-items:center;text-align:left;width:100%;min-height:100px;height:auto;background:white;border:0;border-bottom:1px solid #edf1f7;border-radius:0;padding:16px}.dispatch-row:last-of-type{border-bottom:0}.dispatch-row:hover{background:#f5f8ff}.dispatch-object{width:36px;height:36px;background:#eaf2ff;color:#2867ff;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;flex-shrink:0}.dispatch-object svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}.dispatch-identity{min-width:0;display:flex;flex-direction:column;gap:4px;overflow-wrap:anywhere}.dispatch-identity strong{font-size:14px}.dispatch-identity small{font-size:12px;color:#647084;line-height:1.5}.dispatch-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dispatch-numbers>span{display:flex;flex-direction:column;gap:6px}.dispatch-numbers small{font-size:12px;color:#647084}.dispatch-numbers b{font-size:18px;font-weight:600;color:#242b38;white-space:nowrap}.dispatch-status{font-size:12px;padding:4px 8px;border-radius:4px;display:inline-flex;align-items:center;justify-self:start;white-space:nowrap}.dispatch-status.active{background:#ecf7f1;color:#227556}.dispatch-status.closed{background:#f0f2f6;color:#647084}.dispatch-open{font-size:12px;color:#2867ff;white-space:nowrap}.dispatch-empty{margin:0;padding:20px;color:#647084;font-size:13px}.dispatch-details>[data-dispatch-back]{margin-bottom:16px}.dispatch-detail{margin:0!important}.dispatch-detail-head{justify-content:initial;border-bottom:1px solid #edf1f7;padding-bottom:16px}.dispatch-detail-head h3{margin:0 0 6px;font-size:16px}.dispatch-detail-head>div{flex:1;min-width:0;overflow-wrap:anywhere}.dispatch-export{position:relative;margin-left:auto;flex-shrink:0}.dispatch-export summary{display:flex;align-items:center;padding:0 12px;border:1px solid #e1e7f0;border-radius:5px;font-size:13px;cursor:pointer;color:#2867ff}.dispatch-export>div{position:absolute;right:0;top:46px;min-width:180px;padding:8px;background:white;border:1px solid #e1e7f0;border-radius:5px;box-shadow:0 6px 16px #18345a14;z-index:5;display:grid;gap:4px}.dispatch-export button{text-align:left;width:100%;font-size:13px}.dispatch-totals{margin:16px 0;padding:16px;background:#f6f8fc;border-radius:5px}.dispatch-totals b{font-size:24px}.dispatch-lines{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dispatch-lines>div{padding:16px;border:1px solid #edf1f7;border-radius:5px;display:flex;flex-direction:column;gap:8px;overflow-wrap:anywhere;font-size:13px}.dispatch-lines strong{font-size:14px}.dispatch-lines small,.dispatch-lines span{font-size:12px;color:#647084}.dispatch-actions{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.dispatch-source{border-top:1px solid #edf1f7;margin-top:16px}.dispatch-source summary{display:flex;align-items:center;cursor:pointer;font-size:13px;color:#647084}.dispatch-source dl{display:grid;grid-template-columns:80px minmax(0,1fr);gap:8px;font-size:12px;overflow-wrap:anywhere}.dispatch-source dd{margin:0}.dispatch-source dt{color:#647084}.dispatch-packing{border-top:1px solid #edf1f7;padding-top:12px}.dispatch-packing h4{font-size:14px;margin:0 0 12px}.dispatch-packing p{font-size:12px;line-height:1.6;overflow-wrap:anywhere}.dispatch-close-reason{font-size:13px;overflow-wrap:anywhere}
@media(max-width:1150px){.dispatch-row{grid-template-columns:36px minmax(0,1fr) minmax(200px,1fr) 88px;gap:12px}.dispatch-open{grid-column:4}.dispatch-row .dispatch-status{grid-column:4;grid-row:1}.dispatch-row .dispatch-open{grid-row:2;}.dispatch-row .dispatch-numbers{grid-column:3;grid-row:1/3}.dispatch-row .dispatch-identity{grid-row:1/3}}
@media(max-width:900px){.dispatch-head{align-items:flex-start;flex-wrap:wrap;gap:12px}.dispatch-head h2{font-size:15px}.dispatch-workspace button,.dispatch-workspace summary{min-height:44px}.dispatch-filters{flex-direction:column;align-items:stretch;gap:12px}.dispatch-filters label{max-width:none}.dispatch-filters input{height:44px}.dispatch-scopes{gap:8px}.dispatch-scopes button{flex:1;padding:8px;min-width:0}.dispatch-row{grid-template-columns:30px minmax(0,1fr) 88px;gap:12px;padding:12px;min-height:168px}.dispatch-row .dispatch-object{width:30px;height:30px;grid-column:1;grid-row:1}.dispatch-row .dispatch-identity{grid-column:2/4;grid-row:1}.dispatch-row .dispatch-numbers{grid-column:1/4;grid-row:2;gap:8px}.dispatch-row .dispatch-status{grid-column:1/3;grid-row:3}.dispatch-row .dispatch-open{grid-column:3;grid-row:3}.dispatch-numbers b{font-size:17px}.dispatch-detail-head{flex-wrap:wrap;gap:10px}.dispatch-detail-head>div{flex-basis:calc(100% - 48px)}.dispatch-export{margin-left:0}.dispatch-export>div{left:0;right:auto;top:48px}.dispatch-lines{grid-template-columns:1fr}.dispatch-actions button{flex:1}.dispatch-totals{padding:12px;gap:8px}.dispatch-totals b{font-size:20px}.dispatch-source dl{grid-template-columns:68px minmax(0,1fr)}.dispatch-packing p{display:flex;flex-direction:column;gap:8px;align-items:flex-start}.dispatch-packing button{width:100%}}

.dispatch-workspace .dispatch-row{min-height:100px}.dispatch-export:not([open])>div{display:none}.dispatch-export summary::after{content:"⌄";margin-left:8px}@media(max-width:900px){.dispatch-workspace .dispatch-row{min-height:168px}}

.export-toolbar[hidden]{display:none!important}.dispatch-source summary::after{content:"⌄";margin-left:auto}

/* Material provenance: three quantities, zero expanded source rows by default. */
.mt-list{display:grid;gap:8px;margin-top:12px}.mt-issue{border:1px solid #edf1f7;border-radius:5px;min-width:0}.mt-issue>summary{display:flex;align-items:center;gap:16px;padding:14px 16px;min-height:80px;list-style:none;cursor:pointer}.mt-issue>summary::-webkit-details-marker{display:none}.mt-identity{flex:1;min-width:0}.mt-identity strong,.mt-identity small{display:block;overflow-wrap:anywhere}.mt-identity strong{font-size:14px}.mt-identity small,.mt-quantities small{font-size:12px;color:#647084}.mt-quantities{display:grid;grid-template-columns:repeat(3,minmax(90px,1fr));gap:12px}.mt-quantities>span{padding:6px 10px;background:#f7f9fe;border-radius:5px}.mt-quantities small,.mt-quantities b{display:block}.mt-quantities b{font-size:15px;overflow-wrap:anywhere}.mt-quantities .mt-net{background:#ebf8f2;color:#167652}.mt-quantities .mt-pending{background:#fff5e7;color:#946020}.mt-arrow{color:#647084}.mt-issue[open] .mt-arrow{transform:rotate(180deg)}.mt-source{border-top:1px solid #edf1f7;padding:14px 16px;overflow-wrap:anywhere}.mt-state,.mt-note{font-size:12px;color:#647084}.mt-source h3{font-size:13px;margin:16px 0 8px}.mt-facts{display:grid;grid-template-columns:140px 1fr;gap:12px;margin:8px 0}.mt-facts>div:last-child{grid-column:1/-1}.mt-facts dt{font-size:12px;color:#647084}.mt-facts dd{margin:3px 0 0;font-size:13px;overflow-wrap:anywhere}.mt-return{padding:10px 0;border-top:1px solid #edf1f7}.mt-legacy{margin-top:12px;background:#fff9ef;padding:0 12px;border-radius:5px}.mt-legacy summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:13px;color:#946020}.mt-note{margin:12px 0 0}.mt-empty{font-size:13px;margin:16px 0}
@media(max-width:900px){.mt-issue>summary{flex-wrap:wrap;gap:10px;padding:12px;min-height:120px;position:relative}.mt-identity{flex-basis:calc(100% - 24px);padding-right:16px}.mt-quantities{width:100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.mt-quantities>span{padding:6px}.mt-quantities b{font-size:13px}.mt-arrow{position:absolute;right:12px;top:15px}.mt-source{padding:12px}.mt-facts{grid-template-columns:1fr}.mt-facts>div:last-child{grid-column:auto}}
#day-orders-form[data-version-plan] .order-check{min-height:64px;align-items:center;gap:10px;padding:10px 12px;margin:8px 0;border:1px solid #edf1f7;border-radius:5px;background:#f8faff}#day-orders-form[data-version-plan] .order-check span{min-width:0;overflow-wrap:anywhere}#day-orders-form[data-version-plan] .order-check strong,#day-orders-form[data-version-plan] .order-check small{display:block}#day-orders-form[data-version-plan] .order-check small{font-size:12px;color:#647084}#day-orders-form[data-version-plan] input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;margin:0}#modal:has(#day-orders-form[data-version-plan]){width:min(640px,calc(100vw - 24px));max-width:640px}#day-orders-form[data-version-plan] .actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}#day-orders-form[data-version-plan] fieldset{min-width:0}#day-orders-form[data-version-plan] .actions button{min-height:44px}

/* Rear daily status: four stages and per-version read-only revision history. */
#app .finishing-operation .production-flow-rear{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:16px}.finishing-history{margin-top:16px;border-top:1px solid #edf1f7;padding-top:8px}.finishing-history>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:#286bff}.finishing-history article{padding:12px 0;border-bottom:1px solid #edf1f7}.finishing-history header{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.finishing-history header span,.finishing-history p{font-size:12px;color:#647084;line-height:1.6;overflow-wrap:anywhere}.finishing-history dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}.finishing-history dl div{background:#f8faff;padding:10px;border-radius:5px}.finishing-history dt{font-size:12px;color:#647084}.finishing-history dd{margin:4px 0 0;font-size:14px;font-weight:600}.finishing-operation>.section-head>div{min-width:0}.finishing-operation>.section-head .subtle{display:block;margin-top:6px;overflow-wrap:anywhere}
@media(max-width:900px){#app .finishing-operation .production-flow-rear,.finishing-history dl{grid-template-columns:repeat(2,minmax(0,1fr))}.finishing-operation>.section-head{align-items:flex-start;gap:12px;flex-wrap:wrap}.finishing-operation>.section-head>button{min-height:44px}}

.finishing-history>summary::after{content:"⌄";margin-left:auto;font-size:16px}.finishing-history[open]>summary::after{transform:rotate(180deg)}

.fi-read-notice{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;line-height:1.5;color:#647084;flex-wrap:wrap}.fi-read-notice button{min-height:44px;padding:8px 12px}.fi-read-notice[role=alert]{color:#94651b}

/* Workbench: one heading/count; the empty state is one compact row. */
.rwb-page .rwb-today:has(.rwb-empty){display:flex;align-items:center;gap:16px;min-height:64px}.rwb-page .rwb-today:has(.rwb-empty) .section-head{margin:0}.rwb-page .rwb-today h2{font-size:15px;line-height:1.5;margin:0}.rwb-page .page-head h1{font-size:22px;line-height:1.35}.rwb-page .rwb-orders h2{font-size:15px;margin:0}.rwb-page .rwb-order-reference>summary{min-height:44px}.rwb-page .rwb-entry:focus-visible{outline:2px solid #5289ff;outline-offset:3px}.rwb-page .rwb-today .task>div{min-width:0;overflow-wrap:anywhere}
@media(max-width:900px){.rwb-page .page-head h1{font-size:21px;max-width:20ch}.rwb-page .rwb-today:has(.rwb-empty){min-height:64px;flex-wrap:wrap;gap:8px 16px}.rwb-page .rwb-order-reference>.rwb-orders{max-width:100%;min-width:0}}

/* Cost source corrections: one original source, collapsed history. */
.cs-correction{margin-top:12px;border:1px solid #e6ebf3;border-radius:8px;background:#fff}.cs-correction>summary{min-height:44px;display:flex;gap:12px;align-items:center;justify-content:space-between;padding:10px 14px;cursor:pointer;font-size:13px}.cs-correction>summary span:first-child{min-width:0;overflow-wrap:anywhere}.cs-correction>summary span:last-child{flex-shrink:0;color:#64748b}.cs-correction-body{padding:0 14px 14px}.cs-correction-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.cs-correction-metrics>div{padding:12px;background:#eef4ff;border-radius:6px;min-width:0}.cs-correction-metrics>div:nth-child(2){background:#fff5e8}.cs-correction-metrics>div:nth-child(3){background:#f4efff}.cs-correction-metrics span{display:block;font-size:12px;color:#64748b}.cs-correction-metrics strong{display:block;font-size:16px;margin-top:6px;overflow-wrap:anywhere}.cs-correction-scope{font-size:12px;color:#64748b;margin:12px 0}.cs-correction .cs-scroll table{min-width:0;width:100%;table-layout:fixed}.cs-correction .cs-scroll td,.cs-correction .cs-scroll th{white-space:normal;overflow-wrap:anywhere;font-size:12px;padding:10px 8px}@media(max-width:600px){.cs-correction-metrics{gap:6px}.cs-correction-metrics>div{padding:10px 8px}.cs-correction-metrics strong{font-size:14px}.cs-correction-body{padding:0 10px 10px}.cs-correction>summary{padding:10px;gap:8px}}

.cs-work-source{width:240px;white-space:normal;margin-top:0}.cs-work-source p{white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.5;margin:6px 0}.cs-work-source summary{min-height:44px}

.cs-page nav[aria-label="人工来源类型"] .tab-link{min-height:44px;display:inline-flex;align-items:center}

/* Optional shadow quantity attribution; shares the confirmed ERP business layout. */
.ma-panel{margin-top:14px;padding:14px;background:#f7f9fe;border:1px solid #edf1f7;border-radius:6px;min-width:0}.ma-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.ma-head>span{margin-left:auto;color:#647084}.ma-head button,.ma-record button,.ma-history summary,.ma-record summary{min-height:44px}.ma-history{margin-top:8px}.ma-record{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 0;border-top:1px solid #e6ebf4}.ma-record>span:first-child{flex:1;min-width:120px}.ma-record small{display:block;color:#647084;font-size:12px}.ma-record>details{width:100%;min-width:0}.ma-record p,.ma-source-title{overflow-wrap:anywhere;white-space:normal!important}.ma-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:24px;overflow:auto;border:1px solid #e6ebf4;border-radius:10px}.ma-dialog h2{margin:0 0 8px;font-size:20px}.ma-source-title{font-size:13px;color:#647084;margin:0 0 16px}.ma-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px}.ma-metrics>div{padding:12px;background:#eef4ff;border-radius:6px}.ma-metrics span,.ma-metrics strong{display:block}.ma-metrics span{font-size:12px;color:#647084}.ma-metrics strong{font-size:18px;margin-top:4px}.ma-form{display:grid;gap:12px}.ma-form label{display:grid;gap:6px;font-size:13px}.ma-form input,.ma-form select{box-sizing:border-box;width:100%;min-width:0;min-height:44px;font-size:14px}.ma-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}.ma-actions button{min-height:44px;min-width:80px}.ma-error{font-size:13px;color:#b63d3d;overflow-wrap:anywhere}.ma-error[hidden]{display:none}@media(max-width:600px){.ma-dialog{padding:16px}.ma-record>span:first-child{width:100%;flex-basis:100%}.ma-head{gap:8px}.ma-panel{padding:12px}}

.ma-actions{flex-wrap:wrap}.ma-actions [data-ma-reread]{min-height:44px}

.cs-work-view{min-height:44px;color:#286bff;background:white}.cs-work-dialog{box-sizing:border-box;width:min(640px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:20px;border:1px solid #dce4ef;border-radius:7px;color:#242b38;overflow-y:auto}.cs-work-dialog::backdrop{background:rgba(13,42,80,.35)}.cs-work-dialog h2{font-size:18px;margin:0 0 16px}.cs-work-dialog dl{margin:0}.cs-work-dialog dl>div{display:grid;grid-template-columns:140px minmax(0,1fr);gap:12px;padding:8px 0;border-bottom:1px solid #edf1f7}.cs-work-dialog dt{color:#647084;font-size:12px}.cs-work-dialog dd{margin:0;font-size:13px;overflow-wrap:anywhere}.cs-work-dialog button{min-height:44px;margin-top:16px;width:100%}@media(max-width:600px){.cs-work-dialog{padding:14px}.cs-work-dialog dl>div{grid-template-columns:100px minmax(0,1fr);gap:8px}}

.cs-identity{margin:0 0 16px}.cs-identity ul{list-style:none;padding:0;margin:8px 0 0}.cs-identity li{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #edf1f7;padding:10px 0;font-size:13px}.cs-identity li>div{min-width:0}.cs-identity li strong,.cs-identity li span{display:block;overflow-wrap:anywhere}.cs-identity li span{color:#647084;font-size:12px;margin-top:4px}.cs-identity li a{display:inline-flex;align-items:center;min-height:44px;flex-shrink:0;white-space:nowrap}.cs-identity li>div:last-child a+a{margin-left:8px}@media(max-width:600px){.cs-identity .cs-correction-metrics{gap:6px}.cs-identity .cs-correction-metrics>div{padding:8px}.cs-identity .cs-correction-metrics strong{font-size:18px}.cs-identity li>div:last-child{display:flex;flex-wrap:wrap}}

/* Read-only material bill evidence; one dialog opened on demand. */
.mp-list{margin-top:20px;border-top:1px solid #edf1f7;padding-top:16px}.mp-list h3{font-size:14px;margin:0 0 12px}.mp-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #edf1f7}.mp-row>div{min-width:0}.mp-row strong,.mp-row small{display:block;overflow-wrap:anywhere}.mp-row small{color:#647084;font-size:12px;margin-top:4px}.mp-row button{min-height:44px;flex-shrink:0;color:#286bff}.mp-dialog .mp-receipt{padding:16px 0;border-top:1px solid #edf1f7}.mp-dialog h3{font-size:14px;overflow-wrap:anywhere;margin:0 0 12px}.mp-dialog p{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.mp-scope{color:#647084}.mp-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px;background:#f7f9fe;border-radius:6px}.mp-facts span,.mp-facts strong{display:block;overflow-wrap:anywhere}.mp-facts span{font-size:12px;color:#647084}.mp-facts strong{font-size:14px;margin-top:6px}.mp-bill{margin-top:16px;border:1px solid #edf1f7;border-radius:6px;padding:12px}.mp-bill-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.mp-bill-head strong{min-width:0;overflow-wrap:anywhere;font-size:14px}.mp-bill-head a{min-height:44px;display:flex;align-items:center;flex-shrink:0;color:#286bff}.mp-adjusted{color:#a66200}@media(max-width:600px){.mp-facts{gap:8px;padding:10px}.mp-bill{padding:10px}.mp-bill-head{align-items:flex-start}.mp-facts strong{font-size:13px}}

/* Order product fields follow the same label-above-control structure as order metadata. */
.new-order-page .line-entry label{display:grid;gap:6px;min-width:0;font-size:13px}
.new-order-page .line-entry input:not([type=hidden]),.new-order-page .line-entry select{width:100%;min-width:0;min-height:44px}
.new-order-page .line-entry .form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media(max-width:900px){.new-order-page .line-entry .form-row{grid-template-columns:1fr}}

/* Interactive report preview stays separate from the unchanged print source. */
.operations-export-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px;align-items:center}
.operations-export-actions [role="status"]{flex-basis:100%;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.operations-export-actions [role="status"]:empty{display:none}
.operations-screen-preview{min-width:0;color:#242b38}
.operations-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.operations-preview-heading h2{font-size:18px;font-weight:650;line-height:1.5;margin:0}
.operations-preview-heading>span{padding:4px 8px;background:#edf3ff;color:#286bff;border-radius:4px;font-size:12px;white-space:nowrap}
.operations-preview-notes{margin:12px 0;border-top:1px solid #edf1f7;border-bottom:1px solid #edf1f7}
.operations-preview-notes summary{box-sizing:border-box;min-height:44px;padding:12px 0;font-size:13px;color:#286bff;cursor:pointer}
.operations-preview-notes p{font-size:13px;line-height:1.6;margin:0 0 12px;color:#647084;overflow-wrap:anywhere}
.operations-preview-table{max-width:100%;max-height:min(55vh,480px);overflow:auto;border:1px solid #e5eaf3;border-radius:6px;overscroll-behavior:contain}
.operations-preview-table:focus-visible{outline:2px solid #286bff;outline-offset:2px}
.operations-preview-table table{min-width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:13px;line-height:1.5}
.operations-preview-table th,.operations-preview-table td{min-width:104px;max-width:240px;padding:10px 12px;white-space:normal;overflow-wrap:anywhere;text-align:left;border:0;border-bottom:1px solid #edf1f7}
.operations-preview-table th{background:#f4f7fd;color:#647084;font-weight:600;position:sticky;top:0;z-index:1}
.operations-preview-table tbody tr:last-child td{border-bottom:0}
.operations-print-source{display:none}
@media print{.operations-screen-preview{display:none!important}.operations-print-source{display:block!important}}

@media screen{body dialog.operations-preview-modal{width:min(1100px,calc(100vw - 24px));max-width:calc(100vw - 24px);padding:0}body .operations-preview-modal #modal-body{padding:20px}}
@media screen and (max-width:900px){body .operations-preview-modal #modal-body{padding:12px}.operations-export-actions button{flex:1 1 calc(50% - 4px);min-height:44px}.operations-export-actions>.operations-more{flex:1 1 calc(50% - 4px)}}

/* Report actions: one primary action, secondary downloads disclosed on demand. */
@media screen {
.operations-export-actions{margin:12px 0 16px;position:relative}
.operations-export-actions button,.operations-more>summary{font-size:13px;min-height:44px}
.operations-more{position:relative}
.operations-more>summary{display:flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;padding:0 16px;border:1px solid #e8edf5;border-radius:5px;cursor:pointer;list-style:none;background:#fff;color:#242b38}
.operations-more>summary::-webkit-details-marker{display:none}
.operations-more>summary::after{content:"⌄";font-size:14px}
.operations-more-items{position:absolute;top:calc(100% + 6px);right:0;z-index:5;width:190px;padding:6px;background:#fff;border:1px solid #e8edf5;border-radius:6px;box-shadow:0 8px 24px #14284426}
.operations-more-items button,.operations-more-items a{display:flex;align-items:center;box-sizing:border-box;width:100%;min-height:44px;padding:8px 10px;margin:0;font-size:13px;text-align:left;border:0;color:#242b38;text-decoration:none;background:#fff}
.operations-more-items button:hover,.operations-more-items a:hover{background:#edf3ff;color:#286bff}
.operations-more-items span:empty{display:none}
.operations-preview-table td{word-break:normal;overflow-wrap:anywhere}
.operations-preview-notes{margin:12px 0 0}
.operations-preview-heading h2{font-size:18px;line-height:1.5}
}

@media screen and (max-width:900px){.operations-more-items{left:0;right:auto;width:190px}}

@media screen {
.purchase-document-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px;margin:0 0 16px;padding:14px;background:#f7f9fe;border-radius:5px}
.purchase-document-meta>div{min-width:0}
.purchase-document-meta dt{font-size:12px;line-height:1.5;color:#647084}
.purchase-document-meta dd{margin:4px 0 0;font-size:13px;line-height:1.5;color:#242b38;overflow-wrap:anywhere}
}
@media screen and (max-width:900px){.purchase-document-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px}}

/* 2026-10-11: document hierarchy and mobile field cards, original print unchanged. */
.report-mobile-cards{display:none}
.purchase-document-summary{border:1px solid #e8edf5;border-radius:6px;padding:14px;margin-bottom:8px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.purchase-supplier,.purchase-item-title{display:flex;align-items:center;gap:10px;min-width:0}
.purchase-supplier>div,.purchase-item-title>div{min-width:0}
.purchase-supplier span:not(.purchase-summary-icon){font-size:12px;color:#647084}
.purchase-supplier strong{display:block;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.purchase-summary-icon{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:6px;background:#edf3ff;color:#286bff}
.purchase-summary-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.purchase-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}
.purchase-dates dt,.purchase-item-numbers dt{font-size:12px;color:#647084;line-height:1.5}
.purchase-dates dd{font-size:13px;margin:4px 0 0;line-height:1.5;overflow-wrap:anywhere}
.purchase-supply-details{margin:0 0 14px;border-bottom:1px solid #edf1f7}
.purchase-supply-details summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;font-size:13px;color:#286bff}
.purchase-supply-details summary span{font-size:12px;color:#647084}
.purchase-supply-details summary:after{content:'⌄';font-size:16px}.purchase-supply-details[open] summary:after{content:'⌃'}
.purchase-supply-details .purchase-document-meta{margin:0 0 12px;background:#f7f9fe}
@media screen and (max-width:900px){
 .operations-screen-preview .operations-preview-table{display:none}
 .report-mobile-cards{display:grid;gap:12px}
 .report-mobile-card,.purchase-item-card{border:1px solid #e8edf5;border-radius:6px;padding:14px;background:white;min-width:0}
 .report-mobile-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
 .report-mobile-card dl>div{min-width:0}
 .report-mobile-card dt{font-size:12px;line-height:1.5;color:#647084}
 .report-mobile-card dd{font-size:13px;line-height:1.5;overflow-wrap:anywhere;margin:4px 0 0;font-variant-numeric:tabular-nums}
 .report-mobile-card summary{min-height:44px;display:flex;align-items:center;font-size:13px;color:#286bff;margin-top:8px;border-top:1px solid #edf1f7;cursor:pointer}
 .purchase-document-summary{display:block}
 .purchase-dates{border-top:1px solid #edf1f7;margin-top:12px;padding-top:12px}
 .purchase-supply-details .purchase-document-meta{grid-template-columns:1fr;gap:12px}
 .purchase-item-title h3{margin:0;font-size:15px;line-height:1.5}
 .purchase-item-title p{margin:4px 0 0;font-size:13px;color:#647084;line-height:1.5;overflow-wrap:anywhere}
 .purchase-item-numbers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 0}
 .purchase-item-numbers dd{margin:4px 0 0;font-size:18px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
 .purchase-item-numbers small{font-size:12px;font-weight:400;color:#647084}
 .purchase-item-total{margin:14px -14px -14px;padding:14px;background:#edf3ff;border-radius:0 0 6px 6px;display:flex;align-items:center;justify-content:space-between;gap:12px}
 .purchase-item-total span{font-size:12px;color:#647084}
 .purchase-item-total strong{font-size:24px;color:#286bff;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;min-width:0}
}

@media screen and (max-width:900px){.report-mobile-card .report-card-metric dd{font-size:18px;font-weight:600;line-height:1.4}}
.purchase-document-summary~.operations-preview-table td:nth-child(n+5),.purchase-document-summary~.operations-preview-table th:nth-child(n+5){text-align:right;font-variant-numeric:tabular-nums}
.purchase-supply-details summary span{margin-left:auto}

/* Saved BOM estimate preview: pending is never a zero actual cost. */
.cost-preview-product{display:grid;gap:4px;margin:0 0 14px;overflow-wrap:anywhere}.cost-preview-product strong{font-size:15px}.cost-preview-product span{font-size:13px;color:#647084}.cost-preview-product small{font-size:12px;color:#647084}
.cost-preview-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}.cost-preview-summary>div{background:#edf3ff;border-radius:6px;padding:14px;min-width:0}.cost-preview-summary span,.cost-preview-summary small{display:block;font-size:12px;color:#647084;line-height:1.5}.cost-preview-summary strong{display:block;font-size:24px;color:#286bff;font-variant-numeric:tabular-nums;margin:6px 0;overflow-wrap:anywhere}.cost-preview-summary .cost-preview-pending{background:#fff3df}.cost-preview-summary .cost-preview-pending strong{color:#94651b}
.cost-preview-basis{margin-bottom:14px;border-bottom:1px solid #edf1f7}.cost-preview-basis summary,.cost-preview-row summary{min-height:44px;display:flex;align-items:center;font-size:13px;color:#286bff;cursor:pointer}.cost-preview-basis dl,.cost-preview-row dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 12px}.cost-preview-basis dl>div,.cost-preview-row dl>div{min-width:0}.cost-preview-basis dt,.cost-preview-row dt{font-size:12px;line-height:1.5;color:#647084}.cost-preview-basis dd{font-size:13px;line-height:1.5;margin:4px 0 0;overflow-wrap:anywhere}
.cost-preview-row{border:1px solid #e8edf5;border-radius:6px;padding:14px;min-width:0}.cost-preview-row-heading{display:flex;justify-content:space-between;align-items:start;gap:10px;margin-bottom:14px}.cost-preview-row h3{font-size:15px;line-height:1.5;margin:0;overflow-wrap:anywhere}.cost-preview-row-heading>span{font-size:12px;padding:4px 6px;background:#edf3ff;color:#286bff;border-radius:4px;white-space:nowrap}.cost-preview-row dd{font-size:14px;font-weight:600;line-height:1.5;margin:4px 0 0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.cost-preview-row summary{border-top:1px solid #edf1f7}.cost-preview-row details dd{font-size:13px;font-weight:400}.cost-preview-row details dl{margin-bottom:0}

.statement-export-actions>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border-radius:5px;text-decoration:none;font-size:13px}.statement-mobile-cards h3{font-size:15px;margin:0 0 12px;color:#286bff}.statement-mobile-cards dd{font-size:13px;font-variant-numeric:tabular-nums}@media(max-width:900px){.statement-export-actions>a{flex:1 1 calc(50% - 4px)}}

.statement-mobile-cards .report-card-metric dd{font-size:18px}.statement-scope-notice{font-size:13px;line-height:1.6;margin:0;overflow-wrap:anywhere}

.statement-customer-identity{display:grid;gap:4px;margin:0 0 16px;padding:12px 14px;background:#f4f7ff;border-radius:5px;overflow-wrap:anywhere}.statement-customer-identity strong{font-size:15px}.statement-customer-identity span{font-size:13px;color:#647084}

/* Stock detail values must wrap inside their own card. */
body .ref-stock-detail-table td{white-space:normal}

/* Supplier details use aligned fact rows; mobile previews retain full values. */
@media screen {
 .purchase-supply-details .purchase-document-meta{display:block;padding:0 12px;background:#f7f9fe;border:1px solid #e8edf5;border-radius:6px}
 .purchase-supply-details .purchase-document-meta>div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;padding:12px 0;align-items:start}
 .purchase-supply-details .purchase-document-meta>div+div{border-top:1px solid #e8edf5}
 .purchase-supply-details .purchase-document-meta dt{line-height:1.6;padding-top:1px}
 .purchase-supply-details .purchase-document-meta dd{margin:0;font-size:14px;line-height:1.6;min-width:0}
}
@media screen and (max-width:900px){
 .purchase-supplier strong,.purchase-item-title h3{font-size:16px}
 .purchase-dates dd,.purchase-item-title p,.report-mobile-card dd{font-size:14px;line-height:1.6}
 .report-mobile-card dl{gap:16px 12px}
}

/* Shared document hierarchy: supplier rows and distinct date tiles. */
@media screen {
 .purchase-supply-details .purchase-document-meta{display:block;padding:0 12px;background:#f7f9fe;border:1px solid #e8edf5;border-radius:6px}
 .purchase-supply-details .purchase-document-meta>div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;padding:12px 0;align-items:start}
 .purchase-supply-details .purchase-document-meta>div+div{border-top:1px solid #e8edf5}
 .purchase-supply-details .purchase-document-meta dd{margin:0;font-size:14px;line-height:1.6;font-weight:500;min-width:0}
 .purchase-dates>div{background:#f7f9fe;border-radius:5px;padding:10px 12px;min-width:0}
 .purchase-dates dd{font-weight:600;font-variant-numeric:tabular-nums;color:#242b38}
}
@media screen and (max-width:900px){
 .purchase-dates{gap:8px}
 .report-mobile-card dd{font-weight:500;color:#242b38}
 .report-mobile-card .report-card-metric dd{font-weight:600}
}

/* Shared preview facts: aligned descriptions, distinct numeric tiles. Screen only. */
@media screen {
 .purchase-supply-details .purchase-document-meta{background:#fff}
 .purchase-supply-details .purchase-document-meta dt{color:#647084}
 .purchase-supply-details .purchase-document-meta dd{font-weight:400}
}
@media screen and (max-width:900px){
 .report-mobile-card dl{gap:10px}
 .report-mobile-card dl>div:not(.report-card-metric){grid-column:1/-1;display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px;align-items:start;padding:10px 0;border-bottom:1px solid #edf1f7}
 .report-mobile-card dl>div:not(.report-card-metric) dd{margin:0;font-weight:400}
 .report-mobile-card .report-card-metric{padding:10px 12px;background:#f7f9fe;border-radius:5px}
 .report-mobile-card .report-card-metric dd{margin-top:6px;color:#242b38}
 .report-mobile-card details dl{margin-top:8px}
 .purchase-item-numbers>div{padding:10px 12px;background:#f7f9fe;border-radius:5px;min-width:0}
 .purchase-item-numbers dd{margin-top:6px}
}

/* Monthly source records: desktop tables, mobile facts and money tiles. */
.mr-mobile-records{display:none}
@media screen and (max-width:600px){
 .mr-page .mr-scroll{display:none}
 .mr-mobile-records{display:grid;gap:12px;min-width:0}
 .mr-record{border:1px solid #e8edf5;border-radius:6px;padding:12px;min-width:0;background:#fff}
 .mr-record dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
 .mr-record dl>div{min-width:0}
 .mr-record dt{font-size:12px;line-height:1.6;color:#647084}
 .mr-record dd{margin:0;font-size:14px;line-height:1.6;overflow-wrap:anywhere;color:#242b38}
 .mr-card-fact{grid-column:1/-1;display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px;padding:10px 0;border-bottom:1px solid #edf1f7}
 .mr-card-amount{padding:10px 12px;background:#f7f9fe;border-radius:5px}
 .mr-card-amount dd{font-size:18px;font-weight:600;font-variant-numeric:tabular-nums;margin-top:6px}
 .mr-record small{display:block;font-size:12px;line-height:1.6;color:#647084;overflow-wrap:anywhere}
 .mr-record-origin{margin-top:10px;border-top:1px solid #edf1f7}
 .mr-record summary{display:flex;align-items:center;min-height:44px;font-size:13px;color:#286bff;cursor:pointer}
 .mr-record-origin dl{margin-top:4px}
}

@media screen and (max-width:600px){.mr-record h3{font-size:14px;line-height:1.6;margin:0 0 8px;color:#242b38}}

/* 2026-10-12: named report rows use one identity header; original facts remain available. */
@media screen and (max-width:900px){
 .report-card-identity{display:flex;align-items:center;gap:10px;padding:0 0 12px;margin:0 0 12px;border-bottom:1px solid #edf1f7;background:transparent;min-height:0;height:auto}
 .report-card-identity>div{min-width:0}
 .report-card-identity h3{font-size:16px;font-weight:600;line-height:1.5;margin:0;overflow-wrap:anywhere}
 .report-card-identity p{display:flex;flex-wrap:wrap;gap:6px 10px;margin:4px 0 0;font-size:12px;line-height:1.5;color:#647084;overflow-wrap:anywhere}
 .report-identity-icon{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:6px;background:#edf3ff;color:#286bff}
 .report-identity-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
}

@media screen and (max-width:900px){.report-mobile-card dd.report-empty-value,.report-mobile-card .report-card-metric dd.report-empty-value{font-size:14px;font-weight:400;color:#647084;line-height:1.6}}

/* Shipment history: business summary first, unchanged full source inside. */
@media screen {
 .shipment-record{border:1px solid #e8edf5;border-radius:6px;margin-top:12px;padding:0 14px;background:#fff;min-width:0}
 .shipment-record>summary{display:flex;align-items:center;gap:10px;min-height:64px;cursor:pointer;list-style:none}
 .shipment-record>summary::-webkit-details-marker{display:none}
 .shipment-record-icon{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;background:#edf3ff;color:#286bff;border-radius:6px}
 .shipment-record-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
 .shipment-record-label{min-width:0;flex:1;display:grid;gap:4px;overflow-wrap:anywhere}
 .shipment-record-label strong{font-size:16px;line-height:1.5;color:#242b38;font-weight:600}
 .shipment-record-label small{font-size:12px;line-height:1.5;color:#647084}
 .shipment-record-arrow{color:#647084}.shipment-record[open] .shipment-record-arrow{transform:rotate(180deg)}
 .shipment-record-source{margin:0;border-top:1px solid #edf1f7}
 .shipment-record-source>div{display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px;padding:10px 0}
 .shipment-record-source>div+div{border-top:1px solid #edf1f7}
 .shipment-record-source dt{font-size:12px;color:#647084;line-height:1.6}.shipment-record-source dd{margin:0;min-width:0;font-size:14px;line-height:1.6;overflow-wrap:anywhere;color:#242b38}
}

/* Funds show original records and explicit gaps, never a guessed account balance. */
.cf-fund-cards{display:none}.cf-fund-source summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:#286bff;font-size:13px;gap:8px}.cf-fund-source summary:after{content:'⌄';margin-left:auto}.cf-fund-source[open] summary:after{content:'⌃'}
.cf-fund-source dl{margin:0}.cf-fund-source dl>div{display:grid;grid-template-columns:84px minmax(0,1fr);gap:12px;padding:10px 0;border-top:1px solid #edf1f7}.cf-fund-source dt{font-size:12px;color:#647084;line-height:1.6}.cf-fund-source dd{margin:0;font-size:14px;line-height:1.6;overflow-wrap:anywhere;white-space:normal;min-width:0}.cf-fund-source a{display:flex;align-items:center;min-height:44px;color:#286bff}
.cf-fund-gaps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px 18px}.cf-fund-gaps>div{background:#f7f9fe;padding:10px 12px;border-radius:5px;min-width:0}.cf-fund-gaps span{display:block;font-size:12px;color:#647084}.cf-fund-gaps strong{display:block;font-size:18px;margin-top:6px;color:#242b38}
@media screen and (max-width:900px){
 .cf-fund-desktop{display:none}.cf-fund-cards{display:grid;gap:12px;padding:14px}.cf-fund-card{padding:14px;border:1px solid #e8edf5;border-radius:6px;min-width:0;background:#fff}.cf-fund-card header{display:flex;gap:10px;align-items:center;margin-bottom:12px}.cf-fund-card header>div{min-width:0}.cf-fund-card h3{font-size:16px;line-height:1.5;margin:0;font-weight:600}.cf-fund-card header p{font-size:12px;line-height:1.5;color:#647084;margin:4px 0 0;overflow-wrap:anywhere}
 .cf-fund-icon{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;background:#edf3ff;border-radius:6px;color:#286bff}.cf-fund-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
 .cf-fund-facts{margin:0}.cf-fund-facts>div{display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px;padding:10px 0;border-top:1px solid #edf1f7}.cf-fund-facts dt{font-size:12px;line-height:1.6;color:#647084}.cf-fund-facts dd{margin:0;font-size:14px;line-height:1.6;overflow-wrap:anywhere;min-width:0}
 .cf-fund-amounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.cf-fund-amounts>div{padding:10px 12px;background:#f7f9fe;border-radius:5px;min-width:0}.cf-fund-amounts span{font-size:12px;color:#647084}.cf-fund-amounts strong{display:block;font-size:18px;font-weight:600;margin-top:6px;overflow-wrap:anywhere}.cf-fund-amounts .cf-number{font-size:inherit}
 .cf-fund-gaps{gap:8px;padding:14px}.cf-fund-gaps>div{padding:10px 8px}
}

@media screen and (max-width:900px){.cf-fund-net{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.cf-fund-net>div{padding:10px 8px}.cf-fund-net strong{font-size:16px}.cf-fund-balance-note{font-size:12px;line-height:1.6;color:#647084;margin:0}}

@media screen and (max-width:900px){.cf-fund-amounts .cf-number{white-space:normal;overflow-wrap:anywhere;color:#242b38;font-weight:inherit;font-size:inherit;line-height:1.5}}

.cf-fund-gap-details{padding:0 18px 14px}.cf-fund-gap-details>summary{min-height:44px;display:flex;align-items:center;color:#286bff;cursor:pointer;font-size:13px}.cf-fund-gap-details>summary:after{content:"⌄";margin-left:auto}

/* 月报付款来源：三个事实字段，原记录唯一归属，长编号折叠。 */
.mr-payment-source{min-width:0;max-width:320px}.mr-payment-source>strong{display:block;font-size:14px;margin:8px 0}.mr-payment-source dl{display:grid;gap:8px;margin:8px 0}.mr-payment-source dl>div{display:grid;grid-template-columns:64px minmax(0,1fr);gap:8px}.mr-payment-source dt{font-size:12px;color:#68768d}.mr-payment-source dd{margin:0;font-size:14px;overflow-wrap:anywhere}.mr-payment-source .mr-source-link{min-height:44px}.mr-payment-source small{overflow-wrap:anywhere;white-space:normal}.mr-payment-source details>summary{min-height:44px;display:flex;align-items:center}
@media screen and (max-width:600px){
 .mr-record-origin>dl>.mr-card-fact{grid-template-columns:minmax(0,1fr);gap:4px}
 .mr-record .mr-payment-source{max-width:100%}
 .mr-record .mr-payment-source dl{grid-template-columns:minmax(0,1fr);gap:8px;margin:8px 0}
 .mr-record .mr-payment-source dl>div{grid-template-columns:64px minmax(0,1fr);gap:8px}
}

/* 金额更正履历限制列宽；原始编号折行，不撑开单据表格。 */
.cf-amount-history{width:260px;max-width:100%;margin-left:auto;text-align:left;white-space:normal;overflow-wrap:anywhere}
.cf-amount-history>summary{min-height:44px;display:flex;align-items:center}
.cf-amount-history p{font-size:14px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
.cf-amount-history small{white-space:normal;overflow-wrap:anywhere}
@media(max-width:600px){.cf-amount-history{width:100%;margin-left:0}}
@media(max-width:600px){body .cf-table td:has(>.cf-amount-history){grid-column:1/-1}}
@media(max-width:600px){
 body .cf-history .cf-table table{min-width:0;width:100%}
 body .cf-history .cf-table thead{display:none}
 body .cf-history .cf-table tbody{display:block}
 body .cf-history .cf-table tr{display:grid;grid-template-columns:minmax(0,1fr);padding:8px 0}
 body .cf-history .cf-table td{display:block;min-width:0;text-align:left;padding:8px 12px}
 body .cf-history .cf-table td:before{display:block;font-size:12px;color:#647084;margin-bottom:4px}
 body .cf-history .cf-table .cf-number{text-align:left}
}

/* Purchase preview uses the same product/number hierarchy on desktop and mobile. */
@media screen and (min-width:901px){
 .purchase-export-modal .report-mobile-cards{display:grid;gap:12px}
 .purchase-export-modal .operations-preview-table{display:none}
 .purchase-export-modal .purchase-item-card{display:grid;grid-template-columns:minmax(180px,1.1fr) minmax(220px,1fr) minmax(160px,.7fr);align-items:center;gap:20px;padding:18px;border:1px solid #e8edf5;border-radius:6px;background:#fff;min-width:0}
 .purchase-export-modal .purchase-item-title h3{font-size:15px;line-height:1.5;margin:0}
 .purchase-export-modal .purchase-item-title p{font-size:13px;line-height:1.5;color:#647084;margin:4px 0 0;overflow-wrap:anywhere}
 .purchase-export-modal .purchase-item-numbers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
 .purchase-export-modal .purchase-item-numbers>div{padding:12px;background:#f7f9fe;border-radius:5px;min-width:0}
 .purchase-export-modal .purchase-item-numbers dd{font-size:20px;font-weight:600;line-height:1.5;font-variant-numeric:tabular-nums;margin:4px 0 0;overflow-wrap:anywhere}
 .purchase-export-modal .purchase-item-numbers small{font-size:12px;font-weight:400;color:#647084}
 .purchase-export-modal .purchase-item-total{display:grid;gap:4px;padding:12px;background:#edf3ff;border-radius:5px;min-width:0}
 .purchase-export-modal .purchase-item-total span{font-size:12px;line-height:1.5;color:#647084}
 .purchase-export-modal .purchase-item-total strong{font-size:24px;line-height:1.5;color:#286bff;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
}

/* Void proof wraps within its field, not across an oversized table column. */
.cf-void-history{width:320px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.cf-void-history summary{min-height:44px;display:flex;align-items:center;font-size:13px;cursor:pointer;color:#286bff}
.cf-void-history p{font-size:13px;line-height:1.6;margin:8px 0}
.cf-void-history small{white-space:normal;overflow-wrap:anywhere}
@media(max-width:600px){.cf-void-history{width:100%}}

/* Screen preview: item and money first, supporting supplier facts second. */
@media screen {
 .operations-preview-heading>div{min-width:0}
 .report-document-number{margin:2px 0 0;color:#647084;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
 .purchase-export-modal .purchase-document-summary{margin-top:14px}
 .purchase-export-modal .purchase-item-title h3{font-size:16px;font-weight:600}
 .operations-export-actions>.operations-more{margin-left:auto}
 .operations-export-actions>.operations-more>summary{background:transparent;border-color:transparent;padding:0 12px;color:#647084}
 .operations-export-actions>button[id$="-close"]{background:transparent;border-color:transparent;color:#647084}
}
@media screen and (max-width:900px){
 .operations-export-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin:12px 0}
 .operations-export-actions>button{width:100%;min-width:0;font-size:14px}
 .operations-export-actions>.operations-more{justify-self:start;margin:0;min-width:64px}
 .operations-export-actions>button[id$="-close"]{width:auto;min-width:64px;justify-self:end;padding:0 12px}
 .operations-export-actions>[role="status"]{grid-column:1/-1;color:#647084;font-size:12px}
 .operations-export-actions>.operations-more .operations-more-items{width:min(260px,calc(100vw - 52px))}
 .purchase-export-modal .purchase-document-summary{padding:12px;background:#fff}
 .purchase-export-modal .purchase-supplier strong{font-size:14px;font-weight:500}
 .purchase-export-modal .purchase-dates>div{background:#f7f9fe;padding:8px 10px}
 .purchase-export-modal .purchase-dates dd{font-size:14px}
}
/* Keep source records intact; switch only their narrow-screen presentation. */
@media(max-width:600px){
 .cs-candidates.cs-scroll{overflow:visible}
 .cs-candidates.cs-scroll table{display:block;min-width:0;width:100%;table-layout:auto}
 .cs-candidates.cs-scroll thead{display:none}
 .cs-candidates.cs-scroll tbody{display:grid;gap:12px}
 .cs-candidates.cs-scroll tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;padding:12px;border:1px solid #e8edf5;border-radius:6px;background:#fff}
 .cs-candidates.cs-scroll td{display:block;min-width:0;padding:0;border:0;white-space:normal;overflow-wrap:anywhere;font-size:14px;line-height:1.5}
 .cs-candidates.cs-scroll td::before{display:block;content:attr(data-label);margin-bottom:3px;font-size:12px;font-weight:400;color:#647084}
 .cs-candidates.cs-scroll td:first-child{grid-column:1/-1;font-weight:600}
 .cs-candidates.cs-scroll td:first-child::before{display:none}
 .cs-candidates.cs-scroll td>a{display:flex;min-height:44px;white-space:normal;overflow-wrap:anywhere;align-items:center}
 .cs-candidates.cs-scroll td[data-label="原行金额"],.cs-candidates.cs-scroll td[data-label="当前原单净额"]{padding:8px;background:#eef4ff;border-radius:5px;font-size:18px;font-weight:600;color:#286bff}
}

.sl-fields .sl-source-note{grid-column:1/-1;margin:0;padding:10px 12px;background:#eef4ff;border-left:3px solid #286bff;font-size:14px;line-height:1.6;color:#242b38;overflow-wrap:anywhere;min-width:0}
.sl-fields .sl-source-note[hidden]{display:none}

/* Order change confirmation shares the approved business cards and compact metrics. */
.oc-panel> .section-head h2{font-size:16px;margin:0}.oc-panel>.section-head{gap:10px}.oc-panel>.section-head>button{margin-left:auto}
.oc-entry+.oc-entry{border-top:1px solid #e8edf5;margin-top:16px;padding-top:16px}.oc-entry-head{display:flex;align-items:center;gap:12px}.oc-entry-head>div{min-width:0;flex:1}.oc-entry h3{font-size:16px;line-height:1.5;margin:0}.oc-entry-head a{font-size:12px;line-height:1.5}.oc-status{font-size:12px;background:#edf3ff;padding:5px 8px;border-radius:4px;color:#286bff;white-space:nowrap}
.oc-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}.oc-counts>div{background:#f6f8fc;border-radius:5px;padding:10px 12px}.oc-counts span{display:block;font-size:12px;color:#647084}.oc-counts strong{font-size:20px;font-variant-numeric:tabular-nums}.oc-counts small{font-size:13px;font-weight:400;color:#647084}
.oc-roles{display:flex;flex-wrap:wrap;gap:8px;font-size:12px;line-height:1.5}.oc-roles>span{background:#f6f8fc;color:#647084;padding:6px 8px;border-radius:4px}.oc-roles .oc-ready{background:#ecf8f2;color:#14724e}.oc-warning,.oc-roles .oc-warning{background:#fff4e5;color:#925600}
.oc-source{margin-top:12px}.oc-source summary{min-height:44px;display:flex;align-items:center;color:#286bff;font-size:13px;cursor:pointer}.oc-source dl{display:grid;grid-template-columns:80px minmax(0,1fr);gap:8px 12px;padding:12px;background:#f7f9fe;border-radius:5px;font-size:13px;line-height:1.6}.oc-source dt{color:#647084}.oc-source dd{margin:0;min-width:0;overflow-wrap:anywhere}.oc-actions{display:flex;justify-content:flex-end;margin-top:12px}.oc-actions button{min-height:44px}
body dialog.oc-modal{width:min(640px,calc(100vw - 24px));max-width:calc(100vw - 24px);padding:0}body .oc-modal #modal-body{padding:20px}.oc-modal h2{font-size:21px;line-height:1.4;margin:0}.oc-form-context{font-size:13px;color:#647084;margin:8px 0 16px;overflow-wrap:anywhere}.oc-form{display:grid;gap:12px}.oc-form>label{display:grid;gap:6px;font-size:13px}.oc-form input,.oc-form select{width:100%;min-width:0;min-height:44px;box-sizing:border-box}.oc-form textarea{width:100%;min-width:0;min-height:80px;box-sizing:border-box}.oc-form-actions{display:flex;justify-content:flex-end;gap:8px}.oc-form-actions button{min-height:44px}.oc-form [role=alert]{font-size:13px;line-height:1.6;color:#b42318;overflow-wrap:anywhere}.oc-form [hidden]{display:none}.oc-task small{display:block;font-size:12px;color:#647084;margin-top:4px}
@media(max-width:600px){.oc-panel{padding:14px}.oc-entry-head{gap:8px;flex-wrap:wrap}.oc-entry-head>div{flex:1}.oc-status{margin-left:auto}.oc-counts{gap:8px}.oc-counts>div{padding:8px}.oc-counts strong{font-size:18px}.oc-source dl{grid-template-columns:64px minmax(0,1fr);gap:8px}.oc-source dd{font-size:14px}.oc-form-actions>button{flex:1}}

.fi-facts.shipping-version-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.fi-facts.shipping-version-summary strong{font-size:16px;line-height:1.6;overflow-wrap:anywhere}@media(max-width:900px){.fi-facts.shipping-version-summary{grid-template-columns:1fr;gap:12px}.fi-facts.shipping-version-summary strong{font-size:14px}}

/* Verified outsourcing cost sources: shared financial modal and phone targets. */
.aoc-panel{padding:16px;background:#f5f8ff;border:1px solid #e4ebf6;border-radius:5px;margin-bottom:16px}.aoc-head{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.aoc-head strong{display:block;font-size:23px;color:#286bff;margin:6px 0}.aoc-panel small,.aoc-source small{display:block;color:#647084;line-height:1.6;overflow-wrap:anywhere}.aoc-record{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid #e4ebf6}.aoc-record>div{min-width:0;overflow-wrap:anywhere}.aoc-panel button,.aoc-panel summary{min-height:44px}.aoc-panel details{margin-top:12px}.aoc-source{grid-column:1/-1;padding:12px;border:1px solid #e4ebf6;background:#f7f9fe;border-radius:5px;overflow-wrap:anywhere}.aoc-source span{min-width:0}.aoc-source strong{font-size:14px}@media(max-width:640px){.aoc-panel{padding:14px}.aoc-head strong{font-size:20px}.aoc-record{flex-wrap:wrap}}

body #role{min-height:44px}body dialog.account-roles-modal{width:min(640px,calc(100vw - 24px));max-width:calc(100vw - 24px);padding:24px}#account-roles-form fieldset{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border:0;padding:0;margin:16px 0}#account-roles-form legend{font-size:13px;margin-bottom:12px}#account-roles-form fieldset label{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px;border:1px solid #e8edf5;border-radius:6px}#account-roles-form input[type=checkbox]{width:18px;height:18px;margin:0}#account-roles-form .actions{display:flex;gap:8px;justify-content:flex-end}#account-roles-form .actions button,[data-user-roles]{min-height:44px}.ref-account-row>div:last-child{display:flex;flex-wrap:wrap;gap:8px}.ref-account-row>div:nth-child(2)>small{display:block}@media(max-width:600px){body dialog.account-roles-modal{padding:16px}#account-roles-form fieldset{grid-template-columns:repeat(2,minmax(0,1fr))}body header .role-label select{min-height:44px}}

/* Pending reviews reuse the confirmed homepage; six visible rows, native disclosure for the rest. */
.ref-todos>a,.ref-todo-more>a{min-height:44px}.ref-todos strong,.ref-todos small{overflow-wrap:anywhere}.ref-todo-more>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:#286bff;font-size:12px}.ref-todo-more>summary:focus-visible{outline:2px solid #286bff;outline-offset:2px}

/* A single visible save action after Excel generation. */
.operations-export-actions button[hidden]{display:none}
.operations-export-actions .excel-save-slot:empty{display:none}
.operations-export-actions .excel-save-link{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;padding:0 16px;border:1px solid #286bff;border-radius:5px;background:#286bff;color:#fff;text-decoration:none;font-size:13px}
@media(max-width:900px){.operations-export-actions .excel-save-slot{flex:1 1 calc(50% - 4px)}.operations-export-actions .excel-save-link{width:100%}}

/* Product revision: existing C shell; quantitative mobile controls. */
#modal.catalog-server-dialog{box-sizing:border-box;width:min(900px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:24px;overflow:auto;border:1px solid #e3e9f3;border-radius:12px}
#modal.catalog-server-dialog #modal-body{min-width:0;padding:0}
.catalog-server-dialog h2{font-size:20px;line-height:28px;margin:0 0 12px}
.catalog-edit-status{font-size:13px;color:#64748b;margin:0 0 16px}
.catalog-edit-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.catalog-server-dialog label{display:grid;gap:6px;font-size:14px;min-width:0}
.catalog-server-dialog input:not([type=checkbox]),.catalog-server-dialog select,.catalog-server-dialog textarea{box-sizing:border-box;width:100%;min-width:0;min-height:44px;font-size:14px;line-height:1.5;padding:10px 12px}
.catalog-server-dialog textarea{min-height:72px;resize:vertical}
.catalog-server-dialog [readonly]{background:#f6f8fc;color:#64748b}
.catalog-server-dialog button{min-height:44px}
.catalog-server-dialog .catalog-edit-confirm{display:flex;align-items:center;gap:8px;min-height:44px;margin:12px 0}
.catalog-edit-confirm input[type=checkbox]{width:20px;height:20px;min-height:20px;flex:0 0 20px;margin:0}
.catalog-edit-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:16px}
.catalog-edit-actions button{min-width:108px}
.catalog-server-dialog .table-wrap{max-width:100%;overflow:auto}
.catalog-server-dialog td{overflow-wrap:anywhere}
.catalog-edit-extra{margin-top:12px;border-top:1px solid #e8edf5;padding-top:8px}
.catalog-edit-extra>summary{min-height:44px;padding:10px 0;cursor:pointer;font-size:14px}
.catalog-server-dialog [data-sc-error]{color:#b42318;font-size:14px;margin:12px 0 0}
@media(max-width:620px){#modal.catalog-server-dialog{padding:12px}.catalog-edit-fields{grid-template-columns:minmax(0,1fr)}.catalog-edit-actions button{flex:1;min-width:0}.catalog-diff-compact table{min-width:0!important;width:100%}.catalog-diff-compact thead{display:none}.catalog-diff-compact tr{display:block;padding:10px 0;border-bottom:1px solid #e8edf5}.catalog-diff-compact td{display:grid;grid-template-columns:48px minmax(0,1fr);gap:8px;padding:5px 0!important;border:0!important;white-space:normal!important}.catalog-diff-compact td::before{content:attr(data-label);color:#64748b;font-size:12px}.catalog-diff-compact td[data-label="新值"]{color:#246bff}}

/* Attachment capacity follows the approved business form sizes. */
[data-attachment-capacity] .attachment-capacity-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}
[data-attachment-capacity] form input,[data-attachment-capacity] button{min-height:44px}
[data-attachment-capacity] .attachment-capacity-confirm{display:flex;align-items:center;gap:8px;margin:12px 0}
[data-attachment-capacity] .attachment-capacity-confirm input{width:20px;height:20px;min-height:20px;flex:none}
[data-attachment-capacity] details summary{min-height:44px;display:flex;align-items:center}
@media(max-width:620px){[data-attachment-capacity] .attachment-capacity-fields{grid-template-columns:1fr;gap:12px}[data-attachment-capacity] .section-head{flex-wrap:wrap}[data-attachment-capacity] .attachment-capacity-stats{grid-template-columns:1fr}}

.first-use-guide{margin-bottom:16px}.first-use-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:12px 0}.first-use-stats>div{background:#f5f8ff;border-radius:5px;padding:12px 14px;display:flex;flex-direction:column;gap:6px}.first-use-stats span{color:#647084;font-size:13px}.first-use-stats strong{font-size:20px;color:#242b38}.first-use-actions{gap:8px;flex-wrap:wrap}.first-use-actions a,.first-use-guide button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0 14px}.first-use-actions a{border-radius:5px}.first-use-actions a.primary{background:#286bff;color:#fff}.first-use-guide .section-head{flex-wrap:wrap;gap:8px}@media(max-width:620px){.first-use-stats{grid-template-columns:1fr;gap:8px}.first-use-stats>div{flex-direction:row;align-items:center;justify-content:space-between;gap:8px}.first-use-stats strong{font-size:18px}}

.catalog-managed-photo{display:inline-flex;flex-direction:column;align-items:center;gap:4px;max-width:100%;vertical-align:middle}.catalog-managed-photo img{max-width:100%}.catalog-managed-photo [data-cm-status]{font-size:12px;color:#647084;white-space:normal}.catalog-managed-photo button{min-height:44px}.catalog-photo-editor{border:1px solid #e8edf5;border-radius:6px;padding:12px;margin:0 0 16px}.catalog-photo-editor h3{font-size:14px;margin:0 0 8px}.catalog-photo-strip{display:flex;align-items:center;flex-wrap:wrap;gap:12px;min-height:64px}.catalog-photo-actions{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin-top:8px}.catalog-photo-actions label{flex:1;min-width:0}.catalog-photo-actions input{min-height:44px;max-width:100%;width:100%}.catalog-photo-actions button{min-height:44px}.catalog-photo-editor p{margin:8px 0 0;font-size:12px;overflow-wrap:anywhere}@media(max-width:620px){.catalog-photo-actions{align-items:stretch}.catalog-photo-actions label{flex-basis:100%}}

.catalog-managed-photo .catalog-photo-open{border:0;background:transparent;padding:0;display:block;max-width:100%;cursor:zoom-in}.catalog-photo-viewer{box-sizing:border-box;width:min(960px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:16px;border:1px solid #e3e9f3;border-radius:10px}.catalog-photo-viewer::backdrop{background:rgba(15,29,51,.5)}.catalog-photo-viewer h3{font-size:16px;margin:0 0 12px}.catalog-photo-viewer>img{display:block;width:100%;max-height:calc(100dvh - 150px);object-fit:contain;margin-bottom:12px}.catalog-photo-viewer>button{min-height:44px;min-width:108px}

.order-full-id{margin:0 0 16px;color:var(--muted,#64748b);font-size:13px}.order-full-id summary{min-height:44px;display:flex;align-items:center;cursor:pointer}.order-full-id summary::before{content:"▸";margin-right:8px}.order-full-id[open] summary::before{content:"▾"}.order-full-id code{display:block;overflow-wrap:anywhere;padding:8px 12px;background:#fff;border:1px solid #e8edf5;border-radius:6px}

/* Operations preview: 20 screen rows; full output is prepared separately. */
.report-preview-pages{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0}
.report-preview-pages button,.report-preview-pages select{min-width:72px;min-height:44px}
.report-preview-pages label{display:flex;align-items:center;gap:8px;font-size:13px;color:#647084}
.report-preview-pages select{max-width:160px}
.report-preview-pages [role="status"]{font-size:13px;line-height:1.5;color:#647084;overflow-wrap:anywhere}
@media screen and (min-width:901px){.operations-preview-modal [data-report-pages] .report-mobile-cards{display:none}.operations-preview-modal [data-report-pages] .operations-preview-table{display:block}}
@media(max-width:600px){.report-preview-pages [role="status"]{flex-basis:100%}.report-preview-pages button{flex:1}.report-preview-pages label{flex-basis:100%;justify-content:space-between}.report-preview-pages select{min-width:0;width:calc(100% - 36px);max-width:none}}

/* Supplier opening facts reuse the same financial form and source ledger. */
@media(max-width:640px){body:has(.sl-page) #erp-page-title{font-size:16px;white-space:nowrap}body:has(.sl-page) header .role-label{flex:0 0 72px}body:has(.sl-page) header .role-label select{width:72px;min-width:0}#modal:has(.sl-modal){padding:0;overflow:hidden}#modal-body.sl-modal{padding:16px;max-height:calc(90dvh - 2px);overflow:auto}}
.sl-metrics[hidden]{display:none}.so-facts{grid-template-columns:repeat(3,minmax(0,1fr))}.so-fields textarea{width:100%;min-height:72px;resize:vertical;padding:10px;border:1px solid var(--line);border-radius:5px;font:inherit}.so-fields label:has(textarea),.so-fields .sl-confirm{grid-column:1/-1}.sl-modal .sl-actions{gap:8px}.sl-modal .sl-actions button{min-height:44px}.sl-modal .sl-fields{min-width:0}.sl-modal .sl-fields label{min-width:0}.sl-modal .sl-fields :is(input,select,textarea){max-width:100%;min-width:0}.so-fields [role=alert]{color:var(--red)}@media(max-width:640px){.so-facts{grid-template-columns:1fr}.sl-modal .sl-actions button{flex:1;min-width:0}.sl-modal{max-width:100%}}

/* Opening scope: six supplier rows, three values per row, one supplier form at a time. */
.sos-page{min-width:0}.sos-page h2{font-size:18px;margin:0 0 4px}.sos-page>.sl-head{margin-bottom:16px}.sos-actions{margin:16px 0;align-items:center}.sos-actions>span{font-size:13px;color:var(--muted)}.sos-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:16px 0;border-bottom:1px solid #e8edf5;align-items:center}.sos-row>div{min-width:0}.sos-row small{display:block;color:#647084;font-size:12px;overflow-wrap:anywhere}.sos-row button{min-height:44px}.sos-pairs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:10px}.sos-pairs span{font-size:12px;color:#647084}.sos-pairs b{display:block;color:#242b38;font-size:14px;font-weight:600}.sos-metrics{margin:16px 0}.sos-page details{border-top:1px solid #e8edf5;margin-top:12px}.sos-page summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:13px;color:#286bff}.sos-page summary::before{content:'▸';margin-right:6px}.sos-page details[open]>summary::before{content:'▾'}.sos-page p{overflow-wrap:anywhere}.sos-modal select{width:100%;min-height:44px}.sos-modal .sl-confirm{display:flex;gap:8px;align-items:center;font-size:13px}.sos-modal .sl-confirm input{width:18px;height:18px;min-height:18px;flex:0 0 18px}@media(max-width:640px){.sos-row{grid-template-columns:minmax(0,1fr);gap:8px;padding:12px 0}.sos-row button{justify-self:start}.sos-pairs{gap:8px}.sos-pairs b{font-size:13px}.sos-actions{align-items:stretch}.sos-actions>span{flex-basis:100%}.sos-actions button{min-height:44px}.sos-metrics strong{font-size:20px}.sos-page>.sl-head{align-items:flex-start;gap:8px}}

/* Bank reconciliation: six rows, three metric cells, explicit source matching. */
.br-page{min-width:0}.br-page h2{font-size:18px;margin:0}.br-page h3{font-size:15px;margin:0 0 12px}.br-page .cf-panel{margin-bottom:16px}.br-page p,.br-page small,.br-modal p,.br-modal small{overflow-wrap:anywhere}.br-page small{display:block;color:#647084;font-size:13px}.br-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.br-values>div{border:1px solid #e8edf5;background:#f7f9fe;border-radius:6px;padding:14px;min-width:0}.br-values dt{font-size:13px;color:#647084}.br-values dd{font-size:20px;font-weight:600;margin:8px 0 0;overflow-wrap:anywhere}.br-values>div:first-child{background:#edf3ff;border-color:#dce7ff}.br-list li{gap:12px;min-width:0}.br-list li>div{min-width:0;flex:1}.br-page details{border-top:1px solid #e8edf5;margin-top:12px}.br-page summary,.br-modal summary{min-height:44px;display:flex;align-items:center;color:#286bff;font-size:13px;cursor:pointer}.br-page summary::before,.br-modal summary::before{content:'▸';margin-right:6px}.br-page details[open]>summary::before,.br-modal details[open]>summary::before{content:'▾'}.br-page button,.br-page .cf-clear,.br-modal button{min-height:44px}.br-page [aria-pressed=true]{color:#286bff;background:#edf3ff;border-color:#bfd2ff}.br-match{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;min-width:0}.br-match>section{min-width:0}.br-match .br-choice{display:grid;grid-template-columns:minmax(0,1fr);padding:12px 0}.br-choice>label:first-child{display:flex;align-items:center;gap:8px;min-width:0}.br-choice input[type=checkbox]{width:18px;height:18px;min-height:18px;flex:0 0 18px}.br-choice span{font-size:13px;overflow-wrap:anywhere}.br-choice small{display:block}.br-modal :is(input,select,textarea){min-width:0;max-width:100%}.br-modal input:not([type=checkbox]),.br-modal select{min-height:44px}.br-modal textarea{min-height:72px}.br-modal .ft-confirm input{width:18px;height:18px;min-height:18px;flex:0 0 18px}.br-modal .ft-confirm{display:flex;align-items:center;gap:8px}.br-modal .br-list{margin:0;padding:0;list-style:none}.br-modal .br-list li{border-bottom:1px solid #e8edf5}.br-modal .cf-actions{gap:8px}
@media(max-width:640px){.br-values{gap:8px}.br-values>div{padding:10px}.br-values dd{font-size:16px}.br-list li{flex-wrap:wrap}.br-list li>div{flex-basis:100%}.br-match{grid-template-columns:1fr}.br-modal .cf-actions button{flex:1;min-width:0}.br-page .cf-heading{align-items:flex-start;gap:8px}.br-page .fbc-top{flex-wrap:wrap;gap:12px}.br-page .cf-actions{gap:8px}.br-page h1{font-size:22px}.br-values dt{font-size:12px}}

.br-page .cf-panel{padding:20px;box-sizing:border-box}.br-page .fbc-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.br-page .fbc-top p{margin:6px 0 0;font-size:13px;color:#647084}.br-page .badge{display:inline-flex;align-items:center;background:#edf3ff;color:#286bff;border-radius:4px;padding:4px 8px;font-size:12px;line-height:20px}.br-page .cf-actions:empty{display:none}.br-page .br-list{list-style:none;margin:0;padding:0}.br-page .br-list>li{display:flex;align-items:center;padding:12px 0;border-bottom:1px solid #e8edf5}.br-page .br-list>li:last-child{border-bottom:0}.br-page .br-list strong{font-size:14px}.br-page .br-list small{margin-top:4px}.br-page .br-list details{margin-top:6px;border:0}.br-page .br-list details summary{min-height:44px}.br-page details p{font-size:13px;line-height:1.5}.br-page .cf-heading{margin-bottom:16px}@media(max-width:640px){.br-page .cf-panel{padding:16px}.br-page .fbc-top{align-items:flex-start}.br-page .br-list>li{gap:8px}.br-page .br-list>li>div{flex-basis:100%}}

@media(max-width:640px){.br-values{grid-template-columns:repeat(2,minmax(0,1fr))}.br-values>div:first-child{grid-column:1/-1}.br-values>div:first-child dd{font-size:20px;white-space:nowrap}}

/* Source snapshots: opened evidence occupies a full row, not a narrow flex column. */
[data-month-snapshots] .fe-payment{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px 12px}[data-month-snapshots] .fe-payment>div:first-child{flex:1 1 240px;min-width:0}[data-month-snapshots] .fe-payment>button{order:1;min-height:44px}[data-month-snapshots] .fe-payment>details{order:2;flex:0 1 auto;min-width:0;max-width:100%}[data-month-snapshots] .fe-payment>details[open]{flex:1 1 100%;width:100%}[data-month-snapshots] details summary{min-height:44px;cursor:pointer}[data-month-snapshots] details p{overflow-wrap:anywhere;font-size:13px;line-height:1.5;margin:8px 0}[data-month-snapshots] details small{overflow-wrap:anywhere;display:block}@media(max-width:640px){[data-month-snapshots] .fe-payment>div:first-child{flex-basis:100%}[data-month-snapshots] .fe-payment>details{flex-basis:100%}}

.br-modal [data-fs-other][hidden]{display:none}.br-modal [data-fs-other] input{min-height:44px}.br-page .br-list>li>.badge{flex:0 1 auto}.br-page .br-list>li button{min-width:64px}

/* Six original manufacturing categories, same monthly report shell. */
.mpc-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}
.mpc-groups a{display:grid;gap:4px;min-width:0;min-height:88px;padding:12px;background:#f6f9ff;border:1px solid #e8edf5;border-radius:6px;color:#647084;text-decoration:none}
.mpc-groups a[aria-current]{border-color:#286bff;background:#edf3ff}
.mpc-groups strong{font-size:18px;color:#242b38;overflow-wrap:anywhere}
.mpc-groups small{font-size:12px}
.mpc-list{padding:0;margin:0;list-style:none}
.mpc-row{border-bottom:1px solid #edf1f7;padding:12px 0;min-width:0}
.mpc-row strong{display:flex;justify-content:space-between;gap:12px;font-size:14px}
.mpc-row small{display:block;color:#647084;font-size:12px;overflow-wrap:anywhere;line-height:1.6}
.mpc-row summary,.mpc-more>summary{min-height:44px;display:flex;align-items:center;color:#286bff;cursor:pointer;font-size:13px}
.mpc-row p{overflow-wrap:anywhere;margin:4px 0}
.mpc-page h3{font-size:15px;margin:8px 0}
@media(max-width:600px){.mpc-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mpc-groups a{padding:10px}.mpc-groups strong{font-size:16px}.mpc-row strong{flex-wrap:wrap}.mpc-row strong span{margin-left:auto}}

.mpc-groups>a::before{content:none;display:none}
@media(max-width:600px){.mr-tabs[aria-label="成本核对视图"]{flex-wrap:wrap;overflow:visible}}

.scm-form-row{display:grid;gap:10px;min-width:0;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid #e8edf5}
.scm-form-row label{display:grid;gap:6px;min-width:0}
.scm-form-row input,.scm-form-row select{width:100%;max-width:100%}
.scm-form-row button{justify-self:start}

.scm-page .cf-panel{padding:18px;border-color:#e8edf5;border-radius:6px}
.scm-page .cf-heading h1{font-size:22px}
.scm-page .br-list{list-style:none;padding:0;margin:0}
.scm-page .br-list>li{display:flex;align-items:start;border-bottom:1px solid #edf1f7;padding:12px 0;flex-wrap:wrap}
.scm-page .br-list>li>div{flex:1;min-width:140px}
.scm-page a.mr-source-link{display:inline-flex;align-items:center;min-height:44px}
.scm-page .cf-heading{gap:12px;flex-wrap:wrap}

.scm-modal .fe-form-actions button{white-space:nowrap}
@media(max-width:600px){.scm-modal .fe-form-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.scm-modal .fe-form-actions button{width:100%;min-width:0}.scm-modal .fe-form-actions:has([data-scm-back]) button[type=submit]{grid-column:1/-1}}
