:root,
[data-theme="prism"],
[data-theme="indigo"],
[data-theme="emerald"] {
  /* โหมดสว่าง — Aero Prism (Harmonized Brand Palette) */
  --bg: #EEF1F6;
  --panel: #FFFFFF;
  --surface-2: #F4F7FC;
  --ink: #1E2942;
  --ink-2: #313F5E;
  --muted: #5E6A85;
  --subtle: #8A96B0;
  --line: #D8E0EF;
  --line-strong: #C1CCE2;

  /* Primary Brand & Live Capsule Accent */
  --brand: #1E2942;
  --brand-hover: #151E32;
  --brand-btn-fg: #FFFFFF;
  --brand-2: #0E9F8A;
  --brand-soft: rgba(14, 159, 138, 0.10);
  --brand-ring: rgba(14, 159, 138, 0.20);
  --brand-rgb: 14, 159, 138;

  --live: #0E9F8A;
  --live-ink: #0B8573;
  --live-soft: rgba(14, 159, 138, 0.12);

  --accent: #D97706;
  --accent-ink: #92400E;
  --accent-soft: #FEF3C7;

  /* Semantic Status Colors */
  --good: #0E9F8A;
  --good-ink: #065F46;
  --good-soft: #D1FAE5;

  --warn: #F59E0B;
  --warn-ink: #92400E;
  --warn-soft: #FEF3C7;

  --bad: #EF4444;
  --bad-ink: #991B1B;
  --bad-soft: #FEE2E2;

  --info: #F59E0B;
  --info-ink: #92400E;
  --info-soft: #FEF3C7;

  /* Frosted Aero Sidebar & Top Pulse Bar */
  --side-bg: rgba(255, 255, 255, 0.88);
  --side-border: #D8E0EF;
  --side-text: #4D5A75;
  --side-muted: #6E7B96;
  --side-hover: rgba(30, 41, 66, 0.05);
  --side-active-bg: rgba(30, 41, 66, 0.08);
  --side-active-fg: #1E2942;
  --topbar-bg: rgba(255, 255, 255, 0.90);
  --tbl-head-bg: #F6F8FC;
  --tbl-hover-bg: rgba(30, 41, 66, 0.025);
  --leave-stripe-1: #F1F5FA;
  --leave-stripe-2: #E4EAF4;
  --login-bg: radial-gradient(circle at 20% 10%, #FFFFFF 0%, #E8EEF8 60%, #DCE5F3 100%);

  /* Elevation & Geometry */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-xs: 0 1px 2px rgba(30, 41, 66, 0.04);
  --shadow: 0 1px 3px rgba(30, 41, 66, 0.05), 0 6px 16px rgba(30, 41, 66, 0.035);
  --shadow-md: 0 6px 20px rgba(30, 41, 66, 0.09), 0 1px 3px rgba(30, 41, 66, 0.04);
  --font: 'Sarabun', 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Prompt', 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-brand: 'Plus Jakarta Sans', 'Prompt', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* โหมดถนอมตา — Nordic Atelier (Warm Espresso & Terracotta) */
[data-theme="nordic"] {
  --bg: #F3EEE6;
  --panel: #FCFBF8;
  --surface-2: #F4EFE7;
  --ink: #3B2D25;
  --ink-2: #544238;
  --muted: #78685E;
  --subtle: #9E8E83;
  --line: #E2DBD0;
  --line-strong: #CFC5B7;

  --brand: #3B2D25;
  --brand-hover: #2A1F19;
  --brand-btn-fg: #FAF6F0;
  --brand-2: #C85A32;
  --brand-soft: rgba(200, 90, 50, 0.10);
  --brand-ring: rgba(200, 90, 50, 0.20);
  --brand-rgb: 200, 90, 50;

  --live: #C85A32;
  --live-ink: #A64420;
  --live-soft: rgba(200, 90, 50, 0.13);

  --accent: #C85A32;
  --accent-ink: #9A3B19;
  --accent-soft: #FBE9E1;

  --good: #2E7D60;
  --good-ink: #1C5640;
  --good-soft: #E1F2EB;

  --warn: #D4842A;
  --warn-ink: #864D0E;
  --warn-soft: #FAEDD8;

  --bad: #C9453B;
  --bad-ink: #8C261E;
  --bad-soft: #FBE4E2;

  --side-bg: #FAF8F4;
  --side-border: #E2DBD0;
  --side-text: #65544A;
  --side-muted: #847368;
  --side-hover: rgba(59, 45, 37, 0.05);
  --side-active-bg: rgba(59, 45, 37, 0.08);
  --side-active-fg: #3B2D25;
  --topbar-bg: rgba(250, 248, 244, 0.92);
  --tbl-head-bg: #F6F2EA;
  --tbl-hover-bg: rgba(59, 45, 37, 0.03);
  --leave-stripe-1: #EFEAE1;
  --leave-stripe-2: #E4DDD1;
  --login-bg: radial-gradient(circle at 20% 10%, #FCFBF8 0%, #F3EEE6 65%, #E7DFD3 100%);
}

/* โหมดมืด — Obsidian Velvet (Smoked Glass, Champagne Ivory & Gold-Amber) */
[data-theme="obsidian"] {
  --bg: #14161A;
  --panel: #1C1F27;
  --surface-2: #161920;
  --ink: #F3EAD8;
  --ink-2: #DDD3C0;
  --muted: #989CA8;
  --subtle: #6E7382;
  --line: rgba(243, 234, 216, 0.10);
  --line-strong: rgba(243, 234, 216, 0.20);

  --brand: #E3A04A;
  --brand-hover: #EEB05E;
  --brand-btn-fg: #14161A;
  --brand-2: #E3A04A;
  --brand-soft: rgba(227, 160, 74, 0.13);
  --brand-ring: rgba(227, 160, 74, 0.24);
  --brand-rgb: 227, 160, 74;

  --live: #E3A04A;
  --live-ink: #F3B86B;
  --live-soft: rgba(227, 160, 74, 0.16);

  --accent: #E3A04A;
  --accent-ink: #F7C67E;
  --accent-soft: rgba(227, 160, 74, 0.18);

  --good: #25B888;
  --good-ink: #6EE7B7;
  --good-soft: rgba(37, 184, 136, 0.16);

  --warn: #E3A04A;
  --warn-ink: #FCD34D;
  --warn-soft: rgba(227, 160, 74, 0.16);

  --bad: #F87171;
  --bad-ink: #FCA5A5;
  --bad-soft: rgba(248, 113, 113, 0.16);

  --side-bg: #191C22;
  --side-border: rgba(243, 234, 216, 0.09);
  --side-text: #A9ADB9;
  --side-muted: #7C8190;
  --side-hover: rgba(243, 234, 216, 0.05);
  --side-active-bg: rgba(243, 234, 216, 0.09);
  --side-active-fg: #F3EAD8;
  --topbar-bg: rgba(25, 28, 34, 0.92);
  --tbl-head-bg: #181B22;
  --tbl-hover-bg: rgba(243, 234, 216, 0.03);
  --leave-stripe-1: #181B22;
  --leave-stripe-2: #20242E;
  --login-bg: radial-gradient(circle at 25% 15%, #232733 0%, #14161A 70%);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.28), 0 8px 24px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.38);
}


* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); letter-spacing: 0.01em; transition: background-color 0.2s ease, color 0.2s ease; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; color: var(--ink); margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: 20px; }
h2 { font-size: 16px; }
h3 { font-size: 15px; }
a { color: var(--live-ink); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- Layout & Navigation (Aero Prism Spatial Architecture) ---------- */
.shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; }
.side {
  background: var(--side-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ink);
  padding: 16px 12px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid var(--side-border);
  overflow-y: auto;
}
.side .logo {
  padding: 4px 12px 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
  display: inline-flex;
  filter: drop-shadow(0 2px 5px rgba(15, 23, 42, 0.08));
}
.brand-mark svg, .login-logo svg { width: 100%; height: 100%; display: block; }
.brand-word {
  font-family: var(--font-brand);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
/* ตัว Q ของโลโก้ตัวอักษร — วาดเป็น SVG ให้หางโค้งพลิ้ว (แทนหางตรงของฟอนต์) */
.brand-q {
  display: inline-block;
  height: 0.9em;
  width: auto;
  vertical-align: -0.17em;
  margin-left: 0.01em;
  overflow: visible;
}
.side .logo .shop-sub {
  margin-top: 8px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.side .logo small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--side-muted);
  margin-top: 1px;
}
.side a.nav {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--side-text);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.side a.nav .nav-ic {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--side-muted);
  transition: color 0.15s ease;
}
.side a.nav .nav-ic svg { width: 18px; height: 18px; display: block; }
.side a.nav:hover {
  background: var(--side-hover);
  color: var(--ink);
}
.side a.nav:hover .nav-ic { color: var(--ink); }
.side a.nav.active {
  background: var(--side-active-bg);
  color: var(--side-active-fg);
  font-weight: 600;
}
.side a.nav.active .nav-ic {
  color: var(--live);
}
.side .grow { flex: 1; min-height: 8px; }

/* Clean 3-Mode Switcher (สว่าง | ถนอมตา | มืด) */
.mode-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin: 8px 2px 8px;
  user-select: none;
}
.mode-seg button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 4px 4px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mode-seg button:hover { color: var(--ink); }
.mode-seg button.active {
  background: var(--panel);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.side .me {
  font-size: 13px;
  padding: 12px 12px 2px;
  border-top: 1px solid var(--line);
  color: var(--side-muted);
}
.side .me b {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--ink);
}
.side .me button {
  background: none;
  border: 0;
  color: var(--side-text);
  padding: 0;
  margin-right: 12px;
  cursor: pointer;
  font-size: 12px;
  opacity: 0.9;
  transition: color 0.15s;
}
.side .me button:hover { color: var(--live-ink); text-decoration: underline; }

