.material-flow{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0}.material-flow>div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px}.material-flow span{color:#8195af;font-size:12px;display:block;margin-bottom:10px}.material-flow strong{color:#2b476b;font-size:16px}.material-flow p{font-size:13px;line-height:1.7;color:var(--muted);margin:7px 0 0}.material-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0}.material-counts>div{display:flex;align-items:center;justify-content:space-between;background:#f0f5fb;border:1px solid #e2eaf4;padding:17px 22px;border-radius:10px}.material-counts span{font-size:13px;color:#647891}.material-counts strong{font-size:24px;color:#294b78}.materials-page .toolbar{flex-wrap:wrap;gap:14px;align-items:center}.materials-page .toolbar h2{margin:0;font-size:17px}.warehouse-search{margin-left:auto;display:flex;gap:12px}.warehouse-search input{width:260px}.materials-page .panel{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.materials-page .heading-actions{display:flex;gap:10px;flex-wrap:wrap}.materials-page #list-error{margin:0 22px 15px}.materials-table{min-width:700px}.materials-table th,.materials-table td{display:table-cell!important}.materials-table td:nth-child(3){font-weight:600;font-variant-numeric:tabular-nums;color:#294b78}.materials-table .stock-zero{color:#b36d24}.materials-table .row-actions{display:flex;gap:16px;white-space:nowrap}.materials-table .material-name{font-weight:550}.materials-page .empty{padding:48px 24px;line-height:1.9}.materials-page .empty .button{margin-top:16px}.materials-page .identity-panel{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:12px 16px;background:#fff;border:1px dashed #bdcce3;border-radius:8px;margin-bottom:18px}.materials-page .identity-panel label{display:flex;align-items:center;gap:10px;font-size:13px}.materials-page .identity-panel>span{font-size:12px;color:var(--muted)}.materials-page .form-grid .full{grid-column:1/-1}.materials-page .form-grid label small{line-height:1.6;color:var(--muted);font-size:12px}.materials-page .login-dialog label{display:block;margin-top:14px}.movement-drawer{width:min(800px,100%)}.movement-card{border:1px solid var(--line);border-radius:10px;margin-bottom:14px;padding:18px}.movement-card header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.movement-card h3{font-size:15px;margin:5px 0}.movement-card .movement-quantity{white-space:nowrap;font-size:19px;font-variant-numeric:tabular-nums;color:#28784d;font-weight:600}.movement-card .movement-quantity.out{color:#a66a27}.movement-card p,.movement-card small{color:var(--muted);font-size:12px;line-height:1.8;overflow-wrap:anywhere}.movement-card a{font-size:13px}.movement-card .movement-note{white-space:pre-wrap}.movement-card .movement-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}.movement-card .movement-type{font-size:12px;color:#53769d}.materials-page .form-loading{padding:30px;text-align:center;color:var(--muted)}
@media(max-width:760px){.material-flow{grid-template-columns:1fr;gap:10px}.material-flow>div{padding:15px}.material-flow span{display:inline;margin-right:10px}.material-flow p{margin-left:29px}.material-counts{gap:8px}.material-counts>div{display:block;padding:14px}.material-counts strong{display:block;margin-top:7px}.warehouse-search{width:100%;margin:0}.warehouse-search input{min-width:0;flex:1;width:auto}.materials-page .layout{display:block}.materials-page .sidebar{position:static;width:100%;min-height:0;display:flex;flex-direction:row;flex-wrap:wrap;gap:5px;padding:15px}.materials-page .sidebar .brand{width:100%;margin:0 0 8px}.materials-page .sidebar .nav-label,.materials-page .sidebar .sidebar-bottom{display:none}.materials-page .sidebar .nav-item{font-size:12px;padding:8px}.materials-page .form-grid{grid-template-columns:1fr}.materials-page .identity-panel label{width:100%;flex-wrap:wrap}.materials-page .identity-panel select{flex:1}.materials-page .table-wrap{overflow-x:auto}.movement-drawer .dialog-body{padding:18px}}

/* 库存圆环看板：比例与原始数量并列，按各原料自己的单位展示。 */
.materials-page{--material-accent:#268674;--material-ink:#233f49;--material-border:#dfe8eb}
.materials-page main{padding-top:25px}
.materials-page .page-heading{margin-bottom:17px}
.materials-page .material-demo-tools{margin:0 0 13px;border:1px dashed #d3dfe6;border-radius:8px;background:#f8fafc;font-size:12px;color:#688093}
.materials-page .material-demo-tools>summary{cursor:pointer;padding:8px 12px}
.materials-page .material-demo-tools>.notice,.materials-page .material-demo-tools>.identity-panel{margin:0 11px 11px;font-size:12px}
.materials-page #view-policy{font-size:12px;margin-bottom:13px;line-height:1.7}
.materials-page .material-flow{gap:0;margin:15px 0;background:#fff;border:1px solid var(--material-border);border-radius:10px;overflow:hidden}
.materials-page .material-flow>div{position:relative;padding:12px 15px 12px 43px;border:0;border-radius:0;background:transparent}
.materials-page .material-flow>div+div{border-left:1px solid #e8eef1}
.materials-page .material-flow span{position:absolute;left:13px;top:15px;display:flex;align-items:center;justify-content:center;width:22px;height:22px;margin:0;border-radius:50%;background:#edf4f4;color:#52887e;font-size:10px;font-weight:650}
.materials-page .material-flow strong{font-size:12px;color:#405d68}
.materials-page .material-flow p{margin:3px 0 0;color:#81919b;font-size:11px;line-height:1.6}
.materials-page .material-counts{gap:13px;margin:15px 0 20px}
.materials-page .material-counts>div{border-color:var(--material-border);background:#fff;padding:14px 19px;border-radius:10px}
.materials-page .material-counts span{color:#68808b;font-size:12px}
.materials-page .material-counts strong{font-size:26px;color:#285c67;line-height:1.3;font-variant-numeric:tabular-nums}
.materials-page .material-counts>div:nth-child(2) strong{color:#278472}
.materials-page .material-counts>div:nth-child(3) strong{color:#986a34}
.materials-page .material-inventory{container-type:inline-size;container-name:material-inventory;background:#fbfcfd;border-color:var(--material-border);box-shadow:0 2px 5px #1d3e4a03}
.materials-page .material-inventory>.toolbar{padding:19px 21px 14px;background:#fff;gap:12px}
.materials-page .material-inventory .toolbar h2{font-size:17px;color:var(--material-ink)}
.materials-page .material-panel-caption{margin:3px 0 0;color:#7d8d99;font-size:11px}
.materials-page .warehouse-search{gap:8px}
.materials-page .warehouse-search input{width:230px;font-size:12px;border-color:#dbe5e9;border-radius:7px;min-height:36px}
.materials-page .warehouse-search .button{min-height:36px;padding:7px 11px;font-size:12px}
.materials-page .material-view-bar{padding:0 21px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border-bottom:1px solid #e6edef;flex-wrap:wrap}
.materials-page .material-view-tabs{display:inline-flex;gap:3px;padding:3px;background:#eff4f5;border:1px solid #e2e9ec;border-radius:8px;flex-shrink:0}
.materials-page .material-view-tabs>button{border:1px solid transparent;background:transparent;color:#7a8a95;padding:6px 12px;border-radius:5px;font-size:12px;min-height:32px;white-space:nowrap}
.materials-page .material-view-tabs>button[aria-pressed="true"]{background:#fff;border-color:#d7e3e6;color:#216758;font-weight:600;box-shadow:0 1px 3px #1c48480a}
.materials-page .material-ratio-note{font-size:11px;line-height:1.7;color:#81919b;margin:0;max-width:450px}
.materials-page .material-visual-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;padding:19px 20px 21px;align-items:stretch}
.materials-page .material-stock-card{--material-accent:#268674;display:flex;flex-direction:column;min-width:0;border:1px solid var(--material-border);border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 2px 4px #153b4003}
.materials-page .material-stock-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:16px 17px 0;min-width:0}
.materials-page .material-stock-heading>div{min-width:0}
.materials-page .material-code{display:block;font-size:10px;color:#83959e;letter-spacing:.5px;overflow-wrap:anywhere;line-height:1.5}
.materials-page .material-stock-heading h3{font-size:16px;color:var(--material-ink);font-weight:650;margin:3px 0 0;line-height:1.5;overflow-wrap:anywhere}
.materials-page .material-stock-badge{display:inline-flex;align-items:center;gap:5px;background:#edf7f3;color:#348372;font-size:10px;line-height:1.5;border-radius:5px;padding:4px 7px;flex-shrink:0;margin-top:3px;white-space:nowrap}
.materials-page .material-stock-badge:before{content:"";display:inline-block;width:4px;height:4px;border-radius:50%;background:currentColor}
.materials-page .material-stock-body{display:flex;align-items:center;justify-content:center;gap:19px;padding:21px 17px 19px;min-width:0}
.materials-page .material-ring{position:relative;display:grid;place-items:center;flex:0 0 112px;width:112px;height:112px;aspect-ratio:1;border-radius:50%;background:transparent}
.materials-page .material-ring-center{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;z-index:1}
.materials-page .material-ring-center strong{font-size:26px;line-height:1.15;letter-spacing:-.8px;font-variant-numeric:tabular-nums;font-weight:700;color:var(--material-accent)}
.materials-page .material-ring-center span{font-size:10px;line-height:1.5;color:#8a9a9f;margin-top:6px}
.materials-page .material-stock-quantity{min-width:0;flex:1;max-width:190px}
.materials-page .material-stock-quantity>span{display:block;font-size:11px;color:#78909a;margin-bottom:5px}
.materials-page .material-stock-quantity strong{font-size:25px;line-height:1.35;letter-spacing:-.5px;font-weight:650;color:#294b56;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.materials-page .material-stock-quantity small{font-size:12px;color:#7c929a;font-weight:400;margin-left:5px;white-space:nowrap;letter-spacing:0}
.materials-page .material-stock-quantity p{margin:6px 0 0;color:#94a1a8;font-size:11px;line-height:1.6}
.materials-page .material-stock-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 17px 16px;padding:12px 0 0;border-top:1px solid #e9eff1}
.materials-page .material-stock-totals>div+div{border-left:1px solid #e9eff1;padding-left:13px}
.materials-page .material-stock-totals dt{font-size:10px;color:#8c9ba3;margin:0 0 3px}
.materials-page .material-stock-totals dd{font-size:13px;margin:0;font-weight:550;color:#55717c;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;line-height:1.6}
.materials-page .material-stock-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-top:auto;padding:10px 17px;background:#f8fbfb;border-top:1px solid #e9eff1;min-width:0}
.materials-page .material-stock-footer>small{font-size:10px;color:#94a1a9;line-height:1.6;overflow-wrap:anywhere}
.materials-page .material-stock-footer .row-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex-wrap:wrap}
.materials-page .material-stock-footer button{min-height:29px;border-radius:5px;border:1px solid transparent;background:transparent;color:#597987;font-size:11px;padding:4px 6px;white-space:nowrap}
.materials-page .material-stock-footer button[data-receive]{background:#fff;border-color:#d8e6e3;color:#2c7d6b;padding-left:9px;padding-right:9px}
.materials-page .material-stock-footer button:hover{background:#eaf3f0;color:#276958}
.materials-page .material-stock-card[data-state="empty"]{--material-accent:#b0803d}
.materials-page .material-stock-card[data-state="empty"] .material-stock-badge{color:#9b743d;background:#fcf5e9}
.materials-page .material-stock-card[data-state="unknown"]{--material-accent:#8a9aa4}
.materials-page .material-stock-card[data-state="unknown"] .material-stock-badge{color:#7f909a;background:#f0f3f5}
.materials-page .material-visual-empty{grid-column:1/-1;text-align:center;margin:0;padding:45px 20px;color:#80929e;font-size:13px;line-height:1.9;border:1px dashed #d6e2e7;border-radius:10px;background:#fff}
.materials-page .material-visual-empty .button{margin-top:14px}
.materials-page .material-inventory>.table-footer{background:#fff;font-size:11px;border-top-color:#e6edef;padding:12px 21px}
.materials-page .page-note{line-height:1.85;color:#8a9aa6;font-size:11px}
@container material-inventory (min-width:840px){.materials-page .material-stock-heading{min-height:84px}.materials-page .material-visual-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.materials-page .material-stock-body{gap:14px}.materials-page .material-ring{flex-basis:105px;width:105px;height:105px}.materials-page .material-stock-quantity strong{font-size:23px}}
@container material-inventory (max-width:620px){.materials-page .material-visual-grid{grid-template-columns:1fr;gap:13px;padding:15px}.materials-page .material-stock-body{justify-content:flex-start;gap:24px}.materials-page .material-stock-quantity{max-width:none}.materials-page .material-stock-heading{padding-left:17px;padding-right:17px}}
@media(max-width:980px) and (min-width:761px){.materials-page .material-flow>div{padding:11px 10px 11px 36px}.materials-page .material-flow span{left:9px;top:14px;width:19px;height:19px}.materials-page .material-flow strong{font-size:11px}.materials-page .material-flow p{font-size:10px}.materials-page .material-inventory>.toolbar{align-items:flex-start}.materials-page .warehouse-search{margin-left:0;flex:1 1 100%}.materials-page .warehouse-search input{width:auto;flex:1}}
@media(max-width:760px){.materials-page main{padding-top:20px}.materials-page .page-heading{gap:12px}.materials-page .material-flow{grid-template-columns:1fr;margin:13px 0}.materials-page .material-flow>div{padding:9px 12px 9px 40px;display:flex;flex-wrap:wrap;align-items:center;gap:3px 9px}.materials-page .material-flow>div+div{border-left:0;border-top:1px solid #edf1f3}.materials-page .material-flow span{left:12px;top:10px;width:19px;height:19px;font-size:9px}.materials-page .material-flow strong{font-size:11px}.materials-page .material-flow p{font-size:10px;margin:0}.materials-page .material-counts{gap:8px;margin:13px 0 16px}.materials-page .material-counts>div{padding:12px}.materials-page .material-counts span{font-size:11px}.materials-page .material-counts strong{font-size:24px;margin-top:3px}.materials-page .material-inventory>.toolbar{padding:16px 15px 12px;align-items:stretch;gap:12px}.materials-page .material-panel-caption{font-size:10px}.materials-page .warehouse-search input{width:auto}.materials-page .material-view-bar{padding:0 15px 13px;gap:8px}.materials-page .material-ratio-note{font-size:10px;max-width:none}.materials-page .material-view-tabs{width:100%;justify-content:stretch}.materials-page .material-view-tabs>button{flex:1}.materials-page .material-inventory>.table-footer{padding:12px 15px;flex-wrap:wrap;gap:5px}.materials-page .material-stock-quantity strong{font-size:25px}}
@media(max-width:380px){.materials-page .material-stock-heading{padding-left:14px;padding-right:14px;gap:7px}.materials-page .material-stock-heading h3{font-size:15px}.materials-page .material-stock-body{padding:18px 14px;gap:17px}.materials-page .material-ring{flex-basis:102px;width:102px;height:102px}.materials-page .material-ring-center strong{font-size:24px}.materials-page .material-stock-quantity strong{font-size:22px}.materials-page .material-stock-totals{margin-left:14px;margin-right:14px}.materials-page .material-stock-footer{padding-left:14px;padding-right:14px}}
@media(forced-colors:active){.materials-page .material-ring{border:9px solid CanvasText;background:Canvas}.materials-page .material-ring:before{inset:0;background:Canvas}.materials-page .material-stock-card{border-color:CanvasText}.materials-page .material-view-tabs>button[aria-pressed="true"]{border-color:Highlight}}

/* SVG presentation attributes keep dynamic arcs compatible with the site's CSP. */
.materials-page .material-ring-chart{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.materials-page .material-ring-chart circle{fill:none;stroke-width:9}
.materials-page .material-ring-track{stroke:#e9eff0}
.materials-page .material-ring-value{stroke:var(--material-accent);transform:rotate(-90deg);transform-origin:60px 60px}
.materials-page [data-state="empty"] .material-ring-track{stroke:#f2eadf}
@media(forced-colors:active){.materials-page .material-ring{border:0}.materials-page .material-ring-track{stroke:GrayText}.materials-page .material-ring-value{stroke:Highlight}}

/* 删除只隐藏物料档案，恢复与删除都需要密钥。 */
.materials-page .material-scope-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:0 21px 14px;background:#fff}
.materials-page .material-scope-bar>button{border:0;border-radius:6px;padding:7px 12px;background:transparent;color:#7b8c97;font-size:12px}
.materials-page .material-scope-bar>button[aria-pressed="true"]{background:#eaf4f1;color:#247564;font-weight:650}
.materials-page .material-scope-bar>span{margin-left:auto;font-size:11px;color:#8c9ba3;line-height:1.6}
.materials-page .material-stock-card[data-archived="true"] .material-stock-badge{background:#eff1f4;color:#7d8898}
.materials-page .material-stock-footer button[data-archive],.materials-page .materials-table button[data-archive]{color:#a35d58}
.materials-page .material-stock-footer button[data-archive]:hover{background:#fbefee;color:#923c36}
.materials-page .material-archive-note{margin:0 17px 14px;font-size:11px;line-height:1.7;color:#7d8c96;overflow-wrap:anywhere;white-space:pre-wrap}
.materials-page .material-security-dialog{max-width:520px}
.materials-page .material-security-dialog .dialog-body>label{display:flex;flex-direction:column;gap:7px;margin:16px 0;font-size:13px}
.materials-page .material-security-dialog .dialog-body>label.hidden{display:none}
.materials-page .material-security-dialog textarea{resize:vertical;min-height:84px}
.materials-page .material-protection-note{font-size:12px;line-height:1.8;color:#758993;background:#f4f8fa;border-radius:8px;padding:11px 13px}
@media(max-width:760px){.materials-page .material-scope-bar{padding:0 15px 13px}.materials-page .material-scope-bar>span{width:100%;margin:2px 0 0}}

/* 品名档案与实物库存分开显示，未盘点的物料不计作零库存。 */
.materials-page .material-counts{grid-template-columns:repeat(4,minmax(0,1fr))}
.materials-page .material-counts>div:nth-child(4) strong{color:#70809a}
.materials-page .material-specification{display:block;margin:4px 0 0;color:#80919b;font-size:11px;font-weight:400;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}
.materials-page .material-stock-card[data-state="pending"] .material-stock-badge,.materials-page .material-pending-label{background:#f0f3f7;color:#75849b}
.materials-page .material-pending-body{padding:10px 17px 15px}
.materials-page .material-pending-body dl{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0;padding:11px 0;border-top:1px solid #edf1f4}
.materials-page .material-pending-body dl>div{display:flex;justify-content:space-between;gap:8px}
.materials-page .material-pending-body dt,.materials-page .material-pending-body p{font-size:11px;color:#91a0ab;line-height:1.7;margin:0}
.materials-page .material-pending-body dd{font-size:13px;color:#71818e;margin:0}
.materials-page .material-pending-label{font-size:11px;border-radius:4px;padding:3px 6px;font-weight:500}
.materials-page .material-pending-values{display:block;margin-top:7px;color:#91a0ab;font-size:11px;font-weight:400}
.materials-page .material-stock-footer button[data-initialize]{background:#fff;border-color:#d8e6e3;color:#2c7d6b;padding-left:9px;padding-right:9px}
.materials-page .material-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 21px;border-top:1px solid #e6edef;background:#fff;font-size:12px;color:#758b99}
.materials-page .material-pagination>div{display:flex;gap:8px}
.materials-page .material-pagination .button{min-height:32px;font-size:12px;padding:6px 11px}
@media(max-width:760px){.materials-page .material-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.materials-page .material-pagination{padding:12px 15px;flex-wrap:wrap}}

/* Shared brand colors sit behind the amber empty-stock and gray unknown states. */
.materials-page{--material-accent:var(--brand);--material-ink:var(--brand-deep);--material-border:var(--brand-border)}
.materials-page .material-stock-card{--material-accent:var(--brand)}
.materials-page .material-stock-card[data-state="empty"]{--material-accent:#b0803d}
.materials-page .material-stock-card[data-state="unknown"]{--material-accent:#8a9aa4}
.materials-page .material-flow span,.materials-page .material-view-tabs,
.materials-page .material-stock-footer,.materials-page .material-demo-tools,
.materials-page .material-protection-note{background:var(--brand-soft)}
.materials-page .material-flow span,.materials-page .material-flow strong,
.materials-page .material-counts strong,.materials-page .materials-table td:nth-child(3),
.materials-page .material-stock-quantity strong{color:var(--brand-deep)}
.materials-page .material-counts>div:nth-child(2) strong{color:var(--brand)}
.materials-page .material-counts>div:nth-child(3) strong{color:#986a34}
.materials-page .material-counts>div:nth-child(4) strong{color:#70809a}
.materials-page .material-view-tabs>button[aria-pressed="true"],
.materials-page .material-scope-bar>button[aria-pressed="true"],
.materials-page .material-stock-footer button[data-receive],
.materials-page .material-stock-footer button[data-initialize]{color:var(--brand);border-color:var(--brand-border)}
.materials-page .material-scope-bar>button[aria-pressed="true"],
.materials-page .material-stock-footer button:hover{background:var(--brand-soft);color:var(--brand)}
.materials-page .material-stock-footer button[data-archive]:hover{background:#fbefee;color:#923c36}
.materials-page .material-view-tabs,.materials-page .warehouse-search input,
.materials-page .material-demo-tools,.materials-page .identity-panel,
.materials-page .material-visual-empty{border-color:var(--brand-border)}
.materials-page .material-inventory{background:#f8faf8}
.materials-page .material-ring-track{stroke:#e6ede8}
.materials-page [data-state="empty"] .material-ring-track{stroke:#f2eadf}
.materials-page .movement-card .movement-type{color:var(--brand)}
