/* Solenne — visual system. Calm, precise, spacious. Gold is an accent, never body text. */
:root {
  --bg: #F6F6F8; --surface: #FFFFFF; --surface-2: #FAFAFB;
  --text: #1D1D1F; --text-2: #6E6E73; --line: #E6E6EA; --line-2: #D2D2D7;
  --accent: #B49A6A; --accent-ink: #7A6337; --accent-soft: #F5F0E6;
  --ok: #1B6E3F; --ok-bg: #E7F4EC; --warn: #7A5200; --warn-bg: #FFF3D6; --bad: #B3261E; --bad-bg: #FCEBEA; --info: #0A5BB5; --info-bg: #E8F1FC;
  --r-sm: 8px; --r: 12px; --r-lg: 18px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.04), 0 1px 1px rgba(0,0,0,.03);
  --shadow-2: 0 12px 40px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.06);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-w: 216px; --cart-w: 384px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 13px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.right { text-align: right; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid rgba(180,154,106,.75); outline-offset: 2px; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ── Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--surface); font-weight: 550; white-space: nowrap; transition: background .15s, transform .08s, border-color .15s; }
.btn:hover { background: var(--surface-2); border-color: #BDBDC4; }
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--text); border-color: var(--text); color: #fff; }
.btn.primary:hover { background: #000; }
.btn.gold { background: var(--accent-soft); border-color: #E2D6BD; color: #4E3F20; }
.btn.danger { color: var(--bad); border-color: #EBC7C4; }
.btn.danger.solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.quiet { border-color: transparent; background: transparent; }
.btn.quiet:hover { background: rgba(0,0,0,.05); }
.btn.lg { min-height: 52px; font-size: 16px; padding: 0 22px; border-radius: 14px; }
.btn.sm { min-height: 32px; padding: 0 10px; font-size: 13px; border-radius: var(--r-sm); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--text-2); }
.icon-btn:hover { background: rgba(0,0,0,.06); color: var(--text); }
.link { background: none; border: 0; padding: 0; color: var(--accent-ink); font-weight: 550; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(122,99,55,.4); }

/* ── Form controls */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span, .label { font-size: 13px; font-weight: 550; color: var(--text-2); }
.field .hint { font-size: 12.5px; font-weight: 400; color: var(--text-2); }
.input, select.input, textarea.input { width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 84px; resize: vertical; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(180,154,106,.22); }
.input.money { text-align: right; font-variant-numeric: tabular-nums; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row > .grow, .grow { flex: 1; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--text); flex: none; }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-2); }
.search .input { padding-left: 40px; border-radius: 999px; background: var(--surface); }
.seg { display: inline-flex; padding: 3px; background: #E9E9ED; border-radius: 11px; }
.seg button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; font-weight: 550; color: var(--text-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 550; color: var(--text-2); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: #4E3F20; }

/* ── Status pills: always text + color (+ icon), never color alone */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #EDEDF0; color: #3A3A3C; white-space: nowrap; }
.pill svg.i { width: 14px; height: 14px; stroke-width: 2; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.gold { background: var(--accent-soft); color: #5E4C26; }

/* ── App shell */
.app { display: grid; grid-template-columns: var(--nav-w) 1fr; height: 100dvh; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 18px 12px 14px; background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; }
.brand { padding: 6px 12px 18px; }
.brand b { display: block; font-size: 19px; font-weight: 500; letter-spacing: .22em; color: var(--text); }
.brand span { font-size: 11px; letter-spacing: .2em; color: var(--accent-ink); font-weight: 600; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 10px; text-decoration: none; color: #3A3A3C; font-weight: 520; }
.nav a:hover { background: #F2F2F5; }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.nav a[aria-current="page"] svg { color: var(--accent-ink); }
.nav .sep { height: 1px; background: var(--line); margin: 10px 8px; }
.nav .spacer { flex: 1; }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.topbar { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 24px; flex: none; }
.topbar h1 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-btn { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 550; }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: #5E4C26; font-size: 12px; font-weight: 700; }
.view { flex: 1; min-height: 0; overflow: auto; padding: 4px 24px 32px; }
.view.flush { padding: 0; overflow: hidden; display: flex; }
.view.flush > .view-host { display: flex; flex: 1; min-width: 0; min-height: 0; }
.banner { display: flex; align-items: center; gap: 10px; padding: 9px 24px; font-size: 13.5px; font-weight: 550; flex: none; }
.banner.offline { background: var(--bad-bg); color: var(--bad); }
.banner.demo { background: var(--info-bg); color: var(--info); }
.banner.warn { background: var(--warn-bg); color: var(--warn); }
.menu { position: absolute; z-index: 60; min-width: 220px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-2); }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 9px; background: none; text-align: left; }
.menu button:hover { background: #F2F2F5; }

/* ── Surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-1); }
.card + .card { margin-top: 16px; }
.stack { display: grid; gap: 16px; }
.stack > .card, .stack > .stats { margin: 0; }
.card > h2 { margin-bottom: 14px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input, .toolbar select.input { width: auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.stat { padding: 14px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.stat .k { font-size: 12.5px; color: var(--text-2); font-weight: 550; }
.stat .v { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; margin-top: 2px; }
.stat.key .v { color: var(--accent-ink); }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--text-2); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--surface); }
table.t td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--surface-2); }
table.t .right { text-align: right; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: auto; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; }
.kv .total { font-weight: 650; font-size: 16px; padding-top: 8px; border-top: 1px solid var(--line); }
.empty { display: grid; place-items: center; gap: 6px; padding: 48px 20px; text-align: center; color: var(--text-2); }
.empty svg.i { width: 34px; height: 34px; stroke-width: 1.3; color: #B8B8BF; }
.empty b { color: var(--text); font-size: 16px; }
.skeleton { border-radius: 10px; background: linear-gradient(90deg, #ECECEF 25%, #F5F5F7 37%, #ECECEF 63%); background-size: 400% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.err { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r); background: var(--bad-bg); color: var(--bad); font-weight: 550; font-size: 14px; margin-bottom: 12px; }
.note-box { padding: 10px 12px; border-radius: var(--r); background: var(--accent-soft); color: #4E3F20; font-size: 13.5px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px; }

/* ── Overlays */
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(20,20,22,.34); animation: fade .16s ease; }
.modal { display: flex; flex-direction: column; width: min(520px, 100%); max-height: calc(100dvh - 40px); background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-2); animation: pop .18s ease; }
.modal.wide { width: min(760px, 100%); }
.modal.xwide { width: min(980px, 100%); }
.modal > header, .sheet > header { display: flex; align-items: center; gap: 8px; padding: 16px 12px 12px 22px; flex: none; }
.modal > header h2, .sheet > header h2 { flex: 1; font-size: 18px; }
.modal-body { padding: 4px 22px 18px; overflow: auto; }
.modal > footer, .sheet > footer { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line); flex: none; flex-wrap: wrap; }
.overlay.side { place-items: stretch end; padding: 0; }
.sheet { display: flex; flex-direction: column; width: min(480px, 100vw); height: 100dvh; background: var(--surface); box-shadow: var(--shadow-2); animation: slide .2s ease; }
.sheet .modal-body { flex: 1; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.toasts { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; gap: 10px; align-items: center; padding: 11px 16px; border-radius: 14px; background: #1D1D1F; color: #fff; font-weight: 550; box-shadow: var(--shadow-2); animation: pop .18s ease; }
.toast.bad { background: var(--bad); }
.section { padding: 16px 0; border-top: 1px solid var(--line); }
.section:first-child { border-top: 0; padding-top: 4px; }
.section > h3 { margin-bottom: 10px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
button.list-row { width: 100%; background: none; border-width: 0 0 1px; text-align: left; border-radius: 0; }
button.list-row:hover { background: var(--surface-2); }

/* ── Sign-in, setup, lock */
.gate { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: var(--bg); overflow: auto; }
.gate.lock { background: rgba(246,246,248,.86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.gate-card { width: min(400px, 100%); padding: 34px 30px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-2); }
.gate-card.wide { width: min(560px, 100%); }
.gate-brand { text-align: center; margin-bottom: 22px; }
.gate-brand b { display: block; font-size: 26px; font-weight: 400; letter-spacing: .3em; margin-right: -.3em; }
.gate-brand span { font-size: 12px; letter-spacing: .22em; color: var(--accent-ink); font-weight: 600; }
.gate-card h1 { text-align: center; font-size: 18px; margin-bottom: 4px; }
.gate-card .sub { text-align: center; color: var(--text-2); margin-bottom: 20px; }

/* ── Sell */
.sell { display: grid; grid-template-columns: 1fr var(--cart-w); width: 100%; min-height: 0; }
.catalog { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 0 24px; }
.catalog-head { display: grid; gap: 12px; padding: 4px 0 14px; flex: none; }
.grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 16px; grid-auto-rows: max-content; align-content: start; padding: 2px 2px 32px; }
.product { display: flex; flex-direction: column; gap: 0; padding: 0; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-1); transition: transform .12s, box-shadow .15s, border-color .15s; }
.product:hover { border-color: var(--line-2); box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.product:active { transform: scale(.975); }
.product.added { animation: added .5s ease; }
@keyframes added { 30% { box-shadow: 0 0 0 4px rgba(180,154,106,.55); } }
.product .ph { position: relative; flex: none; aspect-ratio: 1 / 1; width: 100%; background: linear-gradient(160deg, #F7F3EB, #EFEAE0); display: grid; place-items: center; overflow: hidden; }
.product .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.product .ph svg { width: 38%; height: 38%; stroke: #C9B990; stroke-width: 1.1; }
.product .ph .badge { position: absolute; left: 8px; top: 8px; }
.product .meta { padding: 10px 12px 12px; display: grid; gap: 2px; }
.product .name { font-weight: 560; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.product .price { font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 550; }
.cart { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-left: 1px solid var(--line); }
.cart-head { padding: 14px 18px 12px; border-bottom: 1px solid var(--line); flex: none; display: grid; gap: 10px; }
.cust-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 12px; border: 1px dashed var(--line-2); border-radius: 14px; background: var(--surface-2); text-align: left; }
.cust-btn.set { border-style: solid; background: var(--surface); }
.cust-btn .who { flex: 1; min-width: 0; }
.cust-btn .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-lines { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 18px; }
.line { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.thumb { width: 48px; height: 48px; border-radius: 10px; background: linear-gradient(160deg, #F7F3EB, #EFEAE0); object-fit: cover; display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 22px; height: 22px; stroke: #C9B990; }
.line .nm { font-weight: 560; line-height: 1.3; }
.line .sub { font-size: 13px; color: var(--text-2); }
.line .amt { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.line .controls { grid-column: 2 / 4; display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.stepper { flex: none; display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.stepper button { width: 36px; height: 34px; border: 0; background: var(--surface); display: grid; place-items: center; }
.stepper button:hover { background: #F2F2F5; }
.stepper span { min-width: 30px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-foot { flex: none; padding: 14px 18px 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; background: var(--surface); }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; font-variant-numeric: tabular-nums; }
.totals .grand { font-size: 20px; font-weight: 680; padding-top: 8px; margin-top: 3px; border-top: 1px solid var(--line); }
.sp h3 { margin: 0; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 3px 12px 3px 4px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 550; }
.sp-chip .avatar { width: 28px; height: 28px; }
.sp-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.sp-chip b { color: #4E3F20; }
.sp-add { min-height: 34px; padding: 3px 8px; margin-top: 6px; font-size: 13px; }
.team-today { margin-top: auto; padding: 12px 0 0; border-top: 1px solid var(--line); }
.nav a:last-of-type { margin-bottom: 12px; }
.tt-head { padding: 0 12px 6px; font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.tt-empty { padding: 2px 12px 6px; font-size: 12.5px; color: var(--text-2); }
.tt-person { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 3px 12px; border: 0; border-radius: 10px; background: none; text-align: left; }
.tt-person:hover { background: #F2F2F5; }
.tt-dot { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--surface); background: #B4B4BB; }
.tt-dot.clocked_in { background: #2E9E5B; } .tt-dot.on_break { background: #D99A1C; }
.tt-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.tt-name b { font-weight: 560; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-name span { font-size: 11.5px; color: var(--text-2); }
.upd { display: inline-flex; align-items: center; gap: 8px; }
.upd .btn.busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.board { display: grid; gap: 10px; max-width: 760px; }
.place { display: grid; grid-template-columns: 56px 44px 1fr auto; align-items: center; gap: 14px; min-height: 68px; padding: 10px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.place .rank { font-size: 17px; font-weight: 680; color: var(--text-2); }
.place .avatar { width: 40px; height: 40px; font-size: 14px; }
.place .who b { font-size: 16.5px; font-weight: 620; }
.place .amt { font-size: 20px; font-weight: 660; letter-spacing: -.01em; }
.place.top { border-color: #E2D6BD; }
.place.top1 { background: linear-gradient(90deg, #F5EEDD, #FBF8F1); box-shadow: 0 0 0 1px var(--accent); min-height: 80px; }
.place.top1 .rank, .place.top2 .rank, .place.top3 .rank { color: var(--accent-ink); }
.place.top2 { background: #FAF6EC; } .place.top3 { background: #FCFAF4; }
.view table.t.dense th, .view table.t.dense td { padding-left: 10px; padding-right: 10px; }
.place.open { border-style: dashed; background: transparent; }
.bc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.bc-wrap.designer { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
.bc-preview { padding: 18px; border-radius: 14px; background: #ECECEF; display: grid; place-items: center; }
.bc-f { display: flex; align-items: flex-end; gap: 6px; } .bc-f .field { margin-bottom: 8px; } .bc-f .check { margin-bottom: 18px; }
.input.color { padding: 3px; min-height: 38px; }
.designer h3 { margin: 0 0 8px; } .designer input[type=range] { width: 100%; }
/* The business card. One definition for the preview, the print and the PDF. */
.bcard { position: relative; width: 3.5in; height: 2in; max-width: 100%; box-sizing: border-box; padding: .22in .28in; background: var(--bc-bg, #fff); color: var(--bc-text, #1d1d1f); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.14); line-height: 1.25; }
.bcard.bc-a-left { text-align: left; align-items: stretch; } .bcard.bc-a-center { text-align: center; } .bcard.bc-a-right { text-align: right; }
.bc-brand { font-size: 15pt; letter-spacing: .3em; font-weight: 400; margin-right: -.3em; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.bc-rule { height: 1px; background: var(--bc-accent, #C9B58A); margin: .07in 0 .12in; flex: none; }
.bc-who { min-height: 0; }
.bc-name { font-size: var(--bc-name, 11.5pt); font-weight: 650; letter-spacing: .01em; overflow-wrap: anywhere; }
.bc-title { font-size: calc(var(--bc-size, 8pt) * .95); color: var(--bc-accent, #7A6337); filter: brightness(.72); letter-spacing: .08em; text-transform: uppercase; margin-top: 2pt; overflow-wrap: anywhere; }
.bc-lines { margin-top: auto; display: flex; flex-direction: column; gap: 1.5pt; font-size: var(--bc-size, 8pt); opacity: .92; overflow-wrap: anywhere; }
.bc-logo { position: absolute; height: var(--bc-logo, .5in); max-width: 1.6in; object-fit: contain; }
.bc-logo-top-left { top: .16in; left: .2in; } .bc-logo-top-right { top: .16in; right: .2in; } .bc-logo-top-center { top: .14in; left: 50%; transform: translateX(-50%); } .bc-logo-bottom-right { bottom: .16in; right: .2in; }
.bc-centered { align-items: center; } .bc-centered .bc-rule { width: 1.1in; } .bc-centered .bc-lines { align-items: center; }
.bc-a-center .bc-rule { margin-left: auto; margin-right: auto; } .bc-a-right .bc-lines { align-items: flex-end; } .bc-a-center .bc-lines { align-items: center; }
.bc-band { padding-top: .62in; } .bc-band .bc-brand { position: absolute; left: 0; right: 0; top: 0; height: .46in; line-height: .46in; padding: 0 .28in; margin: 0; background: var(--bc-accent, #C9B58A); color: var(--bc-bg, #fff); font-size: 13pt; }
.bc-band .bc-rule { display: none; }
.bc-minimal .bc-brand { order: 3; font-size: 8.5pt; letter-spacing: .26em; margin-top: .06in; color: var(--bc-accent, #C9B58A); filter: brightness(.72); }
.bc-minimal .bc-rule { order: 2; margin: .08in 0 0; } .bc-minimal .bc-who { order: 0; } .bc-minimal .bc-lines { order: 1; margin-top: .1in; }
.bc-sheet-prev { overflow: hidden; height: 3.3in; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.bc-sheet-prev .bc-sheet { display: grid; grid-template-columns: 3.5in 3.5in; grid-auto-rows: 2in; width: 7in; transform: scale(.32); transform-origin: top left; margin: 10px; }
.bc-sheet-prev .bc-cell { outline: 1px dashed #9a9a9a; } .bc-sheet-prev .bcard { box-shadow: none; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar.lg { width: 52px; height: 52px; font-size: 18px; flex: none; }
.tt-clock { margin: 0 0 10px; justify-content: center; min-height: 40px; }
.tt-av { position: relative; flex: none; display: inline-flex; }
.tgt { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; font-weight: 560; }
.tgt label { cursor: text; }
.tgt-in { display: inline-flex; align-items: center; gap: 6px; flex: none; } .tgt-in .input { width: 104px; min-height: 38px; text-align: right; font-weight: 600; cursor: text; }
.tgt-in .btn { min-height: 38px; }
.item-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.item-head img, .item-ph { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; flex: none; color: var(--accent); }
.item-min { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-weight: 600; color: var(--text-2); }
@media (max-width: 1180px) { .tt-clock span { display: none; } .tt-clock { padding: 0; } .tt-head { font-size: 9px; text-align: center; padding: 0 0 6px; letter-spacing: .02em; } .tt-person { justify-content: center; padding: 3px 0; } .tt-name, .tt-empty { display: none; } .upd .long { display: none; } }
@media (max-width: 900px) { .bc-wrap.designer { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .team-today .tt-head, .team-today .tt-person, .team-today .tt-empty { display: none; } .team-today { margin: 0; padding: 0; border: 0; display: flex; align-items: center; } .tt-clock { margin: 0 4px; min-width: 52px; } .bc-wrap { grid-template-columns: 1fr; } .place { grid-template-columns: 40px 36px 1fr auto; padding: 8px 12px; gap: 10px; } }
.chip.is-brand { color: #4E3F20; border-color: #D9CBA9; font-weight: 620; }
.chip.sm { min-height: 30px; padding: 0 11px; font-size: 13px; }
.chip .n { opacity: .6; font-weight: 500; margin-left: 2px; font-variant-numeric: tabular-nums; }
.subchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 2px 2px; }
@media (max-width: 1100px) { .subchips { max-height: 116px; overflow-y: auto; overscroll-behavior: contain; } }
.sub-sec { font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); margin: 0 2px 0 8px; }
/* Supplier packaging photos: the whole pack stays visible, on white. */
.product .ph.fit { background: #fff; }
.product .ph.fit img { object-fit: contain; padding: 6%; box-sizing: border-box; }
.item-head.big { align-items: flex-start; }
.item-head.big img { width: 240px; height: 240px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-sizing: border-box; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 6px; } .bar i { display: block; height: 100%; background: var(--accent); transition: width .3s; }
@media (max-width: 720px) { .item-head.big { flex-direction: column; } .item-head.big img { width: 100%; height: auto; aspect-ratio: 1; } }
.cart-bar { display: none; }
.method-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 12px 0 16px; }
.method { min-height: 64px; padding: 8px 4px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); font-weight: 600; display: grid; place-items: center; gap: 2px; font-size: 13.5px; }
.method[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.due { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.due b { font-size: 28px; font-weight: 680; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 6px auto 12px; }
.done-mark svg { width: 30px; height: 30px; stroke-width: 2.4; }

/* ── Calendar */
.cal { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.cal-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 4px 24px 14px; flex: none; }
.cal-bar .title { font-size: 17px; font-weight: 650; min-width: 200px; }
.cal-scroll { flex: 1; min-height: 0; overflow: auto; margin: 0 24px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.tg { display: grid; min-width: 640px; position: relative; }
.tg-head { position: sticky; top: 0; z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: center; font-weight: 600; font-size: 13.5px; }
.tg-head.today b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; background: var(--text); color: #fff; }
.tg-head.closed { color: var(--text-2); }
.tg-times { position: relative; border-right: 1px solid var(--line); }
.tg-times span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11.5px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tg-times span:first-child { transform: translateY(3px); }
.tg-col { position: relative; border-right: 1px solid var(--line); }
.tg-col:last-child { border-right: 0; }
.tg-col.closed { background: repeating-linear-gradient(135deg, #FAFAFB, #FAFAFB 8px, #F3F3F5 8px, #F3F3F5 16px); }
.slot { position: absolute; left: 0; right: 0; border: 0; border-top: 1px solid var(--line); background: none; padding: 0; }
.slot.half { border-top-style: dotted; border-top-color: #EFEFF2; }
.slot:hover, .slot.drop { background: var(--accent-soft); }
.slot:hover::after { content: "+ Book"; position: absolute; left: 8px; top: 3px; font-size: 12px; font-weight: 600; color: var(--accent-ink); }
.appt { position: absolute; z-index: 2; padding: 5px 8px 5px 11px; border-radius: 9px; border: 1px solid #DCCFB3; background: #FBF7EE; text-align: left; overflow: hidden; font-size: 12.5px; line-height: 1.3; box-shadow: var(--shadow-1); }
.appt::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.appt b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appt.s-confirmed { background: var(--info-bg); border-color: #BCD4F3; } .appt.s-confirmed::before { background: var(--info); }
.appt.s-arrived { background: var(--warn-bg); border-color: #EBD69B; } .appt.s-arrived::before { background: #C28A00; }
.appt.s-completed { background: var(--ok-bg); border-color: #B9DDC6; } .appt.s-completed::before { background: var(--ok); }
.appt.s-cancelled, .appt.s-no_show { background: #F4F4F6; border-color: var(--line-2); color: var(--text-2); border-style: dashed; } .appt.s-cancelled::before, .appt.s-no_show::before { background: #A8A8AE; }
.appt.s-cancelled b { text-decoration: line-through; }
.appt.dragging { opacity: .5; }
.appt .l2 { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appt .one { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; line-height: 1.25; }
.appt .one b { display: inline; font-size: 12.5px; }
.cal-scroll.fit { overflow: auto; }
.cal-scroll.fit .appt { font-size: 13px; padding-top: 4px; }
.cal-count { font-size: 14px; padding: 5px 12px; }
.daylist { display: grid; }
.dl-row { display: grid; grid-template-columns: 170px minmax(150px, 1.2fr) minmax(150px, 1.4fr) minmax(120px, 1fr) auto; gap: 14px; align-items: center; min-height: 62px; padding: 8px 18px 8px 22px; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); text-align: left; position: relative; }
.dl-row:last-child { border-bottom: 0; }
.dl-row:hover { background: var(--surface-2); }
.dl-row::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 10px; width: 4px; border-radius: 2px; background: var(--accent); }
.dl-row.s-confirmed::before { background: var(--info); } .dl-row.s-arrived::before { background: #C28A00; } .dl-row.s-completed::before { background: var(--ok); }
.dl-row.s-cancelled::before, .dl-row.s-no_show::before { background: #A8A8AE; } .dl-row.s-cancelled b { text-decoration: line-through; }
.dl-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-row .small { display: block; overflow: hidden; text-overflow: ellipsis; }
.dl-time { font-size: 15px; }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--bad); z-index: 3; pointer-events: none; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 640px; }
.month .dow { padding: 10px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--text-2); border-bottom: 1px solid var(--line); }
.mday { min-height: 108px; padding: 6px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); text-align: left; display: flex; flex-direction: column; gap: 3px; }
.mday:nth-child(7n) { border-right: 0; }
.mday:hover { background: var(--surface-2); }
.mday.out { color: #B4B4BA; background: var(--surface-2); }
.mday .d { font-weight: 600; font-size: 13px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 13px; }
.mday.today .d { background: var(--text); color: #fff; }
.mday { justify-content: flex-start; align-items: stretch; }
.mday-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.mday-n { font-size: 11px; font-weight: 600; color: var(--text-2); }
.mday .ev { font-size: 11.5px; padding: 2px 6px; border-radius: 6px; background: var(--accent-soft); color: #4E3F20; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Receipt (one component, used on screen and in print) */
.receipt { font-variant-numeric: tabular-nums; color: #000; background: #fff; font-size: 13px; line-height: 1.45; }
.receipt .r-brand { text-align: center; font-size: 20px; letter-spacing: .28em; margin-right: -.28em; font-weight: 500; }
.receipt .r-biz { text-align: center; font-size: 12px; margin-top: 4px; overflow-wrap: anywhere; }
.receipt .r-rule { border-top: 1px dashed #999; margin: 10px 0; }
.receipt .r-row { display: flex; justify-content: space-between; gap: 12px; }
.receipt .r-row > :first-child { min-width: 0; overflow-wrap: anywhere; }
.receipt .r-row > :last-child { flex: none; text-align: right; }
.receipt .r-item { margin-bottom: 6px; break-inside: avoid; }
.receipt .r-sub { font-size: 12px; color: #444; }
.receipt .r-total { font-size: 16px; font-weight: 700; margin-top: 4px; }
.receipt .r-stamp { text-align: center; font-weight: 700; letter-spacing: .14em; border: 1.5px solid #000; padding: 4px; margin: 8px 0; }
.receipt .r-foot { text-align: center; font-size: 12px; margin-top: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.receipt .r-policy { text-align: center; font-weight: 700; letter-spacing: .04em; margin-top: 2px; }
.receipt .r-sign { margin-top: 34px; break-inside: avoid; }
.receipt .r-sign-line { border-top: 1px solid #000; }
.receipt .r-sign-cap { text-align: center; font-size: 11px; color: #444; margin-top: 3px; }
.receipt-frame { max-width: 360px; margin: 0 auto; padding: 22px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-1); }
#print-root { display: none; }

/* ── Responsive */
@media (max-width: 1180px) {
  :root { --nav-w: 78px; --cart-w: 340px; }
  .brand { padding: 4px 0 14px; text-align: center; } .brand b { font-size: 11px; letter-spacing: .12em; } .brand span { display: none; }
  .nav { padding: 14px 8px; }
  .nav a { flex-direction: column; justify-content: center; gap: 3px; min-height: 56px; padding: 6px 2px; font-size: 10.5px; text-align: center; line-height: 1.15; }
  .nav a[aria-current="page"] { box-shadow: none; }
}
@media (max-width: 860px) {
  .sell { grid-template-columns: 1fr; }
  .cart { position: fixed; inset: 0; z-index: 40; border: 0; transform: translateY(102%); transition: transform .22s ease; }
  .sell.cart-open .cart { transform: none; }
  .cart-bar { display: flex; position: fixed; z-index: 30; left: 12px; right: 12px; bottom: 76px; }
  .cart-close { display: inline-grid !important; }
  .grid { padding-bottom: 150px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .app { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .nav { order: 2; flex-direction: row; padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); overflow-x: auto; gap: 2px; }
  .nav .brand, .nav .sep, .nav .spacer { display: none; }
  .nav a { min-width: 56px; flex: 1; }
  .topbar { padding: 0 14px; min-height: 54px; } .view { padding: 4px 14px 24px; } .catalog { padding: 0 14px; }
  .cal-bar { padding: 4px 14px 12px; } .cal-scroll { margin: 0 14px 14px; }
  .user-btn .nm, .day-pill .long { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: repeat(3, 1fr); }
  .dl-row { grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 14px 10px 22px; }
  .dl-row .dl-who, .dl-row .dl-svc, .dl-row .dl-emp { grid-column: 1; } .dl-row .pill { grid-row: 1; grid-column: 2; }
  .overlay { padding: 0; place-items: end stretch; }
  .modal, .modal.wide, .modal.xwide { width: 100%; max-height: 94dvh; border-radius: 20px 20px 0 0; }
  h1 { font-size: 19px; }
}
.cart-close { display: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── Print: only the receipt or report, never navigation or private panels */
@media print {
  html, body { height: auto; overflow: visible; background: #fff; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block; }
  #print-root.p80 { width: 72mm; }
  #print-root.p80 .receipt { font-size: 11px; }
  #print-root.p80 .receipt .r-brand { font-size: 16px; }
  #print-root.full { max-width: 6.6in; margin: 0 auto; }
  #print-root.full .receipt { font-size: 11.5pt; }
  #print-root .print-each + .print-each { break-before: page; page-break-before: always; }
  #print-root .receipt .r-row, #print-root .receipt .r-sign { break-inside: avoid; }
  #print-root .report { font-size: 11pt; color: #000; }
  #print-root .report h1 { font-size: 16pt; margin-bottom: 4pt; }
  #print-root .report h3 { color: #000; margin: 12pt 0 4pt; }
  #print-root .report table { width: 100%; border-collapse: collapse; }
  #print-root .report td, #print-root .report th { padding: 3pt 4pt; border-bottom: .5pt solid #999; text-align: left; }
  #print-root .report .right { text-align: right; }
  #print-root.card, #print-root.cards { margin: 0; }
  #print-root .bcard { width: 3.5in; height: 2in; max-width: none; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #print-root.card .bcard { page-break-after: avoid; }
  #print-root .bc-sheet { display: grid; grid-template-columns: 3.5in 3.5in; grid-auto-rows: 2in; width: 7in; margin: .5in auto 0; }
  #print-root .bc-cell { outline: .4pt dashed #9a9a9a; outline-offset: -.2pt; }
  .no-print { display: none !important; }
}
.overlay:has(.modal.over-gate) { z-index: 75; }
/* Products: selection bar and category pickers (1.6) */
.selbar { position: sticky; top: 8px; z-index: 6; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; padding: 10px 14px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent); }
.selbar b { margin-right: auto; }
td[data-pickcell] { cursor: default; } td[data-pickcell] input, th input[data-pick-all] { width: 18px; height: 18px; }
.subpick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-height: 132px; overflow-y: auto; }
.chip.pickable { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.chip.pickable:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: #4E3F20; }
.chip.pickable.locked { opacity: .7; cursor: default; }
.toolbar .check { flex: none; white-space: nowrap; } .toolbar .search.grow { flex: 1 1 200px; min-width: 180px; }
.tb-actions { display: flex; gap: 10px; flex-wrap: nowrap; margin-left: auto; } .tb-actions .btn { white-space: nowrap; } .toolbar .search .input { width: 100%; }
.stats.big3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; } .stats.big3 .v { font-size: 26px; } @media (max-width: 700px) { .stats.big3 { grid-template-columns: 1fr; } } .day-card { margin-bottom: 4px; }
.seg button[data-locked="true"] { color: var(--text-2); } .pin-dlg .modal-body .i, .emp-panel .seg .i { width: 14px; height: 14px; vertical-align: -2px; }
/* MasterPOS purchase history (1.8) */
.hist { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--surface); }
.hist > summary { list-style: none; cursor: pointer; padding: 10px 12px; display: grid; gap: 2px; }
.hist > summary::-webkit-details-marker { display: none; }
.hist-top { display: flex; align-items: center; gap: 8px; }
.hist-sum { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist[open] > summary { border-bottom: 1px solid var(--line); }
.hist-body { padding: 10px 12px 12px; }
.hist-lines td, .hist-lines th { padding: 6px 8px; font-size: 13px; }
.mp-files { display: grid; gap: 8px; }
.mp-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.mp-file > span:first-child { flex: 1; display: grid; gap: 2px; } .mp-file.off { opacity: .7; }
/* Appointment reminders (1.9) */
.rem-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.rem-count { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; }
.rem-count b { font-size: 15px; margin-right: 2px; }
.rem-count.ok { border-color: #BFDCC6; color: #1F6B3A; background: #EFF8F1; } .rem-count.bad { border-color: #EDC4C1; color: #A1332B; background: #FCF1F0; }
.rem-count.info { border-color: #C5D6EE; color: #2B5A9E; background: #F1F6FC; } .rem-count.warn { border-color: #EAD9A8; color: #7A5A10; background: #FBF6E6; }
.rem-count[aria-pressed="true"] { box-shadow: 0 0 0 2px currentColor inset; font-weight: 650; }
.rem-tag { display: inline-block; font-size: 10.5px; font-weight: 650; padding: 1px 6px; border-radius: 999px; vertical-align: 1px; border: 1px solid transparent; }
.rem-tag.rem-confirmed { background: #DDF1E2; color: #1F6B3A; } .rem-tag.rem-declined { background: #F8DAD7; color: #A1332B; } .rem-tag.rem-awaiting { background: #DCE8F8; color: #2B5A9E; }
.rem-tag.rem-unclear, .rem-tag.rem-failed { background: #F6E9BF; color: #7A5A10; } .rem-tag.rem-unsent { background: #ECECEE; color: #55555C; }
.dl-rem { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; white-space: normal; overflow: visible; } .dl-rem .pill { flex: none; }
/* Visits, next facial, layaway (1.10) */
.visits-link { font-size: 14px; } .visits-link b { font-size: 16px; }
.ptabs { display: inline-flex; }
.next-box { background: #FBF7EC; border: 1px solid #EADFBF; border-radius: 14px; padding: 14px; margin: 0 0 12px; }
.ok-box { background: #EFF8F1; border-color: #BFDCC6; color: #1F6B3A; margin-bottom: 10px; }
.lay-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 10px 0; }
.lay-nums > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.lay-nums span { font-size: 12px; color: var(--muted); } .lay-nums b { font-size: 18px; } .lay-nums small { font-size: 11px; }
.section.lay { border-top: 1px solid var(--line); padding-top: 12px; }

/* ── Historical entries, "Time unspecified", year jump */
.pill.hist { background: #EEF0F6; color: #3D4663; font-size: 10.5px; padding: 1px 7px; margin-left: 6px; }
.mday .ev.hist { background: #EEF0F6; color: #3D4663; }
.untimed { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.untimed .ut-h { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); margin-right: 4px; }
.ut-chip { display: inline-flex; align-items: center; gap: 2px; min-height: 34px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); cursor: pointer; font: inherit; color: inherit; }
.ut-chip:hover { border-color: var(--accent); }
.cal-year { display: inline-flex; align-items: center; gap: 6px; }
.cal-year input { width: 84px; min-height: 38px; padding: 4px 8px; }
.nav .nav-h { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); padding: 12px 12px 4px; }
.hist-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 980px) { .hist-grid { grid-template-columns: 1fr; } }
.pick-cal { border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.pick-cal .pc-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.pick-cal .pc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.pick-cal .pc-dow { text-align: center; font-size: 11.5px; color: var(--text-2); padding: 2px 0; }
.pick-cal .pc-day { min-height: 36px; border: 1px solid transparent; border-radius: 9px; background: var(--surface-2); cursor: pointer; font: inherit; color: inherit; }
.pick-cal .pc-day:hover { border-color: var(--accent); }
.pick-cal .pc-day[aria-pressed="true"] { background: var(--text); color: #fff; font-weight: 700; }
.pick-cal .pc-day.ahead { background: #F3F6FB; color: #3D4663; }
.pick-cal .pc-day.blank { visibility: hidden; }
.h-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.h-row .h-date { min-width: 190px; font-weight: 600; }
.h-row select.input { width: auto; min-height: 34px; padding: 2px 8px; }
.h-state { font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 8px; }
.h-state.new { background: var(--ok-bg, #E7F4EC); color: var(--ok, #1E6B3A); } .h-state.exists { background: #EEF0F6; color: #3D4663; }
.h-state.fix { background: var(--bad-bg, #FCEBEA); color: var(--bad); } .h-state.ask { background: var(--warn-bg); color: var(--warn); }
.h-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.h-sum div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; } .h-sum b { display: block; font-size: 22px; }
.h-cust { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.h-pick { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; max-height: 260px; overflow: auto; }
.h-pick button { text-align: left; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; font: inherit; color: inherit; }
.h-pick button:hover { background: var(--surface-2); }

/* Month view: who the facial is with, beside each customer */
.mday .ev { display: flex; align-items: baseline; gap: 6px; }
.mday .ev { white-space: normal; overflow: visible; }
.mday .ev .ev-who { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }   /* the full name stays readable; it wraps instead of being cut */
.mday .ev .ev-emp { flex: 0 0 auto; max-width: 48%; overflow: hidden; text-overflow: ellipsis; font-weight: 700; font-size: 10.5px; padding: 0 5px; border-radius: 5px; background: rgba(255,255,255,.75); }

.h-row .h-note { flex: 1 1 160px; min-width: 140px; min-height: 34px; padding: 2px 8px; }

/* 1.16: reminder quota, Print All, Send Reminders to All */
.quota-box { display: grid; gap: 4px; font-size: 13px; }
.quota-box .q-row { display: flex; justify-content: space-between; gap: 10px; }
.quota-box .q-row b.full { color: var(--danger, #b3261e); }
.quota-box .q-msg { color: var(--muted, #666); font-size: 12px; }
.bulk-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 12px 0; }
.bulk-sum > div { border: 1px solid var(--line, #e3e3e8); border-radius: 12px; padding: 10px 12px; }
.bulk-sum b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.bulk-sum span { font-size: 12px; color: var(--muted, #666); }
.mday .ev[data-appt] { cursor: pointer; }
.mday .ev[data-appt]:hover { outline: 1.5px solid var(--gold, #b89b5e); }

/* 1.16.1: Month — the reminder answer as the colour of the name (same colours as the Confirmed / Not attending / Awaiting reply tags); a green check on a completed facial */
.mday .ev.rem-confirmed, .month-legend .ev.rem-confirmed { background: #DDF1E2; color: #1F6B3A; }
.mday .ev.rem-declined, .month-legend .ev.rem-declined { background: #F8DAD7; color: #A1332B; }
.mday .ev.rem-awaiting, .month-legend .ev.rem-awaiting { background: #DCE8F8; color: #2B5A9E; }
.ev .ev-check { flex: 0 0 auto; color: #1F8A46; font-weight: 800; font-size: 13px; line-height: 1; }
.month-legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 2px 2px; }
.month-legend .ev { font-size: 11.5px; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: #4E3F20; display: inline-flex; gap: 5px; align-items: baseline; }
@media print { .month-legend { display: none; } }

/* 1.16.2: business card for a receipt (thermal) printer — solid black only */
.bc-slip { width: 72mm; max-width: 100%; box-sizing: border-box; border: 0.7mm solid #000; border-radius: 2.5mm; padding: 1mm 3mm; background: #fff; color: #000; text-align: center; font-family: Georgia, "Times New Roman", Times, serif; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.bc-slip .sl-part { padding: 3.5mm 0; }
.bc-slip .sl-part + .sl-part { border-top: 0.6mm dashed #000; }
.bc-slip .sl-brand { font-size: 17pt; letter-spacing: .12em; }
.bc-slip .sl-custom { font-size: 11.5pt; margin-top: 1mm; white-space: pre-line; }
.bc-slip .sl-name { font-size: 16pt; }
.bc-slip .sl-title { font-size: 10.5pt; letter-spacing: .08em; text-transform: uppercase; margin-top: .5mm; }
.bc-slip .sl-line { font-size: 13pt; }
.bc-slip .sl-web { font-size: 13pt; }
.bc-slip .sl-logo { display: block; max-width: 30mm; max-height: 18mm; margin: 0 auto 2mm; filter: grayscale(1) contrast(2.2); }
.bc-slip-prev { display: flex; justify-content: center; padding: 12px; background: var(--bg, #f3f3f5); border-radius: 12px; }
@media print { #print-root.slip { margin: 0; } #print-root.slip .bc-slip { width: 72mm; margin: 0 auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* 1.16.3: the slip is close to square, like a label, and fills the width of the roll */
.bc-slip { min-height: 66mm; display: flex; flex-direction: column; }
.bc-slip .sl-part { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; padding: 4mm 0; }
.bc-slip .sl-brand { font-size: 19pt; } .bc-slip .sl-name { font-size: 18pt; } .bc-slip .sl-line, .bc-slip .sl-web { font-size: 14.5pt; } .bc-slip .sl-title { font-size: 11pt; }

/* 1.16.5: the receipt printer's page is 72 mm wide — the slip is 68 mm, centred, at the top */
.bc-slip { width: 68mm; }
@media print { #print-root.slip .bc-slip { width: 68mm; margin: 0 auto; } }

/* 1.17: appointment card (same slip as the business card) */
.bc-slip.ap-slip .sl-part { padding: 3mm 0; }
.bc-slip .sl-cust { font-size: 15pt; }
.bc-slip .sl-date { font-size: 15.5pt; }
.bc-slip .sl-time { font-size: 21pt; margin: .5mm 0; }
.bc-slip.ap-slip .sl-custom { font-size: 11.5pt; white-space: pre-line; }

.bc-slip.ap-slip .sl-title + .sl-date, .bc-slip.ap-slip .sl-cust + .sl-date { margin-top: 2mm; }

/* 1.18: welcome letter — one ordinary page */
.wl { font-family: Georgia, "Times New Roman", serif; color: #1d1d1f; background: #fff; max-width: 6.4in; margin: 0 auto; padding: .35in .1in .2in; font-size: 12.5pt; line-height: 1.62; }
.wl-head { text-align: center; }
.wl-brand { font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif; font-size: 27pt; letter-spacing: .34em; font-weight: 400; padding-left: .34em; }
.wl-orn { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px 0 30px; color: #b89b5e; }
.wl-orn span { display: block; width: 1.1in; border-top: 1px solid #c9b58a; } .wl-orn i { font-style: normal; font-size: 11pt; }
.wl-date { text-align: right; color: #55555c; font-size: 11pt; margin-bottom: 22px; }
.wl-body p { margin: 0 0 13px; } .wl-body p.wl-dear { font-size: 15pt; margin-bottom: 16px; } .wl-body p.wl-sign { margin-top: 26px; font-style: italic; font-size: 13.5pt; line-height: 1.7; }
.wl-body ul { margin: 2px 0 15px; padding-left: 1.4em; } .wl-body li { margin: 0 0 8px; padding-left: 4px; } .wl-body li::marker { color: #b89b5e; }
.wl-foot { margin-top: 38px; padding-top: 12px; border-top: 1px solid #c9b58a; text-align: center; font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif; font-size: 9.5pt; letter-spacing: .06em; color: #55555c; }
.wl-foot i { font-style: normal; color: #b89b5e; margin: 0 9px; }
.wl-prev { background: #fff; border: 1px solid var(--line, #e3e3e8); border-radius: 12px; padding: 18px; }
@media print { #print-root.letter { margin: 0 auto; } #print-root.letter .wl { padding-top: .45in; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* 1.19: a star next to a new customer's name in the Calendar */
.cust-star { color: #C99700; font-weight: 700; margin-left: 3px; font-size: 1.05em; line-height: 1; }

/* 1.21: Reports */
.rep-bar { height: 10px; background: var(--bg, #f1f1f4); border-radius: 6px; overflow: hidden; }
.rep-bar span { display: block; height: 100%; background: var(--gold, #b89b5e); border-radius: 6px; min-width: 0; }
table.t tfoot td { border-top: 2px solid var(--line); background: var(--surface); }
table.t tr.sel td { background: var(--accent-soft, #f6efe0); }
table.t tr.muted td { color: var(--text-3, #9a9aa2); }
@media print { .rep-print .rep-bar, .rep-print button.link { color: inherit; } .rep-print .card { border: 0; padding: 0; margin-top: 14px; } .rep-print .stats { border: 1px solid #999; } }

/* 1.22: sale notifications set-up steps */
.notify-step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.notify-step:first-of-type { border-top: 0; padding-top: 0; }
.notify-step .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--bg, #f1f1f4); color: var(--text-2); }
.notify-step.done .n { background: #DDF1E2; color: #1F6B3A; }

/* Booking: the chosen day's appointments in a second window beside the form. */
.overlay.with-peek { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; overflow: auto; }
.overlay.with-peek > .modal { flex: 0 1 auto; }
.day-peek { display: flex; flex-direction: column; width: min(340px, 100%); max-height: calc(100dvh - 40px); align-self: center; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-2); }
.day-peek > header { padding: 16px 22px 8px; flex: none; }
.day-peek > header h2 { font-size: 18px; }
.day-peek .peek-body { padding: 4px 22px 18px; overflow: auto; }
.day-peek .peek-row { display: grid; gap: 1px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 7px; background: var(--surface-2); }
.day-peek .peek-row.me { border-color: var(--gold, #b89b62); }

/* Customer card: the actions of one receipt sit on their own line under it. */
.list-row:has(> .rc-actions) { flex-wrap: wrap; }
.rc-actions { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

/* Treatment completion form (same page as the welcome letter, plus a title, the client block and signature lines). */
.cf { font-size: 12pt; line-height: 1.55; }
.cf .cf-title { font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif; font-size: 13pt; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; text-align: center; margin: 4px 0 20px; color: #1d1d1f; }
.cf .cf-who { display: flex; flex-wrap: wrap; gap: 6px 34px; padding: 10px 0; margin-bottom: 18px; border-top: 1px solid #c9b58a; border-bottom: 1px solid #c9b58a; font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif; font-size: 10.5pt; }
.cf .cf-who span { color: #55555c; letter-spacing: .08em; text-transform: uppercase; font-size: 8.5pt; margin-right: 8px; }
.cf .cf-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin-top: 30px; break-inside: avoid; }
.cf .cf-line { margin-top: 26px; }
.cf .cf-fill { display: block; height: 26px; line-height: 24px; overflow: hidden; white-space: nowrap; border-bottom: 1px solid #1d1d1f; font-size: 12pt; padding: 0 2px; box-sizing: border-box; }
.cf .wl-body p.cf-lead { margin-bottom: 6px; }
.cf .cf-label { display: block; margin-top: 4px; font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif; font-size: 8.5pt; letter-spacing: .08em; text-transform: uppercase; color: #55555c; }
.cf .wl-foot { margin-top: 30px; }

/* ── Waivers */
.wv-banner { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.wv-h { margin: 22px 0 10px; font-size: 15px; }
.wv-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--muted, #6b6b73); margin-bottom: 8px; }
.wv-items, .wv-totals { width: 100%; border-collapse: collapse; font-size: 14px; }
.wv-items th { text-align: left; font-weight: 600; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted, #6b6b73); padding: 6px 6px; border-bottom: 1px solid var(--line); }
.wv-items td { padding: 7px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.wv-items .r, .wv-totals .r { text-align: right; white-space: nowrap; }
.wv-totals { margin-top: 6px; } .wv-totals td { padding: 4px 6px; }
.wv-totals .wv-total td { font-weight: 650; border-top: 1px solid var(--line); padding-top: 7px; }
.wv-sub { margin: 14px 0 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #6b6b73); }
.wv-sub .wv-dim { text-transform: none; letter-spacing: 0; font-weight: 400; }
.wv-dim { color: var(--muted, #6b6b73); font-weight: 400; }
.wv-who { display: flex; flex-wrap: wrap; gap: 6px 30px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.wv-who span { color: var(--muted, #6b6b73); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-right: 8px; }
.wv-wording { font-size: 15px; line-height: 1.6; }
.wv-wording h3 { margin: 18px 0 8px; font-size: 16px; } .wv-wording p { margin: 0 0 12px; } .wv-wording ul { margin: 0 0 12px; padding-left: 1.3em; } .wv-wording li { margin-bottom: 5px; }
.wv-check, .wv-initials { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.wv-check input[type=checkbox] { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.wv-initials .input { width: 92px; flex: none; text-align: center; text-transform: uppercase; }
.wv-field { margin-bottom: 10px; }
.wv-check.done, .wv-initials.done { cursor: default; border: 0; padding: 4px 0; }
.wv-box { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: none; border: 1.5px solid #1d1d1f; border-radius: 3px; font-weight: 700; font-size: 14px; margin-top: 2px; }
.wv-box.wide { width: 52px; font-size: 12px; }
.wv-field.done { display: flex; gap: 10px; align-items: baseline; margin: 4px 0 8px; } .wv-field.done .wv-value { border-bottom: 1px solid #1d1d1f; min-width: 180px; padding: 0 4px 1px; }
.wv-label { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #6b6b73); }
.wv-sign canvas { display: block; width: 100%; height: 190px; background: #fff; border: 1.5px dashed #9a9aa2; border-radius: 12px; touch-action: none; cursor: crosshair; }
.wv-sign-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; font-size: 13px; color: var(--muted, #6b6b73); }
.wv-extra { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.wv-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.wv-thumb { display: grid; gap: 6px; justify-items: center; } .wv-thumb img { width: 150px; height: 112px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #000; }
.wv-cam-frame { background: #000; border-radius: 14px; overflow: hidden; display: grid; place-items: center; min-height: 300px; }
.wv-cam-frame video, .wv-cam-frame img { display: block; width: 100%; max-height: 62dvh; object-fit: contain; }
.wv-pick-list { display: grid; gap: 6px; max-height: 46dvh; overflow: auto; }
.wv-pick-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; width: 100%; cursor: pointer; }
.wv-pick-row img, .wv-pick-ph { width: 46px; height: 46px; flex: none; border-radius: 9px; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; }
.modal.wv-customer > header { background: var(--surface-2); }
.wv-paper { background: #fff; color: #1d1d1f; border: 1px solid var(--line); border-radius: 12px; padding: 22px 26px; }
/* The document (also what is printed and saved as PDF). */
.wv-doc { font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif; color: #1d1d1f; font-size: 10.5pt; line-height: 1.45; --line: #cfcfd6; --muted: #55555c; }
.wv-doc .wv-head { text-align: center; margin-bottom: 12px; }
.wv-doc .wv-brand { font-size: 20pt; letter-spacing: .32em; font-weight: 500; }
.wv-doc .wv-title { font-size: 12pt; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.wv-doc .wv-no { font-size: 8.5pt; color: #55555c; margin-top: 3px; letter-spacing: .06em; }
.wv-doc .wv-who { border-color: #c9b58a; font-size: 10.5pt; }
.wv-doc .wv-sub.first { margin-top: 12px; }
.wv-doc .wv-items, .wv-doc .wv-totals { font-size: 10pt; }
.wv-doc .wv-totals { width: 56%; margin-left: auto; }
.wv-doc .wv-wording { font-family: Georgia, "Times New Roman", serif; font-size: 10.5pt; line-height: 1.5; margin-top: 16px; }
.wv-doc .wv-wording h3 { font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif; font-size: 11pt; break-after: avoid; }
.wv-doc .wv-check, .wv-doc .wv-initials, .wv-doc .wv-field { break-inside: avoid; }
.wv-doc .wv-signed { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: end; margin-top: 22px; break-inside: avoid; }
.wv-doc .wv-sigbox img { display: block; width: 100%; max-height: 120px; object-fit: contain; object-position: left bottom; border-bottom: 1px solid #1d1d1f; }
.wv-doc .wv-sigmeta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; } .wv-doc .wv-sigmeta .wv-label { display: block; }
.wv-doc .wv-foot { margin-top: 18px; padding-top: 8px; border-top: 1px solid #c9b58a; text-align: center; font-size: 8.5pt; color: #55555c; letter-spacing: .05em; }
.wv-doc .wv-photo-page { break-before: page; page-break-before: always; padding-top: 4px; }
.wv-doc .wv-photo-cap { font-size: 9pt; color: #55555c; margin: 18px 0 8px; }
.wv-doc .wv-photo-page img { display: block; max-width: 100%; max-height: 8.6in; object-fit: contain; border: 1px solid #cfcfd6; }
@media print { #print-root .wv-doc { -webkit-print-color-adjust: exact; print-color-adjust: exact; } #print-root .wv-doc .wv-photo-cap { margin-top: 0; } }

.wv-notice { font-weight: 700; color: #8f1d2c; text-decoration: underline; margin: 0 0 8px; }
.wv-flabel { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.wv-auto { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.wv-id { margin: 0 0 12px; }
.wv-id-box { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1.5px dashed #9a9aa2; border-radius: 12px; }
.wv-id-box img { width: 190px; height: 128px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #000; }
.wv-id-ph { width: 96px; height: 72px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); color: var(--muted, #6b6b73); }
.wv-id-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.wv-todo { margin: 6px 0 0; padding-left: 1.2em; } .wv-todo li { margin-bottom: 3px; }
.wv-why b { color: #8f1d2c; } .wv-ready { color: #1f7a45; font-weight: 600; }
.wv-flash { outline: 2.5px solid #c2410c; outline-offset: 3px; border-radius: 12px; }
.wv-doc .wv-notice { font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif; font-size: 10.5pt; }
.wv-doc .wv-wording .wv-purchase { font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif; margin: 6px 0 16px; }

/* Signing on the shop's iPad: the notice that a waiver was signed there, and the Settings card. */
.ipad-notices { position: fixed; z-index: 70; right: 18px; bottom: 18px; display: grid; gap: 8px; width: min(440px, calc(100vw - 36px)); }
.ipad-notice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #BFE0C8; box-shadow: var(--shadow-2); font-size: 14px; }
.ipad-notice > .i { color: #1f7a3d; flex: none; }
.ipad-addr { display: block; padding: 10px 12px; margin: 6px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font: 600 16px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; user-select: all; -webkit-user-select: all; word-break: break-all; }
.ipad-code { font: 600 38px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .22em; padding: 14px 18px; border-radius: 14px; background: var(--accent-soft); display: inline-block; }
.ipad-dev { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ipad-dot { width: 10px; height: 10px; border-radius: 50%; background: #b9b9c0; flex: none; } .ipad-dot.on { background: #2e9d57; }

/* Inventory */
.nav a .nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.banner.inv-due { background: var(--warn-bg); color: var(--warn); border-radius: 12px; margin-bottom: 10px; padding: 10px 14px; }
.banner.inv-low { background: var(--bad-bg); color: var(--bad); border-radius: 12px; margin-bottom: 10px; padding: 10px 14px; }
.inv-counting { margin-bottom: 12px; border: 1.5px solid var(--accent); }
table.inv td { vertical-align: middle; }
.inv-cat td { background: var(--surface-2); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); padding: 6px 12px; }
.inv-thumb { width: 40px; height: 40px; flex: none; border-radius: 9px; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; }
.inv-qty { width: 110px; min-height: 38px; text-align: right; font-variant-numeric: tabular-nums; margin-left: auto; }
.inv-qty.inv-saved { border-color: #2e9d57; box-shadow: 0 0 0 3px rgba(46,157,87,.18); }
.inv-row-low td { background: #fff6f5; }
.inv-row-off td { opacity: .55; }
.inv-toggle input { width: 20px; height: 20px; }

/* The printed inventory sheets (full page). */
.inv-sheet { font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif; color: #111; font-size: 11pt; }
.inv-sheet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; border-bottom: 1.5px solid #111; padding-bottom: 8px; margin-bottom: 8px; }
.inv-sheet-biz { font-size: 9.5pt; letter-spacing: .22em; text-transform: uppercase; color: #444; }
.inv-sheet h1 { font-size: 17pt; margin: 2px 0 0; }
.inv-sheet-meta { text-align: right; font-size: 10.5pt; line-height: 1.7; white-space: nowrap; }
.inv-sheet-line { display: inline-block; width: 1.8in; border-bottom: 1px solid #111; }
.inv-sheet table { width: 100%; border-collapse: collapse; }
.inv-sheet thead { display: table-header-group; }
.inv-sheet th { text-align: left; font-size: 8.5pt; letter-spacing: .06em; text-transform: uppercase; color: #444; padding: 5px 6px; border-bottom: 1px solid #111; }
.inv-sheet td { padding: 6px 6px; border-bottom: 1px solid #c8c8c8; vertical-align: middle; }
.inv-sheet tr { break-inside: avoid; page-break-inside: avoid; }
.inv-sheet .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; } .inv-sheet .c { width: 1.05in; }
.inv-sheet .dim { color: #555; font-size: 9.5pt; }
.inv-sheet tr.cat td { background: #eee; font-size: 9pt; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 6px; border-bottom: 1px solid #111; -webkit-print-color-adjust: exact; print-color-adjust: exact; break-after: avoid; }
.inv-sheet-box { display: inline-block; width: .9in; height: .32in; border: 1.2px solid #111; border-radius: 3px; vertical-align: middle; }
.inv-sheet-foot { margin-top: 8px; font-size: 9pt; color: #444; }

/* ── Competitions with goals and prizes */
.csec { margin: 26px 4px 12px; font-size: 18px; }
.chead { align-items: center; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; align-items: start; }
.cgrid .cpanel.k-store_goal { grid-column: 1 / -1; }
.cpanel { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow-1); overflow: hidden; animation: cin .35s ease both; }
.cpanel.plain { border: 0; box-shadow: none; padding: 0; animation: none; }
.cpanel.k-store_goal { background: linear-gradient(135deg, #FBF7EE 0%, #FFFFFF 55%); border-color: #E2D6BD; }
.cpanel.reached { box-shadow: 0 0 0 1.5px var(--accent), var(--shadow-1); }
.cpanel.reached::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%); background-size: 250% 100%; animation: cshine 2.6s ease 1; }
.cpanel.ph-upcoming { opacity: .92; }
.cpanel > header { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.cpanel h3 { margin: 8px 0 2px; font-size: 21px; letter-spacing: -.01em; text-transform: none; color: var(--text); font-weight: 680; }
.cdesc { margin: 2px 0 0; color: var(--text-2); }
.ctags { display: flex; gap: 6px; flex-wrap: wrap; }
.cacts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.cprizes { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.cprize { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--accent-soft); border: 1px solid #E2D6BD; color: #4E3F20; }
.cprize svg { width: 22px; height: 22px; color: var(--accent-ink); flex: none; }
.cprize small { display: block; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-ink); }
.cprize b { font-size: 16.5px; font-weight: 660; }
.ccheer { margin: 0 0 12px; padding: 9px 14px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.cpanel.reached .ccheer { background: linear-gradient(90deg, #F1E6CC, #FBF6EA); color: #5E4C26; }
.cbar { height: 10px; border-radius: 999px; background: #EEEAE0; overflow: hidden; }
.cbar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #CDB688, var(--accent)); transition: width .7s cubic-bezier(.2,.8,.2,1); animation: cgrow .8s cubic-bezier(.2,.8,.2,1) both; transform-origin: left; }
.cbar.full i { background: linear-gradient(90deg, #2E8B57, var(--ok)); }
.cbar.lg { height: 14px; margin: 8px 0 6px; } .cbar.xl { height: 22px; margin: 12px 0 8px; }
.cstore .cnums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cnums small { display: block; color: var(--text-2); font-size: 12.5px; }
.cnums b { font-size: 30px; font-weight: 680; letter-spacing: -.02em; }
.cmine { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.cmine.big b { font-size: 16.5px; }
.okc { color: var(--ok); } .okc svg, .pill svg { width: 14px; height: 14px; vertical-align: -2px; }
.crows { display: grid; gap: 6px; }
.crow { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.crow .rk { width: 34px; font-weight: 680; color: var(--text-2); flex: none; }
.crow .nm { flex: 1; min-width: 0; } .crow .mini { width: 110px; flex: none; } .crow .vl { font-weight: 640; text-align: right; }
.crow .avatar { flex: none; }
.modal.comp-edit { width: min(660px, 100%); }
.crow.win { border-color: #E2D6BD; background: #FCFAF4; } .crow.win .rk { color: var(--accent-ink); }
.crow.me { box-shadow: inset 3px 0 0 var(--accent); background: var(--accent-soft); }
.cgap { text-align: center; color: var(--text-2); line-height: 1; }
.cdet { margin-top: 12px; } .cdet > summary { cursor: pointer; color: var(--accent-ink); font-weight: 550; font-size: 13.5px; } .cdet[open] > summary { margin-bottom: 8px; }
.crules { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 13.5px; } .crules li { margin: 2px 0; }
.ch4 { margin: 14px 0 6px; font-size: 14px; }
.cnone { display: flex; gap: 14px; align-items: center; } .cnone svg { width: 30px; height: 30px; color: var(--accent-ink); }
.chist { margin-top: 22px; }
.comp-edit .ckinds { display: grid; gap: 8px; } .ckind { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.ckind:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); } .ckind small { display: block; color: var(--text-2); }
.cpeople { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 12px; }
@keyframes cin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes cgrow { from { transform: scaleX(.02); } to { transform: none; } }
@keyframes cshine { from { background-position: 120% 0; } to { background-position: -60% 0; } }
@media (prefers-reduced-motion: reduce) { .cpanel, .cbar i, .cpanel.reached::after { animation: none; transition: none; } }
.cstore { margin-bottom: 12px; }

/* ── My Monthly Goal (My earnings) and Employee Monthly Goals (Settings) */
.goalcard { position: relative; overflow: hidden; margin: 0 0 18px; padding: 20px 22px; border-radius: 20px; border: 1px solid #E2D6BD; background: linear-gradient(135deg, #FBF7EE 0%, #FFFFFF 60%); box-shadow: var(--shadow-1); animation: cin .35s ease both; }
.goalcard.none { background: var(--surface); border-color: var(--line); }
.goalcard.reached { box-shadow: 0 0 0 1.5px var(--accent), var(--shadow-1); }
.goalcard.reached::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%); background-size: 250% 100%; animation: cshine 2.6s ease 1; }
.goalcard.reached .ccheer { background: linear-gradient(90deg, #F1E6CC, #FBF6EA); color: #5E4C26; }
.goalcard > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.goalcard > header small { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }
.goalcard > header h2 { margin: 2px 0 0; font-size: 20px; }
.goalnums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.goalnums small { display: block; color: var(--text-2); font-size: 12.5px; }
.goalnums b { font-size: 28px; font-weight: 680; letter-spacing: -.02em; }
.goalnote { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.goalnote svg { width: 15px; height: 15px; vertical-align: -2px; }
.goalrow .mini { width: 140px; }
@media (max-width: 900px) { .goalnums { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .goalcard, .goalcard.reached::after { animation: none; } }

/* Measuring a receipt off-screen at the size it will print on a receipt roll (see printOut). */
.print-probe.full .receipt { font-size: 11.5pt; } .print-probe.p80 .receipt { font-size: 11px; } .print-probe.p80 .receipt .r-brand { font-size: 16px; }
