:root {
  --navy-950: #081d32;
  --navy-900: #0d2943;
  --teal-700: #116d70;
  --teal-600: #16878a;
  --teal-100: #dff3f1;
  --orange-500: #e86f36;
  --orange-100: #fff0e8;
  --surface: #fff;
  --canvas: #f2f6f7;
  --border: #d7e2e6;
  --text: #102a43;
  --muted: #647989;
  --success: #167a58;
  --danger: #b42318;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 18px 45px rgba(8, 29, 50, 0.08);
  --shadow-soft: 0 6px 20px rgba(8, 29, 50, 0.06);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; background: var(--canvas); color: var(--text); font-family: "Cairo", Tahoma, sans-serif; font-size: 14px; }
body { overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(22, 135, 138, .22); outline-offset: 2px; }
.demo-ribbon { height: 28px; background: var(--navy-950); color: #d9ebef; display: grid; place-items: center; font-size: 11px; letter-spacing: .15px; position: fixed; z-index: 100; top: 0; right: 0; left: 0; }
.auth-view { min-height: 100vh; padding-top: 28px; display: grid; grid-template-columns: minmax(420px, .95fr) minmax(540px, 1.05fr); background: #fff; }
.auth-view.is-hidden { display: none; }
.app-shell.is-locked { display: none; }
.auth-visual { background: var(--navy-950); color: #fff; padding: clamp(34px, 5vw, 76px); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-brand { display: flex; align-items: center; gap: 13px; position: relative; z-index: 2; }
.auth-logo { width: 64px; }.auth-logo .roof,.mobile-auth-brand .roof { fill: var(--orange-500); }.auth-logo .scan,.mobile-auth-brand .scan { fill: var(--teal-600); }.auth-logo .pulse { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.auth-brand strong,.auth-brand span { display: block; }.auth-brand strong { font-size: 17px; }.auth-brand span { color: #8da6b3; font-size: 10px; margin-top: 3px; letter-spacing: .3px; }
.auth-message { margin: auto 0; max-width: 590px; position: relative; z-index: 2; }.auth-kicker { color: #69d0c8; font-weight: 800; font-size: 11px; letter-spacing: .5px; }.auth-message h1 { margin: 12px 0 13px; font-size: clamp(42px, 5.3vw, 76px); line-height: 1.22; letter-spacing: -2px; }.auth-message h1 em { color: var(--orange-500); font-style: normal; }.auth-message p { color: #adc0c9; line-height: 2; font-size: 13px; max-width: 500px; }
.auth-features { display: flex; flex-wrap: wrap; gap: 10px 24px; color: #9bb1bc; font-size: 10px; position: relative; z-index: 2; }.auth-features span::first-letter { color: #69d0c8; }
.auth-orbit { position: absolute; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; }.orbit-one { width: 460px; height: 460px; left: -180px; top: -150px; box-shadow: 0 0 0 75px rgba(22,135,138,.035), 0 0 0 150px rgba(22,135,138,.025); }.orbit-two { width: 240px; height: 240px; right: -140px; bottom: -80px; border: 44px solid rgba(232,111,54,.045); }
.auth-panel { display: grid; place-items: center; padding: clamp(28px,5vw,70px); background: #f7fafa; }
.login-card { width: min(510px,100%); background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: clamp(25px,4vw,42px); box-shadow: 0 25px 70px rgba(8,29,50,.1); position: relative; }.login-card::before { content:""; position:absolute; top:0; right:42px; left:42px; height:3px; background:var(--teal-600); border-radius:0 0 8px 8px; }.login-card h2 { font-size: 28px; margin: 5px 0 3px; letter-spacing: -.4px; }.login-intro { color: var(--muted); font-size: 11px; margin: 0 0 24px; }.mobile-auth-brand { display:none; }
.role-picker { border: 0; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }.role-picker legend { font-size: 10px; font-weight: 700; margin-bottom: 7px; }.role-option { min-width: 0; min-height: 91px; border: 1px solid var(--border); border-radius: 13px; padding: 11px 8px; background: #fbfcfc; text-align: center; position: relative; }.role-option:hover { border-color: #88c7c5; }.role-option.active { border-color: var(--teal-600); background: var(--teal-100); box-shadow: inset 0 0 0 1px var(--teal-600); }.role-option>span { display:block; }.role-symbol { width: 28px; height: 28px; display:grid!important; place-items:center; margin:0 auto 5px; border-radius:9px; background:#eaf0f3; color:var(--navy-900); font-size:15px; }.role-option.active .role-symbol { background:var(--teal-600);color:#fff; }.role-option strong,.role-option small { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.role-option strong { font-size:9.5px; }.role-option small { font-size:7.5px;color:var(--muted);margin-top:2px; }.role-option i { display:none; position:absolute; top:7px; left:7px; width:17px;height:17px;border-radius:50%;background:var(--teal-600);color:#fff;font-size:9px;font-style:normal;place-items:center; }.role-option.active i { display:grid; }
.auth-field { display:block; margin-top:14px; }.auth-field>span { display:block;font-size:10px;font-weight:700;margin-bottom:6px; }.auth-field>div { height:48px;border:1px solid var(--border);border-radius:11px;background:#fafcfc;display:flex;align-items:center;padding:0 12px;gap:9px; }.auth-field>div:focus-within { border-color:var(--teal-600);box-shadow:0 0 0 3px rgba(22,135,138,.1); }.auth-field i { color:#879ba6;font-style:normal;font-size:11px; }.auth-field input { flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--text);direction:ltr;text-align:left;font-size:11px; }.auth-field button { border:0;background:transparent;color:var(--teal-700);font-size:9px;font-weight:700;min-height:38px; }.login-helper { display:flex;justify-content:space-between;align-items:center;margin:9px 1px 15px;color:var(--muted);font-size:8px; }.login-helper code { direction:ltr;background:var(--orange-100);color:var(--orange-500);padding:3px 7px;border-radius:6px;font-weight:800; }.login-error { margin: 0 0 10px; color:var(--danger);background:#fff0ef;border:1px solid #f3c4bf;padding:9px 11px;border-radius:9px;font-size:9px; }.login-button { width:100%;height:50px;border:0;border-radius:11px;background:var(--teal-600);color:#fff;padding:0 18px;display:flex;align-items:center;justify-content:space-between;font-weight:800;box-shadow:0 10px 23px rgba(22,135,138,.22); }.login-button:hover { background:var(--teal-700); }.login-button b { font-size:19px; }.privacy-note { text-align:center;color:#8da0aa;font-size:8px;margin:12px 0 0; }.logout-button { border:1px solid rgba(255,255,255,.11);color:#a9bdc7!important; }
.app-shell { min-height: 100vh; padding-top: 28px; }
.sidebar { position: fixed; z-index: 40; top: 28px; right: 0; bottom: 0; width: 260px; background: var(--navy-950); color: #fff; padding: 24px 18px 18px; display: flex; flex-direction: column; transition: transform .25s ease; }
.brand { min-height: 74px; display: flex; align-items: center; gap: 11px; padding: 0 5px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-mark { width: 57px; flex: 0 0 57px; }
.brand-mark .roof, .receipt-brand .roof { fill: var(--orange-500); }
.brand-mark .scan, .receipt-brand .scan { fill: var(--teal-600); }
.brand-mark .pulse { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.brand strong { display: block; font-size: 15px; line-height: 1.4; }
.brand span { color: #94adb9; display: block; font-size: 9.5px; margin-top: 4px; letter-spacing: .2px; }
.brand b { color: #fff; }
.main-nav { margin-top: 26px; display: grid; gap: 7px; }
.nav-label { color: #6f8999; font-size: 10px; font-weight: 700; padding: 0 12px; margin: 0 0 5px; }
.nav-link { border: 0; background: transparent; color: #a9bdc7; min-height: 48px; border-radius: 12px; display: flex; gap: 12px; align-items: center; padding: 0 13px; text-align: right; transition: .18s ease; position: relative; }
.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-link.active { background: var(--teal-600); color: #fff; box-shadow: 0 8px 22px rgba(22,135,138,.3); }
.nav-link.active::after { content: ""; position: absolute; right: -18px; width: 4px; height: 26px; border-radius: 0 4px 4px 0; background: var(--orange-500); }
.nav-icon { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 8px; font-size: 15px; opacity: .9; }
.nav-badge { margin-right: auto; font-size: 10px; min-width: 22px; height: 22px; border-radius: 20px; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.sidebar-card { margin-top: auto; border: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.05); border-radius: 14px; padding: 13px; display: flex; align-items: center; gap: 10px; }
.sidebar-card-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(22,135,138,.25); color: #6fd1ca; }
.sidebar-card strong, .sidebar-card span { display: block; }
.sidebar-card strong { font-size: 12px; }
.sidebar-card span { color: #7894a2; font-size: 10px; margin-top: 2px; }
.status-dot { width: 8px!important; height: 8px; border-radius: 50%; background: #53d99d!important; margin-right: auto!important; box-shadow: 0 0 0 4px rgba(83,217,157,.1); }
.sidebar-user { display: flex; gap: 9px; align-items: center; padding: 17px 5px 0; }
.sidebar-user strong, .sidebar-user span { display: block; }
.sidebar-user strong { font-size: 12px; }.sidebar-user div span { font-size: 10px; color: #7894a2; }.sidebar-user .icon-button { margin-right: auto; color: #9bb0ba; }
.avatar { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; background: var(--teal-100); color: var(--teal-700); font-weight: 800; display: grid; place-items: center; }
.avatar-orange { color: var(--orange-500); background: rgba(232,111,54,.17); }
.avatar-large { width: 58px; height: 58px; border-radius: 18px; font-size: 20px; }
.main-content { min-height: calc(100vh - 28px); margin-right: 260px; }
.topbar { height: 88px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--border); padding: 0 clamp(20px, 3vw, 42px); display: flex; align-items: center; justify-content: space-between; position: sticky; z-index: 25; top: 28px; backdrop-filter: blur(12px); }
.topbar-start, .topbar-actions { display: flex; align-items: center; gap: 18px; }.eyebrow { margin: 0 0 2px; color: var(--teal-700); font-size: 10px; font-weight: 700; }.topbar h1 { font-size: 20px; margin: 0; line-height: 1.3; }.menu-button { display: none; width: 42px; height: 42px; border: 1px solid var(--border); background: var(--surface); border-radius: 11px; }
.global-search { height: 42px; width: 250px; border-radius: 11px; border: 1px solid var(--border); background: #f8fafb; display: flex; align-items: center; padding: 0 12px; gap: 8px; color: var(--muted); }.global-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); }.global-search kbd { font-size: 9px; padding: 2px 5px; border: 1px solid var(--border); border-radius: 4px; background: #fff; }.icon-button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; display: grid; place-items: center; font-size: 20px; }.notification-button { border: 1px solid var(--border); position: relative; }.notification-button i { position: absolute; top: 8px; left: 8px; width: 6px; height: 6px; border: 2px solid #fff; background: var(--orange-500); border-radius: 50%; }.today { border-right: 1px solid var(--border); padding-right: 17px; }.today span,.today strong { display: block; }.today span { font-size: 9px; color: var(--muted); }.today strong { font-size: 11px; margin-top: 2px; }
.screens { padding: 30px clamp(20px,3vw,42px) 50px; max-width: 1600px; margin: 0 auto; }.screen { display: none; animation: screenIn .28s ease; }.screen.active { display: block; }@keyframes screenIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.welcome-panel { border-radius: var(--radius-lg); background: var(--navy-900); color: #fff; padding: 30px 34px; min-height: 190px; display: flex; justify-content: space-between; align-items: center; position: relative; overflow: hidden; box-shadow: var(--shadow); }.welcome-panel::before { content: ""; position: absolute; width: 240px; height: 240px; border: 50px solid rgba(22,135,138,.13); border-radius: 50%; left: 20%; top: -135px; }.welcome-panel::after { content: ""; position: absolute; width: 140px; height: 140px; border: 1px solid rgba(255,255,255,.08); transform: rotate(45deg); left: -50px; bottom: -90px; }.section-kicker,.panel-kicker { color: var(--orange-500); font-size: 10px; font-weight: 800; letter-spacing: .4px; }.welcome-panel h2 { font-size: clamp(26px,3vw,40px); line-height: 1.45; margin: 7px 0 4px; letter-spacing: -.7px; position: relative; z-index: 1; }.welcome-panel h2 em { color: #69d0c8; font-style: normal; }.welcome-panel p { color: #a9bec8; margin: 4px 0; }.hero-stat { width: 220px; padding: 20px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.06); border-radius: 18px; z-index: 2; }.hero-stat span,.hero-stat small { display: block; color: #a9bec8; font-size: 10px; }.hero-stat strong { display: block; font-size: 37px; margin: 5px 0; }.progress { height: 6px; background: rgba(255,255,255,.1); border-radius: 10px; overflow: hidden; margin: 8px 0; }.progress i { display: block; height: 100%; background: var(--orange-500); border-radius: inherit; }
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin: 19px 0; }.kpi-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 19px; display: flex; align-items: flex-start; gap: 13px; box-shadow: var(--shadow-soft); }.kpi-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; flex: 0 0 42px; }.kpi-icon.teal { color: var(--teal-700); background: var(--teal-100); }.kpi-icon.orange { color: var(--orange-500); background: var(--orange-100); }.kpi-icon.navy { background: #e9eff4; color: var(--navy-900); }.kpi-icon.pale { background: #f2eef9; color: #72559a; }.kpi-card div>span,.kpi-card div>small { display:block; }.kpi-card div>span { color: var(--muted); font-size: 10px; }.kpi-card strong { display:block; font-size: 25px; margin: 2px 0; }.kpi-card strong small { font-size: 10px; }.kpi-card div>small { font-size: 9px; color: var(--muted); }.up { color: var(--success)!important; }.warn { color: var(--orange-500)!important; }
.dashboard-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 19px; }.lower-grid { display:grid; grid-template-columns: 1.25fr 1fr; gap: 19px; margin-top: 19px; }.panel { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-soft); }.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }.panel-head h3 { margin: 1px 0 0; font-size: 16px; }.soft-button,.outline-button,.primary-button,.text-button { min-height: 40px; border-radius: 10px; padding: 0 14px; font-weight: 700; font-size: 11px; }.soft-button { border: 0; color: var(--teal-700); background: var(--teal-100); }.outline-button { border: 1px solid var(--border); background: #fff; }.primary-button { border: 1px solid var(--teal-600); background: var(--teal-600); color: #fff; box-shadow: 0 8px 18px rgba(22,135,138,.2); }.primary-button:hover { background: var(--teal-700); }.text-button { border: 0; color: var(--teal-700); background: transparent; }.wide { width:100%; }.muted { color: var(--muted); font-size: 10px; }
.chart-panel { padding: 22px 24px 14px; }.chart-total { margin-top: 20px; display: flex; align-items: center; gap: 10px; }.chart-total strong { font-size: 23px; }.chart-total span { font-size: 10px; padding: 3px 7px; border-radius: 10px; background: #e8f6ef; }.chart-total small { color: var(--muted); font-size: 9px; }.bar-chart { height: 180px; display: grid; grid-template-columns: repeat(7,1fr); align-items: end; gap: 16px; border-bottom: 1px solid var(--border); margin-top: 12px; padding: 0 8px; background-image: linear-gradient(to bottom, transparent calc(100% - 1px), #edf2f4 1px); background-size: 100% 45px; }.bar-chart div { height:100%; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; gap: 7px; }.bar-chart i { display:block; width: 50%; max-width: 30px; min-height: 10px; background: var(--teal-100); border-radius: 7px 7px 2px 2px; position:relative; }.bar-chart i::after { content:""; position:absolute; inset:0; background:var(--teal-600); opacity:.7; border-radius:inherit; }.bar-chart i.today-bar { background: var(--orange-100); }.bar-chart i.today-bar::after { background:var(--orange-500); }.bar-chart span { color: var(--muted); font-size: 9px; margin-bottom: -22px; }
.appointments-panel { padding:22px 20px; }.timeline { margin-top:17px; }.appointment { width:100%; border:0; background:transparent; display:grid; grid-template-columns:45px 10px 1fr auto; align-items:center; gap:10px; padding: 11px 0; border-bottom:1px solid #edf2f4; text-align:right; }.appointment:last-child { border-bottom:0; }.appointment time { font-size:10px; color:var(--muted); }.appointment-dot { width:8px; height:8px; border-radius:50%; background:var(--orange-500); box-shadow:0 0 0 4px var(--orange-100); }.appointment-dot.done { background:var(--success); box-shadow:0 0 0 4px #e6f4ee; }.appointment-dot.muted { background:#9bb0ba; box-shadow:0 0 0 4px #edf2f4; }.appointment strong,.appointment small { display:block; }.appointment strong{font-size:11px}.appointment small{font-size:9px;color:var(--muted);margin-top:2px}.tag { display:inline-flex; min-height:24px; align-items:center; border-radius:20px; padding:0 8px; font-size:9px; font-weight:700; white-space:nowrap; }.tag.success { color:var(--success);background:#e8f6ef}.tag.pending{color:#a55019;background:var(--orange-100)}.tag.neutral{color:#526b7b;background:#edf2f4}
.services-panel,.quick-panel { padding:21px 23px; }.service-bars { margin-top: 16px; display:grid; grid-template-columns:repeat(2,1fr); gap:16px 26px; }.service-bars div { display:grid; grid-template-columns:1fr auto; gap:6px; }.service-bars span,.service-bars b { font-size:10px; }.service-bars b { color:var(--teal-700)}.service-bars i { grid-column:1/-1; height:6px; background:#edf2f4;border-radius:10px;overflow:hidden}.service-bars u{display:block;height:100%;background:var(--teal-600);border-radius:inherit;text-decoration:none}.quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:15px}.quick-actions button{min-height:75px;border:1px solid var(--border);background:#f8fafb;border-radius:12px;font-size:10px;font-weight:700}.quick-actions button:hover{border-color:var(--teal-600);background:var(--teal-100)}.quick-actions span{display:block;font-size:19px;color:var(--teal-700);margin-bottom:4px}
.page-heading { display:flex;align-items:center;justify-content:space-between;gap:20px;margin:3px 0 25px}.page-heading h2{font-size:29px;margin:3px 0 2px}.page-heading p{margin:0;color:var(--muted);font-size:11px}.filter-panel{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:13px;display:flex;align-items:center;gap:12px;margin-bottom:16px}.search-field{height:42px;display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:10px;padding:0 12px;min-width:300px;background:#f9fbfb}.search-field input{border:0;outline:0;background:transparent;width:100%;font-size:11px}.filter-chips{display:flex;gap:6px;flex:1}.chip{border:1px solid transparent;background:#f2f6f7;border-radius:9px;min-height:38px;padding:0 11px;font-size:10px}.chip b{display:inline-grid;place-items:center;margin-right:4px;border-radius:10px;background:#fff;min-width:19px;height:19px}.chip.active{color:var(--teal-700);border-color:#9bcfcd;background:var(--teal-100)}
.heading-actions{display:flex;gap:9px}.patient-report-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.patient-report-grid article{border:1px solid var(--border);background:#fff;border-radius:14px;padding:14px 16px;display:flex;align-items:center;gap:11px;box-shadow:var(--shadow-soft)}.patient-report-grid strong,.patient-report-grid small{display:block}.patient-report-grid strong{font-size:19px}.patient-report-grid small{color:var(--muted);font-size:8px}.report-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;font-size:15px}.report-icon.teal{background:var(--teal-100);color:var(--teal-700)}.report-icon.orange{background:var(--orange-100);color:var(--orange-500)}.report-icon.navy{background:#e9eff4;color:var(--navy-900)}.report-icon.violet{background:#f2eef9;color:#72559a}
.table-panel{overflow:hidden}.table-toolbar{padding:17px 20px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.table-toolbar strong,.table-toolbar span{display:block}.table-toolbar strong{font-size:14px}.table-toolbar span{font-size:9px;color:var(--muted);margin-top:2px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{text-align:right;background:#f8fafb;color:var(--muted);font-size:9px;font-weight:700;padding:11px 16px;border-bottom:1px solid var(--border)}td{padding:14px 16px;border-bottom:1px solid #edf2f4;font-size:10px}tbody tr{transition:.15s}tbody tr:hover{background:#f8fbfb}tbody tr:last-child td{border-bottom:0}.patient-cell{display:flex;align-items:center;gap:9px}.patient-cell strong,.patient-cell small{display:block}.patient-cell strong{font-size:11px}.patient-cell small{font-size:8px;color:var(--muted)}.row-action{border:0;background:transparent;color:var(--teal-700);font-weight:800}.empty-state{padding:50px;text-align:center}.empty-state span,.empty-state strong,.empty-state small{display:block}.empty-state span{font-size:30px;color:var(--teal-600)}.empty-state small{color:var(--muted)}
.shift-state{display:grid;grid-template-columns:10px auto;gap:1px 7px;align-items:center;border:1px solid var(--border);padding:9px 14px;border-radius:11px;background:#fff}.shift-state i{width:8px;height:8px;border-radius:50%;background:#38b277;box-shadow:0 0 0 4px #e7f7ef;grid-row:1/3}.shift-state span{font-size:8px;color:var(--muted)}.shift-state strong{font-size:10px}.cashier-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.75fr);gap:20px;align-items:start}.cashier-form{padding:26px}.step-heading{display:flex;gap:13px;align-items:center;padding-bottom:22px;border-bottom:1px solid var(--border);margin-bottom:22px}.step-heading>span{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:var(--navy-900);color:#fff;font-weight:800}.step-heading h3{margin:0;font-size:16px}.step-heading p{margin:2px 0 0;color:var(--muted);font-size:10px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.field{display:block}.field.full{grid-column:1/-1}.field>span{display:block;font-size:10px;font-weight:700;margin-bottom:7px}.field input,.field select,.field textarea{width:100%;min-height:44px;border:1px solid var(--border);border-radius:10px;background:#fafcfc;padding:0 12px;outline:0;color:var(--text)}.field textarea{min-height:86px;padding-top:11px;resize:vertical}.cashier-form>.field{margin-top:18px}.field small{font-size:9px;color:var(--muted);display:block;margin-top:5px}.points-input{display:flex}.points-input input{border-radius:0 10px 10px 0}.points-input button{border:1px solid var(--border);border-right:0;background:var(--teal-100);color:var(--teal-700);border-radius:10px 0 0 10px;padding:0 12px;font-size:9px;font-weight:700}.payment-tabs{height:44px;border:1px solid var(--border);border-radius:10px;padding:4px;display:grid;grid-template-columns:repeat(3,1fr);gap:4px;background:#fafcfc}.payment-tabs button{border:0;background:transparent;border-radius:7px;font-size:9px}.payment-tabs button.active{background:#fff;color:var(--teal-700);box-shadow:0 2px 8px rgba(8,29,50,.09)}
.receipt-card{background:var(--navy-950);color:#fff;border-radius:var(--radius-lg);padding:26px;box-shadow:var(--shadow);position:sticky;top:135px;overflow:hidden}.receipt-card::after{content:"";position:absolute;width:160px;height:160px;border:35px solid rgba(22,135,138,.11);border-radius:50%;top:-100px;left:-70px}.receipt-brand{display:flex;gap:10px;align-items:center;border-bottom:1px dashed rgba(255,255,255,.17);padding-bottom:17px;position:relative;z-index:1}.receipt-brand svg{width:40px}.receipt-brand strong,.receipt-brand span{display:block}.receipt-brand strong{font-size:15px}.receipt-brand span{font-size:9px;color:#8ea7b4}.receipt-number{display:flex;justify-content:space-between;margin:18px 0}.receipt-number span{font-size:10px;color:#8ea7b4}.receipt-number strong{font-size:11px}.receipt-lines{margin:0;padding:8px 0;border-top:1px dashed rgba(255,255,255,.17);border-bottom:1px dashed rgba(255,255,255,.17)}.receipt-lines div{display:flex;justify-content:space-between;padding:8px 0}.receipt-lines dt{color:#8ea7b4;font-size:10px}.receipt-lines dd{margin:0;font-size:10px;font-weight:700}.receipt-lines .discount{color:#6fd1a0}.receipt-total{display:flex;justify-content:space-between;align-items:end;padding:19px 0}.receipt-total span{font-size:10px;color:#b0c0c7}.receipt-total strong{font-size:26px}.receipt-total small{font-size:10px}.receipt-card .primary-button{background:var(--orange-500);border-color:var(--orange-500);box-shadow:none}.secure-note{text-align:center;color:#7793a1;font-size:8px;margin:10px 0 0}
.receipt-lines .earned{color:#ffad83}.new-balance{color:var(--teal-700)}
.period-selector{display:flex;border:1px solid var(--border);background:#fff;border-radius:11px;padding:4px}.period-selector button{min-height:34px;border:0;background:transparent;border-radius:8px;padding:0 13px;font-size:9px}.period-selector button.active{background:var(--navy-900);color:#fff}.report-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}.report-kpi{border:1px solid var(--border);background:#fff;border-radius:var(--radius);padding:20px;box-shadow:var(--shadow-soft)}.report-kpi span,.report-kpi strong{display:block}.report-kpi span{font-size:10px;color:var(--muted)}.report-kpi strong{font-size:21px;margin:7px 0}.report-kpi strong small{font-size:9px}.report-kpi em{font-style:normal;font-size:9px;font-weight:700;color:var(--success)}.report-kpi.primary{background:var(--teal-700);color:#fff;border-color:var(--teal-700)}.report-kpi.primary span{color:#b7dddd}.report-kpi.primary em{color:#9ef0c9}.reports-grid{display:grid;grid-template-columns:1.7fr .85fr;gap:18px;margin-bottom:18px}.revenue-panel,.mix-panel{padding:22px}.chart-legend{font-size:9px;color:var(--muted)}.chart-legend i{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--teal-600);margin-left:5px}.line-chart{width:100%;height:260px;overflow:visible}.grid-lines path{stroke:#e7edef;stroke-width:1;fill:none}.area{fill:rgba(22,135,138,.09)}.line{fill:none;stroke:var(--teal-600);stroke-width:4;stroke-linecap:round}.points circle{fill:#fff;stroke:var(--teal-600);stroke-width:3}.chart-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:9px;padding:0 2%}.donut-wrap{margin-top:21px}.donut{width:160px;height:160px;border-radius:50%;margin:0 auto 24px;background:conic-gradient(var(--teal-700) 0 41%,var(--orange-500) 41% 70%,#6da3a7 70% 88%,#dce6e9 88%);position:relative;display:grid;place-items:center}.donut::after{content:"";position:absolute;width:102px;height:102px;border-radius:50%;background:#fff}.donut div{z-index:1;text-align:center}.donut strong,.donut span{display:block}.donut strong{font-size:25px}.donut span{font-size:9px;color:var(--muted)}.mix-panel ul{list-style:none;padding:0;margin:0}.mix-panel li{display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:8px;padding:7px 0;font-size:9px}.mix-panel li i{width:8px;height:8px;border-radius:3px}.c1{background:var(--teal-700)}.c2{background:var(--orange-500)}.c3{background:#6da3a7}.c4{background:#dce6e9}.compact-table td{padding-top:11px;padding-bottom:11px}
.hr-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}.hr-kpis article{border:1px solid var(--border);background:#fff;border-radius:var(--radius);padding:17px;display:flex;align-items:center;gap:11px}.hr-kpis strong,.hr-kpis span{display:block}.hr-kpis strong{font-size:20px}.hr-kpis div span{font-size:9px;color:var(--muted)}.hr-kpis em{font-style:normal;color:var(--muted);font-size:8px;margin-right:auto}.hr-layout{display:grid;grid-template-columns:1.55fr .7fr;gap:18px;align-items:start}.team-panel,.payroll-panel{padding:22px}.employee-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px;margin-top:18px}.employee-card{border:1px solid var(--border);border-radius:13px;padding:13px;display:flex;align-items:center;gap:10px;background:#fbfcfc}.employee-card button{margin-right:auto}.employee-card strong,.employee-card small{display:block}.employee-card strong{font-size:11px}.employee-card small{font-size:8px;color:var(--muted)}.attendance{width:7px;height:7px;border-radius:50%;background:#38b277;margin-right:auto}.attendance.late{background:var(--orange-500)}.payroll-number{padding:18px 0;border-bottom:1px solid var(--border)}.payroll-number>span,.payroll-number>strong,.payroll-number>small{display:block}.payroll-number>span{font-size:9px;color:var(--muted)}.payroll-number>strong{font-size:24px;margin:5px 0}.payroll-number>strong small{font-size:9px}.payroll-number .progress{background:#edf2f4}.payroll-number .progress i{background:var(--teal-600)}.payroll-number>small{font-size:8px;color:var(--muted)}.payroll-panel dl{margin:10px 0 18px}.payroll-panel dl div{display:flex;justify-content:space-between;padding:9px 0}.payroll-panel dt,.payroll-panel dd{font-size:9px}.payroll-panel dt{color:var(--muted)}.payroll-panel dd{margin:0;font-weight:700}.positive{color:var(--success)}.negative{color:var(--danger)}
.modal{position:fixed;inset:0;z-index:200;display:none;align-items:center;justify-content:center;padding:20px}.modal.open{display:flex}.modal-backdrop{position:absolute;inset:0;border:0;background:rgba(4,19,33,.62);backdrop-filter:blur(3px)}.modal-card{position:relative;width:min(600px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:20px;padding:26px;box-shadow:0 30px 80px rgba(0,0,0,.25);animation:modalIn .22s ease}.modal-card header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:23px}.modal-card h2{font-size:21px;margin:3px 0}.modal-card .icon-button{background:#f2f6f7}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:25px}@keyframes modalIn{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}.receipt-modal-card{text-align:center;max-width:430px}.success-check{width:62px;height:62px;border-radius:20px;display:grid;place-items:center;background:#e4f5ed;color:var(--success);font-size:29px;margin:0 auto 14px}.receipt-modal-card h2{margin:0}.receipt-modal-card>p{color:var(--muted);font-size:11px}.receipt-preview{display:grid;grid-template-columns:1fr auto;text-align:right;gap:11px;padding:16px;background:#f5f8f9;border-radius:12px;margin-top:18px}.receipt-preview span{font-size:10px;color:var(--muted)}.receipt-preview strong{font-size:11px}.drawer-modal{justify-content:flex-start;padding:0}.profile-drawer{position:relative;width:min(390px,100%);height:100%;overflow:auto;background:#fff;padding:28px;box-shadow:var(--shadow);animation:drawerIn .25s ease}.profile-drawer header{display:flex;justify-content:space-between;align-items:flex-start}.profile-drawer h2{font-size:24px;margin:19px 0 0}.profile-drawer>p{color:var(--muted);font-size:10px;margin-top:2px}.profile-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:24px 0}.profile-meta div,.profile-visit{border:1px solid var(--border);padding:14px;border-radius:12px}.profile-meta span,.profile-meta strong,.profile-visit span,.profile-visit strong,.profile-visit small{display:block}.profile-meta span,.profile-visit span{font-size:9px;color:var(--muted)}.profile-meta strong,.profile-visit strong{font-size:11px;margin-top:3px}.profile-visit{margin-bottom:20px}.profile-visit small{font-size:9px;color:var(--success);margin-top:6px}@keyframes drawerIn{from{transform:translateX(-100%)}to{transform:none}}
.booking-card{width:min(720px,100%)}.booking-card header p{margin:2px 0 0;color:var(--muted);font-size:9px}.joined-field{display:flex}.joined-field select{border-radius:0 10px 10px 0}.joined-field button{border:1px solid var(--border);border-right:0;background:var(--teal-100);color:var(--teal-700);border-radius:10px 0 0 10px;min-width:110px;font-size:9px;font-weight:700}.booking-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:19px}.booking-summary div{border:1px solid var(--border);background:#f8fafb;border-radius:11px;padding:12px}.booking-summary span,.booking-summary strong{display:block}.booking-summary span{font-size:8px;color:var(--muted)}.booking-summary strong{font-size:13px;margin-top:3px}.booking-summary .highlight{border-color:#9bcfcd;background:var(--teal-100)}.booking-summary .highlight strong{color:var(--teal-700)}.points-rule{font-size:9px;color:var(--orange-500);background:var(--orange-100);border-radius:9px;padding:9px 11px;margin:10px 0 0}.profile-drawer{width:min(570px,100%)}.profile-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 0}.profile-title-row h2{margin:0}.profile-title-row p{margin:2px 0 0;color:var(--muted);font-size:9px}.points-meta{background:var(--teal-100)}.points-meta small{display:block;font-size:7px;color:var(--teal-700);margin-top:2px}.profile-tabs{display:grid;grid-template-columns:repeat(3,1fr);padding:4px;background:#edf2f4;border-radius:11px;margin-bottom:15px}.profile-tabs button{min-height:38px;border:0;background:transparent;border-radius:8px;font-size:8.5px;font-weight:700;color:var(--muted)}.profile-tabs button.active{background:#fff;color:var(--teal-700);box-shadow:0 2px 8px rgba(8,29,50,.08)}.profile-tab-panel{min-height:250px}.medical-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin-bottom:11px}.medical-grid div{border:1px solid var(--border);border-radius:11px;padding:12px}.medical-grid span,.medical-grid strong{display:block}.medical-grid span{font-size:8px;color:var(--muted)}.medical-grid strong{font-size:10px;margin-top:3px}.history-list{display:grid;gap:9px}.history-item{display:grid;grid-template-columns:44px 1fr auto;gap:10px;align-items:center;border:1px solid var(--border);border-radius:12px;padding:11px;background:#fbfcfc}.history-date{width:42px;height:42px;border-radius:10px;background:var(--navy-900);color:#fff;display:grid;place-items:center;text-align:center;font-size:8px;line-height:1.3}.history-item strong,.history-item small{display:block}.history-item strong{font-size:10px}.history-item small{font-size:8px;color:var(--muted);margin-top:2px}.history-value{text-align:left}.history-value b,.history-value em{display:block}.history-value b{font-size:9px}.history-value em{font-size:8px;color:var(--success);font-style:normal}.files-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.file-card{border:1px solid var(--border);background:#fbfcfc;border-radius:12px;padding:13px;text-align:right}.file-card:hover{border-color:var(--teal-600);background:var(--teal-100)}.file-icon{width:35px;height:35px;border-radius:10px;background:var(--orange-100);color:var(--orange-500);display:grid;place-items:center;font-size:16px;margin-bottom:9px}.file-card strong,.file-card small{display:block}.file-card strong{font-size:9.5px}.file-card small{font-size:7.5px;color:var(--muted);margin-top:2px}.file-preview-card{max-width:560px}.fake-document{min-height:300px;border:1px solid var(--border);background:#fdfefe;border-radius:12px;padding:25px;position:relative}.document-brand{display:flex;justify-content:space-between;align-items:center;padding-bottom:15px;border-bottom:2px solid var(--teal-600)}.document-brand strong{color:var(--teal-700)}.document-brand span{font-size:9px;color:var(--muted)}.document-lines{margin-top:35px;display:grid;gap:16px}.document-lines i{height:7px;background:#e7edef;border-radius:8px}.document-lines i:nth-child(2){width:82%}.document-lines i:nth-child(3){width:92%}.document-lines i:nth-child(4){width:68%}.document-lines i:nth-child(5){width:76%}.document-stamp{position:absolute;left:28px;bottom:25px;width:65px;height:65px;border:2px solid #eeb99f;color:var(--orange-500);border-radius:50%;display:grid;place-items:center;text-align:center;font-size:9px;transform:rotate(-8deg)}
.toast-region{position:fixed;z-index:300;bottom:24px;left:24px;display:grid;gap:8px}.toast{min-width:260px;background:var(--navy-950);color:#fff;padding:13px 16px;border-radius:11px;box-shadow:var(--shadow);font-size:10px;animation:toastIn .22s ease}.toast::before{content:"✓";display:inline-grid;place-items:center;width:20px;height:20px;border-radius:7px;background:var(--teal-600);margin-left:8px}@keyframes toastIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}.sidebar-overlay{display:none}
@media (max-width:1180px){.kpi-grid,.report-kpis,.hr-kpis{grid-template-columns:repeat(2,1fr)}.dashboard-grid,.reports-grid,.hr-layout{grid-template-columns:1fr}.cashier-layout{grid-template-columns:1.25fr .8fr}.global-search{width:190px}.receipt-card{position:static}.employee-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:900px){.sidebar{transform:translateX(100%)}.sidebar.open{transform:none}.sidebar-overlay.open{display:block;position:fixed;z-index:35;inset:28px 0 0;border:0;background:rgba(4,19,33,.55)}.main-content{margin-right:0}.menu-button{display:grid;place-items:center}.global-search,.today{display:none}.cashier-layout{grid-template-columns:1fr}.employee-grid{grid-template-columns:repeat(2,1fr)}.topbar{height:76px}.receipt-card{max-width:none}.filter-panel{flex-wrap:wrap}.search-field{flex:1;min-width:240px}.filter-chips{order:3;flex-basis:100%;overflow:auto}.screens{padding-top:22px}}
@media (max-width:900px){.auth-view{grid-template-columns:1fr}.auth-visual{display:none}.auth-panel{min-height:calc(100vh - 28px);padding:30px}.mobile-auth-brand{display:flex;align-items:center;gap:8px;margin-bottom:24px;color:var(--navy-900)}.mobile-auth-brand svg{width:43px}.mobile-auth-brand strong{font-size:15px}}
@media (max-width:600px){body{font-size:13px}.demo-ribbon{height:24px;font-size:9px}.auth-view{padding-top:24px}.auth-panel{min-height:calc(100vh - 24px);padding:18px 14px;background-size:18px 18px}.login-card{padding:23px 18px;border-radius:19px}.login-card h2{font-size:23px}.role-picker{gap:6px}.role-option{min-height:87px;padding:10px 5px}.role-option strong{font-size:8px}.role-option small{font-size:7px}.app-shell{padding-top:24px}.sidebar{top:24px}.topbar{top:24px;padding:0 15px}.screens{padding:16px 14px 35px}.welcome-panel{padding:23px;min-height:250px;align-items:flex-start}.welcome-panel h2{font-size:27px}.hero-stat{position:absolute;bottom:20px;right:23px;left:23px;width:auto;padding:12px 15px}.hero-stat strong{font-size:24px}.hero-stat small{display:none}.kpi-grid,.report-kpis,.hr-kpis{grid-template-columns:1fr 1fr;gap:10px}.kpi-card{padding:13px;gap:9px}.kpi-icon{width:34px;height:34px;flex-basis:34px}.kpi-card strong{font-size:19px}.dashboard-grid,.lower-grid{grid-template-columns:1fr;gap:12px}.panel-head{align-items:center}.chart-panel,.appointments-panel,.services-panel,.quick-panel,.cashier-form,.revenue-panel,.mix-panel,.team-panel,.payroll-panel{padding:17px}.bar-chart{gap:6px;height:155px}.bar-chart i{width:70%}.service-bars{grid-template-columns:1fr}.page-heading{align-items:flex-start;margin-bottom:18px}.page-heading h2{font-size:24px}.page-heading p{max-width:240px}.page-heading>.primary-button{width:42px;overflow:hidden;padding:0;font-size:0;flex:0 0 42px}.page-heading>.primary-button::first-letter{font-size:18px}.filter-panel{padding:10px}.search-field{min-width:100%}.filter-panel>.outline-button{display:none}.table-toolbar{padding:13px}.form-grid{grid-template-columns:1fr;gap:14px}.field.full{grid-column:auto}.receipt-card{padding:22px}.period-selector{max-width:100%;overflow:auto}.page-heading:has(.period-selector){display:block}.page-heading .period-selector{margin-top:13px}.report-kpis .report-kpi{padding:14px}.report-kpi strong{font-size:17px}.line-chart{height:190px}.employee-grid{grid-template-columns:1fr}.hr-kpis article{padding:12px}.hr-kpis em{display:none}.topbar-actions{gap:7px}.modal{padding:12px}.modal-card{padding:20px}.profile-drawer{padding:22px}.toast-region{right:14px;left:14px;bottom:14px}.toast{min-width:0}.quick-actions{gap:7px}.quick-actions button{min-height:65px}}
@media (max-width:1180px){.patient-report-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){.heading-actions{gap:6px}.heading-actions .outline-button{display:none}.heading-actions .primary-button{width:44px;overflow:hidden;padding:0;font-size:0;flex:0 0 44px}.heading-actions .primary-button::first-letter{font-size:18px}.patient-report-grid{grid-template-columns:1fr 1fr;gap:8px}.patient-report-grid article{padding:11px}.booking-summary{grid-template-columns:1fr}.joined-field button{min-width:92px}.profile-title-row{align-items:flex-start}.profile-title-row .outline-button{padding:0 9px}.profile-tabs button{font-size:7px}.medical-grid,.files-grid{grid-template-columns:1fr}}