/* ---------- Main Workspace & Live Stylist Pulse Header ---------- */
.main-col-shell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.pulse-bar {
  position: sticky;
  top: 0;
  z-index: 22;
  background: var(--topbar-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 12px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pulse-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.pulse-label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-right: 2px;
  white-space: nowrap;
}
.pulse-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 99px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pulse-pill:hover {
  border-color: var(--live);
  color: var(--ink);
}
.pulse-pill.free {
  background: var(--live-soft);
  border-color: rgba(var(--brand-rgb), 0.28);
  color: var(--live-ink);
  font-weight: 600;
}
.pulse-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--subtle);
  flex-shrink: 0;
}
.pulse-pill.free .dot {
  background: var(--live);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.18);
}
.pulse-pill.leave {
  opacity: 0.7;
  cursor: default;
}
.pulse-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.drawer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.drawer-pill:hover {
  border-color: var(--live);
  text-decoration: none;
  color: var(--ink);
}

main#view { padding: 24px 28px 64px; min-width: 0; max-width: 1600px; width: 100%; }
.topbar { display: none; }
.side-backdrop { display: none; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 35;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .side-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }
  .side {
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(286px, 84vw);
    z-index: 40;
    height: 100%;
    background: var(--panel);
    box-shadow: 8px 0 32px rgba(15, 23, 42, 0.28);
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .side.open { transform: translateX(0); }
  .topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--topbar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--ink);
    padding: 8px 16px;
    position: sticky;
    top: 0;
    z-index: 30;
    font-family: var(--font-head);
    font-weight: 600;
    border-bottom: 1px solid var(--line);
  }
  .topbar button {
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 20px;
    line-height: 1;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .pulse-bar {
    position: static;
    padding: 8px 16px;
  }
  main#view { padding: 16px 16px 64px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Cards & Containers ---------- */
.page-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.page-head h1 { margin: 0; color: var(--ink); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  min-width: 0;
}
.card + .card { margin-top: 16px; }
.card h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  margin-bottom: 12px;
}
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pos-grid { grid-template-columns: 280px minmax(0, 1fr) 350px; align-items: start; }
.pos-grid .bill-col { position: sticky; top: 68px; }
.pos-grid .queue-scroll { max-height: calc(100vh - 200px); overflow-y: auto; padding-right: 2px; }
@media (max-width: 1200px) {
  .pos-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .pos-grid .queue-col { grid-column: 1 / -1; order: 0; }
  .pos-grid .queue-scroll { max-height: 220px; }
}
@media (max-width: 860px) {
  .g2, .g3, .pos-grid { grid-template-columns: 1fr; }
  .pos-grid .queue-col { order: 0; }
  .pos-grid .main-col { order: 1; }
  .pos-grid .bill-col { order: 2; position: static; }
  .pos-grid .queue-scroll { max-height: 210px; -webkit-overflow-scrolling: touch; }
}

