/* Admin + website styles. Copied from the approved prototype (design2) so the look stays 100% the same. */
:root{--g:#1f8a4c;--gd:#14532d;--gl:#e8f5ec;--bs-primary:#1f8a4c;--bs-primary-rgb:31,138,76;--bs-link-color:#1f8a4c;--bs-link-hover-color:#14532d}
:root{--bs-body-font-family:'Poppins',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif}
body{background:#f1f7f3;font-size:13.5px;font-family:'Poppins',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif}
.btn,.form-control,.form-select,.dropdown-menu,.badge,.table{font-family:inherit}
.sidebar{width:250px;background:linear-gradient(180deg,#0f3d24,#14532d);height:100vh;position:fixed;top:0;left:0;overflow-y:auto;z-index:1040;transition:left .2s}
.sidebar .brand{color:#fff;font-size:20px;font-weight:700;padding:16px 18px;border-bottom:1px solid rgba(255,255,255,.15)}
.sidebar a{color:#cfe9d9;text-decoration:none;display:block;padding:7px 18px;border-left:3px solid transparent}
.sidebar a:hover,.sidebar a.active{background:rgba(255,255,255,.12);color:#fff;border-left-color:#7ee2a8}
.sidebar a i{margin-right:8px}
.sidebar .grp{color:#7fb995;font-size:11px;text-transform:uppercase;padding:14px 18px 4px;letter-spacing:.08em}
.main{margin-left:250px;min-height:100vh}
.topbar{background:#fff;border-bottom:1px solid #d5e8dc;padding:10px 20px;position:sticky;top:0;z-index:1030}
.card{border:1px solid #d5e8dc;border-radius:10px}
.page-title{color:#14532d;font-weight:700}
.btn-primary,.btn-success{--bs-btn-bg:#1f8a4c;--bs-btn-border-color:#1f8a4c;--bs-btn-hover-bg:#17703c;--bs-btn-hover-border-color:#17703c;--bs-btn-active-bg:#14532d;--bs-btn-active-border-color:#14532d;--bs-btn-disabled-bg:#7fb995;--bs-btn-disabled-border-color:#7fb995}
.btn-outline-success,.btn-outline-primary{--bs-btn-color:#1f8a4c;--bs-btn-border-color:#1f8a4c;--bs-btn-hover-bg:#1f8a4c;--bs-btn-hover-border-color:#1f8a4c;--bs-btn-active-bg:#1f8a4c;--bs-btn-active-border-color:#1f8a4c}
.form-control:focus,.form-select:focus{border-color:#1f8a4c;box-shadow:0 0 0 .2rem rgba(31,138,76,.2)}
.form-check-input:checked{background-color:#1f8a4c;border-color:#1f8a4c}
.form-label{font-size:13px}
.table thead th{background:#e8f5ec;color:#14532d;white-space:nowrap}
.stat{border-left:5px solid #1f8a4c}
.stat .num{font-size:24px;font-weight:700;color:#14532d}
.stat i{font-size:28px;color:#9fd5b3}
.stat.hl{background:#1f8a4c;color:#fff}.stat.hl .num{color:#fff}.stat.hl i{color:#c9f0d8}
.nav-tabs .nav-link{color:#14532d}
.nav-tabs .nav-link.active{background:#e8f5ec;border-color:#bfe0cb #bfe0cb #e8f5ec;color:#14532d;font-weight:600}
.seg .btn{border:1px solid #d5e8dc;background:#fff;color:#14532d}
.seg .btn.active,.seg .btn.active:hover{background:#1f8a4c;color:#fff;border-color:#1f8a4c}
/* radio buttons shown as a button group (e.g. Existing / New patient) */
.seg .btn-check:checked+.btn,.seg .btn-check:checked+.btn:hover{background:#1f8a4c;color:#fff;border-color:#1f8a4c}
.seg .btn-check:focus-visible+.btn{box-shadow:0 0 0 .2rem rgba(31,138,76,.25)}
.fsec{font-weight:700;color:#14532d;border-bottom:1px solid #d5e8dc;padding-bottom:4px;margin-top:4px}
.bar{background:#1f8a4c;border-radius:4px 4px 0 0;width:100%}
.perm-table td,.perm-table th{text-align:center;vertical-align:middle}
.perm-table td:first-child,.perm-table th:first-child{text-align:left}
.perm-table tr.g td{background:#e8f5ec;font-weight:700;color:#14532d;text-align:left}
/* availability calendar (add page) */
.acal{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}
.acal .hd{text-align:center;font-size:12px;color:#6b7280;font-weight:600}
.acal .c{height:62px;border:1px solid #e5e7eb;border-radius:8px;display:flex;align-items:center;justify-content:center;cursor:pointer;background:#fff;font-weight:600;position:relative;user-select:none}
.acal .c:hover{border-color:#1f8a4c}
.acal .c.sel{background:#1f8a4c;color:#fff;border-color:#1f8a4c}
.acal .c.lv{background:#fde2e2;color:#b91c1c;border-color:#f5a3a3}
.acal .c.td{box-shadow:inset 0 0 0 2px #1f8a4c}
.acal .c.ps{opacity:.35;cursor:not-allowed;background:#f8f8f8}
.acal .c.ro{cursor:default}
.acal .c .dot{position:absolute;bottom:6px;width:6px;height:6px;border-radius:50%;background:#7ee2a8}
.acal .c.sel .dot{background:#fff}
.lg{display:inline-block;width:12px;height:12px;border-radius:3px;vertical-align:-2px;margin-right:4px}
.dchip{display:inline-block;background:#1f8a4c;color:#fff;border-radius:4px;padding:3px 8px;font-size:12px;margin:2px;font-weight:600}
.dchip.lv{background:#dc3545}
.dchip.soft{background:#e8f5ec;color:#14532d}
.daypill{border:1px solid #d5e8dc;background:#fff;border-radius:6px;padding:5px 14px;margin:0 4px 4px 0;font-weight:600;color:#14532d}
.daypill.on{background:#1f8a4c;color:#fff;border-color:#1f8a4c}
/* my availability calendar */
.mcal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-left:1px solid #e5e7eb;border-top:1px solid #e5e7eb;background:#fff}
.mcal .hd{padding:6px;text-align:center;font-weight:700;font-size:12px;color:#6b7280;border-right:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;background:#fafafa}
.mcal .d{min-height:150px;border-right:1px solid #e5e7eb;border-bottom:1px solid #e5e7eb;padding:4px;font-size:11px;background:#fff}
.mcal .d.out{background:#fafafa;color:#bbb}
.mcal .d.td{box-shadow:inset 0 0 0 2px #1f8a4c}
.mcal .d .top{display:flex;justify-content:space-between;font-weight:700;margin-bottom:3px}
.mcal .d .lst{max-height:118px;overflow-y:auto}
.sl{display:block;border-radius:4px;padding:2px 5px;margin-bottom:2px;background:#e8f5ec;color:#14532d;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sl.bk{background:#fde2e2;color:#b91c1c;text-decoration:line-through}
.sl.ps{opacity:.5;cursor:default}
.sl.lv{background:#fde2e2;color:#b91c1c;cursor:default;white-space:normal}
/* lists */
.alist .ar{display:flex;align-items:center;gap:14px;padding:12px 16px;border-bottom:1px solid #eef2ef;flex-wrap:wrap}
.alist .ar:last-child{border-bottom:0}
.av{width:38px;height:38px;border-radius:50%;background:#1f8a4c;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;flex:none}
.av.big{width:56px;height:56px;font-size:22px}
.lbl{font-size:10px;text-transform:uppercase;color:#9ca3af;letter-spacing:.05em}
/* website booking steps */
.steps{display:flex;gap:8px;margin-bottom:18px;flex-wrap:wrap}
.steps .st{flex:1;min-width:140px;display:flex;align-items:center;gap:8px;padding:10px;border-radius:8px;background:#fff;border:1px solid #d5e8dc;color:#6b7280}
.steps .st .n{width:26px;height:26px;border-radius:50%;background:#e5e7eb;display:flex;align-items:center;justify-content:center;font-weight:700;flex:none}
.steps .st.on{border-color:#1f8a4c;color:#14532d;font-weight:600}
.steps .st.on .n,.steps .st.ok .n{background:#1f8a4c;color:#fff}
.steps .st.ok{cursor:pointer}
.slotbtn{min-width:104px;margin:0 6px 6px 0}
.doc-pick{cursor:pointer;transition:border-color .15s}
.doc-pick:hover,.doc-pick.on{border-color:#1f8a4c;box-shadow:0 0 0 2px rgba(31,138,76,.15)}
/* consultation pad and ipd case */
.pt-banner{background:#fff;border:1px solid #d5e8dc;border-radius:10px;padding:12px 16px}
.sec-h{font-weight:700;color:#14532d;font-size:13px;text-transform:uppercase;letter-spacing:.04em;margin:6px 0 8px}
.sec-h i{margin-right:6px}
.psec{border-bottom:1px dashed #d5e8dc;padding-bottom:12px;margin-bottom:12px}
.sticky-act{position:sticky;bottom:0;background:#fff;border-top:1px solid #d5e8dc;padding:10px 16px;z-index:5;margin:0 -16px -16px;border-radius:0 0 10px 10px}
.tpill{border:1px solid #d5e8dc;border-radius:16px;padding:3px 10px;margin:0 4px 4px 0;font-size:12px;background:#fff;cursor:pointer;display:inline-block;user-select:none}
.tpill.on{background:#1f8a4c;color:#fff;border-color:#1f8a4c}
.mini td,.mini th{padding:.3rem .4rem;font-size:12.5px}
.timeline .it{border-left:3px solid #1f8a4c;padding:8px 12px;margin-bottom:10px;background:#fff;border-radius:0 8px 8px 0;border-top:1px solid #eef2ef;border-right:1px solid #eef2ef;border-bottom:1px solid #eef2ef}
.vbox{background:#f6fbf8;border:1px solid #d5e8dc;border-radius:8px;padding:6px 10px}
.stepbox{border:1px solid #d5e8dc;border-radius:10px;padding:14px;margin-bottom:14px;background:#fff}
.stepbox .sn{width:28px;height:28px;border-radius:50%;background:#e5e7eb;display:inline-flex;align-items:center;justify-content:center;font-weight:700;margin-right:8px}
.stepbox.ok .sn{background:#1f8a4c;color:#fff}
.stepbox.lock{opacity:.55}
.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(120deg,#0f3d24,#1f8a4c);padding:20px}
.site-hero{background:linear-gradient(120deg,#14532d,#1f8a4c);color:#fff;padding:90px 0}
.site-card{border:1px solid #d5e8dc;border-radius:12px;background:#fff;padding:20px;height:100%}
.site-card i.big{font-size:34px;color:#1f8a4c}
@media(max-width:991px){.sidebar{left:-250px}.sidebar.open{left:0}.main{margin-left:0}.mcal .d{min-height:110px}}
/* sidebar toggle (icon only mode on desktop) */
.sidebar,.main{transition:width .2s,margin-left .2s,left .2s}
.sidebar .brand{display:flex;align-items:center;gap:8px;white-space:nowrap;overflow:hidden}
.sidebar .brand img{height:32px;width:32px;object-fit:contain;background:#fff;border-radius:6px;padding:2px;flex:none}
.sidebar a{white-space:nowrap;overflow:hidden}
.sb-back{display:none}
@media(min-width:992px){
  body.sb-mini .sidebar{width:64px;overflow-x:hidden;scrollbar-width:none}
  body.sb-mini .sidebar::-webkit-scrollbar{display:none}
  body.sb-mini .main{margin-left:64px}
  body.sb-mini .sidebar .sb-t,body.sb-mini .sidebar .grp span{display:none}
  body.sb-mini .sidebar .grp{padding:8px 0 0;margin:6px 14px 0;border-top:1px solid rgba(255,255,255,.15)}
  body.sb-mini .sidebar a{padding:9px 0;text-align:center}
  body.sb-mini .sidebar a i{margin-right:0;font-size:17px}
  body.sb-mini .sidebar .brand{padding:14px 0;justify-content:center}
}
@media(max-width:991px){.sidebar.open+.sb-back{display:block;position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:1035}}
/* image upload, logos and banners */
.img-prev{max-height:64px;max-width:160px;border:1px solid #d5e8dc;border-radius:6px;padding:3px;background:#fff;object-fit:contain}
.img-prev.empty{display:none}
.img-prev.round{width:64px;height:64px;border-radius:50%;object-fit:cover;padding:0}
.doc-photo{width:38px;height:38px;border-radius:50%;object-fit:cover;flex:none;border:1px solid #d5e8dc}
.doc-photo.big{width:56px;height:56px}
.login-logo{height:52px;width:52px;object-fit:contain}
.site-logo{height:34px;width:34px;object-fit:contain;background:#fff;border-radius:6px;padding:2px;margin-right:6px}
.banner-thumb{width:110px;height:44px;object-fit:cover;border-radius:6px;border:1px solid #d5e8dc}
.promo-slide{min-height:320px;background:linear-gradient(120deg,#14532d,#1f8a4c);background-size:cover;background-position:center;position:relative;display:flex;align-items:center}
.promo-slide:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.55),rgba(0,0,0,.1))}
.promo-slide .container{position:relative;color:#fff;padding:40px 12px}
.promo-badge{display:inline-block;background:#f59e0b;color:#1f2937;border-radius:20px;padding:2px 12px;font-size:12px;font-weight:700;margin-bottom:8px}
.set-card h6{color:#14532d;font-weight:700}
/* lab worklist */
.wl-tiles{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:10px}
@media(max-width:1399px){.wl-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:575px){.wl-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
.wl-tile{border:1px solid #e3e8ee;border-left:4px solid #94a3b8;border-radius:12px;background:#fff;padding:12px 14px;cursor:pointer;text-align:left;width:100%}
.wl-tile .n{font-size:26px;font-weight:700;color:#1f2937;line-height:1.1}
.wl-tile .t{font-size:13px;color:#4b5563}
.wl-tile.on{box-shadow:0 0 0 2px #1f8a4c;border-color:#1f8a4c}
.wl-tile.c-open{border-left-color:#1f8a4c}.wl-tile.c-col{border-left-color:#94a3b8}
.wl-tile.c-rcv{border-left-color:#3b82f6;background:#eef3fc}.wl-tile.c-rcd{border-left-color:#0d9488;background:#e6f6f5}
.wl-tile.c-prc{border-left-color:#f59e0b;background:#fef5e4}.wl-tile.c-apr{border-left-color:#8b5cf6;background:#f1edfb}
.wl-tile.c-od{border-left-color:#ef4444;background:#fdecee}.wl-tile.c-od .n{color:#b91c1c}.wl-tile.c-done{border-left-color:#16a34a;background:#ecf8f0}
.wl-card{border:1px solid #e3e8ee;border-radius:12px;background:#fff;overflow:hidden}
.wl-card:before{content:'';display:block;height:4px;background:linear-gradient(90deg,#1f8a4c,#3b82f6)}
.wl-range .btn{border:1px solid #d5e8dc;background:#f6fbf8;color:#1f2937;border-radius:20px;padding:5px 14px}
.wl-range .btn.active{background:#1f8a4c;color:#fff;border-color:#1f8a4c}
.wl-bar{background:#eef1f8;padding:12px 16px}
.wl-table th{background:#fff!important;color:#374151!important;font-weight:600;border-bottom:1px solid #e5e7eb}
.wl-table td{padding-top:12px;padding-bottom:12px}
.pri-Urgent{color:#c2410c;font-weight:700}.pri-STAT{color:#b91c1c;font-weight:700}.pri-Routine{color:#4b5563;font-weight:600}
.sdot{display:inline-block;width:11px;height:11px;border-radius:50%;margin-right:6px;vertical-align:-1px}
.lbst{display:inline-block;border-radius:14px;padding:3px 10px;font-size:12px;font-weight:600;white-space:nowrap}
.lbst-Ordered{background:#f1f5f9;color:#475569}.lbst-Sample-Collected{background:#e7effd;color:#1d4ed8}.lbst-Received-in-Lab{background:#dff4f2;color:#0f766e}
.lbst-In-Process{background:#fdf0d8;color:#b45309}.lbst-Awaiting-Approval{background:#ede7fb;color:#6d28d9}.lbst-Completed{background:#dcf3e4;color:#15803d}
.due-od{color:#dc2626;font-weight:600}
.text-purple{color:#7c3aed}
/* medicines */
.mstat{border:1px solid #e3e8ee;border-left:4px solid #3b82f6;border-radius:12px;background:#fff;padding:16px 18px;height:100%}
.mstat .ic{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:18px;float:right}
.mstat .n{font-size:26px;font-weight:700;color:#1f2937;margin-top:14px}
.mstat .t{font-size:13px;color:#4b5563}.mstat .s{font-size:12px;color:#6b7280}
.mstat.c1{border-left-color:#3b82f6}.mstat.c1 .ic{background:#e7effd;color:#3b82f6}
.mstat.c2{border-left-color:#16a34a}.mstat.c2 .ic{background:#dcf3e4;color:#16a34a}
.mstat.c3{border-left-color:#f59e0b}.mstat.c3 .ic{background:#fdf0d8;color:#d97706}
.mstat.c4{border-left-color:#8b5cf6}.mstat.c4 .ic{background:#ede7fb;color:#7c3aed}
.mf-lbl{font-size:11px;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px}
.med-table th{background:#f8fafc!important;color:#6b7280!important;font-size:11.5px;text-transform:uppercase;letter-spacing:.04em}
.med-table td{padding-top:12px;padding-bottom:12px}
.kebab{border:1px solid #d1d5db;background:#fff;border-radius:8px;width:34px;height:34px}
.side-card{border:1px solid #e3e8ee;border-radius:12px;background:#fff}
.side-card .hd{padding:14px 18px;border-bottom:1px solid #eef0f3;font-weight:700}
.side-card .bd{padding:16px 18px}
/* sidebar brand: full clinic name on up to two lines, small sub text */
.sidebar .brand{padding:12px 14px;gap:10px;min-height:64px}
.sidebar .brand img{height:38px;width:38px;border-radius:8px}
.sidebar .brand .sb-t{display:flex;flex-direction:column;min-width:0;white-space:normal}
.sidebar .brand .bn{font-size:14.5px;font-weight:700;line-height:1.2;letter-spacing:-.1px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}
.sidebar .brand .bs{font-size:10px;font-weight:500;color:#9fd5b3;text-transform:uppercase;letter-spacing:.12em;margin-top:2px}
/* dashboard */
.dash-hero{display:flex;align-items:center;flex-wrap:wrap;gap:12px;background:linear-gradient(120deg,#14532d,#1f8a4c);color:#fff;border-radius:12px;padding:16px 20px}
.dash-hero .hi{font-size:19px;font-weight:700}
.dash-hero .role{display:inline-block;font-size:11px;font-weight:600;background:rgba(255,255,255,.18);border-radius:20px;padding:2px 10px;vertical-align:3px;margin-left:4px}
.dash-hero .dt{font-size:13px;color:#d4f0de;margin-top:2px}
.dash-hero .btn-light{color:#14532d;font-weight:600}
.dw{overflow:hidden}
.dw-h{display:flex;align-items:center;gap:8px;padding:12px 16px 8px}
.dw-h h6{margin:0;color:#14532d;font-weight:700;font-size:14px}
.dw-h h6 i{margin-right:4px;color:#1f8a4c}
.dw-sub{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#6b7280;padding:10px 16px 4px;border-top:1px solid #eef2ef;margin-top:6px}
.dw-list .dw-row{display:flex;align-items:center;gap:10px;padding:8px 16px;border-bottom:1px solid #f1f4f2}
.dw-list .dw-row:last-child{border-bottom:0}
.dw-list .dw-row:hover{background:#f8fbf9}
.dw-list .av{width:34px;height:34px;font-size:13px}
.dw-list .doc-photo{width:34px;height:34px}
.dw-scroll{max-height:520px;overflow-y:auto}
.dw-list.act .dot{width:8px;height:8px;border-radius:50%;background:#1f8a4c;flex:none}
.chip-row{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px 10px;border-bottom:1px solid #eef2ef}
.schip{display:inline-flex;align-items:center;gap:6px;border:1px solid #e5ece7;border-radius:20px;padding:2px 10px 2px 3px;font-size:12px;background:#fff}
.schip .badge{font-size:10.5px}
/* quick action tiles */
.qa-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:10px;padding:4px 16px 16px}
.qa{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;text-align:center;padding:12px 6px;border:1px solid #e3ece6;border-radius:12px;background:#fff;color:#1f2937;text-decoration:none;font-size:12.5px;font-weight:600;line-height:1.25;transition:transform .12s,box-shadow .12s,border-color .12s}
.qa:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(20,83,45,.12);border-color:#bfe0cb;color:#14532d}
.qa .ic{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:19px}
.qa.c-green .ic{background:#e3f5ea;color:#1f8a4c}.qa.c-blue .ic{background:#e6eefc;color:#1d4ed8}.qa.c-teal .ic{background:#dff4f2;color:#0f766e}
.qa.c-purple .ic{background:#efe8fc;color:#6d28d9}.qa.c-orange .ic{background:#fdf0dc;color:#c2410c}.qa.c-pink .ic{background:#fce7f1;color:#be185d}
.qa.c-gray .ic{background:#eef1f4;color:#475569}
/* lab status strip */
.lab-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;padding:0 16px 12px;border-bottom:1px solid #eef2ef}
.lab-strip .ls{display:flex;flex-direction:column;border-radius:10px;padding:8px 10px;text-decoration:none;line-height:1.2}
.lab-strip .ls b{font-size:20px}
.lab-strip .ls span{font-size:11px;font-weight:600}
@media(max-width:767px){.lab-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* billing tiles */
.bill-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;padding:0 16px 6px}
.bill-tiles .bt{border:1px solid #e3ece6;border-radius:10px;padding:10px 12px;background:#f8fbf9}
.bill-tiles .bt .lbl{font-weight:700;color:#14532d}
.bill-tiles .bt .v{font-size:18px;font-weight:700;color:#1f2937;margin:2px 0}
.bar.today{background:#14532d}
/* doctor week strip */
.week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;padding:4px 16px 16px}
.week-strip .wd{display:flex;flex-direction:column;align-items:center;border:1px solid #e3ece6;border-radius:10px;padding:6px 2px;background:#fff;line-height:1.2}
.week-strip .wd span{font-size:10.5px;color:#6b7280;text-transform:uppercase}
.week-strip .wd b{font-size:17px;color:#14532d}
.week-strip .wd small{font-size:10px;color:#1f8a4c;font-weight:600;white-space:nowrap}
.week-strip .wd.td{border-color:#1f8a4c;box-shadow:inset 0 0 0 1px #1f8a4c}
.week-strip .wd.lv{background:#fde2e2;border-color:#f5a3a3}.week-strip .wd.lv small{color:#b91c1c}
.dash-stats .stat .num{font-size:22px}
.dw .alist .ar{padding:10px 16px;gap:10px}
/* dashboard charts */
.ch-box{border:1px solid #e3ece6;border-radius:12px;padding:12px 14px;background:#fff;height:100%}
.ch-h{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:8px;font-size:13px;color:#14532d}
.ch-kpi{font-size:11.5px;color:#5b6b78;background:#f3f6f4;border-radius:20px;padding:2px 10px}
.ch-kpi b{color:#1f2937;margin-left:2px}
.ch-kpi.g b{color:#0f766e}.ch-kpi.b b{color:#2563eb}.ch-kpi.o b{color:#c27803}
.ch-h .ch-kpi:first-of-type{margin-left:auto}
.ch-canvas{position:relative;height:270px}
.ch-canvas.sm{height:270px}
.ch-canvas.xs{height:200px}
#dashCharts .seg .btn{padding:2px 12px;font-size:12px}
#dashCharts.opacity-loading .ch-canvas{opacity:.45}
@media(max-width:575px){.ch-canvas,.ch-canvas.sm{height:230px}}
.spec-ic{display:inline-flex;width:40px;height:40px;border-radius:10px;background:#e8f5ec;color:#1f8a4c;align-items:center;justify-content:center;font-size:18px}
.cms-tabs .nav-link{white-space:nowrap}
/* reports */
.rp-tabs{display:flex;flex-direction:column;gap:8px}
.rp-group{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.rp-gl{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#6b7280;width:96px;flex:none}
.rp-pill{display:inline-flex;align-items:center;gap:6px;border:1px solid #d5e8dc;background:#fff;border-radius:10px;padding:7px 14px;font-size:13px;font-weight:600;color:#334155;text-decoration:none}
.rp-pill i{color:#1f8a4c}
.rp-pill:hover{border-color:#1f8a4c;color:#14532d}
.rp-pill.on{background:#0f766e;border-color:#0f766e;color:#fff}.rp-pill.on i{color:#fff}
.rp-card{border-top:3px solid transparent;border-image:linear-gradient(90deg,#0f766e,#4f8de0) 1;border-radius:12px;overflow:hidden}
.rp-filters{padding:16px 18px;border-bottom:1px solid #e5ece7;background:#fff}
.rp-lbl{display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#5b6b78;margin-bottom:4px}
.rp-head{display:flex;align-items:center;gap:12px;padding:16px 18px 6px}
.rp-head h5{color:#1b2f3d;font-weight:700}
.rp-head .rp-count{margin-left:auto;background:#e6eefc;color:#1d4ed8;border-radius:20px;padding:3px 12px;font-size:12px;font-weight:600;white-space:nowrap}
.rp-info{padding:8px 18px;color:#5b6b78;font-size:13px;border-top:1px solid #f1f4f2;border-bottom:1px solid #f1f4f2;background:#fbfcfc}
.rp-totals{display:flex;flex-wrap:wrap;gap:10px;padding:12px 18px}
.rp-totals > div{background:#f3f8f5;border:1px solid #e3ece6;border-radius:10px;padding:6px 12px;display:flex;flex-direction:column;min-width:110px}
.rp-totals span{font-size:11px;color:#5b6b78}
.rp-totals b{color:#14532d;font-size:15px}
.rp-table thead th{background:#f7f9fa;color:#5b6b78;font-size:11.5px;text-transform:uppercase;letter-spacing:.03em;padding:12px 14px}
.rp-table td{padding:11px 14px}
.rp-table tfoot th{background:#f3f8f5;color:#14532d;padding:11px 14px}
@media(max-width:767px){.rp-gl{width:100%}}
.rp-table td{white-space:nowrap}
.appt-reason{color:#475569;margin-top:2px;max-width:420px}
.appt-reason i{color:#1f8a4c;margin-right:3px}
.ref-pt{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;background:#f6fbf8;border:1px solid #d5e8dc;border-radius:10px;padding:12px 14px}
.ref-pt .lbl{display:block}
.av-range{display:flex;align-items:flex-end;gap:12px;border:1px solid #e3ece6;border-radius:10px;padding:10px 12px;margin-bottom:8px;background:#fbfdfc}
.av-range .av-rl{width:84px;flex:none;padding-bottom:8px}
/* Beds & Wards */
.bed-tabs .nav-link{white-space:nowrap;font-size:13.5px}
.bm-sw{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.bm-pill{display:inline-block;color:#fff;border-radius:20px;padding:2px 10px;font-size:12px;font-weight:600}
input[type=color].form-control{height:38px;padding:3px 6px;max-width:120px}
.bb-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
.bb-kpi{background:#fff;border:1px solid #d5e8dc;border-radius:12px;padding:10px 14px;display:flex;flex-direction:column}
.bb-kpi span{font-size:12px;color:#5b6b78;display:flex;align-items:center;gap:6px}
.bb-kpi b{font-size:24px;color:#14532d;line-height:1.2}
.bb-kpi.ok b{color:#16a34a}.bb-kpi.occ b{color:#dc2626}
.bb-kpi small{font-size:11px;color:#5b6b78}
.bb-bar{height:5px;background:#fde2e2;border-radius:3px;margin:4px 0 2px;overflow:hidden}.bb-bar div{height:100%;background:#dc2626}
.bb-dot{display:inline-block;width:10px;height:10px;border-radius:50%;flex:none}
.bb-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:12px;color:#5b6b78}
.bb-legend span{display:flex;align-items:center;gap:5px}
.bb-floor{margin-bottom:18px}
.bb-fh{font-weight:700;color:#14532d;font-size:15px;margin-bottom:8px;display:flex;align-items:center;gap:8px}
.bb-fh span{font-weight:500;font-size:12.5px;color:#5b6b78}
.bb-ward{background:#fff;border:1px solid #d5e8dc;border-radius:12px;padding:12px 14px;margin-bottom:12px}
.bb-wh{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:10px}
.bb-type{font-size:11.5px;font-weight:600;border-radius:20px;padding:2px 10px;color:var(--c);background:color-mix(in srgb,var(--c) 12%,#fff);border:1px solid color-mix(in srgb,var(--c) 30%,#fff)}
.bb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px}
.bb-bed{border:1px solid #e3e8ee;border-left:5px solid var(--s);border-radius:10px;padding:8px 10px;background:#fff;display:flex;flex-direction:column;gap:6px;min-height:118px;transition:box-shadow .15s}
.bb-bed:hover{box-shadow:0 6px 16px -10px rgba(20,83,45,.45)}
.bb-bed.occ{background:color-mix(in srgb,var(--s) 6%,#fff)}
.bb-top{display:flex;align-items:center;gap:6px}
.bb-top > i{color:var(--s)}
.bb-room{font-size:11px;color:#5b6b78;background:#f1f5f4;border-radius:10px;padding:1px 7px}
.bb-kebab{border:0;background:transparent;color:#64748b;padding:0 2px;line-height:1}
.bb-pt{display:flex;flex-direction:column;text-decoration:none;color:#1f2937;line-height:1.25}
.bb-pt b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bb-pt span{font-size:11.5px;color:#5b6b78;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bb-free{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.bb-st{font-size:12px;font-weight:600;color:var(--s)}
.bb-admit{padding:1px 8px;font-size:12px;margin-left:auto}
.bb-foot{display:flex;justify-content:space-between;font-size:11px;color:#64748b;margin-top:auto;border-top:1px dashed #e5ece7;padding-top:4px}
/* admin footer fixed at the bottom of the screen; the page keeps room for it */
.admin-foot{position:fixed;bottom:0;left:250px;right:0;height:38px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 24px;
  background:#f1f7f3;border-top:1px solid #d5e8dc;font-size:12.5px;color:#6b7280;z-index:1020;transition:left .2s}
.admin-body #page{padding-bottom:64px!important}
.admin-body .sticky-act{bottom:38px}
@media(min-width:992px){body.sb-mini .admin-foot{left:64px}}
@media(max-width:991px){.admin-foot{left:0;padding:0 14px}}
@media(max-width:575px){.admin-foot span:last-child{display:none}}
/* sidebar: always some free space below the last menu item (Activity Log) */
.sidebar{padding-bottom:72px}
/* lab result entry: H / L flag */
.lr-fl{display:inline-block;min-width:26px;font-weight:800;font-size:13px;border-radius:5px;padding:1px 6px}
.lr-fl.lr-h{color:#c0392b;background:#fdecec}.lr-fl.lr-l{color:#1d4ed8;background:#e6eefc}.lr-fl.lr-a{color:#b45309;background:#fdf0d8;font-size:11px}
.lr-fl.crit{color:#fff}.lr-fl.lr-h.crit{background:#c0392b}.lr-fl.lr-l.crit{background:#1d4ed8}
.lr-in.lr-manual{background:#fffbea;border-color:#f5c451}

/* patient page: tabs, history timeline, lab orders */
.ph-tabs{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.ph-tabs .nav-link{white-space:nowrap}
.ph-tl-it{display:flex;gap:10px;padding:8px 0;border-bottom:1px dashed #e3ece6}
.ph-tl-it:last-child{border-bottom:0}
.ph-tl-ic{width:30px;height:30px;border-radius:50%;background:#e8f5ec;color:#1f8a4c;display:flex;align-items:center;justify-content:center;flex:none}
.ph-order{border:1px solid #d5e8dc;border-left:4px solid #f5b301;border-radius:8px;padding:10px 12px;margin-bottom:10px;background:#fff}
.ph-order.done{border-left-color:#1f8a4c}
.ph-test{display:inline-block;border:1px solid #e3ece6;background:#f6fbf8;border-radius:14px;padding:2px 10px;font-size:12.5px}
.ph-save{position:sticky;bottom:48px;z-index:5;box-shadow:0 -4px 14px rgba(0,0,0,.06)}
.history-collapse-toggle{border:0;background:#fff;color:inherit;text-align:left;font:inherit}
.history-collapse-toggle:hover{background:#f6fbf8}
.history-collapse-toggle:focus-visible{outline:2px solid #1f8a4c;outline-offset:-2px}
.history-collapse-icon{color:#1f8a4c;transition:transform .2s}
.history-collapse-toggle[aria-expanded="true"] .history-collapse-icon{transform:rotate(180deg)}

/* sidebar groups that open and close (OPD, IPD, Laboratory) */
.sidebar .grp-tg{display:flex;align-items:center;width:100%;background:none;border:0;text-align:left;cursor:pointer}
.sidebar .grp-tg i{margin-left:auto;font-size:11px;transition:transform .2s}
.sidebar .grp-tg.open i{transform:rotate(180deg)}
.sidebar .grp-tg:hover{color:#cfe9d9}
.sidebar .sb-sub{display:none}
.sidebar .sb-sub.open{display:block}
@media(min-width:992px){body.sb-mini .sidebar .sb-sub{display:block}body.sb-mini .sidebar .grp-tg i{display:none}}

a.fw-bold
 {
    color: rgb(41 119 203);
}
/* patient page overview: label / value tables */
.ov-table th{width:38%;font-weight:600;color:#14532d;white-space:nowrap}
.ov-table td,.ov-table th{border-color:#eef2ef}

/* aligned clinical lists: keep the current colours and controls while columns stay consistent */
.appointment-patient{min-width:190px;flex:1}.appointment-date{min-width:105px}.appointment-time{min-width:150px}.appointment-doctor{min-width:140px}.appointment-fee{min-width:80px}.appointment-status{min-width:120px}
.appointment-grid{overflow-x:hidden}
.appointment-grid-head,.appointment-grid .ar{display:grid;grid-template-columns:minmax(150px,1.6fr) minmax(72px,.7fr) minmax(105px,.9fr) minmax(100px,1fr) minmax(55px,.5fr) minmax(72px,.65fr) minmax(175px,1.5fr);gap:8px;align-items:center;width:100%}
.appointment-grid-head{padding:9px 16px;background:#e8f5ec;color:#14532d;font-weight:600;border-bottom:1px solid #d5e8dc}
.appointment-grid .ar{flex-wrap:nowrap;min-width:0}
.appointment-grid .appointment-avatar{display:none}
.appointment-grid .appointment-patient,.appointment-grid .appointment-date,.appointment-grid .appointment-time,.appointment-grid .appointment-doctor,.appointment-grid .appointment-fee,.appointment-grid .appointment-status{min-width:0;overflow-wrap:anywhere}
.appointment-grid .ar .lbl{display:none}
.appointment-grid .appointment-fee,.appointment-grid .appointment-status{font-size:12.5px}
.appointment-grid .appointment-actions{justify-self:end;margin-left:0!important;min-width:0;flex-wrap:wrap;justify-content:flex-end;white-space:normal}
.appointment-grid-empty{min-width:100%}
.clinical-table-wrap{width:100%;overflow-x:hidden}
.data-grid-table{table-layout:fixed;width:100%}
.data-grid-table th,.data-grid-table td{vertical-align:middle;white-space:normal;overflow-wrap:anywhere}
.data-grid-table thead th{white-space:normal}
.data-grid-table td:last-child,.data-grid-table th:last-child{text-align:right}
.data-grid-table td:last-child{white-space:normal!important}
.opd-grid-table .col-date{width:12%}.opd-grid-table .col-visit{width:14%}.opd-grid-table .col-doctor{width:18%}.opd-grid-table .col-bill{width:14%}.opd-grid-table .col-status{width:10%}.opd-grid-table .col-action{width:32%}
/* list "Actions" column: as narrow as its buttons; fixed-layout lists give it a real width so the buttons are never cut */
.table th.col-actions{width:1%}
.data-grid-table th.col-actions{width:104px}
.data-grid-table td:last-child .dropdown,.data-grid-table td:last-child .btn{vertical-align:middle}
/* OPD Consultations register: Date / Visit, Patient, Doctor, Type, Diagnosis, Follow-up, Bill + Actions (fits the screen, no side scroll) */
.opd-register-table th:nth-child(1){width:14%}.opd-register-table th:nth-child(2){width:16%}.opd-register-table th:nth-child(3){width:15%}.opd-register-table th:nth-child(4){width:13%}.opd-register-table th:nth-child(5){width:17%}.opd-register-table th:nth-child(6){width:10%}.opd-register-table th:nth-child(7){width:11%}
.opd-register-table td:last-child{white-space:nowrap!important}
.patient-followup-table th:nth-child(1){width:8%}.patient-followup-table th:nth-child(2){width:10%}.patient-followup-table th:nth-child(3){width:12%}.patient-followup-table th:nth-child(4){width:18%}.patient-followup-table th:nth-child(5){width:12%}.patient-followup-table th:nth-child(6){width:12%}.patient-followup-table th:nth-child(7){width:13%}.patient-followup-table th:nth-child(8){width:15%}
.followup-register-table th:nth-child(1){width:18%}.followup-register-table th:nth-child(2){width:8%}.followup-register-table th:nth-child(3){width:12%}.followup-register-table th:nth-child(4){width:17%}.followup-register-table th:nth-child(5){width:12%}.followup-register-table th:nth-child(6){width:11%}.followup-register-table th:nth-child(7){width:10%}.followup-register-table th:nth-child(8){width:12%}
.prescription-grid-table .col-type{width:9%}.prescription-grid-table .col-medicine{width:22%}.prescription-grid-table .col-dose{width:9%}.prescription-grid-table .col-frequency{width:12%}.prescription-grid-table .col-when{width:13%}.prescription-grid-table .col-days{width:7%}.prescription-grid-table .col-qty{width:7%}.prescription-grid-table .col-instructions{width:17%}.prescription-grid-table .col-action{width:4%}
.prescription-grid-table .form-control,.prescription-grid-table .form-select{width:100%;min-width:0}
@media(max-width:767.98px){.appointment-grid-head{display:none}.appointment-grid .ar{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}.appointment-grid .appointment-patient,.appointment-grid .appointment-actions{grid-column:1/-1}.data-grid-table{font-size:11px}.data-grid-table td,.data-grid-table th{padding:.3rem .2rem}.data-grid-table .btn{padding:.2rem .35rem;font-size:11px}}

/* "Create Lab Order" steps: order -> bill & payment -> receipt */
.lab-wizard{display:flex;gap:8px;list-style:none;margin:0 0 16px;padding:0;counter-reset:lw}
.lab-wizard li{flex:1;display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #d5e8dc;border-radius:10px;background:#f6fbf8;color:#5b6b78;min-width:0}
.lab-wizard li.active{border-color:#1f8a4c;background:#e8f5ec;color:#14532d;box-shadow:0 0 0 2px rgba(31,138,76,.12)}
.lab-wizard li.done{color:#14532d}
.lab-wizard .lw-dot{width:30px;height:30px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;font-weight:700;background:#fff;border:2px solid #cfe0d5}
.lab-wizard li.active .lw-dot{background:#1f8a4c;border-color:#1f8a4c;color:#fff}
.lab-wizard li.done .lw-dot{background:#d9f2e3;border-color:#1f8a4c;color:#1f8a4c}
.lab-wizard .lw-text{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.lab-wizard .lw-text b{font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lab-wizard .lw-text small{font-size:11.5px;color:#7a8a96}
@media(max-width:575.98px){.lab-wizard .lw-text small{display:none}.lab-wizard li{padding:8px}}

/* Create Lab Order page: steps on top, form body, sticky action bar */
.lw-card{overflow:clip;border-radius:12px}
.lw-head{padding:16px 20px 0;background:#fbfdfc;border-bottom:1px solid #e3ece6}
.lw-head .lab-wizard{margin-bottom:16px}
.lw-body{padding:20px}
.lw-body .fsec{font-size:14px;padding-bottom:6px;margin-top:6px}
.lw-body .fsec i{color:#1f8a4c;margin-right:4px}
.lw-summary{border:1px solid #d5e8dc;border-radius:10px;background:#f6fbf8;padding:14px 16px;position:sticky;top:76px}
.lw-foot{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px 20px;border-top:1px solid #e3ece6;background:#fff;position:sticky;bottom:44px;z-index:5;box-shadow:0 -4px 14px rgba(0,0,0,.05)}
.lab-wizard .lw-link{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;width:100%;min-width:0}
.lab-wizard li:has(.lw-link){cursor:pointer;transition:background-color .12s,border-color .12s}
.lab-wizard li:has(.lw-link):hover{background:#e8f5ec;border-color:#1f8a4c}
.lab-wizard li:not(.active):not(.done){opacity:.6}
/* Appointments list: compact stat cards and a tidy filter card */
.stat-compact .card.stat{padding:10px 14px!important}
.stat-compact .stat .num{font-size:20px;line-height:1.25}
.stat-compact .stat i{font-size:22px}
.appt-filters .af-status{display:flex;flex-wrap:nowrap;gap:2px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;padding:0 10px;border-bottom:1px solid #e3ece6}
.appt-filters .af-status .btn{flex:0 0 auto;border:0;border-bottom:2px solid transparent;border-radius:0;padding:9px 12px 7px;font-size:13px;font-weight:500;color:#5b6b62;background:none;white-space:nowrap}
.appt-filters .af-status .btn:hover{color:#14532d;background:#f3faf5}
.appt-filters .af-status .btn.active{color:#14532d;font-weight:600;border-bottom-color:#1f8a4c}
.appt-filters .af-body{padding:12px 14px}
.appt-filters .af-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 24px}
.appt-filters .af-grp{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%}
.appt-filters .af-lbl{font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#000000}
.appt-filters .af-grp .seg{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;max-width:100%}
.appt-filters .af-grp .seg .btn{white-space:nowrap;padding:3px 12px}
.appt-filters .af-status::-webkit-scrollbar,.appt-filters .af-grp .seg::-webkit-scrollbar{display:none}
