/* Admin presentation only. Apple HIG is the reference, not a shipped Apple asset.
   Web sizes are CSS pixels/rem; they are not a claim of native UIKit metrics. */
:root {
 --ios-bg:#f2f2f7;--ios-surface:#fff;--ios-fill:#f2f3f5;--ios-ink:#1c1c1e;
 --ios-secondary:#636366;--ios-separator:#e5e5ea;--ios-accent:#ad2346;
 --ios-tint:#f9eaf0;--ios-green:#147d55;--ios-red:#bf263b;
 --ios-radius:20px;--ios-control:12px;--ios-fast:160ms;--ios-duration:260ms;
 --ios-ease:cubic-bezier(.2,.8,.2,1);--ios-nav-height:70px;
 --bg:var(--ios-bg);--surface:var(--ios-surface);--surface-soft:var(--ios-fill);
 --text:var(--ios-ink);--muted:var(--ios-secondary);--line:var(--ios-separator);
 --record-ink:var(--ios-ink);--record-muted:var(--ios-secondary);--record-line:var(--ios-separator);
 --red:var(--ios-accent);--red-soft:var(--ios-tint);--green:var(--ios-green);
 --font:-apple-system,BlinkMacSystemFont,'Segoe UI',PBAdmin,Arial,sans-serif;
 --nav-clearance:calc(112px + env(safe-area-inset-bottom,0px));
}
html{scroll-padding-block:24px 130px;-webkit-text-size-adjust:100%}
body,body:has(#inventory.active),body:has(#costs.active){background:var(--ios-bg);color:var(--ios-ink);font-family:var(--font);font-size:1rem;line-height:1.55}
html[lang=ar] body{font-family:-apple-system,BlinkMacSystemFont,PBAdmin,'Segoe UI',Arial,sans-serif}
*,*::before,*::after{box-sizing:border-box}
button,input,select,textarea{font-family:inherit}
button,summary,a,input,select,textarea{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
button{min-height:44px;border-radius:var(--ios-control);font-size:.9375rem;font-weight:600;line-height:1.4;padding:10px 16px;box-shadow:none;transition:background var(--ios-fast),opacity var(--ios-fast),transform var(--ios-fast) var(--ios-ease)}
button:not(:disabled):active{opacity:.76;transform:scale(.98)}
button:disabled{cursor:default;opacity:.48}
button.secondary{background:var(--ios-fill);color:var(--ios-ink);border:1px solid transparent}
button.danger,.ce-danger{background:#fff0f2;color:var(--ios-red);border-color:transparent}
.archive-actions [data-zero]{background:#fff0f2;color:var(--ios-red);border:1px solid #f4c9d0}
button.ok{background:var(--ios-green);color:#fff;border-color:transparent}
button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #af234688;outline-offset:3px}
input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea{min-height:46px;border-radius:var(--ios-control);border:1px solid var(--ios-separator);background:#f8f8fa;color:var(--ios-ink);font-size:1rem;padding:10px 12px;box-shadow:none;max-width:100%}
input:focus,select:focus,textarea:focus{border-color:var(--ios-accent);background:#fff}
input[type=number],input[type=date],input[type=time],input[inputmode=numeric],input[inputmode=decimal]{text-align:center!important;font-variant-numeric:tabular-nums}
input::placeholder,textarea::placeholder{color:#76767b;opacity:1}
label{color:var(--ios-secondary);font-size:.8125rem;font-weight:500;line-height:1.5;min-width:0}
h1,h2,h3,h4{color:var(--ios-ink);letter-spacing:0;line-height:1.4;text-wrap:balance}
.page-heading h1{font-size:1.875rem;line-height:1.3;font-weight:750}.page-heading p{font-size:.9375rem;color:var(--ios-secondary)}
.page-heading{padding-block:4px 16px;margin:0}.main{padding-inline:24px;padding-bottom:var(--nav-clearance)}
.shell{max-width:1200px;padding-bottom:0}.section.active{gap:16px}
.card,.inventory-reference-panel,.inventory-category-card,.menu-category-card,.cost-record,.fleet-car-card,.fleet-cost-card,.fleet-expense-card{background:var(--ios-surface);border:1px solid #e8e8ed;border-radius:var(--ios-radius);box-shadow:0 2px 8px #11111b03;color:var(--ios-ink)}
.card{padding:20px}.grid,.toolbar,.message-grid,.form-grid{gap:16px}.toolbar{align-items:end}
.topbar{background:#fafafce8;border-bottom:1px solid var(--ios-separator);min-height:88px;padding:14px 24px;margin-inline:-24px;margin-bottom:18px}
.overview-topbar-logo{max-height:42px}.topbar-notification-button{background:var(--ios-surface);border:1px solid var(--ios-separator);border-radius:50%;color:var(--ios-ink);width:44px;height:44px;display:grid;place-items:center}
.topbar-notification-button svg{width:24px;height:24px}.overview-scope{max-width:29%;width:190px}.overview-scope select{font-size:.875rem;background:#fff;border-radius:14px}
#app small{font-size:.8125rem;line-height:1.5}
.branch-status-card .pill,.branch-status-card .status-pill{font-size:.75rem;line-height:1.5}
.daily-cost-tile{font-size:.75rem;min-width:0;padding-inline:5px}.daily-cost-tile b{font-size:clamp(.75rem,3.7vw,1.125rem);white-space:nowrap;overflow-wrap:normal;word-break:normal;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.daily-cost-tile>span:not(.daily-cost-icon){font-size:.6875rem;line-height:1.5;min-height:2.7em;display:grid;place-items:center}.daily-cost-icon{width:34px;height:34px}.daily-cost-icon svg{width:22px;height:22px}
#customers .figma-customer-filter-grid label{font-size:.8125rem;display:grid;gap:8px}#customers .figma-customer-filter-grid select{font-size:.9375rem;min-height:46px}
.customer-figma-actions button,.customer-selection-toolbar button{font-size:.875rem;min-height:44px}.customer-figma-head>span,.customer-figma-foot{font-size:.8125rem}.customer-figma-stats b{font-size:1rem}
.customer-selection-circle{position:relative;width:44px;min-width:44px;height:44px;min-height:44px;background:transparent!important;box-shadow:none!important;border:0;border-radius:50%;display:grid;place-items:center}.customer-selection-circle::before{content:'';width:22px;height:22px;border:1.5px solid #929299;border-radius:50%}.customer-selection-circle.selected::before{background:var(--ios-accent);border-color:var(--ios-accent);box-shadow:inset 0 0 0 4px #fff}
.complaint-figma-head h3{font-size:1.0625rem}.complaint-status{font-size:.875rem;min-height:44px}.complaint-figma-meta,.complaint-figma-foot{font-size:.8125rem;flex-wrap:wrap}.complaint-figma-card p{font-size:.9375rem}.complaint-show-button{min-height:44px}
.metric,.metric-link{padding:18px 20px;min-height:112px;text-align:start;gap:10px}.metric span{font-size:.875rem;font-weight:500;color:var(--ios-secondary)}.metric b{font-size:1.75rem;font-weight:700;line-height:1.3;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.metric .reference-icon{width:34px;height:34px;background:var(--ios-tint);color:var(--ios-accent)}
.metric .reference-icon svg{width:20px;height:20px}
.reference-icon svg,.cost-icon svg,.inventory-tool-icon svg,.ios-symbol{fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.ios-symbol{width:24px;height:24px;display:block;flex:none}.ios-symbol [data-fill]{fill:currentColor;stroke:none}
.overview-accordion,.settings-accordion,.cost-group,.inventory-tool-details,.inventory-tool-launch{background:var(--ios-surface);border:1px solid var(--ios-separator);border-radius:18px;box-shadow:none;overflow:visible}
.overview-accordion>summary,.settings-accordion>summary,.cost-group-head,.inventory-tool-summary,.inventory-tool-launch{min-height:68px;padding:14px 18px;font-size:1rem;line-height:1.45;background:transparent;color:var(--ios-ink);gap:14px;text-align:start;position:relative}
.cost-group-title b,.inventory-tool-copy b{font-size:1rem;font-weight:650}.cost-group-title small,.inventory-tool-copy small{font-size:.8125rem;line-height:1.5;color:var(--ios-secondary)}
.cost-icon,.inventory-tool-icon,.reference-icon{border-radius:12px}.cost-icon{width:40px;height:40px;flex-basis:40px}.cost-icon svg{width:23px;height:23px}
.cost-group-body,.inventory-tool-body,.overview-accordion>.card,.settings-accordion>div{padding:20px;border-color:var(--ios-separator)}
.ios-disclosure-summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;min-height:44px}
.ios-disclosure-summary::-webkit-details-marker{display:none}
.ios-disclosure-summary::after{display:none!important;content:none!important}
.ios-disclosure{margin-inline-start:auto;display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;color:#79797f;transition:transform var(--ios-fast) var(--ios-ease)}
.ios-disclosure svg{width:18px;height:18px}.section-chevron{display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;background:transparent;border:0}
.section-chevron svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
details[open]>.ios-disclosure-summary>.ios-disclosure{transform:rotate(180deg)}
.cr-menu>summary,.material-more>summary{display:grid;place-items:center;min-width:44px;min-height:44px;width:44px;height:44px;border-radius:50%;background:var(--ios-fill);color:var(--ios-secondary);padding:0;list-style:none}
.cr-menu>summary svg,.material-more>summary svg{width:22px;height:22px}
.cr-menu>div,.material-more>div{padding:6px;background:#fffffffa;border:1px solid var(--ios-separator);border-radius:16px;box-shadow:0 8px 30px #0002;z-index:80;min-width:180px}
.cr-menu>div button,.material-more>div button{min-height:44px;text-align:start;font-size:.9375rem;border-radius:10px}
table.material-cards>tbody>tr>.material-name{padding-inline-start:48px!important}table.material-cards>tbody>tr>.material-row-actions{inset-inline-start:0;top:10px}
table.material-cards .material-editing>.material-name{padding-inline-start:0!important}
table.material-cards>tbody>tr:not(.material-editing){grid-template-columns:repeat(2,minmax(0,1.8fr)) repeat(2,minmax(0,.85fr)) repeat(2,minmax(0,1.1fr))}
table.material-cards>tbody>tr>.material-average{font-size:.75rem;line-height:1.5}table.material-cards td[data-label]::before{font-size:.75rem;line-height:1.5;white-space:normal}table.material-cards .inventory-material-button{font-size:.9375rem!important;min-height:44px;line-height:1.5}table.material-cards .material-stock small{font-size:.6875rem;line-height:1.5}
.inventory-tool-copy small{white-space:normal;overflow:visible;text-overflow:clip}
.inventory-materials-head h2,.inventory-category-head h2{font-size:1.375rem}.inventory-materials-head p,.inventory-category-head small{font-size:.875rem;line-height:1.5}
.inventory-filters{gap:16px;padding:16px;background:var(--ios-fill);border:0;box-shadow:none}.inventory-filters>label,.inventory-filters>label:first-child{font-size:.875rem}.inventory-filters input,.inventory-filters select{font-size:1rem;height:auto;min-height:46px;background:white}
.material-category-actions button{font-size:.9375rem;min-height:44px;padding:10px 14px}.material-add>span{font-size:24px}
.inventory-heading-icon,.material-category-icon{width:44px;height:44px;flex-basis:44px;border-radius:13px}.inventory-heading-icon svg,.material-category-icon svg{width:27px;height:27px}
table.material-cards>tbody>tr{padding:16px}.material-name-value{font-size:1rem;line-height:1.5}
.cost-record{padding:18px}.cr-title,.cr-name{font-size:1.125rem}.cr-tile,.cr-field{border-radius:12px}.cr-tile{background:var(--ios-fill)}.cr-tile>span,.cr-field>span{font-size:.8125rem;color:var(--ios-secondary)}.cr-tile b,.cr-value{font-variant-numeric:tabular-nums}
.cr-note-link{color:#0069cc;text-decoration:none;font-size:.9375rem;min-height:44px;padding-block:10px}.cr-note-link:focus-visible{text-decoration:underline}
.cr-section-toolbar button{min-height:44px}.cr-summary-tile svg{width:23px;height:23px}.cr-summary-tile{border-radius:15px}
.cr-salary-footer{gap:10px}.hr-debt-row{padding-block:12px}.hr-debt-row button{min-height:44px}.hr-edit{width:44px;height:44px}
.hr-debt-row{display:grid;grid-template-columns:minmax(0,1fr) 145px 100px 44px;gap:10px;align-items:center}.hr-debt-row input[type=date]{width:100%;min-width:0;font-size:.875rem}.hr-debt-row [data-amount]{font-variant-numeric:tabular-nums}
.toast-stack{bottom:calc(94px + env(safe-area-inset-bottom,0px));max-width:min(540px,calc(100vw - 32px))}
.fleet-history>summary{min-height:48px;background:var(--ios-fill);border-radius:12px;padding:12px 16px;font-size:.9375rem}
.fleet-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;background:#e6e6eb;border-radius:14px;margin-block:0 20px}
.fleet-tabs button,.fleet-tabs button:not(.selected){min-height:44px;padding:8px 10px;background:transparent;border:0;border-radius:10px;color:var(--ios-secondary);font-size:.9375rem}
.fleet-tabs button.selected{background:#fff;color:var(--ios-ink);box-shadow:0 1px 5px #0002}
.offer-studio .os-toggle{width:100%;min-height:52px;padding:8px 12px;margin-block:8px;border-radius:12px;background:var(--ios-fill);gap:16px}
.offer-studio .os-toggle>input[type=checkbox]{width:51px!important;min-width:51px;max-width:51px;flex-basis:51px;height:31px;min-height:31px;max-height:31px;background:#d8d8de!important}
.offer-studio .os-toggle>input[type=checkbox]::after{width:27px;height:27px;top:2px;left:2px;box-shadow:0 2px 4px #0003;transition:transform var(--ios-duration) var(--ios-ease)}
.offer-studio .os-toggle>input[type=checkbox]:checked{background:#248a51!important}
.offer-studio .os-toggle>input[type=checkbox]:checked::after{transform:translateX(20px)}
input.ios-switch{appearance:none;-webkit-appearance:none;position:relative;width:51px!important;min-width:51px;max-width:51px;flex:0 0 51px;height:31px;min-height:31px;padding:0!important;border:0;border-radius:99px;background:#d8d8de;direction:ltr;box-shadow:none;cursor:pointer}
input.ios-switch::after{content:'';position:absolute;left:2px;top:2px;width:27px;height:27px;background:white;border-radius:50%;box-shadow:0 2px 4px #0003;transition:transform var(--ios-duration) var(--ios-ease)}
input.ios-switch:checked{background:#248a51}input.ios-switch:checked::after{transform:translateX(20px)}
.ios-switch-row{display:flex!important;align-items:center;justify-content:space-between;gap:16px;min-height:52px;padding:8px 12px;border-radius:12px;background:var(--ios-fill)}
.os-choice>span{min-height:44px;border-radius:10px}.os-options{gap:8px}.os-catalog button{min-height:80px}.os-catalog button.selected{border:2px solid var(--ios-accent);background:var(--ios-tint)}
.os-recipe-grid{gap:14px}.os-component-controls{align-items:start!important}.os-component-controls>.os-toggle{flex:1;max-width:270px}
.table-wrap{border-color:var(--ios-separator);border-radius:14px}th{background:var(--ios-fill);font-size:.8125rem}td{font-size:.9375rem;border-color:var(--ios-separator)}
.table-wrap button,td button{min-height:44px;font-size:.875rem}.status-pill{border-radius:99px;font-size:.8125rem}
.admin-notification-panel{border:1px solid var(--ios-separator);border-radius:22px;box-shadow:0 12px 40px #0002;background:#fff;max-height:70dvh;overflow:auto}
.toast{border-radius:14px;font-size:.9375rem}
/* Floating tab bar: the five existing destinations stay available in both languages. */
html[dir] .mobile-bottom-nav{position:fixed;z-index:85;inset-inline:auto;left:50%;transform:translateX(-50%);bottom:calc(10px + env(safe-area-inset-bottom,0px));width:min(640px,calc(100% - 24px));height:var(--ios-nav-height);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;padding:6px;border-radius:36px;background:#fffffff0;border:1px solid #fff;box-shadow:0 3px 16px #1515241a,0 0 0 1px #77777715;isolation:isolate}
@supports(backdrop-filter:blur(20px)){html[dir] .mobile-bottom-nav{background:#ffffffe0;-webkit-backdrop-filter:blur(22px) saturate(140%);backdrop-filter:blur(22px) saturate(140%)}}
html[dir] .mobile-bottom-nav button{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-width:0;min-height:56px;height:auto;padding:5px 3px;border:0;border-radius:28px;background:transparent;color:#5d5d65;overflow:visible;box-shadow:none;font-weight:500}
html[dir] .mobile-bottom-nav button.active,html[dir] .mobile-bottom-nav button.ios-selected{background:var(--ios-tint);color:var(--ios-accent)}
html[dir] .mobile-bottom-nav svg{width:25px;height:25px;stroke-width:1.85;flex:none}
html[dir] .mobile-bottom-nav span{font-size:.6875rem;line-height:1.3;font-weight:600;white-space:nowrap;max-width:100%;text-align:center}
html[dir=rtl] .mobile-bottom-nav{direction:rtl}html[dir=ltr] .mobile-bottom-nav{direction:ltr}
.side{border-color:var(--ios-separator);padding:22px;gap:20px;background:#fafafc;z-index:110}.side .brand strong{font-size:1rem}.side .nav{gap:4px}
.side .nav button{display:flex;align-items:center;gap:14px;text-align:start;min-height:48px;padding:10px 12px;color:var(--ios-ink);border-radius:13px;background:transparent;font-size:.9375rem}
.side .nav button.active{background:var(--ios-tint);color:var(--ios-accent)}.side .nav .ios-symbol{width:23px;height:23px}.side-actions{gap:10px}.side-actions button{border-radius:13px}
.drawer-close-button{width:44px;height:44px;border-radius:50%;padding:0}.drawer-backdrop.open{background:#14141b55;backdrop-filter:blur(3px)}
.ios-modal-close{display:grid!important;place-items:center!important;flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;border:0!important;border-radius:50%!important;padding:0!important;background:#ededf1!important;color:#626269!important;font-size:0!important;box-shadow:none!important}
.ios-modal-close .ios-symbol{width:20px;height:20px}.ios-modal-cancel{min-height:44px;background:transparent!important;border:0!important;color:var(--ios-accent)!important;padding-inline:12px}
dialog{font-family:var(--font);border:1px solid var(--ios-separator);color:var(--ios-ink);background:var(--ios-surface);border-radius:24px;max-height:calc(100dvh - 32px);overscroll-behavior:contain;box-shadow:0 16px 60px #11112426}
dialog::backdrop{background:#17172055;backdrop-filter:blur(3px)}
.detail-modal,.recipe-modal,.inventory-count-modal,.barcode-scanner-modal,.material-price-modal,.barcode-missing-modal{background:#17172055;backdrop-filter:blur(3px)}
.detail-panel,.recipe-panel,.inventory-count-panel,.barcode-scanner-panel,.material-price-panel,.barcode-missing-panel{background:var(--ios-bg);color:var(--ios-ink);border:1px solid var(--ios-separator);border-radius:24px;overflow:auto;max-height:calc(100dvh - 32px)}
.detail-header,.recipe-header,.inventory-count-header,.barcode-scanner-header,dialog.offer-studio .os-head,.admin-fullscreen>header{position:sticky;top:0;z-index:3;min-height:76px;padding:16px 20px;background:#fafafcf5;border-bottom:1px solid var(--ios-separator);gap:16px}
.detail-header h2,.recipe-header h2,.inventory-count-header h2,.barcode-scanner-header h2,.os-head h2,.admin-fullscreen>header h2{font-size:1.25rem;font-weight:650;line-height:1.4;margin:0}
.detail-body,.recipe-body,.inventory-count-body,.material-price-content,.fleet-content,.archive-content{padding:20px}
.ios-sheet>header,.ios-sheet>form>header{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:#fff;z-index:3;padding-block:6px 14px;margin-bottom:16px;gap:16px;border-bottom:1px solid var(--ios-separator)}
.ios-modal-header{display:grid!important;grid-template-columns:68px minmax(0,1fr) 68px;align-items:center;gap:8px!important}.ios-modal-header>h2,.ios-modal-header>h3,.ios-modal-header>div{grid-column:2;grid-row:1;text-align:center;min-width:0}.ios-modal-header>.ios-modal-close,.ios-modal-header>.ios-modal-cancel{grid-column:1;grid-row:1;justify-self:start}.ios-modal-header>.ios-modal-cancel{max-width:68px;padding-inline:4px}.ios-modal-header>.ios-modal-close{margin:0}
.ios-modal-header>.ios-modal-back{grid-column:1;grid-row:1;display:flex;align-items:center;gap:2px;color:var(--ios-accent);background:transparent;border:0;padding-inline:0;font-size:.875rem}.ios-back-icon .ios-symbol{width:18px;height:18px}html[dir=rtl] .ios-back-icon{transform:scaleX(-1)}
.ios-sheet>header h3,.ios-sheet>form>header h3{font-size:1.25rem;margin:0;line-height:1.45}dialog.ios-sheet{inset:0;margin:auto;height:fit-content;width:min(680px,calc(100vw - 32px));padding:24px;overflow:auto}dialog.ios-sheet::before{display:none!important}
.ios-sheet-grabber{display:none}.ios-alert{inset:0;margin:auto;width:min(420px,calc(100vw - 40px));max-height:85dvh;border-radius:24px;padding:24px;background:#fff}
.owner-login-dialog{text-align:center;padding:28px;max-width:420px}.owner-lock{margin-inline:auto;background:var(--ios-tint);color:var(--ios-accent)}.owner-login-dialog h2{font-size:1.375rem}.owner-login-dialog>p{font-size:.9375rem}.owner-pin-wrap{background:var(--ios-fill);border-radius:14px}.owner-pin-wrap input{text-align:center!important;min-height:58px!important;font-size:1.5rem!important;background:transparent!important}.owner-unlock{min-height:48px;background:var(--ios-accent);color:#fff;border:0;border-radius:14px}.owner-cancel{background:var(--ios-fill);color:var(--ios-ink);min-height:44px}
.cr-note-dialog{background:#fff;padding:24px}.cr-note-dialog header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.cr-note-dialog h3{font-size:1.25rem;margin:0}.cr-note-dialog p{white-space:pre-wrap;font-size:1rem;line-height:1.7;text-align:start}
.ios-discard-dialog{text-align:center}.ios-discard-dialog h2{font-size:1.25rem;margin:0 0 10px}.ios-discard-dialog p{font-size:.9375rem;color:var(--ios-secondary);margin:0 0 20px}.ios-discard-actions{display:grid;gap:8px}.ios-discard-actions button{min-height:46px}.ios-discard-actions [data-keep]{background:var(--ios-accent);color:#fff}.ios-discard-actions [data-discard]{background:var(--ios-fill);color:var(--ios-red)}
.offer-studio,.admin-fullscreen{border-radius:24px}.offer-studio .os-body{background:var(--ios-bg)}.offer-studio .os-card{background:#fff;border-color:var(--ios-separator)}.offer-studio .os-head [data-close]{min-height:44px;border:0;background:var(--ios-fill);color:var(--ios-ink)}
.customer-editor-toolbar{min-height:76px!important;border-bottom:1px solid var(--ios-separator)!important;background:#fafafcf5!important}.customer-editor-toolbar h2{font-size:1.125rem}.customer-editor-panel{background:var(--ios-bg)}.customer-editor-panel form{gap:16px}.ce-product-row,.ce-section{border-radius:14px}
.record-save-bar,.settings-save-bar{bottom:calc(92px + env(safe-area-inset-bottom,0px))!important;border:1px solid var(--ios-separator);background:#fffffff5;border-radius:18px;padding:8px;box-shadow:0 4px 20px #0002}
.record-save-bar button,.settings-save-bar button{min-height:46px;border-radius:12px;font-size:1rem}.has-record-save-bar .main{padding-bottom:220px!important}
.ios-legacy-locked{overflow:hidden}.ios-sheet-dragging{transition:none!important;user-select:none}
.ios-empty{border:1px dashed var(--ios-separator);border-radius:16px;padding:24px;color:var(--ios-secondary);text-align:center}
.ios-section-enter{animation:ios-section-in var(--ios-duration) var(--ios-ease)}
@keyframes ios-section-in{from{opacity:.45;translate:0 7px}to{opacity:1;translate:0 0}}
@keyframes ios-sheet-in{from{opacity:0;translate:0 25px}to{opacity:1;translate:0 0}}
dialog[open].ios-sheet,dialog[open].ios-alert{animation:ios-sheet-in var(--ios-duration) var(--ios-ease)}
@media(min-width:1000px){.mobile-bottom-nav button{flex-direction:row!important;gap:8px!important}.mobile-bottom-nav span{font-size:.8125rem!important}}
@media(max-width:760px){
 .main{padding-inline:16px}.topbar{margin-inline:-16px;padding-inline:16px;min-height:78px}.page-heading h1{font-size:1.625rem}.page-heading p{font-size:.875rem}.overview-topbar-logo{max-height:36px}
 .card{padding:16px}.section.active,.inventory-category-list,.cost-accordion{gap:14px}.metric,.metric-link{padding:15px 16px;min-height:104px}.metric b{font-size:1.5rem}.metric span{font-size:.8125rem}
 .overview-accordion>summary,.settings-accordion>summary,.cost-group-head,.inventory-tool-summary,.inventory-tool-launch{padding:14px;min-height:64px;font-size:.9375rem}
 .cost-group-title b,.inventory-tool-copy b{font-size:.9375rem}.cost-group-title small,.inventory-tool-copy small{font-size:.75rem}
 .cost-group-body,.inventory-tool-body,.overview-accordion>.card,.settings-accordion>div{padding:16px}.inventory-category-card,.inventory-reference-panel{padding:16px}.inventory-filters{padding:12px;gap:12px}
 .inventory-category-head h2,.inventory-materials-head h2{font-size:1.25rem}.inventory-category-head small,.inventory-materials-head p{font-size:.8125rem}.material-category-actions button{font-size:.8125rem;padding-inline:10px}
 .cost-record{padding:16px}.cr-tile>span,.cr-field>span{font-size:.75rem}.cr-name{font-size:1.0625rem}.fleet-tabs button{font-size:.8125rem}
 .detail-panel,.material-price-panel{width:calc(100vw - 24px);max-height:90dvh;border-radius:24px}
 .detail-header,.recipe-header,.inventory-count-header,.barcode-scanner-header,.admin-fullscreen>header{padding:12px 16px;min-height:68px}.detail-header h2,.recipe-header h2,.inventory-count-header h2,.barcode-scanner-header h2,.admin-fullscreen>header h2{font-size:1.125rem}
 .detail-body,.recipe-body,.inventory-count-body,.material-price-content,.fleet-content,.archive-content{padding:16px}
 dialog.ios-sheet{inset:auto 0 0;margin:0 auto;width:100%;max-width:720px;max-height:88dvh;min-height:0;border-radius:28px 28px 0 0;padding:0 20px max(22px,env(safe-area-inset-bottom,0px));background:#fff}
 dialog.ios-sheet.ios-sheet-expanded{max-height:96dvh}
 .ios-sheet>.ios-sheet-grabber{display:grid;place-items:center;width:100%;height:30px;min-height:30px;background:#fff!important;border:0;padding:0;position:sticky;top:0;z-index:5;touch-action:none;border-radius:0}
 .ios-sheet-grabber>span{width:36px;height:5px;background:#c6c6cc;border-radius:99px}.ios-sheet-grabber:active{transform:none;opacity:1}
 .ios-sheet>header,.ios-sheet>form>header{top:30px;min-height:56px;margin-bottom:18px}
 .offer-studio,.admin-fullscreen{border-radius:0;max-height:100dvh}.offer-studio .os-head{padding:12px!important;min-height:68px;gap:8px}.os-head h2{font-size:1rem}.offer-studio .os-head button{font-size:.8125rem;padding-inline:10px}
 .customer-editor-toolbar{padding:12px!important;gap:8px!important}.customer-editor-toolbar h2{font-size:.9375rem}
 .fleet-fields{gap:14px}.fleet-reference-form .fleet-fields>label{font-size:.8125rem}.fleet-reference-form input,.fleet-reference-form select{font-size:.9375rem}
 .hr-debt-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;gap:10px}.hr-debt-row [data-amount]{grid-column:1;grid-row:1}.hr-debt-row input[data-date]{grid-column:2/4;grid-row:1}.hr-debt-row [data-settle]{grid-column:1/3;grid-row:2}.hr-debt-row [data-edit]{grid-column:3;grid-row:2}
}
@media(max-width:359px){.main{padding-inline:12px}.topbar{margin-inline:-12px;padding-inline:12px}.mobile-bottom-nav{width:calc(100% - 16px)!important;padding:5px!important}.mobile-bottom-nav span{font-size:.625rem!important}.cost-group-title small{font-size:.6875rem}.material-category-actions button{font-size:.75rem}}
@media(prefers-reduced-transparency:reduce){html[dir] .mobile-bottom-nav,.topbar{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}button:active{transform:none}}
@media(forced-colors:active){.mobile-bottom-nav{border:1px solid ButtonText!important}.mobile-bottom-nav button.ios-selected{outline:2px solid Highlight}.ios-switch:checked{outline:3px solid Highlight}}
