:root{--bg:#f5f7fb;--panel:#fff;--text:#17212b;--muted:#667085;--line:#dfe5ec;--brand:#1f4e78;--brand2:#0f6b78;--green:#267a4a;--greenbg:#e9f7ef;--amber:#8a6100;--amberbg:#fff6d8;--red:#a51d1d;--redbg:#fdecec;--shadow:0 8px 24px rgba(22,34,51,.08)}
*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--bg)}body{margin:0;min-height:100vh}.topbar{position:sticky;top:0;z-index:30;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:10px 18px;gap:18px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--text);font-weight:750}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:var(--brand);color:#fff;font-size:13px;letter-spacing:.6px}.topbar nav{display:flex;gap:8px;flex-wrap:wrap}.topbar nav a{color:#344054;text-decoration:none;padding:8px 10px;border-radius:8px}.topbar nav a:hover{background:#f1f5f9}.container{max-width:1400px;margin:0 auto;padding:18px}.setup-wrap{min-height:100vh;display:grid;place-items:center;padding:24px}.setup-card{width:min(760px,100%)}.panel{background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:18px}.panel+.panel{margin-top:16px}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:4px 0 18px}.page-head h1,.panel h1,.panel h2,.panel h3{margin-top:0}.page-head h1{font-size:27px;margin-bottom:4px}.muted{color:var(--muted)}.hint{font-size:12px;color:var(--muted);font-weight:400}.grid{display:grid;gap:12px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.span-2{grid-column:span 2}.bed-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}.bed-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:14px;min-height:142px;display:flex;flex-direction:column;justify-content:space-between}.bed-card.occupied{border-left:5px solid var(--brand)}.bed-card.vacant{border-left:5px solid #b7c1ce}.bed-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.bed-code{font-weight:800;font-size:18px}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:700}.badge-green{background:var(--greenbg);color:var(--green)}.badge-grey{background:#eef1f5;color:#596273}.badge-amber{background:var(--amberbg);color:var(--amber)}.badge-red{background:var(--redbg);color:var(--red)}.patient-name{font-weight:750;margin:8px 0 4px}.diagnosis{font-size:13px;color:#475467;line-height:1.35}.meta{font-size:12px;color:#667085}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:9px;padding:9px 12px;font-weight:700;text-decoration:none;cursor:pointer;font:inherit;line-height:1;background:#fff}.btn-primary{background:var(--brand);color:#fff}.btn-secondary{border-color:#b9c5d2;color:#344054;background:#fff}.btn-success{background:var(--green);color:#fff}.btn-danger{background:#fff;color:var(--red);border-color:#e8b4b4}.btn-soft{background:#eef4fa;color:var(--brand)}.btn-small{padding:6px 9px;font-size:12px}.actions{display:flex;gap:8px;flex-wrap:wrap}.alert{border-radius:10px;padding:10px 12px;margin-bottom:14px;border:1px solid}.alert-success{background:var(--greenbg);color:#1f653e;border-color:#b7e0c8}.alert-error{background:var(--redbg);color:#8e1717;border-color:#efbcbc}.alert-info{background:#edf5ff;color:#234d7d;border-color:#c8dcf2}label{display:flex;flex-direction:column;gap:6px;font-weight:650;font-size:13px}input,select,textarea{width:100%;border:1px solid #bfc9d4;border-radius:9px;background:#fff;color:var(--text);padding:10px 11px;font:inherit;outline:none}input:focus,select:focus,textarea:focus{border-color:#6b96bb;box-shadow:0 0 0 3px rgba(31,78,120,.1)}textarea{min-height:78px;resize:vertical}.check{display:flex;flex-direction:row;align-items:flex-start;gap:8px;font-weight:500}.check input{width:auto;margin-top:3px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}.table{width:100%;border-collapse:collapse;background:#fff}.table th,.table td{padding:10px 11px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.table th{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#667085;background:#f8fafc}.table tr:last-child td{border-bottom:0}.order-main{font-weight:650;line-height:1.4}.generic{font-size:12px;color:#667085;margin-top:3px}.order-list{display:flex;flex-direction:column;gap:8px}.order-row{border:1px solid var(--line);border-radius:11px;padding:10px 12px;background:#fff;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}.order-row .actions{align-self:center}.patient-header{display:grid;grid-template-columns:minmax(0,1.8fr) repeat(4,minmax(120px,.7fr));gap:12px;align-items:start}.patient-header .big{font-size:22px;font-weight:800}.rounds-list{display:flex;flex-direction:column;gap:12px}.round-card{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden}.round-head{display:grid;grid-template-columns:100px minmax(180px,1fr) minmax(220px,1.5fr) auto;gap:12px;align-items:center;padding:10px 13px;background:#f8fafc;border-bottom:1px solid var(--line)}.round-location{font-size:18px;font-weight:850;color:var(--brand)}.round-body{padding:10px 13px}.round-body ul{margin:0;padding-left:20px;columns:2;column-gap:28px}.round-body li{break-inside:avoid;margin:0 0 5px;line-height:1.35}.tier-core{background:#e7f5ec}.tier-common{background:#edf5ff}.tier-optional{background:#fff7df}.set-item{border:1px solid var(--line);border-radius:10px;padding:9px 10px;margin-bottom:7px}.set-item-head{display:flex;align-items:center;gap:8px}.set-item .order-text{font-size:13px;margin:5px 0 0 26px;color:#344054}.search-wrap{position:relative}.autocomplete{position:absolute;z-index:50;left:0;right:0;top:calc(100% + 4px);background:#fff;border:1px solid #bcc9d6;border-radius:10px;box-shadow:var(--shadow);max-height:310px;overflow:auto;display:none}.autocomplete.show{display:block}.ac-item{padding:9px 10px;border-bottom:1px solid #edf0f4;cursor:pointer}.ac-item:last-child{border-bottom:0}.ac-item:hover{background:#f3f7fb}.ac-title{font-weight:750}.ac-sub{font-size:12px;color:#667085}.quick-orders{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.quick-orders button{font-size:12px;padding:6px 8px;border-radius:8px;border:1px solid #bdc9d5;background:#fff;cursor:pointer}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.section-title h2,.section-title h3{margin:0}.separator{height:1px;background:var(--line);margin:16px 0}.kpis{display:flex;gap:8px;flex-wrap:wrap}.kpi{background:#f7f9fc;border:1px solid var(--line);border-radius:9px;padding:6px 9px;font-size:12px}.empty{padding:24px;text-align:center;color:#667085}.login-card{width:min(420px,100%);margin:9vh auto}.login-card h1{text-align:center}.audit-list{font-size:13px}.audit-list div{padding:6px 0;border-bottom:1px solid #edf0f4}.audit-list div:last-child{border:0}.nowrap{white-space:nowrap}
@media(max-width:820px){.topbar{align-items:flex-start;flex-direction:column}.topbar nav{width:100%}.container{padding:12px}.grid-2,.grid-3{grid-template-columns:1fr}.span-2{grid-column:auto}.patient-header{grid-template-columns:1fr 1fr}.patient-header .name-cell{grid-column:1/-1}.round-head{grid-template-columns:82px minmax(0,1fr) auto}.round-head .round-dx{grid-column:1/-1}.round-body ul{columns:1}.order-row{grid-template-columns:1fr}.page-head{flex-direction:column}.page-head .actions{width:100%}.page-head .actions .btn{flex:1}}
@media(max-width:520px){.patient-header{grid-template-columns:1fr}.patient-header .name-cell{grid-column:auto}.bed-grid{grid-template-columns:1fr}.topbar nav a{padding:7px 8px;font-size:13px}.round-head{grid-template-columns:72px 1fr}.round-head .actions{grid-column:1/-1}.round-head .actions .btn{flex:1}}
