:root{font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:#213445;background:#f4f6f8;font-size:14px;line-height:1.5;font-synthesis:none;--green:#17695f;--muted:#74818c;--line:#e2e8ed;--white:#fff}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select,summary{outline-offset:3px}button,summary{cursor:pointer;touch-action:manipulation}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #278d80}[hidden]{display:none!important}
.site-header{border-bottom:1px solid #e2e8ed;background:#fff}.header-inner{max-width:1200px;margin:auto;padding:14px 32px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;gap:10px;align-items:center;text-decoration:none;color:var(--green);font-size:16px;font-weight:650;letter-spacing:1px}.brand small{display:block;font-size:9px;font-weight:400;letter-spacing:2px;color:#8a9b9a;margin-top:3px}.brand-mark{height:27px;width:27px;display:flex;gap:3px;align-items:flex-end}.brand-mark i{display:block;border:1.5px solid #497c71;width:7px;height:23px;transform:skewY(-18deg)}.brand-mark i:nth-child(2){height:28px}.brand-mark i:nth-child(3){height:20px}.local-label{display:flex;align-items:center;gap:7px;color:#81918c;font-size:11px}.local-label>span{width:5px;height:5px;border-radius:50%;background:#7ca58e}
main{max-width:1200px;margin:auto;padding:24px 32px 22px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.eyebrow{display:none}h1{font-size:27px;letter-spacing:1px;line-height:1.3;margin:0;font-weight:600;color:#244b45}.page-description{font-size:11px;line-height:1.7;margin:7px 0 0;color:#71858a}.update-button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:10px 17px;border:1px solid var(--green);border-radius:6px;background:var(--green);color:#fff;font-size:13px;white-space:nowrap}.update-button:hover{background:#105b52}.update-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.metrics{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:15px 21px;margin-bottom:15px}.metric{display:flex;align-items:center;gap:13px}.metric p{margin:0;font-size:12px;color:#667d83;white-space:nowrap}.metric>div{display:flex;align-items:baseline;gap:7px}.metric strong{font-size:28px;line-height:1;font-weight:600;color:#285b51;font-variant-numeric:tabular-nums}.metric>div>span{font-size:11px;color:#8a999e}.metric>small,.followup-counts>small{display:none}.followup-counts{font-size:12px;color:#78878e;line-height:1.6}.followup-counts p{margin:0}.followup-counts strong{font-size:21px;color:#355f56;font-weight:550;font-variant-numeric:tabular-nums}.followup-counts p>span{margin:0 22px;color:#b4bec4}
.data-meta{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;font-size:10px;line-height:1.8;color:#7b8d95;margin:14px 1px 10px}.scope-note{display:block;margin-top:2px;font-size:9px;color:#91a0a6}.materials-panel{background:#fff;border:1px solid var(--line);border-radius:8px;overflow:visible}.panel-heading{padding:15px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:66px}h2{margin:0;font-size:15px;font-weight:600;color:#395a61}h2>span{display:inline-block;margin-left:10px;font-size:11px;font-weight:400;color:#89989f;white-space:nowrap}.table-tools{display:flex;align-items:center;gap:14px}.date-filter{display:flex;align-items:center;gap:7px;color:#71858d;font-size:11px;white-space:nowrap}.table-tools input,.table-tools select{height:35px;border:1px solid #d6e0e6;border-radius:5px;padding:6px 10px;font-size:12px;color:#35545e;background:#fff}.table-tools input{min-width:240px}.table-tools input::placeholder{color:#9aa8af}.table-tools select{min-width:137px}.consumption-scroll{overflow:visible;min-height:240px}
.consumption-table{width:100%;min-width:660px;border-collapse:separate;border-spacing:0;table-layout:fixed;text-align:left;font-size:12px}.consumption-table .batch-col{width:25%}.consumption-table .material-col{width:43%}.consumption-table .length-col{width:15%}.consumption-table .bars-col{width:17%}.consumption-table th{position:sticky;top:0;z-index:2;background:#edf2f5;color:#526779;font-size:12px;font-weight:600;padding:9px 12px;border-top:1px solid var(--line);border-bottom:1px solid #dce5ea;white-space:nowrap}.consumption-table td{padding:7px 12px;line-height:1.4;vertical-align:middle;border-bottom:1px solid #e3e9ed;background:#fff;color:#536474;overflow-wrap:anywhere}.consumption-table th:not(:last-child),.consumption-table .consumption-row td:not(:last-child){border-right:1px solid #e3e9ed}.consumption-table .numeric{text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}.consumption-table .batch-cell{font-size:11px;color:#6d818b;vertical-align:middle}.consumption-table .consumption-row:hover td:not(.batch-cell){background:#f7faf9}.consumption-table .bars-cell{font-size:13px;font-weight:650;color:#276b5f}.consumption-table .length-cell{font-size:12px;color:#69818a}.material-display{display:block;line-height:1.4}.material-name{font-size:12px;font-weight:500;color:#46606b}.material-color{font-size:11px;color:#80909a;margin-left:4px}.material-color:before{content:'· ';color:#a1adb3}.material-code{display:block;margin-top:2px;color:#98a5ad;font-size:10px;font-weight:400;line-height:1.3}.review-label{display:inline-block;margin-top:3px;font-size:10px;color:#9d7838;background:#fff5df;border-radius:3px;padding:1px 4px}.consumption-table .consumption-date-header td{background:#2c7267;color:#fff;border-top:2px solid #1c554c;border-bottom:1px solid #1c554c;padding:6px 12px}.consumption-date-label{color:#fff;font-weight:700;margin-right:12px;white-space:nowrap}.consumption-date-sum{color:#cfe8e2;font-size:11px;white-space:nowrap}.panel-foot{padding:12px 18px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fafcfc;color:#84949c;font-size:10px;line-height:1.8}.panel-foot p{margin:0}.panel-foot strong{font-weight:550;color:#3d7164;font-size:12px;white-space:nowrap}
.empty-state{text-align:center;padding:48px 20px;color:#8a9aa2}.empty-state strong{display:block;color:#607b85;font-weight:500;font-size:14px;margin:10px 0 7px}.empty-state p{font-size:11px;line-height:1.8;margin:0}.empty-mark{font-size:32px;line-height:1;color:#b0bfc2}.notice{background:#fff7e5;border:1px solid #eddbb3;color:#815f26;border-radius:6px;padding:11px 15px;margin-bottom:16px;font-size:12px;line-height:1.8}.notice.error{color:#a35d49;border-color:#e8d1c8;background:#fcf3ef}.notice.success{color:#4f7963;border-color:#d0e1d5;background:#f1f8f3}.sync-panel{border:1px solid #d4e5dd;background:#eff7f3;border-radius:7px;padding:15px 18px;margin-bottom:16px}.sync-copy{display:flex;align-items:center;gap:12px}.sync-copy strong{font-size:12px;font-weight:550;color:#557a68}.sync-copy p{font-size:11px;color:#8c9e95;margin:5px 0 0;line-height:1.7}.sync-count{font-size:11px;color:#88a192;margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums}.spinner{border:2px solid #d4e4dc;border-top-color:#558974;border-radius:50%;width:17px;height:17px;flex-shrink:0;animation:spin .8s linear infinite}progress{appearance:none;display:block;width:100%;height:3px;margin:12px 0 0;border:0;border-radius:3px;background:#dde9e2;overflow:hidden}progress::-webkit-progress-bar{background:#dde9e2}progress::-webkit-progress-value{background:#8db7a2}progress::-moz-progress-bar{background:#8db7a2}
.reviews-panel{margin-top:17px;border:1px solid #e6dfd0;border-radius:7px;background:#fcfbf5;overflow:hidden}.reviews-panel summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 18px;list-style:none}.reviews-panel summary::-webkit-details-marker{display:none}.reviews-panel summary>span:first-child{display:flex;align-items:center;gap:8px}.reviews-panel summary strong{color:#977a4d;font-size:12px;font-weight:500}.reviews-panel summary small{color:#af9b79;font-size:10px}.review-dot{width:5px;height:5px;border-radius:50%;background:#bca06b}.detail-hint{display:flex;align-items:center;gap:10px;font-size:10px;color:#ad9e84}.reviews-panel details[open] .detail-hint>span{transform:rotate(180deg)}.review-list{padding:0 18px 14px;margin:0;list-style:none}.review-list li{display:flex;gap:20px;justify-content:space-between;padding:12px 0;border-top:1px solid #ebe5d8;font-size:11px;line-height:1.8}.review-list strong{color:#9a8057;min-width:100px;font-weight:500}.review-list span{color:#a3967e;flex:1}footer{display:flex;justify-content:space-between;gap:20px;color:#93a0a7;font-size:10px;line-height:1.8;margin-top:17px}footer p{margin:0}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:900px){.header-inner{padding:13px 22px}main{padding:22px}.panel-heading{align-items:flex-start;flex-direction:column;gap:12px}.table-tools{width:100%}.table-tools input{flex:1;min-width:0}.metrics{gap:18px}.followup-counts p>span{margin:0 13px}.data-meta{font-size:9px}.page-description{font-size:11px}.update-button{font-size:12px}}
@media(max-width:520px){.header-inner{padding:12px 17px}.brand{font-size:15px}.local-label{font-size:10px}main{padding:20px 13px}.page-heading{gap:12px}.page-heading h1{font-size:25px}.page-description{font-size:10px;max-width:195px}.update-button{min-height:40px;padding:9px 11px;font-size:11px;gap:6px}.update-button svg{width:14px;height:14px}.metrics{padding:13px 14px;flex-wrap:wrap;gap:10px}.metric{gap:8px}.metric p{font-size:10px}.metric strong{font-size:24px}.followup-counts{font-size:10px}.followup-counts strong{font-size:17px}.followup-counts p>span{margin:0 8px}.data-meta{display:block;margin-top:12px}.data-meta>span{display:block}.data-meta>span:last-child{margin-top:3px}.panel-heading{padding:13px 14px}.panel-heading h2{font-size:13px}h2>span{font-size:10px}.table-tools{flex-wrap:wrap;gap:9px}.date-filter{font-size:10px}.table-tools select{min-width:145px}.table-tools input{width:100%;flex-basis:100%;font-size:11px;min-height:38px}.panel-foot{padding:11px 14px;align-items:flex-start;flex-direction:column;gap:3px;font-size:9px}.panel-foot strong{font-size:11px}.consumption-table{min-width:625px}.consumption-table td{padding:7px 10px}.review-list li{display:block}.review-list span{display:block;margin-top:3px}.reviews-panel summary{padding:14px}.detail-hint{font-size:9px}.sync-panel{padding:14px}.sync-copy{align-items:flex-start;gap:8px}.sync-count{font-size:9px}footer{display:block;font-size:9px}footer p+p{margin-top:4px}}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}}

.panel-title{display:flex;flex-direction:column;gap:4px}.panel-total{font-size:11px;color:#3d7164;font-variant-numeric:tabular-nums}@media(max-width:740px){.consumption-scroll{overflow-x:auto}}

.page-nav{display:flex;gap:6px;margin:0 0 18px;border-bottom:1px solid #dce5e6}.page-nav a{display:block;padding:9px 18px 10px;text-decoration:none;color:#7a8d94;font-size:13px;border-bottom:2px solid transparent;margin-bottom:-1px}.page-nav a:hover{color:var(--green);background:#edf4f1}.page-nav a.active{color:var(--green);border-bottom-color:var(--green);font-weight:600}
.catalog-metrics{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:15px 21px;margin-bottom:15px}.catalog-metrics>div{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.catalog-metrics span{color:#78878e;font-size:12px}.catalog-metrics strong{color:#285b51;font-size:25px;line-height:1;font-weight:600;font-variant-numeric:tabular-nums}.catalog-metrics small{font-size:11px;color:#8a999e}.catalog-metrics .catalog-unknown{font-size:10px;color:#9d7838;flex-basis:100%;text-align:right}
.catalog-scroll{overflow-x:auto;min-height:240px}.materials-table{width:100%;min-width:710px;border-collapse:separate;border-spacing:0;table-layout:fixed;text-align:left;font-size:12px}.materials-table .catalog-name-col{width:29%}.materials-table .catalog-code-col{width:17%}.materials-table .catalog-color-col{width:26%}.materials-table .catalog-length-col{width:12%}.materials-table .catalog-bars-col{width:16%}.materials-table th{position:sticky;top:0;z-index:2;background:#edf2f5;color:#526779;font-size:12px;font-weight:600;padding:9px 12px;border-top:1px solid var(--line);border-bottom:1px solid #dce5ea;white-space:nowrap}.materials-table td{padding:10px 12px;line-height:1.5;vertical-align:middle;border-bottom:1px solid #e3e9ed;background:#fff;color:#536474;overflow-wrap:anywhere}.materials-table th:not(:last-child),.materials-table td:not(:last-child){border-right:1px solid #e3e9ed}.materials-table .numeric{text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}.materials-table .bars-cell{font-size:13px;font-weight:650;color:#276b5f}.materials-table .catalog-code{font-size:11px;color:#7a8f97}.materials-table .length-cell{color:#69818a}.materials-table tbody tr:hover td{background:#f7faf9}
@media(max-width:740px){.catalog-metrics{display:grid;grid-template-columns:1fr 1fr;padding:15px 18px;gap:18px 20px}.catalog-metrics>div{gap:7px}.catalog-metrics strong{font-size:23px}.catalog-metrics span{font-size:11px}.catalog-metrics .catalog-unknown{text-align:left}.page-nav{margin-bottom:15px}.page-nav a{padding:9px 15px}.materials-table{min-width:690px}}
.materials-table .catalog-series-header td,.materials-table .catalog-series-header:hover td{background:#2c7267;color:#fff;border-top:2px solid #1c554c;border-bottom:1px solid #1c554c;padding:8px 12px}.catalog-series-label{font-size:13px;font-weight:650;margin-right:14px}.catalog-series-sum{color:#cfe8e2;font-size:11px;white-space:nowrap}.catalog-series-note{display:block;margin-top:3px;color:#d0e5df;font-size:10px;font-weight:400;line-height:1.6}.materials-table .catalog-material-row:hover td{background:#f7faf9}#catalog-series{max-width:190px}
.catalog-variant{display:block;margin-top:3px;color:#7b8f96;font-size:10px;line-height:1.5}

/* Neutral text, soft series bands; green is reserved for primary actions. */
.brand{color:#36455b}.brand-mark i{border-color:#718298}h1{color:#293648}h2{color:#364152}
.metric strong,.followup-counts strong,.catalog-metrics strong{color:#2e3c50}
.consumption-table .bars-cell,.materials-table .bars-cell{color:#35445b}
.panel-total,.panel-foot strong{color:#637086}.page-nav a:hover{background:#f1f4f8}
.consumption-table .consumption-date-header td{background:#e9edf4;color:#33445b;border-top-color:#d8e0eb;border-bottom-color:#d8e0eb}
.consumption-date-label{color:#33445b}.consumption-date-sum{color:#59677a}
.catalog-series-header[data-series^="jianzhi"]{--series-bg:#f7f2e8;--series-line:#e8dcc5;--series-accent:#b99a60}
.catalog-series-header[data-series^="zhonglv"]{--series-bg:#edf3fa;--series-line:#d6e2f0;--series-accent:#7b9fc9}
.catalog-series-header[data-series^="hanse"]{--series-bg:#f2eff9;--series-line:#e0d9ef;--series-accent:#a08ac7}
.catalog-series-header[data-series^="guangya"]{--series-bg:#edf4f7;--series-line:#d6e5ec;--series-accent:#82a7b8}
.catalog-series-header[data-series^="huangya"]{--series-bg:#f8eef2;--series-line:#ecd9e1;--series-accent:#bd8fa3}
.materials-table .catalog-series-header td,.materials-table .catalog-series-header:hover td{background:var(--series-bg,#f0f2f6);color:#334155;border-top:1px solid var(--series-line,#dce2ea);border-bottom:1px solid var(--series-line,#dce2ea);border-left:4px solid var(--series-accent,#9aa7b8)}
.catalog-series-label{color:#334155}.catalog-series-sum{color:#59677a}.catalog-series-note{color:#59677a}
.materials-table .catalog-code{color:#5e7087}

/* Browse a series first, then reveal individual color/length specifications. */
.materials-page .data-meta{justify-content:flex-end;margin:5px 1px 16px}
.materials-page .data-meta>span:first-child{display:none}
.materials-page .catalog-metrics{justify-content:flex-start;gap:22px;padding:0;margin:0 0 7px;border:0;border-radius:0;background:transparent;font-size:12px}
.materials-page .catalog-metrics>div{gap:5px}
.materials-page .catalog-metrics strong{font-size:15px;font-weight:600;color:#465367}
.materials-page .catalog-metrics span,.materials-page .catalog-metrics small{font-size:11px;color:#7b8796}
.materials-page .catalog-metrics .catalog-bars-stat{margin-left:auto}
.materials-page .catalog-metrics .catalog-unknown{font-size:10px;color:#96723c}
#catalog-panel{border:0;background:transparent}
#catalog-panel .panel-heading{padding:0 0 20px;gap:20px}
#catalog-panel .panel-foot{padding:13px 0;background:transparent;border-top:0}
#catalog-panel .catalog-scroll{overflow:visible;min-height:220px}
#catalog-panel .table-tools{gap:10px}
#catalog-panel .table-tools input{min-width:230px}
#catalog-panel .table-tools select{min-width:120px;max-width:165px}
.catalog-heading-title{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.catalog-back{border:0;background:transparent;color:#66778a;padding:0;font-size:12px;line-height:1.5}
.catalog-back:hover{color:#35445a}
.series-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.series-card{display:flex;flex-direction:column;align-items:stretch;gap:0;min-height:142px;text-align:left;border:1px solid #e0e5ec;border-radius:10px;background:#fff;padding:20px;color:#354153;box-shadow:0 1px 2px #2e405606;transition:border-color .15s,box-shadow .15s,transform .15s}
.series-card:hover{border-color:#b9c5d3;box-shadow:0 4px 15px #2e40560b;transform:translateY(-1px)}
.series-card-heading{display:flex;align-items:center;gap:9px;min-height:24px}
.series-card-heading i{width:7px;height:7px;border-radius:50%;flex-shrink:0;background:var(--series-accent,#9aa7b8)}
.series-card-heading strong{font-weight:600;font-size:14px;line-height:1.5;flex:1}
.series-card-arrow{font-size:17px;color:#a6b1be;font-weight:400;align-self:flex-start}
.series-card-count{display:block;margin:9px 0 21px 16px;font-size:11px;color:#8994a2}
.series-card-count>span{margin:0 6px;color:#bac3ce}
.series-card-footer{display:block;margin-top:auto;padding-top:12px;border-top:1px solid #f0f2f5}
.material-quantity{display:inline-flex;align-items:baseline;gap:6px;white-space:nowrap;font-variant-numeric:tabular-nums}
.material-quantity>span{font-size:10px;color:#8b95a2;margin-right:5px}
.material-quantity strong{font-size:17px;color:#3c485a;font-weight:600;line-height:1.25}
.material-quantity>small{font-size:10px;color:#8b95a2}
.material-quantity-unknown{display:block;margin-top:5px;color:#96723c;font-size:10px}
.series-card[data-series^="jianzhi"],.series-materials[data-series^="jianzhi"]{--series-accent:#b99a60}
.series-card[data-series^="zhonglv"],.series-materials[data-series^="zhonglv"]{--series-accent:#7b9fc9}
.series-card[data-series^="hanse"],.series-materials[data-series^="hanse"]{--series-accent:#a08ac7}
.series-card[data-series^="guangya"],.series-materials[data-series^="guangya"]{--series-accent:#82a7b8}
.series-card[data-series^="huangya"],.series-materials[data-series^="huangya"]{--series-accent:#bd8fa3}
.series-guidance{margin:0 0 16px;color:#8994a1;font-size:11px}
.series-guidance summary{display:inline-block;list-style:none;color:#7c8999}
.series-guidance summary::-webkit-details-marker{display:none}
.series-guidance summary:after{content:' +';font-size:13px;margin-left:5px;color:#a2adba}
.series-guidance[open] summary:after{content:' −'}
.series-guidance p{margin:9px 0 0;line-height:1.8;max-width:720px}
.material-list{border:1px solid #e0e5ec;background:#fff;border-radius:9px;overflow:hidden}
.material-entry+.material-entry{border-top:1px solid #e9edf2}
.material-entry-summary{display:grid;grid-template-columns:minmax(0,1fr) auto 75px;align-items:center;gap:25px;list-style:none;padding:19px 22px;min-height:85px;color:#405064}
.material-entry-summary::-webkit-details-marker{display:none}
.material-entry-summary:hover{background:#fafbfd}
.material-entry-name{font-size:14px;font-weight:550;line-height:1.6;color:#3c495b}
.material-thickness{display:inline-block;margin-left:10px;padding:1px 6px;border-radius:3px;background:#f1f3f6;color:#7a8797;font-size:10px;font-weight:400;vertical-align:1px}
.material-entry-code{display:block;margin-top:4px;color:#9aa4b0;font-size:10px;overflow-wrap:anywhere}
.material-entry-quantity{text-align:right}
.material-entry-quantity .material-quantity>span{font-size:10px}
.material-entry-quantity .material-quantity strong{font-size:17px}
.material-expand-label{display:flex;justify-content:flex-end;align-items:center;gap:7px;color:#8e99a7;font-size:10px;white-space:nowrap}
.material-expand-label i{font-style:normal;font-size:14px;line-height:1;transition:transform .15s}
.material-entry[open] .material-expand-label i{transform:rotate(180deg)}
.material-specifications{padding:0 22px 18px;background:#fcfdfe}
.material-applicability{font-size:10px;color:#8b96a4;margin:0;padding:12px 0 11px;line-height:1.8}
.material-specification-table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:11px;text-align:left;color:#6f7f91}
.material-specification-table th{padding:10px 9px;border-top:1px solid #e8edf2;border-bottom:1px solid #e8edf2;font-size:10px;color:#8a96a5;font-weight:400}
.material-specification-table th:first-child{width:54%}
.material-specification-table td{padding:11px 9px;border-bottom:1px solid #edf0f4;overflow-wrap:anywhere}
.material-specification-table tr:last-child td{border-bottom:0}
.material-specification-table .numeric{text-align:right;font-variant-numeric:tabular-nums}
.material-specification-table td:last-child{font-weight:600;color:#56657a}
.material-specification-table td small{display:block;color:#9aa4b0;font-size:10px;margin-top:3px}
@media(max-width:1100px){.series-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#catalog-panel .panel-heading{align-items:stretch;flex-direction:column;gap:16px}#catalog-panel .table-tools input{flex:1;min-width:0}}
@media(max-width:740px){.materials-page .catalog-metrics{display:flex;gap:14px;flex-wrap:wrap}.materials-page .catalog-metrics>div{gap:4px}.materials-page .catalog-metrics .catalog-colors-stat{display:none}.materials-page .catalog-metrics .catalog-bars-stat{margin-left:auto}.materials-page .catalog-metrics strong{font-size:14px}.series-card{padding:18px;min-height:140px}.series-card-heading strong{font-size:13px}.material-entry-summary{gap:12px;padding:17px 16px;grid-template-columns:minmax(0,1fr) auto 66px}.material-entry-name{font-size:13px}.material-specifications{padding:0 16px 16px}.material-entry-quantity .material-quantity>span{display:none}}
@media(max-width:520px){.series-card-grid{grid-template-columns:1fr;gap:12px}.series-card{min-height:130px}.series-card-count{margin-bottom:16px}.materials-page .data-meta{display:flex;margin-top:5px}.materials-page .catalog-metrics{gap:8px 14px}.materials-page .catalog-metrics span,.materials-page .catalog-metrics small{font-size:10px}#catalog-panel .table-tools{flex-wrap:wrap}#catalog-panel .table-tools input{flex-basis:100%;width:100%}#catalog-panel .table-tools select{max-width:235px}.material-entry-summary{grid-template-columns:minmax(0,1fr) auto;gap:8px 16px}.material-entry-title{grid-row:span 2}.material-entry-name{display:block}.material-thickness{margin-left:0;margin-top:4px}.material-entry-quantity{align-self:end}.material-expand-label{align-self:start;font-size:9px}.material-entry-quantity .material-quantity strong{font-size:16px}.material-specification-table{font-size:10px}.material-specification-table th{font-size:9px;padding:9px 5px}.material-specification-table td{padding:10px 5px}.material-specification-table th:first-child{width:48%}}
@media(prefers-reduced-motion:reduce){.series-card,.material-expand-label i{transition:none}.series-card:hover{transform:none}}

/* Consumption at a glance: purpose composition plus exact material quantities. */
.materials-page{background:#f5f6f8}
.materials-page .page-description{color:#7d8795;font-size:12px}
.materials-page #catalog-panel .panel-heading{padding-bottom:21px}
.materials-page #catalog-panel .panel-title{gap:5px}
.materials-page #catalog-panel h2{font-size:17px;color:#263448;letter-spacing:.2px}
.materials-page #catalog-panel .panel-total{font-size:11px;color:#8b94a1}
.catalog-filter-note{font-size:10px;color:#9a7a48}
.consumption-card-grid{columns:2;column-gap:20px}
.consumption-card{break-inside:avoid;display:inline-block;width:100%;vertical-align:top;margin:0 0 20px;padding:21px 22px 17px;background:#fff;border:1px solid #e5e8ef;border-radius:15px;box-shadow:0 3px 12px #34445c04;color:#344259}
.consumption-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.consumption-card-heading>div{min-width:0}
.consumption-card-heading h3{margin:0;font-size:15px;font-weight:650;line-height:1.6;color:#2c3a50;letter-spacing:.1px}
.consumption-card-heading p{margin:3px 0 0;font-size:11px;color:#7d8899}
.consumption-card-heading p>span{margin:0 5px;color:#c2c9d3}
.card-spec-button{border:0;background:transparent;color:#77869b;font-size:11px;white-space:nowrap;flex-shrink:0;padding:5px 0 4px 5px;line-height:1.6}
.card-spec-button:hover{color:#51647e}
.card-spec-button>span{margin-left:3px;font-size:12px}
.card-composition{display:flex;align-items:center;gap:24px;margin:19px 0 21px;padding-bottom:18px;border-bottom:1px solid #f0f2f6}
.consumption-ring{width:112px;height:112px;position:relative;flex:0 0 112px}
.consumption-ring svg{display:block;width:100%;height:100%;overflow:visible}
.consumption-ring circle{fill:none;stroke-width:11;stroke:var(--purpose-color,#e9edf3)}
.consumption-ring .ring-track{stroke:#eef1f6}
.ring-total{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px;font-variant-numeric:tabular-nums}
.ring-total strong{color:#2b384c;font-size:25px;font-weight:650;letter-spacing:-.7px;line-height:1.25}
.ring-total small{font-size:9px;color:#9aa4b2;letter-spacing:.2px}
.composition-legend{display:flex;flex-direction:column;flex:1;min-width:0;gap:6px}
.composition-label{font-size:10px;color:#7b8798;margin-bottom:1px;letter-spacing:.4px}
.composition-item{display:flex;align-items:center;gap:6px;min-width:0;font-size:11px;line-height:1.45;color:#65758b}
.composition-item i{width:6px;height:6px;flex:0 0 6px;border-radius:2px;background:var(--purpose-color,#8c98ab)}
.composition-item strong{margin-left:auto;font-size:11px;font-weight:550;color:#5b6a80;font-variant-numeric:tabular-nums;white-space:nowrap}
.composition-item small{color:#a3adba;font-size:9px;font-weight:400}
.purpose-frame{--purpose-color:#7897cb;--purpose-light:#f2f5fb}
.purpose-column{--purpose-color:#a092c7;--purpose-light:#f5f3fa}
.purpose-glass{--purpose-color:#77b2ad;--purpose-light:#eff7f6}
.purpose-subframe{--purpose-color:#d3b074;--purpose-light:#faf6ee}
.purpose-screen{--purpose-color:#c88eaa;--purpose-light:#faf1f5}
.purpose-other{--purpose-color:#93a1b6;--purpose-light:#f3f5f8}
.chart-unknown{font-size:10px;color:#ad8954;margin:-11px 0 13px}
.card-material-bars{display:flex;flex-direction:column;gap:13px}
.material-bar-row{width:100%;position:relative;display:block;text-align:left;background:transparent;color:inherit;border:0;border-radius:5px;padding:0;min-width:0}
.material-bar-row:hover .material-bar-name{color:#273a57}
.material-bar-row:hover .material-bar-rail{fill:#e9edf4}
.material-bar-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 8px;margin-bottom:5px;line-height:1.5}
.material-bar-color{font-size:11px;color:#758297;overflow-wrap:anywhere}
.material-bar-measure{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-height:18px}
.material-bar-name{font-size:12px;color:#4d5e78;font-weight:500;min-width:0;overflow-wrap:anywhere}
.material-bar-name .material-thickness{font-size:10px;background:var(--purpose-light,#f2f4f8);color:#69788d;border-radius:4px;margin-left:6px;padding:1px 4px;vertical-align:0}
.material-bar-value{min-width:44px;text-align:right;font-size:10px;color:#8a97a8;font-variant-numeric:tabular-nums;white-space:nowrap}
.material-bar-value strong{font-size:13px;font-weight:600;color:#4e5e77}
.material-bar-value small{font-size:10px}
.material-bar-track{display:block;width:100%;height:6px;border-radius:3px;overflow:hidden}
.material-bar-rail{fill:#f0f2f6;transition:fill .15s}
.material-bar-fill{fill:var(--purpose-color,#93a1b6)}
.material-bar-track.quantity-unavailable{background:repeating-linear-gradient(110deg,#eef1f5 0,#eef1f5 4px,#f8f9fb 4px,#f8f9fb 8px)}
.material-bar-track.quantity-unavailable .material-bar-rail{fill:transparent}
.material-bar-unknown{display:block;text-align:right;color:#ad8954;font-size:9px;margin-top:3px}
@media(min-width:1450px){.materials-page main,.materials-page .header-inner{max-width:1380px}.consumption-card-grid{columns:3}}
@media(max-width:900px){.consumption-card{padding:19px 19px 17px;border-radius:13px}.consumption-card-grid{column-gap:17px}.card-composition{gap:18px}.consumption-ring{width:100px;height:100px;flex-basis:100px}.ring-total strong{font-size:23px}.consumption-card-heading h3{font-size:14px}.composition-legend{gap:5px}}
@media(max-width:650px){.consumption-card-grid{columns:1}.consumption-card{padding:20px 22px}.card-composition{gap:30px;margin-top:18px;margin-bottom:20px}.consumption-ring{width:112px;height:112px;flex-basis:112px}.ring-total strong{font-size:25px}.composition-legend{gap:7px}.composition-item{font-size:11px}.composition-item strong{font-size:12px}.composition-label{font-size:10px}.material-bar-name{font-size:12px}.material-bar-track{height:6px}.card-material-bars{gap:14px}.material-bar-value strong{font-size:14px}}

/* A single series workspace: material rows × exact original color columns. */
.materials-page{background:#f3f5f8}
.materials-page .header-inner{max-width:none;height:46px;padding:0 22px}
.materials-page .brand{font-size:14px;gap:9px;letter-spacing:.5px}
.materials-page .brand small{display:none}
.materials-page .brand-mark{width:21px;height:22px;gap:3px}
.materials-page .brand-mark i{width:5px;height:18px}
.materials-page .brand-mark i:nth-child(2){height:22px}
.materials-page .brand-mark i:nth-child(3){height:15px}
.materials-page main{max-width:none;margin:0;padding:10px 20px 16px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:38px minmax(0,1fr);gap:10px 20px;height:calc(100dvh - 47px);min-height:650px}
.materials-page .page-heading{grid-column:3;grid-row:1;margin:0;gap:0;justify-content:flex-end}
.materials-page .page-heading>div{display:none}
.materials-page .update-button{min-height:34px;height:34px;padding:6px 12px;font-size:12px;border-radius:5px;gap:7px}
.materials-page .page-nav{grid-column:1;grid-row:1;margin:0;border:0;align-self:center;gap:3px}
.materials-page .page-nav a{padding:6px 12px;border:0;margin:0;font-size:13px;border-radius:5px;color:#7c8998}
.materials-page .page-nav a.active{background:#e8edf4;color:#344863}
.materials-page .catalog-metrics{grid-column:2;grid-row:1;justify-content:flex-end;gap:20px;margin:0;align-self:center;flex-wrap:nowrap}
.materials-page .catalog-metrics>div{gap:5px;white-space:nowrap}
.materials-page .catalog-metrics>div:nth-child(2),.materials-page .catalog-metrics>div:nth-child(3){display:none}
.materials-page .catalog-metrics .catalog-bars-stat{margin-left:0}
.materials-page .catalog-metrics strong{font-size:16px;color:#34455d}
.materials-page .catalog-metrics span,.materials-page .catalog-metrics small{font-size:11px}
.materials-page .data-meta,.materials-page footer{display:none}
.materials-page #catalog-panel{grid-column:1/-1;grid-row:2;min-height:0;display:flex;flex-direction:column;background:#fff;border:1px solid #dfe5ed;border-radius:8px;overflow:hidden}
.catalog-toolbar{display:flex;align-items:center;gap:16px;min-height:48px;padding:8px 17px;border-bottom:1px solid #e4e9f0;background:#fff;flex-shrink:0}
.catalog-workspace-label{font-size:13px;font-weight:600;color:#526174;white-space:nowrap;min-width:158px}
.catalog-search-wrap{display:flex;align-items:center;gap:8px;flex:1;max-width:490px}
#catalog-search{height:31px;min-width:0;width:100%;border:1px solid #dce3eb;border-radius:5px;padding:5px 10px;color:#3f526b;background:#f9fafc;font-size:12px}
#catalog-search::placeholder{color:#95a1af}
#catalog-clear{border:0;background:transparent;padding:4px 1px;color:#667b98;font-size:12px;white-space:nowrap}
.catalog-workspace{display:grid;grid-template-columns:194px minmax(0,1fr);min-height:0;flex:1}
.matrix-sidebar{background:#f8f9fb;border-right:1px solid #e4e9f0;padding:12px 10px;min-height:0;overflow:auto}
.matrix-sidebar-label{margin:0 10px 8px;color:#8a96a5;font-size:11px}
.matrix-sidebar-label>span{margin-left:5px;color:#a0aab7;font-variant-numeric:tabular-nums}
#catalog-series-nav{display:flex;flex-direction:column;gap:3px}
.matrix-series-option{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px;width:100%;padding:8px 10px;border:1px solid transparent;border-radius:5px;text-align:left;background:transparent;color:#596a80;line-height:1.45;font-size:12px}
.matrix-series-option>span{min-width:0;overflow-wrap:anywhere}
.matrix-series-option small{font-size:11px;color:#a0aabb;font-variant-numeric:tabular-nums;white-space:nowrap}
.matrix-series-option:hover{background:#edf1f6}
.matrix-series-option.selected{background:#e9eef6;border-color:#d8e1ee;color:#304c76;font-weight:600}
.matrix-series-option.selected small{color:#5b7395;font-weight:500}
.matrix-no-series{font-size:12px;color:#8491a3;padding:8px 10px}
.matrix-main{min-width:0;min-height:0;padding:18px 24px 14px;display:flex;flex-direction:column;overflow:auto}
.matrix-main-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;flex-shrink:0}
.materials-page #catalog-panel h2{font-size:19px;line-height:1.45;color:#2f405a;letter-spacing:0;font-weight:600}
.materials-page #catalog-panel h2>span{font-size:11px;color:#9aa4b3;margin-left:12px;font-weight:400}
#catalog-view-note{font-size:11px;color:#929dac;margin:5px 0 0}
.materials-page #catalog-panel .catalog-scroll{overflow:visible;min-height:0;flex:0 0 auto}
.series-matrix{min-width:0;width:100%;border:1px solid #e0e6ee;border-radius:6px;overflow:hidden;background:#fff}
.matrix-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:34px;padding:7px 12px;background:#f6f8fb;border-bottom:1px solid #e0e6ee;font-size:11px;color:#8a98aa}
.matrix-heading>button{display:none}
.matrix-heading>span{display:flex;align-items:center;width:100%;justify-content:space-between;gap:20px}
.matrix-heading b{font-size:15px;font-weight:600;color:#5c6e88;font-variant-numeric:tabular-nums}
.matrix-heading b::before{content:'本系列合计 ';font-size:10px;font-weight:400;color:#95a1b1;margin-right:7px}
.matrix-heading b small{font-size:10px;font-weight:400;color:#95a1b1}
.usage-matrix{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;text-align:left}
.usage-matrix th,.usage-matrix td{border-bottom:1px solid #e9edf3;border-right:1px solid #e9edf3;padding:9px 10px;line-height:1.5;vertical-align:middle}
.usage-matrix th:last-child,.usage-matrix td:last-child{border-right:0}
.usage-matrix tbody tr:last-child th,.usage-matrix tbody tr:last-child td{border-bottom:0}
.usage-matrix thead th{background:#fcfdff;color:#76879e;font-size:11px;font-weight:500;text-align:center;overflow-wrap:anywhere}
.usage-matrix thead th:first-child{width:30%;text-align:left;color:#8997aa}
.usage-matrix thead th>span{display:block;font-size:10px;color:#a3adba;font-weight:400}
.usage-matrix tbody th{background:#fff;font-size:13px;font-weight:500;color:#4d607c}
.usage-matrix tbody tr:hover th,.usage-matrix tbody tr:hover td{background:#f8fafc}
.matrix-material{border:0;background:transparent;padding:0;text-align:left;color:inherit;font-size:13px;line-height:1.55;width:100%;overflow-wrap:anywhere}
.matrix-material:hover{color:#2b4c7b}
.matrix-material .material-thickness{background:transparent;margin-left:5px;padding:0;font-size:10px;color:#99a4b3;white-space:normal;line-height:1.4}
.matrix-material>small{display:block;font-size:10px;color:#9ca6b4;font-weight:400}
.usage-matrix td{text-align:center;font-variant-numeric:tabular-nums;font-size:17px;color:#344f76;font-weight:600;background:#fff}
.usage-matrix td>button{border:0;background:transparent;padding:0 4px;color:inherit;font:inherit;line-height:inherit;border-radius:3px}
.usage-matrix td>button:hover{background:#eaf0f8;color:#183f78}
.usage-matrix .no-quantity{color:#c7cfda;font-size:13px;font-weight:400}
.matrix-bottom-note{font-size:10px;color:#a3adba;margin:11px 0 0;flex-shrink:0}
.matrix-unknown{font-size:11px;color:#a17c42;padding:8px 12px;margin:0;border-top:1px solid #e9edf3}
.matrix-detail-dialog{position:fixed;max-width:620px;width:calc(100% - 36px);max-height:calc(100dvh - 70px);overflow:auto;border:1px solid #dbe2ec;border-radius:10px;box-shadow:0 24px 80px #263d5e2b;padding:26px 28px;background:#fff;color:#4c5f78}
.matrix-detail-dialog::backdrop{background:#24364f42}
.matrix-detail-close{position:absolute;right:12px;top:9px;width:30px;height:30px;border:0;background:transparent;color:#8796aa;font-size:25px;line-height:1}
.matrix-detail-series{margin:0 30px 8px 0;color:#8a99ad;font-size:11px}
.matrix-detail-dialog h2{font-size:20px;color:#344762;margin:0 0 5px}
.matrix-detail-code{font-size:11px;color:#99a5b5;margin:0 0 18px;overflow-wrap:anywhere}
.matrix-detail-note{font-size:12px;line-height:1.75;color:#8694a8;margin:12px 0 16px}
.matrix-detail-dialog .material-specification-table{font-size:13px;margin-top:17px}
.matrix-detail-dialog .material-specification-table th{font-size:11px}
.matrix-detail-dialog .material-specification-table td:last-child{font-size:16px;color:#38567f}
.materials-page .notice{position:fixed;right:20px;top:103px;max-width:520px;z-index:10;box-shadow:0 4px 18px #24344910}
.materials-page .sync-panel{position:fixed;left:220px;right:20px;top:103px;z-index:11;box-shadow:0 4px 18px #24344910}
@media(min-width:1450px){.materials-page main{padding:12px 26px 20px;gap:12px 24px}.materials-page .header-inner{padding:0 28px}.catalog-workspace{grid-template-columns:226px minmax(0,1fr)}.catalog-workspace-label{min-width:190px}.matrix-sidebar{padding:15px 12px}.matrix-series-option{font-size:13px;min-height:39px}.matrix-series-option small{font-size:12px}.matrix-main{padding:24px 30px 20px}.materials-page #catalog-panel h2{font-size:23px}.matrix-main-heading{margin-bottom:18px}.usage-matrix th,.usage-matrix td{padding:13px 17px}.usage-matrix thead th{font-size:13px}.matrix-material{font-size:15px}.matrix-material .material-thickness{font-size:12px}.usage-matrix td{font-size:21px}.matrix-heading{font-size:12px;padding:9px 17px}.matrix-heading b{font-size:17px}.matrix-bottom-note{font-size:11px}}
@media(max-width:900px){.materials-page main{padding:8px 12px 12px;gap:8px 12px}.materials-page .header-inner{padding:0 15px}.materials-page .catalog-metrics{gap:12px}.materials-page .catalog-metrics>div:first-child{display:none}.catalog-workspace{grid-template-columns:184px minmax(0,1fr)}.catalog-workspace-label{min-width:148px}.matrix-main{padding:16px}.matrix-series-option{padding:7px 8px;font-size:11px;min-height:34px}.matrix-sidebar{padding:12px 8px}.usage-matrix th,.usage-matrix td{padding:8px 7px}.usage-matrix thead th:first-child{width:28%}.matrix-material{font-size:12px}.matrix-material .material-thickness{font-size:10px}.usage-matrix td{font-size:16px}.materials-page #catalog-panel h2{font-size:18px}}
@media(max-width:620px){.materials-page main{display:flex;flex-direction:column;height:auto;min-height:calc(100dvh - 46px);padding:8px}.materials-page .page-heading{position:absolute;right:10px;top:55px}.materials-page .page-nav{margin:0 0 4px;align-self:flex-start}.materials-page .catalog-metrics{display:none}.materials-page #catalog-panel{flex:1;overflow:visible}.catalog-toolbar{padding:9px 10px;gap:10px}.catalog-workspace-label{display:none}.catalog-workspace{grid-template-columns:118px minmax(0,1fr);min-height:520px}.matrix-sidebar{padding:10px 5px}.matrix-sidebar-label{margin-left:6px}.matrix-series-option{display:block;min-height:41px;padding:6px;font-size:10px}.matrix-series-option small{display:block;font-size:9px;margin-top:1px}.matrix-main{padding:12px 9px}.materials-page #catalog-panel h2{font-size:15px}.materials-page #catalog-panel h2>span{font-size:9px;margin-left:5px}#catalog-view-note{font-size:9px}.usage-matrix{min-width:330px}.materials-page #catalog-panel .catalog-scroll{overflow-x:auto}.matrix-material{font-size:11px}.usage-matrix th,.usage-matrix td{padding:8px 5px}.usage-matrix thead th{font-size:9px}.usage-matrix td{font-size:14px}.matrix-bottom-note{font-size:9px}.matrix-heading{font-size:10px;padding:7px 8px}.matrix-heading b::before{display:none}.matrix-detail-dialog{padding:24px 18px}.materials-page .sync-panel{left:15px;right:15px}}

/* Daily purpose consumption stays beneath the selected material series. */
.trends-panel{display:flex;flex-direction:column;flex-shrink:0;min-width:0;margin-top:14px;padding-top:12px;border-top:1px solid #e5eaf1;color:#50637b}
.trend-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}
.trend-title-copy{display:flex;align-items:baseline;gap:10px;min-width:0;flex-wrap:wrap}
.materials-page #catalog-panel #trend-title{color:#435773;font-size:14px;font-weight:600;line-height:1.4;white-space:nowrap}
#trend-range{margin:0;color:#95a1b0;font-size:10px;line-height:1.5}
.trend-controls{display:flex;align-items:center;flex-shrink:0}
.trend-periods{display:flex;align-items:center;gap:2px;padding:2px;border:1px solid #e5eaf0;border-radius:5px;background:#f6f8fb}
.trend-periods button{min-width:35px;padding:3px 7px;border:1px solid transparent;border-radius:3px;background:transparent;color:#8a97a8;font-size:10px;line-height:1.4}
.trend-periods button:hover{background:#edf1f7;color:#445c7b}
.trend-periods button[aria-pressed="true"]{border-color:#dfe6f0;background:#fff;color:#3a557c;font-weight:600}
.trend-legend{display:flex;align-items:center;flex-wrap:wrap;gap:4px 16px;margin:8px 0 0;font-size:10px;color:#8593a6;line-height:1.6}
.trend-legend-item{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.trend-dot{width:7px;height:7px;flex-shrink:0;border-radius:2px;background:#a2acb9}
.trend-dot[data-purpose="frame"]{background:#829fca}
.trend-dot[data-purpose="column"]{background:#aa9ac4}
.trend-dot[data-purpose="glass"]{background:#7eb4ad}
.trend-dot[data-purpose="subframe"]{background:#d3b171}
.trend-dot[data-purpose="screen"]{background:#c894ae}
.trend-dot[data-purpose="other"]{background:#a2acb9}
.trend-legend-item b{color:#526783;font-size:10px;font-weight:600;font-variant-numeric:tabular-nums}
.trend-chart{display:flex;align-items:center;justify-content:center;flex:0 0 156px;height:156px;min-width:0;margin:3px 0 4px;overflow:hidden}
.trend-svg{display:block;width:100%;height:100%;overflow:visible;font-family:inherit}
.trend-grid{stroke:#edf1f5;stroke-width:1;vector-effect:non-scaling-stroke}
.trend-axis{fill:#a1adbd;font-size:18px;font-variant-numeric:tabular-nums;stroke:none}
.trend-date{fill:#92a0b2;font-size:18px;font-variant-numeric:tabular-nums;stroke:none}
.trend-value{fill:#607796;font-size:20px;font-weight:500;font-variant-numeric:tabular-nums;stroke:none}
.trend-segment{stroke:#fff;stroke-width:1;vector-effect:non-scaling-stroke}
.trend-group-value{fill:#506981;font-size:17px;font-weight:500;font-variant-numeric:tabular-nums;pointer-events:none;stroke:none}
.trend-segment-value{fill:#24394f;font-size:18px;font-weight:600;font-variant-numeric:tabular-nums;pointer-events:none;stroke:none}
.trend-missing{stroke:#c9d2df;stroke-width:2;stroke-linecap:round;vector-effect:non-scaling-stroke}
.trend-day{outline:none}
.trend-segment:hover{stroke:#415d80;stroke-width:1.5;vector-effect:non-scaling-stroke}
.trend-tooltip{pointer-events:none}
.trend-tooltip rect{fill:#304760;stroke:#253c55;stroke-width:1}
.trend-tooltip-date{fill:#cfdae7;font-size:18px;stroke:none}
.trend-tooltip-value{fill:#fff;font-size:22px;font-weight:600;stroke:none}
.trend-day:focus-visible .trend-missing{stroke:#486d9c;stroke-width:4}
.trend-day:focus-visible .trend-date{fill:#294d7a;font-weight:600}
.trend-insight{flex-shrink:0;padding:7px 10px;border-radius:4px;background:#f5f7fa;color:#7c8ca1;font-size:10px;line-height:1.65}
.trend-insight p{margin:0}
.trend-insight p+p{margin-top:2px}
.trend-insight strong{color:#49617f;font-weight:600}
.trend-foot{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 10px;flex-shrink:0;margin-top:5px;font-size:9px;color:#a0abba;line-height:1.5}
.trend-foot p{margin:0}
@media(min-width:1450px){.trends-panel{margin-top:18px;padding-top:15px}.materials-page #catalog-panel #trend-title{font-size:16px}#trend-range{font-size:11px}.trend-periods button{min-width:40px;font-size:11px}.trend-legend{font-size:11px;gap:5px 23px;margin-top:9px}.trend-legend-item b{font-size:11px}.trend-chart{height:190px;flex-basis:190px;margin:5px 0}.trend-insight{font-size:11px;padding:8px 11px}.trend-foot{font-size:10px}}
@media(max-width:1100px) and (min-width:621px){.matrix-main{padding:12px 16px 10px}.matrix-main-heading{margin-bottom:8px}.materials-page #catalog-panel h2{font-size:17px}#catalog-view-note{font-size:10px;margin-top:3px}.matrix-heading{min-height:27px;padding:4px 9px}.matrix-heading b{font-size:14px}.usage-matrix th,.usage-matrix td{padding:5px 7px;line-height:1.4}.usage-matrix thead th{font-size:10px}.usage-matrix thead th>span{font-size:9px}.matrix-material{font-size:11px;line-height:1.4}.matrix-material .material-thickness{font-size:9px}.matrix-material>small{font-size:9px}.usage-matrix td{font-size:15px}.matrix-bottom-note{margin-top:7px;font-size:9px}.trends-panel{margin-top:10px;padding-top:9px}.trend-legend{gap:3px 11px;margin-top:6px}.trend-chart{height:150px;flex-basis:150px}.trend-insight{padding:6px 8px}}
@media(max-width:1100px) and (min-width:621px){.usage-matrix th,.usage-matrix td{padding-top:3px;padding-bottom:3px;line-height:1.3}.usage-matrix thead th:first-child{width:34%}.usage-matrix td{font-size:14px}.matrix-material{line-height:1.3}.matrix-bottom-note{margin-top:5px}.trends-panel{margin-top:8px;padding-top:7px}}
@media(max-height:740px) and (min-width:621px){.trend-chart{height:140px;flex-basis:140px}.trends-panel{margin-top:10px;padding-top:8px}}
@media(max-width:620px){.trends-panel{margin-top:14px;padding-top:11px}.trend-heading{align-items:flex-start;gap:8px}.trend-title-copy{display:block}.materials-page #catalog-panel #trend-title{font-size:13px}#trend-range{font-size:9px;margin-top:3px}.trend-periods button{min-width:28px;padding:3px 5px;font-size:9px}.trend-legend{font-size:9px;gap:3px 10px;margin-top:9px}.trend-legend-item b{font-size:9px}.trend-dot{width:6px;height:6px}.trend-chart{height:155px;flex-basis:155px;margin:5px 0}.trend-axis,.trend-date{font-size:21px}.trend-value{font-size:23px}.trend-segment-value{font-size:21px}.trend-insight{padding:7px 8px;font-size:9px}.trend-foot{font-size:8px}}

/* Keep the confirmed 1.4, 2.0 and shared-subframe trends in separate plots. */
.trend-chart.trend-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;justify-content:normal;gap:9px 12px;flex:0 0 auto;height:auto;margin:9px 0 8px;overflow:visible}
.trend-mini-panel{min-width:0;padding:7px 9px 3px;border:1px solid #e8edf3;border-radius:4px;background:#fff}
.trend-mini-panel:nth-child(3),.trend-mini-panel:only-child{grid-column:1/-1}
.trend-mini-panel>header{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0}
.trend-mini-panel>header h3{margin:0;color:#526782;font-size:11px;line-height:1.5;font-weight:600}
.trend-mini-panel>header>span{color:#8d9bad;font-size:10px;white-space:nowrap;font-variant-numeric:tabular-nums}
.trend-mini-legend{display:flex;align-items:center;flex-wrap:wrap;gap:2px 11px;min-height:17px;margin:2px 0 0;color:#8b99ab;font-size:9px;line-height:1.5}
.trend-mini-legend .trend-legend-item{gap:4px}
.trend-mini-legend .trend-legend-item b{font-size:9px}
.trend-mini-legend small{font-size:inherit}
.trend-mini-plot{display:flex;align-items:center;justify-content:center;min-width:0;height:106px;overflow:visible}
.trend-mini-plot .trend-svg{width:100%;height:100%}
@media(min-width:1200px){.trend-chart.trend-chart-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.trend-mini-panel:nth-child(3){grid-column:auto}.trend-mini-plot{height:120px}}
@media(min-width:1450px){.trend-mini-panel{padding:8px 11px 4px}.trend-mini-panel>header h3{font-size:12px}.trend-mini-panel>header>span{font-size:11px}.trend-mini-legend{font-size:10px;margin-top:3px;gap:3px 13px}.trend-mini-legend .trend-legend-item b{font-size:10px}.trend-mini-plot{height:130px}}
@media(max-height:740px) and (min-width:621px){.trend-chart.trend-chart-grid{gap:6px 10px;margin-top:7px}.trend-mini-panel{padding-top:5px}.trend-mini-plot{height:105px}}
@media(max-width:620px){.trend-chart.trend-chart-grid{grid-template-columns:1fr;gap:8px;margin:9px 0 8px}.trend-mini-panel:last-child{grid-column:auto}.trend-mini-panel{padding:7px 6px 3px}.trend-mini-panel>header h3{font-size:10px}.trend-mini-panel>header>span{font-size:9px}.trend-mini-legend{gap:2px 8px;font-size:9px}.trend-mini-plot{height:122px}}
.catalog-modes{display:flex;gap:2px;padding:3px;border-radius:6px;background:#f0f3f7;flex-shrink:0}
.catalog-modes button{border:0;background:transparent;color:#8390a0;border-radius:4px;padding:5px 9px;font-size:12px;white-space:nowrap}
.catalog-modes button[aria-pressed=true]{background:white;color:#344d70;box-shadow:0 1px 4px #2e425814;font-weight:600}
.raw-mode .matrix-main{padding:17px 22px}
.raw-policy{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px 16px;padding:9px 12px;margin:0 0 14px;background:#f5f7fa;border:1px solid #e7ebf1;border-radius:5px;color:#738298;font-size:11px}
.raw-policy small{font-size:10px;color:#98a2af}
.raw-faces{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.raw-face{min-width:0;border:1px solid #e1e7ee;border-radius:6px;overflow:hidden}
.raw-face>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 13px;background:#f2f5fa;border-bottom:1px solid #e1e7ee}
.raw-face h3{font-size:14px;font-weight:600;color:#3f5576;margin:0}
.raw-face header>span{font-size:10px;color:#8b99ac}
.raw-face-inside>header{background:#f6f3fa}.raw-face-inside h3{color:#74628e}
.raw-face-integral{grid-column:1/-1}.raw-face-integral>header{background:#f7f6f2}.raw-face-integral h3{color:#8a795d}
.raw-table{border-collapse:collapse;width:100%;table-layout:fixed}
.raw-table th,.raw-table td{padding:10px 13px;border-bottom:1px solid #edf0f4;text-align:left;vertical-align:middle}
.raw-table tbody tr:last-child>*{border-bottom:0}
.raw-table thead th{font-weight:400;font-size:10px;color:#9ba5b3;background:#fcfdfe;padding-top:6px;padding-bottom:6px}
.raw-table th:last-child,.raw-table td:last-child{width:100px;text-align:right}
.raw-table tbody th{font-weight:400}
.raw-table button{border:0;background:transparent;color:inherit;padding:0;text-align:inherit;font:inherit;cursor:pointer}
.raw-table tbody td{font-size:20px;color:#385475;font-weight:600;font-variant-numeric:tabular-nums}
.raw-detail-link{display:flex;flex-direction:column;gap:2px;max-width:100%;overflow-wrap:anywhere}
.raw-detail-link>span{font-size:13px;font-weight:500;color:#4a5e78}
.raw-detail-link>small{font-size:10px;color:#98a4b5;font-weight:400}
.raw-detail-link:hover>span{color:#203e66}
.raw-spec{display:block;font-size:11px;color:#8796a9;margin-top:4px;overflow-wrap:anywhere}
.raw-spec i{font-style:normal;padding:0 6px;color:#bdc5d0}
.raw-empty{font-size:12px;color:#a2adbb;text-align:center;margin:24px 12px}
.raw-pending{margin-top:18px;border-top:1px solid #e7ebf1;padding-top:12px}
.raw-pending summary{cursor:pointer;font-size:12px;font-weight:500;color:#9b7d4e}
.raw-pending summary>span{font-size:10px;font-weight:400;color:#a7a3a1;margin-left:12px}
.raw-pending table,.raw-source-table{width:100%;border-collapse:collapse;margin-top:9px;text-align:left}
.raw-pending th,.raw-pending td,.raw-source-table th,.raw-source-table td{padding:8px 10px;border-bottom:1px solid #edf0f4;font-size:11px;font-weight:400;color:#7c8b9e}
.raw-pending thead th,.raw-source-table thead th{font-size:10px;color:#a0aab7;background:#fafbfd}
.raw-pending tbody th{width:36%;color:#566a85}
.raw-pending small,.raw-source-table small{display:block;font-size:10px;color:#a0aaba;margin-top:2px;overflow-wrap:anywhere}
.raw-source-table td{font-variant-numeric:tabular-nums}
.raw-footnote{font-size:10px;color:#9ba7b6;line-height:1.8;margin-top:13px}
.matrix-series-option small.raw-status-pending{color:#a69a88;font-size:10px}
.materials-page .catalog-unknown{margin-left:10px;font-size:10px;color:#a28b69}
@media(max-width:1000px){.raw-face header>span{display:none}.raw-table th,.raw-table td{padding:8px 10px}.raw-table th:last-child,.raw-table td:last-child{width:76px}.raw-table tbody td{font-size:18px}.raw-faces{gap:12px}.raw-mode .matrix-main{padding:16px}.materials-page .catalog-unknown{max-width:110px;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:650px){.raw-faces{grid-template-columns:1fr}.raw-face-integral{grid-column:auto}.catalog-modes button{font-size:11px;padding:5px 7px}.raw-policy{font-size:10px}.raw-table th:last-child,.raw-table td:last-child{width:85px}.raw-mode .matrix-main{padding:12px}.catalog-toolbar{flex-wrap:wrap}.catalog-search-wrap{min-width:140px}}

/* The pilot keeps daily quantities in one compact surface. Existing raw and
   assembly views retain their own sidebar, search and trends. */
.stock-mode .catalog-workspace,.stock-mode .catalog-search-wrap,.stock-mode .catalog-filter-note,.stock-mode .matrix-series-select{display:none!important}
.stock-mode .catalog-toolbar{min-height:43px;padding:6px 20px}
.stock-pilot{padding:18px 24px 16px;min-height:0;flex:1;overflow:auto;color:#4c5d72}
.stock-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:16px}
.stock-title-line{display:flex;align-items:center;gap:12px}
.materials-page #catalog-panel .stock-heading h2{font-size:20px}
.stock-status{padding:2px 7px;border:1px solid #e3dccb;border-radius:4px;background:#faf8f2;color:#9a7b47;font-size:10px;white-space:nowrap}
.stock-status.is-active{border-color:#dce4ee;background:#f1f5fa;color:#617b9e}
.stock-heading p{font-size:11px;color:#8994a3;margin:5px 0 0;line-height:1.7}
.stock-heading .stock-mobile-spec,.stock-formula-short{display:none}
.stock-actions{display:flex;gap:8px;flex-shrink:0}
.stock-pilot button,.stock-dialog button{font-size:12px}
.stock-primary,.stock-secondary{min-height:33px;padding:6px 14px;border-radius:5px;line-height:1.5;white-space:nowrap}
.stock-primary{border:1px solid #455e7d;background:#455e7d;color:#fff}
.stock-primary:hover{background:#344d6d}
.stock-secondary{border:1px solid #dce3ec;background:#fff;color:#667a94}
.stock-secondary:hover{background:#f6f8fb}
.stock-pilot button:disabled,.stock-dialog button:disabled{cursor:default;opacity:.5}
.stock-text-button{border:0;background:none;padding:3px 0;color:#617ea5;text-decoration:none}
.stock-text-button:hover{text-decoration:underline}
.stock-table-wrap{border:1px solid #e0e6ee;border-radius:6px;overflow:auto}
.stock-table{width:100%;border-collapse:collapse;table-layout:fixed;text-align:left;font-size:12px;line-height:1.5}
.stock-table thead{background:#f5f7fa;color:#8693a4}
.stock-table th,.stock-table td{padding:9px 16px;border-bottom:1px solid #e8edf3}
.stock-table thead th{font-weight:400;font-size:11px;height:37px;white-space:nowrap}
.stock-table th:first-child{width:39%}
.stock-table th:nth-child(2){width:15%}
.stock-table th:nth-child(3){width:14%}
.stock-table tbody th{font-weight:500;color:#405671;position:relative}
.stock-table tbody tr:last-child th,.stock-table tbody tr:last-child td{border-bottom:0}
.stock-table tbody tr:hover{background:#f9fafc}
.stock-table tbody td:not(.stock-number){color:#8795a7;font-size:11px}
.stock-table small{font-size:10px;color:#9aa5b4;font-weight:400}
.stock-side{display:inline-block;margin-left:12px;font-size:10px!important;color:#8090a5!important}
.stock-code{display:none;margin-left:10px}
.stock-number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.stock-remaining{color:#354c6b;font-size:19px;font-weight:600}
.stock-remaining>small{display:inline-block;min-width:22px;margin-left:7px}
.stock-negative{color:#ad655c}
.stock-recent{font-size:14px;color:#8797ae}
.stock-foot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 20px;color:#8996a8;font-size:10px;margin:11px 0 0}
.stock-foot p{margin:0;line-height:1.8}
.stock-shared-note{font-size:10px;color:#9aa4b2;margin:5px 0 0}
.stock-message{padding:8px 11px;border:1px solid #dce5ee;background:#f5f8fb;border-radius:5px;font-size:11px;color:#687f9a;margin:0 0 12px;line-height:1.7}
.stock-message.is-error{background:#fff8ef;color:#9b7445;border-color:#ebdec9}
.stock-pending{display:flex;align-items:center;gap:12px;padding:10px 12px;margin:0 0 12px;background:#fff8ec;border:1px solid #eadabc;border-radius:5px;color:#9b7742;font-size:11px}
.stock-pending>div{flex:1}.stock-pending strong{font-size:12px;font-weight:600}.stock-pending p{margin:4px 0 0}
.stock-pending button{border:1px solid #dfcba8;border-radius:4px;padding:5px 8px;background:#fffdf8;color:#93703d;white-space:nowrap}
.stock-issues,.stock-receipts{border-top:1px solid #e5eaf1;margin-top:13px;padding-top:10px;font-size:11px;color:#8b98a8}
.stock-issues summary{color:#a0804f}.stock-issues ul{margin:9px 0;padding-left:20px;line-height:1.8}
.stock-receipts summary{color:#71839c}.stock-receipts summary small{color:#9ca6b3;margin-left:8px;font-size:10px}
.stock-receipts table{width:100%;border-collapse:collapse;text-align:left;margin-top:9px;font-size:11px}
.stock-receipts th{font-weight:400;color:#9aa5b5;background:#f7f9fb}
.stock-receipts th,.stock-receipts td{padding:7px 12px;border-bottom:1px solid #edf0f5}
.stock-receipts td:last-child{text-align:right}.stock-receipts .is-voided{color:#a8b0bd}.stock-receipts .is-voided td:nth-child(3){text-decoration:line-through}
.stock-empty{padding:35px 4px;color:#8b97a8}.stock-empty p{font-size:12px;margin:12px 0}
.stock-dialog{width:min(700px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:21px 25px;border:1px solid #dce3ec;border-radius:9px;color:#526580;box-shadow:0 16px 60px #1e31402b;overflow:auto}
.stock-dialog::backdrop{background:#20324854}
.stock-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 15px}
.stock-dialog-heading h2{font-size:18px;color:#354d6c}
.stock-dialog-heading>button{border:0;background:none;color:#9aa6b5;padding:0 0 0 12px;font-size:25px;font-weight:300;line-height:1}
.stock-dialog label{font-size:12px;color:#637792}
.stock-dialog input:not([type=checkbox]),.stock-dialog select{min-width:0;height:33px;border:1px solid #dce3ed;border-radius:4px;padding:5px 9px;background:#fff;color:#3d5675;font-size:13px}
.stock-date-label{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.stock-entry-hint,.stock-dialog-intro{font-size:11px;line-height:1.8;color:#8b98a9;margin:11px 0}
.stock-entry-tools{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:10px;color:#9aa6b5;margin:8px 0}
.stock-entry-tools button{font-size:11px}
.stock-dialog-table-wrap{border:1px solid #e1e7ef;border-radius:5px;overflow:auto}
.stock-entry-table{border-collapse:collapse;width:100%;text-align:left;font-size:12px}
.stock-entry-table th,.stock-entry-table td{border-bottom:1px solid #e8edf3;padding:5px 11px}
.stock-entry-table tr:last-child th,.stock-entry-table tr:last-child td{border-bottom:0}
.stock-entry-table thead th{font-size:10px;background:#f5f7fa;color:#93a0b2;font-weight:400;height:31px}
.stock-entry-table thead th:first-child{width:52%}
.stock-entry-table tbody th{font-size:12px;font-weight:500;white-space:nowrap}
.stock-entry-table tbody th small{margin-left:10px;font-size:10px;color:#94a1b2;font-weight:400}
.stock-entry-table td input{width:100%;max-width:105px;height:28px!important;text-align:right;font-variant-numeric:tabular-nums}
.stock-confirm{display:flex;align-items:center;gap:7px;font-size:11px!important;line-height:1.7;margin:12px 0;color:#7c8da5!important}
.stock-confirm input{margin:0;accent-color:#637d9c;flex-shrink:0}
.stock-dialog-buttons{display:flex;justify-content:flex-end;gap:9px;margin:15px 0 0}
.stock-review td{text-align:right;font-variant-numeric:tabular-nums}.stock-review th,.stock-review td{padding-top:8px;padding-bottom:8px}.stock-review td strong{color:#3f5a7f;font-weight:600}
.stock-receipt-form{padding-top:4px}.stock-receipt-form label{display:flex;flex-direction:column;gap:7px}.stock-receipt-form select{width:100%}.stock-receipt-spec{font-size:11px;color:#94a0b1;margin:7px 0 20px}.stock-receipt-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.stock-void-copy{font-size:13px;color:#7689a3;line-height:2.1}.stock-void-copy strong{font-weight:500;color:#425e82}
@media(min-width:1450px){.stock-pilot{padding:22px 30px}.stock-table th,.stock-table td{padding:10px 20px}.stock-code{display:inline}.stock-heading{margin-bottom:18px}}
@media(max-height:790px) and (min-width:621px){.stock-pilot{padding-top:13px}.stock-heading{margin-bottom:11px}.stock-table th,.stock-table td{padding-top:5px;padding-bottom:5px}.stock-table thead th{height:31px}.stock-table .stock-remaining{font-size:18px;line-height:1.3}.stock-foot{margin-top:8px}.stock-dialog{padding:16px 22px}.stock-dialog-heading{margin-bottom:10px}.stock-entry-table th,.stock-entry-table td{padding-top:3px;padding-bottom:3px}.stock-entry-hint{margin:8px 0}.stock-dialog-buttons{margin-top:11px}}
@media(max-width:700px){.stock-pilot{padding:15px 12px}.stock-heading{gap:10px;align-items:flex-start}.stock-title-line{gap:8px;flex-wrap:wrap}.materials-page #catalog-panel .stock-heading h2{font-size:16px}.stock-heading p{font-size:10px;max-width:250px}.stock-actions{gap:5px}.stock-actions button{font-size:11px;padding:5px 9px}.stock-table{min-width:520px}.stock-table th,.stock-table td{padding:8px 10px}.stock-side{margin-left:7px}.stock-table th:first-child{width:37%}.stock-pending{flex-wrap:wrap}.stock-pending>div{flex-basis:100%}.stock-dialog{padding:17px 14px}.stock-entry-table th,.stock-entry-table td{padding-left:7px;padding-right:7px}.stock-entry-table tbody th small{display:block;margin-left:0}.stock-entry-table tbody th{white-space:normal}.stock-entry-table thead th:first-child{width:45%}.stock-entry-hint{font-size:10px}.stock-confirm{font-size:10px!important}.stock-dialog .stock-pending>div{flex-basis:100%}.stock-receipts table{font-size:10px}}
.raw-awaiting{font-size:12px;line-height:1.8;color:#8794a7;margin:14px 0 4px}
.raw-pending-detail{font-size:10px;color:#9ba6b5;margin-left:3px}
@media(max-width:650px){
  .materials-page:has(#catalog-panel.stock-mode) main{height:calc(100dvh - 47px);min-height:0;overflow:hidden}
  .materials-page #catalog-panel.stock-mode{min-height:0;overflow:hidden}
  .stock-mode .catalog-toolbar{padding:5px 10px;min-height:38px}
  .stock-pilot{padding:10px 10px 8px}
  .stock-heading{margin-bottom:9px;gap:8px}
  .stock-title-line{gap:6px}
  .materials-page #catalog-panel .stock-heading h2{font-size:15px;line-height:1.5}
  .stock-status{padding:1px 5px;font-size:9px}
  .stock-heading .stock-mobile-spec{display:block;font-size:10px;margin-top:2px;line-height:1.5}
  .stock-heading .stock-cutoff-note{margin-top:2px;font-size:9px;line-height:1.5}
  .stock-unopened .stock-cutoff-note{display:none}
  .stock-actions{gap:4px;padding-top:1px}
  .stock-actions button{min-height:29px;padding:4px 7px;font-size:10px}
  .stock-table{min-width:0;width:100%}
  .stock-table th:nth-child(2),.stock-table td:nth-child(2),.stock-table th:nth-child(3),.stock-table td:nth-child(3){display:none}
  .stock-table th:first-child{width:50%}
  .stock-table th:nth-child(4),.stock-table th:nth-child(5){width:25%}
  .stock-table th,.stock-table td{padding:4px 8px}
  .stock-table thead th{height:29px;font-size:10px}
  .stock-table tbody th{font-size:11px;white-space:nowrap}
  .stock-table small{font-size:9px}
  .stock-side{display:inline;margin-left:5px;font-size:9px!important}
  .stock-code{display:none}
  .stock-table .stock-remaining{font-size:16px;line-height:1.25}
  .stock-remaining>small{margin-left:4px;min-width:18px}
  .stock-recent{font-size:12px;line-height:1.4}
  .stock-foot{margin-top:7px;font-size:9px;gap:2px}
  .stock-foot p{line-height:1.6}
  .stock-formula-full{display:none}.stock-formula-short{display:inline}
  .stock-shared-note{margin-top:4px;font-size:9px;line-height:1.6}
  .stock-issues,.stock-receipts{margin-top:8px;padding-top:7px;font-size:10px}
}

/* The main material surface answers how many raw bars were used. */
.materials-page:has(#catalog-panel.raw-mode) main{min-height:0}
.materials-page:has(#catalog-panel.raw-mode) .catalog-metrics{display:none!important}
.catalog-modes .catalog-stock-entry{margin-left:8px;border-left:1px solid #dce3eb;border-radius:0 4px 4px 0;color:#8b95a2;font-weight:400}
.catalog-modes .catalog-stock-entry[aria-pressed=true]{border-left-color:transparent;color:#344d70}
.raw-mode .matrix-main{padding:14px 22px 8px}
.raw-mode .matrix-main-heading{margin-bottom:6px}
.raw-mode #catalog-count{font-size:11px}
.raw-mode #catalog-view-note{color:#8090a3;font-size:11px;line-height:1.5;margin-top:3px}
.raw-usage-controls{display:flex;justify-content:space-between;align-items:center;gap:10px 16px;flex-wrap:wrap;padding:0 0 12px;flex-shrink:0}
.raw-usage-date{display:flex;align-items:baseline;gap:8px 14px;flex-wrap:wrap;min-width:0}
#raw-usage-range{font-size:12px;color:#526780;font-variant-numeric:tabular-nums}
#raw-usage-updated{font-size:10px;color:#91a0b1}
.usage-periods{display:flex;gap:2px;background:#f3f6fa;border:1px solid #e4eaf2;border-radius:6px;padding:3px;flex-shrink:0}
.usage-periods button{background:transparent;border:1px solid transparent;border-radius:4px;min-width:40px;padding:3px 9px;color:#8796a9;font-size:11px;line-height:1.5}
.usage-periods button[aria-pressed=true]{border-color:#dbe4f1;background:#fff;color:#3f5e88;font-weight:600;box-shadow:0 1px 3px #334a6710}
.usage-faces{gap:12px;align-items:start}
.usage-faces .raw-face{border-radius:7px;border-color:#e1e7ef}
.usage-faces .raw-face>header{padding:8px 12px;gap:6px;flex-wrap:wrap}
.usage-faces .raw-face h3{font-size:14px}
.usage-faces .raw-face>header strong{color:#486b99;font-size:22px;line-height:1.15;font-weight:650;font-variant-numeric:tabular-nums}
.usage-faces .raw-face-inside>header strong{color:#8770a3}
.usage-faces .raw-face-integral>header strong{color:#a1854e}
.usage-faces .raw-face>header strong small{font-size:10px;font-weight:400;margin-left:4px;color:#92a0b1}
.usage-face-spec{font-size:10px!important;color:#8796a9!important;font-weight:400;display:block!important;margin:0;padding:5px 12px;border-bottom:1px solid #edf0f4;background:#fcfdfe}
.usage-table thead th{padding:4px 12px;background:#fbfcfe;font-size:10px}
.usage-table tbody th,.usage-table tbody td{padding:6px 12px;line-height:1.5}
.usage-table th:last-child,.usage-table td:last-child{width:72px}
.usage-table .raw-detail-link>span{font-size:13px;font-weight:500;color:#4a5f7b}
.usage-table .raw-detail-link>small{display:none}
.usage-table tbody td{font-size:20px;line-height:1.35;color:#476a98}
.usage-value.is-unknown{font-size:12px;color:#aa8955}
.usage-review{display:block;font-size:9px;color:#aa8955;font-weight:400}
.raw-face-inside .usage-table tbody td{color:#836d9d}
.raw-face-integral .usage-table tbody td{color:#a08451}
.usage-table tbody tr:hover{background:#f7f9fc}
.usage-row-spec{display:block;color:#8b9aab;font-size:10px;margin-top:1px;font-weight:400;line-height:1.45}
.raw-mode .raw-policy{font-size:10px;padding:5px 9px;margin-bottom:8px;background:#fafbfd}
.raw-mode .raw-footnote{margin:7px 0 0;font-size:10px;line-height:1.5}
.raw-mode .raw-pending{margin-top:9px;padding-top:8px}
.raw-mode .matrix-series-option small{color:#7e8da2;font-size:11px}
.raw-mode .matrix-series-option.selected small{color:#4e6e9a}
.raw-mode #trends-panel{margin-top:10px;padding-top:9px;flex:0 0 auto}
.raw-mode #trend-title{font-size:13px!important}
.raw-mode #trend-range{font-size:10px}
.raw-mode .trend-legend{font-size:10px;gap:3px 15px;margin-top:5px}
.raw-mode .trend-legend b{font-size:10px}
.raw-mode .trend-chart{height:140px;flex-basis:140px;margin:4px 0}
.raw-mode .trend-insight{font-size:10px;padding:5px 8px;line-height:1.5}
.raw-mode .trend-foot{font-size:9px;margin-top:4px}
.trend-dot[data-purpose=shared]{background:#7891a9}
@media(min-width:960px){
  .usage-faces:has(.raw-face-integral){grid-template-columns:repeat(3,minmax(0,1fr))}
  .usage-faces:has(.raw-face-integral) .raw-face-integral{grid-column:auto}
  .usage-faces:has(.raw-face-integral) .usage-table th:last-child,.usage-faces:has(.raw-face-integral) .usage-table td:last-child{width:55px}
  .usage-faces:has(.raw-face-integral) .usage-table thead th{white-space:nowrap;padding:4px 9px}
  .usage-faces:has(.raw-face-integral) .usage-table tbody th,.usage-faces:has(.raw-face-integral) .usage-table tbody td{padding:3px 9px}
  .usage-faces:has(.raw-face-integral) .usage-table tbody td{font-size:18px}
}
@media(max-height:790px) and (min-width:701px){
  .raw-mode .matrix-main{padding:10px 17px 8px}
  .raw-mode .matrix-main-heading{margin-bottom:4px}
  .raw-mode .matrix-main-heading h2{font-size:18px!important}
  .raw-usage-controls{padding-bottom:8px}
  .usage-faces .raw-face>header{padding:7px 11px}
  .usage-faces .raw-face>header strong{font-size:20px}
  .usage-table tbody th,.usage-table tbody td{padding:4px 11px}
  .usage-table tbody td{font-size:18px;line-height:1.4}
  .raw-mode .raw-footnote{font-size:9px}
  .raw-mode .trend-chart{height:115px;flex-basis:115px}
  .raw-mode .trend-insight{font-size:9px;padding:4px 7px}
  .raw-mode .matrix-sidebar{padding-top:9px;padding-bottom:9px}
  .raw-mode .matrix-series-option{min-height:33px;padding:6px 9px}
}
@media(max-width:700px){
  .raw-mode .catalog-workspace{display:block;min-height:0}
  .raw-mode .matrix-sidebar{display:none}
  .raw-mode .catalog-toolbar{gap:7px;flex-wrap:wrap;padding:7px 10px}
  .raw-mode .catalog-modes{order:0;flex:0 0 auto}
  .raw-mode .catalog-search-wrap{order:2;max-width:none;flex:1;min-width:140px}
  .raw-mode .matrix-series-select[hidden]{display:flex!important;order:1;align-items:center;gap:6px;font-size:11px;color:#8090a4;margin-left:auto}
  .raw-mode .matrix-series-select select{height:30px;min-width:108px;max-width:175px;padding:4px 6px;border:1px solid #dce4ef;background:#fbfcfe;color:#4c6484;border-radius:5px;font-size:11px}
  .raw-mode .catalog-filter-note{display:none!important}
  .raw-mode .matrix-main{padding:10px 10px 8px;overflow:visible}
  .raw-mode .matrix-main-heading{margin-bottom:5px}
  .raw-mode #catalog-view-note{font-size:10px}
  .raw-usage-controls{gap:6px;padding-bottom:8px}
  .raw-usage-date{gap:2px 7px;flex:1}
  #raw-usage-range{font-size:10px}#raw-usage-updated{font-size:9px}
  .usage-periods{padding:2px}
  .usage-periods button{min-width:29px;padding:3px 5px;font-size:10px}
  .raw-mode .usage-faces{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .usage-faces .raw-face>header{padding:7px 8px;gap:4px}
  .usage-faces .raw-face h3{font-size:12px}
  .usage-faces .raw-face>header strong{font-size:19px}
  .usage-face-spec{font-size:9px!important;padding:4px 8px}
  .usage-table thead th{font-size:9px;padding:3px 8px}
  .usage-table tbody th,.usage-table tbody td{padding:5px 8px}
  .usage-table th:last-child,.usage-table td:last-child{width:45px}
  .usage-table .raw-detail-link>span{font-size:11px;line-height:1.45}
  .usage-table tbody td{font-size:17px}
  .usage-row-spec{font-size:9px}
  .raw-mode .raw-footnote{font-size:9px;margin-top:6px}
  .raw-mode .trend-chart{height:125px;flex-basis:125px}
  .raw-mode .trend-legend{font-size:9px;gap:3px 9px}
  .raw-mode .trend-legend b{font-size:9px}
  .raw-mode .trend-insight{font-size:9px}
}
@media(max-width:420px){
  .raw-mode .catalog-modes{width:100%;justify-content:flex-start}
  .raw-mode .matrix-series-select[hidden]{order:2;margin-left:0}
  .raw-mode .catalog-search-wrap{order:1;width:100%;flex-basis:100%}
  .raw-mode .usage-faces{gap:6px}
  .usage-table th:last-child,.usage-table td:last-child{width:39px}
  .usage-table tbody th,.usage-table tbody td{padding:5px 5px}
}

/* The working view follows the handwritten material piles, one number per stock item. */
.catalog-current-view{font-size:15px;color:#304965;white-space:nowrap;margin-right:12px}
.catalog-more{position:relative;margin-left:auto;flex-shrink:0}
.catalog-more>summary{cursor:pointer;list-style:none;font-size:13px;color:#6b7e93;padding:8px 10px;border-radius:6px}
.catalog-more>summary::-webkit-details-marker{display:none}
.catalog-more>summary::after{content:'⌄';margin-left:8px;color:#91a0af}
.catalog-more[open]>summary,.catalog-more>summary:hover{background:#f0f4f9;color:#395c86}
.catalog-more .catalog-modes{position:absolute;right:0;top:calc(100% + 6px);z-index:30;display:flex;flex-direction:column;align-items:stretch;width:178px;padding:6px;border:1px solid #dfe7f0;border-radius:8px;background:white;box-shadow:0 10px 30px #2d43551f}
.catalog-more .catalog-modes button{font-size:14px;line-height:1.5;text-align:left;padding:9px 11px}
.catalog-more .catalog-modes .catalog-stock-entry{margin:4px 0 0;border:0;border-top:1px solid #e6ebf1;border-radius:0;padding-top:12px}
.raw-mode .matrix-sidebar-label{font-size:13px;color:#778a9d}
.raw-mode .matrix-series-option{min-height:43px;font-size:15px;padding:10px 12px;border-radius:7px;color:#566b83}
.raw-mode .matrix-series-option.selected{color:#2e527b;background:#eaf0f7;border-color:#d9e3ef;font-weight:650}
.raw-mode .matrix-series-option .raw-status-pending{font-size:11px;color:#a18047}
.raw-mode .matrix-main{padding:22px 24px 18px}
.raw-mode .matrix-main-heading{margin-bottom:15px}
.raw-mode #catalog-title{font-size:25px!important;line-height:1.35;color:#293e55}
.raw-mode #catalog-title>span{font-size:13px!important;color:#72849a;font-weight:400;margin-left:12px}
.raw-mode #catalog-view-note{font-size:13px;line-height:1.6;color:#77899c;margin-top:5px}
.raw-mode .raw-usage-controls{padding-bottom:18px;gap:10px}
.raw-mode #raw-usage-range{font-size:14px;color:#4a6078}
.raw-mode #raw-usage-updated{font-size:11px}
.raw-mode .usage-periods button{font-size:13px;padding:4px 10px;min-width:42px}
.usage-ledger{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.usage-block{border:1px solid #dce5ee;border-radius:10px;overflow:hidden;background:#fff;min-width:0}
.usage-block-header{background:#f3f6fa;padding:14px 16px 12px;border-bottom:1px solid #e3e9f0}
.usage-block-header h3{margin:0;color:#344f70;font-size:18px;font-weight:650;line-height:1.3}
.usage-block-spec{display:block;margin:5px 0 0;color:#788ca1;font-size:12px;font-weight:400;line-height:1.5}
.usage-block-rows{padding:0 14px}
.usage-line{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;text-align:left;padding:12px 0;border:0;border-bottom:1px solid #edf1f5;background:#fff;min-width:0;min-height:69px;border-radius:0;cursor:pointer}
.usage-line:last-child{border-bottom:0}
.usage-line-copy{display:block;min-width:0}
.usage-line-code{display:block;font-size:11px;color:#788ca1;line-height:1.5;overflow-wrap:anywhere}
.usage-line:hover{background:#f8fafc}
.usage-line:focus-visible{outline:2px solid #4c78a7;outline-offset:3px;border-radius:3px}
.usage-line-name{min-width:0;display:block;color:#3e526b;font-size:16px;font-weight:500;line-height:1.4;overflow-wrap:anywhere}
.usage-line-name>span{display:block}
.usage-line-side{display:block;font-size:12px;font-weight:400;color:#788ca1;line-height:1.5;margin-top:3px}
.usage-line-shared{display:block;font-size:11px;font-weight:400;color:#788ca1;line-height:1.4;margin-top:2px}
.usage-line-spec{display:block;font-size:12px;font-weight:400;color:#566e88;line-height:1.55;margin-top:2px}
.usage-line-value{flex-shrink:0;white-space:nowrap;font-size:28px;font-weight:650;line-height:1.1;color:#365f8a;font-variant-numeric:tabular-nums;letter-spacing:-.5px}
.usage-line-value small{font-size:12px;margin-left:5px;color:#8394a6;font-weight:400;letter-spacing:0}
.usage-line-value.is-unknown{font-size:16px;color:#a1814d}
.usage-line.is-unknown .usage-line-value{font-size:16px;color:#a1814d}
.usage-line.has-no-records:not(.is-unknown) .usage-line-value{color:#9aa9b9}
.usage-line-review{display:block;font-size:11px;color:#a1814d;margin-top:4px;font-weight:400;letter-spacing:0}
.raw-mode .usage-footnote{font-size:12px;line-height:1.7;color:#8392a3;margin-top:15px}
.raw-mode .raw-pending{font-size:13px;line-height:1.7;margin-top:15px}
.raw-trend-toggle{align-self:stretch;width:100%;display:flex;align-items:center;justify-content:space-between;padding:14px 1px;margin-top:14px;text-align:left;border:0;border-top:1px solid #e3e9ef;border-radius:0;background:transparent;font-size:14px;font-weight:500;color:#536f8f}
.raw-trend-toggle::after{content:'＋';font-size:19px;font-weight:400;color:#7d92aa}
.raw-trend-toggle[aria-expanded=true]::after{content:'−'}
.raw-trend-toggle:hover{color:#214f7c}
.raw-mode #trends-panel{margin-top:0;padding-top:4px;border-top:0}
.raw-mode #trend-title{font-size:15px!important}
.raw-mode #trend-range,.raw-mode .trend-legend,.raw-mode .trend-legend b{font-size:12px}
.raw-mode .trend-chart{height:185px;flex-basis:185px}
.raw-mode .trend-insight{font-size:12px;padding:8px 10px}
.raw-mode .trend-foot{font-size:11px}
@media(min-width:960px){
  .usage-ledger:has(.usage-block:nth-child(3)){grid-template-columns:repeat(3,minmax(0,1fr))}
  .raw-mode:has(.usage-block:nth-child(4)) .matrix-main-heading{margin-bottom:8px}
  .raw-mode:has(.usage-block:nth-child(4)) .matrix-main{padding-bottom:8px}
  .raw-mode:has(.usage-block:nth-child(4)) .raw-usage-controls{padding-bottom:10px}
  .usage-ledger:has(.usage-block:nth-child(4)) .usage-block-header{padding:8px 12px}
  .usage-ledger:has(.usage-block:nth-child(4)) .usage-block-spec{margin-top:3px;font-size:11px}
  .usage-ledger:has(.usage-block:nth-child(4)) .usage-line{min-height:52px;padding:6px 0}
  .usage-ledger:has(.usage-block:nth-child(4)) .usage-line-side{font-size:11px;line-height:1.4;margin-top:1px}
}
@media(max-width:1100px){
  .raw-mode .matrix-main{padding:18px 20px 14px}
  .usage-ledger{gap:12px}
  .usage-block-header{padding:12px 12px 10px}
  .usage-block-rows{padding:0 12px}
  .usage-line{min-height:64px;padding:10px 0;gap:7px}
  .usage-line-name{font-size:15px}
  .usage-line-value{font-size:27px}
  .raw-mode .matrix-series-option{font-size:14px;padding:10px}
}
@media(max-height:790px) and (min-width:701px){
  .raw-mode .matrix-main{padding:14px 20px 12px}
  .raw-mode .matrix-main-heading{margin-bottom:9px}
  .raw-mode .raw-usage-controls{padding-bottom:12px}
  .usage-block-header{padding:10px 12px 8px}
  .usage-line{min-height:58px;padding:8px 0}
  .raw-mode .matrix-series-option{min-height:37px;padding:8px 10px}
}
@media(max-width:700px){
  .raw-mode .catalog-toolbar{padding:9px 10px;gap:8px}
  .catalog-current-view{font-size:14px;margin-right:0}
  .catalog-more{order:1}
  .catalog-more>summary{font-size:12px;padding:6px 4px}
  .catalog-more .catalog-modes{width:174px;max-width:none}
  .raw-mode .catalog-search-wrap{order:3;flex:1;min-width:145px}
  .raw-mode .matrix-series-select[hidden]{order:2;font-size:13px;margin-left:0}
  .raw-mode .matrix-series-select select{font-size:13px;min-width:122px;max-width:200px;height:36px}
  .raw-mode .matrix-main{padding:15px 12px}
  .raw-mode #catalog-title{font-size:23px!important}
  .raw-mode #catalog-title>span{display:block;margin:4px 0 0;font-size:12px!important}
  .raw-mode .raw-usage-controls{padding-bottom:13px;align-items:start}
  .raw-mode #raw-usage-range{font-size:12px}
  .raw-mode #raw-usage-updated{font-size:10px}
  .raw-mode .usage-periods button{font-size:12px;min-width:33px;padding:3px 6px}
  .usage-ledger{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .usage-line-value{font-size:25px}
  .usage-line-name{font-size:14px}
  .usage-block-header h3{font-size:17px}
  .raw-mode .usage-footnote{font-size:11px}
}
@media(max-width:440px){
  .usage-ledger{grid-template-columns:1fr}
  .usage-line{min-height:57px}
  .usage-line-name>span{display:inline}
  .usage-line-side{display:inline;margin-left:8px}
  .usage-line-name .usage-line-spec{display:block}
  .raw-mode .catalog-search-wrap{width:auto;flex-basis:145px}
  .raw-mode .catalog-modes{width:174px}
}

/* Audited single-piece aluminum sections beside the original usage identity. */
.usage-line{display:grid;grid-template-columns:54px minmax(0,1fr) auto;column-gap:9px;min-height:76px}
.usage-section{display:flex;align-items:center;justify-content:center;width:54px;height:56px;padding:3px;background:#f7f9fc;border:1px solid #e7edf4;border-radius:5px;color:#55718d}
.usage-section svg{display:block;width:100%;height:100%;overflow:visible}
.usage-section.is-missing{font-size:11px;color:#9b8b73;background:#faf9f6;border-style:dashed;white-space:nowrap}
.usage-line-value{font-size:25px}
.usage-line-value small{font-size:11px;margin-left:3px}
.usage-line-name{font-size:15px}
.usage-line-side{font-size:11px}
.section-detail{margin:16px 0 14px;padding:18px;border:1px solid #e1e8f0;background:#f8fafc;border-radius:9px}
.section-detail-image{display:flex;align-items:center;justify-content:center;width:100%;height:220px}
.section-detail-image svg{display:block;width:100%;height:100%;max-width:420px}
.section-detail figcaption{margin-top:14px;text-align:center;font-size:12px;color:#7c8da0}
.section-unavailable{padding:15px 16px;background:#faf9f6;border:1px dashed #e4ddce;border-radius:7px;font-size:13px;color:#8c7a5f;line-height:1.7}
@media(min-width:960px){
  .usage-ledger:has(.usage-block:nth-child(4)) .usage-line{grid-template-columns:44px minmax(0,1fr) auto;gap:7px;min-height:56px;padding:4px 0}
  .usage-ledger:has(.usage-block:nth-child(4)) .usage-section{width:44px;height:44px;padding:2px}
  .usage-ledger:has(.usage-block:nth-child(4)) .usage-line-name{font-size:14px}
  .usage-ledger:has(.usage-block:nth-child(4)) .usage-line-value{font-size:24px}
}
@media(max-width:1100px){
  .usage-line{grid-template-columns:48px minmax(0,1fr) auto;gap:7px}
  .usage-section{width:48px;height:54px;padding:3px}
  .usage-line-name{font-size:14px}
  .usage-line-value{font-size:24px}
}
@media(max-width:700px){
  .usage-ledger{grid-template-columns:1fr}
  .usage-line{grid-template-columns:56px minmax(0,1fr) auto;gap:12px;min-height:72px}
  .usage-section{width:56px;height:56px}
  .usage-line-name{font-size:16px}
  .usage-line-value{font-size:27px}
  .section-detail-image{height:190px}
}

/* Brand cues identify the series; finish cues identify the aluminum color. */
:is(#catalog-panel,#matrix-detail-dialog,.matrix-series-option,.matrix-brand-group)[data-brand]{--brand-ink:#526578;--brand-accent:#75899b;--brand-soft:#f0f4f7;--brand-line:#dce5ec}
:is(#catalog-panel,#matrix-detail-dialog,.matrix-series-option,.matrix-brand-group)[data-brand="jianzhi"]{--brand-ink:#356795;--brand-accent:#5284b2;--brand-soft:#eef4fa;--brand-line:#d5e3f0}
:is(#catalog-panel,#matrix-detail-dialog,.matrix-series-option,.matrix-brand-group)[data-brand="shared"]{--brand-ink:#777043;--brand-accent:#a29967;--brand-soft:#f6f5ed;--brand-line:#e6e2cb}
:is(#catalog-panel,#matrix-detail-dialog,.matrix-series-option,.matrix-brand-group)[data-brand="zhonglv"]{--brand-ink:#2e7c74;--brand-accent:#4a9a91;--brand-soft:#edf6f3;--brand-line:#d3e9e2}
:is(#catalog-panel,#matrix-detail-dialog,.matrix-series-option,.matrix-brand-group)[data-brand="hanse"]{--brand-ink:#9a602d;--brand-accent:#bd864d;--brand-soft:#fbf3e9;--brand-line:#efddc5}
:is(#catalog-panel,#matrix-detail-dialog,.matrix-series-option,.matrix-brand-group)[data-brand="guangya"]{--brand-ink:#72549b;--brand-accent:#9274b8;--brand-soft:#f4effa;--brand-line:#e3d8ef}
:is(#catalog-panel,#matrix-detail-dialog,.matrix-series-option,.matrix-brand-group)[data-brand="huangya"]{--brand-ink:#a04f69;--brand-accent:#be7890;--brand-soft:#fbf0f3;--brand-line:#eed8e0}
.matrix-series-option[data-brand]{position:relative;padding-left:22px!important}
.matrix-series-option[data-brand]::before{content:"";position:absolute;left:9px;top:50%;width:5px;height:5px;border-radius:50%;background:var(--brand-accent);transform:translateY(-50%)}
.raw-mode .matrix-series-option[data-brand].selected{color:var(--brand-ink);background:var(--brand-soft);border-color:var(--brand-line);box-shadow:inset 3px 0 var(--brand-accent)}
.raw-mode .matrix-series-option[data-brand]:hover{background:var(--brand-soft);color:var(--brand-ink)}
#catalog-series-nav{gap:9px}
.matrix-brand-group{min-width:0;flex-shrink:0;border:1px solid var(--brand-line);border-left:3px solid var(--brand-accent);border-radius:7px;background:#fff;overflow:hidden}
.matrix-brand-heading{margin:0;padding:4px 9px;border-bottom:1px solid var(--brand-line);background:var(--brand-soft);color:var(--brand-ink);font-size:13px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}
.matrix-brand-series{display:grid;gap:1px;padding:3px}
.matrix-brand-series>.matrix-series-option[data-brand]{min-height:34px;padding:5px 8px!important;font-size:13px;line-height:1.45;border-radius:4px}
.matrix-brand-series>.matrix-series-option[data-brand]::before{display:none}
.raw-mode .matrix-brand-series>.matrix-series-option{min-height:34px;font-size:14px}
@media(max-width:620px){.matrix-brand-heading{padding:4px 5px;font-size:11px}.matrix-brand-series{padding:2px}.matrix-brand-series>.matrix-series-option[data-brand]{font-size:10px;padding:5px!important}}
.raw-mode[data-brand] #catalog-title,.matrix-detail-dialog[data-brand] #matrix-detail-title{color:var(--brand-ink)}
.raw-mode[data-brand] .usage-block{border-color:var(--brand-line)}
.raw-mode[data-brand] .usage-block-header{background:var(--brand-soft);border-color:var(--brand-line)}
.raw-mode[data-brand] .usage-block-header h3{color:var(--brand-ink)}
.raw-mode[data-brand] .usage-line-value{color:var(--brand-ink)}
.raw-mode[data-brand] .usage-line.has-no-records:not(.is-unknown) .usage-line-value{color:#94a0ab}
.raw-mode[data-brand] .usage-line.is-unknown .usage-line-value{color:#9c7943}
.raw-mode[data-brand] .usage-line:focus-visible{outline-color:var(--brand-accent)}
.raw-mode[data-brand] .usage-periods button.selected{color:var(--brand-ink);border-color:var(--brand-line);background:var(--brand-soft)}

/* Only the original neutral ink is recolored: transparent holes and open paths stay intact. */
:is(.usage-section,.section-detail,.usage-finish)[data-finish]{--finish-ink:#687a8a;--finish-line:#a4afba}
:is(.usage-section,.section-detail,.usage-finish)[data-finish="grey"]{--finish-ink:#9baebc;--finish-line:#8799a8}
:is(.usage-section,.section-detail,.usage-finish)[data-finish="fluorocarbon-grey"]{--finish-ink:#465461;--finish-line:#465461}
:is(.usage-section,.section-detail,.usage-finish)[data-finish="metallic-grey"]{--finish-ink:#7c8c93;--finish-line:#87939e}
:is(.usage-section,.section-detail)[data-finish] [fill="#55718d"]{fill:var(--finish-ink)}
:is(.usage-section,.section-detail)[data-finish] [stroke="#55718d"]{stroke:var(--finish-ink)}
.usage-finish{display:inline-flex;align-items:center;gap:5px;vertical-align:middle;white-space:nowrap;color:#657383}
.usage-finish>i{display:inline-block;flex:0 0 10px;width:10px;height:10px;border:1px solid var(--finish-line);border-radius:2px;background:var(--finish-ink)}
[data-brand="hanse"] .usage-finish:is([data-finish="grey"],[data-finish="fluorocarbon-grey"]){padding:1px 5px;border:1px solid #e2e8ed;border-radius:4px;font-weight:400;line-height:1.4;color:#596976}
[data-brand="hanse"] .usage-finish[data-finish="grey"]{background:#f5f7f9}
[data-brand="hanse"] .usage-finish[data-finish="fluorocarbon-grey"]{background:#eef1f4}
[data-brand="hanse"] .usage-finish:is([data-finish="grey"],[data-finish="fluorocarbon-grey"])>i{width:20px;height:12px;flex-basis:20px}
[data-brand="hanse"] .usage-finish[data-finish="grey"]>i{background:#c1cbd3;border-color:#91a0ab}
[data-brand="hanse"] .usage-finish[data-finish="fluorocarbon-grey"]>i{background:repeating-linear-gradient(135deg,#485662 0 4px,#8a99a4 4px 5px);border-color:#485662}
.usage-finish[data-finish="unknown"]>i{background:transparent;border-style:dashed}
.usage-line-spec .usage-finish,.usage-block-spec .usage-finish{font-size:inherit}
.matrix-detail-code .usage-finish{gap:6px}

/* Full-width glass-sash and subframe groups, with indoor profiles always on the left. */
.usage-block-paired{grid-column:1/-1}
.usage-block-paired>.usage-block-rows{padding:0}
.usage-block-paired>.usage-block-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:35px;padding:7px 12px}
.usage-block-paired>.usage-block-header h3{font-size:16px;line-height:1.2}
.usage-block-paired>.usage-block-header .usage-block-spec{margin:0;font-size:11px;line-height:1.3}
.usage-glass-sides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;align-items:start}
.usage-glass-sides.has-shared-inner{align-items:stretch}
.has-shared-inner>.usage-side-column[data-side="inside"]{display:flex;flex-direction:column}
.has-shared-inner>.usage-side-column[data-side="inside"]>h4{flex-shrink:0}
.has-shared-inner>.usage-side-column[data-side="inside"]>.usage-line{margin-block:auto;flex-shrink:0}
.usage-side-column{min-width:0;padding:0 14px}
.usage-side-column+.usage-side-column{border-left:1px solid #e8edf2}
.usage-side-column>h4{margin:0;padding:5px 0 4px;border-bottom:1px solid #e8edf2;color:#768494;font-size:12px;line-height:1.3;font-weight:500;letter-spacing:1px}
.usage-block-paired .usage-line{min-height:58px;grid-template-columns:44px minmax(0,1fr) auto;padding:5px 0;gap:9px}
.usage-block-paired .usage-section{width:44px;height:44px;padding:2px}
.usage-block-paired .usage-line-name{font-size:14px;line-height:1.4}
.usage-block-paired .usage-line-value{font-size:25px}
.usage-side-column .usage-line-side{display:none}
.usage-side-column .usage-line-spec{margin-top:2px;font-size:12px;line-height:1.4}
.usage-side-empty{margin:0;padding:18px 0 20px;color:#9aa5b0;font-size:12px;line-height:1.6}
.usage-integral-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px;margin:0 14px;padding:0;border-top:1px solid #e8edf2}
.usage-integral-rows>h4,.usage-integral-rows>p,.usage-integral-rows>.usage-integral-heading{grid-column:1/-1;margin:6px 0 1px;color:#768494;font-size:12px;line-height:1.5;font-weight:500}
.usage-integral-rows>.usage-line{border-bottom:0}
.usage-integral-rows>.usage-line:only-of-type{grid-column:1/-1}
.usage-integral-title{margin:0 14px;padding:5px 0 3px;border-top:1px solid #e8edf2;color:#768494;font-size:12px;line-height:1.3;font-weight:500}
.usage-integral-title+.usage-integral-rows{border-top:0}
.usage-block-paired .usage-integral-rows .usage-line-name{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 6px}
.usage-block-paired .usage-integral-rows .usage-line-side{margin-top:0;white-space:nowrap}
@media(min-width:960px){
  .raw-mode .usage-ledger:has(>.usage-block-paired){grid-template-columns:repeat(2,minmax(0,1fr))}
  .raw-mode .usage-ledger:has(>.usage-block:not(.usage-block-paired)~.usage-block:not(.usage-block-paired)~.usage-block:not(.usage-block-paired)){grid-template-columns:repeat(3,minmax(0,1fr))}
  .usage-ledger:has(.usage-block:nth-child(4)) .usage-block-paired .usage-line{min-height:58px;grid-template-columns:44px minmax(0,1fr) auto;gap:8px;padding:5px 0}
  .usage-ledger:has(.usage-block:nth-child(4)) .usage-block-paired .usage-section{width:44px;height:44px;padding:2px}
  .usage-ledger:has(.usage-block:nth-child(4)) .usage-block-paired .usage-line-value{font-size:24px}
}
@media(max-width:1100px){
  .usage-side-column{padding:0 12px}
  .usage-integral-rows{margin:0 12px;column-gap:24px}
  .usage-integral-title{margin:0 12px}
  .usage-block-paired .usage-line{gap:7px}
}
@media(max-width:700px){
  .usage-glass-sides{grid-template-columns:repeat(2,minmax(0,1fr))}
  .usage-side-column{padding:0 9px}
  .usage-side-column>h4{font-size:12px;padding:5px 0 4px}
  .usage-block-paired .usage-line{grid-template-columns:42px minmax(0,1fr);gap:3px 7px;min-height:85px;padding:8px 0;align-items:center}
  .usage-block-paired .usage-section{grid-column:1;grid-row:1/3;width:42px;height:48px;padding:2px}
  .usage-block-paired .usage-line-copy{grid-column:2;grid-row:1}
  .usage-block-paired .usage-line-value{grid-column:2;grid-row:2;justify-self:start;align-self:start;font-size:23px;line-height:1.15}
  .usage-block-paired .usage-line-value small{font-size:10px;margin-left:3px}
  .usage-block-paired .usage-line-name{font-size:12px;line-height:1.4}
  .usage-block-paired .usage-line-spec{font-size:10px;margin-top:3px;line-height:1.4}
  .usage-block-paired .usage-line-code{font-size:9px}
  .usage-block-paired .usage-line-side{font-size:10px}
  .usage-block-paired .usage-finish{gap:3px}
  .usage-block-paired .usage-finish>i{width:8px;height:8px;flex-basis:8px}
  [data-brand="hanse"] .usage-block-paired .usage-finish>i{width:14px;height:10px;flex-basis:14px}
  .usage-integral-rows{margin:0 9px;column-gap:18px}
  .usage-integral-title{margin:0 9px}
}
@media(max-width:380px){
  .usage-side-column{padding:0 7px}
  .usage-block-paired .usage-line{grid-template-columns:34px minmax(0,1fr);gap:3px 5px}
  .usage-block-paired .usage-section{width:34px;height:44px}
  .usage-block-paired .usage-line-name{font-size:11px}
  .usage-block-paired .usage-line-value{font-size:22px}
}

/* Optimization batches: date, whole-profile batches, then customer orders. */
.batch-page{background:#f3f5f8}
.batch-page .header-inner{max-width:none;height:46px;padding:0 22px}
.batch-page .brand{font-size:14px;gap:9px;letter-spacing:.5px}
.batch-page .brand small{display:none}
.batch-page .brand-mark{width:21px;height:22px;gap:3px}
.batch-page .brand-mark i{width:5px;height:18px}
.batch-page .brand-mark i:nth-child(2){height:22px}
.batch-page .brand-mark i:nth-child(3){height:15px}
.batch-page main{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:38px;align-content:start;gap:10px 20px;max-width:1680px;min-height:calc(100dvh - 47px);margin:0 auto;padding:10px 20px 12px}
.batch-page .page-heading{grid-column:2;grid-row:1;margin:0;gap:0;justify-content:flex-end}
.batch-page .page-heading>div{display:none}
.batch-page .update-button{min-height:34px;height:34px;padding:6px 12px;font-size:12px;border-radius:5px;gap:7px}
.batch-page .page-nav{grid-column:1;grid-row:1;margin:0;border:0;align-self:center;gap:3px}
.batch-page .page-nav a{padding:6px 12px;border:0;margin:0;font-size:13px;border-radius:5px;color:#7c8998}
.batch-page .page-nav a.active{background:#e8edf4;color:#344863}
.batch-page .metrics,.batch-page .catalog-metrics,.batch-page .data-meta,.batch-page footer{display:none}
.batch-page .notice,.batch-page .sync-panel,.batch-page #reviews-panel,.batch-page #replacement-panel{grid-column:1/-1;min-width:0;margin:0}
.batch-page #consumption-panel{grid-column:1/-1;display:flex;flex-direction:column;min-width:0;min-height:390px;height:calc(100dvh - 117px);border:1px solid #dfe5ed;border-radius:9px;background:#fff;overflow:hidden}
.batch-page .batch-toolbar{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:18px;min-height:57px;padding:10px 16px;border-bottom:1px solid #e7ebf1}
.batch-page .batch-workflow-hint{margin:0;color:#637a92;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.batch-page .batch-workflow-hint strong{font-weight:600;color:#3d5977}
.batch-page .batch-search{display:flex;align-items:center;gap:9px;min-width:180px;flex:0 1 350px}
.batch-page #material-search{width:100%;min-width:0;height:35px;padding:7px 11px;border:1px solid #dce4ed;border-radius:5px;background:#fbfcfd;color:#435c76;font-size:12px}
.batch-page #material-search::placeholder{color:#8b9bac}
.batch-page #source-clear{padding:5px 0;border:0;background:transparent;color:#71849c;font-size:12px;white-space:nowrap}
.batch-page .batch-statusbar{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px 18px;min-height:44px;padding:7px 16px;color:#788ba1;font-size:12px;border-bottom:1px solid #e7edf3;background:#fcfdfe}
.batch-page #batch-count{margin:0;color:#536b83;font-size:13px;line-height:1.6}
.batch-page #batch-count strong{font-size:17px;color:#355675;font-variant-numeric:tabular-nums}
.batch-page .batch-statusbar>div{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0;flex:0 1 65%}
.batch-page #print-scan-status{min-width:0;font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.batch-page #print-scan-button{flex:0 0 auto;padding:6px 10px;border:1px solid #dce5ee;border-radius:5px;background:#fff;color:#52718e;font-size:11px;white-space:nowrap}
.batch-page #print-scan-button:hover:not(:disabled){background:#eff4f9}
.batch-page #print-scan-button:disabled{opacity:.6;cursor:default}
.batch-page #daily-issues{flex:0 0 auto;margin:8px 16px;padding:7px 10px;border:1px solid #eadcc3;border-radius:5px;background:#fffaf2;color:#9a7c47;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.batch-page .batch-workspace{display:grid;grid-template-columns:126px minmax(0,1fr) clamp(278px,26vw,340px);flex:1 1 auto;min-height:0;min-width:0;overflow:hidden}
.batch-page .batch-dates-column,.batch-page .batch-material-column,.batch-page .batch-customer-column{min-height:0;min-width:0}
.batch-page .batch-dates-column{display:flex;flex-direction:column;background:#f6f8fb;border-right:1px solid #dfe6ee}
.batch-page .batch-dates-column>h2{flex:0 0 auto;min-height:43px;margin:0;padding:11px 14px 10px;color:#71849a;font-size:13px;font-weight:500}
.batch-page #batch-date-nav{display:flex;flex-direction:column;gap:3px;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 8px 8px;scrollbar-width:thin}
.batch-page .batch-date-year{flex:0 0 auto;margin:0;padding:3px 7px;color:#92a1b3;font-size:11px;line-height:1.5}
.batch-page .batch-date-option{display:flex;flex:0 0 auto;flex-direction:row;align-items:center;justify-content:space-between;gap:4px;width:100%;min-width:0;min-height:38px;padding:7px 6px;border:1px solid transparent;border-radius:5px;background:transparent;color:#667c94;text-align:left}
.batch-page .batch-date-option:hover{background:#edf2f8}
.batch-page .batch-date-option strong{display:block;max-width:100%;font-size:14px;font-weight:500;line-height:1.5;white-space:nowrap;font-variant-numeric:tabular-nums}
.batch-page .batch-date-option small{display:block;flex:0 0 auto;font-size:11px;line-height:1.4;white-space:nowrap;color:#8a9bb0}
.batch-page .batch-date-option.selected{border-color:#cfdbeb;background:#e8eff8;color:#35567c;box-shadow:inset 3px 0 #7b99c0}
.batch-page .batch-date-option.selected strong{font-weight:650}
.batch-page .batch-date-option.selected small{color:#6c87a6}
.batch-page .batch-material-column{display:flex;flex-direction:column;border-right:1px solid #dfe6ee;background:#fcfdff}
.batch-page .batch-column-heading{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:10px;min-height:43px;padding:9px 16px 10px;border-bottom:1px solid #e7edf3;background:#fff}
.batch-page .batch-column-heading h2{color:#3c5674;font-size:15px;line-height:1.5}
.batch-page .batch-column-heading p,.batch-page .batch-column-heading small{margin:0;color:#7d90a7;font-size:12px}
.batch-page .batch-list{display:flex;flex-direction:column;align-items:stretch;gap:8px;flex:1 1 auto;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:10px;scrollbar-width:thin}
.batch-page .batch-card{flex:0 0 auto;min-width:0;border:1px solid #dde5ee;border-radius:6px;background:#fff;overflow:hidden}
.batch-page .batch-card.is-selected{border-color:#a9bdd6;box-shadow:0 0 0 1px #dde7f2}
.batch-page .batch-toggle{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;width:100%;min-height:58px;padding:8px 14px;border:0;background:#fff;color:#3b526d;text-align:left}
.batch-page .batch-toggle:hover{background:#f5f8fc}
.batch-page .batch-card.is-selected .batch-toggle,.batch-page .batch-toggle[aria-pressed="true"]{background:#edf3fa}
.batch-page .batch-main{display:block;min-width:0}
.batch-page .batch-code{display:block;color:#314e70;font-size:17px;font-weight:650;letter-spacing:.15px;line-height:1.4;overflow-wrap:anywhere}
.batch-page .batch-main>small{display:block;margin-top:4px;color:#7488a0;font-size:12px;font-weight:400;line-height:1.5;overflow-wrap:anywhere}
.batch-page .batch-totals{display:flex;align-items:baseline;justify-content:flex-end;gap:5px;color:#74869a;font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
.batch-page .batch-totals strong{font-size:24px;line-height:1.2;color:#3c5c7b;font-weight:650}
.batch-page .batch-totals small{color:#8496aa;font-size:12px}
.batch-page .batch-material-detail{padding:0 12px 8px;border-top:1px solid #dfe8f3;min-width:0}
.batch-page .batch-material-detail>h3{margin:12px 0 8px;color:#496581;font-size:14px;font-weight:600}
.batch-page .whole-material-table{width:100%;min-width:0;border-collapse:collapse;table-layout:fixed;text-align:left}
.batch-page .whole-material-table thead th{padding:7px 7px;border-bottom:1px solid #e3eaf2;background:#fff;font-size:12px;font-weight:400;line-height:1.6;color:#73859b}
.batch-page .whole-material-table tbody th,.batch-page .whole-material-table tbody td{padding:6px 7px;border-bottom:1px solid #edf0f5;color:#435d7a;font-size:14px;font-weight:400;line-height:1.5;vertical-align:top;overflow-wrap:anywhere}
.batch-page .whole-material-table tbody tr:last-child th,.batch-page .whole-material-table tbody tr:last-child td{border-bottom:0}
.batch-page .whole-material-table tbody th>span{color:#607a96}
.batch-page .whole-material-table tbody strong{font-weight:600;color:#355473}
.batch-page .whole-material-table tbody small{display:block;margin-top:2px;color:#7a8da4;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.batch-page .whole-material-table th:first-child,.batch-page .whole-material-table td:first-child{width:52%}
.batch-page .whole-material-table th:nth-child(2),.batch-page .whole-material-table td:nth-child(2){width:36%}
.batch-page .whole-material-table th:last-child,.batch-page .whole-material-table td:last-child{width:12%;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.batch-page .whole-material-table tbody td:last-child{font-size:20px;font-weight:650;line-height:1.3;color:#355b7c}
.batch-page .whole-material-table tbody td:last-child small{display:inline;margin-left:3px;font-size:11px;font-weight:400}
.batch-page .batch-detail-note,.batch-page .detail-note{margin:9px 0 0;color:#788da4;font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.batch-page .batch-detail-note:empty,.batch-page .detail-note:empty{display:none}
.batch-page .batch-material-detail>.batch-detail-note{margin-top:6px;line-height:1.5}
.batch-page .batch-customer-column{background:#fff;overflow:hidden}
.batch-page .batch-customer-column{container-type:inline-size}
.batch-page #batch-customer-content{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%}
.batch-page .batch-customer-heading{flex:0 0 auto;padding:9px 16px 8px;border-bottom:1px solid #e7edf3}
.batch-page .batch-customer-heading h2{display:flex;align-items:baseline;gap:10px;color:#3c5674;font-size:15px;line-height:1.5}
.batch-page .batch-customer-heading h2 small,.batch-page .batch-customer-heading>small{color:#7d90a7;font-size:12px;font-weight:400}
.batch-page .batch-customer-batch{margin:4px 0 0;color:#7b8da3;font-size:12px;line-height:1.5;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.batch-page .batch-customer-list{display:flex;flex-direction:column;gap:8px;flex:1 1 auto;min-width:0;min-height:0;padding:9px 14px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.batch-page .batch-customer-card{flex:0 0 auto;min-width:0;padding:8px 13px;border:1px solid #e1e7ef;border-radius:6px;background:#fff}
.batch-page .batch-customer-card>header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:3px 10px;min-width:0}
.batch-page .customer-name{grid-column:1;grid-row:1;color:#3b5673;font-size:15px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.batch-page .customer-order-code{grid-column:1;grid-row:2;min-width:0;color:#6b819a;font-size:12px;line-height:1.6;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.batch-page .batch-customer-card>header>small{grid-column:2;grid-row:1/3;color:#8496aa;font-size:12px;font-weight:400;line-height:1.6;white-space:nowrap}
.batch-page .customer-print-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:6px;padding:6px 0;border-top:1px solid #edf1f5;border-bottom:1px solid #edf1f5}
.batch-page .customer-print-pair>div{display:flex;align-items:baseline;justify-content:flex-start;gap:9px;min-width:0}
.batch-page .customer-print-pair>div+div{border-left:1px solid #e8edf3;padding-left:12px}
.batch-page .customer-print-pair>div>span:first-child:not(.print-mark){flex:0 0 auto;color:#7a8da3;font-size:12px}
.batch-page .print-mark{display:inline-block;min-width:0;color:#697f99;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.batch-page .print-mark.complete{color:#487665}
.batch-page .print-mark.pending,.batch-page .print-mark.none{color:#7b8da3}
.batch-page .print-mark.partial{color:#5c7fa2}
.batch-page .print-mark.unknown{color:#a18554}
.batch-page .print-mark small{display:block;margin-top:2px;color:#7f91a6;font-size:12px;line-height:1.5}
.batch-page .batch-order-status{display:inline-block;align-self:flex-start;max-width:100%;margin:6px 0 0;padding:2px 7px;border:1px solid #e1e6ee;border-radius:4px;background:#f5f7fa;color:#74869d;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.batch-page .batch-order-status.status-complete{border-color:#d4e5e0;background:#eff7f4;color:#487665}
.batch-page .batch-order-status.status-partial{border-color:#d9e4f0;background:#f0f5fb;color:#5c7fa2}
.batch-page .batch-order-status.status-none,.batch-page .batch-order-status.status-pending{border-color:#e0e6ed;background:#f5f7fa;color:#7b8da3}
.batch-page .batch-order-status.status-unknown{border-color:#ebdfcb;background:#fcf7ee;color:#96774a}
.batch-page #batch-customer-content>.batch-detail-note,.batch-page #batch-customer-content>.detail-note{flex:0 0 auto;margin:0;padding:4px 14px 5px;border-top:1px solid #edf1f5;background:#fcfdff;font-size:11px;line-height:1.5}
.batch-page .batch-empty{margin:0;padding:25px 15px;color:#7e91a7;font-size:13px;line-height:1.8;text-align:center;overflow-wrap:anywhere}
.batch-page .batch-empty strong{display:block;font-size:15px;color:#536f8c;font-weight:500}
.batch-page .batch-empty small{display:block;margin-top:6px;font-size:12px;color:#8c9eb3}
.batch-page .batch-info{flex:0 0 auto;max-height:35%;overflow:auto;border-top:1px solid #e6ebf2;background:#fbfcfe;color:#7d90a6;font-size:11px;line-height:1.8;scrollbar-width:thin}
.batch-page .batch-info>summary{padding:5px 16px;list-style:none;color:#7c8fa4}
.batch-page .batch-info>summary::-webkit-details-marker{display:none}
.batch-page .batch-info>summary::before{content:'+';display:inline-block;width:18px;color:#9baabb;font-size:14px}
.batch-page .batch-info[open]>summary::before{content:'−'}
.batch-page .batch-info>div{padding:0 16px 11px;overflow-wrap:anywhere}
.batch-page .batch-info p{margin:5px 0}
.batch-page #daily-last-read{color:#8d9fb3;font-size:11px}
@media(max-width:1000px){
  .batch-page main{padding:10px 14px 12px;gap:10px 14px}
  .batch-page .batch-workspace{grid-template-columns:minmax(0,1fr) 278px;grid-template-rows:auto minmax(0,1fr)}
  .batch-page .batch-dates-column{grid-column:1/-1;display:flex;flex-direction:row;align-items:center;min-width:0;border-right:0;border-bottom:1px solid #dfe6ee}
  .batch-page .batch-dates-column>h2{min-height:0;padding:13px 12px;white-space:nowrap}
  .batch-page #batch-date-nav{flex:1;flex-direction:row;gap:6px;align-items:stretch;padding:7px 10px 7px 0;overflow-x:auto;overflow-y:hidden}
  .batch-page .batch-date-option{flex:0 0 auto;flex-direction:row;align-items:baseline;gap:9px;width:auto;min-height:36px;padding:7px 10px;white-space:nowrap}
  .batch-page .batch-date-option strong{font-size:13px;overflow-wrap:normal}
  .batch-page .batch-date-option small{font-size:11px}
  .batch-page .batch-date-option.selected{box-shadow:inset 0 -2px #7b99c0}
  .batch-page .batch-column-heading,.batch-page .batch-customer-heading{padding-left:13px;padding-right:13px}
  .batch-page .batch-list{padding:10px;gap:9px}
  .batch-page .batch-toggle{padding:11px 12px;gap:10px}
  .batch-page .batch-code{font-size:16px}
  .batch-page .batch-totals strong{font-size:23px}
  .batch-page .batch-material-detail{padding:0 8px 9px}
  .batch-page .whole-material-table thead th,.batch-page .whole-material-table tbody th,.batch-page .whole-material-table tbody td{padding-left:5px;padding-right:5px}
  .batch-page .batch-customer-list{padding:10px;gap:9px}
  .batch-page .batch-customer-card{padding:11px 10px}
  .batch-page .customer-print-pair{gap:7px}
  .batch-page .customer-print-pair>div{flex-direction:column;gap:3px}
  .batch-page .customer-print-pair>div+div{padding-left:9px}
}
@media(max-width:680px){
  .batch-page .header-inner{padding:0 14px}
  .batch-page main{padding:8px 10px 12px;gap:8px 10px;min-height:calc(100dvh - 47px)}
  .batch-page #consumption-panel{height:auto;min-height:calc(100dvh - 113px)}
  .batch-page .batch-toolbar{flex-wrap:wrap;gap:8px;min-height:0;padding:10px 12px}
  .batch-page .batch-workflow-hint{font-size:12px}
  .batch-page .batch-search{flex:1 1 100%;min-width:0}
  .batch-page #material-search{height:34px}
  .batch-page .batch-statusbar{gap:7px;padding:8px 12px}
  .batch-page #batch-count{flex:1 1 100%;font-size:12px}
  .batch-page .batch-statusbar>div{flex:1 1 100%;justify-content:space-between;gap:8px}
  .batch-page #print-scan-status{font-size:10px}
  .batch-page #print-scan-button{font-size:10px;padding:6px 8px}
  .batch-page .batch-workspace{display:flex;flex-direction:column;overflow:visible}
  .batch-page .batch-dates-column{flex:0 0 auto}
  .batch-page .batch-dates-column>h2{font-size:12px;padding:12px 10px}
  .batch-page #batch-date-nav{padding:6px 9px 6px 0}
  .batch-page .batch-date-option{gap:7px;padding:7px 9px}
  .batch-page .batch-material-column{border-right:0;border-bottom:1px solid #dfe6ee}
  .batch-page .batch-column-heading{min-height:44px;padding:10px 12px}
  .batch-page .batch-column-heading h2,.batch-page .batch-customer-heading h2{font-size:14px}
  .batch-page .batch-list{flex:0 0 auto;overflow:visible;padding:10px;gap:9px}
  .batch-page .batch-main>small{font-size:11px}
  .batch-page .batch-totals strong{font-size:23px}
  .batch-page .batch-totals small{font-size:11px}
  .batch-page .whole-material-table tbody th,.batch-page .whole-material-table tbody td{font-size:13px;padding:8px 6px}
  .batch-page .whole-material-table thead th{font-size:11px;padding:8px 6px}
  .batch-page .whole-material-table tbody small{font-size:11px}
  .batch-page .whole-material-table tbody td:last-child{font-size:20px}
  .batch-page .batch-detail-note,.batch-page .detail-note{font-size:11px}
  .batch-page #batch-customer-content{height:auto;overflow:visible}
  .batch-page .batch-customer-heading{padding:12px}
  .batch-page .batch-customer-list{flex:0 0 auto;overflow:visible;padding:10px}
  .batch-page .customer-name{font-size:14px}
  .batch-page .customer-print-pair>div{flex-direction:row;gap:10px}
  .batch-page .print-mark{font-size:13px}
  .batch-page .print-mark small{font-size:11px}
  .batch-page .batch-info{max-height:none;overflow:visible}
  .batch-page .batch-info>summary{padding:8px 12px}
  .batch-page .batch-info>div{padding:0 12px 11px;font-size:10px}
}
@media(max-width:400px){
  .batch-page main{padding:8px;gap:8px;grid-template-rows:34px}
  .batch-page .page-nav a{padding:6px 8px;font-size:12px}
  .batch-page .update-button{padding:6px 9px;font-size:11px;gap:5px}
  .batch-page .update-button svg{width:14px;height:14px}
  .batch-page .batch-code{font-size:15px}
  .batch-page .batch-toggle{padding:10px;gap:8px}
  .batch-page .batch-material-detail{padding:0 6px 8px}
  .batch-page .whole-material-table tbody th,.batch-page .whole-material-table tbody td{font-size:12px;padding:8px 4px}
  .batch-page .whole-material-table thead th{padding:7px 4px}
  .batch-page .whole-material-table tbody small{font-size:10px}
  .batch-page .batch-customer-card>header>small{font-size:10px}
  .batch-page .customer-order-code{font-size:11px}
  .batch-page .customer-print-pair>div{gap:7px}
}
/* Compact customer rows; print timestamps remain available on expansion. */
.batch-page .batch-customer-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:10px 14px;min-height:43px}
.batch-page .batch-customer-batch{margin:0}
.batch-page .batch-customer-list{gap:0;padding:0 12px}
.batch-page .batch-customer-card.customer-compact{padding:0;border:0;border-bottom:1px solid #e5ebf2;border-radius:0;background:transparent}
.batch-page .customer-row{display:grid;grid-template-columns:minmax(0,1fr) auto 10px;gap:9px;align-items:center;padding:5px 1px;list-style:none;cursor:pointer}
.batch-page .customer-row::-webkit-details-marker{display:none}
.batch-page .customer-row:hover{background:#f5f8fc}
.batch-page .customer-row:focus-visible{outline:2px solid #91aac7;outline-offset:-2px;border-radius:3px}
.batch-page .customer-identity{display:grid;grid-template-columns:minmax(0,1fr);gap:0;min-width:0}
.batch-page .customer-identity .customer-name{font-size:14px;line-height:18px;grid-column:auto;grid-row:auto;font-weight:600}
.batch-page .customer-identity .customer-order-code{font-size:11px;line-height:14px;grid-column:auto;grid-row:auto}
.batch-page .customer-print-compact{display:flex;gap:14px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.batch-page .customer-mini-mark{display:inline-flex;gap:5px;align-items:center;white-space:nowrap;color:#7b8da3;font-size:12px;line-height:16px;font-variant-numeric:tabular-nums}
.batch-page .customer-mini-mark>span{color:#8b99aa;font-size:11px}
.batch-page .customer-mini-mark.complete{color:#487665}
.batch-page .customer-mini-mark.partial{color:#5c7fa2}
.batch-page .customer-mini-mark.unknown{color:#a18554}
.batch-page .customer-expand{color:#94a4b7;font-size:13px;line-height:18px;text-align:center}
.batch-page .customer-compact[open] .customer-expand{transform:rotate(180deg)}
.batch-page .customer-compact[open] .customer-row{background:#f5f8fc}
.batch-page .customer-record-details{padding:3px 9px 8px;background:#f7f9fc}
.batch-page .customer-record-details .customer-print-pair{margin:0;padding:4px 0;border:0;gap:12px}
.batch-page .customer-record-details .customer-print-pair>div{flex-direction:row;gap:7px}
.batch-page .customer-record-details .print-mark{font-size:12px;line-height:1.5}
.batch-page .customer-record-details .print-mark small{font-size:11px;margin-top:0}
.batch-page .customer-scope{margin:3px 0 0;color:#73869c;font-size:11px;line-height:1.5}
@container(max-width:360px){
  .batch-page .customer-print-compact{display:grid;gap:0}
  .batch-page .customer-row{gap:6px}
}
/* Use the wider batch column for shorter, readable rows. */
.batch-page .batch-expand{margin-left:6px;color:#8295ac;font-size:15px;line-height:1}
@media(min-width:1001px){
  .batch-page .batch-toggle{min-height:44px;padding:8px 12px}
  .batch-page .batch-main{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px}
  .batch-page .batch-main>small{margin-top:0}
  .batch-page .whole-material-table tbody small{display:inline;margin:0 0 0 7px}
}

/* Inventory states reuse the audited profile layout without changing row geometry. */
#catalog-panel.inventory-view .usage-line-value.inventory-value{letter-spacing:0}
#catalog-panel.inventory-view .usage-line-value.inventory-value[data-stock-status="counted"]{color:var(--brand-ink,#526578)}
#catalog-panel.inventory-view .usage-line-value.inventory-value:is([data-stock-status="uncounted"],[data-stock-status="loading"],[data-stock-status="unavailable"],[data-stock-status="review"]){font-size:20px;font-weight:500;line-height:1.2;color:#7d8c9c}
#catalog-panel.inventory-view .usage-line-value.inventory-value[data-stock-status="review"]{color:#92826b}
#catalog-panel.inventory-view .usage-line-value.inventory-value[data-stock-status="loading"]{color:#8d9baa}
#catalog-panel.inventory-view .inventory-summary{display:flex;flex:0 0 auto;align-items:baseline;flex-wrap:wrap;gap:5px 16px;min-width:0;margin:0 0 12px;padding:8px 12px;border:1px solid #e3e9ef;border-radius:6px;background:#f7f9fb;color:#7b8c9e;font-size:13px;line-height:1.6}
#catalog-panel.inventory-view .inventory-summary>strong{color:#526b85;font-size:13px;font-weight:600;white-space:nowrap}
#catalog-panel.inventory-view .inventory-summary>span{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#catalog-panel.inventory-view .inventory-series-count{flex:0 0 auto;margin-left:4px;color:#8a99aa;font-size:11px;font-weight:400;line-height:1.5;white-space:nowrap}
#catalog-panel.inventory-view .matrix-series-option.selected .inventory-series-count{color:#71859d;font-weight:400}
#matrix-detail-dialog .inventory-detail-state{margin:13px 0 16px;padding:13px 15px;border:1px solid #e0e7ee;border-radius:7px;background:#f6f8fb;color:#7d8c9c}
#matrix-detail-dialog .inventory-detail-state>strong{display:block;color:#667c93;font-size:22px;font-weight:550;line-height:1.4;font-variant-numeric:tabular-nums}
#matrix-detail-dialog .inventory-detail-state>p{margin:5px 0 0;color:#7c8ea2;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
#matrix-detail-dialog .inventory-detail-sources{margin-top:17px;padding-top:11px;border-top:1px solid #e6ebf1;color:#7c8da2;font-size:12px;line-height:1.7}
#matrix-detail-dialog .inventory-detail-sources>summary{color:#6b829c;font-size:13px;font-weight:400;line-height:1.6}
#matrix-detail-dialog .inventory-detail-sources[open]>summary{margin-bottom:10px}
#matrix-detail-dialog .inventory-detail-sources>p{margin:7px 0;overflow-wrap:anywhere}
@media(max-height:790px) and (min-width:701px){
  #catalog-panel.inventory-view .inventory-summary{margin-bottom:10px;padding:7px 11px}
}
@media(max-width:700px){
  #catalog-panel.inventory-view .usage-line-value.inventory-value:is([data-stock-status="uncounted"],[data-stock-status="loading"],[data-stock-status="unavailable"],[data-stock-status="review"]){font-size:16px;line-height:1.25}
  #catalog-panel.inventory-view .inventory-summary{gap:4px 11px;margin-bottom:10px;padding:7px 9px;font-size:12px;line-height:1.6}
  #catalog-panel.inventory-view .inventory-summary>strong{font-size:12px}
  #matrix-detail-dialog .inventory-detail-state{margin:11px 0 14px;padding:11px 12px}
  #matrix-detail-dialog .inventory-detail-state>strong{font-size:20px}
  #matrix-detail-dialog .inventory-detail-state>p{font-size:12px}
  #matrix-detail-dialog .inventory-detail-sources{margin-top:14px;padding-top:10px;font-size:11px}
  #matrix-detail-dialog .inventory-detail-sources>summary{font-size:12px}
}
@media(max-width:620px){
  #catalog-panel.inventory-view .inventory-series-count{margin:2px 0 0;font-size:10px}
}

/* Keep the three main inventory groups visible on shorter desktop screens. */
@media(min-width:1001px) and (max-height:790px){
  #catalog-panel.inventory-view .matrix-main{padding-top:11px;padding-bottom:8px}
  #catalog-panel.inventory-view .matrix-main-heading{margin-bottom:7px}
  #catalog-panel.inventory-view .inventory-summary{margin-bottom:8px;padding:5px 10px}
  #catalog-panel.inventory-view .usage-ledger{gap:8px 12px}
  #catalog-panel.inventory-view .usage-block-paired>.usage-block-header{min-height:28px;padding:4px 10px}
  #catalog-panel.inventory-view .usage-block-paired>.usage-block-header h3{font-size:15px;line-height:1.2}
  #catalog-panel.inventory-view .usage-side-column>h4{padding:3px 0 2px;font-size:11px;line-height:1.3}
  #catalog-panel.inventory-view .usage-block-paired .usage-line{min-height:44px;grid-template-columns:38px minmax(0,1fr) auto;padding:3px 0;gap:7px}
  #catalog-panel.inventory-view .usage-block-paired .usage-section{width:38px;height:38px;padding:2px}
  #catalog-panel.inventory-view .usage-block-paired .usage-line-name{font-size:14px;line-height:1.4}
  #catalog-panel.inventory-view .usage-side-column .usage-line-spec{margin-top:1px}
  #catalog-panel.inventory-view .usage-integral-title{padding:3px 0 2px;font-size:11px}
  #catalog-panel.inventory-view .usage-integral-rows>.usage-integral-heading{margin:4px 0 0;font-size:11px}
  #catalog-panel.inventory-view .usage-footnote{margin-top:8px;font-size:11px;line-height:1.5}
}
.reoptimization-group{border:1px solid #e1e6ed;border-radius:7px;margin:9px 0;background:#fff;color:#536b83;overflow:hidden}
.reoptimization-group>summary{cursor:pointer;display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:12px 14px;list-style:none}
.reoptimization-group>summary::after{content:'展开材料';font-size:11px;color:#8998aa;margin-left:auto}
.reoptimization-group[open]>summary::after{content:'收起材料'}
.reoptimization-route{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px}
.reoptimization-kind{background:#f2f5f8;border-radius:4px;padding:3px 7px;font-size:11px;white-space:nowrap}
.reoptimization-quantities{font-size:12px;color:#75879a}
.reoptimization-quantities b{font-variant-numeric:tabular-nums;color:#435c75}
.reoptimization-group>p{margin:0;padding:4px 14px 11px;font-size:12px;line-height:1.8}
.reoptimization-group .reoptimization-note{color:#8b99a9;font-size:11px}
.reoptimization-table{overflow-x:auto;margin:0 14px 8px}
.reoptimization-table table{width:100%;border-collapse:collapse;font-size:12px}
.reoptimization-table th,.reoptimization-table td{padding:8px;border-bottom:1px solid #e7ecf2;text-align:left}
.reoptimization-table thead th{background:#f7f9fb;font-weight:500;color:#8091a3;white-space:nowrap}
.reoptimization-table tbody th{font-weight:400}
.reoptimization-table small{display:block;color:#93a0b0;font-size:10px;margin-top:3px}
.reoptimization-table td:nth-last-child(-n+2){text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:600px){.reoptimization-group>summary{padding:10px;gap:7px}.reoptimization-route{width:100%;font-size:11px}.reoptimization-quantities{font-size:11px}.reoptimization-table{margin:0 8px 8px}.reoptimization-table th,.reoptimization-table td{padding:6px}}
:root [hidden]{display:none!important}
.profile-header-tools{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.profile-home{color:#6b8098;text-decoration:none;font-size:12px}.profile-home:hover{text-decoration:underline}.profile-account{display:flex;align-items:center;gap:9px;color:#7b8a9b;font-size:11px}.profile-account button{border:0;background:transparent;color:#6b8098;padding:4px}.profile-access{max-width:460px;margin:76px auto;padding:0 22px}.profile-access-card{padding:30px;border:1px solid #dce5ef;border-radius:16px;background:#fff;box-shadow:0 8px 30px #233a5607}.profile-access-eyebrow{font-size:12px;color:#8191a2;letter-spacing:1px;margin:0 0 16px}.profile-access h1{font-size:28px;margin:0 0 9px}.profile-access-intro{font-size:13px;line-height:1.8;color:#76879b;margin:0 0 26px}.profile-access form{display:grid;gap:16px}.profile-access label{display:grid;gap:7px;font-size:13px;color:#526981}.profile-access input{width:100%;padding:11px 12px;border:1px solid #d9e2ed;border-radius:7px;background:#fafcff;color:#2e4660;font:inherit}.profile-access input:focus{outline:2px solid #c4d5e7;outline-offset:1px}.profile-access form button{min-height:43px;margin-top:3px;border:0;border-radius:7px;background:#416b96;color:#fff;font:inherit;font-size:14px}.profile-access form button:disabled{opacity:.55}.profile-access-message{min-height:36px;font-size:12px;line-height:1.7;color:#8190a1;margin:18px 0 7px}.profile-access-message.error{color:#ad684e}.profile-access-retry{padding:0;border:0;background:transparent;color:#607f9e;font-size:11px}.profile-access-retry:hover{text-decoration:underline}@media(max-width:520px){.profile-header-tools{gap:11px}.profile-header-tools .local-label{display:none}.profile-home{font-size:11px}.profile-account{font-size:10px}.profile-access{margin:35px auto}.profile-access-card{padding:25px}}