/* ---------- KPIs ---------- */
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px;
  box-shadow: var(--shadow);
}
.kpi .l { color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi .v {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.kpi .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi.hl {
  background: var(--brand);
  color: var(--brand-btn-fg);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.kpi.hl .v { color: var(--brand-btn-fg); }
.kpi.hl .l, .kpi.hl .s { color: var(--brand-btn-fg); opacity: 0.82; }
.kpis.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 12px; }
.kpis-4 .kpi .v { font-size: 28px; }
.stat-strip { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 12px 16px; margin-bottom: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; }
.stat-strip > div { display: flex; align-items: baseline; gap: 8px; }
.stat-strip span { color: var(--muted); }
.stat-strip b { font-family: var(--font-head); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat-strip small { font-size: 12px; color: var(--subtle); }
@media (max-width: 860px) { .kpis.kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis-4 .kpi .v { font-size: 20px; } }

/* ---------- Buttons & Segmented Controls ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink-2);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s ease;
}
.btn:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
}
.btn:active { transform: translateY(0.5px); }
.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-btn-fg);
  box-shadow: var(--shadow-xs);
}
.btn.primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: var(--brand-btn-fg);
}
.btn.accent {
  background: var(--live);
  border-color: var(--live);
  color: #FFFFFF;
}
[data-theme="obsidian"] .btn.accent { color: #14161A; }
.btn.danger {
  color: var(--bad);
  border-color: rgba(239, 68, 68, 0.30);
  background: var(--panel);
}
.btn.danger:hover {
  background: var(--bad-soft);
  border-color: var(--bad);
  color: var(--bad-ink);
}
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { padding: 4px 12px; font-size: 13px; border-radius: 8px; }
.btn.lg { padding: 12px 20px; font-size: 16px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.seg {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
  flex-wrap: wrap;
}
.seg button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.seg button:hover { color: var(--ink); }
.seg button.on {
  background: var(--panel);
  box-shadow: var(--shadow-xs);
  color: var(--live-ink);
  font-weight: 600;
}

/* ---------- Forms & Inputs ---------- */
label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; font-weight: 500; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=time], input[type=month], input[type=tel], input[type=search], select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  outline: none;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder, textarea::placeholder { color: var(--subtle); }
input:focus, select:focus, textarea:focus {
  border-color: var(--live);
  box-shadow: 0 0 0 3px var(--brand-ring);
}
textarea { resize: vertical; min-height: 80px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1; min-width: 140px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.right { text-align: right; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 12px; }
.hidden { display: none !important; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th {
  text-align: left;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 8px 8px;
  white-space: nowrap;
  background: var(--tbl-head-bg);
}
.tbl th.num { text-align: right; }
.tbl td { border-bottom: 1px solid var(--line); padding: 8px 8px; vertical-align: middle; color: var(--ink); }
.tbl tr:hover td { background: var(--tbl-hover-bg); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tfoot td { font-weight: 600; border-top: 2px solid var(--line); background: var(--surface-2); }
.tbl tr.void td { color: var(--subtle); text-decoration: line-through; }

/* ---------- Semantic Soft Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-head);
  background: var(--surface-2);
  color: var(--muted);
  white-space: nowrap;
}
.badge.booked, .badge.admin {
  background: var(--warn-soft);
  color: var(--warn-ink);
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.badge.done {
  background: var(--good-soft);
  color: var(--good-ink);
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.badge.cancelled, .badge.noshow {
  background: var(--bad-soft);
  color: var(--bad-ink);
  border: 1px solid rgba(239, 68, 68, 0.22);
}

.empty { text-align: center; color: var(--muted); padding: 28px 12px; font-size: 15px; }

/* ---------- POS ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line);
  background: var(--panel);
  color: var(--ink-2);
  padding: 8px 16px;
  border-radius: 99px;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 500;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--live); color: var(--ink); }
.chip.on {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--brand-btn-fg);
  box-shadow: var(--shadow-xs);
}
.chip.off { opacity: .45; cursor: not-allowed; text-decoration: line-through; }

.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 12px; }
.svc {
  position: relative;
  border: 1.5px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 16px 12px;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s ease;
}
.svc:hover {
  border-color: var(--live);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.svc:active { transform: scale(.985); }
.svc.on {
  border-color: var(--live);
  background: var(--live-soft);
  box-shadow: inset 0 0 0 1px var(--live);
}
.svc .svc-check {
  position: absolute;
  top: 9px;
  right: 9px;
  background: var(--live);
  color: #FFFFFF;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 99px;
}
[data-theme="obsidian"] .svc .svc-check { color: #14161A; }
.svc.svc-custom {
  border-style: dashed;
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.svc.svc-custom:hover, .svc.svc-custom.open {
  border-style: solid;
  border-color: var(--live);
  background: var(--live-soft);
}
.svc .n { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); padding-right: 12px; }
.svc .p {
  font-size: 20px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--live-ink);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.svc .k { font-size: 12px; color: var(--muted); margin-top: 2px; }

.custom-svc-box {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
}
.qty button:hover { border-color: var(--live); color: var(--live-ink); }

.total-box {
  background: var(--brand-soft);
  border: 1px solid rgba(var(--brand-rgb), 0.22);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}
.total-box .big {
  font-size: 28px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--live-ink);
  font-variant-numeric: tabular-nums;
}
.q-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  background: var(--panel);
  transition: all 0.15s ease;
}
.q-item:hover { border-color: var(--live); background: var(--surface-2); }
.q-item.sel { border-color: var(--live); background: var(--brand-soft); }
.q-item .t { font-family: var(--font-head); font-weight: 600; color: var(--ink); }

/* ---------- Cash Drawer Strip & Variance Cards ---------- */
.drawer-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--live);
  box-shadow: var(--shadow-xs);
}
.drawer-strip.unopened {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}
.drawer-variance {
  border-radius: var(--radius);
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  text-align: center;
}
.drawer-variance.exact {
  background: var(--good-soft);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--good-ink);
}
.drawer-variance.over {
  background: var(--warn-soft);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--warn-ink);
}
.drawer-variance.short {
  background: var(--bad-soft);
  border-color: rgba(239, 68, 68, 0.38);
  color: var(--bad-ink);
}
.drawer-variance .v-num {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.search-pop { position: relative; }
.search-pop .list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-height: 260px;
  overflow: auto;
}
.search-pop .list div { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--surface-2); }
.search-pop .list div:hover { background: var(--brand-soft); }
.cust-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: var(--brand-soft);
  border: 1px solid rgba(var(--brand-rgb), 0.24);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.qr-box { text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.qr-box svg, .qr-box img { width: 100%; max-width: 230px; height: auto; display: block; margin: 0 auto 8px; background: #FFFFFF; padding: 8px; border-radius: 8px; }
.qr-amt { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--live-ink); }
.slip-prev { max-width: 120px; max-height: 160px; border-radius: 8px; border: 1px solid var(--line); }
.slip-thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.slip-thumb { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.slip-gallery { display: grid; gap: 16px; }
.slip-gallery figure { margin: 0; }
.slip-gallery figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; margin-bottom: 8px; }
.sale-note { color: var(--ink-2, var(--muted)); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.slip-full { display: block; max-width: 100%; max-height: 75vh; margin: 0 auto; border-radius: 8px; }

/* ---------- Calendar & Queue Table (Multi-Slot Ready) ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .hd { text-align: center; font-size: 12px; color: var(--muted); font-family: var(--font-head); font-weight: 500; padding: 4px 0; }
.cal .d {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 74px;
  padding: 8px 8px;
  cursor: pointer;
  font-size: 12px;
  overflow: hidden;
  transition: all 0.15s ease;
}
.cal .d:hover { border-color: var(--live); }
.cal .d.out { opacity: .38; background: var(--bg); }
.cal .d.today { border-color: var(--live); box-shadow: inset 0 0 0 1px var(--live); }
.cal .d.sel { background: var(--brand-soft); border-color: var(--live); }
.cal .d.closed { background: var(--surface-2); color: var(--muted); }
.cal .d .dn { font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--ink); }
.cal .d .cnt {
  display: inline-block;
  white-space: nowrap;
  background: var(--brand);
  color: var(--brand-btn-fg);
  border-radius: 99px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}
.cal .d .lv { color: var(--warn-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }

/* หน้าคิว: ปฏิทินคู่ตารางเมื่อจอกว้างพอ (≥1280px) ไม่อย่างนั้นวางซ้อนกัน — ตัดสินด้วย CSS ไม่ใช่ขนาดจอตอนโหลด */
.queue-layout { grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1280px) { .queue-layout { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); } }

/* ตารางคิว: สเกลคงที่ — ทุกแถวสูง --slot-h ทุกคอลัมน์กว้างเท่ากัน (ไม่ขยายตามความยาวชื่อ)
   คิวยาว n ช่อง = n × --slot-h + (n−1) × 5px  ·  จอแคบกว่า --cols × --col-min จะเลื่อนซ้าย-ขวาในกรอบตาราง */
.sched {
  --slot-h: 58px;
  --col-min: 128px;
  border-collapse: separate;
  border-spacing: 5px;
  width: 100%;
  table-layout: fixed;
  min-width: calc(var(--cols, 4) * var(--col-min) + (var(--cols, 4) + 1) * 5px);
}
.sched tbody tr { height: var(--slot-h); }
.sched th {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 8px;
  white-space: nowrap;
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 2;
  border-bottom: 2px solid var(--line);
}
.sched td { vertical-align: stretch; height: 1px; padding: 0; }
.sched td.t { display: none; }

.slot {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 13px;
  background: var(--panel);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  transition: all 0.15s ease;
}
.slot.span-slot {
  justify-content: flex-start;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 3px;
}
.slot .slot-time {
  font-family: var(--font-head);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--subtle);
  line-height: 1.2;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
}
.slot .slot-time > span:first-child { flex: none; }
.slot-svc {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  opacity: .85;
}
.slot-time .slot-svc { text-align: right; }
.slot-who { display: flex; align-items: center; gap: 4px; min-width: 0; margin-top: 3px; }
.slot-who b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-dot { flex: none; font-size: 12px; line-height: 1; }
.span-slot > .slot-svc { font-size: 12px; margin-top: 1px; }
.slot-span-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
  white-space: nowrap;
}
[data-theme="obsidian"] .slot-span-pill {
  background: rgba(255, 255, 255, 0.12);
}

