@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

/* FOAM POS · iPad redesign
   Brand Yellow #FFC400 = primary action · Soft Yellow #FFF4CC = selected
   Charcoal #1A1A1A = text + secondary · Soft Red #FEE2E2 / Red #DC2626 = destructive */
:root{
  font-family:Manrope,system-ui,-apple-system,"Segoe UI",sans-serif;
  color:#1A1A1A;background:#F5F5F3;
  -webkit-font-smoothing:antialiased;
  --ink:#1A1A1A;--muted:#5B5B57;--line:#EFEFEC;--field:#D6D6D0;
  --yellow:#FFC400;--yellow-hover:#E5B000;--soft:#FFF4CC;--soft-line:#E5B000;
  --bg:#F5F5F3;--tile:#F7F7F5;
  --ok:#15803D;--ok-soft:#E7F5EC;--err:#DC2626;--err-soft:#FEE2E2;--disabled:#E5E7EB;
  /* legacy names kept so nothing that still references them breaks */
  --green:#1A1A1A;--mint:#FFF4CC;--gold:#FFC400
}
*{box-sizing:border-box}
body{margin:0}
/* One shared left edge for logo, date bar and page content */
:root{--page:max(0px,calc((100vw - 1448px)/2));--gutter:20px;--gutter-right:20px}
/* Sidebar widths: content (and the logo above it) always starts just right of the sidebar */
body:not(.pin-page){--rail:76px;--sidebar:248px;--gutter:calc(var(--rail) + 24px)}
@media (min-width:1024px){body.nav-open:not(.pin-page){--gutter:calc(var(--sidebar) + 28px)}}

