@import"https://fonts.googleapis.com/css2?family=Noto+Sans+Lao:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700&display=swap";:root{font-family:Noto Sans Lao,Plus Jakarta Sans,sans-serif;color:#162925;background:#f4f8f7;font-synthesis:none;--teal:#087c6e;--dark:#12372f;--muted:#71827e;--line:#e4ece9}.demo-role.selected{border-color:#087c6e;box-shadow:0 0 0 3px #087c6e20}.demo-role.selected small{color:#087c6e;font-weight:800}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}.app{display:flex;min-height:100vh}aside{position:fixed;z-index:20;inset:0 auto 0 0;width:254px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:0 15px 16px}.brand{height:78px;display:flex;align-items:center;padding:0 9px;border-bottom:1px solid #edf2f0;margin-bottom:17px}.brand>div{width:41px;height:41px;border-radius:12px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#11a28f,#087265);box-shadow:0 7px 16px #087c6e32}.brand>span{display:flex;flex-direction:column;margin-left:11px}.brand strong{font-family:Plus Jakarta Sans;font-size:18px;color:#123a32}.brand small{font:700 8px Plus Jakarta Sans;letter-spacing:1.25px;color:#86a09a}nav{display:flex;flex-direction:column;gap:4px;overflow-y:auto;overflow-x:hidden;padding-right:3px;scrollbar-width:thin}.nav-label{font-size:10px;font-weight:700;letter-spacing:.8px;color:#9aa9a5;margin:1px 12px 7px}.nav-label.lower{margin-top:20px}nav button{border:0;background:transparent;color:#60736e;height:44px;min-height:44px;border-radius:10px;display:flex;align-items:center;gap:13px;padding:0 13px;font-weight:600;text-align:left}nav button:hover{background:#f2f8f6;color:var(--teal)}nav button.selected{background:#eaf6f3;color:var(--teal);font-weight:700;box-shadow:inset 3px 0 var(--teal)}nav button b{margin-left:auto;background:#d9efea;color:#087769;font-size:11px;padding:2px 7px;border-radius:12px}.compact-nav{gap:2px}.compact-nav button{height:40px;min-height:40px}.clinic-card{margin-top:auto;background:#f2f8f6;border:1px solid #e0eeea;border-radius:11px;padding:11px;display:flex;gap:9px}.clinic-card>span{color:var(--teal)}.clinic-card div{display:flex;flex-direction:column}.clinic-card strong{font-size:11px}.clinic-card small{font-size:9px;color:#748b85;margin-top:3px}.clinic-card i{display:inline-block;width:6px;height:6px;background:#2ebb78;border-radius:50%;margin-right:4px}.sidebar-user{display:flex;align-items:center;padding:15px 5px 0;gap:9px}.avatar{width:36px;height:36px;flex:0 0 36px;border-radius:10px;background:#dceee9;color:#08796b;display:grid;place-items:center;font-weight:800}.sidebar-user>div:nth-child(2){display:flex;flex-direction:column;flex:1}.sidebar-user strong{font-size:11px}.sidebar-user small{font-size:9px;color:#84958f}.logout-btn{width:34px;height:34px;border:0;border-radius:9px;background:transparent;color:#8a9b97;display:grid;place-items:center}.logout-btn:hover{background:#fff0ed;color:#d04e3c}.mobile-close{display:none}main{margin-left:254px;width:calc(100% - 254px);min-height:100vh}header{height:78px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 35px;position:sticky;top:0;z-index:10}.search{width:min(390px,40%);height:39px;border:1px solid #e3eae8;background:#f8faf9;border-radius:9px;display:flex;align-items:center;padding:0 11px;gap:9px;color:#81938e}.search input{border:0;outline:0;background:transparent;width:100%;font-size:11px;color:#263c37}.search kbd{font-size:10px;background:#fff;border:1px solid #dbe4e1;border-radius:5px;padding:2px 6px;white-space:nowrap}.header-actions{margin-left:auto;display:flex;align-items:center;gap:14px}.date-chip{height:38px;padding:0 12px;border:1px solid #e1e9e6;border-radius:9px;background:#fff;display:flex;align-items:center;gap:8px;color:#61736f;font-size:11px;position:relative;cursor:pointer;overflow:hidden}.date-chip:hover{border-color:#9fc5bc;color:var(--teal)}.date-chip input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.notification,.icon-btn,.menu-btn{border:0;background:transparent;color:#71837e;display:grid;place-items:center}.notification{position:relative;width:38px;height:38px;border:1px solid #e1e9e6;border-radius:9px}.notification i{position:absolute;width:7px;height:7px;border-radius:50%;background:#ef6b55;right:8px;top:7px;border:1px solid #fff}.header-profile{display:flex;align-items:center;gap:9px;border:0;border-left:1px solid #e6ecea;padding:0 0 0 14px;background:transparent;text-align:left}.header-profile:hover{color:var(--teal)}.header-profile>div:nth-child(2){display:flex;flex-direction:column}.header-profile strong{font-size:11px}.header-profile small{font-size:9px;color:#8a9a96}.menu-btn{display:none}.content{padding:31px 35px 50px;max-width:1600px;margin:auto}.welcome,.page-title{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:24px}.eyebrow{display:block;color:#0d8a79;font-size:10px;font-weight:800;letter-spacing:1.1px;text-transform:uppercase;margin-bottom:5px}.welcome h1,.page-title h1{font-size:25px;line-height:1.4;margin:0;color:#15372f;letter-spacing:-.5px}.welcome h1 span{font-size:21px}.welcome p,.page-title p{font-size:11px;color:#7c8e89;margin:4px 0 0}.btn{border:0;border-radius:9px;min-height:40px;padding:0 15px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:11px;font-weight:700}.btn.primary{color:#fff;background:linear-gradient(135deg,#0b8c7b,#087064);box-shadow:0 7px 17px #087c6e28}.btn.primary:hover{filter:brightness(1.08);transform:translateY(-1px)}.btn.ghost{background:#fff;color:#546863;border:1px solid #dae5e1}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:18px}.stats.compact{grid-template-columns:repeat(3,1fr)}.stat-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 17px;display:flex;align-items:flex-start;gap:13px;box-shadow:0 2px 6px #1a4b3f08}.stat-icon{width:43px;height:43px;border-radius:11px;display:grid;place-items:center}.stat-icon.teal,.quick-grid .teal{background:#dff3ee;color:#087f70}.stat-icon.blue,.quick-grid .blue{background:#e5effa;color:#3976b7}.stat-icon.orange,.quick-grid .orange{background:#fff0df;color:#dc8133}.stat-icon.violet,.quick-grid .violet{background:#eee9fa;color:#7b5bb7}.stat-copy{display:flex;flex-direction:column}.stat-copy>span{font-size:10px;color:#7a8d88;font-weight:600}.stat-copy strong{font:700 23px Plus Jakarta Sans,Noto Sans Lao;color:#183a33;margin:1px 0}.stat-copy small{font-size:8.5px;color:#8b9a96;display:flex;align-items:center}.stat-copy small.positive{color:#27a071}.dashboard-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:18px;margin-bottom:18px}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 2px 7px #1a4b3f08}.panel-head{padding:17px 19px 13px;display:flex;justify-content:space-between;align-items:flex-start}.panel-head h3{font-size:13px;margin:0;color:#1d3a34}.panel-head p{font-size:9px;color:#8b9a96;margin:3px 0 0}.text-btn{border:0;background:transparent;color:#087f70;font-size:9.5px;font-weight:700;display:flex;align-items:center;gap:3px}.schedule-list{padding:0 19px 13px}.schedule{display:flex;align-items:center;min-height:57px;border-top:1px solid #eef2f1}.time{width:46px;display:flex;flex-direction:column}.time strong{font:700 12px Plus Jakarta Sans}.time span{font-size:8px;color:#92a19d}.line{height:31px;width:3px;border-radius:3px;margin-right:12px}.line.green{background:#2cae87}.line.orange{background:#e79b4d}.line.blue{background:#5a94d3}.line.violet{background:#8869c4}.schedule .avatar{width:32px;height:32px;flex-basis:32px;font-size:11px}.schedule-copy{display:flex;flex-direction:column;margin-left:9px;flex:1}.schedule-copy strong{font-size:10.5px}.schedule-copy span{font-size:8.5px;color:#83938f;margin-top:2px}.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;padding:1px 17px 15px}.quick-grid button{background:#fff;border:1px solid #e5ecea;border-radius:9px;padding:12px 8px;display:flex;flex-direction:column;align-items:center;gap:7px;color:#435c56;font-size:9.5px;font-weight:600}.quick-grid button:hover{border-color:#98ccc1;background:#fbfefd}.quick-grid button span{width:36px;height:36px;border-radius:9px;display:grid;place-items:center}.stock-alert{border-top:1px solid #eef2f1;margin:0 17px;padding:14px 0}.alert-title{display:flex;gap:8px;align-items:center;margin-bottom:8px}.alert-title>span{width:31px;height:31px;border-radius:8px;background:#fff0df;color:#df8332;display:grid;place-items:center}.alert-title div{display:flex;flex-direction:column}.alert-title strong{font-size:10px}.alert-title small{font-size:8px;color:#8d9b98}.stock-row{display:flex;justify-content:space-between;align-items:center;padding:7px 8px;background:#fafcfb;border-radius:7px;margin-top:5px}.stock-row div{display:flex;flex-direction:column}.stock-row strong{font:600 9px Plus Jakarta Sans}.stock-row small{font-size:7.5px;color:#8a9b96}.stock-row>span,.low-stock{font-size:8px;color:#d46f31;background:#fff0df;padding:3px 7px;border-radius:10px}.good-stock{font-size:8px;color:#168862;background:#e3f5ee;padding:3px 7px;border-radius:10px}.recent{overflow:hidden}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:800px}th{text-align:left;background:#f8faf9;color:#8a9995;font-size:8.5px;letter-spacing:.2px;padding:10px 18px;font-weight:700}td{border-top:1px solid #edf2f0;padding:11px 18px;font-size:9.5px;color:#536a64}tbody tr:hover{background:#fbfdfc}.patient-id{font:600 9px Plus Jakarta Sans;color:#087d70}.person{display:flex;align-items:center;gap:8px}.person>span{width:28px;height:28px;border-radius:8px;background:#e3f1ee;color:#08786b;display:grid;place-items:center;font-weight:800}.person div{display:flex;flex-direction:column}.person strong{color:#243f39;font-size:9.5px}.person small{color:#95a39f;font-size:7.5px;margin-top:2px}.status{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:12px;font-size:8px;font-weight:600}.status i{width:5px;height:5px;border-radius:50%;background:currentColor}.status.done{background:#e5f4ed;color:#228762}.status.active{background:#e5f0fa;color:#397cba}.status.waiting{background:#fff0df;color:#d77d2e}.page-title{align-items:flex-end}.content-panel{overflow:hidden}.toolbar{padding:15px 18px;display:flex;justify-content:space-between;gap:12px}.search.large{width:420px;max-width:100%}.medicine{display:flex;align-items:center;gap:9px}.medicine span{width:30px;height:30px;border-radius:8px;background:#e3f3ef;color:#087d70;display:grid;place-items:center}.medicine strong{font:600 10px Plus Jakarta Sans}.record-details{max-width:340px;white-space:pre-line;line-height:1.6}.table-empty{min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:#879893}.table-empty svg{color:#0b8c7b}.empty-page{min-height:65vh;border:1px dashed #cbdcd7;border-radius:16px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;background:#fff}.empty-page>span{width:64px;height:64px;border-radius:18px;background:#e5f4f0;color:#087d70;display:grid;place-items:center}.empty-page h1{font-size:23px;margin:17px 0 4px}.empty-page p{font-size:11px;color:#7a8d88;margin:0 0 18px}.modal-backdrop{position:fixed;z-index:50;top:0;right:0;bottom:0;left:0;background:#0d2d2673;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:grid;place-items:center;padding:20px}.modal{width:min(850px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:16px;box-shadow:0 24px 80px #05201955}.modal-head{padding:21px 23px 17px;display:flex;justify-content:space-between;border-bottom:1px solid var(--line)}.modal-head small{font-size:8px;color:#0b8c7b;font-weight:800;letter-spacing:1.2px}.modal-head h2{font-size:18px;margin:3px 0 0}.form-grid{padding:21px 23px 23px;display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid label{display:flex;flex-direction:column;gap:6px;font-size:10px;font-weight:700;color:#536963}.form-grid .wide{grid-column:1/-1}.form-grid input,.form-grid select,.form-grid textarea{border:1px solid #dce6e3;border-radius:9px;padding:10px 11px;outline:0;font-size:11px;color:#203d36;background:#fff}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus{border-color:#4da99c;box-shadow:0 0 0 3px #0b8c7b13}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:4px}.invoice-form{padding:20px 23px 23px}.invoice-form .form-grid{padding:0}.invoice-items-head{display:flex;align-items:center;justify-content:space-between;margin:18px 0 10px;font-size:11px}.invoice-items{display:flex;flex-direction:column;gap:8px}.invoice-item{display:grid;grid-template-columns:minmax(180px,2fr) 80px 130px 110px 32px;gap:8px;align-items:end;padding:10px;background:#f7faf9;border:1px solid #e4ece9;border-radius:10px}.invoice-item label,.invoice-bottom label,.invoice-status label{display:flex;flex-direction:column;gap:5px;font-size:9px;font-weight:700;color:#60736e}.invoice-item input,.invoice-bottom input,.invoice-bottom textarea,.invoice-status select{width:100%;border:1px solid #dce6e3;border-radius:8px;padding:8px;outline:0;background:#fff;font-size:10px}.invoice-item>strong{font-size:10px;padding-bottom:9px;text-align:right}.icon-btn.danger{color:#d45c4b;padding-bottom:7px}.invoice-bottom{display:grid;grid-template-columns:1fr 310px;gap:22px;margin-top:18px}.invoice-bottom textarea{resize:vertical}.invoice-totals{background:#f4f8f7;border-radius:10px;padding:10px 13px}.invoice-totals>div,.invoice-totals>label{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:7px 0;font-size:10px}.invoice-totals input{width:120px;text-align:right}.invoice-totals .grand-total{border-top:1px solid #d4e2de;margin-top:5px;padding-top:12px;color:#087c6e}.grand-total strong{font-size:16px}.invoice-status{width:220px;margin:14px 0}.invoice-form>.form-actions{justify-content:flex-end}.print-btn{width:32px;height:32px;border-radius:8px;background:#e5f4f0;color:#087c6e}.sidebar-overlay{display:none}.staff-form{padding:20px 23px 23px}.staff-section{border:1px solid #e1eae7;border-radius:12px;margin-bottom:15px;overflow:hidden}.section-title{display:flex;align-items:center;gap:10px;padding:13px 15px;background:#f3f8f6;color:#087c6e}.section-title div{display:flex;flex-direction:column}.section-title strong{font-size:11px;color:#28423c}.section-title small{font-size:8px;color:#80928d}.staff-grid{padding:15px;display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.staff-grid label{display:flex;flex-direction:column;gap:5px;font-size:9px;font-weight:700;color:#5b706a}.staff-grid input,.staff-grid select,.staff-grid textarea,.filter-select{border:1px solid #dce6e3;border-radius:8px;padding:9px;outline:0;background:#fff;font-size:10px;color:#263e38}.staff-grid input:focus,.staff-grid select:focus,.staff-grid textarea:focus{border-color:#49a496;box-shadow:0 0 0 3px #0b8c7b12}.staff-grid .span-2,.photo-field{grid-column:span 2}.photo-upload{height:70px;border:1px dashed #9bbdb5;border-radius:9px;display:flex;align-items:center;justify-content:center;gap:9px;position:relative;color:#708681;background:#f9fcfb;overflow:hidden}.photo-upload input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.photo-upload img{width:52px;height:52px;border-radius:9px;object-fit:cover}.photo-upload span{font-size:9px}.staff-actions{padding-top:5px}.staff-avatar{width:28px;height:28px;border-radius:8px;object-fit:cover}.role-badge{display:inline-flex;padding:4px 8px;border-radius:12px;background:#e8f3fa;color:#3977a9;font:600 8px Plus Jakarta Sans}.filter-select{min-width:170px}.status.cancelled{background:#fde9e6;color:#c85b4c}.finance-note{display:flex;align-items:center;gap:11px;padding:13px 15px;margin:-2px 0 17px;background:#eaf6f3;border:1px solid #cee9e2;border-radius:11px;color:#087c6e}.finance-note div{display:flex;flex-direction:column}.finance-note strong{font-size:10px;color:#31534b}.finance-note span{font-size:8.5px;color:#748d87}.money-type{display:inline-flex;padding:4px 8px;border-radius:12px;font-size:8px;font-weight:700}.money-type.income{background:#e2f4ed;color:#16835f}.money-type.expense{background:#fdebe6;color:#c75b48}.money-in{color:#16835f}.money-out{color:#c75b48}.triage-divider{display:flex;align-items:center;gap:8px;color:#087c6e;border-top:1px solid #e3ebe8;padding-top:14px;margin-top:3px}.workflow-map{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-bottom:17px}.workflow-map-step{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #e1ebe8;border-radius:10px;padding:11px;min-width:0}.workflow-map-step>span{width:31px;height:31px;flex:0 0 31px;display:grid;place-items:center;border-radius:8px;background:#e4f3ef;color:#087c6e}.workflow-map-step>div{display:flex;flex-direction:column;min-width:0}.workflow-map-step small{font-size:9px;color:#899a95}.workflow-map-step strong{font-size:11px;white-space:nowrap}.workflow-map-step>svg{margin-left:auto;color:#a1b1ad;flex:0 0 auto}.queue-count{font-size:11px;color:#71857f}.episode-list{padding:0 18px 18px;display:flex;flex-direction:column;gap:10px}.episode-card{display:grid;grid-template-columns:1.3fr 1fr auto;gap:18px;align-items:center;border:1px solid #e3ebe9;border-radius:11px;padding:14px}.episode-main{display:flex;align-items:center;gap:10px}.episode-icon{width:40px;height:40px;border-radius:10px;background:#e4f3ef;color:#087c6e;display:grid;place-items:center}.episode-person{display:flex;flex-direction:column}.episode-person strong{font-size:13px}.episode-person small{font-size:10px;color:#84958f}.episode-person p{font-size:11px;margin:4px 0 0;color:#506762}.vitals{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}.vitals span{display:flex;justify-content:space-between;background:#f5f8f7;border-radius:7px;padding:6px 8px;font-size:9px;color:#748680}.vitals b{color:#2e4942}.episode-action{display:flex;align-items:center;gap:9px}.episode-patient{display:flex;align-items:center;gap:10px;background:#f3f8f6;border-radius:10px;padding:12px}.episode-patient>div:nth-child(2){display:flex;flex-direction:column}.episode-patient small{color:#82948f}.workflow-transition{display:flex;justify-content:space-between;align-items:center;background:#eaf6f3;color:#087c6e;padding:12px;border-radius:9px}.workflow-transition span{font-size:11px}.nav-group{display:flex;flex-direction:column;gap:4px;margin-bottom:15px}.nav-group .nav-label{display:block;margin-top:4px}.operational-flow{background:#fff;border:1px solid #dfe9e6;border-radius:13px;padding:17px;margin-bottom:18px}.flow-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:13px}.flow-head h3{font-size:15px;margin:0;color:#1b3b34}.service-lanes{display:grid;grid-template-columns:repeat(5,1fr);gap:20px}.lane-wrap{position:relative;display:flex;align-items:center}.service-lane{width:100%;min-height:100px;display:flex;align-items:center;gap:10px;text-align:left;border:1px solid #dfe9e6;border-radius:11px;background:#f9fcfb;padding:13px;position:relative}.service-lane:hover{transform:translateY(-2px);box-shadow:0 8px 20px #173e3312}.lane-icon{width:40px;height:40px;flex:0 0 40px;border-radius:10px;display:grid;place-items:center}.service-lane>div{display:flex;flex-direction:column}.service-lane small{font-size:9px;color:#8b9b97}.service-lane strong{font-size:13px;color:#263f39}.service-lane p{font-size:9px;color:#778a85;margin:2px 0 0}.service-lane>b{position:absolute;right:9px;top:8px;min-width:22px;height:22px;border-radius:12px;display:grid;place-items:center;font-size:10px}.service-lane.reception .lane-icon,.service-lane.reception>b{background:#e4efff;color:#3d73bc}.service-lane.doctor .lane-icon,.service-lane.doctor>b{background:#eee8fb;color:#7958b5}.service-lane.lab .lane-icon,.service-lane.lab>b{background:#e3f4e9;color:#32855b}.service-lane.pharmacy .lane-icon,.service-lane.pharmacy>b{background:#fff0e3;color:#d57535}.service-lane.cashier .lane-icon,.service-lane.cashier>b{background:#fff4d9;color:#aa7817}.lane-arrow{position:absolute;right:-19px;color:#9eafaa}.report-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:17px}.report-panel:last-child{grid-column:1/-1}.finance-bars{padding:2px 19px 19px}.finance-bars>div{display:grid;grid-template-columns:100px 1fr;gap:5px;padding:8px 0}.finance-bars span{font-size:11px}.finance-bars strong{text-align:right;font-size:12px}.finance-bars i{grid-column:1/-1;height:7px;border-radius:5px;background:#25a176;display:block}.finance-bars .expense i{background:#e06c58}.finance-bars .net{border-top:1px solid #e1e9e7;margin-top:5px}.workflow-summary,.report-stock{padding:0 19px 17px}.workflow-summary>div,.report-stock>div{display:flex;align-items:center;justify-content:space-between;padding:9px 0;border-top:1px solid #edf2f0;font-size:11px}.workflow-summary span{display:flex;align-items:center;gap:8px}.workflow-summary svg{color:#087c6e}.report-ok{justify-content:center!important;gap:8px;color:#16835f}@media(max-width:1200px){.workflow-map{grid-template-columns:repeat(3,1fr)}.episode-card{grid-template-columns:1fr}.episode-action{justify-content:flex-end}.service-lanes{grid-template-columns:repeat(3,1fr)}.lane-arrow{display:none}}@media(max-width:1050px){.stats{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.quick-grid{grid-template-columns:repeat(4,1fr)}.staff-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){aside{transform:translate(-105%);transition:.25s;box-shadow:10px 0 40px #08241d2b}aside.open{transform:none}.mobile-close{display:grid;margin-left:auto;border:0;background:transparent;color:#758782}.sidebar-overlay{display:block;position:fixed;z-index:15;top:0;right:0;bottom:0;left:0;background:#102d2770}main{margin:0;width:100%}header{padding:0 16px;height:66px}.menu-btn{display:grid;margin-right:9px}.search{flex:1;width:auto}.search kbd,.date-chip,.header-profile>div:nth-child(2),.header-profile>svg{display:none}.header-profile{padding-left:0;border:0}.content{padding:24px 16px 40px}.welcome,.page-title{align-items:flex-start;gap:14px}.welcome h1,.page-title h1{font-size:21px}.welcome .btn,.page-title .btn{white-space:nowrap}.quick-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:520px){.stats,.stats.compact{grid-template-columns:1fr}.welcome,.page-title{flex-direction:column}.dashboard-grid{display:block}.quick{margin-top:16px}.form-grid{grid-template-columns:1fr}.form-grid label{grid-column:1/-1}.header-actions{gap:7px}.notification{display:none}.content{padding-left:12px;padding-right:12px}}@media(max-width:760px){.invoice-item{grid-template-columns:1fr 70px}.invoice-item label:first-child{grid-column:1/-1}.invoice-item>strong{padding:8px 0;text-align:left}.invoice-bottom{grid-template-columns:1fr}.invoice-status{width:100%}}@media(max-width:620px){.staff-grid{grid-template-columns:1fr}.staff-grid .span-2,.photo-field{grid-column:1}.toolbar{flex-direction:column}.filter-select{width:100%}}@media(max-width:620px){.workflow-map{grid-template-columns:1fr}.workflow-map-step>svg{transform:rotate(90deg)}.episode-action{align-items:stretch;flex-direction:column}.episode-action .btn{width:100%}.vitals{grid-template-columns:1fr 1fr}}@media(max-width:700px){.service-lanes,.report-grid{grid-template-columns:1fr}.report-panel:last-child{grid-column:1}.flow-head{gap:10px}.service-lane{min-height:82px}}body{font-size:14px}.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top,#dff4ef 0,#f4f8f7 48%,#eaf2f0)}.login-card{width:min(440px,100%);padding:38px;background:#fff;border:1px solid #dce9e5;border-radius:20px;box-shadow:0 20px 55px #12372f1c}.login-brand{text-align:center}.login-brand>span{width:68px;height:68px;margin:auto;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#11a28f,#087265);border-radius:18px;box-shadow:0 10px 24px #087c6e35}.login-brand h1{margin:14px 0 1px;color:#123a32;font:800 26px Plus Jakarta Sans,Noto Sans Lao}.login-brand p{margin:0;color:#78928c;font:700 9px Plus Jakarta Sans;letter-spacing:1.7px}.login-heading{margin:29px 0 20px;text-align:center}.login-heading h2{margin:0;color:#183a33;font-size:21px}.login-heading p{margin:6px 0 0;color:#7b8e89;font-size:12px}.login-card form{display:flex;flex-direction:column;gap:15px}.login-card label{display:flex;flex-direction:column;gap:7px;color:#405952;font-size:12px;font-weight:700}.login-card input{height:45px;padding:0 13px;border:1px solid #dbe6e3;border-radius:10px;outline:none;background:#f9fbfa;color:#183a33;font-size:13px}.login-card input:focus{border-color:#149281;box-shadow:0 0 0 3px #14928114;background:#fff}.login-error{display:flex;align-items:center;gap:7px;padding:10px 12px;border-radius:9px;background:#fff0ed;color:#bd4939;font-size:12px}.login-submit{width:100%;height:45px;margin-top:2px;font-size:14px}.default-login{display:flex;flex-direction:column;gap:4px;margin-top:1px;padding:12px 14px;border:1px dashed #bfd8d2;border-radius:10px;background:#f1f8f6;color:#607a74;font-size:11px}.default-login strong{color:#087c6e;margin-bottom:2px}.default-login b{color:#29463f;-webkit-user-select:all;user-select:all}.demo-login-card{width:min(560px,100%)}.demo-role-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.demo-role{min-height:91px;border:1px solid #dce7e4;border-radius:12px;background:#f9fbfa;color:#526a64;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.demo-role strong{font-size:11px}.demo-role small{font-size:8px;color:#889a95}.demo-role:hover{transform:translateY(-2px);border-color:#77b7a9;box-shadow:0 7px 17px #0b756519}.demo-role.admin{color:#7a5aaf;background:#f7f3ff}.demo-role.nurse{color:#087c6e;background:#eff9f6}.demo-role.finance{color:#b07523;background:#fff8e9}.demo-role.doctor{color:#3976b7;background:#f0f6fd}.demo-role:disabled{opacity:.55;pointer-events:none}.login-divider{display:flex;align-items:center;gap:10px;margin:20px 0 15px;color:#91a09c;font-size:10px}.login-divider:before,.login-divider:after{content:"";height:1px;background:#e1e9e7;flex:1}@media(max-width:520px){.demo-role-grid{grid-template-columns:repeat(2,1fr)}}.auth-loader{display:flex;flex-direction:column;align-items:center;gap:12px;color:#087c6e}.auth-loader svg{animation:pulse 1.2s ease-in-out infinite}@keyframes pulse{50%{opacity:.4;transform:scale(.92)}}.permission-panel{margin-bottom:18px;overflow:hidden}.permission-table{border-top:1px solid #e7eeec}.permission-row{display:grid;grid-template-columns:minmax(230px,1fr) repeat(3,110px);align-items:center;min-height:48px;padding:0 19px;border-bottom:1px solid #edf2f0}.permission-row:last-child{border-bottom:0}.permission-row>span{display:flex;align-items:center;gap:10px;color:#405a53;font-size:12px;font-weight:600}.permission-row>span svg{color:#718d85}.permission-row>strong{text-align:center;color:#3c5750;font-size:11px}.permission-row>strong:first-child{text-align:left}.permission-head{min-height:42px;background:#f7faf9}.permission-row label{display:grid;place-items:center}.permission-row input{position:absolute;opacity:0;pointer-events:none}.permission-row label i{width:20px;height:20px;border:2px solid #b9cbc6;border-radius:6px;background:#fff;position:relative;cursor:pointer}.permission-row input:checked+i{border-color:#0b8a79;background:#0b8a79}.permission-row input:checked+i:after{content:"✓";position:absolute;top:-2px;right:0;bottom:0;left:0;display:grid;place-items:center;color:#fff;font-size:14px;font-weight:800}@media(max-width:650px){.permission-table{overflow-x:auto}.permission-row{min-width:580px}}.price-panel{margin-top:18px;overflow:hidden}.price-panel .panel-head>svg{color:var(--teal)}.price-add,.price-row{display:grid;grid-template-columns:180px minmax(200px,1fr) 180px 110px;gap:10px;align-items:center;padding:12px 19px}.price-add{background:#f6faf8;border-top:1px solid #e5edeb;border-bottom:1px solid #e5edeb}.price-row{border-bottom:1px solid #edf2f0}.price-row:last-child{border-bottom:0}.price-add input,.price-add select,.price-row input,.price-row select{height:39px;padding:0 10px;border:1px solid #dce6e3;border-radius:8px;background:#fff;outline:none}.price-row input[type=number],.price-add input[type=number]{text-align:right}.price-row .btn{min-height:38px}@media(max-width:800px){.price-add,.price-row{grid-template-columns:1fr 1fr}.price-add .btn,.price-row .btn{width:100%}}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}.settings-panel{padding-bottom:20px}.settings-panel .panel-head>svg{color:var(--teal)}.settings-form{padding:0 19px;display:grid;gap:14px}.settings-form label{display:flex;flex-direction:column;gap:6px;color:#506660;font-size:11px;font-weight:700}.settings-form input,.settings-form select{height:41px;padding:0 11px;border:1px solid #dce6e3;border-radius:9px;background:#f9fbfa;outline:none;color:#233e37}.settings-form input:focus,.settings-form select:focus{border-color:#159280;box-shadow:0 0 0 3px #15928013;background:#fff}.settings-form .btn{justify-self:start}.settings-message{margin:-9px 0 18px;padding:11px 14px;border:1px solid #bfe2d7;border-radius:9px;background:#eaf7f3;color:#17785f;font-size:12px}.settings-message.error{border-color:#f0c8c1;background:#fff0ed;color:#b94b3a}.users-panel{overflow:hidden}.role-badge{display:inline-flex;padding:4px 9px;border-radius:12px;background:#e6f3f0;color:#087c6e;font-size:10px;font-weight:700}@media(max-width:850px){.settings-grid{grid-template-columns:1fr}}.backup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.backup-card{padding:24px;display:flex;flex-direction:column;align-items:flex-start;gap:16px}.backup-icon{width:54px;height:54px;border-radius:14px;background:#e4f4f0;color:#087c6e;display:grid;place-items:center}.backup-card.restore .backup-icon{background:#fff0e8;color:#c76b35}.backup-card h3{margin:0 0 6px;font-size:17px;color:#1d3a34}.backup-card p{margin:0;color:#70837e;font-size:11px;line-height:1.7}.backup-card .btn{margin-top:auto}.btn.danger{background:#c95443;color:#fff;border-color:#c95443}.btn:disabled{opacity:.55;cursor:not-allowed}.sql-file{width:100%;min-height:54px;border:1px dashed #9fbab3;border-radius:10px;background:#f7fbfa;color:#47655d;display:flex;align-items:center;gap:10px;padding:12px;cursor:pointer;font-size:11px}.sql-file input{display:none}.restore-warning{margin-top:18px;padding:15px 17px;border:1px solid #efc9b8;border-radius:11px;background:#fff7f2;color:#a65331;display:flex;gap:12px}.restore-warning p{margin:3px 0 0;font-size:11px;line-height:1.6}@media(max-width:760px){.backup-grid{grid-template-columns:1fr}}.reset-panel{padding:26px;max-width:760px;display:grid;grid-template-columns:64px 1fr;gap:18px}.reset-danger-icon{width:60px;height:60px;border-radius:16px;background:#ffebe7;color:#c54f3e;display:grid;place-items:center}.reset-copy h2{margin:2px 0 7px;color:#263f39;font-size:19px}.reset-copy>p,.reset-copy li{font-size:11px;color:#6e817c;line-height:1.7}.reset-copy ul{padding-left:18px;margin:9px 0 15px}.reset-kept{display:flex;gap:8px;align-items:flex-start;padding:11px;border-radius:9px;background:#eaf7f3;color:#17785f;font-size:11px;line-height:1.5}.reset-kept svg{flex:0 0 auto}.reset-confirm{grid-column:2;display:flex;flex-direction:column;gap:7px;font-size:11px;color:#526862}.reset-confirm input{height:43px;max-width:300px;padding:0 12px;border:1px solid #e0aaa2;border-radius:9px;outline:none;font-weight:800;letter-spacing:1px}.reset-confirm input:focus{border-color:#c95443;box-shadow:0 0 0 3px #c9544315}.reset-button{grid-column:2;justify-self:start}@media(max-width:620px){.reset-panel{grid-template-columns:1fr}.reset-confirm,.reset-button{grid-column:1}}nav button{font-size:13px}.row-actions{display:flex;align-items:center;gap:4px}.row-actions .icon-btn{width:32px;height:32px;border-radius:8px;color:#517069}.row-actions .icon-btn:hover{background:#e8f4f1;color:#087c6e}.row-actions .icon-btn.danger{color:#c85b4c}.row-actions .icon-btn.danger:hover{background:#fdebe7}.patient-details{padding:22px 23px 25px;display:grid;grid-template-columns:repeat(2,1fr);gap:13px}.patient-details>div{display:flex;flex-direction:column;gap:5px;background:#f5f9f8;border:1px solid #e3ece9;border-radius:10px;padding:13px}.patient-details .wide{grid-column:1/-1}.patient-details span{font-size:11px;color:#71857f}.patient-details strong{font-size:14px;color:#27433c}.notification-wrap{position:relative}.notification.has-alert{color:#087c6e;background:#e9f6f3;border-color:#9ed4ca}.notification>b{position:absolute;right:-7px;top:-7px;min-width:20px;height:20px;padding:0 5px;border-radius:12px;display:grid;place-items:center;background:#e75f4c;color:#fff;border:2px solid #fff;font-size:10px}.notification-panel{position:absolute;right:0;top:48px;width:370px;max-height:480px;background:#fff;border:1px solid #dce8e4;border-radius:13px;box-shadow:0 18px 50px #123c3228;overflow:hidden;z-index:30}.notification-head{display:flex;align-items:center;justify-content:space-between;padding:16px 17px;background:#f1f8f6;border-bottom:1px solid #e1ebe8;color:#087c6e}.notification-head>div{display:flex;flex-direction:column}.notification-head strong{font-size:14px;color:#24433b}.notification-head span{font-size:10px;color:#718781;margin-top:3px}.notification-list{max-height:320px;overflow-y:auto}.notification-list>button{width:100%;display:flex;align-items:center;gap:10px;border:0;border-bottom:1px solid #edf2f0;background:#fff;padding:12px 15px;text-align:left}.notification-list>button:hover{background:#f7fbfa}.notification-list>button>div{display:flex;flex-direction:column;flex:1;min-width:0}.notification-list strong{font-size:12px;color:#29453e}.notification-list small{font-size:10px;color:#7b8e89;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.notification-avatar{width:34px;height:34px;flex:0 0 34px;border-radius:9px;background:#dff2ed;color:#087c6e;display:grid;place-items:center;font-weight:800}.notification-empty{padding:34px 15px;display:flex;flex-direction:column;align-items:center;gap:8px;color:#70847e;font-size:11px}.notification-empty svg{color:#27a071}.notification-all{width:100%;min-height:43px;border:0;background:#fff;color:#087c6e;display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px;font-weight:700}.notification-all:hover{background:#f2f9f7}@media(max-width:520px){.notification{display:grid}.notification-panel{position:fixed;left:12px;right:12px;top:70px;width:auto}}.department-queue{margin-bottom:18px;border-color:#a9d8cf}.department-queue .panel-head{background:#eff8f6;border-bottom:1px solid #dcebe7}.queue-badge{min-width:28px;height:28px;border-radius:15px;background:#087c6e;color:#fff;display:grid;place-items:center;font-size:12px;font-weight:800}.department-queue-list{padding:0 17px}.department-queue-list>div{min-height:68px;display:grid;grid-template-columns:minmax(250px,1fr) auto auto;align-items:center;gap:14px;border-top:1px solid #e7efed}.department-queue-list>div:first-child{border-top:0}.department-queue-list .person small{max-width:520px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@media(max-width:700px){.department-queue-list>div{grid-template-columns:1fr auto;padding:12px 0}.department-queue-list>div>.btn{grid-column:1/-1}}.queue-destination{font-size:10px;font-weight:700;color:#667d77;background:#eef3f2;padding:7px 10px;border-radius:8px;white-space:nowrap}.nav-label{font-size:11px}.brand small{font-size:9px}.clinic-card strong,.sidebar-user strong{font-size:12px}.clinic-card small,.sidebar-user small{font-size:10px}.header-profile{cursor:pointer;position:relative;z-index:31;pointer-events:auto}.page-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.workflow-tabs{display:flex;gap:8px;margin-bottom:16px}.workflow-tabs button{border:1px solid #dce7e4;background:#fff;color:#667b75;border-radius:9px;padding:10px 14px;display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700}.workflow-tabs button.active{background:#087c6e;color:#fff;border-color:#087c6e}.workflow-tabs b{min-width:19px;height:19px;border-radius:10px;background:#ffffff2b;display:grid;place-items:center}.treatment-history{display:grid;grid-template-columns:300px minmax(0,1fr);gap:17px;align-items:start}.history-patients{overflow:hidden}.history-search{margin:13px;display:flex;align-items:center;gap:8px;border:1px solid #dfe8e5;border-radius:9px;padding:0 10px;height:40px;color:#82938f}.history-search input{border:0;outline:0;width:100%;background:transparent}.history-patients>button{width:100%;border:0;border-top:1px solid #edf2f0;background:#fff;padding:12px 13px;display:flex;align-items:center;gap:9px;text-align:left}.history-patients>button.active{background:#eaf7f3}.history-patients>button>div{display:flex;flex-direction:column;flex:1}.history-patients strong{font-size:11px}.history-patients small{font-size:9px;color:#7c8e89;margin-top:3px}.history-patients>button>svg{color:#91a29d}.history-detail{min-height:420px;overflow:hidden}.history-patient-head{display:flex;align-items:center;gap:12px;padding:18px 20px;background:#f1f8f6;border-bottom:1px solid #dfeae7}.history-patient-head .avatar{width:46px;height:46px}.history-patient-head>div:nth-child(2){flex:1}.history-patient-head h2{font-size:17px;margin:0}.history-patient-head p{font-size:10px;color:#768984;margin:3px 0 0}.history-patient-head>span{font-size:10px;font-weight:700;color:#087c6e;background:#dff1ec;padding:6px 10px;border-radius:14px}.visit-timeline{padding:20px}.visit-history-card{position:relative;display:grid;grid-template-columns:35px 1fr;gap:11px;padding-bottom:18px}.visit-history-card:not(:last-child):before{content:"";position:absolute;left:17px;top:34px;bottom:0;width:2px;background:#dce9e5}.visit-marker{width:35px;height:35px;border-radius:10px;background:#dff2ed;color:#087c6e;display:grid;place-items:center;z-index:1}.visit-history-card.standalone .visit-marker{background:#e8eff8;color:#527eaf}.visit-body{border:1px solid #e1eae7;border-radius:10px;padding:14px}.visit-body header{display:flex;justify-content:space-between;gap:10px}.visit-body header>div{display:flex;flex-direction:column}.visit-body header strong{font-size:12px}.visit-body header small{font-size:9px;color:#82938e;margin-top:3px}.visit-body h4{font-size:12px;color:#2c4942;margin:12px 0 7px}.clinical-summary{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px}.clinical-summary p{margin:0;font-size:10px;line-height:1.55;color:#60746e;white-space:pre-line}.linked-records{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.linked-records span{display:flex;align-items:center;gap:4px;background:#f0f6f4;color:#547068;border-radius:6px;padding:5px 7px;font-size:9px}@media(max-width:900px){.treatment-history{grid-template-columns:1fr}.history-patients{max-height:280px;overflow-y:auto}}@media(max-width:600px){.clinical-summary{grid-template-columns:1fr}.workflow-tabs{overflow-x:auto}.workflow-tabs button{white-space:nowrap}}.medicine-price-panel{margin-top:18px;overflow:hidden}.medicine-price-panel .panel-head>svg{color:var(--teal)}.medicine-price-row{display:grid;grid-template-columns:minmax(220px,1fr) 180px 180px 110px;gap:12px;align-items:end;padding:12px 19px;border-top:1px solid #edf2f0}.medicine-price-row>div{display:flex;flex-direction:column}.medicine-price-row strong{font-size:12px;color:#29443d}.medicine-price-row small{font-size:10px;color:#7b8d88;margin-top:4px}.medicine-price-row label{display:flex;flex-direction:column;gap:5px;font-size:9px;font-weight:700;color:#60736e}.medicine-price-row input{height:39px;padding:0 10px;border:1px solid #dce6e3;border-radius:8px;background:#fff;outline:none;text-align:right}@media(max-width:800px){.medicine-price-row{grid-template-columns:1fr 1fr}.medicine-price-row>div{grid-column:1/-1}}.search input,.date-chip{font-size:13px}.header-profile strong{font-size:12px}.header-profile small{font-size:10px}.eyebrow{font-size:11px}.welcome p,.page-title p{font-size:13px;line-height:1.6}.btn{font-size:13px}.panel-head h3{font-size:15px}.panel-head p{font-size:11px}.text-btn{font-size:12px}.stat-copy>span{font-size:12px}.stat-copy small{font-size:10px}.schedule-copy strong{font-size:12px}.schedule-copy span,.time span{font-size:10px}.quick-grid button,.alert-title strong,.stock-row strong{font-size:11px}.alert-title small,.stock-row small{font-size:9px}.stock-row>span,.low-stock,.good-stock{font-size:10px}th{font-size:11px;padding:13px 18px}td{font-size:12px;padding:14px 18px}.patient-id,.person strong{font-size:12px}.person small{font-size:10px}.status{font-size:10px;padding:5px 9px}.medicine strong,.form-grid label,.staff-grid label{font-size:12px}.form-grid input,.form-grid select,.form-grid textarea,.staff-grid input,.staff-grid select,.staff-grid textarea,.filter-select{font-size:13px}.modal-head small{font-size:9px}.modal-head h2{font-size:20px}.section-title strong{font-size:13px}.section-title small,.role-badge,.money-type{font-size:10px}.finance-note strong{font-size:12px}.finance-note span{font-size:10px}.invoice-item label,.invoice-bottom label,.invoice-status label{font-size:11px}.invoice-item input,.invoice-bottom input,.invoice-bottom textarea,.invoice-status select{font-size:12px}.reception-check{display:flex;align-items:center;gap:10px;background:#e8f6f0;color:#16835f;padding:14px;border-radius:10px}.reception-check div{display:flex;flex-direction:column}.reception-check span{font-size:11px;color:#668078}.result-upload{height:76px;border:1px dashed #78ac9f;border-radius:9px;display:flex;align-items:center;justify-content:center;gap:9px;position:relative;color:#087c6e;background:#f7fbfa}.result-upload input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.result-upload span{font-size:11px}.tracking-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:17px}.tracking-summary .stat-card{margin:0}.tracking-toolbar{align-items:center}.treatment-state{display:inline-flex;padding:5px 9px;border-radius:13px;font-size:9px;font-weight:800}.treatment-state.treating{background:#fff0df;color:#bd6a25}.treatment-state.recovered{background:#e5f5ed;color:#18825f}.button-count{min-width:20px;height:20px;border-radius:11px;background:#e8f3f0;color:#087c6e;display:grid;place-items:center;font-size:9px}.patient-history-modal{max-height:70vh;overflow-y:auto}.patient-history-modal .history-patient-head{position:sticky;top:0;z-index:2}.clinical-summary.full{grid-template-columns:1fr}.clinical-summary .medicine-history{padding:9px 11px;border-radius:8px;background:#eef7f4;color:#236a59}@media(max-width:720px){.tracking-summary{grid-template-columns:1fr}.tracking-toolbar{flex-direction:column;align-items:stretch}.tracking-toolbar .filter-select{width:100%}}.returning-check{display:flex!important;flex-direction:row!important;align-items:center;gap:11px!important;padding:13px 15px;border:1px solid #b9ddd5;border-radius:10px;background:#eff9f6;cursor:pointer}.returning-check input{width:20px!important;height:20px!important;accent-color:#087c6e}.returning-check>span{display:flex;flex-direction:column;gap:2px}.returning-check strong{font-size:14px;color:#246458}.returning-check small{font-size:12px;color:#6d827c}.returning-patient-picker{border:1px solid #dce9e5;border-radius:10px;padding:13px;background:#fafcfb}.returning-patient-list{max-height:230px;overflow-y:auto;margin-top:10px;border:1px solid #e2ebe8;border-radius:9px}.returning-patient-list>button{width:100%;border:0;border-top:1px solid #edf2f0;background:#fff;display:flex;align-items:center;gap:10px;padding:10px;text-align:left}.returning-patient-list>button:first-child{border-top:0}.returning-patient-list>button.selected{background:#e6f5f1;color:#087c6e}.returning-patient-list>button>div{display:flex;flex-direction:column;flex:1}.returning-patient-list strong{font-size:14px}.returning-patient-list small{font-size:12px;color:#758984}.selected-returning-patient{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:9px;background:#e7f5f1;color:#147762}.selected-returning-patient>div{display:flex;flex-direction:column}.selected-returning-patient span{font-size:12px;margin-top:2px}[data-theme=dark] .header-theme-toggle{background:#182824;border-color:#334943;color:#c9d9d5}[data-theme=dark] .sidebar-user.account-trigger:hover,[data-theme=dark] .sidebar-user.account-trigger.open,[data-theme=dark] .sidebar-account-menu{background:#182824;border-color:#334943;color:#dce9e5}[data-theme=dark] .sidebar-account-menu button{color:#dce9e5}[data-theme=dark] .sidebar-account-menu button:hover{background:#17332d;color:#62c7b4}[data-theme=dark] .sidebar-account-menu .account-logout{border-color:#334943;color:#ef8f82}[data-theme=dark] .sidebar-account-menu .account-logout:hover{background:#3b211e;color:#ffab9f}.header-theme-toggle{position:fixed;z-index:32;right:27px;top:20px;width:38px;height:38px;border:1px solid #e1e9e6;border-radius:9px;background:#fff;color:#61736f;display:grid;place-items:center}.header-theme-toggle:hover{border-color:#86bdb2;color:#087c6e;background:#eef8f5}.header-actions{padding-right:50px}.sidebar-account{margin-top:auto;position:relative}.sidebar-user.account-trigger{width:100%;margin:0;padding:12px 8px;border:1px solid transparent;border-radius:12px;background:transparent;text-align:left;cursor:pointer}.sidebar-user.account-trigger:hover,.sidebar-user.account-trigger.open{background:#eef7f4;border-color:#dcece7}.account-copy{display:flex;flex-direction:column;min-width:0;flex:1}.account-copy strong,.account-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-chevron{flex:0 0 auto;color:#7b8f89;transition:transform .2s}.account-trigger.open .account-chevron{transform:rotate(180deg)}.sidebar-account-menu{position:absolute;left:0;right:0;bottom:calc(100% + 8px);z-index:35;padding:7px;background:#fff;border:1px solid #dfe9e6;border-radius:13px;box-shadow:0 16px 36px #163b3226}.sidebar-account-menu button{width:100%;min-height:54px;border:0;border-radius:9px;background:transparent;color:#344b45;display:flex;align-items:center;gap:11px;padding:8px 10px;text-align:left}.sidebar-account-menu button:hover{background:#eef7f4;color:#087c6e}.sidebar-account-menu button>span{display:flex;flex-direction:column;gap:2px}.sidebar-account-menu strong{font-size:13px}.sidebar-account-menu small{font-size:10px;color:#82958f}.sidebar-account-menu .account-logout{border-top:1px solid #e9efed;border-radius:0 0 9px 9px;color:#c34f42}.sidebar-account-menu .account-logout:hover{background:#fff0ed;color:#b83c30}@media(max-width:760px){.header-theme-toggle{right:12px;top:14px}.header-actions{padding-right:43px}}[data-theme=dark]{color-scheme:dark;background:#0d1715;color:#dce9e5;--dark:#e6f2ef;--muted:#91a7a1;--line:#293b37}[data-theme=dark] body{background:#0d1715;color:#dce9e5}[data-theme=dark] .app,[data-theme=dark] main{background:#0d1715}[data-theme=dark] aside,[data-theme=dark] header,[data-theme=dark] .panel,[data-theme=dark] .stat-card,[data-theme=dark] .modal,[data-theme=dark] .empty-page,[data-theme=dark] .notification-panel,[data-theme=dark] .notification-list>button,[data-theme=dark] .notification-all,[data-theme=dark] .quick-grid button,[data-theme=dark] .history-patients>button,[data-theme=dark] .returning-patient-list>button{background:#14211e;border-color:#293b37;color:#dce9e5}[data-theme=dark] .brand,[data-theme=dark] .modal-head,[data-theme=dark] td,[data-theme=dark] .schedule,[data-theme=dark] .stock-alert,[data-theme=dark] .medicine-price-row,[data-theme=dark] .visit-body{border-color:#293b37}[data-theme=dark] .brand strong,[data-theme=dark] .welcome h1,[data-theme=dark] .page-title h1,[data-theme=dark] .panel-head h3,[data-theme=dark] .stat-copy strong,[data-theme=dark] .person strong,[data-theme=dark] .medicine strong,[data-theme=dark] .visit-body h4,[data-theme=dark] .history-patient-head h2,[data-theme=dark] .reset-copy h2{color:#e5f1ee}[data-theme=dark] .welcome p,[data-theme=dark] .page-title p,[data-theme=dark] .panel-head p,[data-theme=dark] .person small,[data-theme=dark] .stat-copy span,[data-theme=dark] .stat-copy small{color:#91a7a1}[data-theme=dark] .search,[data-theme=dark] .date-chip,[data-theme=dark] .form-grid input,[data-theme=dark] .form-grid select,[data-theme=dark] .form-grid textarea,[data-theme=dark] .settings-form input,[data-theme=dark] .settings-form select,[data-theme=dark] .invoice-item input,[data-theme=dark] .invoice-item select,[data-theme=dark] .invoice-bottom input,[data-theme=dark] .invoice-bottom textarea,[data-theme=dark] .invoice-status select,[data-theme=dark] .medicine-price-row input,[data-theme=dark] .report-filter input,[data-theme=dark] .report-filter select{background:#0f1b18;border-color:#334943;color:#dce9e5}[data-theme=dark] th,[data-theme=dark] .permission-head,[data-theme=dark] .history-patient-head,[data-theme=dark] .notification-head,[data-theme=dark] .invoice-item,[data-theme=dark] .invoice-totals,[data-theme=dark] .stock-row,[data-theme=dark] .returning-patient-picker{background:#182824;color:#c7d8d3}[data-theme=dark] tbody tr:hover,[data-theme=dark] nav button:hover{background:#1a2d28}[data-theme=dark] nav button.selected,[data-theme=dark] .history-patients>button.active,[data-theme=dark] .returning-patient-list>button.selected{background:#17332d;color:#62c7b4}[data-theme=dark] .btn.ghost,[data-theme=dark] .sidebar-theme-toggle,[data-theme=dark] .report-menu button,[data-theme=dark] .workflow-tabs button{background:#182824;border-color:#334943;color:#c9d9d5}[data-theme=dark] .report-menu button.active,[data-theme=dark] .workflow-tabs button.active{background:#087c6e;color:#fff}[data-theme=dark] .clinic-card,[data-theme=dark] .returning-check,[data-theme=dark] .selected-returning-patient,[data-theme=dark] .reset-kept{background:#17302a;border-color:#315249;color:#8bd3c4}[data-theme=dark] .modal-backdrop{background:#030807c7}[data-theme=dark] .search input{color:#dce9e5}[data-theme=dark] .header-profile{color:#dce9e5;border-color:#334943}.report-menu{display:grid;grid-template-columns:repeat(6,1fr);gap:9px;margin-bottom:15px}.report-menu button{min-height:72px;border:1px solid #dce7e4;border-radius:10px;background:#fff;color:#597069;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-weight:700}.report-menu button.active{background:#087c6e;color:#fff;border-color:#087c6e}.report-filter{display:flex;align-items:end;gap:15px;padding:15px 18px;margin-bottom:17px}.report-filter label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:#5d716b}.report-filter select,.report-filter input{height:40px;border:1px solid #dce6e3;border-radius:8px;padding:0 10px;background:#fff}.report-filter>div{display:flex;flex-direction:column;margin-left:auto}.report-filter>div span{font-size:11px;color:#7c8e89}.report-filter>div strong{font-size:14px}.report-table{margin-top:16px}@media(max-width:850px){.report-menu{grid-template-columns:repeat(3,1fr)}.report-filter{flex-wrap:wrap}.report-filter>div{margin-left:0;width:100%}}@media(max-width:520px){.report-menu{grid-template-columns:repeat(2,1fr)}}body,button,input,select,textarea{font-size:14px}.content{line-height:1.55}.welcome h1,.page-title h1{font-size:28px;line-height:1.25}.welcome p,.page-title p{font-size:14px;line-height:1.65}.eyebrow{font-size:12px;letter-spacing:.08em}.panel-head h3{font-size:18px}.panel-head p{font-size:13px;line-height:1.5}.btn{font-size:14px;min-height:42px;padding:0 15px}.text-btn{font-size:13px}.compact-nav button{font-size:14px;min-height:43px}.compact-nav .nav-label,.nav-label{font-size:11px}.brand strong{font-size:19px}.brand small{font-size:10px}.sidebar-user strong,.clinic-card strong{font-size:14px}.sidebar-user small,.clinic-card small{font-size:12px}.header-profile strong{font-size:14px}.header-profile small{font-size:12px}.search input,.filter-select,.date-chip{font-size:13px}table th{font-size:12px;padding:13px 14px}table td{font-size:14px;padding:14px}.person strong,.medicine strong{font-size:14px}.person small,.medicine small,.patient-id,.role-badge,.status,.low-stock,.good-stock,.treatment-state{font-size:12px}.stat-copy>span{font-size:13px}.stat-copy strong{font-size:24px}.stat-copy small{font-size:12px}.form-grid label,.settings-form label,.invoice-item label,.invoice-bottom label,.invoice-status label,.medicine-price-row label{font-size:13px}.form-grid input,.form-grid select,.form-grid textarea,.settings-form input,.settings-form select,.invoice-item input,.invoice-item select,.invoice-bottom input,.invoice-bottom textarea,.invoice-status select,.medicine-price-row input,.table-empty{font-size:14px}.queue-count,.queue-destination{font-size:13px}.episode-person strong{font-size:15px}.episode-person small,.episode-person p,.vitals span{font-size:12px}.history-patients strong{font-size:14px}.history-patients small{font-size:12px}.history-patient-head h2{font-size:20px}.history-patient-head p{font-size:13px}.history-patient-head>span{font-size:12px}.visit-body header strong{font-size:14px}.visit-body header small{font-size:12px}.visit-body h4{font-size:15px}.clinical-summary p{font-size:14px;line-height:1.7}.linked-records span{font-size:12px}.settings-message,.restore-warning p,.backup-card p,.reset-copy>p,.reset-copy li{font-size:14px}.backup-card h3,.reset-copy h2{font-size:20px}.notification-head strong{font-size:16px}.notification-head span,.notification-list small{font-size:12px}.notification-list strong{font-size:14px}@media(max-width:760px){.welcome h1,.page-title h1{font-size:24px}.content{padding-top:20px}table th{font-size:11px}table td{font-size:13px}}.medicine-unit-panel{margin-top:18px;padding:22px}.medicine-unit-add{display:flex;gap:10px;margin:16px 0}.medicine-unit-add input{flex:1}.medicine-unit-list{display:grid;gap:10px}.medicine-unit-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center}.medicine-unit-row input{min-width:0}@media(max-width:640px){.medicine-unit-add{align-items:stretch;flex-direction:column}.medicine-unit-row{grid-template-columns:minmax(0,1fr) auto}.medicine-unit-row .btn{grid-column:1/-1}.medicine-unit-row .icon-btn{grid-column:2;grid-row:1}}.patient-visit-chart{padding:20px 22px;margin-bottom:18px;overflow:hidden}.patient-visit-chart .panel-head{margin-bottom:4px}.chart-total{display:grid;grid-template-columns:auto auto;column-gap:7px;align-items:end;text-align:right}.chart-total span{grid-column:1/-1;color:#7a8d88;font-size:12px}.chart-total strong{font-size:25px;line-height:1;color:#087c6e}.chart-total small{font-size:11px;color:#81928e}.chart-scroll{width:100%;overflow-x:auto}.visit-line-chart{display:block;width:100%;min-width:590px;height:auto;max-height:250px}.chart-grid-line{stroke:#e5eeeb;stroke-width:1;stroke-dasharray:4 5}.chart-y-label,.chart-x-label{fill:#7e918c;font-size:10px}.chart-line{fill:none;stroke:#0b927c;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.chart-point-halo{fill:#d7f0e9}.chart-point{fill:#fff;stroke:#0b927c;stroke-width:3}.chart-value{fill:#176e60;font-size:11px;font-weight:800}[data-theme=dark] .chart-grid-line{stroke:#30443f}[data-theme=dark] .chart-y-label,[data-theme=dark] .chart-x-label{fill:#91a7a1}[data-theme=dark] .chart-point{fill:#14211e}[data-theme=dark] .chart-point-halo{fill:#184239}[data-theme=dark] .chart-value{fill:#76d4c1}@media(max-width:620px){.patient-visit-chart{padding:17px 14px}.patient-visit-chart .panel-head{align-items:flex-start}.chart-total strong{font-size:21px}}.finance-trend-chart{padding:20px 22px;margin-bottom:18px;overflow:hidden}.finance-trend-chart .panel-head{margin-bottom:4px}.finance-chart-totals{display:flex;gap:18px;flex-wrap:wrap;justify-content:flex-end}.finance-chart-totals span{display:grid;grid-template-columns:auto auto;gap:2px 6px;align-items:center;font-size:11px;color:#758984}.finance-chart-totals i{width:9px;height:9px;border-radius:50%;background:#0b927c}.finance-chart-totals .expense i{background:#e16e5d}.finance-chart-totals strong{grid-column:1/-1;font-size:14px;color:#28463f}.finance-line-chart{display:block;width:100%;min-width:590px;height:auto;max-height:250px}.finance-line{fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.finance-line.income{stroke:#0b927c}.finance-line.expense{stroke:#e16e5d}.finance-point{fill:#fff;stroke-width:3}.finance-point.income{stroke:#0b927c}.finance-point.expense{stroke:#e16e5d}[data-theme=dark] .finance-chart-totals strong{color:#dce9e5}[data-theme=dark] .finance-point{fill:#14211e}@media(max-width:720px){.finance-trend-chart{padding:17px 14px}.finance-trend-chart .panel-head{align-items:flex-start;flex-direction:column}.finance-chart-totals{justify-content:flex-start}}.dashboard-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}.dashboard-chart-grid>.panel{margin-bottom:0;padding:16px 17px;min-width:0}.dashboard-chart-grid .panel-head h3{font-size:16px}.dashboard-chart-grid .panel-head p{font-size:11px}.dashboard-chart-grid .chart-scroll{overflow:hidden}.dashboard-chart-grid .visit-line-chart,.dashboard-chart-grid .finance-line-chart{min-width:0;max-height:190px}.dashboard-chart-grid .chart-total strong{font-size:20px}.dashboard-chart-grid .finance-chart-totals{gap:9px}.dashboard-chart-grid .finance-chart-totals strong{font-size:11px}.dashboard-chart-grid .finance-chart-totals span{font-size:9px}@media(max-width:1050px){.dashboard-chart-grid{grid-template-columns:1fr}.dashboard-chart-grid .visit-line-chart,.dashboard-chart-grid .finance-line-chart{max-height:225px}}@media(max-width:620px){.dashboard-chart-grid{gap:12px}.dashboard-chart-grid>.panel{padding:15px 12px}.dashboard-chart-grid .chart-scroll{overflow-x:auto}.dashboard-chart-grid .visit-line-chart,.dashboard-chart-grid .finance-line-chart{min-width:540px}}.sidebar-collapse-toggle{margin-left:auto;width:32px;height:32px;flex:0 0 32px;border:1px solid #dce8e4;border-radius:9px;background:#f5faf8;color:#617a73;display:grid;place-items:center}.sidebar-collapse-toggle:hover{color:#087c6e;border-color:#9fcfc4;background:#eaf6f3}.sidebar-collapse-toggle svg{transform:rotate(180deg);transition:transform .22s}.app aside,.app main{transition:width .22s,margin-left .22s}.app.sidebar-collapsed aside{width:82px;padding-left:10px;padding-right:10px}.app.sidebar-collapsed main{margin-left:82px;width:calc(100% - 82px)}.app.sidebar-collapsed .brand{padding-left:10px;padding-right:10px;justify-content:center}.app.sidebar-collapsed .brand>span{display:none}.app.sidebar-collapsed .brand>div{width:38px;height:38px;flex:0 0 38px}.app.sidebar-collapsed .sidebar-collapse-toggle{position:absolute;left:65px;background:#fff;box-shadow:0 4px 12px #173e3320}.app.sidebar-collapsed .sidebar-collapse-toggle svg{transform:none}.app.sidebar-collapsed .compact-nav button{justify-content:center;padding:0;gap:0;position:relative}.app.sidebar-collapsed .compact-nav button>span{display:none}.app.sidebar-collapsed .compact-nav button>b{position:absolute;right:1px;top:1px;min-width:17px;height:17px;padding:0 4px;display:grid;place-items:center;font-size:8px}.app.sidebar-collapsed .sidebar-user.account-trigger{justify-content:center;padding:9px 0}.app.sidebar-collapsed .account-copy,.app.sidebar-collapsed .account-chevron,.app.sidebar-collapsed .header-theme-toggle{display:none}[data-theme=dark] .sidebar-collapse-toggle{background:#182824;border-color:#334943;color:#c9d9d5}[data-theme=dark] .app.sidebar-collapsed .sidebar-collapse-toggle{background:#182824}@media(max-width:760px){.sidebar-collapse-toggle{display:none}.app.sidebar-collapsed aside{width:254px;padding:0 15px 16px}.app.sidebar-collapsed main{margin:0;width:100%}.app.sidebar-collapsed .brand{padding:0 9px;justify-content:flex-start}.app.sidebar-collapsed .brand>span{display:flex}.app.sidebar-collapsed .brand>div{width:41px;height:41px}.app.sidebar-collapsed .compact-nav button{justify-content:flex-start;padding:0 13px;gap:13px}.app.sidebar-collapsed .compact-nav button>span{display:inline}.app.sidebar-collapsed .compact-nav button>b{position:static;margin-left:auto;min-width:auto;height:auto;padding:2px 7px;font-size:11px;display:inline}.app.sidebar-collapsed .sidebar-user.account-trigger{justify-content:flex-start;padding:12px 8px}.app.sidebar-collapsed .account-copy{display:flex}.app.sidebar-collapsed .account-chevron{display:block}.app.sidebar-collapsed .header-theme-toggle{display:grid}}.theme-picker{position:fixed;z-index:34;right:27px;top:20px}.theme-picker .header-theme-toggle{position:static}.theme-menu{position:absolute;right:0;top:46px;width:180px;padding:7px;background:#fff;border:1px solid #dce7e4;border-radius:12px;box-shadow:0 16px 36px #163b3226}.theme-menu button{width:100%;height:42px;padding:0 9px;border:0;border-radius:8px;background:transparent;color:#405650;display:flex;align-items:center;gap:9px;text-align:left}.theme-menu button:hover,.theme-menu button.active{background:#eef7f4;color:#087c6e}.theme-menu button i{width:22px;height:22px;border:1px solid #d5dfdc;border-radius:7px;flex:0 0 22px}.theme-menu button span{flex:1;font-weight:700;font-size:12px}.app.sidebar-collapsed .theme-picker{display:none}@media(max-width:760px){.theme-picker{right:12px;top:14px}.app.sidebar-collapsed .theme-picker{display:block}}[data-theme=dark-gray]{color-scheme:dark;--dark:#f1f5f9;--muted:#aab2bd;--line:#4b5563;background:#282c34;color:#e5e7eb}[data-theme=dark-gray] body,[data-theme=dark-gray] .app,[data-theme=dark-gray] main{background:#282c34;color:#e5e7eb}[data-theme=dark-gray] aside,[data-theme=dark-gray] header,[data-theme=dark-gray] .panel,[data-theme=dark-gray] .stat-card,[data-theme=dark-gray] .modal,[data-theme=dark-gray] .empty-page,[data-theme=dark-gray] .notification-panel,[data-theme=dark-gray] .notification-list>button,[data-theme=dark-gray] .notification-all,[data-theme=dark-gray] .quick-grid button,[data-theme=dark-gray] .theme-menu{background:#343a43;border-color:#4b5563;color:#e5e7eb}[data-theme=dark-gray] .brand,[data-theme=dark-gray] td,[data-theme=dark-gray] .schedule,[data-theme=dark-gray] .stock-alert,[data-theme=dark-gray] .medicine-price-row{border-color:#4b5563}[data-theme=dark-gray] h1,[data-theme=dark-gray] h2,[data-theme=dark-gray] h3,[data-theme=dark-gray] strong,[data-theme=dark-gray] .brand strong{color:#f3f4f6}[data-theme=dark-gray] p,[data-theme=dark-gray] small,[data-theme=dark-gray] .stat-copy span{color:#aab2bd}[data-theme=dark-gray] input,[data-theme=dark-gray] select,[data-theme=dark-gray] textarea,[data-theme=dark-gray] .search,[data-theme=dark-gray] .date-chip{background:#252a31!important;border-color:#525c69!important;color:#eef2f7!important}[data-theme=dark-gray] th,[data-theme=dark-gray] .invoice-item,[data-theme=dark-gray] .stock-row{background:#3c424c;color:#e5e7eb}[data-theme=dark-gray] nav button:hover,[data-theme=dark-gray] .theme-menu button:hover{background:#444b56;color:#93c5fd}[data-theme=dark-gray] nav button.selected,[data-theme=dark-gray] .theme-menu button.active{background:#46566c;color:#bfdbfe}[data-theme=dark-gray] .header-theme-toggle,[data-theme=dark-gray] .sidebar-collapse-toggle{background:#3c424c;border-color:#596474;color:#e5e7eb}[data-theme=colorful]{--teal:#7c3aed;--dark:#253052;--muted:#667085;--line:#ddd6fe;background:#f6f4ff}[data-theme=colorful] body,[data-theme=colorful] .app,[data-theme=colorful] main{background:linear-gradient(135deg,#f5f3ff,#ecfeff,#fff7ed)}[data-theme=colorful] aside{background:linear-gradient(180deg,#312e81,#5b21b6 55%,#0e7490);border-color:#7c3aed;color:#fff}[data-theme=colorful] .brand{border-color:#ffffff26}[data-theme=colorful] .brand strong,[data-theme=colorful] .brand small,[data-theme=colorful] nav button,[data-theme=colorful] .sidebar-user strong,[data-theme=colorful] .sidebar-user small{color:#fff}[data-theme=colorful] nav button:hover{background:#ffffff1c;color:#fff}[data-theme=colorful] nav button.selected{background:#ffffff28;color:#fff;box-shadow:inset 3px 0 #fbbf24}[data-theme=colorful] header{background:#ffffffdc;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-color:#ddd6fe}[data-theme=colorful] .panel,[data-theme=colorful] .stat-card{border-color:#ddd6fe;box-shadow:0 8px 28px #7c3aed10}[data-theme=colorful] .brand>div,[data-theme=colorful] .btn.primary{background:linear-gradient(135deg,#8b5cf6,#06b6d4)}[data-theme=colorful] .stat-icon.teal{background:#ede9fe;color:#7c3aed}[data-theme=colorful] .stat-icon.blue{background:#cffafe;color:#0891b2}[data-theme=colorful] .stat-icon.orange{background:#ffedd5;color:#ea580c}[data-theme=colorful] .stat-icon.violet{background:#fce7f3;color:#db2777}[data-theme=colorful] .header-theme-toggle{border-color:#c4b5fd;color:#7c3aed;background:#fff}[data-theme=colorful] .theme-menu button.active{background:#ede9fe;color:#7c3aed}