.slot.free {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background: var(--panel);
}
.slot.free .slot-action {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 500;
  opacity: 0;
  transition: color 0.15s ease, opacity 0.15s ease;
}
.slot.free:hover .slot-action, .slot.free:focus-visible .slot-action { opacity: 1; }
.slot.free .slot-time { color: var(--subtle); }
.slot.free:hover {
  border-color: var(--live);
  background: var(--live-soft);
}
.slot.free:hover .slot-time,
.slot.free:hover .slot-action {
  color: var(--live-ink);
  font-weight: 600;
}
.slot.past.free {
  background: var(--surface-2);
  border-color: var(--line);
  opacity: .72;
}
.slot.past.free .slot-time { color: var(--subtle); }

.slot.b-booked {
  background: var(--warn-soft);
  border: 1px solid rgba(245, 158, 11, 0.40);
  border-left: 4px solid var(--warn);
  color: var(--warn-ink);
}
.slot.b-booked .slot-time { color: var(--warn-ink); margin-bottom: 2px; font-weight: 600; }
.slot.b-booked b { color: var(--ink); }
.slot.b-booked .small { color: var(--warn-ink); }

.slot.b-done {
  background: var(--good-soft);
  border: 1px solid rgba(16, 185, 129, 0.40);
  border-left: 4px solid var(--good);
  color: var(--good-ink);
}
.slot.b-done .slot-time { color: var(--good-ink); margin-bottom: 2px; font-weight: 600; }
.slot.b-done b { color: var(--ink); }
.slot.b-done .small { color: var(--good-ink); }

