:root{font-family:Inter,Arial,Helvetica,sans-serif;color:#0f172a;background:#f5f8fc;line-height:1.45}*{box-sizing:border-box}body{margin:0;background:#f5f8fc}button,input,select{font:inherit}.appShell{min-height:100vh;display:grid;grid-template-columns:190px minmax(0,1fr) 350px;grid-template-rows:76px auto 56px}.sidebar{grid-row:1/span 3;background:#fff;border-right:1px solid #e8eef5;padding:18px 14px;display:flex;flex-direction:column;gap:18px}.brand{display:flex;align-items:center;gap:12px;padding:4px 8px}.brandmark{width:42px;height:42px;border-radius:14px;background:linear-gradient(145deg,#e6f6ff,#d6f0f3);display:grid;place-items:center;color:#0f8b8d;border:1px solid #c9e5ea;font-size:22px;font-weight:900}.brand strong{display:block;color:#123b63}.brand small,.topbar span,.metric small,.insight small,.tiny,.patientHeader p,.apptDetails small,.footerItem span{display:block;color:#64748b}.sideNav{display:grid;gap:8px}.sideNav button{border:1px solid transparent;background:transparent;padding:12px;border-radius:14px;text-align:left;display:flex;align-items:center;gap:12px;color:#1e293b;font-weight:700;cursor:pointer}.sideNav button:hover{background:#f8fbfe;border-color:#e6edf4}.sideNav button.active{background:#f0f8ff;border-color:#d9ebff;color:#0f6fcb}.sideNav i{font-style:normal;width:22px;text-align:center}.sideNav b{margin-left:auto;background:#0f6fcb;color:#fff;border-radius:999px;padding:2px 8px;font-size:11px}.collapse{margin-top:auto;border-top:1px solid #e8eef5;padding-top:14px;color:#64748b;font-size:13px}.topbar{grid-column:2/span 2;background:#fffffff0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid #e8eef5;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;position:sticky;top:0;z-index:5}.topbar h1{margin:0;font-size:22px;letter-spacing:-.03em}.topActions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.globalSearch{display:flex;align-items:center;gap:9px;background:#f8fbfe;border:1px solid #d9e3ee;border-radius:14px;padding:10px 14px;min-width:390px;color:#94a3b8}.globalSearch kbd{margin-left:auto;color:#64748b;font-size:12px;border:1px solid #d9e3ee;padding:2px 8px;border-radius:8px;background:#fff}.button,.iconButton,.userButton,.lang button,.tableHead button,.tableHead input,.tableHead select,.actions button,.calHead button,.quickActions button{border:1px solid #d9e3ee;background:#fff;border-radius:12px;padding:10px 12px;font-weight:700;color:#334155}.iconButton{width:42px;height:42px;padding:0;position:relative}.iconButton b{position:absolute;top:-6px;right:-4px;background:#ef4444;color:#fff;border-radius:999px;padding:2px 6px;font-size:11px}.userButton{display:flex;align-items:center;gap:10px}.userButton small{display:block;color:#64748b}.avatar,.patientAvatar{border-radius:999px;background:linear-gradient(180deg,#f0d8cf,#d1a694);display:grid;place-items:center;color:#5b3527;font-weight:900}.avatar{width:34px;height:34px}.lang{display:flex;gap:6px}.lang button.active{background:#0f6fcb;border-color:#0f6fcb;color:#fff}.main{grid-column:2;padding:16px 18px 0;display:grid;gap:16px;align-self:start}.rightPanel{grid-column:3;padding:16px 18px 0 0;display:grid;gap:14px;align-self:start}.sectionTitle{font-weight:900;font-size:14px;margin-bottom:12px;display:flex;align-items:center;justify-content:space-between}.sectionTitle a{color:#0f6fcb;font-size:13px}.sectionTitle em{font-style:normal;font-size:12px;background:#f5f2ff;color:#7c5cff;border-radius:999px;padding:4px 8px;margin-left:8px}.kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.metric,.insight,.panel,.footerItem{background:#fff;border:1px solid #e8eef5;border-radius:18px;box-shadow:0 6px 18px #0f172a08}.metric,.insight{padding:15px;text-align:left}.metricTop{display:flex;align-items:center;gap:10px;color:#334155;font-weight:800}.metricTop i{font-style:normal;width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:#eef6ff;color:#0f6fcb}.metricTop i.green{background:#eefaf4;color:#16a34a}.metricTop i.red{background:#fff2f2;color:#ef4444}.metricTop i.purple{background:#f5f2ff;color:#7c5cff}.metricTop i.teal{background:#eefaf8;color:#0f8b8d}.metricTop i.amber{background:#fff7ed;color:#f59e0b}.metric b{display:block;font-size:22px;margin:12px 0 4px}.insights{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.insight{cursor:pointer}.insight:hover{border-color:#c5d9eb}.insight b{display:block;margin:8px 0 4px}.tablePanel{padding:16px}.tableHead{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px;flex-wrap:wrap}.tableLeft,.filters,.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.tableLeft h2{margin:0;font-size:17px}.filters input{min-width:160px}.tableWrap{overflow:auto;border:1px solid #e8eef5;border-radius:14px}table{width:100%;border-collapse:collapse;background:#fff}th,td{padding:12px;border-bottom:1px solid #e8eef5;text-align:left;white-space:nowrap;font-size:13px}th{font-size:12px;color:#475569;background:#fbfdff}tr:hover{background:#f8fbfe}tr.selected{background:#f2f8ff}td small{display:block;color:#64748b;margin-top:2px}.status{display:inline-flex;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:800}.status.confirmed{background:#edf9f0;color:#16a34a}.status.arrived{background:#eef6ff;color:#0f6fcb}.status.cancelled{background:#fff1f1;color:#ef4444}.status.waiting{background:#fff7ed;color:#f59e0b}.status.auto{background:#eefaf8;color:#0f8b8d}.tableFooter{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px;color:#64748b}.actions button.primary{background:linear-gradient(180deg,#1692d2,#0f6fcb);border-color:#0f6fcb;color:#fff}.patientHeader{display:flex;gap:14px;align-items:center;padding:18px}.patientAvatar{width:58px;height:58px;font-size:21px}.patientHeader h2{margin:0 0 4px}.patientHeader a,.docs a{color:#0f6fcb;font-weight:800;font-size:13px}.apptDetails,.calendar,.unified{padding:16px}.apptDetails .line{display:flex;align-items:center;justify-content:space-between;gap:10px}.apptDetails p{margin:9px 0 4px}.alert{margin-top:12px;background:#fff7f7;border:1px solid #ffd9d9;color:#d94747;padding:10px 12px;border-radius:12px;font-size:13px;font-weight:700}.calHead{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.calGrid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;text-align:center;font-size:12px}.calGrid b{color:#64748b}.calGrid span{padding:7px 0;border-radius:12px;background:#f9fbfe;border:1px solid #eef3f7}.calGrid .selectedDay{background:#0f8b8d;color:#fff;font-weight:900}.quickActions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.tabs{display:flex;gap:4px;border-bottom:1px solid #e8eef5;margin-bottom:12px;flex-wrap:wrap}.tabs button{border:0;background:transparent;padding:8px 10px;border-radius:10px 10px 0 0;font-weight:800;color:#64748b}.tabs button.active{background:#f0f8ff;color:#0f6fcb}.note{padding:12px;border:1px solid #e8eef5;border-radius:14px}.note p{margin:8px 0 10px;line-height:1.5}.note span{display:inline-flex;background:#f5f2ff;color:#7c5cff;font-weight:800;padding:6px 10px;border-radius:10px;font-size:12px}.docs{display:grid;gap:8px;margin-top:14px;font-size:13px}.docs p{margin:0;display:flex;justify-content:space-between;gap:10px}.docs b{color:#16a34a}.footerStrip{grid-column:2/span 2;background:#fff;border-top:1px solid #e8eef5;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;padding:10px 18px}.footerItem{padding:10px 12px;display:flex;align-items:center;gap:10px}.footerItem i{font-style:normal;width:28px;height:28px;border-radius:10px;background:#eef6ff;color:#0f6fcb;display:grid;place-items:center}.footerItem strong{display:block;font-size:13px}.toast{position:fixed;right:18px;bottom:74px;background:#123b63;color:#fff;padding:14px 16px;border-radius:12px;box-shadow:0 18px 48px #0f172a1a;opacity:0;transform:translateY(10px);transition:.2s;font-weight:800}.toast.show{opacity:1;transform:none}@media (max-width:1400px){.kpis,.insights{grid-template-columns:repeat(3,1fr)}.footerStrip{grid-template-columns:repeat(4,1fr)}}@media (max-width:1180px){.appShell{grid-template-columns:1fr;grid-template-rows:auto}.sidebar,.topbar,.main,.rightPanel,.footerStrip{grid-column:1;grid-row:auto}.sidebar{padding-bottom:8px}.rightPanel{padding:0 18px}.globalSearch{min-width:240px}}@media (max-width:720px){.kpis,.insights,.footerStrip{grid-template-columns:1fr}.topbar{flex-direction:column;align-items:flex-start}.globalSearch{width:100%;min-width:0}.quickActions{grid-template-columns:1fr 1fr}.tableFooter{align-items:flex-start;flex-direction:column}}
