/* ═══════════════════════════════════════════════════════════════════════════
   SEVWAS CRM — v3 design layer (Figma "📱 CRM · Mobile", node 2:388)
   Cream canvas · white hairline cards · serif page titles · black/gold CTAs ·
   coloured status strips. Loaded AFTER style.css on CRM layouts only, so it
   restyles without touching the customer app or Super Admin.
   Plain CSS (not Tailwind @layer) so nothing here is ever purged.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --cx-bg: #F6F4EF;
  --cx-card: #FFFFFF;
  --cx-line: rgba(17, 17, 17, 0.09);
  --cx-line-strong: rgba(17, 17, 17, 0.16);
  --cx-ink: #141414;
  --cx-ink-2: #5F5B53;
  --cx-ink-3: #8E897F;
  --cx-gold: #C9A24A;
  --cx-gold-ink: #A87E25;
  --cx-gold-wash: #F3ECDD;
  --cx-black: #121212;
  --cx-navy: #111B2C;
  --cx-green: #5E7A58;
  --cx-green-wash: #E5ECE2;
  --cx-amber: #D2A23A;
  --cx-amber-wash: #F6EED9;
  --cx-orange: #C47A2C;
  --cx-orange-wash: #F6E7D6;
  --cx-red: #B34D45;
  --cx-red-wash: #F5E1DE;
  --cx-violet: #8F86C4;
  --cx-violet-wash: #ECE9F6;
  --cx-wa: #25D366;
  --cx-radius: 16px;
  --cx-shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 6px 18px rgba(17, 17, 17, 0.04);
  --cx-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ─── Canvas ──────────────────────────────────────────────────────────────── */
body.sevwas-crm { background: var(--cx-bg) !important; }
body.sevwas-crm main { background: transparent; }

