/* R10 record layout derived from the supplied inventory reference. */
:root{--record-ink:#17213e;--record-muted:#828aa2;--record-green:#00866b;--record-line:#e6e9ee;--record-yellow:#ffd339}
body:has(#inventory.active),body:has(#costs.active){background:#f2f5f5}
.inventory-materials-shell{display:grid;gap:16px;width:100%;max-width:1040px;margin-inline:auto;min-width:0}
.inventory-reference-panel,.inventory-category-card{background:#fff;border:1px solid var(--record-line);border-radius:20px;box-shadow:0 5px 24px #17213e06;padding:20px;color:var(--record-ink)}
.inventory-materials-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.inventory-materials-head h2{font-size:32px;color:var(--record-ink);margin:0 0 5px;line-height:1.3}.inventory-materials-head p{font-size:20px;color:var(--record-muted);margin:0}
.inventory-heading-icon,.material-category-icon{width:58px;height:58px;flex:0 0 58px;display:grid;place-items:center;border-radius:15px;background:#e7f7f0;color:#007e64}
.inventory-heading-icon svg,.material-category-icon svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.inventory-filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px 28px;padding:18px;border:1px solid var(--record-line);border-radius:15px;background:#fff;box-shadow:0 2px 12px #17213e04;margin:0}
.inventory-filters>label,.inventory-filters>label:first-child{grid-column:auto!important;font-size:20px;color:var(--record-ink);gap:7px;min-width:0}
.inventory-filters input,.inventory-filters select{height:56px;font-size:21px;border:1px solid #e0e4eb;background:#fff;border-radius:11px;color:var(--record-ink);padding:10px 14px;min-width:0}
.inventory-filters input::placeholder{color:var(--record-muted)}.inventory-filters input:focus,.inventory-filters select:focus{border-color:#ffc400;box-shadow:0 0 0 1px #ffc400}
.material-search-field{position:relative;display:block}.material-search-field input{padding-inline-end:42px}.material-search-field svg{position:absolute;inset-inline-end:14px;top:50%;transform:translateY(-50%);width:21px;height:21px;fill:none;stroke:#939bb0;stroke-width:1.7;pointer-events:none}
.inventory-category-list{gap:16px}.inventory-category-card{overflow:visible}
.inventory-category-head{display:flex;align-items:center;gap:14px;padding:0;margin:0 0 18px;border:0;background:transparent}
.material-category-icon{background:#fff0c3;color:#dc9b00;width:52px;height:52px;flex-basis:52px;border-radius:13px}
.material-category-copy{flex:1;min-width:0}.inventory-category-head h2{font-size:30px;white-space:normal;color:var(--record-ink);margin:0 0 5px}
.inventory-category-head small{font-size:18px;line-height:1.5;color:var(--record-muted);display:block}
.material-category-actions{flex:none}.material-category-actions button{min-height:56px;font-size:21px;border-radius:12px;white-space:nowrap}
.material-edit-note{font-size:13px;color:var(--record-muted)}
.material-category-actions .material-add{display:flex;align-items:center;gap:10px;background:var(--record-yellow);color:#161608;padding:10px 18px}.material-add>span{font:32px/1 Arial,sans-serif}
.inventory-category-card>.table-wrap{background:transparent;border:0;border-radius:0;overflow:visible;max-width:100%}
table.material-cards,table.record-cards{display:block;width:100%;min-width:0;max-width:100%;background:transparent;border-collapse:separate}
table.material-cards>thead,table.record-cards>thead{display:none}
table.material-cards>tbody,table.record-cards>tbody{display:grid;gap:12px;width:100%;min-width:0}
table.material-cards>tbody>tr{position:relative;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px 18px;padding:16px;border:1px solid var(--record-line);border-radius:15px;background:#fff;box-shadow:0 3px 15px #17213e05}
table.material-cards>tbody>tr>td{display:flex;flex-direction:column;gap:4px;min-width:0;width:auto;height:auto;min-height:0;padding:0;border:0;white-space:normal;font-size:17px;line-height:1.4;color:var(--record-ink)}
table.material-cards td[data-label]::before{display:block;content:attr(data-label);font-size:18px;font-weight:400;color:var(--record-muted);line-height:1.35}
table.material-cards>tbody>tr>.material-name{grid-column:1/3;grid-row:1;padding-inline-start:22px}
table.material-cards>tbody>tr>.material-stock{grid-column:3/5;grid-row:1;border-inline:1px solid var(--record-line);padding-inline:10px;text-align:center;font-size:23px;color:#6c7283}
table.material-cards>tbody>tr>.material-average{grid-column:5/7;grid-row:1;text-align:center;font-size:19px}
table.material-cards .inventory-material-button{display:block;min-width:0;max-width:100%;min-height:0;padding:0!important;text-align:start;background:none!important;border:0;box-shadow:none;border-radius:0;color:var(--record-green)!important;font-size:25px!important;line-height:1.4;font-weight:700;white-space:normal;overflow-wrap:anywhere}
table.material-cards>tbody>tr>.material-purchase,table.material-cards>tbody>tr>.material-usage{grid-column:span 3;grid-row:2;display:flex;flex-direction:row;align-items:center;gap:0;border:1px solid var(--record-line);border-radius:11px;min-height:46px;background:#fdfdfe;overflow:hidden}
table.material-cards .material-purchase::before,table.material-cards .material-usage::before{flex:1;min-width:0;padding:8px 10px;font-size:17px}
table.material-cards .material-purchase select,table.material-cards .material-usage select{flex:1;min-width:0;width:56%!important;min-height:54px;height:54px;padding:8px 12px;margin:0;border:0;border-inline-start:1px solid var(--record-line);border-radius:10px;background:#fafbfd;color:var(--record-ink);font-size:21px;opacity:1;-webkit-text-fill-color:var(--record-ink)}
table.material-cards>tbody>tr>.material-category{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:120px 1fr;align-items:center;gap:12px}
table.material-cards .material-category>select{max-width:300px}
table.material-cards>tbody>tr>.material-row-actions{position:absolute;inset-inline-start:10px;top:16px;display:block;width:20px;min-width:20px}
.material-more{position:relative}.material-more>summary{display:grid;place-items:center;list-style:none;color:#d99a00;font-size:31px;line-height:1;width:24px;min-height:36px;cursor:pointer;border-radius:6px}
.material-more>summary::-webkit-details-marker{display:none}.material-more>summary::after{display:none}.material-more>summary:hover{background:#fff6d8}
.material-more>div{position:absolute;z-index:35;inset-inline-start:0;top:38px;width:170px;padding:5px;border:1px solid var(--record-line);border-radius:10px;background:white;box-shadow:0 8px 28px #17213e24}
.material-more button{display:block;width:100%;text-align:start;background:white;color:var(--record-ink);font-size:14px;min-height:42px;padding:9px}.material-more button:hover{background:#f2f7f5}
table.material-cards .material-editing>.material-name{padding-inline-start:0;grid-column:1/4}
table.material-cards .material-editing>.material-stock{grid-column:4/7;border-inline-end:0}
table.material-cards .material-editing>.material-average{grid-column:1/-1;grid-row:4}
table.material-cards>tbody>.material-editing>.material-row-actions{position:static;grid-column:1/-1;width:auto;grid-row:5}
.inventory-name-edit{display:grid;gap:7px}.inventory-name-edit input{min-width:0;width:100%}
table.material-cards .stock-empty{color:#ed1650!important}table.material-cards .stock-low{color:#d98500!important}table.material-cards .stock-healthy{color:var(--record-green)!important}table.material-cards .stock-unknown{color:#707b90!important}
.material-stock small{font-size:11px;line-height:1.4;color:var(--record-muted);font-weight:400}
.material-stock.stock-empty small{display:none}
/* Financial and personnel records share the reference card's summary/meta rows. */
#costs .table-wrap:has(.record-cards){border:0;background:transparent;border-radius:0;overflow:visible}
table.record-cards>tbody>tr{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px 16px;position:relative;border:1px solid var(--record-line);border-radius:15px;background:#fff;box-shadow:0 3px 15px #17213e05;padding:16px}
table.record-cards>tbody>tr>td{display:flex;flex-direction:column;gap:7px;min-width:0;width:auto;height:auto;min-height:0;grid-column:span 3;padding:0;border:0;white-space:normal;font-size:16px;color:var(--record-ink);overflow-wrap:anywhere}
table.record-cards td[data-label]::before{display:block;content:attr(data-label);font-size:14px;color:var(--record-muted);font-weight:400;line-height:1.4}
table.record-cards>tbody>tr>.record-title,table.record-cards>tbody>tr>.record-amount,table.record-cards>tbody>tr>.record-summary{grid-column:span 2}
table.record-cards>tbody>tr>.record-title{grid-column:1/3;grid-row:1}table.record-cards>tbody>tr>.record-amount{grid-column:3/5;grid-row:1}table.record-cards>tbody>tr>.record-summary{grid-column:5/7;grid-row:1}
table.record-cards .record-title{font-weight:700;color:var(--record-green)}table.record-cards .record-amount{border-inline:1px solid var(--record-line);padding-inline:12px}
table.record-cards .record-summary{font-size:19px;font-weight:700;color:var(--record-green)}
table.record-cards input,table.record-cards select,table.record-cards textarea{min-width:0!important;width:100%!important;min-height:44px;font-size:16px;border-color:var(--record-line);border-radius:10px;background:#fcfdfe;padding:9px 10px}
table.record-cards input:disabled,table.record-cards select:disabled{opacity:1;color:var(--record-ink);-webkit-text-fill-color:var(--record-ink)}
table.record-cards .record-title input:disabled{border:0;background:transparent;padding:0;min-height:28px;color:var(--record-green);-webkit-text-fill-color:var(--record-green);font-size:20px;font-weight:700}
table.record-cards .record-title:has(.record-name-value)>input:disabled,table.record-cards .record-title:has(.record-name-value)>select:disabled{display:none}
.record-name-value{font-size:20px;line-height:1.5;font-weight:700;white-space:normal;overflow-wrap:anywhere;color:var(--record-green)}
table.record-cards td:has(.record-date-value)>input[type=date]:disabled{display:none}.record-date-value{font-size:14px;font-weight:500;line-height:1.5;white-space:normal;overflow-wrap:anywhere;color:var(--record-ink)}
table.record-cards .record-amount input:disabled{border:0;background:transparent;padding:0;min-height:28px;font-size:19px;font-weight:700}
table.record-cards>tbody>tr>.record-actions{grid-column:1/-1;border-top:1px solid var(--record-line);padding-top:12px;display:flex;flex-direction:row;gap:8px}
table.record-cards>tbody>tr>td:not(.record-title):not(.record-amount):not(.record-summary):not(.record-actions):not([colspan]){grid-column:span 3}
table.record-cards .row-actions{display:flex;gap:8px;flex-wrap:wrap}table.record-cards td:has(button) button{font-size:14px;min-height:40px;border-radius:9px}
table.record-cards td[colspan],table.material-cards td[colspan]{grid-column:1/-1!important;display:block!important;padding:14px!important;text-align:center}table.record-cards td[colspan]::before,table.material-cards td[colspan]::before{display:none!important}
#costs .cost-group-body{background:#f5f7f7;padding:18px}.cost-section-toolbar{align-items:center;gap:16px;margin-bottom:16px}.cost-section-toolbar p{font-size:14px;color:var(--record-muted)}
#costs .recipe-grid{gap:12px}#costs .recipe-card{background:white;border-color:var(--record-line);border-radius:14px;padding:16px;gap:10px}#costs .recipe-card>b{font-size:18px;font-weight:700;color:var(--record-green);white-space:normal;overflow-wrap:anywhere}#costs .recipe-card small{font-size:13px;color:var(--record-muted)}#costs .recipe-card .recipe-cost{font-size:15px;color:var(--record-ink)}
.fleet-content{color:var(--record-ink)}.fleet-content .os-card{border-color:var(--record-line);border-radius:18px;background:#f7f9f8;padding:18px}
.fleet-record{border:1px solid var(--record-line);background:#fff;padding:16px;border-radius:14px;margin-bottom:12px;gap:16px}.fleet-record b{color:var(--record-green);font-size:19px}.fleet-record small{font-size:14px;line-height:1.7;color:var(--record-muted)}
.fleet-form-dialog{color:var(--record-ink)}.fleet-form-dialog .fleet-fields{gap:16px}.fleet-form-dialog label{font-size:14px;color:var(--record-muted)}.fleet-form-dialog input,.fleet-form-dialog select{border-color:var(--record-line);background:#fff}
.hr-debt-row{background:#fff;border:1px solid var(--record-line);border-radius:12px;padding:12px;margin-bottom:10px}.hr-debt-row>[data-amount]{color:var(--record-green)}
@media(min-width:900px){.inventory-materials-shell{width:calc(100% - 24px)}}
@media(max-width:760px){
 .inventory-reference-panel,.inventory-category-card{padding:14px;border-radius:16px}.inventory-materials-head{display:flex!important;margin-bottom:14px;gap:12px}.inventory-materials-head>div{min-width:0;width:auto}
 .inventory-materials-head h2{font-size:23px}.inventory-materials-head p{font-size:13px;line-height:1.5}.inventory-heading-icon{width:44px;height:44px;flex-basis:44px;border-radius:12px}.inventory-heading-icon svg{width:28px;height:28px}
 .inventory-filters{padding:12px;gap:12px}.inventory-filters>label,.inventory-filters>label:first-child{font-size:13px}.inventory-filters input,.inventory-filters select{font-size:14px;height:44px;padding:8px 9px}.material-search-field input{padding-inline-end:31px}.material-search-field svg{width:17px;inset-inline-end:9px}
 .inventory-category-head{gap:9px;flex-wrap:wrap;margin-bottom:14px}.inventory-category-head h2{font-size:21px}.inventory-category-head small{font-size:12px}.material-category-icon{width:42px;height:42px;flex-basis:42px}.material-category-icon svg{width:28px;height:28px}
 .material-category-actions button{font-size:13px;min-height:42px;padding:8px 12px}.material-add>span{font-size:25px}
 table.material-cards>tbody>tr{padding:12px;gap:12px 8px;border-radius:12px}table.material-cards td[data-label]::before{font-size:11px}
 table.material-cards .inventory-material-button{font-size:16px!important}table.material-cards>tbody>tr>.material-stock{font-size:16px;padding-inline:6px}table.material-cards>tbody>tr>.material-average{font-size:12px}
 table.material-cards>tbody>tr>.material-name{padding-inline-start:14px}table.material-cards>tbody>tr>.material-row-actions{inset-inline-start:4px;top:12px}.material-more>summary{width:22px;font-size:27px}
 table.material-cards .material-purchase::before,table.material-cards .material-usage::before{font-size:10px;padding:6px}.material-stock small{font-size:10px}
 table.material-cards .material-purchase select,table.material-cards .material-usage select{font-size:12px;padding:7px 4px;height:44px;min-height:44px}
 table.material-cards .material-editing>.material-name{padding-inline-start:0}
 table.record-cards>tbody>tr{padding:14px;gap:12px 10px}table.record-cards>tbody>tr>td{font-size:14px}table.record-cards td[data-label]::before{font-size:12px}
 table.record-cards .record-title input:disabled,.record-name-value{font-size:16px}table.record-cards .record-amount input:disabled{font-size:16px}table.record-cards .record-summary{font-size:16px}
 table.record-cards input,table.record-cards select{font-size:14px;padding:8px}.cost-section-toolbar{flex-wrap:wrap}#costs .cost-group-body{padding:12px}
 .fleet-record{padding:13px}.fleet-record b{font-size:17px}.fleet-record small{font-size:12px}
}
@media(max-width:360px){
 .inventory-reference-panel,.inventory-category-card{padding:11px}.inventory-category-head h2{font-size:19px}.inventory-category-head small{font-size:11px}.material-category-actions{margin-inline-start:auto}.material-category-icon{width:36px;height:36px;flex-basis:36px}
 table.material-cards .inventory-material-button{font-size:14px!important}table.material-cards>tbody>tr>.material-stock{font-size:14px}table.material-cards>tbody>tr>.material-average{font-size:11px}
 table.material-cards td[data-label]::before{font-size:10px}.inventory-filters{gap:10px;padding:10px}.inventory-filters>label{font-size:12px!important}
 table.record-cards>tbody>tr>.record-title{grid-column:1/4!important}table.record-cards>tbody>tr>.record-amount{grid-column:4/7!important}table.record-cards>tbody>tr>.record-summary{grid-column:1/-1!important;grid-row:2}
}
