:root{--navy:#0b2559;--blue:#1d64f2;--ink:#14213d;--muted:#69758a;--line:#e4e9f1;--bg:#f5f7fb;--white:#fff;--green:#0b9b6d;--amber:#d97706;--red:#dc3545;--violet:#7755d9;--shadow:0 12px 32px rgba(20,33,61,.07)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-size:14px}a{color:inherit}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.portal-header{height:76px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20;backdrop-filter:blur(14px)}.portal-header-inner{height:100%;max-width:1240px;margin:auto;padding:0 24px;display:flex;align-items:center;gap:40px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;min-width:220px}.brand-mark{width:42px;height:42px;border-radius:12px;background:linear-gradient(145deg,var(--navy),var(--blue));color:#fff;display:grid;place-items:center;box-shadow:0 8px 20px rgba(29,100,242,.23);overflow:hidden}.brand-mark img{width:100%;height:100%;object-fit:contain;background:#fff;padding:4px}.brand>span:last-child,.profile-copy{display:flex;flex-direction:column}.brand strong{font-size:15px;line-height:1.25}.brand small,.profile-copy small{color:var(--muted);font-size:11px;margin-top:3px}.top-nav{align-self:stretch;display:flex;gap:28px}.top-nav a{display:flex;align-items:center;text-decoration:none;color:#667085;font-weight:600;position:relative}.top-nav a.active{color:var(--blue)}.top-nav a.active:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--blue);border-radius:3px 3px 0 0}.profile-menu{margin-left:auto;display:flex;align-items:center;gap:10px}.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#e8efff;color:var(--blue);font-size:12px;font-weight:800}.profile-copy strong{font-size:12px;max-width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.logout{width:38px;height:38px;border:1px solid var(--line);border-radius:10px;display:grid;place-items:center;color:#6b7280;margin-left:8px;transition:.2s}.logout:hover{color:var(--red);background:#fff4f4;border-color:#ffd7d7}.portal-main{max-width:1240px;margin:auto;padding:34px 24px 26px}.welcome-panel{background:linear-gradient(115deg,#0a2455,#153d86);border-radius:20px;color:#fff;padding:34px 38px;display:flex;align-items:center;justify-content:space-between;gap:28px;position:relative;overflow:hidden;box-shadow:0 18px 38px rgba(11,37,89,.16)}.welcome-panel:after{content:"";position:absolute;width:320px;height:320px;border:70px solid rgba(255,255,255,.045);border-radius:50%;right:-90px;top:-170px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.5px;color:#a9c6ff}.welcome-panel h1{font-size:29px;letter-spacing:-.5px;margin:8px 0 8px}.welcome-panel p{margin:0;color:#cedbfa;line-height:1.6}.patient-id-card{position:relative;z-index:1;display:flex;align-items:center;gap:24px;padding:16px 20px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.15);border-radius:14px;min-width:330px}.patient-id-card div{display:flex;flex-direction:column;gap:5px}.patient-id-card small{color:#b9c9e9;font-size:10px;text-transform:uppercase;letter-spacing:.8px}.patient-id-card strong{font-size:13px}.pulse{width:9px;height:9px;border-radius:50%;background:#45e6a8;box-shadow:0 0 0 5px rgba(69,230,168,.15)}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:20px 0}.stat-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:20px;display:flex;align-items:center;gap:15px;box-shadow:0 5px 18px rgba(20,33,61,.035)}.stat-icon{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;flex:0 0 auto}.stat-card.blue .stat-icon{background:#eaf1ff;color:var(--blue)}.stat-card.green .stat-icon{background:#e7f8f2;color:var(--green)}.stat-card.violet .stat-icon{background:#f0ebff;color:var(--violet)}.stat-card.amber .stat-icon{background:#fff3df;color:var(--amber)}.stat-card div{display:flex;min-width:0;flex-direction:column}.stat-card small{text-transform:uppercase;letter-spacing:.7px;color:var(--muted);font-size:9px;font-weight:800}.stat-card strong{font-size:20px;margin:4px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stat-card span:last-child{color:#8791a2;font-size:11px}.records-card{background:#fff;border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow);overflow:hidden;scroll-margin-top:95px}.records-head{padding:22px 24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:20px}.records-head h2{margin:0 0 4px;font-size:18px}.records-head p{margin:0;color:var(--muted);font-size:12px}.records-tools{display:flex;gap:9px}.search-box{height:40px;width:250px;border:1px solid var(--line);background:#fafbfc;border-radius:10px;display:flex;align-items:center;padding:0 12px;color:#94a0b3}.search-box svg{width:17px}.search-box input{border:0;outline:0;background:transparent;width:100%;padding:0 8px;color:var(--ink)}.records-tools select{height:40px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#4d596d;padding:0 32px 0 12px;outline:0}.desktop-records{overflow:auto}table{width:100%;border-collapse:collapse;min-width:950px}th{padding:13px 18px;background:#fafbfc;color:#7b8698;text-align:left;text-transform:uppercase;font-size:9px;letter-spacing:.75px}td{padding:16px 18px;border-top:1px solid #edf0f5;vertical-align:middle}tbody tr{transition:.15s}tbody tr:hover{background:#fbfcff}td:first-child{display:flex;align-items:center;gap:11px}.record-icon{width:37px;height:37px;border-radius:9px;background:#eef3ff;color:var(--blue);display:grid;place-items:center}.record-icon svg{width:18px}.record-title,td:nth-child(2),td:nth-child(3){display:flex;flex-direction:column;gap:4px}.record-title strong,td>strong{font-size:12px}.record-title small,td>small{font-size:10px;color:var(--muted)}.right{text-align:right}.badge{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:20px;font-size:10px;font-weight:700;white-space:nowrap}.badge i{width:5px;height:5px;border-radius:50%;background:currentColor}.badge.success{background:#e8f8f2;color:#087f5b}.badge.warning{background:#fff4df;color:#ad6500}.badge.danger{background:#ffeded;color:#c22f3a}.action-group{display:flex;justify-content:flex-end;gap:7px}.doc-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;border-radius:8px;padding:8px 11px;text-decoration:none;font-size:10px;font-weight:750;border:1px solid}.doc-btn svg{width:13px;height:13px}.doc-btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}.doc-btn.primary:hover{background:#1355d5}.doc-btn.secondary{background:#fff;border-color:#dce2ec;color:#43516a}.doc-btn.secondary:hover{background:#f5f7fa}.mobile-records{display:none}.empty-state,.no-results{text-align:center;padding:62px 20px;color:var(--muted)}.empty-state span{width:58px;height:58px;background:#eef3ff;color:var(--blue);display:grid;place-items:center;border-radius:16px;margin:auto}.empty-state h3{color:var(--ink);margin:15px 0 6px}.empty-state p{margin:0}.no-results{display:none}.portal-footer{display:flex;justify-content:space-between;gap:20px;color:#7c8798;font-size:10px;padding:20px 4px 0}
@media(max-width:960px){.top-nav{display:none}.stat-grid{grid-template-columns:repeat(2,1fr)}.welcome-panel{align-items:flex-start;flex-direction:column}.patient-id-card{min-width:0;width:100%}.profile-copy{display:none}}
@media(max-width:700px){.portal-header{height:66px}.portal-header-inner{padding:0 15px}.brand{min-width:0}.brand-mark{width:37px;height:37px}.brand strong{max-width:155px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.avatar{display:none}.logout{margin-left:0}.portal-main{padding:18px 12px}.welcome-panel{padding:24px 21px;border-radius:16px}.welcome-panel h1{font-size:24px}.welcome-panel p{font-size:12px}.patient-id-card{gap:18px;padding:14px}.stat-grid{gap:10px;margin:12px 0}.stat-card{padding:14px 12px;gap:10px}.stat-icon{width:38px;height:38px}.stat-card strong{font-size:15px}.records-head{padding:18px;align-items:stretch;flex-direction:column}.records-tools{flex-direction:column}.search-box{width:100%}.records-tools select{width:100%}.desktop-records{display:none}.mobile-records{display:block;padding:12px}.mobile-record{border:1px solid var(--line);border-radius:13px;padding:15px;margin-bottom:10px}.mobile-record-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.mobile-record-top>div{display:flex;flex-direction:column;gap:5px}.mobile-record-top small{font-size:9px;color:var(--muted)}.mobile-record-top strong{font-size:13px}.mobile-money{display:grid;grid-template-columns:repeat(3,1fr);margin:15px 0;border-block:1px solid #edf0f5;padding:12px 0}.mobile-money span{display:flex;flex-direction:column;gap:4px;border-right:1px solid #edf0f5;padding-left:12px}.mobile-money span:first-child{padding-left:0}.mobile-money span:last-child{border:0}.mobile-money small{color:var(--muted);font-size:9px}.mobile-money strong{font-size:11px}.mobile-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.doc-btn{padding:10px}.portal-footer{flex-direction:column;text-align:center}.patient-id-card .pulse{display:none}}
