.materials{--m-wine:#81021f;--m-ink:#16131f;--m-line:#e8e7ea;--m-wash:#f7f6f8;color:var(--m-ink);font-size:14px;min-width:0;padding-bottom:24px}.materials *,#drawer .m-form *{box-sizing:border-box}.m-toolbar,.m-actions,.m-filter-row,.m-tabs{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.m-toolbar{justify-content:space-between;margin:0 0 20px}.m-toolbar h2{font-size:24px;margin:0}.m-filter-row{margin:16px 0}.m-filter-row select{max-width:230px}.materials input:not([type=checkbox]):not([name=m-search]):not([data-suite-search]),.materials select,.materials textarea,.m-form input,.m-form select,.m-form textarea{font:inherit;min-height:38px;border:1px solid #d9d6dd;border-radius:2px;background:#fff;color:#16131f;padding:8px 10px;max-width:100%}.materials input:focus,.materials select:focus,.m-form input:focus,.m-form select:focus,.m-form textarea:focus{outline:2px solid #81021f;outline-offset:1px}.materials button:focus-visible,.m-form button:focus-visible{outline:2px solid #81021f;outline-offset:2px}.materials input[type=checkbox],.m-form input[type=checkbox]{width:16px;min-height:16px;accent-color:#81021f}.m-tabs{gap:22px;border-bottom:1px solid var(--m-line);margin-bottom:21px}.m-tabs button{font:inherit;padding:11px 0;border:0;border-bottom:2px solid transparent;background:none;color:#68636d;cursor:pointer}.m-tabs button[aria-selected=true]{border-color:#81021f;color:#81021f;font-weight:600}.m-muted,.m-field small,.m-item-sub{color:#6c6670;font-size:13px;line-height:1.6}.m-item-sub{display:block;margin-top:4px}.m-error{padding:13px 16px;background:#fcf3f5;border-left:3px solid #81021f;color:#81021f;white-space:pre-line}.m-result{padding:18px 21px;border-left:3px solid #81021f;background:#f7f6f8;margin-bottom:20px}.m-result h3{font-size:18px;margin:0 0 8px}.m-result p{margin:6px 0}.m-empty{padding:48px 20px;text-align:center;color:#6c6670}.m-empty strong{font-size:18px;color:#16131f}.m-purpose{padding:15px 18px;border:1px solid #e8e7ea;margin-bottom:22px;display:flex;align-items:center;gap:20px}.m-purpose select{flex:1;max-width:550px}.m-request-grid{display:grid;grid-template-columns:minmax(0,1fr) 278px;gap:24px;align-items:start}.m-request-table{min-width:500px}.m-request-table input[type=number]{width:90px}.m-cart{position:sticky;top:16px;border:1px solid #e8e7ea;padding:18px;background:white}.m-cart h3{font-size:18px;margin:0 0 8px}.m-cart-line{display:grid;grid-template-columns:1fr auto;gap:8px;padding:14px 0;border-bottom:1px solid #e8e7ea}.m-cart-line small{grid-column:1/-1}.m-cart-line input{width:88px}.m-cart .m-submit-area{padding-top:18px}.m-cart .m-submit-area button{width:100%;justify-content:center}.m-cart textarea{width:100%;margin-top:13px;resize:vertical}.m-tag{display:inline-block;padding:2px 7px;font-size:13px;background:#f7f6f8;border:1px solid #e8e7ea}.m-warning{color:#81021f}.m-fields{display:grid;grid-template-columns:1fr 1fr;gap:17px 22px}.m-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:14px}.m-field>span{font-weight:500}.m-field.m-wide{grid-column:1/-1}.m-field textarea{resize:vertical;width:100%}.m-switch{display:flex;gap:10px;align-items:center;padding:15px 0;border-top:1px solid #e8e7ea}.m-switch input{flex-shrink:0}.m-switch span{display:block}.m-switch small{display:block;color:#6c6670;margin-top:4px}.m-details{border-top:1px solid #e8e7ea;padding:15px 0;margin-top:15px}.m-details summary{cursor:pointer;color:#81021f;font-weight:600}.m-details>div{margin-top:12px}.m-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:18px 0}.m-detail-grid dt{font-size:13px;color:#6c6670;margin-bottom:5px}.m-detail-grid dd{margin:0;font-size:15px}.m-form h3{font-size:18px;margin:22px 0 14px}.m-form h3:first-child{margin-top:0}.m-form .m-impact{padding:16px;background:#f7f6f8;border-left:3px solid #81021f;margin-top:19px}.m-impact h4{margin:0 0 8px;font-size:16px}.m-impact p{margin:7px 0}.m-purchase-page{border-top:1px solid #e8e7ea;padding-top:20px}.m-sheet-footer{position:sticky;bottom:0;background:white;border-top:1px solid #e8e7ea;padding:16px 0;display:flex;align-items:center;justify-content:space-between;gap:18px;z-index:2}.m-sheet-footer .m-actions{justify-content:end}.m-category-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:25px}.m-category-menu{background:#f7f6f8;padding:14px}.m-category-menu button{display:block;width:100%;text-align:left;background:none;border:0;border-left:3px solid transparent;padding:12px;font:inherit;cursor:pointer}.m-category-menu button[aria-pressed=true]{background:#fff;color:#81021f;border-left-color:#81021f}.m-category-count{float:right;color:#6c6670}.m-summary{display:flex;gap:28px;align-items:center;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid #e8e7ea;margin-bottom:22px}.m-summary button{border:0;background:none;font:inherit;cursor:pointer;color:#81021f;text-align:left;padding:0}.m-summary strong{font-size:22px;display:block}.m-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid #e8e7ea;margin-bottom:22px}.m-summary-grid>div{padding:18px;border-right:1px solid #e8e7ea}.m-summary-grid>div:last-child{border:0}.m-summary-grid strong{display:block;font-size:22px;margin-top:7px}.m-thumb{width:42px;height:42px;object-fit:contain;border:1px solid #e8e7ea;float:left;margin-right:11px}.m-picker{background:#f7f6f8;border:1px solid #e8e7ea;padding:16px;margin:16px 0}.m-picker-list{max-height:240px;overflow:auto;margin-top:12px}.m-picker-list button{display:block;text-align:left;font:inherit;border:0;border-bottom:1px solid #e8e7ea;background:white;padding:12px;width:100%;cursor:pointer}.m-inline-actions{display:flex;gap:10px;margin:13px 0}.materials[aria-busy=true] .m-submit,.m-form[aria-busy=true] .m-submit{opacity:.65}.m-file-list{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}.m-file-list img{width:70px;height:70px;object-fit:contain}.m-form .m-sticky-note{font-size:14px;color:#81021f;margin:12px 0}.m-image-dialog{border:1px solid #e8e7ea;padding:20px;max-width:85vw;max-height:90vh}.m-image-dialog img{display:block;max-width:75vw;max-height:75vh}.m-chart-table{margin-top:20px}.m-toast-actions{margin-top:14px;display:flex;gap:12px}
@media(max-width:1350px){.m-request-grid{grid-template-columns:minmax(0,1fr) 238px;gap:18px}.m-cart{padding:15px}.m-category-layout{grid-template-columns:210px minmax(0,1fr)}.m-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.materials [hidden],.m-form [hidden]{display:none!important}.m-unit-summary{display:flex;gap:12px 24px;flex-wrap:wrap;margin:18px 0;color:#625a68;font-size:14px}

/* Business controls inside the shared table; sizing and all table operations come from table-suite. */
.m-table-scroll{max-width:100%;min-width:0}
.m-table .text-button{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.m-table .m-item-sub{display:inline;margin:0 0 0 8px;font:inherit;color:var(--muted)}
.m-table .m-thumb{width:24px;height:24px;margin-right:7px;float:none;vertical-align:middle}
.m-table input:not([type=checkbox]),.m-table select{width:100%;min-width:65px;min-height:30px;height:30px;padding:4px 7px;font:inherit}
.m-table input[type=checkbox]{width:16px;min-height:16px;margin:0}
.m-table .row-actions{flex-wrap:nowrap}
.m-table .m-switch{padding:3px 0;border:0;gap:5px}
.m-table .m-switch span{display:inline}
.m-table [data-m-quantity-hint]:empty{display:none}
.m-table [data-m-quantity-hint]:not(:empty){display:block;font-size:12px;white-space:normal;margin:3px 0 0}

[data-m-editor-exit] .m-inline-actions button:nth-child(2){background:var(--accent);border-color:var(--accent);color:#fff}

/* v0.8.0 desktop workspace rules, owned by this module. */
body:has(.desktop-shell) #drawer[data-read-surface] .m-detail-grid{display:grid;grid-template-columns:1fr;gap:12px}
body:has(.desktop-shell) #drawer[data-read-surface] .m-detail-grid>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px;padding:0;border:0}
body:has(.desktop-shell) #drawer[data-read-surface] .m-detail-grid dt{font-size:12px;color:#706971;line-height:22px}
body:has(.desktop-shell) #drawer[data-read-surface] .m-detail-grid dd{font-size:13px;line-height:22px;margin:0}
.m-form .m-operation-conditions.is-allowed{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:9px 12px;margin-top:10px;border-left:2px solid #a4b7ae}.m-operation-conditions.is-allowed [data-material-conditions]{flex:1;min-width:0}.m-operation-conditions summary{cursor:pointer;line-height:1.7;color:#365b49}.m-operation-conditions [data-material-recheck]{flex:none;font-size:12px}

.m-item-identity{display:flex;align-items:center;gap:8px;text-align:left;min-height:32px}.m-list-photo{width:32px;height:32px;object-fit:contain;background:#fff;border:1px solid #e4dfe7;border-radius:5px;flex:none}.m-detail-photos{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 20px}.m-detail-photos button{border:1px solid #e4dfe7;border-radius:6px;background:#fff;padding:6px;cursor:zoom-in}.m-detail-photos img{width:180px;height:150px;object-fit:contain}.m-image-dialog img{max-width:100%;max-height:80vh;object-fit:contain}

.m-photo-empty{display:grid;place-items:center;color:#b5adbb;background:#f7f5f8}.m-stock-todos{display:flex;align-items:center;justify-content:space-between;gap:16px;border-left:3px solid #96002b;background:#f8f3f6;padding:10px 14px;margin:0 0 12px}.m-stock-todos strong{font-size:13px}.m-stock-todos p{font-size:12px;color:#746d7b;margin:4px 0 0}.m-stock-todos button{flex:none}

.m-table [data-m-open]:has(.m-item-identity){display:flex;align-items:center;height:32px;padding-block:0}.m-item-identity>span:last-child:not(.m-list-photo){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.m-table .row-actions{gap:8px}.m-table .row-actions .text-button{flex:none;max-width:none;padding:0;font-size:12px}

/* R2: task controls precede the retained table; supplementary facts remain discoverable. */
.materials .m-toolbar{margin-bottom:12px}.materials .m-filter-row{gap:8px;margin:10px 0}.materials .m-tabs{gap:20px;margin-bottom:12px}.materials .m-tabs button{padding:8px 0}.materials .m-summary{gap:28px;padding:10px 0;margin-bottom:12px}.materials .m-summary strong{font-size:24px}.m-window-compact{margin:0 0 10px;padding:8px 12px;border:1px solid var(--m-line);background:var(--m-wash);font-size:12px}.m-window-compact summary{cursor:pointer;list-style-position:inside}.m-window-compact[open] .m-actions{margin:10px 0}.m-inline-help{font-size:12px;color:var(--muted);margin:4px 0}.m-inline-help summary{cursor:pointer}.m-inline-help p{max-width:70ch;line-height:1.6}.m-item-identity strong{display:block;font-weight:600;overflow:hidden;text-overflow:ellipsis}.m-item-identity small,.m-cell-note{display:block;color:var(--muted);font-size:11px;line-height:1.45;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.m-table [data-m-open]:has(.m-item-identity){height:auto;min-height:36px}.m-stock-todos{padding:7px 12px;margin-bottom:10px}.m-queue-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:10px}.m-queue-heading h3{font-size:16px;margin:0}.m-queue-heading p{font-size:12px;color:var(--muted);margin:4px 0;max-width:68ch}.m-queue-heading h3 span{font-variant-numeric:tabular-nums;color:var(--accent);margin-left:6px}.m-table .row-actions .text-button{font-size:13px}
@media(max-width:720px){.m-queue-heading{align-items:flex-start;flex-wrap:wrap}.m-window-compact .m-actions{align-items:flex-start;flex-direction:column}.materials .m-filter-row label{max-width:100%}.materials .m-summary{gap:18px}.m-request-grid{grid-template-columns:minmax(0,1fr)}.m-cart{position:static}.m-fields{grid-template-columns:1fr}.m-sheet-footer{flex-wrap:wrap}}

.m-request-quantity{display:flex;align-items:center;gap:8px;min-width:0}.m-request-quantity input{width:96px;min-width:70px;max-width:100%;flex:1}.m-request-quantity>span{flex:none;font-size:12px}
.materials[data-materials-view="ledger"] [data-m-date-summary]{margin:4px 0}.materials[data-materials-view="ledger"] .m-ledger-controls{margin-bottom:6px}
@media(min-width:721px) and (max-height:800px){.materials[data-materials-view="overview"] .m-tabs{margin-bottom:6px}.materials[data-materials-view="overview"] .m-filter-row{margin-block:6px}}
@media (min-width:721px) and (max-width:1180px){.m-request-grid{grid-template-columns:minmax(0,1fr);gap:12px}.m-request-grid>.m-cart{position:static;display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:6px 16px;padding:12px}.m-cart>h3,.m-cart>p,.m-cart>.m-cart-line,.m-cart>.m-field{grid-column:1;margin-block:0}.m-cart>.m-submit-area{grid-column:2;grid-row:1/span 3;align-self:start;margin:0}.m-cart>.m-field textarea{min-height:48px;height:48px}}

/* Statistics keeps the same controls and chart data; short screens spend space on records. */
.materials .m-statistics-filters{margin:4px 0 10px;align-items:center}
.m-statistics-filters>.m-details{padding:0;border-top:0;min-height:38px;align-content:center}
@media(min-width:721px) and (max-height:800px){
 .materials[data-materials-view="overview"] .m-tabs{margin-bottom:2px}
 .materials[data-materials-view="overview"] .m-tabs button{padding-block:6px}
 .materials[data-materials-view="overview"] .m-statistics-filters{margin-block:2px}
 [data-m-statistics-workspace]>.wi-layout{row-gap:8px}
 [data-m-statistics-workspace] .wi-heading{padding-block:0 2px;min-height:32px}
 [data-m-stats-table]>.table-suite-main-tools.table-tools{padding-bottom:0;margin-bottom:4px;min-height:38px}
 [data-m-stats-table] .table-suite-main-scroll{max-height:max(280px,calc(100dvh - var(--table-suite-top,300px) - 76px))}
}

/* Statistics explanations stay available through More > basis, preserving the useful plot and table space. */
@media(min-width:721px){
 [data-m-statistics-workspace] .wi-card-note{display:none}
 [data-m-statistics-workspace] .wi-card{padding:10px 12px 7px}
 [data-m-statistics-workspace] .wi-card h3{font-size:13px}
 [data-m-statistics-workspace] .wi-card-context{margin:3px 0 5px}
 [data-m-stats-table]>.table-suite-main-tools.table-tools{padding-bottom:0;margin-bottom:4px;min-height:38px}
 [data-m-stats-table] tbody td{padding-top:8px;padding-bottom:8px}
}

@media(min-width:721px){[data-m-statistics-workspace]>.wi-layout{row-gap:2px}[data-m-stats-table] tbody td{height:38px;padding-block:3px}[data-m-stats-table] .row-actions .text-button{min-height:28px;line-height:20px}}

/* Statistics keeps its scope, chart and actionable ledger in one viewport. */
@media(min-width:721px){
 .m-statistics-scopebar{display:flex;align-items:center;gap:20px;min-height:40px;margin-bottom:3px;border-bottom:1px solid var(--m-line)}
 .m-statistics-scopebar .m-tabs{flex:none;margin:0!important;border:0;gap:18px}
 .m-statistics-scopebar .m-statistics-filters{flex:1;min-width:0;margin:0!important;gap:8px}
 .m-statistics-scopebar .m-statistics-filters>label{display:flex;align-items:center;gap:5px;white-space:nowrap}
 .m-statistics-scopebar input,.m-statistics-scopebar select{min-height:32px!important;padding:4px 6px!important;font-size:12px!important}
 .m-statistics-scopebar .m-details{position:relative;flex:1 1 130px!important;min-width:130px}
 .m-statistics-scopebar .m-details>summary{white-space:nowrap;font-size:12px}
 .m-statistics-scopebar .m-details[open]{align-self:flex-start}
 [data-m-stats-table]>.table-suite-main-tools{flex-wrap:wrap;gap:6px;align-items:center}
 [data-m-stats-table]>.table-suite-main-tools>.table-insight-condition{border:0;background:none;padding:0;margin:0;gap:6px;max-width:100%;font-size:11px}
 [data-m-stats-table]>.table-suite-main-tools .table-insight-condition>span{max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 [data-m-stats-table]>.table-suite-main-tools .table-insight-condition .text-button{font-size:11px;white-space:nowrap}
 [data-m-stats-table]>.table-suite-main-tools .table-search{min-width:130px;flex:1 1 130px;width:130px;max-width:220px}
}

@media(min-width:721px){[data-m-stats-table] tbody td{height:34px;padding-block:1px}[data-m-stats-table] .table-suite-main-tools{min-height:34px!important}.m-statistics-scopebar .m-details>summary{line-height:32px}}
@media(min-width:721px){.desktop-shell [data-m-stats-table] .table-suite>tbody>tr:not(.batch-expansion):not([data-spacer])>td{height:34px;padding-block:1px}}

/* Administrative reference: scope, paired rankings and full-density owner tables. */
.mo-workspace:has(>.mo-navigation){display:grid;grid-template-columns:108px minmax(0,1fr);gap:16px;align-items:start;container-type:inline-size;container-name:materials-overview}
.mo-workspace>.m-toolbar{grid-column:1/-1}.mo-workspace>.m-summary{display:none!important}
.mo-workspace>.mo-navigation{position:sticky;top:12px;display:flex;flex-direction:column;gap:12px;border:0;margin:0!important;padding:12px 12px 0 0;border-right:1px solid #e7ebf1;align-self:stretch}
.materials .mo-workspace>.mo-navigation>button{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:68px;padding:12px 8px;color:#272b35;background:#fff;border:1px solid #eef1f6;border-radius:7px;font-size:15px;font-weight:600;box-shadow:0 4px 12px #24365304}
.materials .mo-workspace>.mo-navigation>button[aria-selected=true]{background:linear-gradient(135deg,#b5003e,#8e002d);color:#fff;border-color:#a60035}
.mo-navigation button>span{font-size:25px;line-height:1}.mo-navigation sup{position:absolute;right:8px;top:7px;border-radius:12px;background:#e40031;color:#fff;font-size:10px;line-height:16px;min-width:16px;padding:0 3px}
.mo-dashboard{min-width:0;color:#172432;font-size:13px;--mo-line:#edf0f5;--mo-wash:#f5f7fa}
.mo-dashboard,.mo-dashboard h3,.mo-dashboard button,.mo-dashboard input,.mo-dashboard select{font-family:"Microsoft YaHei","PingFang SC",sans-serif}
.mo-scope{display:flex;align-items:center;gap:20px;min-height:48px;margin:0 0 12px;flex-wrap:wrap}
.mo-scope-label{font-weight:500;white-space:nowrap}.mo-segments{display:flex;background:#fff;border-radius:5px;overflow:hidden;flex:none}
.mo-segments button{min-width:74px;height:38px;border:0;background:#fff;color:#202833;font-size:14px;padding:6px 16px;white-space:nowrap}
.mo-segments button[aria-pressed=true]{background:#aa0038;color:#fff}.mo-segments button:hover:not([aria-pressed=true]){background:#faf0f4}
.mo-month{display:flex;align-items:center;gap:20px;white-space:nowrap}.mo-month input{width:176px;height:38px;min-height:38px!important;background:#fff;border:1px solid #edf0f6;border-radius:5px;padding:6px 12px;font-size:14px}
.mo-more{position:relative;margin-left:auto}.mo-more summary{cursor:pointer;white-space:nowrap;color:#677286;font-size:12px;padding:8px}.mo-more-panel{position:absolute;right:0;top:100%;z-index:35;width:420px;max-width:calc(100vw - 36px);padding:16px;background:white;border:1px solid #e3e8ef;box-shadow:0 12px 38px #20365020;border-radius:8px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.mo-more-panel label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px}.mo-more-panel select,.mo-more-panel input{width:100%;min-width:0!important;min-height:36px!important;border:1px solid #e1e6ed;border-radius:4px;padding:6px}
.mo-focus{min-width:88px;width:88px;height:34px;padding:6px!important;font-size:12px!important;white-space:nowrap}
.mo-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:12px}
.mo-metric{display:flex;gap:14px;align-items:center;min-width:0;min-height:96px;padding:16px 20px;background:#fff;border:1px solid #eff2f7;border-radius:7px;box-shadow:0 2px 10px #233c5c03}
.mo-metric>div{min-width:0}.mo-metric>div>span{font-size:13px;line-height:1.5;display:block;color:#29313b}.mo-metric strong{display:block;font-size:clamp(18px,1.42vw,26px);line-height:1.5;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:-.4px}.mo-metric strong small{font-size:14px;font-weight:500;letter-spacing:0}.mo-metric-icon{flex:none;display:grid;place-items:center;width:54px;height:58px;border-radius:8px}.mo-metric-icon svg{width:29px;height:29px;stroke-width:1.8}
.mo-metric.rose{color:#e00039}.mo-metric.rose .mo-metric-icon{background:linear-gradient(135deg,#ffd1df,#fff4f7)}.mo-metric.blue{color:#1686f7}.mo-metric.blue .mo-metric-icon{background:linear-gradient(135deg,#c7e3ff,#eef7ff)}.mo-metric.teal{color:#00b49b}.mo-metric.teal .mo-metric-icon{background:linear-gradient(135deg,#c0f0e8,#f0fcf9)}.mo-metric.amber{color:#f28b00}.mo-metric.amber .mo-metric-icon{background:linear-gradient(135deg,#ffe5c3,#fff9ef)}
.mo-rankings,.mo-tables{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mo-rankings{margin-bottom:12px}.mo-card{min-width:0;border:1px solid #eff2f7;border-radius:7px;background:#fff;padding:14px 16px;box-shadow:0 2px 10px #233c5c03}
.mo-card>header{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:32px;margin-bottom:8px}.mo-card h3{font-size:16px;font-weight:650;color:#151e29;line-height:1.4;margin:0}.mo-ranking header>div{display:flex;gap:10px;align-items:center;white-space:nowrap}.mo-ranking header>div>span{font-size:12px}.mo-ranking select{height:30px;min-height:30px!important;border:1px solid #e4e9f0;border-radius:4px;min-width:76px;padding:2px 8px;font-size:12px}
.mo-bars{height:208px;display:flex;flex-direction:column;gap:3px;overflow:hidden}.mo-bars.mo-many-bars{overflow-y:auto;scrollbar-gutter:stable}.mo-bar{display:grid;grid-template-columns:minmax(82px,23%) minmax(60px,1fr) 86px;align-items:center;gap:8px;flex:none;height:23px;min-height:23px!important;width:100%;padding:0;border:0;background:transparent;text-align:left;font-size:12px;color:#2a3443;border-radius:4px;cursor:pointer}.mo-bar:hover{background:#f6f8fc}.mo-bar[aria-pressed=true]{background:#f9eef3;box-shadow:inset 2px 0 #a00035}.mo-bar:focus-visible{outline:2px solid #a00035;outline-offset:2px}.mo-bar-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:right}.mo-bar-track{height:14px;display:flex;align-items:center;min-width:0}.mo-bar-track i{height:14px;width:var(--bar);background:var(--bar-color);border-radius:4px;min-width:2px}.mo-bar-amount{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:11px}.mo-rank-empty{height:208px;display:grid;place-items:center;color:#96a0ae;font-size:13px}.mo-bars:empty{display:none}
.mo-table-card{padding-top:12px;display:flex;flex-direction:column;min-height:420px}.mo-table-tools{display:flex;align-items:center;gap:7px;flex:none;margin:0!important;padding:0!important}.mo-table-tools .btn{font-size:12px;min-height:30px;height:30px;padding:4px 9px;border-radius:4px;border-color:#e8d9df;white-space:nowrap;display:inline-flex;align-items:center;gap:5px}.mo-table-tools .btn svg{width:15px;height:15px;color:#a00035}.mo-table-tools [data-table-columns]{order:-1}
.mo-table-scroll{overflow:auto;min-width:0;width:100%;min-height:320px;scrollbar-gutter:stable}.mo-table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:12px;line-height:1.35;font-variant-numeric:tabular-nums;border:0!important}.mo-table th{height:32px;white-space:nowrap;background:#f2f5f9!important;color:#222d3c;padding:6px 8px;font-size:11px;font-weight:650;border:0!important;border-bottom:1px solid #e9eef5!important;position:sticky;top:0;z-index:2}.mo-table td{height:29px;padding:5px 8px;border:0!important;border-bottom:1px solid #f0f3f7!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#fff;color:#293747}.mo-table tr:hover td{background:#fafbfd}.mo-table td[data-align=right]{text-align:right}.mo-table td[data-column-key=_seq]{text-align:center}.mo-table .column-move-handle{display:none}.mo-table .table-resize-grip{opacity:.2}.mo-original-link{max-width:100%;display:block;color:inherit;border:0;padding:0;background:transparent;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:inherit;cursor:pointer}.mo-original-link:hover{color:#a00035;text-decoration:underline}.mo-original-link:focus-visible{outline:2px solid #a00035;outline-offset:2px}.mo-table-empty{position:absolute;align-self:center;margin-top:170px;color:#96a0ae;font-size:13px}
.mo-pagination{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:8px;padding-top:12px;min-height:44px;font-size:12px}.mo-pagination>label{display:flex;gap:6px;align-items:center;white-space:nowrap}.mo-pagination select{min-height:28px!important;height:28px;border:1px solid #e8edf3;border-radius:4px;font-size:12px;padding:2px 5px}.mo-pagination>div{display:flex;align-items:center;gap:4px}.mo-pagination button{min-width:28px;height:28px;min-height:28px!important;border:1px solid transparent;background:#f7f9fc;border-radius:4px;color:#253043;padding:2px 5px;line-height:20px;font-size:12px}.mo-pagination button[aria-current=page]{background:#a00035;color:#fff}.mo-pagination button:disabled{opacity:.4;cursor:default}
.mo-selected{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#fbf2f6;color:#950031;padding:4px 8px;border-radius:4px;font-size:12px;margin-bottom:6px}.mo-selected[hidden]{display:none}.mo-selected>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mo-selected .text-button{font-size:12px;padding:0;white-space:nowrap}
.mo-dashboard.mo-focused .mo-metrics,.mo-dashboard.mo-focused .mo-rankings{display:none}.mo-dashboard.mo-focused .mo-table-card{min-height:420px}.mo-cost-note{font-size:11px;color:#7b6b45;margin:8px 0}.mo-unassigned{font-size:12px;margin-top:10px}.mo-dashboard [hidden]{display:none!important}
@container (max-width:900px){.mo-workspace .mo-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.mo-workspace .mo-metric{min-height:80px;padding:12px 16px}.mo-workspace .mo-bars{height:208px}.mo-workspace .mo-card h3{font-size:15px}}
@media(min-width:721px) and (max-width:1150px){.mo-workspace:has(>.mo-navigation){grid-template-columns:80px minmax(0,1fr);gap:12px}.materials .mo-workspace>.mo-navigation>button{font-size:13px;gap:6px;padding-inline:5px}.mo-scope{gap:12px}.mo-month{gap:10px}.mo-segments button{min-width:60px;padding-inline:12px}.mo-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.mo-rankings,.mo-tables{grid-template-columns:minmax(0,1fr)}}
@media(max-width:720px){.mo-workspace{display:block}.mo-workspace>.mo-navigation{position:static;display:flex;flex-direction:row;border:0;padding:0;margin-bottom:12px!important}.materials .mo-workspace>.mo-navigation>button{height:44px;min-height:44px;flex:1}.mo-navigation button>span{font-size:20px}.mo-scope{gap:10px;align-items:center}.mo-scope-label{display:none}.mo-segments{flex:1}.mo-segments button{min-width:0;flex:1;padding:6px 12px;min-height:44px}.mo-month{width:100%;gap:12px}.mo-month input{flex:1;width:auto;height:44px;min-height:44px!important}.mo-more{margin-left:0}.mo-more summary{min-height:44px;display:flex;align-items:center;padding:8px}.mo-more-panel{left:0;right:auto;width:calc(100vw - 40px)}.mo-focus{margin-left:auto;height:44px;min-height:44px}.mo-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mo-metric{padding:10px;gap:8px;min-height:88px}.mo-metric-icon{width:30px;height:34px}.mo-metric-icon svg{width:21px;height:21px}.mo-metric>div>span{font-size:11px}.mo-metric strong{font-size:16px;white-space:normal;overflow-wrap:anywhere}.mo-metric strong small{font-size:11px}.mo-rankings,.mo-tables{grid-template-columns:minmax(0,1fr)}.mo-card{padding:12px 10px}.mo-card h3{font-size:14px}.mo-ranking header>div>span{display:none}.mo-ranking select{min-height:44px!important;height:44px}.mo-bar{height:32px;min-height:32px!important;grid-template-columns:88px minmax(35px,1fr) 78px}.mo-bars{height:277px}.mo-rank-empty{height:277px}.mo-table-card>header{flex-wrap:wrap;gap:10px}.mo-table-tools .btn{height:40px;min-height:40px;padding:7px 10px}.mo-table-scroll{min-height:320px}.mo-pagination{flex-wrap:wrap;gap:10px}.mo-pagination select,.mo-pagination button{height:40px;min-height:40px!important;min-width:36px}.mo-pagination>label{font-size:12px}.mo-selected .text-button{min-height:40px}.mo-table-card{min-height:430px}}


.materials .mo-table th,.materials .mo-table td{padding:5px 8px!important}.mo-dashboard .mo-selected[hidden]{display:none!important}.mo-selected{min-height:28px}.mo-dashboard .mo-metric strong{font-size:var(--metric-size,clamp(18px,1.42vw,26px))}

@container (min-width:940px){.mo-workspace .mo-rankings,.mo-workspace .mo-tables{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container (max-width:939px){.mo-workspace .mo-rankings,.mo-workspace .mo-tables{grid-template-columns:minmax(0,1fr)}}
.mo-dashboard table.mo-table[data-table-key]>tbody>tr>td[data-align="right"]{padding-right:8px!important}.mo-dashboard table.mo-table[data-table-key]>thead>tr>th{padding-right:8px!important}

.mo-table-heading{min-width:0;flex:1}.mo-table-heading .mo-selected{padding:0 6px;margin:0;min-height:32px;height:32px}.mo-table-heading .mo-selected .text-button{min-height:24px!important;height:24px;padding:0!important}
@container (min-width:940px) and (max-width:1300px){.mo-workspace .mo-tables{grid-template-columns:minmax(0,1fr)}}
.mot-dashboard{min-width:0;color:#171a25}.mot-heading{display:flex;align-items:baseline;gap:16px;min-height:62px;margin-bottom:16px;flex-wrap:wrap}.mot-heading h2{font-size:27px;line-height:1.25;margin:4px 0;font-weight:750}.mot-heading>span{font-size:20px;white-space:nowrap}.mot-heading strong,.mot-dot{color:#ae0039}.mot-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}.mot-card{min-width:0;background:#fff;border:1px solid #eef0f4;border-radius:8px;display:flex;flex-direction:column;overflow:hidden;height:clamp(520px,calc(100dvh - 238px),780px)}.mot-card>header{display:flex;align-items:center;gap:14px;padding:20px 16px;min-height:104px;position:relative;flex:none}.mot-card h3{font-size:18px;font-weight:700;line-height:1.4;margin:0;flex:1;white-space:nowrap}.mot-card h3 strong{color:#af003a;font-weight:650}.mot-icon{width:52px;height:52px;border-radius:8px;display:grid;place-items:center;flex:none}.mot-icon svg{width:28px;height:28px}.mot-icon-requests{color:#bf0044;background:#fce0ea}.mot-icon-purchases{color:#1289ee;background:#e4f0ff}.mot-icon-low{color:#ed900f;background:#fff1db}.mot-view-all,.mot-stock-links>summary{font-size:28px;text-decoration:none;color:#565a64;display:grid;place-items:center;width:28px;height:36px;list-style:none;cursor:pointer}.mot-stock-links>summary::-webkit-details-marker{display:none}.mot-stock-links>div{position:absolute;z-index:10;right:10px;top:80px;border:1px solid #e4e6ee;border-radius:6px;background:white;box-shadow:0 6px 18px #1c234515;padding:6px;min-width:120px;display:grid;gap:4px}.mot-stock-links a{padding:8px;text-decoration:none;color:#323545}.mot-stock-links a:hover{background:#f7f1f4}.mot-scroll{flex:1;overflow:auto;min-height:0;scrollbar-width:thin;scrollbar-color:#bac2cc #f6f7f9;scrollbar-gutter:stable;overscroll-behavior:contain;overscroll-behavior-y:auto}.materials table.mot-table{table-layout:fixed;width:100%;border-collapse:separate;border-spacing:0;min-width:450px;font-size:12px}.materials table.mot-table-purchases{min-width:458px}.materials table.mot-table-low{min-width:390px}.materials .mot-table th{background:#f6f8fb;font-size:12px;font-weight:650;height:40px;position:sticky;top:0;z-index:2;white-space:nowrap;text-align:left}.materials .mot-table td{height:44px;max-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:top;border-bottom:1px solid #f3f4f7;line-height:32px}.materials .mot-table th,.materials .mot-table td{padding:6px 9px!important}.materials .mot-table-requests th:nth-child(1){width:87px}.materials .mot-table-requests th:nth-child(2){width:60px}.materials .mot-table-requests th:nth-child(3){width:86px}.materials .mot-table-requests th:nth-child(5){width:63px}.materials .mot-table-requests th:last-child{width:87px}.materials .mot-table-purchases th:nth-child(1){width:87px}.materials .mot-table-purchases th:nth-child(2){width:90px}.materials .mot-table-purchases th:nth-child(3){width:58px}.materials .mot-table-purchases th:nth-child(5){width:57px}.materials .mot-table-purchases th:last-child{width:105px}.materials .mot-table-low th:nth-child(2){width:66px}.materials .mot-table-low th:nth-child(3),.materials .mot-table-low th:nth-child(4){width:82px}.materials .mot-table-low th:last-child{width:88px}.mot-line{display:block;height:32px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mot-action{border:0;background:none;padding:2px 4px;min-height:32px;font-size:12px;line-height:24px;color:#666977;white-space:nowrap;cursor:pointer;border-radius:3px}.mot-action:hover{background:#f8eef2;color:#95002d}.mot-action:focus-visible{outline:2px solid #9d0035;outline-offset:1px}.mot-primary{color:#ad0037;text-decoration:underline;text-underline-offset:3px}.mot-actions{position:sticky;right:0;background:#fff;z-index:1;box-shadow:-3px 0 5px #11182704}.mot-table th:last-child{right:0;z-index:3}.mot-process{display:inline-block;vertical-align:top}.mot-process>summary{color:#ad0037;text-decoration:underline;text-underline-offset:3px;cursor:pointer;list-style:none;font-size:12px;line-height:28px;padding:4px;white-space:nowrap}.mot-process>summary::-webkit-details-marker{display:none}.materials .mot-table td.mot-actions{overflow:visible;max-width:none}.mot-process>div{position:absolute;right:6px;top:38px;display:grid;min-width:105px;padding:5px;background:#fff;border:1px solid #dfe3eb;border-radius:5px;box-shadow:0 8px 20px #1118271a;z-index:5}.mot-empty{padding:44px 12px;text-align:center;color:#9a9eaa;font-size:13px}.mot-card>footer{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 14px;color:#8a8e99;font-size:11px;min-height:36px;border-top:1px solid #f0f2f5;flex:none}.mot-other{margin-top:14px;border:1px solid #e8eaf0;background:white;border-radius:6px}.mot-other>summary{padding:14px;font-size:14px;cursor:pointer}.mot-other>div{padding:0 14px 12px}.mot-other>div>div{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px;border-top:1px solid #f0f1f5}.mot-other small{display:block;color:#7d8290;margin-top:4px}.mot-other strong{color:#ad0037}.mo-bars.mo-many-bars{scrollbar-width:thin;scrollbar-color:#bac2cc #f6f7f9}.mo-compact-columns.table-columns-popover{width:244px!important;min-width:0!important;max-width:calc(100vw - 24px);padding:12px!important}.mo-compact-columns .column-order-editor{min-width:0}.mo-compact-columns:not(.mo-columns-advanced) :is([data-column-search],.column-order-help,.column-freeze-summary,.column-order-grip,.column-freeze-toggle,.column-freeze-placeholder,.column-order-actions,.column-order-description,.column-order-fixed){display:none!important}.mo-compact-columns:not(.mo-columns-advanced) .column-order-row{display:flex;min-height:30px;padding:3px 4px!important;gap:0;border:0!important}.mo-compact-columns:not(.mo-columns-advanced) .column-order-list{max-height:340px;gap:0}.mo-compact-columns:not(.mo-columns-advanced) .column-option{min-height:27px;flex:1;gap:8px}.mo-compact-columns:not(.mo-columns-advanced) .column-order-title{font-size:12px}.mo-compact-columns .column-order-footer{gap:5px;justify-content:space-between;flex-wrap:nowrap}.mo-compact-columns .column-order-footer .btn{font-size:12px;min-width:0;padding:6px 9px;white-space:nowrap}.mo-columns-advanced-toggle{display:block;margin:8px 0;font-size:12px}.mo-compact-columns.mo-columns-advanced{width:660px!important}.mo-compact-columns.mo-columns-advanced .column-order-description{max-width:220px}.mo-compact-columns.mo-columns-advanced .column-order-list{max-height:400px}
@container materials-overview (max-width:1150px){.mot-card>header{gap:8px;padding:15px 12px;min-height:86px}.mot-icon{width:38px;height:42px}.mot-icon svg{width:24px;height:24px}.mot-card h3{font-size:16px}.mot-grid{gap:12px}.mot-heading h2{font-size:24px}.mot-heading>span{font-size:18px}}
@container materials-overview (max-width:730px){.mot-grid{grid-template-columns:1fr}.mot-card{height:440px}.mot-heading{gap:9px;min-height:52px}.mot-heading h2{font-size:22px}.mot-heading>span{font-size:16px}.mot-card>header{min-height:78px}}

.mot-process-menu[popover]{position:fixed;inset:auto;margin:0;width:122px;padding:5px;border:1px solid #dfe3eb;border-radius:5px;box-shadow:0 8px 20px #1118271a;background:white}.mot-process-menu:popover-open{display:grid}.mot-process-menu .mot-action{text-align:left;min-height:36px;padding:4px 8px}
.mo-compact-columns:not(.mo-columns-advanced) .column-order-row{min-height:27px;padding:0 3px!important}.mo-compact-columns:not(.mo-columns-advanced) .column-order-row>.column-option{padding:0!important;min-height:27px;line-height:20px}.mo-compact-columns:not(.mo-columns-advanced) .column-order-list{max-height:320px}.mo-compact-columns:not(.mo-columns-advanced) .column-option-copy{display:block;line-height:20px}

.materials table.mot-table,.materials .mot-table th,.materials .mot-table td,.mot-action,.mot-process>summary{font-size:13px}.materials .mot-table th,.materials .mot-table td{padding:6px!important}.materials table.mot-table-requests{min-width:470px}.materials table.mot-table-purchases{min-width:490px}.materials .mot-table-requests th:nth-child(1),.materials .mot-table-purchases th:nth-child(1){width:86px}.materials .mot-table-requests th:nth-child(2){width:64px}.materials .mot-table-requests th:nth-child(3){width:90px}.materials .mot-table-requests th:nth-child(5){width:62px}.materials .mot-table-requests th:last-child{width:92px}.materials .mot-table-purchases th:last-child{width:106px}

.materials table.mot-table-requests,.materials table.mot-table-purchases{min-width:458px}.mot-card{container-type:inline-size;container-name:materials-task-card}@container materials-task-card (min-width:468px){.mot-scroll-hint{display:none}}@container materials-task-card (min-width:400px){[data-mot-card=low] .mot-scroll-hint{display:none}}

.mot-heading{align-items:center;min-height:52px;margin-bottom:14px}.mot-heading-actions{margin-left:auto;justify-content:flex-end;gap:10px}.mot-heading-actions .btn{white-space:nowrap}.mot-heading-actions:empty{display:none}

/* heading-layout-20261030: compact titles keep business controls in their own scope. */
@media(min-width:801px){
 .desktop-shell .materials .mot-heading{min-height:34px;margin:0 0 10px;gap:10px}
 .desktop-shell .materials .mot-heading h2{font-size:18px;line-height:1.45;font-weight:650;margin:0}
 .desktop-shell .materials .mot-heading>span{font-size:14px;line-height:1.5}
 .desktop-shell .materials .m-filter-row{gap:10px;margin:10px 0;align-items:center}
 .desktop-shell .materials .m-filter-row>label{display:flex;align-items:center;gap:6px;white-space:nowrap}
 .desktop-shell .materials .m-filter-row>input[type=search]{min-width:200px;flex:1 1 240px;max-width:360px}
 .desktop-shell .materials .m-tabs{margin-bottom:12px;gap:20px}
 .desktop-shell .materials .m-tabs.mo-navigation{gap:12px;margin-bottom:0}
 .desktop-shell .materials .m-toolbar.m-ledger-controls{margin-bottom:10px}
 .desktop-shell #page-actions [data-m-action=toggle-bulk]{min-width:96px}
}

/* widescreen-layout-20261030: only a long queue consumes the additional viewport height. */
@media(min-width:1600px) and (min-height:1000px){
 .desktop-shell .mot-grid:has(.mot-scroll tbody tr:nth-child(12)) .mot-card{height:calc(100dvh - 214px)}
}