.slot.b-noshow {
  background: var(--bad-soft);
  border: 1px solid rgba(239, 68, 68, 0.40);
  border-left: 4px solid var(--bad);
  color: var(--bad-ink);
}
.slot.b-noshow .slot-time { color: var(--bad-ink); margin-bottom: 2px; font-weight: 600; }
.slot.b-noshow b { color: var(--ink); }
.slot.b-noshow .small { color: var(--bad-ink); }

.slot.leave {
  background: repeating-linear-gradient(
    -45deg,
    var(--leave-stripe-1),
    var(--leave-stripe-1) 6px,
    var(--leave-stripe-2) 6px,
    var(--leave-stripe-2) 12px
  );
  border: 1px solid var(--line);
  cursor: not-allowed;
  color: var(--muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.78;
}
.slot b { font-family: var(--font-head); font-weight: 600; font-size: 13px; }

/* ---------- Dashboard ---------- */
.insights { display: grid; gap: 12px; }
/* Dashboard: 1–2 things to act on first, the rest as a quiet list */
.ins-focus { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 8px; }
.ins { border-radius: var(--radius-sm); padding: 12px 16px; border: 1px solid var(--line); background: var(--panel); }
.ins .a { font-size: 12px; color: var(--muted); }
.ins .t { font-family: var(--font-head); font-weight: 600; margin-top: 2px; color: var(--ink); }
.ins .d { font-size: 13px; margin-top: 4px; color: var(--muted); }
.ins.bad { border-color: var(--bad); box-shadow: inset 3px 0 0 var(--bad); }
.ins.warn { border-color: var(--warn); box-shadow: inset 3px 0 0 var(--warn); }
.ins-list { list-style: none; margin: 0; padding: 0; }
.ins-list li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ins-list li:first-child { border-top: 0; }
.ins-list .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 8px; background: var(--subtle); }
.ins-list .bad .dot { background: var(--bad); }
.ins-list .warn .dot { background: var(--warn); }
.ins-list .good .dot { background: var(--good); }
.ins-list .t { font-weight: 500; color: var(--ink); }
.ins-list .a { font-size: 12px; color: var(--subtle); margin-left: 4px; }
.ins-list .d { font-size: 13px; color: var(--muted); }

.chart svg { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--live); transition: opacity 0.15s ease; }
.chart .bar:hover { opacity: 0.82; }
.chart .axis { stroke: var(--line); }
.chart text { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.heat { border-collapse: separate; border-spacing: 3px; font-size: 11px; }
.heat td, .heat th { text-align: center; padding: 0; }
.heat th { font-weight: 500; color: var(--muted); padding: 0 4px; white-space: nowrap; }
.heat td.c { width: 30px; height: 24px; border-radius: 5px; }
.bar-h { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; min-width: 60px; }
.bar-h > i { display: block; height: 100%; background: var(--live); border-radius: 99px; }
.legend { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; }

/* ---------- Todo ---------- */
.todo { display: flex; align-items: flex-start; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--surface-2); }
.todo input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--live); cursor: pointer; }
.todo .tx { flex: 1; color: var(--ink); }
.todo.done .tx { text-decoration: line-through; color: var(--subtle); }
.todo .by { font-size: 12px; color: var(--muted); }