/* ─── Page head: serif title + subtitle + trailing actions ─────────────────── */
.cx-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cx-title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 30px; line-height: 1.05; color: var(--cx-ink); letter-spacing: -0.2px; }
.cx-sub { margin-top: 4px; font-size: 13px; color: var(--cx-ink-2); }
.cx-head-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cx-avatar-btn { width: 40px; height: 40px; border-radius: 999px; background: #ECE7DD; color: var(--cx-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.cx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 15px; transition: transform .15s var(--cx-ease), box-shadow .2s, background .2s; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.cx-btn:active { transform: scale(.97); }
.cx-btn--gold { background: linear-gradient(180deg, #D3AE57, #C29A3F); color: #1A1406; box-shadow: 0 6px 16px rgba(201, 162, 74, .28); }
.cx-btn--black { background: var(--cx-black); color: #fff; }
.cx-btn--outline { background: #fff; color: var(--cx-gold-ink); border-color: var(--cx-gold); }
.cx-btn--ghost { background: #fff; color: var(--cx-ink); border-color: var(--cx-line-strong); }
.cx-btn--wa { background: var(--cx-wa); color: #fff; box-shadow: 0 6px 16px rgba(37, 211, 102, .25); }
.cx-btn--wa:hover { background: #1EBE5D; }
.cx-btn--danger-text { background: transparent; color: var(--cx-red); height: auto; padding: 8px; font-weight: 600; }
.cx-btn--sm { height: 36px; padding: 0 14px; border-radius: 11px; font-size: 13px; }
.cx-btn--block { width: 100%; }
.cx-icon-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--cx-line); color: var(--cx-ink); transition: background .2s, transform .15s; }
.cx-icon-btn:active { transform: scale(.94); }
.cx-icon-btn svg { width: 18px; height: 18px; stroke-width: 18; }
.cx-icon-btn--dark { background: var(--cx-black); color: var(--cx-gold); border-color: var(--cx-black); }
.cx-icon-btn--gold { background: var(--cx-gold); color: #1A1406; border-color: var(--cx-gold); }

/* ─── Cards & rows ────────────────────────────────────────────────────────── */
.cx-card { background: var(--cx-card); border: 1px solid var(--cx-line); border-radius: var(--cx-radius); box-shadow: var(--cx-shadow); }
.cx-section-title { font-weight: 700; font-size: 17px; color: var(--cx-ink); margin: 18px 2px 10px; display: flex; align-items: center; justify-content: space-between; }
.cx-section-title a, .cx-section-title button { font-size: 13px; font-weight: 600; color: var(--cx-gold-ink); }
.cx-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cx-ink-3); }

/* Status strip card (schedule / bookings) */
.cx-slot { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--cx-line); border-radius: 14px; padding: 12px 14px 12px 18px; box-shadow: var(--cx-shadow); transition: transform .18s var(--cx-ease), box-shadow .2s; overflow: hidden; }
.cx-slot::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--strip, var(--cx-green)); }
.cx-slot:active { transform: scale(.985); }
.cx-slot-time { min-width: 62px; }
.cx-slot-time b { display: block; font-size: 15px; font-weight: 800; color: var(--cx-ink); letter-spacing: -.2px; }
.cx-slot-time small { display: block; margin-top: 2px; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--strip, var(--cx-green)); }
.cx-slot-body { flex: 1; min-width: 0; }
.cx-slot-name { font-weight: 700; font-size: 14.5px; color: var(--cx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-slot-meta { font-size: 12.5px; color: var(--cx-ink-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-slot-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.cx-slot-amt { font-weight: 800; font-size: 14px; color: var(--cx-ink); }
.cx-slot-chev { color: #9C978D; width: 18px; height: 18px; }
.cx-slot--free { background: rgba(255,255,255,.35); border: 1.5px dashed rgba(17,17,17,.14); box-shadow: none; color: var(--cx-ink-3); }
.cx-slot--free::before { display: none; }
.cx-slot--free .cx-slot-time b { color: #A39E94; font-weight: 700; }
.cx-slot--free:hover { background: rgba(201,162,74,.08); border-color: rgba(201,162,74,.5); color: var(--cx-gold-ink); }
.cx-slot--cancelled .cx-slot-name { text-decoration: line-through; color: var(--cx-ink-3); }

/* Pills / badges */
.cx-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: #EFECE6; color: var(--cx-ink-2); white-space: nowrap; }
.cx-pill--green { background: var(--cx-green-wash); color: var(--cx-green); }
.cx-pill--gold { background: var(--cx-amber-wash); color: var(--cx-gold-ink); }
.cx-pill--orange { background: var(--cx-orange-wash); color: var(--cx-orange); }
.cx-pill--red { background: var(--cx-red-wash); color: var(--cx-red); }
.cx-pill--violet { background: var(--cx-violet-wash); color: #6B5FA8; }
.cx-pill--dark { background: var(--cx-black); color: #E9CF86; }
.cx-pill--soft { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 12px; }

/* Filter chips row (horizontal scroll) */
.cx-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; margin: 0 -2px; -webkit-overflow-scrolling: touch; }
.cx-chips::-webkit-scrollbar { display: none; }
.cx-chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--cx-line-strong); background: #fff; color: var(--cx-ink); font-size: 13.5px; font-weight: 600; transition: background .2s, color .2s, border-color .2s, transform .15s; cursor: pointer; white-space: nowrap; }
.cx-chip:active { transform: scale(.96); }
.cx-chip.is-on, .cx-chip[aria-pressed="true"], .cx-chip[aria-selected="true"] { background: var(--cx-black); border-color: var(--cx-black); color: #fff; }
.cx-chip .cx-chip-count { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: rgba(17,17,17,.07); }
.cx-chip.is-on .cx-chip-count, .cx-chip[aria-pressed="true"] .cx-chip-count { background: rgba(255,255,255,.18); }
.cx-chip-avatar { width: 22px; height: 22px; margin-left: -8px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; background: var(--cx-gold-wash); color: var(--cx-gold-ink); }

/* Segmented control (Day / Week / Month) */
.cx-seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #EAE6DE; border-radius: 999px; padding: 4px; }
.cx-seg button { position: relative; z-index: 1; height: 38px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--cx-ink-2); transition: color .25s; }
.cx-seg button[aria-selected="true"] { color: var(--cx-ink); font-weight: 700; }
.cx-seg-thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.06); transition: transform .35s var(--cx-ease), width .35s var(--cx-ease); }

/* Search bar (Figma: rounded field with leading glass icon) */
.cx-search { position: relative; flex: 1; min-width: 0; }
.cx-search input { width: 100%; height: 46px; border-radius: 14px; border: 1px solid var(--cx-line-strong); background: #fff; padding: 0 14px 0 44px; font-size: 16px; color: var(--cx-ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.cx-search input:focus { border-color: var(--cx-gold); box-shadow: 0 0 0 3px rgba(201,162,74,.18); }
.cx-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--cx-ink-3); stroke-width: 20; pointer-events: none; }

/* Avatar initials */
.cx-avatar { width: 44px; height: 44px; border-radius: 999px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: #EFEAE0; color: var(--cx-gold-ink); font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: 20px; overflow: hidden; }
.cx-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Generic list row card (customers / inquiries / staff) */
.cx-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--cx-line); border-radius: var(--cx-radius); padding: 12px 14px; box-shadow: var(--cx-shadow); transition: transform .18s var(--cx-ease), box-shadow .2s; }
.cx-row:active { transform: scale(.985); }
.cx-row-body { flex: 1; min-width: 0; }
.cx-row-title { font-weight: 700; font-size: 15px; color: var(--cx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-row-sub { font-size: 12.5px; color: var(--cx-ink-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-row-tert { font-size: 11.5px; color: var(--cx-ink-3); margin-top: 2px; }
.cx-stack > * + * { margin-top: 10px; }

/* Bottom sheet */
.cx-sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(17,17,17,.38); opacity: 0; pointer-events: none; transition: opacity .3s; }
.cx-sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.cx-sheet { position: fixed; z-index: 81; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; background: var(--cx-bg); border-radius: 24px 24px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .38s var(--cx-ease); box-shadow: 0 -12px 40px rgba(0,0,0,.18); }
.cx-sheet.open { transform: translateY(0); }
.cx-sheet-handle { width: 40px; height: 5px; border-radius: 9px; background: rgba(17,17,17,.15); margin: 0 auto 12px; }
@media (min-width: 768px) {
  .cx-sheet { left: 50%; right: auto; width: 460px; bottom: auto; top: 50%; border-radius: 22px; transform: translate(-50%, -46%) scale(.98); opacity: 0; pointer-events: none; transition: transform .3s var(--cx-ease), opacity .25s; }
  .cx-sheet.open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
}

/* Key-value block */
.cx-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.cx-kv dt { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--cx-ink-3); }
.cx-kv dd { margin-top: 3px; font-size: 14px; font-weight: 700; color: var(--cx-ink); }
.cx-line-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 12px; background: #EFEBE3; font-size: 13.5px; color: var(--cx-ink); }
.cx-line-item + .cx-line-item { margin-top: 8px; }
.cx-line-item b { font-weight: 800; }
.cx-total-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--cx-ink-2); padding: 4px 2px; }
.cx-total-row.is-grand { font-size: 17px; font-weight: 800; color: var(--cx-ink); padding-top: 8px; }
.cx-note { border-radius: 12px; padding: 12px 14px; font-size: 13px; font-weight: 600; }
.cx-note--green { background: var(--cx-green-wash); color: var(--cx-green); }
.cx-note--gold { background: var(--cx-amber-wash); color: var(--cx-gold-ink); }
.cx-note--grey { background: #EFEBE3; color: var(--cx-ink-2); }

/* Fade/slide-in for view swaps */
@keyframes cx-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes cx-in-x { from { opacity: 0; transform: translateX(var(--from-x, 18px)); } to { opacity: 1; transform: none; } }
.cx-anim-in { animation: cx-in .2s var(--cx-ease) both; }
.cx-anim-x { animation: cx-in-x .2s var(--cx-ease) both; }
.cx-stagger > * { animation: cx-in .22s var(--cx-ease) both; }
.cx-stagger > *:nth-child(2) { animation-delay: .015s; } .cx-stagger > *:nth-child(3) { animation-delay: .03s; }
.cx-stagger > *:nth-child(4) { animation-delay: .045s; } .cx-stagger > *:nth-child(5) { animation-delay: .06s; }
.cx-stagger > *:nth-child(6) { animation-delay: .075s; } .cx-stagger > *:nth-child(n+7) { animation-delay: .09s; }
@media (prefers-reduced-motion: reduce) { .cx-anim-in, .cx-anim-x, .cx-stagger > * { animation: none !important; } }

/* ═══════════════════════════════════════════════════════════════════════════
   CALENDAR (Figma 03 Calendar · Day / Week / Month + 860:104 Zoho-style)
   ═══════════════════════════════════════════════════════════════════════════ */
.cal3 { max-width: 760px; margin: 0 auto; }
.cal3-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.cal3-kpi { position: relative; overflow: hidden; text-align: left; background: #fff; border: 1px solid var(--cx-line); border-radius: 14px; padding: 10px 10px 9px 12px; box-shadow: var(--cx-shadow); transition: transform .15s var(--cx-ease), border-color .2s; }
.cal3-kpi::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--k, var(--cx-gold)); }
.cal3-kpi:active { transform: scale(.96); }
.cal3-kpi.is-on { border-color: var(--k); box-shadow: 0 0 0 2px color-mix(in srgb, var(--k) 25%, transparent); }
.cal3-kpi b { display: block; font-size: 22px; font-weight: 800; color: var(--cx-ink); line-height: 1.1; letter-spacing: -.4px; }
.cal3-kpi span { display: block; font-size: 10.5px; color: var(--cx-ink-2); margin-top: 2px; line-height: 1.2; }

.cal3-toolbar { display: flex; align-items: center; gap: 8px; margin: 12px 0 10px; }
.cal3-toolbar .cx-seg { flex: 1; }
.cal3-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 12px; }
.cal3-nav-label { font-weight: 800; font-size: 16px; color: var(--cx-ink); text-align: center; flex: 1; letter-spacing: -.2px; }
.cal3-nav-label small { display: block; font-weight: 600; font-size: 11.5px; color: var(--cx-ink-3); margin-top: 1px; }
.cal3-arrow { width: 38px; height: 38px; border-radius: 999px; background: #fff; border: 1px solid var(--cx-line); display: inline-flex; align-items: center; justify-content: center; color: var(--cx-ink); transition: transform .15s; }
.cal3-arrow:active { transform: scale(.9); }
.cal3-arrow svg { width: 16px; height: 16px; stroke-width: 22; }

/* Week strip */
.cal3-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; touch-action: pan-y; }
.cal3-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 8px 0 7px; border-radius: 14px; background: #fff; border: 1px solid var(--cx-line); color: var(--cx-ink); transition: transform .18s var(--cx-ease), background .25s, color .25s; min-height: 70px; }
.cal3-day:active { transform: scale(.94); }
.cal3-day .dow { font-size: 11px; font-weight: 600; color: var(--cx-ink-3); }
.cal3-day .num { font-size: 19px; font-weight: 800; line-height: 1.15; letter-spacing: -.3px; }
.cal3-day .cnt { font-size: 9.5px; font-weight: 700; color: var(--cx-ink-3); min-height: 12px; }
.cal3-day .dot { width: 5px; height: 5px; border-radius: 9px; background: var(--cx-gold); margin-top: 2px; }
.cal3-day .load { position: absolute; left: 8px; right: 8px; bottom: 4px; height: 3px; border-radius: 3px; background: rgba(17,17,17,.06); overflow: hidden; }
.cal3-day .load i { display: block; height: 100%; background: var(--cx-gold); border-radius: 3px; }
.cal3-day.is-today .num { color: var(--cx-gold-ink); }
.cal3-day.is-sel { background: var(--cx-black); border-color: var(--cx-black); color: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.22); }
.cal3-day.is-sel .dow { color: var(--cx-gold); }
.cal3-day.is-sel .cnt { color: #E9CF86; }
.cal3-day.is-sel .load { background: rgba(255,255,255,.15); }
.cal3-day.is-closed:not(.is-sel) { background: repeating-linear-gradient(135deg, #fff, #fff 6px, #F3F0EA 6px, #F3F0EA 12px); }

.cal3-dayhead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 2px 2px 10px; }
.cal3-dayhead h3 { font-weight: 800; font-size: 17px; color: var(--cx-ink); letter-spacing: -.2px; }
.cal3-dayhead span { font-size: 12px; color: var(--cx-ink-3); font-weight: 600; }
.cal3-offline { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 10px; }

/* Day timeline: gutter + cards */
.cal3-timeline { position: relative; }
.cal3-tl-row { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 8px; align-items: stretch; }
.cal3-tl-row + .cal3-tl-row { margin-top: 8px; }
.cal3-tl-gutter { font-size: 11px; font-weight: 700; color: var(--cx-ink-3); text-align: right; padding-top: 14px; font-variant-numeric: tabular-nums; }
.cal3-tl-gutter.is-hidden { visibility: hidden; }
.cal3-now { position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 8px; align-items: center; margin: 8px 0; }
.cal3-now span { font-size: 10.5px; font-weight: 800; color: var(--cx-red); text-align: right; }
.cal3-now i { position: relative; height: 2px; background: var(--cx-red); border-radius: 2px; }
.cal3-now i::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 9px; background: var(--cx-red); box-shadow: 0 0 0 4px rgba(179,77,69,.18); animation: cal3-pulse 2s infinite; }
@keyframes cal3-pulse { 50% { box-shadow: 0 0 0 7px rgba(179,77,69,.05); } }
.cal3-staffchip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--cx-ink-2); background: #F1EEE7; border-radius: 999px; padding: 3px 9px 3px 3px; max-width: 120px; }
.cal3-staffchip i { width: 18px; height: 18px; border-radius: 99px; font-style: normal; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: #fff; background: var(--sc, var(--cx-gold)); flex-shrink: 0; }
.cal3-staffchip em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Week heat-grid (hours × days) */
.cal3-heat { background: #fff; border: 1px solid var(--cx-line); border-radius: var(--cx-radius); padding: 12px 10px 10px; margin-bottom: 14px; box-shadow: var(--cx-shadow); }
.cal3-heat-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 2px 8px; }
.cal3-heat-head b { font-size: 13.5px; font-weight: 800; color: var(--cx-ink); }
.cal3-heat-head span { font-size: 11px; color: var(--cx-ink-3); font-weight: 600; }
.cal3-heat-grid { display: grid; grid-template-columns: 34px repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal3-heat-grid .hl { font-size: 9.5px; font-weight: 700; color: var(--cx-ink-3); text-align: right; padding-right: 4px; line-height: 16px; font-variant-numeric: tabular-nums; }
.cal3-heat-grid .dl { font-size: 10px; font-weight: 700; color: var(--cx-ink-3); text-align: center; padding-bottom: 2px; }
.cal3-heat-grid .dl.is-sel { color: var(--cx-ink); }
.cal3-heat-grid .c { height: 16px; border-radius: 4px; background: #F3F0EA; transition: transform .15s; position: relative; }
.cal3-heat-grid .c:active { transform: scale(.88); }
.cal3-heat-grid .c[data-n="1"] { background: #EBD9AC; }
.cal3-heat-grid .c[data-n="2"] { background: #D9B867; }
.cal3-heat-grid .c[data-n="3"] { background: #B88D2C; }
.cal3-heat-grid .c.is-closed { background: repeating-linear-gradient(135deg, #F3F0EA, #F3F0EA 3px, #E8E3DA 3px, #E8E3DA 6px); }
.cal3-heat-grid .c.is-now { outline: 2px solid var(--cx-red); outline-offset: -1px; }
.cal3-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; font-size: 10.5px; color: var(--cx-ink-3); font-weight: 600; }
.cal3-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }

/* Month grid */
.cal3-month { background: #fff; border: 1px solid var(--cx-line); border-radius: var(--cx-radius); padding: 12px 8px 8px; box-shadow: var(--cx-shadow); touch-action: pan-y; }
.cal3-mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 4px; }
.cal3-mgrid .wd { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--cx-ink-3); padding-bottom: 6px; }
.cal3-mcell { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 3px; height: 54px; padding-top: 4px; border-radius: 12px; transition: background .2s; }
.cal3-mcell:active { background: rgba(201,162,74,.12); }
.cal3-mcell .n { width: 34px; height: 34px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: var(--cx-ink); transition: background .25s, color .25s, transform .2s var(--cx-ease); }
.cal3-mcell.is-out .n { color: #C9C4BA; }
.cal3-mcell.is-today .n { box-shadow: inset 0 0 0 1.5px var(--cx-gold); color: var(--cx-gold-ink); font-weight: 800; }
.cal3-mcell.is-sel .n { background: var(--cx-black); color: #fff; font-weight: 800; box-shadow: none; transform: scale(1.04); }
.cal3-mcell.is-past:not(.is-out) .n { color: #6F6A61; }
.cal3-mdots { display: flex; gap: 3px; height: 6px; }
.cal3-mdots i { width: 5px; height: 5px; border-radius: 9px; background: var(--cx-gold); }
.cal3-mcount { font-size: 10px; font-weight: 800; color: var(--cx-gold-ink); background: var(--cx-gold-wash); border-radius: 99px; padding: 0 6px; line-height: 15px; }
.cal3-mcount.is-zero { visibility: hidden; }
.cal3-agenda { margin-top: 12px; padding: 14px 14px 10px; }
.cal3-agenda h4 { font-weight: 800; font-size: 15.5px; color: var(--cx-ink); }
.cal3-agenda-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 2px; border-bottom: 1px solid var(--cx-line); font-size: 13.5px; color: var(--cx-ink-2); }
.cal3-agenda-row:last-child { border-bottom: 0; }
.cal3-agenda-row b { color: var(--cx-ink); font-weight: 700; min-width: 64px; font-variant-numeric: tabular-nums; }
.cal3-agenda-row i { width: 8px; height: 8px; border-radius: 9px; flex-shrink: 0; }
.cal3-hint { text-align: center; margin: 12px 0 4px; font-size: 12px; font-weight: 600; color: var(--cx-ink-3); }

/* List view */
.cal3-list-day { display: flex; align-items: center; gap: 8px; margin: 16px 2px 8px; }
.cal3-list-day:first-child { margin-top: 2px; }
.cal3-list-day h4 { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cx-ink-2); }
.cal3-list-day hr { flex: 1; border: 0; height: 1px; background: var(--cx-line); }

/* Empty */
.cal3-empty { text-align: center; padding: 26px 16px; border-radius: var(--cx-radius); border: 1.5px dashed rgba(17,17,17,.13); color: var(--cx-ink-3); font-size: 13px; }
.cal3-empty b { display: block; color: var(--cx-ink); font-size: 15px; margin-bottom: 4px; }

/* Floating add button (mobile) */
.cal3-fab { position: fixed; z-index: 45; right: 18px; bottom: calc(96px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(180deg, #D3AE57, #C29A3F); color: #1A1406; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(168,126,37,.4); transition: transform .2s var(--cx-ease); }
.cal3-fab:active { transform: scale(.92); }
.cal3-fab svg { width: 24px; height: 24px; stroke-width: 26; }
@media (min-width: 768px) { .cal3-fab { bottom: 28px; right: 28px; } }

/* Skeleton shimmer while a range loads */
.cal3-loading { position: relative; }
.cal3-loading::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: cal3-shimmer 1.1s infinite; pointer-events: none; }
@keyframes cal3-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* Appointment editor modal — restyled into the v3 sheet look */
#appt-modal > div { background: var(--cx-bg) !important; border-radius: 22px !important; }
#appt-modal .form-field { border-radius: 12px; }
#appt-modal .svc-chip.on { background: var(--cx-black) !important; color: #fff !important; border-color: var(--cx-black) !important; }

/* Section/headings inside v3 components use the sans voice (Figma: serif is
   reserved for page titles and the brand). */
.sevwas-crm .cal3 h3, .sevwas-crm .cal3 h4, .sevwas-crm .cx-sheet h3, .sevwas-crm .cx-section-title,
.sevwas-crm .cx-card h3, .sevwas-crm .cx-card h4, .sevwas-crm .cx-h { font-family: 'Inter', system-ui, sans-serif; letter-spacing: -0.2px; }
.cal3-tl-row { grid-template-columns: minmax(0, 1fr); }
.cal3-now { grid-template-columns: 44px minmax(0, 1fr); }

/* ═══════════════════════════════════════════════════════════════════════════
   SHELL — CRM + Super Admin (both layouts use body.sevwas-crm.crm-doc-scroll)
   The DOCUMENT scrolls natively. Topbar = position:sticky, tab bar =
   position:fixed. No inner scroll container, no scroll listeners, no
   backdrop-filter on the bars — that combination is what made iOS scroll
   feel stuck and the tab bar flicker/hide (#2, #14).
   ═══════════════════════════════════════════════════════════════════════════ */
body.crm-doc-scroll { min-height: 100vh; min-height: 100dvh; padding: 0 !important; overflow-x: hidden; overflow-x: clip; }
.crm-shell { min-height: 100vh; min-height: 100dvh; }
.crm-content { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.crm-main { flex: 1 0 auto; min-width: 0; overflow-x: hidden; overflow-x: clip; }
@media (min-width: 768px) {
  .crm-shell { display: flex; align-items: flex-start; }
  .crm-content { flex: 1 1 0%; }
  body.crm-doc-scroll .crm-sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; }
}

/* Topbar: flush with the very top. The safe-area inset is added ONCE, inside
   the bar (it is 0 unless the page is drawn under a status bar/notch). */
body.sevwas-crm .crm-topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  box-sizing: border-box; margin: 0;
  height: calc(56px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
  background: #F6F4EF !important;
  border-bottom: 1px solid rgba(17,17,17,.07) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.6);
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
@media (min-width: 768px) {
  body.sevwas-crm .crm-topbar { gap: 12px; height: calc(60px + env(safe-area-inset-top, 0px)); padding-left: 24px; padding-right: 24px; }
}
.crm-top-salon { font-size: 12.5px; font-weight: 700; color: var(--cx-ink); line-height: 1.15; }
.crm-top-salon small { display: block; font-size: 11px; font-weight: 600; color: var(--cx-ink-3); }
.crm-top-tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.crm-top-avatar { width: 34px; height: 34px; flex-shrink: 0; border-radius: 999px; background: #E9E3D6; color: var(--cx-ink); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(17,17,17,.06); text-decoration: none; transition: transform .12s ease, box-shadow .2s; }
.crm-top-avatar:active { transform: scale(.92); }
.crm-top-avatar.is-on { box-shadow: 0 0 0 2px var(--cx-gold); }
.crm-icon-round { width: 32px; height: 32px; flex-shrink: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--cx-line); color: var(--cx-ink-2); transition: color .15s, transform .12s; }
.crm-icon-round:hover { color: var(--cx-gold-ink); }
.crm-icon-round:active { transform: scale(.92); }
/* Auto-refresh pill: the real <select> is an invisible 16px overlay (iOS never
   zooms on a ≥16px control), the visible label is compact. */
.crm-ar { position: relative; display: inline-flex; align-items: center; height: 32px; padding: 0 11px; border-radius: 999px; background: #fff; border: 1px solid var(--cx-line); font-size: 11.5px; font-weight: 700; color: var(--cx-ink-2); white-space: nowrap; cursor: pointer; }
.crm-ar.is-on { color: var(--cx-gold-ink); border-color: rgba(201,162,74,.45); background: #FFFBF1; }
.crm-ar select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px !important; border: 0; margin: 0; padding: 0; -webkit-appearance: none; appearance: none; cursor: pointer; }
.crm-ar:focus-within { box-shadow: 0 0 0 3px rgba(201,162,74,.25); }

/* Toasts clear the status bar / notch */
body.sevwas-crm #toast-container { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* Big translucent "glass" surfaces inside the scrolling page re-blur on every
   frame of scroll (expensive on mid-range Android). They already sit on an
   opaque cream canvas, so the blur bought nothing visually. */
body.sevwas-crm .crm-main .glass, body.sevwas-crm .crm-main .glass-light, body.sevwas-crm .crm-main .glass-strong,
body.sevwas-crm .crm-main .card-glass, body.sevwas-crm .crm-main .stat-card { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* iPhone: inputs under 16px make Safari zoom the page on focus — the "random
   zoom" users read as double-tap zoom. Bump form controls to 16px on iOS only. */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 1024px) {
    body.sevwas-crm input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),
    body.sevwas-crm select, body.sevwas-crm textarea { font-size: 16px !important; }
  }
}

@media (max-width: 767px) {
  /* Floating tab bar — always visible and tappable while scrolling (no
     hide-on-scroll), pill-rounded, sits just above the home indicator. */
  body.sevwas-app.sevwas-crm.taskbar-float .app-bottom-nav {
    position: fixed; z-index: 50;
    left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) - 6px));
    display: flex; align-items: stretch; justify-content: space-between; gap: 2px;
    border-radius: 999px; padding: 6px;
    background: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid rgba(17, 17, 17, 0.07) !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    box-shadow: 0 10px 28px rgba(17, 17, 17, 0.16), 0 2px 6px rgba(17, 17, 17, 0.06) !important;
    transform: translate3d(0, 0, 0); /* own compositor layer — never repaints on scroll */
    visibility: visible !important; opacity: 1 !important;
  }
  body.sevwas-app.sevwas-crm .app-bottom-nav a, body.sevwas-app.sevwas-crm .app-bottom-nav button { flex: 1 1 0%; min-width: 0; padding: 7px 2px 6px; gap: 3px; color: #77726A !important; font-size: 10.5px; font-weight: 600; border-radius: 999px; transition: color .15s, background-color .15s; }
  body.sevwas-app.sevwas-crm .app-bottom-nav a:active, body.sevwas-app.sevwas-crm .app-bottom-nav button:active { background: rgba(17,17,17,.05) !important; }
  body.sevwas-app.sevwas-crm .app-bottom-nav .nav-icon { color: #77726A !important; }
  body.sevwas-app.sevwas-crm .app-bottom-nav a.active, body.sevwas-app.sevwas-crm .app-bottom-nav button.active { color: #A87E25 !important; background: rgba(201,162,74,.16) !important; font-weight: 800; }
  body.sevwas-app.sevwas-crm .app-bottom-nav a.active .nav-icon, body.sevwas-app.sevwas-crm .app-bottom-nav button.active .nav-icon { color: #A87E25 !important; }
  body.sevwas-app.sevwas-crm .app-bottom-nav a.active::before, body.sevwas-app.sevwas-crm .app-bottom-nav button.active::before { display: none !important; }
  body.sevwas-app.sevwas-crm .app-bottom-nav .nav-icon svg { stroke-width: 24; }
  /* Content clears the floating bar + home indicator */
  body.sevwas-crm .crm-main { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important; }

  /* ─── More sheet (#12): opens reliably, header fixed, list scrolls inside ─ */
  body.sevwas-crm .app-more-backdrop {
    z-index: 55; background: rgba(17, 17, 17, 0.42);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    touch-action: none; transition: opacity .2s ease;
  }
  body.sevwas-crm .app-more-sheet {
    display: flex; flex-direction: column;
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; top: auto;
    max-height: calc(100vh - 56px);
    max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 40px);
    padding: 0 !important; overflow: hidden !important;
    background: var(--cx-bg) !important; border: 0 !important;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
    transform: translate3d(0, 100%, 0);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.32, .72, 0, 1), visibility 0s linear .3s;
    will-change: transform;
  }
  body.sevwas-crm .app-more-sheet.open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    transition: transform .3s cubic-bezier(.32, .72, 0, 1), visibility 0s;
  }
  body.sevwas-crm .app-more-top { flex-shrink: 0; padding: 6px 20px 4px; }
  body.sevwas-crm .app-more-header { margin-bottom: 6px; }
  body.sevwas-crm .app-more-scroll {
    flex: 1 1 auto; min-height: 0;
    overflow-y: auto; overflow-x: hidden;
    -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 2px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  }
  /* Page behind the open sheet doesn't scroll */
  html.more-open, html.more-open body { overflow: hidden !important; }
}
@media (min-width: 768px) {
  body.sevwas-crm .app-more-backdrop { display: none !important; }
}

/* More sheet → light card list with tinted icon chips */
body.sevwas-crm .app-more-item { border-radius: 14px; }
body.sevwas-crm .app-more-item .more-icon { width: 36px; height: 36px; border-radius: 11px; background: #fff; border: 1px solid var(--cx-line); display: inline-flex; align-items: center; justify-content: center; color: var(--cx-gold-ink); flex-shrink: 0; }
body.sevwas-crm .app-more-item.active { background: rgba(201,162,74,.12); }

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD (Figma 02 CRM Dashboard v1 + v2)
   ═══════════════════════════════════════════════════════════════════════════ */
.dash3-hero { position: relative; overflow: hidden; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; background: radial-gradient(120% 140% at 100% 0%, #2A3A55 0%, #111B2C 55%, #0B1220 100%); color: #fff; border-radius: 22px; padding: 20px 18px 22px; margin-bottom: 14px; box-shadow: 0 14px 30px rgba(17,27,44,.25); }
.dash3-hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 999px; background: radial-gradient(circle, rgba(201,162,74,.35), transparent 65%); pointer-events: none; }
.dash3-hero-eyebrow { font-size: 13px; color: #C9B98F; font-weight: 600; }
.dash3-hero-title { font-family: 'Cormorant Garamond', Georgia, serif !important; font-weight: 600; font-size: 30px; line-height: 1.05; margin-top: 2px; color: #fff; }
.dash3-hero-sub { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.72); }
.dash3-hero-sub strong { color: #E9CF86; }
.dash3-bell { position: relative; z-index: 1; width: 42px; height: 42px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); display: inline-flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.dash3-bell svg { width: 20px; height: 20px; stroke-width: 22; }
.dash3-bell span { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 99px; background: #B34D45; color: #fff; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid #111B2C; }
.dash3-ann { padding: 14px; border-left: 4px solid var(--cx-gold); }
.dash3-ann-icon { width: 28px; height: 28px; border-radius: 9px; background: var(--cx-gold-wash); color: var(--cx-gold-ink); display: inline-flex; align-items: center; justify-content: center; }
.dash3-ann-icon svg { width: 15px; height: 15px; stroke-width: 26; }
.dash3-ann-item + .dash3-ann-item { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--cx-line); }
.dash3-glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dash3-glance-tile { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--cx-line); border-radius: 14px; padding: 16px 12px 12px; box-shadow: var(--cx-shadow); transition: transform .15s; }
.dash3-glance-tile::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #B38A33, #D3AE57); }
.dash3-glance-tile:active { transform: scale(.96); }
.dash3-glance-tile b { display: block; font-size: 24px; font-weight: 800; color: var(--cx-ink); letter-spacing: -.5px; line-height: 1.1; }
.dash3-glance-tile span { display: block; margin-top: 4px; font-size: 11.5px; color: var(--cx-ink-2); }
.dash3-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dash3-action { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 12px; background: #fff; border: 1px solid var(--cx-line); border-radius: 16px; font-size: 11px; font-weight: 600; color: var(--cx-ink-2); text-align: center; box-shadow: var(--cx-shadow); transition: transform .15s; }
.dash3-action:active { transform: scale(.95); }
.dash3-action-ic { width: 36px; height: 36px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 16%, #fff); color: color-mix(in srgb, var(--c) 85%, #000); font-weight: 800; font-size: 16px; }
.dash3-action-ic svg { width: 17px; height: 17px; stroke-width: 26; }
.dash3-action em { position: absolute; top: 8px; right: 10px; font-style: normal; min-width: 18px; height: 18px; border-radius: 99px; background: #B34D45; color: #fff; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.dash3-date { width: 44px; height: 48px; border-radius: 12px; background: #F1ECE2; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.dash3-date b { font-size: 17px; font-weight: 800; color: var(--cx-ink); line-height: 1; }
.dash3-date small { font-size: 10px; font-weight: 700; color: var(--cx-gold-ink); text-transform: uppercase; margin-top: 2px; }
.dash3-inq.is-open { border-color: rgba(196,122,44,.35); background: linear-gradient(90deg, #FBF3EA, #fff 60%); }

/* KPI grid (v2: left colour strip + matching icon chip; label under value) */
.dash3-kpis .stat-card { background: #fff; border: 1px solid var(--cx-line); border-radius: 16px; padding: 14px 14px 12px 18px; box-shadow: var(--cx-shadow); overflow: visible; backdrop-filter: none; -webkit-backdrop-filter: none; }
.dash3-kpis .stat-card::before { border-radius: 16px 0 0 16px; width: 5px; background: var(--accent); }
.dash3-kpis .stat-card:hover { transform: none; }
.dash3-kpis .stat-icon { width: 32px; height: 32px; border-radius: 999px; }
.dash3-kpis .stat-icon svg { width: 16px; height: 16px; stroke-width: 26; }
.dash3-kpis .stat-value { color: var(--cx-ink); font-size: 24px; margin-top: 10px; line-height: 1.1; }
.dash3-kpis .stat-label { text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; color: var(--cx-ink-2); margin-top: 2px; }
.dash3-kpis .stat-sub { font-size: 11px; color: var(--cx-ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash3-kpis .stat-tip-body { left: auto; right: -40px; }

/* Compact select styled as a pill (filters next to search bars) */
.cx-select-pill { position: relative; flex-shrink: 0; }
.cx-select-pill select { appearance: none; -webkit-appearance: none; height: 46px; border-radius: 14px; border: 1px solid var(--cx-line-strong); background: var(--cx-black); color: #fff; font-size: 13px; font-weight: 700; padding: 0 30px 0 14px; outline: none; }
.cx-select-pill::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--cx-gold); border-bottom: 2px solid var(--cx-gold); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.cx-select-pill--light select { background: #fff; color: var(--cx-ink); }

/* Inquiry rows: status strip on the left edge */
.inq3-row { position: relative; overflow: hidden; padding-left: 16px; align-items: flex-start; }
.inq3-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--strip); }
.inq3-row .cx-avatar { margin-top: 2px; }

/* Export button (shared partial) in v3 headers */
.cx-head-actions .btn-glass-secondary-sm { height: 40px; border-radius: 12px; background: var(--cx-black) !important; color: #fff !important; border-color: var(--cx-black) !important; font-weight: 700; padding: 0 14px; font-size: 13px; }

/* ─── Inquiry detail ──────────────────────────────────────────────────────── */
.inq3-msg { background: #EDE8DE; border-radius: 16px; padding: 14px 16px; position: relative; }
.inq3-msg::before { content: ""; position: absolute; left: 22px; top: -7px; border: 7px solid transparent; border-top: 0; border-bottom-color: #EDE8DE; }
.inq3-svc { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--cx-line); border-radius: 14px; padding: 13px 14px; font-size: 14px; color: var(--cx-ink); }
.inq3-svc b { font-weight: 800; }
.inq3-check { width: 22px; height: 22px; border-radius: 6px; background: var(--cx-black); color: #E9CF86; font-size: 12px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.inq3-reject summary { list-style: none; text-align: center; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--cx-ink-3); padding: 8px; }
.inq3-reject summary::-webkit-details-marker { display: none; }
.inq3-reject[open] summary { color: var(--cx-red); }
.cx-btn svg, .cx-chip svg, .cx-pill svg { width: 18px; height: 18px; flex-shrink: 0; }
.cx-btn--sm svg { width: 16px; height: 16px; }
.cx-select-pill select { background: #fff; color: var(--cx-ink); -webkit-text-fill-color: var(--cx-ink); }

/* ─── Customers ───────────────────────────────────────────────────────────── */
.cx-avatar { position: relative; }
.cx-avatar img { position: absolute; inset: 0; }
.cust3-cam { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 99px; background: #fff; border: 1px solid var(--cx-line-strong); font-size: 10px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.cust3-wa { width: 32px; height: 32px; border-radius: 999px; background: var(--cx-wa); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(37,211,102,.3); }
.cust3-wa svg { width: 17px; height: 17px; }
.cust3-hero { background: radial-gradient(130% 160% at 100% 0%, #2B2418 0%, #141414 60%); color: #fff; border-radius: 20px; padding: 18px; display: flex; gap: 14px; align-items: center; box-shadow: 0 14px 30px rgba(0,0,0,.22); }
.cust3-hero .cx-avatar { width: 58px; height: 58px; font-size: 26px; background: #2E2A22; color: #E9CF86; border: 1px solid rgba(233,207,134,.25); }
.cust3-hero-meta { text-align: right; flex-shrink: 0; }
.cust3-hero-meta small { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; color: rgba(255,255,255,.55); text-transform: uppercase; }
.cust3-hero-meta b { display: block; font-size: 14px; font-weight: 800; color: #E9CF86; margin-bottom: 6px; }
.cust3-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; padding: 14px 6px; }
.cust3-stats > div + div { border-left: 1px solid var(--cx-line); }
.cust3-stats b { display: block; font-size: 20px; font-weight: 800; color: var(--cx-ink); letter-spacing: -.3px; }
.cust3-stats span { font-size: 11.5px; color: var(--cx-ink-2); }
.cust3-hist { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--cx-line); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; color: var(--cx-ink); }
.cust3-hist .d { width: 48px; font-size: 11.5px; font-weight: 700; color: var(--cx-ink-3); flex-shrink: 0; }
.cust3-hist .n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cust3-notes { background: #EDE8DE; border-radius: 16px; padding: 14px 16px; font-size: 13.5px; color: var(--cx-ink); }
.cust3-notes li { padding-left: 14px; position: relative; }
.cust3-notes li + li { margin-top: 6px; }
.cust3-notes li::before { content: "•"; position: absolute; left: 0; color: var(--cx-gold-ink); font-weight: 900; }

/* ─── Services ────────────────────────────────────────────────────────────── */
.svc3-group + .svc3-group { margin-top: 18px; }
.svc3-cat { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; margin: 6px 2px 10px; font-family: 'Inter', sans-serif !important; }
.svc3-cat em { font-style: normal; font-size: 11px; color: var(--cx-ink-3); font-weight: 700; }
.svc3-cat-ic { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; }
.svc3-cat-ic svg { width: 15px; height: 15px; stroke-width: 24; }
.svc3-card { position: relative; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--cx-line); border-radius: 16px; padding: 12px 12px 12px 18px; box-shadow: var(--cx-shadow); overflow: hidden; transition: opacity .25s, filter .25s; }
.svc3-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--strip); }
.svc3-card.is-off { opacity: .62; }
.svc3-card.is-off::before { background: #C9C4BA; }
.svc3-thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.svc3-thumb--icon { display: inline-flex; align-items: center; justify-content: center; font-size: 24px; background: #F4F0E8; }
.svc3-name { font-weight: 800; font-size: 15px; color: var(--cx-ink); }
.svc3-desc { font-size: 12.5px; color: var(--cx-ink-2); margin-top: 1px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc3-meta { font-size: 12px; color: var(--cx-ink-3); margin-top: 3px; }
.svc3-meta b { color: var(--cx-ink); font-weight: 800; }
.svc3-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.svc3-btn { width: 34px; height: 30px; border-radius: 9px; background: #F1EDE5; color: var(--cx-ink-2); display: inline-flex; align-items: center; justify-content: center; transition: transform .15s; }
.svc3-btn:active { transform: scale(.9); }
.svc3-btn svg { width: 15px; height: 15px; }
.svc3-btn--del { background: var(--cx-red-wash); color: var(--cx-red); }

/* iOS-style switch */
.cx-switch { position: relative; display: inline-block; width: 46px; height: 28px; flex-shrink: 0; cursor: pointer; }
.cx-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cx-switch span { position: absolute; inset: 0; border-radius: 999px; background: #DCD8D0; transition: background .25s; }
.cx-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 999px; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: transform .28s var(--cx-ease); }
.cx-switch input:checked + span { background: var(--cx-gold); }
.cx-switch input:checked + span::after { transform: translateX(18px); }
.cx-switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(201,162,74,.35); }

/* ─── Packages ────────────────────────────────────────────────────────────── */
.pkg3-card { background: #fff; border: 1px solid var(--cx-line); border-radius: 18px; overflow: hidden; box-shadow: var(--cx-shadow); }
.pkg3-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: radial-gradient(120% 200% at 100% 0%, color-mix(in srgb, var(--acc) 45%, var(--bg)) 0%, var(--bg) 60%); overflow: hidden; }
.pkg3-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--acc), transparent); }
.pkg3-name { font-family: 'Inter', sans-serif !important; font-weight: 800; font-size: 15.5px; color: color-mix(in srgb, var(--acc) 55%, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pkg3-status { flex-shrink: 0; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #E9CF86; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14); padding: 4px 10px; border-radius: 999px; }
.pkg3-status.is-off { color: rgba(255,255,255,.55); }
.pkg3-body { padding: 12px 16px 14px; }
.pkg3-price { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }

/* ─── Coupons ─────────────────────────────────────────────────────────────── */
.cpn3-card { display: flex; background: #fff; border: 1px solid var(--cx-line); border-radius: 18px; overflow: hidden; box-shadow: var(--cx-shadow); }
.cpn3-card.is-dim { opacity: .75; }
.cpn3-code { position: relative; width: 104px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px 8px; text-align: center; border-right: 2px dashed rgba(17,17,17,.10); }
.cpn3-code span { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-weight: 800; font-size: 13.5px; letter-spacing: .02em; word-break: break-all; line-height: 1.2; }
.cpn3-copy { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.7); color: inherit; }
.cpn3-body { flex: 1; min-width: 0; padding: 12px 14px; }
.cpn3-disc { font-size: 17px; font-weight: 800; color: var(--cx-ink); letter-spacing: -.2px; }
.cpn3-chip { font-size: 11.5px; font-weight: 600; color: var(--cx-ink-2); background: #F1EDE5; border-radius: 8px; padding: 3px 8px; }
.cpn3-state { margin-top: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

/* ─── Staff ───────────────────────────────────────────────────────────────── */
.staff3-row { background: #fff; border: 1px solid var(--cx-line); border-radius: 16px; padding: 12px 14px; box-shadow: var(--cx-shadow); }
.staff3-actions { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--cx-line); }
.staff3-switch span::after { width: 18px !important; height: 18px !important; }
.staff3-switch input:checked + span::after { transform: translateX(16px) !important; }

/* ─── Stock ───────────────────────────────────────────────────────────────── */
.stk3-alert { display: flex; align-items: center; gap: 12px; background: var(--cx-red-wash); border: 1px solid rgba(179,77,69,.18); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; }
.stk3-alert-ic { width: 32px; height: 32px; border-radius: 99px; background: rgba(179,77,69,.14); color: var(--cx-red); font-weight: 900; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stk3-row { background: #fff; border: 1px solid var(--cx-line); border-radius: 16px; padding: 12px 14px; box-shadow: var(--cx-shadow); }
.stk3-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; font-size: 11.5px; color: var(--cx-ink-3); }
.stk3-meta b { color: var(--cx-ink); }
.stk3-actions { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--cx-line); }

/* ─── Subscription ────────────────────────────────────────────────────────── */
.sub3-current { position: relative; overflow: hidden; background: radial-gradient(130% 160% at 100% 0%, #2A3A55 0%, #111B2C 55%, #0B1220 100%); color: #fff; border-radius: 20px; padding: 18px; box-shadow: 0 14px 30px rgba(17,27,44,.25); }
.sub3-current::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 190px; height: 190px; border-radius: 999px; background: radial-gradient(circle, rgba(201,162,74,.35), transparent 65%); }
.sub3-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #E9CF86; }
.sub3-name { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 28px; line-height: 1.1; margin-top: 4px; }
.sub3-name span { font-size: 16px; opacity: .7; }
.sub3-active { flex-shrink: 0; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #E9CF86; background: rgba(233,207,134,.14); border: 1px solid rgba(233,207,134,.25); padding: 5px 12px; border-radius: 999px; }
.sub3-meta { position: relative; z-index: 1; margin-top: 10px; font-size: 12.5px; color: rgba(255,255,255,.72); }
.sub3-meta b { color: #fff; }
body.sevwas-crm .interval-btn.active { background: var(--cx-black) !important; color: #fff !important; }

/* ─── Support ─────────────────────────────────────────────────────────────── */
.sup3-q { width: 30px; height: 30px; border-radius: 99px; background: var(--cx-gold-wash); color: var(--cx-gold-ink); font-weight: 900; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sup3-help { margin-top: 22px; background: radial-gradient(130% 160% at 100% 0%, #2B2418 0%, #141414 60%); color: #fff; border-radius: 20px; padding: 18px; box-shadow: 0 14px 30px rgba(0,0,0,.2); }
.sup3-help-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; font-weight: 600; color: #E9CF86; }
@media (min-width: 768px) { .crm-top-avatar.md\:hidden { display: none; } .dash3-hero, .dash3-glance, .dash3-actions { max-width: 100%; } }
/* Narrow phones: auto-refresh pill drops the "Auto" word so the salon name keeps room */
@media (max-width: 399px) { .crm-ar { padding: 0 9px; } .crm-ar-word { display: none; } }
