[hidden] { display: none !important; }
/* Admin portal */
:root {
  --ink: #2a1a22; --ink-2: #55434b; --muted: #85747c; --line: #eadfe2; --panel: #f7f1f2; --bg: #fcfafa;
  --side: #2a1a22; --side-2: #3d2a33; --brand: #8a3b5c; --brand-dark: #5f2840; --brand-tint: #f5e6ec; --accent: #d9a07a; --accent-tint: #f8eadf;
  --ok: #1d7a4a; --warn: #b26b00; --err: #b42318; --err-tint: #fbe4e1; --radius: 8px;
  --f: 'DM Sans', system-ui, sans-serif; --display: 'Fraunces', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
/* Phones (1.0.3): iOS zooms the page in when a field's text is under 16px, and on a quick double tap. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
a, button, input, select, textarea, label, summary, [role=button], [data-tab], .click, .kcard { touch-action: manipulation; }
@media (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea { font-size: 16px !important; }
}
body { margin: 0; font: 400 15px/1.5 var(--f); color: var(--ink); background: var(--bg); }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.boot { padding: 40px; color: var(--muted); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 32px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.r { text-align: right; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.hide { display: none !important; }

/* Shell */
.shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); color: #e0d2d8; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.side-brand { color: #fff; font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.1; padding: 4px 10px 18px; text-decoration: none; display: block; }
.side-brand small { display: block; font-size: 12px; font-weight: 500; font-stretch: 100%; color: #ae9aa3; margin-top: 4px; }
.side nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; color: #e0d2d8; text-decoration: none; border-radius: var(--radius); font-weight: 500; }
.side nav a:hover { background: var(--side-2); color: #fff; }
.side nav a.on { background: var(--side-2); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.side nav .grp { font-size: 12px; color: #a08c95; padding: 16px 10px 4px; }
.side .badge { background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 800; border-radius: 99px; padding: 0 7px; }
.side-foot { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid var(--side-2); font-size: 13px; }
.side-foot a { color: #e0d2d8; }
.main { min-width: 0; }
.topline { display: none; }
.page { padding: 24px 28px 60px; max-width: 1400px; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin-right: auto; }
.page-head:has(> h1 + .pill, > h1 + .status-select) h1 { margin-right: 0; }
.page-head > h1 + .pill, .page-head > h1 + .status-select { margin-right: auto; }
.crumb { font-size: 14px; margin-bottom: 6px; display: inline-block; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 30% 0 0; z-index: 60; transform: translateX(-105%); transition: transform .2s; height: 100%; }
  .menu-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .topline { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--side); color: #fff; position: sticky; top: 0; z-index: 40; }
  .topline button { background: var(--side-2); border: 0; color: #fff; padding: 8px 12px; border-radius: var(--radius); }
  .page { padding: 18px 14px 60px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 650; font-size: 14px; padding: 8px 14px; border-radius: var(--radius); border: 1.5px solid var(--line); background: #fff; cursor: pointer; text-decoration: none; color: var(--ink); white-space: nowrap; line-height: 1.2; }
.btn:hover { border-color: var(--ink-2); }
.btn:disabled { opacity: .5; cursor: progress; }
.btn-p { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-p:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-a { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.btn-d { color: var(--err); }
.btn-d:hover { border-color: var(--err); }
.btn-sm { padding: 4px 9px; font-size: 13px; }
.btn-link { border: 0; background: none; padding: 4px; color: var(--brand); text-decoration: underline; font-weight: 500; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Panels / grid */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel + .panel { margin-top: 16px; }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 1100px) { .g-side { grid-template-columns: minmax(0, 1fr); } .g3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 700px) { .g2, .g3 { grid-template-columns: minmax(0, 1fr); } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 16px; }
.stat { padding: 14px 18px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }
.stat.warn b { color: var(--warn); }
.stat a { color: inherit; text-decoration: none; }

/* Tables */
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 650; color: var(--muted); font-size: 13px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--panel); white-space: nowrap; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #fbf6f7; }
.tbl td.r, .tbl th.r { text-align: right; }
.panel .tbl th { background: none; padding-left: 0; }
.panel .tbl td { padding-left: 0; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* Pills */
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--panel); color: var(--ink-2); white-space: nowrap; }
.pill.dot::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.p-ok { background: var(--brand-tint); color: var(--brand-dark); }
.p-warn { background: var(--accent-tint); color: #7a4a00; }
.p-err { background: var(--err-tint); color: var(--err); }
.p-blue { background: #e3ecfb; color: #1e4fa8; }
.p-purple { background: #efe5fb; color: #6b21a8; }

/* Forms */
.fld { display: block; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.fld > input, .fld > select, .fld > textarea, .inp { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1.5px solid #d9cbd0; border-radius: var(--radius); background: #fff; font-size: 15px; font-weight: 400; color: var(--ink); }
.fld > input[type=checkbox] { display: inline; width: auto; margin: 0 6px 0 0; }
.fld > input[type=color] { padding: 2px; height: 38px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
.chk input { width: 17px; height: 17px; accent-color: var(--brand); margin: 0; }
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.f4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 700px) { .f2, .f3, .f4 { grid-template-columns: minmax(0, 1fr) !important; } } /* !important: some forms set columns inline */
.help { font-size: 13px; color: var(--muted); font-weight: 400; margin: 2px 0 0; }
.search { min-width: 240px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: 7px 12px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.seg button + button { border-left: 1.5px solid var(--line); }
.seg button.on { background: var(--ink); color: #fff; }

/* Toggle switch */
.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.switch input { appearance: none; width: 40px; height: 22px; background: #d4c6cb; border-radius: 99px; position: relative; flex: none; cursor: pointer; transition: background .15s; margin-top: 2px; }
.switch input::after { content: ''; position: absolute; width: 18px; height: 18px; background: #fff; border-radius: 50%; top: 2px; left: 2px; transition: left .15s; }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { left: 20px; }
.switch b { display: block; font-size: 15px; }
.switch span { font-size: 13px; color: var(--muted); }

/* Mode cards (quote toggle) */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .modes { grid-template-columns: 1fr; } }
.mode { border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; display: block; }
.mode:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.mode input { accent-color: var(--brand); }
.mode b { font-size: 16px; }
.mode p { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); }

/* Modal */
dialog#modal { border: 0; border-radius: 8px; padding: 0; width: min(680px, 100% - 20px); max-height: 92vh; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog#modal.wide { width: min(980px, 100% - 20px); }
dialog::backdrop { background: rgba(42,26,34,.45); }
.modal-in { display: flex; flex-direction: column; max-height: 92vh; }
.modal-h { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-b { padding: 18px 20px; overflow-y: auto; }
.modal-f { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; background: var(--panel); }
.modal-f .left { margin-right: auto; }
.x { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }

/* Toasts */
#toasts { position: fixed; bottom: 18px; right: 18px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.2); font-weight: 600; max-width: 360px; }
.toast.err { background: var(--err); }

/* Client detail */
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.timeline li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--line); margin-top: 6px; }
.timeline li.t-note::before { background: var(--accent); }
.timeline li.t-status::before { background: var(--brand); }
.timeline li.t-payment::before { background: var(--ok); }
.timeline .when { font-size: 12px; color: var(--muted); }
.tabs { display: flex; gap: 2px; border-bottom: 1.5px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 9px 14px; font-weight: 650; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-color: var(--brand); }
.status-select { font-weight: 700; padding: 6px 10px; border-radius: var(--radius); border: 1.5px solid var(--c); color: var(--c); background: #fff; }

/* Line items */
.items { width: 100%; border-collapse: collapse; }
.items th { font-size: 12px; color: var(--muted); text-align: left; padding: 4px 6px 4px 0; font-weight: 650; }
.items td { padding: 4px 6px 4px 0; vertical-align: top; }
.items input, .items select { width: 100%; padding: 7px 8px; border: 1.5px solid #d9cbd0; border-radius: var(--radius); font-size: 14px; }
.totals { margin-left: auto; width: min(320px, 100%); margin-top: 12px; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .t { font-weight: 800; font-size: 20px; border-top: 2px solid var(--ink); padding-top: 8px; margin-top: 4px; }

/* Bars (reports) */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 200px; padding-top: 18px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bar i { display: block; width: 100%; max-width: 46px; background: var(--brand); border-radius: 3px 3px 0 0; position: relative; min-height: 2px; }
.bar i span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; font-style: normal; color: var(--ink-2); white-space: nowrap; font-weight: 650; }
.bar small { font-size: 11px; color: var(--muted); margin-top: 4px; }
.hbar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 90px; gap: 10px; align-items: center; font-size: 14px; padding: 4px 0; }
.hbar .track { height: 12px; background: var(--panel); border-radius: 3px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--brand); }

.login { min-height: 100vh; display: grid; place-items: center; background: var(--side); padding: 20px; }
.login form { background: #fff; padding: 28px; border-radius: 8px; width: min(380px, 100%); display: grid; gap: 14px; }
.login h1 { font-size: 28px; }
.err-msg { color: var(--err); font-weight: 600; font-size: 14px; min-height: 1em; margin: 0; }
.notice { background: var(--accent-tint); border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: var(--radius); font-size: 14px; margin-bottom: 14px; }
.notice.ok { background: var(--brand-tint); border-color: var(--brand); }
.sig { max-width: 260px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.photo-grid img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); width: 100%; }
.months-pick { display: flex; flex-wrap: wrap; gap: 4px; }
.months-pick label { font-size: 12px; border: 1.5px solid var(--line); border-radius: 4px; padding: 3px 6px; cursor: pointer; }
.months-pick label:has(input:checked) { background: var(--brand); color: #fff; border-color: var(--brand); }
.months-pick input { display: none; }
.drag { cursor: grab; color: var(--muted); padding: 0 6px; user-select: none; }

/* Installed app (public/js/pwa.js): offline bar, update prompt */
.net-bar { background: var(--warn); color: #fff; padding: calc(8px + env(safe-area-inset-top)) 14px 8px; font-size: 14px; font-weight: 600; text-align: center; }
.update-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 90; background: var(--ink); color: #fff; padding: 10px 12px 10px 16px; border-radius: 8px; display: flex; gap: 12px; align-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.25); width: max-content; max-width: calc(100vw - 24px); }
.update-bar button { background: var(--accent); color: var(--ink); border: 0; border-radius: var(--radius); padding: 8px 12px; font-weight: 700; cursor: pointer; }

/* Front desk / Stylist switch (admin sidebar and mobile top bar) */
.view-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--side-2); border-radius: 8px; padding: 3px; margin: 0 4px 14px; }
.view-switch a { text-align: center; padding: 7px 6px; border-radius: 6px; color: #e0d2d8; text-decoration: none; font-weight: 650; font-size: 14px; }
.view-switch a.on { background: #fff; color: var(--ink); }
.view-switch a:not(.on):hover { color: #fff; background: rgba(255,255,255,.08); }
.topline .t-field { margin-left: auto; background: var(--accent); color: var(--ink); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: var(--radius); font-size: 14px; }
@media (max-width: 860px) { .topline { padding-top: calc(10px + env(safe-area-inset-top)); } }

/* ---------- SalonPro ---------- */
.dot-c { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--brand)); vertical-align: 0; margin-right: 6px; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-block; font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 99px; background: var(--panel); color: var(--ink-2); }
.chip.warn { background: var(--err-tint); color: var(--err); }
.chip.gold { background: var(--accent-tint); color: #7a4a1c; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.list li:last-child { border-bottom: 0; }
.list li .grow { flex: 1; min-width: 0; }
.list a { text-decoration: none; color: inherit; }
.list a:hover b { color: var(--brand); }
.appt-line { border-left: 4px solid var(--c, var(--brand)); padding-left: 10px; cursor: pointer; }

/* Day calendar: one column per stylist */
.cal-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.cal-bar h1 { margin-right: auto; font-size: 26px; }
.cal-bar input[type=date] { padding: 6px 8px; border: 1.5px solid var(--line); border-radius: var(--radius); }
.days-strip { display: grid; grid-template-columns: repeat(14, minmax(46px, 1fr)); gap: 4px; margin-bottom: 12px; overflow-x: auto; }
.days-strip button { border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius); padding: 4px 2px; cursor: pointer; font-size: 12px; line-height: 1.25; color: var(--ink-2); }
.days-strip button b { display: block; font-size: 15px; color: var(--ink); }
.days-strip button i { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.days-strip button.on { border-color: var(--brand); background: var(--brand-tint); }
.days-strip button.today b { color: var(--brand); }
.days-strip button.closed { background: repeating-linear-gradient(-45deg, #fff, #fff 5px, var(--panel) 5px, var(--panel) 10px); }
.dayview { --hour: 64px; display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(150px, 1fr)); overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.dv-head { position: sticky; top: 0; z-index: 3; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 10px; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.dv-head small { font-weight: 500; color: var(--muted); display: block; font-size: 12px; }
.dv-times { position: relative; border-right: 1px solid var(--line); }
.dv-times span { position: absolute; right: 6px; font-size: 11px; color: var(--muted); transform: translateY(-50%); }
.dv-col { position: relative; border-right: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(#f5eef0 1px, transparent 1px); background-size: 100% var(--hour), 100% calc(var(--hour) / 2); cursor: copy; }
.dv-col:last-child { border-right: 0; }
.dv-off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(-45deg, rgba(133,116,124,.10), rgba(133,116,124,.10) 6px, rgba(133,116,124,.18) 6px, rgba(133,116,124,.18) 12px); pointer-events: none; }
.dv-off span { position: absolute; top: 4px; left: 6px; font-size: 11px; color: var(--muted); font-weight: 600; }
.dv-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--err); z-index: 2; pointer-events: none; }
.ap { position: absolute; left: 3px; right: 3px; border-radius: 6px; padding: 4px 7px; font-size: 12px; line-height: 1.3; overflow: hidden; cursor: pointer; background: color-mix(in srgb, var(--c) 16%, #fff); border-left: 4px solid var(--c); color: var(--ink); z-index: 1; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.ap:hover { z-index: 4; box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.ap b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap .t { color: var(--ink-2); }
.ap.st-requested { background: repeating-linear-gradient(-45deg, var(--accent-tint), var(--accent-tint) 6px, #fff 6px, #fff 12px); border-left-color: var(--accent); }
.ap.st-arrived { box-shadow: inset 0 0 0 2px var(--c); }
.ap.st-completed { opacity: .62; }
.ap.st-no_show, .ap.st-cancelled { opacity: .5; text-decoration: line-through; }
.ap .flag { position: absolute; top: 3px; right: 5px; font-size: 11px; }
.ap .t i { font-style: normal; color: var(--muted); }
.ap.st-pending { background: repeating-linear-gradient(-45deg, #eef0f6, #eef0f6 6px, #fff 6px, #fff 12px); border-left-style: dashed; }
.ap-proc { position: absolute; left: 10px; right: 10px; border: 1px dashed #c9b6be; border-radius: 6px; background: repeating-linear-gradient(90deg, rgba(245,238,240,.8), rgba(245,238,240,.8) 4px, rgba(255,255,255,.6) 4px, rgba(255,255,255,.6) 8px); pointer-events: none; z-index: 0; overflow: hidden; }
.ap-proc span { font-size: 11px; color: var(--muted); padding: 2px 6px; display: block; white-space: nowrap; }
@media (max-width: 700px) { .svc-rows .row { grid-template-columns: minmax(0, 1fr) 110px 60px 70px 30px; } }
@media (max-width: 760px) { .dayview { --hour: 56px; } }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: 4px; }

/* Appointment editor: service rows */
.svc-rows .row { display: grid; grid-template-columns: minmax(0, 1fr) 150px 76px 84px 30px; gap: 6px; align-items: center; margin-bottom: 6px; }
.svc-rows .row input, .svc-rows .row select { width: 100%; padding: 7px 8px; border: 1.5px solid #d9cbd0; border-radius: var(--radius); font-size: 14px; }
.times-pick { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; max-height: 150px; overflow-y: auto; }
.times-pick button { border: 1.5px solid var(--line); background: #fff; border-radius: 6px; padding: 4px 8px; font-size: 13px; cursor: pointer; }
.times-pick button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.conflict { background: var(--err-tint); color: var(--err); padding: 8px 12px; border-radius: var(--radius); font-size: 14px; }

/* Checkout */
.co { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
@media (max-width: 1050px) { .co { grid-template-columns: minmax(0, 1fr); } }
.co-lines .line { display: grid; grid-template-columns: minmax(0, 1fr) 60px 90px 84px 150px 30px; gap: 6px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.co-lines .line input, .co-lines .line select { width: 100%; padding: 6px 8px; border: 1.5px solid #d9cbd0; border-radius: var(--radius); font-size: 14px; }
.co-lines .line .nm b { display: block; font-size: 14px; }
.co-lines .line .nm small { color: var(--muted); }
.co-lines .head { font-size: 12px; color: var(--muted); font-weight: 650; padding: 4px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .co-lines .line { grid-template-columns: minmax(0, 1fr) 54px 80px 30px; } .co-lines .line .opt { display: none; } }
.prod-pick { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 8px; }
.prod-pick button { display: flex; width: 100%; justify-content: space-between; gap: 10px; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 8px 10px; cursor: pointer; text-align: left; font-size: 14px; }
.prod-pick button:hover { background: var(--panel); }
.pay-box .big { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tip-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.tip-btns button { flex: 1; border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius); padding: 8px 6px; cursor: pointer; font-weight: 650; }
.tip-btns button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pay-methods button { border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius); padding: 10px 6px; cursor: pointer; font-weight: 700; }
.pay-methods button:hover { border-color: var(--brand); }
.pay-list div { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 14px; }

/* Formula cards */
.formula { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 10px; background: #fff; font-size: 14px; }
.formula .f-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.formula .f-mix { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--panel); padding: 6px 8px; border-radius: 6px; margin: 6px 0; white-space: pre-wrap; }
.alert-box { background: var(--err-tint); color: var(--err); border-radius: var(--radius); padding: 8px 12px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }

/* Staff hours and services */
.hours-grid { display: grid; grid-template-columns: 110px 60px 1fr 1fr; gap: 6px 10px; align-items: center; font-size: 14px; }
.hours-grid input[type=time] { padding: 5px 6px; border: 1.5px solid #d9cbd0; border-radius: var(--radius); width: 100%; }
.svc-grid { display: grid; grid-template-columns: 26px minmax(0, 1fr) 90px 90px; gap: 6px 10px; align-items: center; font-size: 14px; }
.svc-grid input[type=number] { width: 100%; padding: 5px 6px; border: 1.5px solid #d9cbd0; border-radius: var(--radius); }
.svc-grid .cat { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 8px; }
.avatar-sm { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; background-size: cover; background-position: center; flex: none; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gal-grid figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gal-grid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.gal-grid figcaption { padding: 6px 8px; font-size: 13px; display: flex; justify-content: space-between; gap: 6px; align-items: center; }
/* Checkout: today's clients */
.today-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.today-pick { display: flex; align-items: center; gap: 8px; text-align: left; border: 1px solid var(--line); border-left: 4px solid var(--c, var(--brand)); border-radius: var(--radius); background: #fff; padding: 8px 10px; cursor: pointer; font: inherit; color: inherit; }
.today-pick:hover { background: var(--panel); }
.today-pick .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