/* ---------- Walk-in Queue ---------- */
.walkin-card { border-left: 4px solid var(--warn); }
.walkin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.walkin-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--warn);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s ease;
}
.walkin-item.serving {
  border-color: rgba(16, 185, 129, 0.45);
  border-left: 4px solid var(--good);
  background: var(--good-soft);
}
.walkin-num { font-family: var(--font-head); font-size: 12px; color: var(--warn-ink); font-weight: 600; }
.walkin-item.serving .walkin-num { color: var(--good-ink); }
.walkin-name { font-size: 15px; margin-top: 2px; color: var(--ink); }
.walkin-sec + .walkin-sec { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.walkin-sec-h { font-weight: 600; font-size: 15px; color: var(--ink-2); margin-bottom: 8px; }
.walkin-empty { padding: 4px 0 2px; }
.walkin-item.next { border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn), var(--shadow-xs); }
/* คิวจอง: ยังไม่มาถึงร้าน → ขอบประ สีจาง ไม่ให้ช่างเผลอเรียกชื่อ */
.walkin-item.reserved { background: var(--surface-2); border-style: dashed; border-left: 4px dashed var(--line-strong); box-shadow: none; }
.walkin-item.reserved .walkin-num { color: var(--muted); }
.walkin-item.reserved .walkin-name { color: var(--ink-2); }
.walkin-item.reserved.late { border-left: 4px solid var(--bad); }
.walkin-item.reserved.late .walkin-num { color: var(--bad-ink); }

/* ---------- Modal / Toast / Login ---------- */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 12px;
  z-index: 50;
  overflow: auto;
}
.modal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  width: 100%;
  max-width: 530px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.26);
}
.modal.wide { max-width: 760px; }
.modal .mh { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal .mh h2 { margin: 0; }
.modal .mb { padding: 20px 20px; }
.modal .mf { padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 16px 16px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; }
#toast div {
  background: var(--brand);
  color: var(--brand-btn-fg);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-family: var(--font-head);
  font-size: 15px;
  animation: pop .2s cubic-bezier(0.16, 1, 0.3, 1);
}
#toast div.err { background: var(--bad); color: #FFFFFF; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--login-bg);
}
.login {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px 28px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-md);
}
.login-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.login-logo {
  width: 68px;
  height: 68px;
  filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.12));
}
.login h1 {
  text-align: center;
  font-family: var(--font-brand);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}

/* ---------- Mobile Phone Optimization (<= 600px) ---------- */
@media (max-width: 600px) {
  main#view { padding: 12px 12px 76px; }
  .page-head { gap: 8px; margin-bottom: 12px; }
  .page-head h1 { font-size: 20px; }
  h2 { font-size: 16px; }
  h3 { font-size: 15px; }
  .card { padding: 12px; border-radius: 12px; }
  .card + .card { margin-top: 12px; }

  input[type=text], input[type=password], input[type=number],
  input[type=date], input[type=time], input[type=month], input[type=tel],
  input[type=search], select, textarea {
    font-size: 16px !important;
    padding: 8px 12px;
    border-radius: 8px;
  }

  .btn { min-height: 42px; padding: 8px 16px; font-size: 15px; }
  .btn.sm { min-height: 32px; padding: 4px 12px; font-size: 13px; }

  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
  .kpi { padding: 12px 12px; }
  .kpi .v { font-size: 20px; }
  .kpi .l { font-size: 12px; }

  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .svc { padding: 12px 12px; }
  .svc .n { font-size: 15px; }
  .svc .p { font-size: 20px; }

  .chips { gap: 8px; }
  .chip { padding: 8px 12px; font-size: 13px; }

  .modal-bg { padding: 12px 8px; align-items: center; }
  .modal { max-height: 94vh; display: flex; flex-direction: column; border-radius: 14px; }
  .modal .mb { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px; }
  .modal .mh, .modal .mf { padding: 12px 16px; }

  .total-box { padding: 12px 12px; margin: 12px 0; }
  .total-box .big { font-size: 20px; }

  .seg button { padding: 8px 12px; font-size: 13px; }

  .sched th { font-size: 12px; padding: 8px 3px; }
  .sched { --slot-h: 52px; --col-min: 112px; border-spacing: 4px; }
  .slot { padding: 4px 8px; }
  .slot .slot-time { font-size: 11px; }
  .slot.free .slot-action { font-size: 11px; }
  .slot b { font-size: 12px; }

  .walkin-grid { grid-template-columns: 1fr; }
  .walkin-item { padding: 12px 12px; }
}

/* ---------- Receipt ---------- */
.receipt { font-family: 'Sarabun', monospace; max-width: 280px; margin: 0 auto; font-size: 15px; color: var(--ink); }
.receipt .c { text-align: center; }
.receipt hr { border: 0; border-top: 1px dashed var(--subtle); margin: 12px 0; }
.receipt .l { display: flex; justify-content: space-between; margin: 3px 0; }
@media print {
  body * { visibility: hidden; }
  .receipt, .receipt * { visibility: visible; }
  .receipt { position: absolute; left: 0; top: 0; color: #000; background: #fff; }
}

/* ใช้สลิปร่วมกับบิลก่อนหน้า */
.slip-shared { margin-top: 8px; padding: 12px 12px; border: 1px dashed var(--line-strong); border-radius: 10px; background: var(--surface-2); }
.slip-share-list { display: grid; gap: 8px; }
.slip-share-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 12px; text-align: left; font: inherit; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.slip-share-row:hover { border-color: var(--brand); }

/* กำลังให้บริการ */
.slot.b-serving { background: var(--live-soft); border: 1px solid var(--live); border-left: 4px solid var(--live); color: var(--live-ink); }
.slot.b-serving .slot-time { color: var(--live-ink); margin-bottom: 2px; font-weight: 600; }
.slot.b-serving b { color: var(--ink); }
.badge.serving { background: var(--live-soft); color: var(--live-ink); border: 1px solid var(--live); }
.q-item.serving { border-left: 3px solid var(--live); }
.q-item.serving:not(.sel) { background: var(--live-soft); }

/* เมนูและขั้นตอนของช่าง */
.nav-more { margin: 12px 12px 2px; font-size: 12px; color: var(--muted); }
.tabbar, .paybar, .arrive-btn, .fold-only, .phone-only { display: none; }
.fold > summary { display: none; }
.menu-word { font-size: 13px; margin-left: 8px; }
body.barber-ui .arrive-btn.always { display: inline-flex; margin-bottom: 16px; }
.pos-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px; margin-bottom: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.row-act { display: flex; align-items: center; gap: 8px; }
.row-act .btn { flex: none; }
.today-earn { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: inherit; text-decoration: none; }
.today-earn b { font-size: 20px; }
.no-queue-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; margin-bottom: 12px; color: var(--warn-ink); font-weight: 600; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 10px; }
.no-queue-bar.hidden { display: none; }
.slot-extra { position: sticky; left: 0; display: flex; gap: 8px; width: fit-content; padding-top: 12px; }
body.barber-ui .pos-grid.pos-pick { grid-template-columns: minmax(0, 1fr); }
body.barber-ui .pos-pick .main-col, body.barber-ui .pos-pick .bill-col { display: none; }
body.barber-ui .pos-pick .queue-scroll { max-height: none; }
body.barber-ui .pos-pick ~ .paybar { display: none; }

