/* Dr. Ali Rashid's Dental Clinic: one stylesheet for the public site,
   patient portal and staff system. */

:root {
  --aubergine: #3e2464;
  --aubergine-deep: #22113b;
  --aubergine-soft: #efeaf6;
  --porcelain: #f5f6fa;
  --enamel: #ffffff;
  --ink: #1f1a2b;
  --muted: #6a6478;
  --line: #e2dfe9;
  --line-strong: #cfc9db;
  --champagne: #b08d57;
  --champagne-soft: #f6efe3;
  --ok: #257a52;
  --ok-soft: #e4f3ec;
  --warn: #9a6200;
  --warn-soft: #fbf0d9;
  --stop: #b0262c;
  --stop-soft: #fbe7e7;
  --info-soft: #e8eefb;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 18px;
  --shadow: 0 1px 2px rgba(34, 17, 59, .06), 0 6px 18px rgba(34, 17, 59, .06);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--aubergine); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 3px solid var(--champagne); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 40px; padding: 0 16px; border-radius: var(--radius-s);
  border: 1px solid var(--line-strong); background: var(--enamel); color: var(--ink);
  font: 600 14px/1 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--aubergine); }
.btn-primary { background: var(--aubergine); border-color: var(--aubergine); color: #fff; }
.btn-primary:hover { background: var(--aubergine-deep); }
.btn-danger { color: var(--stop); border-color: #e7b7b9; }
.btn-small { min-height: 30px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }
.link-btn { border: 0; background: none; color: var(--aubergine); font: inherit; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; }

/* ------------------------------------------------------------ forms */
input, select, textarea {
  font: 15px/1.3 var(--font); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  background: #fff; padding: 9px 11px; min-height: 40px; width: 100%;
}
textarea { min-height: 90px; resize: vertical; }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--aubergine); }
.field { display: grid; gap: 4px; margin-bottom: 12px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field-hint { font-size: 12px; color: var(--muted); }
.form-grid { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ------------------------------------------------------------ surfaces */
.panel { background: var(--enamel); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; }
.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { margin: 0; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.stack > * + * { margin-top: 16px; }
.empty { padding: 28px 12px; text-align: center; color: var(--muted); }
.empty p { margin-bottom: 12px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge-dues { background: var(--stop-soft); color: var(--stop); }
.badge-ali { background: var(--champagne-soft); color: #7a5a24; border: 1px solid #e5d3b3; }
.badge-photo { background: var(--info-soft); color: #2a4a8c; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-muted { background: #eeedf2; color: var(--muted); }

.alert { padding: 10px 12px; border-radius: var(--radius-s); font-size: 14px; border-left: 4px solid; margin-bottom: 8px; }
.alert-stop { background: var(--stop-soft); border-color: var(--stop); }
.alert-warning { background: var(--warn-soft); border-color: var(--warn); }
.alert-info { background: var(--info-soft); border-color: #4a6bc4; }

table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th.right { text-align: right; }
table.list th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
table.list td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tab { border: 0; background: none; padding: 10px 14px; font: 600 14px var(--font); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--aubergine); border-bottom-color: var(--aubergine); }

.stat-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { background: var(--enamel); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 14px; }
.stat strong { display: block; font-size: 1.35rem; letter-spacing: -.01em; }
.stat span { font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------ toasts & modal */
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; width: min(520px, calc(100% - 32px)); }
.toast { padding: 12px 16px; border-radius: var(--radius-m); background: var(--aubergine-deep); color: #fff; box-shadow: var(--shadow); font-size: 14px; }
.toast-error { background: var(--stop); }
.toast-ok { background: var(--ok); }
.modal-backdrop { position: fixed; inset: 0; background: rgba(20, 10, 36, .45); display: grid; place-items: center; padding: 16px; z-index: 90; }
.modal { background: #fff; border-radius: var(--radius-l); width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 20px 60px rgba(20, 10, 36, .3); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 0; }
.modal-head h2 { margin: 0; }
.modal-body { padding: 14px 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 18px 18px; }

/* ============================================================ PUBLIC SITE */
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(16px, 4vw, 48px); color: #fff; position: relative; z-index: 2; }
.site-header a { color: #fff; text-decoration: none; font-weight: 700; }
.wordmark { font-weight: 800; letter-spacing: -.01em; font-size: 17px; }
.wordmark small { display: block; font-weight: 500; font-size: 12px; opacity: .7; letter-spacing: .02em; }

.hero {
  min-height: 100svh; display: grid; grid-template-rows: auto 1fr; color: #fff;
  background:
    radial-gradient(1200px 600px at 50% 38%, rgba(176, 141, 87, .22), transparent 60%),
    radial-gradient(900px 500px at 50% 120%, rgba(255, 255, 255, .06), transparent 70%),
    linear-gradient(180deg, var(--aubergine-deep), var(--aubergine) 70%, #4b2d78);
  overflow: hidden;
}
.hero-body { display: grid; place-items: center; text-align: center; padding: 0 16px 48px; gap: 8px; align-content: center; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; margin: 0; }
.hero-sub { font-size: clamp(1rem, 1.8vw, 1.15rem); opacity: .82; max-width: 34ch; margin: 10px auto 26px; }

/* The 3D smile: a dental arch of teeth turning slowly in space. */
.smile-stage { width: min(560px, 92vw); height: clamp(190px, 30vw, 270px); perspective: 900px; position: relative; margin-bottom: 8px; }
.smile-stage::after { /* soft reflection pool under the arch */
  content: ''; position: absolute; left: 15%; right: 15%; bottom: 4%; height: 30px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .18), transparent); filter: blur(6px);
}
.arch { position: absolute; inset: 0; transform-style: preserve-3d; animation: arch-turn 16s ease-in-out infinite; }
.arch.lower { transform: translateY(46px); }
.tooth {
  position: absolute; left: 50%; top: 40%; transform-style: preserve-3d;
  border-radius: 42% 42% 48% 48% / 36% 36% 64% 64%;
  background:
    radial-gradient(120% 80% at 30% 18%, #ffffff 0%, #fbfaf6 35%, #ece6d9 75%, #d8cfbd 100%);
  box-shadow: inset -6px -8px 14px rgba(120, 100, 70, .22), inset 4px 5px 10px rgba(255, 255, 255, .9), 0 10px 22px rgba(10, 4, 22, .35);
  backface-visibility: hidden;
}
.lower .tooth { border-radius: 48% 48% 42% 42% / 64% 64% 36% 36%; }
.gum { position: absolute; left: 50%; top: 40%; width: 84%; height: 50px; transform: translate(-50%, -36px) rotateX(70deg);
  background: radial-gradient(closest-side, rgba(213, 120, 140, .35), transparent 70%); filter: blur(4px); }
@keyframes arch-turn {
  0%, 100% { transform: rotateX(-14deg) rotateY(-22deg); }
  50% { transform: rotateX(-8deg) rotateY(22deg); }
}
.arch.lower { animation-name: arch-turn-lower; }
@keyframes arch-turn-lower {
  0%, 100% { transform: translateY(46px) rotateX(-14deg) rotateY(-22deg); }
  50% { transform: translateY(46px) rotateX(-8deg) rotateY(22deg); }
}
@media (prefers-reduced-motion: reduce) {
  .arch, .arch.lower { animation: none; }
}

.door-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: min(720px, 100%); }
.door {
  display: grid; gap: 4px; text-align: left; padding: 18px 18px 16px; border-radius: var(--radius-l);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); color: #fff; text-decoration: none;
  backdrop-filter: blur(6px); transition: background .2s, border-color .2s, transform .2s;
}
.door:hover { background: rgba(255, 255, 255, .16); border-color: var(--champagne); transform: translateY(-2px); }
.door strong { font-size: 1.2rem; letter-spacing: -.01em; }
.door span { font-size: 13px; opacity: .78; }
.door-primary { background: #fff; color: var(--aubergine-deep); border-color: #fff; }
.door-primary span { opacity: .7; }
.door-primary:hover { background: var(--champagne-soft); }
@media (max-width: 620px) { .door-row { grid-template-columns: 1fr; } }

.public-main { max-width: 1080px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 32px) 72px; }
.public-main > section + section { margin-top: 56px; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-title h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.02em; margin: 0; }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { background: var(--enamel); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 12px 10px; min-height: 120px; }
.day.today { border-color: var(--aubergine); box-shadow: 0 0 0 1px var(--aubergine) inset; }
.day h3 { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.day.today h3 { color: var(--aubergine); }
.slot { border-left: 3px solid var(--champagne); padding: 2px 0 2px 8px; margin-bottom: 8px; font-size: 13px; }
.slot b { display: block; font-size: 13.5px; }
.day .closed { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .week { grid-template-columns: 1fr; } .day { min-height: 0; } }

.benefits { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.benefit { padding: 18px; border-left: 3px solid var(--champagne); background: var(--enamel); border-radius: 0 var(--radius-m) var(--radius-m) 0; }
.benefit h3 { margin-bottom: 6px; }
.braces-types { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.brace-card { background: var(--enamel); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; display: grid; gap: 6px; align-content: start; }
.brace-card .price { font-weight: 800; color: var(--aubergine); }
.cases { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cases img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-m); }
.cta-band { background: var(--aubergine-deep); color: #fff; border-radius: var(--radius-l); padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-band p { margin: 0; opacity: .8; }
.site-footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px 40px; }
.footer-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.footer-links a { color: var(--aubergine); font-weight: 600; }

.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.trust > div { background: var(--enamel); padding: 18px 16px; display: grid; gap: 2px; }
.trust b { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--aubergine); letter-spacing: -.02em; }
.trust span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 760px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.about { background: var(--champagne-soft); border-radius: var(--radius-l); padding: clamp(20px, 4vw, 36px); }
.about h2 { margin-bottom: 10px; }
.about p { max-width: 66ch; }
.about-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.branch-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.branch-card { background: var(--enamel); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; display: grid; gap: 6px; align-content: start; }
.branch-card .city { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--champagne); }
.branch-card h3 { margin: 0; }
.branch-card p { margin: 0; }
.branch-card .hours { display: grid; font-size: 13px; color: var(--muted); }
.branch-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; font-size: 14px; font-weight: 600; }
.branch-actions a { color: var(--aubergine); }

.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: inline-flex; align-items: center; gap: 8px; background: #1f7a4d; color: #fff; font-weight: 700; padding: 12px 16px; border-radius: 999px; box-shadow: var(--shadow); text-decoration: none; }
.wa-float:hover { background: #17633e; }
.subpage-header { background: var(--aubergine-deep); }

/* ============================================================ LOGIN */
.login-wrap { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(180deg, var(--aubergine-deep), var(--aubergine)); }
.login-card { background: #fff; border-radius: var(--radius-l); padding: 26px; width: min(440px, 100%); box-shadow: 0 30px 80px rgba(10, 4, 22, .35); }
.login-card h1 { font-size: 1.5rem; }
.demo-accounts { display: grid; gap: 8px; margin-top: 10px; }
.demo-accounts button { justify-content: space-between; }
.demo-note { background: var(--champagne-soft); border: 1px solid #e5d3b3; padding: 10px 12px; border-radius: var(--radius-s); font-size: 13px; margin-bottom: 14px; }

/* ============================================================ STAFF APP */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100svh; }
.app > div { min-width: 0; }
.sidebar { background: var(--aubergine-deep); color: #e9e3f3; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100svh; overflow-y: auto; }
.sidebar .wordmark { color: #fff; padding: 0 10px 14px; }
.nav-link { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: var(--radius-s); color: #d9d0e8; text-decoration: none; font-weight: 600; font-size: 14px; }
.nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-link[aria-current="page"] { background: rgba(255, 255, 255, .13); color: #fff; box-shadow: inset 3px 0 0 var(--champagne); }
.nav-count { background: var(--champagne); color: var(--aubergine-deep); border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 800; }
.nav-group { font-size: 12px; color: #a99cc0; padding: 14px 10px 4px; }
.sidebar-foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.sidebar-foot .link-btn { color: #fff; }
.main { padding: 22px clamp(14px, 3vw, 32px) 64px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.save-state { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.save-state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.save-state[data-state="saving"]::before { background: var(--warn); }
.save-state[data-state="offline"]::before, .save-state[data-state="error"]::before { background: var(--stop); }
.demo-banner { background: var(--champagne-soft); color: #6f5222; font-size: 13px; padding: 6px 12px; border-radius: var(--radius-s); margin-bottom: 14px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mobile-bar { display: none; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(20, 10, 36, .4); }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--aubergine-deep); color: #fff; padding: 10px 14px; position: sticky; top: 0; z-index: 40; }
  .mobile-bar button { color: #fff; }
}

/* ------------------------------------------------------------ sheet (Aaj ki List) */
.sheet-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.sheet-toolbar select, .sheet-toolbar input { width: auto; min-width: 150px; }
.sheet-wrap { overflow: auto; border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: #fff; max-height: calc(100svh - 230px); }
table.sheet { border-collapse: separate; border-spacing: 0; font-size: 13.5px; min-width: 1180px; width: 100%; }
table.sheet th {
  position: sticky; top: 0; z-index: 2; background: var(--aubergine); color: #fff; font-weight: 700; font-size: 12.5px;
  text-align: left; padding: 9px 8px; border-right: 1px solid rgba(255, 255, 255, .14); white-space: nowrap;
}
table.sheet td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0; vertical-align: middle; background: #fff; }
table.sheet tr:hover td { background: #fbfaff; }
table.sheet td.frozen, table.sheet th.frozen { position: sticky; left: 0; z-index: 1; }
table.sheet th.frozen { z-index: 3; }
table.sheet td.frozen { box-shadow: 1px 0 0 var(--line-strong); }
.cell { padding: 7px 8px; display: flex; gap: 6px; align-items: center; min-height: 38px; }
.cell-input { border: 0; border-radius: 0; min-height: 38px; padding: 7px 8px; background: transparent; font-size: 13.5px; width: 100%; }
.cell-input:focus { outline: 2px solid var(--aubergine); outline-offset: -2px; background: #fff; }
select.cell-input { cursor: pointer; }
.status-chip { border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 700; border: 0; min-height: 0; width: auto; cursor: pointer; }
.status-scheduled { background: #e5ebfa; color: #2e4a92; }
.status-waiting { background: var(--warn-soft); color: var(--warn); }
.status-in_treatment { background: #e9e2f7; color: var(--aubergine); }
.status-completed { background: var(--ok-soft); color: var(--ok); }
.status-cancelled, .status-no_show { background: #eeedf2; color: var(--muted); }
.people { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 5px 8px; min-height: 38px; }
.person { background: var(--aubergine-soft); color: var(--aubergine); border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.person.checker { background: var(--ok-soft); color: var(--ok); }
.person.assistant { background: #eeedf2; color: var(--muted); }
.person button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; font-size: 13px; line-height: 1; }
.add-person { border: 1px dashed var(--line-strong); background: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; color: var(--muted); cursor: pointer; }
.token { font-weight: 800; color: var(--aubergine); }
.month-pill { font-weight: 700; }
.row-flags { display: flex; gap: 4px; flex-wrap: wrap; }
.add-row { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--porcelain); align-items: center; flex-wrap: wrap; position: sticky; left: 0; }
.add-row input { max-width: 360px; }
.suggestions { position: absolute; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-s); box-shadow: var(--shadow); z-index: 20; max-height: 260px; overflow: auto; min-width: 300px; }
.suggestions button { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; border: 0; background: #fff; padding: 9px 12px; font: 14px var(--font); cursor: pointer; }
.suggestions button:hover, .suggestions button:focus { background: var(--aubergine-soft); }

/* queue board */
.queue { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.queue-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 12px; min-height: 180px; }
.queue-col h3 { display: flex; justify-content: space-between; }
.q-card { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px; margin-bottom: 8px; display: grid; gap: 4px; }
.q-card .token { font-size: 1.3rem; }

/* permissions grid */
table.perm-grid { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 720px; }
table.perm-grid th, table.perm-grid td { padding: 8px; border-bottom: 1px solid var(--line); text-align: center; }
table.perm-grid th:first-child, table.perm-grid td:first-child { text-align: left; }
table.perm-grid thead th { position: sticky; top: 0; background: var(--aubergine); color: #fff; font-size: 12.5px; }
table.perm-grid .cat td { background: var(--aubergine-soft); font-weight: 700; color: var(--aubergine); text-align: left; }

/* patient profile */
.profile-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.mr { font-weight: 800; color: var(--aubergine); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 10px 0 10px 16px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--aubergine); }
.photo-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-s); background: var(--aubergine-soft); }
.photo-grid figcaption { font-size: 12px; color: var(--muted); }
.stars { display: inline-flex; gap: 2px; }
.stars button { border: 0; background: none; font-size: 24px; cursor: pointer; color: #d8d2e4; padding: 0 2px; }
.stars button.on { color: var(--champagne); }

/* invoice print */
.invoice-sheet { background: #fff; padding: 28px; border: 1px solid var(--line); max-width: 720px; }
.invoice-sheet header { display: flex; justify-content: space-between; border-bottom: 3px solid var(--inv-accent, var(--aubergine)); padding-bottom: 12px; margin-bottom: 16px; }
.invoice-sheet.thermal { max-width: 300px; font-size: 12px; padding: 12px; }
@media print {
  body * { visibility: hidden; }
  .print-area, .print-area * { visibility: visible; }
  .print-area { position: absolute; inset: 0; border: 0; }
}
