/* R11: individual layouts at phone scale, not a generic table reshuffle. */
#costs{max-width:1100px;margin-inline:auto;color:var(--record-ink)}
#costs .costs-intro{display:block;padding:20px;text-align:center;border:1px solid #e8e5df;border-radius:20px;background:#fff;box-shadow:none;cursor:default}
.costs-intro h2{font-size:21px;margin:0 0 6px;color:#202633}.costs-intro #totalDailyCost{display:block;color:#b21e47;font-size:34px;line-height:1.5}
#dailyCostSummary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:12px}
.daily-cost-tile{display:grid;justify-items:center;align-content:start;gap:5px;background:#fdf7f7;border-radius:14px;padding:10px 4px;min-width:0;font-size:14px;color:#202633}.daily-cost-tile b{font-size:20px;color:#b21e47;overflow-wrap:anywhere}.daily-cost-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#fbeaec;color:#b21e47}.daily-cost-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#costs .cost-group{border-radius:19px;border-color:#e8e5df}#costs .cost-group-head{padding:20px;min-height:90px}#costs .cost-group-title b{font-size:21px;line-height:1.5}#costs .cost-group-title small{font-size:14px;line-height:1.6}#costs .cost-chevron{background:#f4f5f6;border:0;border-radius:50%;width:38px;height:38px;display:grid;place-items:center;flex:0 0 38px}#costs .cost-group-body{padding:16px;background:#f5f8f9}
#costs .table-wrap:has(.cost-record-list){border:0;background:transparent;overflow:visible;border-radius:0}#costs .cost-section-toolbar{margin-bottom:16px;gap:14px}#costs .cost-section-toolbar p{margin:0;line-height:1.6;font-size:14px}#costs .cost-section-toolbar button{font-size:16px;border-radius:12px;padding:12px 20px;min-height:44px}
.cost-record-list{display:grid;gap:14px;min-width:0}.cost-record{position:relative;display:grid;gap:12px;min-width:0;padding:18px;border:1px solid var(--record-line);border-radius:17px;background:#fff;box-shadow:0 3px 15px #17213e04;color:var(--record-ink)}
.cost-record .cr-name{font-size:21px;color:#00886e;margin:0;padding-inline-end:30px;line-height:1.5;overflow-wrap:anywhere}.cr-material-label{font-size:13px;color:var(--record-muted);margin-bottom:-9px;padding-inline-end:30px}.cr-grid{display:grid;gap:10px;min-width:0}.cr-two{grid-template-columns:repeat(2,minmax(0,1fr))}.cr-three{grid-template-columns:repeat(3,minmax(0,1fr))}.cr-bill{grid-template-columns:minmax(0,1.65fr) minmax(0,.85fr) minmax(0,1fr);padding-top:30px}
.cr-field,.cr-tile{display:flex;flex-direction:column;gap:5px;min-width:0;margin:0!important;font-size:14px;color:#7b8298;line-height:1.4}.cr-field>span,.cr-tile>span{min-width:0;overflow-wrap:break-word;font-weight:400}.cr-tile b{font-size:18px;font-weight:600;color:var(--record-ink);overflow-wrap:anywhere}.cr-tile.cr-green b{color:#008b70}.cr-value{color:var(--record-ink)!important;display:block;padding:9px}
.cost-record input,.cost-record select,.cost-record textarea{height:44px;min-height:44px;min-width:0;width:100%!important;font:inherit;font-size:16px;padding:8px 10px;border:1px solid #dfe4ed;border-radius:10px;background:#fcfdff;color:var(--record-ink);margin:0;box-sizing:border-box}
.cost-record textarea{height:auto;resize:vertical}.cost-record input:disabled,.cost-record select:disabled{opacity:1;-webkit-text-fill-color:var(--record-ink);color:var(--record-ink)}.cost-record input:disabled:not([type=date]){border:0;background:transparent;padding:0;min-height:28px;height:28px;font-weight:600;font-size:18px}.cost-record [hidden]{display:none!important}
.cr-highlights>.cr-field,.cr-highlights>.cr-tile{background:#f1f6f8;border-radius:10px;padding:9px 12px;justify-content:center}.cr-highlights .cr-tile b,.cr-highlights input:disabled{font-size:20px!important}.cr-highlights>.cr-tile{text-align:center}.cr-lined{border:1px solid var(--record-line);border-radius:12px;gap:0}.cr-lined>.cr-field{padding:10px;text-align:center}.cr-lined>.cr-field+*{border-inline-start:1px solid var(--record-line)}.cr-lined select:disabled{border:0;background:transparent;padding:0;min-height:28px;height:28px}.cr-date{font-size:15px;font-weight:600;color:var(--record-ink);min-height:28px;display:flex;align-items:center;justify-content:center;white-space:nowrap}
.cr-staff-footer{border-top:1px solid var(--record-line);padding-top:12px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;align-items:stretch}.cr-staff-footer>button{font-size:14px;padding:8px 5px;min-width:0;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:4px;min-height:48px}.cr-staff-footer>.cr-tile{padding:7px 4px;background:#eef4f7;border-radius:10px;text-align:center;font-size:12px}.cr-staff-footer svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}
.cr-period{border-top:1px solid var(--record-line);padding-top:12px;display:grid;gap:12px}.cr-period>b{font-size:14px;color:var(--record-muted)}.cr-period>.cr-tile{align-items:flex-end}.cr-period .cr-date{justify-content:flex-start}.cr-boxes>.cr-tile,.cr-source>.cr-tile{border:1px solid var(--record-line);border-radius:10px;padding:9px;background:#fcfdff;justify-content:space-between}.cr-boxes .cr-tile b{font-size:15px;line-height:1.7}.cr-info{display:flex;align-items:center;gap:8px;border:1px solid #cbdfff;border-radius:10px;background:#edf4ff;color:#0864c6;padding:10px;font-size:12px;line-height:1.6}
.cr-note-link{display:block;width:max-content;max-width:100%;border:0;background:transparent;color:#006bff;text-decoration:underline;font-size:16px;padding:2px 0;min-height:36px}.cr-note-link:hover{background:transparent;color:#004bc7}
.cr-menu{position:absolute;inset-inline-end:12px;top:10px;z-index:3}.cr-menu>summary{list-style:none;width:30px;min-height:36px;display:grid;place-items:center;font:28px/1 Arial;cursor:pointer;color:var(--record-ink);border-radius:9px}.cr-menu summary::-webkit-details-marker{display:none}.cr-menu summary::after{display:none!important}.cr-menu[open]{z-index:12}.cr-menu[open]>summary{background:#f1f4f7}.cr-menu>div{position:absolute;inset-inline-end:0;top:38px;display:grid;gap:5px;min-width:140px;padding:7px;background:white;border:1px solid var(--record-line);border-radius:11px;box-shadow:0 8px 24px #17213e20}.cr-menu button{font-size:14px;min-height:40px;width:100%;padding:7px 12px;text-align:start;border-radius:7px}.cr-menu .secondary{background:#f4f6f8;color:var(--record-ink)}.cr-menu .danger{background:white;color:#c82943}.cr-editing{border-color:#e9bc29}.cr-editing .cr-menu{top:8px}.cr-name-edit{padding-inline-end:35px}.cr-editing .cr-grid input{font-size:15px}
.cr-note-dialog{border:0;border-radius:22px 22px 0 0;position:fixed;inset:auto 0 0;margin:0 auto;padding:14px 20px 24px;width:min(100%,650px);max-height:70dvh;box-sizing:border-box;color:var(--record-ink);box-shadow:0 -10px 40px #17213e20}.cr-note-dialog::backdrop{background:#0006}.sheet-handle{width:45px;height:5px;background:#cdd1d9;border-radius:8px;margin:0 auto 16px}.cr-note-dialog header{display:flex;align-items:center;justify-content:space-between}.cr-note-dialog header h3{font-size:22px;margin:0}.cr-note-dialog header button{background:transparent;padding:4px;font-size:30px;min-width:40px}.cr-note-dialog p{white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f8fa;padding:16px;border-radius:12px;font-size:16px;line-height:1.8}
.cr-editing .cr-menu{position:static;justify-self:end;grid-row:1}.cr-editing .cr-menu>summary{display:none}.cr-editing .cr-menu>div{position:static;display:flex;min-width:0;padding:0;border:0;box-shadow:none}.cr-editing .cr-menu button{min-width:74px;text-align:center}.cr-editing .cr-bill{padding-top:0}
/* Inventory: reserve a menu gutter, and scale labels for the actual phone width. */
@media(max-width:760px){
 #costs .costs-intro{padding:14px}.costs-intro h2{font-size:17px}.costs-intro #totalDailyCost{font-size:28px}#dailyCostSummary{gap:5px}.daily-cost-tile{font-size:11px;padding:9px 2px;border-radius:10px}.daily-cost-tile b{font-size:15px}.daily-cost-icon{width:32px;height:32px}.daily-cost-icon svg{width:20px;height:20px}
 #costs .cost-group-head{padding:16px 12px;min-height:82px}#costs .cost-group-title b{font-size:18px}#costs .cost-group-title small{font-size:12px}#costs .cost-group-body{padding:10px}#costs .cost-section-toolbar p{font-size:12px}#costs .cost-section-toolbar button{font-size:14px;padding:9px 14px}.cost-record{padding:13px;gap:11px;border-radius:14px}.cost-record .cr-name{font-size:18px}.cr-field,.cr-tile{font-size:11px}.cost-record input,.cost-record select{font-size:13px;padding:7px}.cost-record input:disabled:not([type=date]){font-size:16px}.cr-highlights .cr-tile b,.cr-highlights input:disabled{font-size:17px!important}.cr-tile b{font-size:16px}.cr-date{font-size:12px}.cr-grid{gap:7px}.cr-lined>.cr-field{padding:8px 5px}.cr-staff-footer>button{font-size:11px}.cr-staff-footer>.cr-tile{font-size:10px}.cr-staff-footer>.cr-tile b{font-size:14px}.cr-staff-footer svg{width:15px;height:15px}.cr-staff-footer{gap:6px}.cr-boxes>.cr-tile{padding:7px}.cr-boxes .cr-tile b{font-size:12px}.cr-info{padding:7px;font-size:10px}.cr-material-label{font-size:11px}.cr-note-link{font-size:14px}
 .inventory-reference-panel,.inventory-category-card{padding:12px}.inventory-category-head{flex-wrap:nowrap;gap:8px;align-items:center}.inventory-category-head h2{font-size:18px}.inventory-category-head small{font-size:10px;line-height:1.5}.material-category-icon{width:34px;height:34px;flex-basis:34px}.material-category-icon svg{width:23px;height:23px}.material-category-actions button{font-size:12px;padding:7px 9px;min-height:38px}.material-add>span{font-size:22px}.inventory-materials-head h2{font-size:21px}
 table.material-cards>tbody>tr{padding:10px 8px;gap:9px 5px;grid-template-columns:repeat(2,minmax(0,1.25fr)) repeat(2,minmax(0,.85fr)) repeat(2,minmax(0,1.15fr))}
 table.material-cards>tbody>tr>.material-name{padding-inline-start:13px}table.material-cards td[data-label]::before{font-size:9.5px;white-space:nowrap}table.material-cards .inventory-material-button{font-size:13px!important;line-height:1.5;overflow-wrap:normal}table.material-cards>tbody>tr>.material-average{font-size:9.5px;line-height:1.7;justify-content:flex-start}table.material-cards>tbody>tr>.material-stock{font-size:14px;padding-inline:4px}.material-stock small{font-size:8px}
 table.material-cards .material-purchase::before,table.material-cards .material-usage::before{font-size:9px;white-space:nowrap;padding:5px;flex:0 0 auto}table.material-cards .material-purchase select,table.material-cards .material-usage select{font-size:11px;width:auto!important;flex:1 1 0;height:38px;min-height:38px;padding:5px 2px}table.material-cards>tbody>tr>.material-purchase,table.material-cards>tbody>tr>.material-usage{min-height:38px;border-radius:8px}
 table.material-cards>tbody>tr>.material-row-actions{inset-inline-start:1px;top:10px}.material-more>summary{width:20px;min-height:30px;font-size:23px}table.material-cards .material-editing>.material-name{padding-inline-start:17px}table.material-cards>tbody>.material-editing>.material-row-actions{position:absolute;inset-inline-start:1px;top:10px;width:20px;grid-column:auto;grid-row:auto}.material-editing .material-more>div{width:130px}.inventory-name-edit input{font-size:12px!important}
}
@media(max-width:360px){.cost-record{padding:11px}.cr-staff-footer>button{font-size:10px}.cr-staff-footer svg{display:none}.cr-grid{gap:5px}.cr-field,.cr-tile{font-size:10px}.cost-record select{font-size:12px;padding-inline:4px}.cr-date{font-size:10px}.daily-cost-tile{font-size:9px}.daily-cost-tile b{font-size:13px}table.material-cards .inventory-material-button{font-size:11px!important}table.material-cards>tbody>tr>.material-average{font-size:8px}table.material-cards td[data-label]::before{font-size:8px}table.material-cards .material-purchase::before,table.material-cards .material-usage::before{font-size:8px;padding:4px}table.material-cards .material-purchase select,table.material-cards .material-usage select{font-size:10px}}
/* Vehicle list and editing sheet mirror the separate supplied references. */
.fleet-studio .os-head{flex-direction:row-reverse;padding:18px 20px}.fleet-studio .os-head h2{text-align:start;font-size:24px}.fleet-studio .os-head>span{display:none}
.fleet-content{gap:18px;padding:20px}.fleet-content>.os-card{margin:0;background:white;padding:18px;border-radius:18px}.fleet-content>.os-card[data-list]{background:transparent;border:0;padding:0;display:grid;gap:14px}.fleet-content>[data-error]:empty{display:none}.fleet-tabs{display:grid;grid-template-columns:1fr .8fr 1.2fr;gap:10px;margin:0}.fleet-tabs button{min-width:0;font-size:18px;font-weight:700;padding:14px 6px!important;border-radius:14px!important;white-space:nowrap}.fleet-content [data-actions]{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.fleet-content [data-actions] p{font-size:13px;color:var(--record-muted);margin:0;line-height:1.6}.fleet-content [data-actions] button{font-size:17px;font-weight:700}.fleet-content h3{font-size:21px;margin:0 0 16px}
.fleet-car-card,.fleet-expense-card,.fleet-cost-card{position:relative;padding:18px;border:1px solid var(--record-line);border-radius:17px;background:white;box-shadow:0 3px 15px #17213e04;min-width:0}.fleet-car-card>h3,.fleet-expense-card>h3{font-size:23px;color:#008b70;padding-inline-end:32px;overflow-wrap:anywhere}.fleet-car-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}.fleet-car-three{grid-template-columns:1fr 1fr 1fr}.fleet-car-meta>div{display:flex;gap:8px;align-items:center;justify-content:space-between;min-width:0;padding:9px 10px;border:1px solid var(--record-line);background:#fafbfd;border-radius:10px}.fleet-car-meta span{font-size:12px;color:var(--record-muted)}.fleet-car-meta b{font-size:15px;font-weight:500;overflow-wrap:anywhere}.fleet-car-three>div{flex-wrap:wrap}.fleet-car-meta .fleet-active{color:#008c70}.fleet-car-meta .fleet-inactive{color:#c73b50}.fleet-oil-warning{background:#fff2d9;color:#9a6100;border-radius:8px;padding:8px;font-size:13px}.fleet-oil-next{display:block;color:var(--record-muted);margin-top:10px}.fleet-expense-card>small{display:block;color:var(--record-muted);margin-top:12px}.fleet-expense-card .cr-tile b{font-size:15px}
.fleet-cost-card{margin-bottom:12px}.fleet-total-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:0;min-width:0}.fleet-total-grid>div{display:flex;flex-direction:column;gap:8px;align-items:center;min-width:0;padding:8px 6px}.fleet-total-grid>div+div{border-inline-start:1px solid var(--record-line)}.fleet-total-grid span{color:var(--record-muted);font-size:14px;text-align:center}.fleet-total-grid b{font-size:20px;color:var(--record-ink);font-weight:600;overflow-wrap:anywhere}.fleet-total-grid>div:first-child b,.fleet-total-grid .cr-green b{color:#008b70}.fleet-total-grid small{font-size:14px;color:var(--record-muted)}.fleet-history{margin-top:12px}.fleet-history summary{display:flex;align-items:center;justify-content:space-between;list-style:none;padding:12px;background:#f6f8fb;border:1px solid var(--record-line);border-radius:11px;cursor:pointer;font-size:15px}.fleet-history summary::-webkit-details-marker{display:none}.fleet-history summary::after{display:none}.fleet-history summary span{font-size:22px}.fleet-history[open] summary span{transform:rotate(180deg)}.fleet-history>div>div{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--record-line);padding:12px 4px;font-size:14px}.fleet-history small{display:block;color:var(--record-muted);font-size:12px;margin-top:4px}
.fleet-reference-form{position:fixed;inset:auto 0 0;margin:0 auto;border-radius:24px 24px 0 0;border:0;width:min(700px,100%);max-width:100vw;padding:16px 20px 24px;max-height:94dvh;overflow:auto}.fleet-reference-form::before{content:'';display:block;margin:0 auto 18px;background:#cdd1d9;border-radius:8px;width:45px;height:5px}.fleet-reference-form header{margin-bottom:20px}.fleet-reference-form h3{font-size:24px}.fleet-reference-form .fleet-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.fleet-reference-form .fleet-fields label{font-size:14px}.fleet-reference-form input,.fleet-reference-form select{min-height:46px;font-size:16px;padding:10px}.fleet-reference-form .fleet-name-field{grid-column:1/-1;display:grid;grid-template-columns:120px minmax(0,1fr);align-items:center;gap:10px}.fleet-reference-form form>button[type=submit]{width:100%;font-size:22px;font-weight:700;min-height:52px;border-radius:13px}
@media(max-width:760px){.fleet-studio .os-head{padding:14px}.fleet-studio .os-head h2{font-size:21px}.fleet-content{padding:14px;gap:16px}.fleet-tabs{gap:8px}.fleet-tabs button{font-size:14px;padding:12px 4px!important;min-height:48px}.fleet-content [data-actions] button{font-size:15px}.fleet-car-card,.fleet-expense-card,.fleet-cost-card{padding:14px}.fleet-car-card>h3,.fleet-expense-card>h3{font-size:20px}.fleet-car-meta span{font-size:10px}.fleet-car-meta b{font-size:13px}.fleet-car-meta>div{padding:8px 7px;gap:5px}.fleet-content>.os-card{padding:12px}.fleet-content h3{font-size:18px}.fleet-total-grid span{font-size:10px}.fleet-total-grid b{font-size:15px}.fleet-total-grid small{font-size:11px}.fleet-total-grid>div{padding:7px 3px;gap:7px}.fleet-history summary{font-size:13px;padding:10px}.fleet-history>div>div{font-size:12px}.fleet-reference-form{padding:14px 16px 24px}.fleet-reference-form .fleet-fields{gap:12px}.fleet-reference-form .fleet-fields label{font-size:12px}.fleet-reference-form input,.fleet-reference-form select{min-height:44px;font-size:14px}.fleet-reference-form .fleet-name-field{grid-template-columns:90px minmax(0,1fr)}.fleet-reference-form header{margin-bottom:16px}.fleet-reference-form h3{font-size:22px}.fleet-reference-form form>button[type=submit]{font-size:20px}}