/* ---------- Header ---------- */
header{background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:16px;height:var(--header-h,72px);padding:12px calc(var(--page) + var(--gutter-right)) 12px calc(var(--page) + var(--gutter));min-height:72px}
.brand{display:flex;align-items:flex-end;gap:14px;white-space:nowrap}
.brand img{display:block;height:44px;width:auto}
.brand small{display:inline-block;font-size:11px;font-weight:800;letter-spacing:1.8px;line-height:1;padding-bottom:4px;color:#BDBDB7}

/* ---------- Full-height collapsible sidebar ---------- */
body:not(.pin-page)>header{position:sticky;top:0;z-index:45}
nav{position:fixed;z-index:40;left:0;top:var(--header-h,72px);bottom:0;width:var(--rail);display:flex;flex-direction:column;justify-content:space-between;gap:12px;padding:16px 12px;background:var(--ink);overflow-y:auto;overflow-x:hidden}
body.nav-open nav{width:var(--sidebar)}
.nav-items{display:flex;flex-direction:column;gap:10px}
nav button{display:flex;align-items:center;gap:16px;width:100%;justify-content:flex-start;text-align:left;min-height:60px;color:#E5E5E2;background:transparent;border-color:transparent;border-radius:14px;padding:12px 18px;font-size:17px;font-weight:500;white-space:nowrap;transition:background .15s,color .15s}
nav button svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* hover and current page share the yellow pill; the current page's chart icon fills in */
nav button:hover,nav button.active,nav button.active:hover{background:#F6C445;color:var(--ink);border-color:transparent}
nav button.active{font-weight:600}
nav button.active svg .fill-active{fill:currentColor;stroke:none}
nav button[hidden]{display:none}
.nav-user{display:flex;flex-direction:column;gap:6px;padding-top:12px;border-top:1px solid #2E2E2C}
.nav-user-card{display:flex;align-items:center;gap:12px;padding:6px 4px;min-height:56px}
.nav-avatar{width:44px;height:44px;border-radius:50%;background:#2E2E2C;color:var(--yellow);display:grid;place-items:center;font-weight:800;font-size:18px;flex:none}
.nav-user-text{display:flex;flex-direction:column;gap:2px;min-width:0;white-space:nowrap}
.nav-user-text strong{color:#fff;font-size:16px;overflow:hidden;text-overflow:ellipsis}
.nav-user-text small{color:#A8A8A2;font-size:13px;font-weight:600}
.session-signout{background:transparent;color:#D6D6D0;border-color:transparent}
.session-signout:hover{background:rgba(255,255,255,.08);color:#fff;border-color:transparent}
nav .session-signout:hover{background:rgba(255,255,255,.08);color:#fff}
/* collapsed rail: icons only (labels stay readable to screen readers) */
body:not(.nav-open) nav .nav-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
body:not(.nav-open) nav button{justify-content:center;padding:10px 0}
body:not(.nav-open) .nav-user-card{justify-content:center;padding:6px 0}
.nav-toggle{position:fixed;z-index:41;top:calc(var(--header-h,72px) + 22px);left:calc(var(--rail) - 16px);width:32px;height:32px;min-height:32px;padding:0;border:2px solid var(--bg);border-radius:50%;background:var(--yellow);color:var(--ink);display:grid;place-items:center;box-shadow:0 4px 12px rgba(0,0,0,.2)}
.nav-toggle:hover{background:var(--yellow-hover);border-color:var(--bg)}
.nav-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;transform:rotate(180deg)}
body.nav-open .nav-toggle{left:calc(var(--sidebar) - 16px)}
body.nav-open .nav-toggle svg{transform:none}
body.nav-ready nav{transition:width .22s ease}
body.nav-ready .nav-toggle{transition:left .22s ease,background .15s}
@media (max-width:1023px){
  /* portrait: the open sidebar slides over the page instead of pushing it */
  body.nav-open nav{box-shadow:12px 0 40px rgba(0,0,0,.25)}
}

/* ---------- Business toolbar ---------- */
.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;padding:12px calc(var(--page) + var(--gutter-right)) 12px calc(var(--page) + var(--gutter));background:#fff;border-bottom:1px solid var(--line)}
.toolbar[hidden]{display:none}
.control-label{font-weight:700;font-size:13px;color:var(--muted)}
#business-date{order:3;margin-left:auto;font-size:16px}
#status{order:2}
.toolbar #shift-controls{order:1;margin-left:0;gap:4px;padding:4px;background:#EFEFEC;border-radius:14px;flex-wrap:nowrap}
.toolbar #shift-controls button{min-height:40px;border:0;border-radius:10px;background:transparent;color:var(--muted);padding:8px 18px}
.toolbar #shift-controls button.active{background:#fff;color:var(--ink);border:0;box-shadow:0 1px 3px rgba(0,0,0,.14)}
.badge,#status{font-size:13px;font-weight:700;border-radius:999px;padding:7px 14px;white-space:nowrap}
.badge{background:#3A3A37;color:#fff}
/* status pill: soft red when closed, soft green when open */
#status{background:var(--err-soft);color:#B91C1C}
#status::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:#DC2626;margin-right:8px;vertical-align:middle}
#status.is-open{background:var(--ok-soft);color:var(--ok)}
#status.is-open::before{background:var(--ok)}

/* ---------- Type ---------- */
main{margin:0;padding:24px calc(var(--page) + var(--gutter-right)) 48px calc(var(--page) + var(--gutter))}
h1{font-size:30px;font-weight:800;letter-spacing:-.02em;margin:0 0 6px}
h2{font-size:20px;font-weight:800;letter-spacing:-.01em;margin:0 0 14px}
h3{font-size:16px;font-weight:700}
p{margin:0 0 14px;color:var(--muted)}
label{font-size:14px;font-weight:700}
.quiet{font-size:13px;color:var(--muted)}
strong{font-weight:800}

/* ---------- Buttons ---------- */
button,input,select,textarea{font:inherit}
button,.action{min-height:48px;touch-action:manipulation}
/* Hierarchy by colour, weight and border — labels stay in sentence case */
button{cursor:pointer;border:1px solid #DADAD5;border-radius:12px;padding:10px 16px;background:#fff;color:var(--ink);font-weight:600;transition:background .15s,border-color .15s,box-shadow .15s,transform .08s}
button:hover{border-color:#BDBDB7;background:#FAFAF8}
button:active:not(:disabled){transform:scale(.98)}
button:disabled{background:var(--disabled);border-color:var(--disabled);color:#9CA3AF;opacity:1;cursor:not-allowed;box-shadow:none}
.chips button,.toolbar #shift-controls button{font-weight:500}
.chips button[aria-pressed="true"],.chips button.active,.toolbar #shift-controls button.active{font-weight:600}
.primary{background:var(--yellow);color:var(--ink);border-color:var(--yellow)}
.primary:hover{background:var(--yellow-hover);border-color:var(--yellow-hover);color:var(--ink)}
.primary:disabled{background:var(--disabled);border-color:var(--disabled);color:#9CA3AF}
.secondary{background:var(--ink);color:#fff;border-color:var(--ink)}
.secondary:hover{background:#333;border-color:#333;color:#fff}
.danger-soft{background:var(--err-soft);color:#B91C1C;border-color:var(--err-soft)}
.danger-soft:hover{background:#FCD0D0;border-color:#FCD0D0;color:#B91C1C}
.danger{background:var(--err);border-color:var(--err);color:#fff}
.danger:hover{background:#B91C1C;border-color:#B91C1C;color:#fff}
.action{display:inline-flex;align-items:center;justify-content:center;border:1px solid #DADAD5;border-radius:12px;padding:10px 16px;font-weight:700;text-decoration:none;color:var(--ink);background:#fff}
.action.primary{background:var(--yellow);border-color:var(--yellow);color:var(--ink)}
.charge{display:block;width:100%;margin-top:14px;min-height:60px;font-size:18px;border-radius:14px}

/* selected state: Soft Yellow */
.active:not(nav button),.chips button[aria-pressed="true"]{background:var(--soft);border-color:var(--soft-line);box-shadow:inset 0 0 0 1px var(--soft-line)}
.active:not(nav button):hover,.chips button[aria-pressed="true"]:hover{background:var(--soft)}
.toolbar #shift-controls button.active{box-shadow:0 1px 3px rgba(0,0,0,.14)}

/* ---------- Fields ---------- */
input,select{min-height:48px;padding:10px 14px;border:1px solid var(--field);border-radius:12px;background:#fff;color:var(--ink);max-width:100%;font-weight:600}
input[type="checkbox"],input[type="radio"]{min-height:0;padding:0}
select{padding-right:34px}
.field{display:grid;gap:6px;margin:8px 0}
form .row{align-items:end}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}
input:focus,select:focus,textarea:focus{border-color:var(--soft-line)}
select#expense-detail,select#expense-category{min-height:48px}
.expense-remarks textarea{width:min(100%,560px);min-height:84px;resize:vertical;font:inherit;padding:12px 14px;border:1px solid var(--field);border-radius:12px;color:var(--ink)}
.expense-note{white-space:pre-wrap;overflow-wrap:anywhere}

/* ---------- Layout + cards ---------- */
.split{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,1fr);gap:20px;align-items:start}
.panel{background:#fff;border:1px solid #EFEFEC;border-radius:20px;padding:22px;margin-bottom:16px;overflow:auto}
.row,.chips{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.chips{margin:12px 0}
.between{display:flex;justify-content:space-between;align-items:center;gap:10px}
.empty{padding:16px 18px;background:var(--tile);border-radius:14px;color:var(--muted);margin:12px 0;font-weight:600}
.split>aside.panel .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.split>aside.panel .stat strong{font-size:19px}
.commission-title{margin:20px 0 4px;font-size:16px;font-weight:700}
.commission-title+table th:last-child,.commission-title+table td:last-child{text-align:right}
.commission-title+table tr:last-child td{border-bottom:0}
.total{font-size:26px;font-weight:800;letter-spacing:-.02em;padding:14px 0 4px}
/* Register: cart starts level with the Vehicle size panel, not the page title */
.split:has(>section:not(.panel) [data-vehicle-size]){grid-template-rows:auto auto 1fr;row-gap:0}
.split:has(>section:not(.panel) [data-vehicle-size])>section{display:contents}
.split:has(>section:not(.panel) [data-vehicle-size])>section>h1{grid-column:1;grid-row:1}
.split:has(>section:not(.panel) [data-vehicle-size])>section>p{grid-column:1;grid-row:2}
.split:has(>section:not(.panel) [data-vehicle-size])>section>.panel{grid-column:1;grid-row:3}
.split:has(>section:not(.panel) [data-vehicle-size])>aside{grid-column:2;grid-row:3;align-self:start}
@media (max-width:900px){
  .split:has(>section:not(.panel) [data-vehicle-size])>aside{grid-column:1;grid-row:4}
}
/* Cart: empty message sits centred, no grey box */
.split>aside.panel>.empty{background:transparent;text-align:center;padding:28px 8px;margin:4px 0;font-weight:500}
.split>aside.panel .between:first-child h2{margin:0}
.ticket-item{border-top:1px solid #EFEFEC;padding:14px 0}

/* service tiles */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}
.service{text-align:left;min-height:116px;display:flex;flex-direction:column;justify-content:space-between;gap:12px;padding:16px;background:#fff;border-radius:16px;font-size:16px;line-height:1.25}
.service:hover:not(:disabled){box-shadow:0 4px 14px rgba(0,0,0,.07)}
.service strong{color:var(--ink);font-size:19px}
.service:disabled{background:#F4F4F2;border-color:#ECECE8;color:#6B6B66}
.service:disabled strong{color:#6B6B66;font-size:15px;font-weight:600}
.service>span:last-child{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%}
.tile-add{display:grid;place-items:center;min-width:34px;min-height:34px;padding:0 8px;border-radius:10px;color:var(--ink);background:var(--soft);font-weight:800}
.service .tile-add{align-self:flex-end}
.service:disabled .tile-add{visibility:hidden}
.service.in-cart,.service.is-picking{background:var(--soft);border-color:var(--soft-line);box-shadow:inset 0 0 0 1px var(--soft-line)}
.service.in-cart .tile-add{background:var(--ink);color:var(--yellow)}
.service.is-picking .tile-add{background:var(--yellow)}

/* checkout: payment methods as big tiles */
.chips[aria-label="Payment method"]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.chips[aria-label="Payment method"] button{min-height:88px;font-size:18px;border-radius:16px}
.chips[aria-label^="Payment for"] button{min-width:120px}

/* stats */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-bottom:18px}
.stat{padding:14px 16px;border:1px solid #EFEFEC;border-radius:16px;background:#fff;font-size:13px;font-weight:600;color:var(--muted)}
.panel .stat{border-color:transparent;background:var(--tile)}
.stat strong{font-size:21px;display:block;margin-top:6px;color:var(--ink)}

/* tables */
table{width:100%;border-collapse:collapse;font-size:15px}
th{font-size:13px;font-weight:700;color:var(--muted)}
th,td{text-align:left;padding:12px 8px;border-bottom:1px solid #EFEFEC;vertical-align:middle}
td button{min-height:40px;padding:8px 14px;border-radius:10px}

/* check boxes become tiles (attendance, split payment, options) */
.check{display:inline-flex;gap:10px;align-items:center;min-height:52px;padding:8px 16px;border:1px solid #E1E1DC;border-radius:14px;background:#fff;font-size:15px;font-weight:700;cursor:pointer;transition:background .15s,border-color .15s}
.check:has(:checked){background:var(--soft);border-color:var(--soft-line);box-shadow:inset 0 0 0 1px var(--soft-line)}
.check input{width:20px;height:20px;accent-color:var(--ink);margin:0}
.attendance-choices{border:0;margin:0;padding:0;min-inline-size:0}
.attendance-choices .chips{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.attendance-choices .check{justify-content:flex-start}
.attendance-choices:disabled .check{opacity:.6;cursor:not-allowed}
.attendance-banner{margin-bottom:12px}
.choice{border:1px solid var(--line);border-radius:14px;margin:0 0 10px;padding:8px 12px}
.choice legend{font-size:14px;font-weight:700;padding:0 4px}

/* ---------- Shift banner (was tomato) ---------- */
.shift-banner{margin-bottom:18px;padding:16px 18px;border:1px solid #F2D27A;border-radius:16px;background:var(--soft);color:var(--ink);flex-wrap:wrap;font-weight:600}
.shift-banner strong{display:block;font-size:18px;margin-bottom:2px}
.shift-banner button{background:var(--yellow);border-color:var(--yellow);color:var(--ink);min-width:160px}
.shift-banner button:hover{background:var(--yellow-hover);border-color:var(--yellow-hover)}
.locked-register{border:0;margin:0;padding:0;min-inline-size:0;opacity:.5}
.locked-register button{cursor:not-allowed}
.locked-register .panel{background:#FAFAF8}

/* crew picker inside register */
.item-editor{margin-top:18px;padding:18px;border:2px solid var(--yellow);border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(0,0,0,.06)}
.item-editor .field{min-width:0}
.item-editor label.field input{width:min(100%,230px)}
.panel #back-cart{margin-bottom:14px}
.panel #back-cart+h1{margin-bottom:18px}
.checkout-cashier{margin-top:20px;padding-top:18px;border-top:1px solid #EFEFEC}

/* ---------- Shifts, payroll, reports ---------- */
details.panel summary{cursor:pointer;font-weight:800;font-size:17px;min-height:32px;display:flex;align-items:center}
details.panel[open] summary{margin-bottom:14px}
.close-expected{margin:16px 0 4px;padding:14px 16px;background:var(--tile);border-radius:14px}
.close-expected p:last-child{margin-bottom:0}
.close-expected p,.close-cash p{margin-bottom:8px}
.close-cash input,.payroll-editor input{width:min(100%,280px);min-height:48px}
.close-cash .field{margin:12px 0}
.negative-balance{color:var(--err);font-weight:800}
.payroll-editor{border:1px solid var(--line);border-radius:16px;padding:16px;margin:12px 0}
.settings-rosters table th,.settings-rosters table td{padding:8px 8px}
.settings-rosters table td:last-child,.settings-rosters table th:last-child{width:1%;min-width:240px;white-space:nowrap}
.settings-rosters table td:last-child>*{flex-wrap:nowrap}
.settings-rosters table td:last-child button{margin:2px 4px 2px 0}
.advance-fields[hidden],#payout-payment[hidden],#payout-negative-reason[hidden]{display:none}
.payout-heading{flex-wrap:wrap;align-items:flex-start}
.payout-heading .report-dates{margin:0}
.payout-heading h2{margin:0}
.payout-date{font-weight:500;color:var(--muted)}
.advance-drawer-help{flex-basis:100%;margin:0}
.report-filters{margin-top:14px}
.report-dates{margin:10px 0}
.report-dates:last-child{margin-bottom:0}
.sales-chart canvas{display:block;width:100%;height:250px}
.sales-chart summary{cursor:pointer;color:var(--ink)}

/* calendar */
.calendar{position:absolute;z-index:5;width:min(410px,calc(100% - 28px));margin:6px 0 0 calc(var(--page) + var(--gutter));box-shadow:0 14px 40px rgba(0,0,0,.16)}
.calendar-nav{justify-content:center;margin:8px 0}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}
.calendar-grid button{padding:2px;min-height:44px}
.calendar-grid span,.outside{color:var(--muted)}

/* sign-in panel inside the app */
.account{max-width:670px}
.account-note{margin:18px 0 0}
.pin-panel{max-width:520px;margin:35px auto}
.pin-panel input[type="password"]{min-height:56px;font-size:22px;letter-spacing:.3em}
.pin-cashier{display:inline-flex;align-items:center;gap:10px;border:1px solid #E1E1DC;border-radius:14px;min-height:56px;padding:8px 16px;cursor:pointer;background:#fff;font-weight:700}
.pin-cashier:has(:checked){background:var(--soft);border-color:var(--soft-line);box-shadow:inset 0 0 0 1px var(--soft-line)}
.pin-cashier input{accent-color:var(--ink)}

/* ---------- Sign-in: account tiles + keypad ---------- */
.signin-main{display:flex;justify-content:center;padding-top:40px}
.signin{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px;width:100%;max-width:1000px;align-items:stretch}
.signin:has(>.signin-card:only-child){grid-template-columns:minmax(0,480px);justify-content:center}
.signin-card{margin:0;padding:28px;overflow:visible}
.signin-card h1{font-size:28px;margin-bottom:6px}
.signin-card>p{font-size:16px}
.signin-accounts{border:0;padding:0;margin:18px 0 0;min-inline-size:0;display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.signin-account{position:relative;display:flex;align-items:center;gap:14px;min-height:72px;padding:12px 16px;border:1px solid #E1E1DC;border-radius:16px;background:#fff;cursor:pointer;transition:background .15s,border-color .15s}
.signin-account:hover{border-color:#C9C9C3}
.signin-account input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.signin-account:has(:checked){background:var(--soft);border-color:var(--soft-line);box-shadow:inset 0 0 0 1px var(--soft-line)}
.signin-account:has(:focus-visible){outline:3px solid var(--yellow);outline-offset:2px}
.signin-avatar{width:44px;height:44px;border-radius:50%;background:var(--ink);color:var(--yellow);display:grid;place-items:center;font-weight:800;font-size:18px;flex:none}
.signin-who{display:flex;flex-direction:column;gap:2px;min-width:0}
.signin-who strong{font-size:17px}
.signin-who small{font-size:14px;font-weight:600;color:var(--muted)}
.signin-code{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px}
.signin-step{margin:0;font-size:15px;font-weight:700;color:var(--muted)}
.signin-step[hidden]{display:none}
.signin-code h2{font-size:24px;margin:4px 0 0}
.signin-hint{margin:0 0 12px;font-size:15px}
.signin-key svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;display:block;margin:auto}
.signin-code .negative-balance{margin:0 0 8px}
.signin-code .field{width:100%;max-width:340px;text-align:left}
.signin-field-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.signin-pad{width:100%;max-width:340px;display:flex;flex-direction:column;align-items:center;gap:18px}
.signin-pad[hidden]{display:none}
.signin-dots{display:flex;gap:14px;min-height:18px}
.signin-dots span{width:16px;height:16px;border-radius:50%;border:2px solid #C9C9C3}
.signin-dots span.on{background:var(--ink);border-color:var(--ink)}
.signin-keys{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}
.signin-key{min-height:68px;border-radius:16px;font-size:26px;font-weight:700}
.signin-key:active{background:var(--soft);border-color:var(--soft-line)}
.signin-key-alt{font-size:15px;color:var(--muted)}
.signin-code .charge{max-width:340px;margin-top:12px}
.signin.is-sending .signin-keys{opacity:.5;pointer-events:none}
.signin-switch{margin:8px 0 0}
.signin-switch a{color:var(--ink);font-weight:700}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
@media (max-width:900px){
  .signin-main{padding-top:20px}
  .signin{grid-template-columns:minmax(0,1fr);max-width:560px}
}

/* ---------- Toast + dialogs ---------- */
#notice{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:var(--ink);color:#fff;border-radius:14px;padding:14px 20px;max-width:90vw;font-weight:700;box-shadow:0 10px 30px rgba(0,0,0,.25);z-index:50}
#notice:empty{display:none}
#payroll-dialog,#signout-dialog,#account-dialog,#crew-dialog,#receipt-dialog{border:0;border-radius:24px;padding:24px;color:var(--ink);box-shadow:0 24px 60px rgba(0,0,0,.28)}
#payroll-dialog{width:min(540px,calc(100% - 28px));max-height:calc(100% - 32px);overflow:auto}
#signout-dialog{width:min(440px,calc(100% - 28px))}
#account-dialog,#crew-dialog{width:min(500px,calc(100% - 28px))}
#receipt-dialog{width:min(400px,calc(100% - 28px));max-height:calc(100% - 32px);overflow:auto}
#payroll-dialog::backdrop,#signout-dialog::backdrop,#account-dialog::backdrop,#crew-dialog::backdrop,#receipt-dialog::backdrop{background:rgba(26,26,26,.5)}
#payroll-dialog input{min-height:48px}
#payroll-dialog .chips:last-child{margin-bottom:0}
#signout-dialog .chips{justify-content:flex-end;margin-bottom:0}

/* receipt (57 mm thermal) — layout unchanged */
.receipt-paper{width:57mm;max-width:100%;box-sizing:border-box;margin:0 auto;padding:3mm 2.5mm;color:#111;background:#fff;font:12px/1.35 system-ui,sans-serif;border:1px solid #EFEFEC;border-radius:8px}
.receipt-brand{display:grid;gap:3px;text-align:center;margin-bottom:8px}
.receipt-brand strong{font-size:13px}
.receipt-meta,.receipt-items{padding:6px 0;border-bottom:1px dashed #EFEFEC}
.receipt-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;margin:3px 0;break-inside:avoid}
.receipt-row>span:first-child{overflow-wrap:anywhere}
.receipt-row>span:last-child{text-align:right;white-space:nowrap}
.receipt-row small{display:block;font-size:10px}
.receipt-total{margin-top:8px;font-size:13px}
.receipt-footer{border-top:1px dashed #EFEFEC;padding-top:7px;margin-top:8px;text-align:center;break-inside:avoid}
.receipt-actions{justify-content:flex-end;margin-bottom:0}

/* ---------- iPad portrait and smaller ---------- */
@media (max-width:900px){
  :root{--gutter-right:16px}
  body.pin-page{--gutter:16px}
  header{gap:10px 12px}
  .toolbar #shift-controls{margin-left:0}
  .split{grid-template-columns:minmax(0,1fr)}
  main>.between{align-items:flex-start;flex-direction:column;margin-bottom:12px}
  /* Register: keep the cart pinned to the bottom of the screen */
  body:has(nav button[data-page="register"].active) .split>aside.panel{position:sticky;bottom:12px;z-index:4;max-height:42vh;margin-bottom:0;box-shadow:0 -8px 30px rgba(0,0,0,.12)}
}
@media (max-width:760px){
  .brand small{display:none}
  .badge{display:none}
  .panel{padding:16px}
  .cards{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
}

/* ================= Instructions V5 ================= */
/* Sidebar toggle: simple chevron inside the sidebar */
.nav-top{display:flex;justify-content:flex-end;margin-bottom:6px}
nav .nav-items{margin-bottom:auto}
nav{justify-content:flex-start}
body:not(.nav-open) .nav-top{justify-content:center}
#nav-toggle{position:static;width:40px;height:40px;min-height:40px;padding:0;border:0;border-radius:10px;background:#2E2E2C;color:#fff;display:grid;place-items:center;box-shadow:none}
#nav-toggle:hover{background:#3A3A37;color:#fff}
#nav-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transform:rotate(180deg)}
body.nav-open #nav-toggle svg{transform:none}
.icon{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Register: line between vehicle size and service category */
.chips[aria-label="Vehicle size"]{padding-bottom:18px;border-bottom:1px solid #EFEFEC;margin-bottom:16px}

/* Crew attendance */
.attendance-head{margin-bottom:8px}
.attendance-head h2{margin:0}
.attendance-sub{margin-bottom:14px;align-items:baseline}
.attendance-sub p{margin:0}
.link-button{min-height:auto;padding:2px 0;border:0;border-radius:4px;background:none;color:var(--ink);font-weight:600;text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:2px;white-space:nowrap}
.link-button:hover{background:none;border:0;color:#000}
.attendance-choices .chips{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.attendance-choices .crew-tile{position:relative;justify-content:space-between;min-height:60px;padding:10px 18px;font-size:17px;font-weight:600}
.crew-tile input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.crew-tile .crew-check{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;visibility:hidden}
.crew-tile:has(:checked) .crew-check{visibility:visible}
.crew-tile:has(:focus-visible){outline:3px solid var(--yellow);outline-offset:2px}
.attendance-note{margin:14px 0}

/* Opening cash */
.opening-cash{margin-top:20px;padding-top:20px;border-top:1px solid #EFEFEC}
.opening-cash h3{margin:0 0 6px;font-size:19px}
.opening-cash>p{margin:0}
.money-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}
.money-field{margin:0;gap:8px;grid-template-columns:minmax(0,1fr);min-width:0}
.money-input{width:100%;min-width:0}
.field-label{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700}
.money-input{display:flex;align-items:center;gap:8px;min-height:56px;padding:0 16px;border:1px solid #DADAD5;border-radius:12px;background:#fff}
.money-input:focus-within{border-color:var(--soft-line);box-shadow:0 0 0 3px rgba(255,196,0,.3)}
.money-input>span{color:var(--muted);font-weight:600}
.money-input input{flex:1;min-width:0;min-height:52px;padding:0;border:0;background:transparent;font-size:18px;outline:none}
.money-input input:focus-visible{outline:none}
.field-help{font-size:13px;font-weight:500;color:var(--muted)}

/* Cash vault & bank deposits */
.vault-panel h2{margin-bottom:16px}
.hero-stat{display:flex;flex-direction:column;gap:6px;padding:20px 22px;border-radius:16px;background:var(--tile);margin-bottom:20px}
.hero-stat span{color:var(--muted);font-weight:600;font-size:15px}
.hero-stat strong{font-size:40px;letter-spacing:-.02em;line-height:1.1}
.hero-stat.dark{background:var(--ink)}
.hero-stat.dark span{color:#BDBDB7}
.hero-stat.dark strong{color:#fff}
.vault-deposit h3{margin:0 0 4px;font-size:17px}
.vault-deposit>p,.vault-deposit form>p{margin:0 0 10px}
.inline-money{display:flex;align-items:flex-end;gap:12px}
.inline-money .money-field{flex:1}
.inline-money button{min-height:56px}
.history-title{margin:22px 0 4px;padding-top:20px;border-top:1px solid #EFEFEC;font-size:17px}
.history-table th:nth-child(3),.history-table td:nth-child(3){text-align:right}

/* Shift expenses */
.expenses-panel .money-grid{margin:0 0 4px}
.money-grid>.field{min-width:0;margin:0}
.money-grid select,select#expense-category{width:100%;min-height:58px}
.paid-from{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:6px 0 0}
.paid-from button{min-height:56px}
.expenses-panel .field{margin:12px 0}
.expense-remarks textarea{width:100%}
.deduct-card{display:flex;gap:12px;align-items:flex-start;padding:16px 18px;border-radius:14px;background:var(--tile);margin:14px 0;cursor:pointer}
.deduct-card input{width:20px;height:20px;min-height:0;margin:2px 0 0;accent-color:var(--ink);flex:none}
.deduct-card>span{display:flex;flex-direction:column;gap:4px}
.deduct-card strong{font-size:16px}
.form-actions{display:flex;justify-content:flex-end}
.recorded-head{margin-top:20px;padding-top:18px;border-top:1px solid #EFEFEC}
.recorded-head h3{margin:0;font-size:17px}
.empty-state{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;padding:26px}
.empty-state .icon{width:28px;height:28px;color:var(--muted)}

/* Shift sales */
.sales-table td{vertical-align:top}
.sales-table th:nth-child(4),.sales-table td:nth-child(4){text-align:right}
.sale-method{display:block;margin-top:4px}
.receipt-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;font-weight:500;white-space:nowrap}
.sales-table th,.history-table th{white-space:nowrap}
.receipt-button .icon{width:18px;height:18px}

/* Shift summary */
.summary-panel .hero-stat{margin-bottom:14px}
.summary-panel .hero-stat strong{font-size:38px}
.summary-rows{display:flex;flex-direction:column;gap:12px;padding:6px 4px 16px;color:var(--muted);font-size:15px}
.summary-rows span:last-child{color:var(--ink)}
.summary-eligible{padding:16px 4px;border-top:1px solid #EFEFEC;font-size:16px}
.split>aside.panel.summary-panel .stats{margin:4px 0 18px;padding-bottom:18px;border-bottom:1px solid #EFEFEC}
.summary-panel .commission-title{font-size:18px;margin-top:6px}
#close{display:flex;align-items:center;justify-content:center;gap:10px}
#close .icon{width:18px;height:18px}

/* Checkout */
.link-back{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:4px 0;border:0;background:none;color:var(--muted);font-weight:500}
.link-back:hover{background:none;border:0;color:var(--ink)}
.link-back .icon{width:18px;height:18px}
.panel #back-cart{margin-bottom:6px}
.checkout-panel h2{margin:18px 0 4px}
.checkout-panel h2+.quiet{margin:0 0 14px}
.chips[aria-label="Payment method"] button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:110px;font-size:17px;font-weight:600}
.pay-icon{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
div.checkout-cashier{margin-top:22px;padding-top:18px;border-top:1px solid #EFEFEC}
.checkout-cashier .quiet{display:flex;align-items:center;gap:8px;font-size:15px}

/* Receipt */
#receipt-dialog{width:min(460px,calc(100% - 28px))}
#receipt-title{text-align:center;margin-bottom:6px}
.receipt-status{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--ok);font-weight:600;margin:0 0 16px}
.receipt-status svg{width:20px;height:20px}
.receipt-status circle{fill:var(--ok)}
.receipt-status path{fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.receipt-paper{width:auto;max-width:100%;padding:22px 24px;border:1px solid #EFEFEC;border-radius:12px;color:var(--ink);font:14px/1.55 Manrope,system-ui,sans-serif}
.receipt-brand{padding-bottom:14px;margin-bottom:0;border-bottom:1px solid #EFEFEC}
.receipt-brand strong{font-size:17px}
.receipt-meta,.receipt-items{padding:14px 0;border-bottom:1px solid #EFEFEC}
.receipt-row{margin:6px 0}
.receipt-row small{color:var(--muted);font-size:13px;margin-top:2px}
.receipt-total{margin-top:14px;font-size:16px}
.receipt-footer{border-top:1px solid #EFEFEC;padding-top:14px;margin-top:14px;line-height:1.7}
.receipt-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
#print-receipt{display:flex;align-items:center;justify-content:center;gap:8px}
#print-receipt svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

@media (max-width:700px){
  .money-grid,.paid-from{grid-template-columns:minmax(0,1fr)}
  .inline-money{flex-direction:column;align-items:stretch}
}

/* ================= Instructions V6 ================= */
/* Sidebar toggle: chevron centred in its square */
#nav-toggle{justify-content:center;align-content:center;justify-items:center}
#nav-toggle svg{display:block;margin:0 auto}

/* Expense category: custom arrow, same inset as the ₱ in the amount box */
.select-wrap{position:relative;display:block}
.select-wrap select{appearance:none;-webkit-appearance:none;width:100%;padding:0 48px 0 16px;background:#fff}
.select-wrap::after{content:"";position:absolute;right:20px;top:50%;width:8px;height:8px;border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:translateY(-70%) rotate(45deg);pointer-events:none}

/* Close shift: amounts as label-left / amount-right rows like the commission table */
.amount-rows{display:flex;flex-direction:column;margin:16px 0 8px}
.amount-rows .between{padding:12px 4px;border-bottom:1px solid #EFEFEC;font-size:15px}
.amount-rows .between span{color:var(--muted)}
.amount-rows .between:first-child{border-top:1px solid #EFEFEC}
.close-expected{background:none;padding:0;border-radius:0;margin:16px 0 8px}
.close-cash h3{margin:18px 0 0;font-size:17px}
.close-cash .money-field{margin:14px 0}
.close-actions{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;margin-top:16px}
.close-actions button{white-space:nowrap}

/* Shift summary tiles: amounts sit at the lower right */
.summary-panel .stat{display:flex;flex-direction:column;justify-content:space-between;min-height:116px}
.summary-panel .stat strong{align-self:flex-end;text-align:right;margin-top:12px}

/* ================= Instructions V7: dashboard ================= */
.dash-filters{margin:8px 0 18px}
.dash-filters .chips{margin:0}
.dash-filters .report-dates{margin:12px 0 0}
.split.dash-grid{grid-template-columns:minmax(0,1.35fr) minmax(300px,1fr)}
@media (max-width:900px){.split.dash-grid{grid-template-columns:minmax(0,1fr)}}
.dash-col{display:flex;flex-direction:column;gap:16px;min-width:0}
.dash-col>.panel{margin:0}
.dash-card h2{margin-bottom:16px}
.dash-card .hero-stat{margin-bottom:12px}
.split .dash-stats,.dash-stats{grid-template-columns:repeat(2,minmax(0,1fr));margin:0}
.dash-company{margin-top:18px;padding-top:18px;border-top:1px solid #EFEFEC;font-size:16px;font-weight:600}
.dash-company strong{font-size:22px}
.dash-table th:not(:first-child),.dash-table td:not(:first-child){text-align:right}
.dash-table tr:last-child td{border-bottom:0}
.dash-bars{display:flex;flex-direction:column;gap:16px}
.dash-bar .between{font-size:15px}
.dash-bar progress{-webkit-appearance:none;appearance:none;display:block;width:100%;height:10px;margin-top:8px;border:0;border-radius:999px;background:#EFEFEC;overflow:hidden}
.dash-bar progress::-webkit-progress-bar{background:#EFEFEC;border-radius:999px}
.dash-bar progress::-webkit-progress-value{background:var(--yellow);border-radius:999px}
.dash-bar progress::-moz-progress-bar{background:var(--yellow);border-radius:999px}
.dash-total{margin-top:18px;padding-top:18px;border-top:1px solid #EFEFEC;font-size:18px;font-weight:700}
.dash-total strong{font-size:20px}
.dash-row{padding:9px 0;font-size:15px}
.dash-row span{color:var(--muted)}
.dash-row strong{font-weight:600}
.dash-subtitle{margin:14px 0 4px;padding-top:16px;border-top:1px solid #EFEFEC;font-size:18px}
.dash-note{margin:14px 0 10px;padding-top:14px;border-top:1px solid #EFEFEC}
.dash-empty{text-align:center;margin:0}
.dash-donut{position:relative;width:200px;margin:4px auto 20px}
.dash-donut svg{display:block;width:100%;height:auto}
.dash-donut figcaption{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.dash-donut figcaption span{font-size:12px;color:var(--muted);font-weight:600}
.dash-donut figcaption strong{font-size:20px}
.dash-legend{display:flex;flex-direction:column;gap:12px;font-size:15px}
.dash-legend span{display:flex;align-items:center;gap:10px}
.dash-legend i{display:inline-block;width:12px;height:12px;border-radius:50%}
.dash-legend strong{font-weight:600}
.dot-F6C445{background:#F6C445}
.dot-2E2E2C{background:#2E2E2C}
.dot-C9C9C3{background:#C9C9C3}
.dot-8B8B85{background:#8B8B85}

/* ===== Dashboard follow-up: selector in the top bar, dates on the right ===== */
#shift-controls[hidden],#status[hidden],#business-date[hidden],#dash-controls[hidden],#dash-dates[hidden]{display:none!important}
.dash-periods{order:1;display:inline-flex;flex-wrap:wrap;gap:4px;padding:4px;background:#EFEFEC;border-radius:14px}
.dash-periods button{min-height:40px;padding:8px 16px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-weight:500}
.dash-periods button:hover{background:rgba(255,255,255,.6);border:0}
.dash-periods button.active,.dash-periods button.active:hover{background:#fff;color:var(--ink);border:0;box-shadow:0 1px 3px rgba(0,0,0,.14);font-weight:600}
.dash-dates{order:3;margin-left:auto;display:flex;align-items:center;gap:8px;font-size:16px}
.dash-date-button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;font-weight:600}
.dash-date-button .icon{width:18px;height:18px}
main>h1+p{margin-bottom:20px}
.dash-summary-rows{padding:6px 0 14px;margin-bottom:16px;border-bottom:1px solid #EFEFEC}
.dash-summary-rows .dash-row{font-size:16px}
.dash-company-tile{margin:0}
.dash-company-tile strong{font-size:30px}
.legend-label>span{display:flex;flex-direction:column;gap:2px}
.legend-label small{font-size:13px;color:var(--muted);font-weight:500}
.dash-legend{gap:16px}

/* ===== V7 feedback: date weight + right-aligned big amounts ===== */
#business-date,.dash-dates strong,.dash-date-button{font-weight:600}
.hero-stat strong{align-self:flex-end;text-align:right}

/* ================= Instructions V8: payroll ================= */
.advance-date-row{padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid #EFEFEC}
.advance-date-row .quiet{font-size:15px}
.advance-pick-title{margin:0 0 10px;font-size:15px}
.chips.advance-crew{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;margin:0}
.crew-pick{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:56px;padding:10px 16px;font-size:16px;font-weight:600;text-align:left}
.crew-pick .crew-check{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;visibility:hidden;flex:none}
.crew-pick[aria-pressed="true"] .crew-check{visibility:visible}
#advance-fields.advance-fields{margin-top:16px;padding-top:16px;border-top:1px solid #EFEFEC}
#advance-fields .money-field{margin:0 0 12px}
.payroll-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.payroll-filter{flex:1 1 200px}
.payroll-filter select{min-height:48px}
.week-picker{gap:6px;flex-wrap:nowrap}
.week-step{min-width:44px;padding:0 10px}
.payout-date-note{font-size:13px;margin:8px 0 8px}
.payroll-table table{font-size:14px}
.payroll-table th{white-space:nowrap}
.balance-button{min-height:36px;padding:4px 10px;border:1px solid transparent;border-radius:10px;background:transparent;font-weight:600;white-space:nowrap}
.balance-button.is-due{background:var(--soft);border-color:var(--soft-line)}
.balance-button:not(.is-due){color:var(--muted)}
.balance{color:var(--muted)}
.payroll-rows{margin-bottom:12px}
.payroll-breakdown{display:grid;grid-template-columns:auto minmax(0,1fr);gap:20px;align-items:center}
.payroll-breakdown .dash-donut{width:170px;margin:0}
.history-item{padding:12px 0;border-bottom:1px solid #EFEFEC}
.history-item:last-child{border-bottom:0}
.history-item>span{display:flex;flex-direction:column;gap:2px}
.history-item small{font-size:13px}
@media (max-width:700px){.payroll-breakdown{grid-template-columns:minmax(0,1fr)}.payroll-breakdown .dash-donut{margin:0 auto}}

/* ================= Instructions V9 ================= */
/* Week arrows: same chevron size as the sidebar toggle */
.week-step{display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0}
.chevron{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* Salary advance: Paid from laid out exactly like Shift expenses */
#advance-fields .field{margin:12px 0}
#advance-fields .money-field{margin:0 0 12px}
.payout-date-note{line-height:1.6}
.payout-date-note strong{color:var(--ink);font-weight:600}

/* ================= Settings restyle ================= */
.add-person{display:flex;align-items:center;gap:10px;max-width:520px;margin:0 0 12px}
.name-input{flex:1;display:flex;align-items:center;gap:10px;min-height:48px;padding:0 14px;border:1px solid #DADAD5;border-radius:12px;background:#fff;font-weight:500}
.name-input:focus-within{border-color:var(--soft-line);box-shadow:0 0 0 3px rgba(255,196,0,.3)}
.name-input .icon{color:var(--muted);width:20px;height:20px}
.name-input input{flex:1;min-width:0;min-height:46px;padding:0;border:0;background:transparent;outline:none}
.name-input input:focus-visible{outline:none}
.icon-button{display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border-radius:12px}
.icon-button .icon{width:20px;height:20px}
.add-button{width:48px;min-width:48px;height:48px;min-height:48px}
.add-button .icon{width:22px;height:22px;stroke-width:2.4}
.icon-button.is-off{background:#F4F4F2;color:var(--muted)}
.icon-button.is-danger:hover{background:var(--err-soft);border-color:#F5C2C2;color:#B91C1C}
.icon-button.is-alert{background:var(--err-soft);border-color:var(--err-soft);color:#B91C1C}
.action-icons{gap:8px;flex-wrap:nowrap}
.status-pills{gap:6px}
.status-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:999px;font-size:13px;font-weight:600;white-space:nowrap}
.status-pill::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.status-pill.is-ok{background:var(--ok-soft);color:var(--ok)}
.status-pill.is-alert{background:var(--err-soft);color:#B91C1C}
.status-pill.is-muted{background:#EFEFEC;color:var(--muted)}
.settings-rosters table td:last-child,.settings-rosters table th:last-child{width:1%;min-width:0}
.settings-rosters table td{padding:10px 8px}

/* ===== Settings follow-up ===== */
/* no divider under the last row of any table */
tbody tr:last-child td{border-bottom:0}
.icon-spacer{display:inline-block;width:44px;min-width:44px;height:44px;flex:none}
.settings-rosters table td:last-child .action-icons button{margin:0}
.settings-bottom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.settings-bottom>.panel{margin:0}
.settings-card h2{margin-bottom:6px}
.settings-card>p{margin:0 0 18px}
.settings-card h3{margin:0 0 10px;font-size:16px}
.with-icon{display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:0 20px}
.with-icon .icon{width:20px;height:20px}
.card-divider{height:1px;margin:20px 0;background:#EFEFEC}
.file-picker{position:relative;display:flex;align-items:center;gap:14px;padding:6px;margin:0 0 14px;border:1px solid #DADAD5;border-radius:12px;background:#fff;cursor:pointer;font-size:15px;font-weight:500}
.file-picker:focus-within{border-color:var(--soft-line);box-shadow:0 0 0 3px rgba(255,196,0,.3)}
.file-picker input{position:absolute;opacity:0;width:1px;height:1px;min-height:0;padding:0;pointer-events:none}
.file-button{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:9px;background:#F4F4F2;font-weight:600;white-space:nowrap}
.file-button .icon{width:20px;height:20px}
.file-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
.stack-buttons{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
@media (max-width:900px){.settings-bottom{grid-template-columns:minmax(0,1fr)}}

@media print{
  @page{margin:0}
  body.printing-receipt{margin:0;background:#fff}
  body.printing-receipt> :not(#receipt-dialog){display:none!important}
  body.printing-receipt #receipt-dialog{position:static;display:block;width:57mm;max-width:57mm;height:auto;max-height:none;overflow:visible;border:0;border-radius:0;margin:0;padding:0;box-shadow:none}
  body.printing-receipt #receipt-dialog::backdrop{display:none}
  body.printing-receipt #receipt-title,body.printing-receipt .receipt-actions{display:none}
  body.printing-receipt .receipt-paper{margin:0;border:0;border-radius:0}
  body.printing-receipt .receipt-paper{width:57mm;max-width:57mm;padding:3mm 2.5mm;font:12px/1.35 system-ui,sans-serif;color:#111}
  body.printing-receipt .receipt-brand,body.printing-receipt .receipt-meta,body.printing-receipt .receipt-items,body.printing-receipt .receipt-footer{border-color:#444;border-style:dashed}
  body.printing-receipt .receipt-status{display:none}
}