@media (max-width: 860px) {
  body.barber-ui main#view { padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }
  body.barber-ui .tabbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 28; background: var(--panel); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
  body.barber-ui .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; font-size: 12px; color: var(--muted); text-decoration: none; }
  body.barber-ui .tabbar a.active { color: var(--live-ink); font-weight: 600; }
  body.barber-ui .tabbar svg { width: 20px; height: 20px; display: block; }
  body.barber-ui #toast { bottom: 132px; }

  body.barber-ui .pulse-bar { padding: 8px 16px; flex-wrap: nowrap; }
  body.barber-ui .pulse-right, body.barber-ui .pulse-label { display: none; }
  body.barber-ui .pulse-left { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  body.barber-ui .pulse-pill { flex: none; min-height: 44px; }

  body.barber-ui .btn, body.barber-ui .seg button, body.barber-ui .chip,
  body.barber-ui input:not([type=checkbox]):not([type=radio]), body.barber-ui select { min-height: 44px; }

  body.barber-ui .fold { margin-top: 12px; }
  body.barber-ui .fold > summary { display: list-item; min-height: 44px; line-height: 44px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
  body.barber-ui .fold-only { display: inline-flex; }
  body.barber-ui .phone-only { display: inline-flex; }
  body.barber-ui input.phone-only { width: 150px; }
  body.barber-ui .seg [data-p="split"] { display: none; }
  body.barber-ui .bill-col .seg button { flex: 1; padding: 16px 8px; font-size: 16px; }
  body.barber-ui .pos-compact .queue-col, body.barber-ui .pos-compact .main-col { display: none; }
  body.barber-ui [data-checkout] { display: none; }
  body.barber-ui .paybar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: calc(56px + env(safe-area-inset-bottom, 0px)); z-index: 27; padding: 8px 16px; background: var(--panel); border-top: 1px solid var(--line); }
  body.barber-ui .paybar b { font-size: 20px; }

  body.barber-ui .arrive-btn { display: inline-flex; justify-content: center; position: fixed; left: 14px; right: 14px; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); z-index: 27; margin: 0; min-height: 50px; }
  body.barber-ui .cal-card, body.barber-ui .walkin-sub, body.barber-ui [data-quick-walkin] { display: none; }
}
@media (max-width: 860px) {
  body.barber-ui .pos-compact + .card { display: none; }
}

