/* R12 draft controls always sit above, never inside, the bottom navigation. */
.record-save-bar{position:fixed;z-index:90;left:50%;transform:translateX(-50%);bottom:calc(86px + env(safe-area-inset-bottom,0px));width:min(580px,calc(100% - 24px));background:white;padding:8px;border:1px solid #e3e6eb;border-radius:15px;box-shadow:0 6px 28px #13203d28;box-sizing:border-box}
.record-save-bar[hidden]{display:none}.record-save-bar>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.record-save-bar button{min-height:46px;border:0;border-radius:10px;color:#fff;font-size:16px;font-weight:700}.record-save-bar [data-save],.unsaved-record-dialog [data-save]{background:#138661;color:white}.record-save-bar [data-cancel],.unsaved-record-dialog [data-discard]{background:#c73549;color:#fff}.record-save-bar [data-error]{color:#ad253d;font-size:13px;line-height:1.6;margin:0 4px 6px;white-space:pre-wrap}.record-save-bar [data-error]:empty{display:none}.record-save-bar button:disabled{opacity:.6;cursor:wait}.has-record-save-bar .main{padding-bottom:190px!important}
.unsaved-record-dialog{width:min(430px,calc(100vw - 32px));max-height:90dvh;box-sizing:border-box;overflow:auto;border:1px solid #e4e7ec;border-radius:22px;padding:26px;background:#fff;color:#17213e;text-align:center;box-shadow:0 12px 50px #15203622}.unsaved-record-dialog::backdrop{background:#10182670;backdrop-filter:blur(3px)}.unsaved-record-dialog h2{font-size:22px;margin:16px 0 8px}.unsaved-record-dialog p{font-size:15px;line-height:1.7;color:#7b8298;margin:0 0 18px}.unsaved-record-dialog>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}.unsaved-record-dialog button{font-size:16px;min-height:46px;border-radius:11px;border:0}.unsaved-record-dialog [data-error]{color:#b12e43;white-space:pre-wrap}.unsaved-record-dialog [data-error]:empty{display:none}.unsaved-icon{display:grid;place-items:center;background:#fff2cf;color:#ae7b12;border-radius:50%;width:54px;height:54px;margin:auto}.unsaved-icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
html[dir=rtl] .mobile-bottom-nav{direction:rtl}html[dir=ltr] .mobile-bottom-nav{direction:ltr}
html[dir=rtl] .side{left:auto;right:0;transform:translateX(105%);box-shadow:-12px 0 36px #0002}html[dir=ltr] .side{right:auto;left:0;transform:translateX(-105%);box-shadow:12px 0 36px #0002}html[dir] .side.open{transform:translateX(0)}
#inventory .inventory-create-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px}#inventory .inventory-create-row>label{min-width:0;font-size:13px}#inventory .inventory-create-row input,#inventory .inventory-create-row select{width:100%;min-width:0;font-size:14px}#inventory .inventory-create-row>.inventory-category-field{grid-column:1/-1}#inventory .inventory-create-row>button{grid-column:1/-1}
table.material-cards>tbody>tr:not(.material-editing)>.material-purchase,table.material-cards>tbody>tr:not(.material-editing)>.material-usage,table.material-cards>tbody>tr:not(.material-editing)>.material-category{display:none!important}
table.material-cards>tbody>tr:not(.material-editing){gap:0;padding-block:13px;min-height:68px}table.material-cards>tbody>tr>.material-name{padding-inline-start:28px!important}table.material-cards>tbody>tr>.material-row-actions{inset-inline-start:2px;top:12px}.material-more>summary{width:26px;min-height:36px}.material-more>div{min-width:160px}
table.material-cards>tbody>tr{grid-template-columns:repeat(2,minmax(0,1.45fr)) repeat(2,minmax(0,.9fr)) repeat(2,minmax(0,1fr))}
table.material-cards>tbody>.material-editing>.material-row-actions{display:none}table.material-cards .material-editing>.material-name{padding-inline-start:0!important}.material-edit-note,.inventory-category-actions{display:none!important}
.material-category-icon.material-icon-food{background:#f3e5d2;color:#9e7447}.material-category-icon.material-icon-drinks{background:#e0f4fc;color:#228dac}.material-category-icon.material-icon-bakery{background:#fff0c3;color:#d49a17}.material-category-icon.material-icon-misc{background:#fff0c3;color:#ba8d22}.material-category-icon svg{stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.cost-record.cr-editing>.cr-menu{display:none}.cost-record .cr-name-edit{padding-inline-end:0}.cr-editing .cr-bill{padding-top:0}
input[type=number]{text-align:center!important;direction:ltr;appearance:textfield}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.cost-record .cr-tile,.cost-record .cr-value,.cost-record .cr-field:has(input[type=number]){text-align:center}.cr-period>.cr-tile{align-items:center}.cr-date{justify-content:center!important}.fleet-expense-card .cr-tile,.fleet-car-meta>div:has(b){text-align:center}.fleet-fields input[type=number]{text-align:center}
.fleet-history-chevron{display:block;width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}.fleet-history[open] .fleet-history-chevron{transform:rotate(180deg)}
.cr-note-dialog{inset:0;margin:auto;width:min(540px,calc(100vw - 32px));height:fit-content;max-height:80dvh;border-radius:22px;padding:24px}.cr-note-dialog .sheet-handle{display:none}.cr-note-dialog h3{font-size:21px}
@media(max-width:760px){.record-save-bar{bottom:calc(76px + env(safe-area-inset-bottom,0px))}.inventory-category-head small{font-size:11px}table.material-cards>tbody>tr>.material-name{padding-inline-start:22px!important}table.material-cards>tbody>tr>.material-row-actions{inset-inline-start:0;top:11px}.material-more>summary{width:24px}table.material-cards .material-editing>.material-name{padding-inline-start:0!important}.inventory-name-edit input{min-height:42px}.unsaved-record-dialog{padding:22px}.unsaved-record-dialog h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){.fleet-history-chevron{transition:none}}
