:root{--bg: #f4f6fb;--panel: #ffffff;--ink: #0f172a;--muted: #64748b;--line: #e2e8f0;--accent: #2563eb;--accent-soft: #dbeafe;--sidebar: #0f172a;--sidebar-muted: #94a3b8;--danger: #dc2626;--ok: #16a34a;--radius: 14px;--shadow: 0 10px 30px rgb(15 23 42 / 8%);font-family:Inter,Segoe UI,system-ui,-apple-system,Helvetica Neue,Arial,sans-serif}*{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}h1,h2,h3,p{margin:0}button,input{font:inherit}a{color:inherit}.muted{color:var(--muted)}.small{font-size:13px}.splash{min-height:100vh;display:grid;place-content:center;justify-items:center;gap:16px;color:var(--muted)}.spinner{width:34px;height:34px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--accent);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.login{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr}.login-brand{background:radial-gradient(circle at 85% 15%,rgb(37 99 235 / 35%),transparent 45%),radial-gradient(circle at 10% 90%,rgb(14 165 233 / 25%),transparent 40%),var(--sidebar);color:#f8fafc;padding:56px;display:flex;flex-direction:column;justify-content:space-between;gap:40px}.logo{font-weight:800;letter-spacing:.08em;font-size:20px}.logo span{color:var(--accent);margin-left:4px}.logo-light{color:#f8fafc}.logo-light span{color:#60a5fa}.login-brand h1{font-size:clamp(28px,3vw,42px);line-height:1.15;max-width:520px;margin-bottom:16px}.login-brand p{color:#cbd5e1;font-size:17px;max-width:440px}.features{margin:0;padding:0;list-style:none;display:grid;gap:14px;max-width:460px}.features li{position:relative;padding-left:28px;color:#e2e8f0}.features li:before{content:"";position:absolute;left:0;top:6px;width:12px;height:12px;border-radius:50%;background:#38bdf8;box-shadow:0 0 0 4px #38bdf826}.login-note{color:var(--sidebar-muted);font-size:13px;letter-spacing:.04em;text-transform:uppercase}.login-panel{display:grid;place-items:center;padding:32px}.login-card{width:min(420px,100%);background:var(--panel);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);padding:32px;display:grid;gap:16px}.login-card h2{font-size:26px}.field{display:grid;gap:6px;font-size:14px;color:var(--muted)}.field input{border:1px solid var(--line);border-radius:10px;padding:12px 14px;color:var(--ink);background:#f8fafc;outline:none;transition:border-color .15s,box-shadow .15s}.field input:focus{border-color:var(--accent);box-shadow:0 0 0 3px #2563eb26;background:#fff}.button{border:0;border-radius:10px;padding:13px 16px;background:var(--accent);color:#fff;font-weight:600;cursor:pointer;transition:background .15s,transform .05s}.button:hover:not(:disabled){background:#1d4ed8}.button:active:not(:disabled){transform:translateY(1px)}.button:disabled{opacity:.6;cursor:progress}.alert{border-radius:10px;padding:10px 12px;background:#fef2f2;color:var(--danger);border:1px solid #fecaca;font-size:14px}.demo{border-top:1px dashed var(--line);padding-top:14px;display:grid;gap:8px;font-size:13px;color:var(--muted)}.demo-title{font-weight:600;color:var(--ink);text-transform:uppercase;letter-spacing:.06em;font-size:11px}.demo code{background:#f1f5f9;border-radius:6px;padding:2px 6px;color:var(--ink)}.demo ul{margin:0;padding:0;list-style:none;display:grid;gap:4px}.demo li{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.demo li button{border:0;background:none;color:var(--accent);padding:0;cursor:pointer;text-align:left}.demo li button:hover{text-decoration:underline}.app{min-height:100vh;display:grid;grid-template-columns:232px 1fr}.sidebar{background:var(--sidebar);color:#e2e8f0;padding:24px 18px;display:flex;flex-direction:column;gap:28px}.nav{display:grid;gap:6px}.nav-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-radius:9px;font-size:14px;color:#cbd5e1}.nav-item.active{background:#2563eb2e;color:#fff;font-weight:600;box-shadow:inset 3px 0 #60a5fa}.nav-item.disabled{color:#64748b;cursor:not-allowed}.nav-item em{font-style:normal;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#475569}.sidebar-footer{margin-top:auto;font-size:12px;color:var(--sidebar-muted);border-top:1px solid rgb(148 163 184 / 20%);padding-top:16px}.main{min-width:0;display:flex;flex-direction:column}.topbar{background:var(--panel);border-bottom:1px solid var(--line);padding:14px 28px;display:flex;align-items:center;justify-content:space-between;gap:16px}.crumb{font-weight:600}.user{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.user-name{font-size:14px;font-weight:500}.badge{background:var(--accent-soft);color:#1d4ed8;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:600}.link{border:0;background:none;color:var(--muted);cursor:pointer;padding:0;font-size:13px}.link:hover{color:var(--danger)}.content{padding:28px;display:grid;gap:20px;max-width:1200px;width:100%}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.page-head h1{font-size:28px;margin-bottom:4px}.pill{border-radius:999px;background:#ecfdf5;color:#047857;border:1px solid #a7f3d0;padding:5px 12px;font-size:12px;font-weight:600;white-space:nowrap}.pill-soft{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.stat{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;box-shadow:0 1px 2px #0f172a0a}.stat-value{font-size:30px;font-weight:700;line-height:1.1}.stat-label{color:var(--muted);font-size:13px;margin-top:4px}.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:0 1px 2px #0f172a0a;min-width:0}.card-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px}.card h2{font-size:17px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:14px}th{text-align:left;color:var(--muted);font-weight:500;font-size:12px;text-transform:uppercase;letter-spacing:.04em;padding:8px 10px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:11px 10px;border-bottom:1px solid #f1f5f9}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#f8fafc}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.list{margin:0;padding:0;list-style:none;display:grid}.list li{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid #f1f5f9;font-size:14px}.list li:last-child{border-bottom:0}.next{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(120deg,#f8fafc,#eff6ff)}.next h2{margin-bottom:6px}.next p{max-width:720px;line-height:1.5}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media(max-width:980px){.login{grid-template-columns:1fr}.login-brand{padding:32px;gap:20px}.features{display:none}.app{grid-template-columns:1fr}.sidebar{flex-direction:row;align-items:center;padding:14px 18px;gap:18px;overflow-x:auto}.nav{display:flex;gap:4px}.nav-item{white-space:nowrap}.sidebar-footer{display:none}.content{padding:20px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.grid2{grid-template-columns:1fr}.topbar{padding:12px 20px}}@media(max-width:560px){.stats{grid-template-columns:1fr}.page-head{align-items:flex-start;flex-direction:column}.user-name{display:none}}.content-schedule{padding:18px 22px 28px;max-width:none}.schedule{display:grid;gap:12px}.schedule-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:10px 14px}.date-nav{display:flex;align-items:center;gap:8px}.date-input{border:1px solid var(--line);border-radius:8px;padding:7px 8px;color:var(--ink);background:#f8fafc}.icon-button{width:32px;height:32px;display:inline-grid;place-items:center;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);cursor:pointer;font-size:18px;line-height:1}.icon-button:hover{background:#f8fafc}.segmented{display:inline-flex;background:#f1f5f9;border-radius:9px;padding:3px;gap:2px}.segmented button{border:0;background:transparent;padding:7px 12px;border-radius:7px;font-size:13px;color:var(--muted);cursor:pointer}.segmented button.active{background:#fff;color:var(--ink);font-weight:600;box-shadow:0 1px 3px #0f172a1f}.toolbar-field{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted)}.toolbar-field select{border:1px solid var(--line);border-radius:8px;padding:7px 8px;background:#f8fafc;color:var(--ink)}.checkbox{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted)}.schedule-summary{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:0 4px}.legend{display:flex;flex-wrap:wrap;gap:12px;font-size:12px;color:var(--muted)}.legend-item{display:inline-flex;align-items:center;gap:5px}.dot{width:9px;height:9px;border-radius:50%;display:inline-block}.dot.free{background:#34d399}.dot.booked{background:#f59e0b}.dot.confirmed{background:#3b82f6}.dot.arrived{background:#6366f1}.dot.no-show{background:#ef4444}.dot.blocked{background:#94a3b8}.banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af;border-radius:10px;padding:10px 14px;font-size:14px}.alert-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.day-grid-wrap{overflow:auto;max-height:calc(100vh - 250px);background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 1px 2px #0f172a0a}.day-grid{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}.day-grid thead th{position:sticky;top:0;z-index:2;background:#f8fafc;border-bottom:1px solid var(--line);border-right:1px solid #eef2f7;padding:10px 8px;text-align:left;min-width:190px;vertical-align:bottom}.day-grid thead th.time-column{left:0;z-index:3;min-width:74px;width:74px}.resource-name{display:block;font-weight:600;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.resource-meta{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:2px}.time-column{width:74px;min-width:74px;padding:0 10px;font-size:11px;color:var(--muted);font-weight:500;text-align:right;white-space:nowrap}.day-grid tbody th.time-column{position:sticky;left:0;background:#fff;z-index:1;border-right:1px solid #eef2f7;border-bottom:1px solid #f1f5f9;vertical-align:top;padding-top:12px}.grid-cell{padding:2px 3px;border-bottom:1px solid #f1f5f9;border-right:1px solid #f5f7fb;vertical-align:top;height:44px}.slot{width:100%;min-height:36px;border-radius:8px;border:1px solid transparent;padding:4px 8px;display:flex;flex-direction:column;justify-content:center;gap:1px;text-align:left;cursor:pointer;font:inherit;transition:filter .12s,transform .05s;overflow:hidden}.slot:hover{filter:brightness(.97)}.slot:active{transform:translateY(1px)}.slot-patient{font-weight:600;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.slot-meta{font-size:10px;opacity:.75;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.slot-free{font-size:11px;opacity:.8}.slot-free.target{outline:2px dashed var(--accent);outline-offset:1px}.slot-free,.slot-booked,.slot-confirmed,.slot-arrived,.slot-completed,.slot-no-show,.slot-blocked{color:inherit}.slot-free{background:#ecfdf5;border-color:#a7f3d0;color:#047857}.slot-booked{background:#fffbeb;border-color:#fde68a;color:#92400e}.slot-confirmed{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}.slot-arrived{background:#eef2ff;border-color:#c7d2fe;color:#3730a3}.slot-completed{background:#f1f5f9;border-color:#cbd5e1;color:#475569}.slot-no-show{background:#fef2f2;border-color:#fecaca;color:#b91c1c}.slot-blocked{background:repeating-linear-gradient(135deg,#f1f5f9,#f1f5f9 6px,#e2e8f0 6px 12px);border-color:#cbd5e1;color:#475569}.slot.target{outline:2px dashed var(--accent);outline-offset:1px}.panel-backdrop{position:fixed;inset:0;z-index:40;border:0;background:#0f172a38;cursor:default}.panel{position:fixed;top:0;right:0;bottom:0;width:min(420px,100%);background:var(--panel);z-index:50;box-shadow:-12px 0 40px #0f172a2e;display:flex;flex-direction:column;animation:panel-in .18s ease-out}@keyframes panel-in{0%{transform:translate(24px);opacity:.6}to{transform:translate(0);opacity:1}}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:20px 20px 12px;border-bottom:1px solid var(--line)}.panel-time{font-size:22px;font-weight:700}.panel-body{padding:16px 20px 24px;overflow-y:auto;display:grid;gap:14px}.panel-status{display:flex;align-items:center;gap:8px}.badge-status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:600;background:#f1f5f9;color:#475569}.badge-status.free{background:#ecfdf5;color:#047857}.badge-status.booked{background:#fffbeb;color:#92400e}.badge-status.confirmed{background:#eff6ff;color:#1d4ed8}.badge-status.arrived{background:#eef2ff;color:#3730a3}.badge-status.completed{background:#f1f5f9;color:#475569}.badge-status.no-show{background:#fef2f2;color:#b91c1c}.badge-status.blocked{background:#e2e8f0;color:#334155}.appointment-card{background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:14px;display:grid;gap:4px}.appointment-name{font-size:16px;font-weight:600}.appointment-phone{color:var(--accent);font-size:13px;text-decoration:none}.facts{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;margin:8px 0 0}.facts dt{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.facts dd{margin:2px 0 0;font-size:13px}.actions{display:grid;gap:8px}.inline-form{display:grid;gap:10px;border-top:1px dashed var(--line);padding-top:14px}.row{display:flex;align-items:center;gap:12px}.button-ghost{background:#f1f5f9;color:var(--ink)}.button-ghost:hover:not(:disabled){background:#e2e8f0}.button-danger{background:#dc2626}.button-danger:hover:not(:disabled){background:#b91c1c}.booking{display:grid;gap:12px;border-top:1px dashed var(--line);padding-top:14px}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line)}.tab{border:0;background:none;padding:8px 10px;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent;font-size:13px}.tab.active{color:var(--ink);border-bottom-color:var(--accent);font-weight:600}.stack{display:grid;gap:10px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.field select{border:1px solid var(--line);border-radius:10px;padding:11px 12px;color:var(--ink);background:#f8fafc;outline:none}.field select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #2563eb26;background:#fff}.patient-results{margin:0;padding:0;list-style:none;border:1px solid var(--line);border-radius:10px;overflow:hidden;max-height:220px;overflow-y:auto}.patient-results li+li{border-top:1px solid #f1f5f9}.patient-results button{width:100%;border:0;background:#fff;padding:9px 12px;text-align:left;cursor:pointer;display:grid;gap:2px}.patient-results button:hover{background:#f8fafc}.patient-name{font-weight:600;font-size:13px}.selected-patient{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f0f9ff;border:1px solid #bae6fd;border-radius:10px;padding:10px 12px}.selected-name{font-weight:600}.booking-footer{display:grid;gap:10px;border-top:1px solid var(--line);padding-top:12px}.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%);background:#0f172a;color:#fff;padding:10px 16px;border-radius:10px;font-size:13px;z-index:60;box-shadow:0 8px 25px #0f172a40;max-width:min(520px,90vw)}.splash-inline{min-height:240px}.empty-state{background:var(--panel);border:1px dashed var(--line);border-radius:var(--radius);padding:48px 24px;text-align:center;display:grid;gap:8px}.empty-state h2{font-size:18px}@media(max-width:760px){.schedule-toolbar{align-items:stretch}.toolbar-field{justify-content:space-between}.day-grid thead th{min-width:160px}.panel{width:100%}.content-schedule{padding:12px}.form-grid{grid-template-columns:1fr}}.waitlist-button{display:inline-flex;align-items:center;gap:6px;margin-left:auto}.waitlist-button .badge{background:#dbeafe;color:#1d4ed8}.waitlist-panel{width:min(480px,100%)}.waitlist-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}.waitlist-form{display:grid;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}.waitlist-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}.waitlist-list li{border:1px solid var(--line);border-radius:10px;padding:10px 12px;display:grid;gap:4px;background:#fff}.waitlist-list li.urgent{border-left:4px solid #ef4444}.waitlist-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.waitlist-name{font-weight:600;font-size:14px}.waitlist-status{font-size:11px;border-radius:999px;padding:2px 8px;background:#f1f5f9;color:#475569;white-space:nowrap}.waitlist-status.waiting{background:#fffbeb;color:#92400e}.waitlist-status.offered{background:#eff6ff;color:#1d4ed8}.waitlist-status.booked{background:#ecfdf5;color:#047857}.waitlist-status.declined,.waitlist-status.skipped,.waitlist-status.expired{background:#f1f5f9;color:#64748b}.waitlist-meta{display:flex;flex-wrap:wrap;gap:8px;font-size:11px;color:var(--muted)}.waitlist-comment{font-size:12px;color:var(--muted);background:#f8fafc;border-radius:6px;padding:4px 6px}.waitlist-actions{display:flex;gap:14px;padding-top:2px}.debt-inline{color:#b91c1c;font-weight:600}.debt-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fef2f2;border:1px solid #fecaca;color:#991b1b;border-radius:10px;padding:10px 12px;font-size:13px}.debt-warning{align-items:flex-start}.debt-banner .small{font-size:11px;opacity:.85;margin-top:2px}.slot.has-debt{box-shadow:inset 3px 0 #dc2626}.slot-debt{font-size:10px;font-weight:700;color:#b91c1c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.candidates{border:1px solid #bfdbfe;background:#eff6ff;border-radius:10px;padding:10px 12px;display:grid;gap:8px}.candidates-head{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#1e40af}.candidates ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}.candidates li{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#fff;border:1px solid #dbeafe;border-radius:8px;padding:6px 8px}.candidate-name{font-weight:600;font-size:13px}.urgent-label{margin-left:6px;color:#b91c1c;background:#fee2e2;border-radius:999px;padding:1px 6px;font-size:9px;text-transform:uppercase;letter-spacing:.04em}.candidate-actions{display:flex;gap:4px}.button-small{padding:6px 8px;font-size:11px;border-radius:7px}.empty-state-small{padding:16px}.patient-card{position:fixed;top:0;right:0;bottom:0;width:min(760px,100%);background:var(--panel);z-index:70;display:flex;flex-direction:column;box-shadow:-16px 0 50px #0f172a38;animation:panel-in .18s ease-out}.patient-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:20px 22px 14px;border-bottom:1px solid var(--line)}.patient-card-name{font-size:21px;font-weight:700}.patient-card-alerts{padding:12px 22px 0;display:grid;gap:8px}.patient-card-tabs{display:flex;gap:2px;padding:12px 22px 0;border-bottom:1px solid var(--line);overflow-x:auto}.patient-card-tabs button{border:0;background:none;padding:8px 10px;color:var(--muted);border-bottom:2px solid transparent;cursor:pointer;font-size:13px;white-space:nowrap}.patient-card-tabs button.active{color:var(--ink);border-bottom-color:var(--accent);font-weight:600}.patient-card-body{padding:16px 22px 28px;overflow-y:auto}.entity-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}.entity-list li{border:1px solid var(--line);border-radius:10px;padding:10px 12px;display:grid;gap:2px}.entity-title{display:flex;align-items:center;gap:8px;font-weight:600;font-size:14px}.badge-ok{background:#ecfdf5;color:#047857}.facts-wide{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}.facts-span{grid-column:1 / -1}.patient-card-head-actions{display:flex;align-items:center;gap:8px}.dup-list{margin:6px 0 0;padding-left:18px;font-size:12px;line-height:1.5}.merge-box{border:1px solid #fecaca;background:#fff7f7;border-radius:12px;padding:14px;display:grid;gap:10px;margin-bottom:16px}button.nav-item{border:0;background:transparent;font:inherit;text-align:left;cursor:pointer;width:100%}.templates-page{display:grid;gap:16px}.template-form{display:grid;gap:14px}.template-list{display:grid;gap:12px}.template-card{display:grid;gap:10px;padding:16px}.template-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.template-name{font-weight:700;font-size:16px}.template-meta{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12px;color:#475569}.template-rules{display:flex;flex-wrap:wrap;gap:6px}.template-rules span{background:#f1f5f9;border-radius:6px;padding:3px 8px;font-size:11px;color:#334155}.template-actions{display:flex;gap:8px;justify-content:flex-end}.time-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.time-row input{width:112px}.weekday-row{display:flex;gap:6px;flex-wrap:wrap}.weekday{border:1px solid #cbd5e1;background:#fff;color:#334155;border-radius:8px;width:38px;height:32px;cursor:pointer;font:inherit;font-size:12px}.weekday.active{background:#dbeafe;border-color:#60a5fa;color:#1d4ed8;font-weight:700}.waitlist-status.active{background:#ecfdf5;color:#047857}.waitlist-status.draft{background:#fffbeb;color:#92400e}.waitlist-status.archived{background:#f1f5f9;color:#64748b}.waitlist-status.verified{background:#ecfdf5;color:#047857}.waitlist-status.pending,.waitlist-status.sent{background:#eff6ff;color:#1d4ed8}.waitlist-status.mismatch,.waitlist-status.error,.waitlist-status.failed,.waitlist-status.not_found{background:#fef2f2;color:#b91c1c}.exceptions-overlay{position:fixed;inset:0;background:#0f172a73;display:grid;place-items:center;padding:20px;z-index:40}.exceptions-modal{width:min(760px,96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;padding:20px;display:grid;gap:16px;box-shadow:0 24px 60px #0f172a40}.exceptions-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.exceptions-head h2{font-size:20px;margin:0 0 4px}.exceptions-list{display:grid;gap:8px;border-top:1px solid #e2e8f0;padding-top:12px}.exception-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border:1px solid #e2e8f0;border-radius:10px}.exception-actions{display:flex;align-items:center;gap:10px}.mode-row{display:flex;gap:20px}.mode-row label{display:flex;align-items:center;gap:6px;font-size:13px}.reports-page{display:grid;gap:16px}.report-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.report-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:14px;display:grid;gap:6px}.report-card span{color:#64748b;font-size:12px}.report-card strong{font-size:22px}.report-table-wrap{padding:0;overflow:auto}.report-table{width:100%;border-collapse:collapse;font-size:13px}.report-table th,.report-table td{padding:10px 14px;border-bottom:1px solid #e2e8f0;text-align:left}.report-table th{color:#64748b;font-size:11px;text-transform:uppercase;letter-spacing:.04em;background:#f8fafc}.report-table tfoot td{font-weight:700;border-top:2px solid #e2e8f0;border-bottom:0}.report-amount{font-variant-numeric:tabular-nums;white-space:nowrap}.week-page{display:grid;gap:16px}.week-table-wrap{padding:0;overflow:auto}.week-table{width:100%;border-collapse:collapse;font-size:13px;min-width:860px}.week-table th,.week-table td{border-bottom:1px solid #e2e8f0;padding:9px 10px;text-align:left;vertical-align:top}.week-table th{background:#f8fafc;color:#64748b;font-size:11px;text-transform:uppercase;letter-spacing:.03em}.week-table th span,.week-table th small{display:block}.week-table th small{font-size:10px;text-transform:none;letter-spacing:0}.week-resource{min-width:180px}.week-resource strong,.week-resource small{display:block}.week-resource small{color:#64748b;font-size:11px}.week-cell{min-width:92px}.week-cell small{color:#64748b;font-size:10px}.week-free{display:flex;align-items:baseline;gap:4px}.week-free strong{font-size:18px;color:#047857}.week-free span{color:#64748b;font-size:11px}.group-summary{border:1px solid #bfdbfe;background:#eff6ff;border-radius:10px;padding:10px 12px;display:grid;gap:6px}.group-head{display:flex;justify-content:space-between;gap:8px;color:#1e40af;font-weight:600;font-size:13px}.group-list{margin:0;padding:0;list-style:none;display:grid;gap:4px;font-size:12px}.group-list li{display:flex;justify-content:space-between;gap:8px}@media(max-width:900px){.report-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.patient-card{width:100%}.facts-wide{grid-template-columns:1fr}}