/* การ์ดคิวของช่าง: ปุ่มใหญ่กดด้วยนิ้วเดียว */
.qboard { display: flex; flex-direction: column; gap: 20px; margin-bottom: 16px; }
.qgroup h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; color: var(--ink-2); }
.qgroup + .qgroup { margin-top: 0; }
.qempty { padding: 12px 16px; background: var(--panel); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.qcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.qcard + .qcard { margin-top: 8px; }
.qcard.serving { border-color: var(--live); background: var(--live-soft); }
.qcard-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0 0 12px; text-align: left; font: inherit; color: inherit; background: none; border: 0; }
button.qcard-head { cursor: pointer; }
.qcard-time { flex: none; min-width: 52px; font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--ink); }
.qcard-who { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.qcard-who b { font-size: 17px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qcard-who .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qcard-head .badge { flex: none; }
.qcard-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qcard-acts.one { grid-template-columns: 1fr; }
.btn.big { justify-content: center; min-height: 56px; font-size: 17px; font-weight: 600; gap: 8px; }
.qfull-link { margin-top: 12px; }
/* มือถือ: การ์ดคิวกระชับขึ้น ให้เห็นหลายคิวในจอเดียว (ปุ่มยังสูง ≥ 46px) */
@media (max-width: 860px) {
  .qboard { gap: 12px; margin-bottom: 12px; }
  .qgroup h3 { margin-bottom: 6px; font-size: 14px; }
  .qcard { padding: 8px 10px 10px; }
  .qcard + .qcard { margin-top: 6px; }
  .qcard-head { gap: 10px; padding-bottom: 8px; }
  .qcard-who { flex-direction: row; align-items: baseline; gap: 8px; }
  .qcard-who b { flex: none; max-width: 60%; font-size: 16px; }
  .qcard-who .small { flex: 1; min-width: 0; }
  .qcard-time { min-width: 46px; font-size: 16px; }
  body.barber-ui .btn.big { min-height: 46px; font-size: 16px; }
  .qempty { padding: 8px 12px; }
  .qfull-link { margin-top: 8px; }
  .today-earn { padding-top: 10px; padding-bottom: 10px; }
}
@media (min-width: 861px) { .qboard { max-width: 640px; } .qcard-acts { max-width: 420px; margin-left: auto; } }

/* หน้าตั้งค่าของช่าง (แทนเมนูข้างบนมือถือ) */
.me-card { display: flex; flex-direction: column; gap: 12px; }
.me-name { display: flex; flex-direction: column; gap: 2px; }
.me-name b { font-size: 18px; }
.menu-list { padding: 4px 0; }
.menu-list > a, .menu-list > button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 16px; font: inherit; font-size: 15px; color: var(--ink); text-align: left; text-decoration: none; background: none; border: 0; cursor: pointer; }
.menu-list > a + a, .menu-list > button + button { border-top: 1px solid var(--line); }
.menu-list > a > span:not(.nav-ic), .menu-list > button > span { flex: 1; }
.menu-list .nav-ic { display: inline-flex; color: var(--muted); }
.menu-list .nav-ic svg { width: 20px; height: 20px; }
.menu-list i.i-right { color: var(--muted); }
.menu-list .danger-text { color: var(--bad-ink); }
.page-head + .card .mode-seg, .card .mode-seg { margin: 0; }
.card .mode-seg button { min-height: 44px; }

@media (max-width: 860px) {
  /* แท็บล่างแทนเมนูข้าง: ซ่อนปุ่ม ☰ */
  body.barber-ui .topbar [data-menu] { display: none; }
}
@media (max-width: 860px) {
  body.barber-ui .legend-fold { flex-basis: 100%; }
}

/* การ์ด QR ของร้าน: สีคงที่ทุกธีม เพื่อให้สแกนได้แน่นอน */
.qr-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; text-align: left; font: inherit; color: #2C2A29; background: #FAF7F2; border: 1px solid #E6DFD5; border-radius: 12px; cursor: zoom-in; }
.qr-card:hover, .qr-card:focus-visible { border-color: #B85028; outline: none; }
.qr-card > svg { flex: none; width: 138px; height: 138px; display: block; }
.qr-card-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 13px; line-height: 1.35; }
.qr-card-info b { font-size: 15px; }
.qr-card-amt { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: #B85028; }
.qr-card-hint { font-size: 12px; color: #6B655E; }
.qr-full { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; color: #2C2A29; background: #FAF7F2; border: 1px solid #E6DFD5; border-radius: 12px; text-align: center; }
.qr-full > svg { width: min(414px, 76vw); height: auto; display: block; }

/* ---------- Home-screen app (standalone) ---------- */
html, body { overscroll-behavior-y: none; }
body { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
body.barber-ui .tabbar, body.barber-ui .paybar { left: env(safe-area-inset-left, 0px); right: env(safe-area-inset-right, 0px); }
body.barber-ui .arrive-btn { left: calc(14px + env(safe-area-inset-left, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); }
@media (max-width: 860px) {
  .side { padding-left: calc(12px + env(safe-area-inset-left, 0px)); padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Line icons (<i class=i-NAME></i>) — lucide-style, inherit text colour ---------- */
i[class^="i-"] {
  display: inline-block; flex: none; width: 1.05em; height: 1.05em; vertical-align: -0.17em;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
.btn i[class^="i-"] { opacity: 0.9; }
.ch-mk { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; vertical-align: 0.05em; }
.i-scissors { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='3'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Cpath d='M20 4 8.12 15.88M14.47 14.48 20 20M8.12 8.12 12 12'/%3E%3C/svg%3E"); }
.i-clip { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48'/%3E%3C/svg%3E"); }
.i-receipt { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E"); }
.i-calendar { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
.i-printer { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V2h12v7M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Crect x='6' y='14' width='12' height='8'/%3E%3C/svg%3E"); }
.i-note { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E"); }
.i-phone { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92Z'/%3E%3C/svg%3E"); }
.i-sofa { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v3'/%3E%3Cpath d='M2 11v5a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v2H6v-2a2 2 0 0 0-4 0ZM4 18v2M20 18v2'/%3E%3C/svg%3E"); }
.i-coins { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M18.09 10.37A6 6 0 1 1 10.34 18M7 6h1v4M16.71 13.88l.7.71-2.82 2.82'/%3E%3C/svg%3E"); }
.i-check { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.i-lock { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E"); }
.i-unlock { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 9.9-1'/%3E%3C/svg%3E"); }
.i-plus { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.i-heart { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E"); }
.i-cash { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M6 12h.01M18 12h.01'/%3E%3C/svg%3E"); }
.i-phone-qr { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2'/%3E%3Cpath d='M12 18h.01'/%3E%3C/svg%3E"); }
.i-split { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3h5v5M4 20 21 3M21 16v5h-5M15 15l6 6M4 4l5 5'/%3E%3C/svg%3E"); }
.i-users { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.i-undo { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h10.5a5.5 5.5 0 0 1 0 11H11'/%3E%3C/svg%3E"); }
.i-user { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.i-alert { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E"); }
.i-left { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E"); }
.i-right { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E"); }
.i-up { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E"); }
.i-down { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.i-save { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2Z'/%3E%3Cpath d='M17 21v-8H7v8M7 3v5h8'/%3E%3C/svg%3E"); }
.i-download { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4M7 10l5 5 5-5M12 15V3'/%3E%3C/svg%3E"); }
.i-sun { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E"); }
.i-card { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E"); }
.i-chart { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18M18 17V9M13 17V5M8 17v-3'/%3E%3C/svg%3E"); }
.i-shield { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1Z'/%3E%3C/svg%3E"); }
.i-star { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01Z'/%3E%3C/svg%3E"); }
.i-clock-in { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4M10 17l5-5-5-5M15 12H3'/%3E%3C/svg%3E"); }
.i-clock-out { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4M16 17l5-5-5-5M21 12H9'/%3E%3C/svg%3E"); }

