/* ==========================================================
   JAMALPUR DOCTOR HOSPITAL & DIAGNOSTIC CENTER
   PREMIUM CLINICAL ERP THEME — v2.3
   White clinical workspace • Deep navy • Teal identity
   Responsive • Accessible • Print friendly
   ========================================================== */

:root{
  --brand:#087f82;
  --brand-strong:#06696e;
  --brand-soft:#e8f6f5;
  --navy:#18334b;
  --navy-deep:#10283e;
  --ink:#20384c;
  --muted:#718496;
  --muted-light:#94a4b2;
  --canvas:#f4f7fa;
  --surface:#fff;
  --surface-soft:#f8fafc;
  --line:#e4ebf0;
  --line-strong:#d6e0e7;
  --success:#16835d;
  --warning:#a96d12;
  --danger:#bd4b4b;
  --blue:#397db8;
  --shadow:0 10px 28px rgba(20,49,71,.055);
  --shadow-sm:0 3px 12px rgba(20,49,71,.045);
  --radius:14px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--canvas);
  color:var(--ink);
  font-family:Inter,"Noto Sans Bengali","Hind Siliguri","Segoe UI",Roboto,Arial,sans-serif;
  font-size:15px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{color:var(--brand-strong);text-decoration:none}
a:hover{color:#045d62}
h1,h2,h3,h4,p{margin-top:0}
h1{margin:2px 0 7px;color:#19364d;font-size:29px;font-weight:760;line-height:1.25;letter-spacing:-.55px}
h2{margin:0 0 16px;color:#213e54;font-size:18px;font-weight:740;line-height:1.4}
h3{color:#29485e;font-size:16px;font-weight:720}
small{font-size:12px}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid rgba(8,127,130,.25);outline-offset:2px}
::selection{background:rgba(8,127,130,.16);color:var(--ink)}

/* Application frame */
.layout{display:flex;min-height:100vh}
aside#nav{
  position:fixed;
  z-index:40;
  inset:0 auto 0 0;
  display:flex;
  flex-direction:column;
  width:266px;
  background:#fff;
  color:var(--ink);
  border-right:1px solid var(--line);
  box-shadow:5px 0 22px rgba(20,49,71,.035);
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:84px;
  margin:0;
  padding:17px 19px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(135deg,#fff 0%,#f9fcfd 100%);
}
.mark,.login-mark{
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:45px;
  height:45px;
  border-radius:13px;
  background:linear-gradient(145deg,#0a9991,#246fa5);
  color:#fff;
  font-size:15px;
  font-weight:850;
  letter-spacing:.2px;
  box-shadow:0 6px 15px rgba(8,127,130,.2),inset 0 1px 0 rgba(255,255,255,.25);
}
.brand b{display:block;color:#18364d;font-size:14px;font-weight:800;line-height:1.35}
.brand small{display:block;margin-top:4px;color:#7c91a1;font-size:9px;font-weight:800;letter-spacing:1.35px}
.nav-scroll{
  flex:1;
  overflow-x:hidden;
  overflow-y:auto;
  padding:12px 12px 20px;
  scrollbar-width:thin;
  scrollbar-color:#d2e0e6 transparent;
}
.nav-scroll::-webkit-scrollbar{width:5px}
.nav-scroll::-webkit-scrollbar-thumb{border-radius:8px;background:#d2e0e6}
.nav-group{
  padding:19px 12px 7px;
  color:#8b9ba8;
  font-size:10px;
  font-weight:850;
  letter-spacing:1.35px;
  line-height:1.25;
  text-transform:uppercase;
}
.nav-link{
  position:relative;
  display:flex;
  align-items:center;
  gap:11px;
  min-height:42px;
  margin:3px 0;
  padding:9px 12px;
  border:1px solid transparent;
  border-radius:9px;
  color:#526b7e;
  font-size:13px;
  font-weight:630;
  line-height:1.35;
  transition:background .17s ease,color .17s ease,border-color .17s ease,transform .17s ease;
}
.nav-link:before{
  display:grid;
  place-items:center;
  flex:0 0 25px;
  width:25px;
  height:25px;
  border-radius:7px;
  background:#f0f5f7;
  color:#658093;
  font-size:13px;
  font-weight:800;
}
.nav-link[href*="dashboard"]:before{content:"⌂"}
.nav-link[href*="reports"]:before{content:"▥"}
.nav-link[href*="patients"]:before{content:"♙"}
.nav-link[href*="doctors"]:before{content:"✚"}
.nav-link[href*="departments"]:before{content:"▦"}
.nav-link[href*="appointments"]:before{content:"▣"}
.nav-link[href*="emergency"]:before{content:"+"}
.nav-link[href*="encounters"]:before{content:"◉"}
.nav-link[href*="prescriptions"]:before{content:"▤"}
.nav-link[href*="wards"]:before{content:"▥"}
.nav-link[href*="beds"]:before{content:"▣"}
.nav-link[href*="admissions"]:before{content:"↳"}
.nav-link[href*="nursing"]:before{content:"♡"}
.nav-link[href*="surgeries"]:before{content:"✚"}
.nav-link[href*="tests"]:before{content:"⌕"}
.nav-link[href*="lab"]:before{content:"⚗"}
.nav-link[href*="medicines"]:before{content:"✚"}
.nav-link[href*="batches"]:before{content:"▧"}
.nav-link[href*="suppliers"]:before{content:"♧"}
.nav-link[href*="purchases"]:before{content:"↓"}
.nav-link[href*="sales"]:before{content:"↑"}
.nav-link[href*="services"]:before{content:"◇"}
.nav-link[href*="invoices"]:before{content:"▤"}
.nav-link[href*="payments"]:before{content:"৳"}
.nav-link[href*="expenses"]:before{content:"−"}
.nav-link[href*="staff"]:before{content:"♧"}
.nav-link[href*="attendance"]:before{content:"◷"}
.nav-link[href*="payroll"]:before{content:"৳"}
.nav-link[href*="assets"]:before{content:"▣"}
.nav-link[href*="users"]:before{content:"♙"}
.nav-link[href*="settings"]:before{content:"⚙"}
.nav-link[href*="audit"]:before{content:"☷"}
.nav-link:hover{
  color:#17666b;
  background:#f2f9f8;
  border-color:#e2f0ee;
  transform:translateX(2px);
}
.nav-link:hover:before{background:#e3f3f1;color:#087f82}
.nav-link.active{
  color:#076d70;
  background:linear-gradient(90deg,#e8f6f4 0%,#f3faf9 100%);
  border-color:#d5ece8;
  box-shadow:inset 3px 0 0 #0c9990;
  font-weight:780;
}
.nav-link.active:before{background:#d7efeb;color:#087b79}
.nav-bottom{
  padding:15px 19px 18px;
  border-top:1px solid var(--line);
  background:#fbfcfd;
  color:#718697;
  font-size:12px;
}
.nav-bottom a{display:flex;align-items:center;gap:8px;color:#496477;font-size:13px;font-weight:730}
.nav-bottom a:hover{color:var(--brand)}
.main{flex:1;min-width:0;margin-left:266px}
.topbar{
  position:sticky;
  top:0;
  z-index:25;
  display:flex;
  align-items:center;
  gap:14px;
  min-height:76px;
  padding:12px 30px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.94);
  box-shadow:0 3px 15px rgba(20,49,71,.035);
  backdrop-filter:blur(12px);
}
.topbar b{display:block;color:#1d3b52;font-size:14px;font-weight:780;line-height:1.35}
.top-name{min-width:0}
.top-name span{
  display:block;
  max-width:650px;
  margin-top:4px;
  overflow:hidden;
  color:#7a8e9e;
  font-size:11px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.account{
  min-width:128px;
  margin-left:auto;
  padding:7px 13px;
  border:1px solid #e2eaf0;
  border-radius:30px;
  background:#f8fafc;
  color:#29465b;
  font-size:12px;
  font-weight:780;
  text-align:right;
}
.account small{display:block;margin-top:1px;color:#8496a4;font-size:10px;font-weight:560}
#menuBtn{
  display:none;
  align-items:center;
  justify-content:center;
  padding:8px 11px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#f7fafb;
  color:#34566d;
}
.container{width:100%;max-width:1660px;margin:0 auto;padding:29px 32px 25px}

/* Headings and action buttons */
.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:23px;
}
.section-head>div:first-child{min-width:0}
.section-head p{margin:0;color:#718596;font-size:13px}
.eyebrow{
  margin-bottom:6px;
  color:#0a8882;
  font-size:10px;
  font-weight:850;
  letter-spacing:1.55px;
  text-transform:uppercase;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:40px;
  padding:9px 15px;
  border:1px solid #d9e3e9;
  border-radius:9px;
  background:#fff;
  color:#3b596e;
  font-size:12px;
  font-weight:750;
  line-height:1.3;
  text-align:center;
  box-shadow:0 1px 2px rgba(20,49,71,.035);
  transition:all .17s ease;
}
.btn:hover{transform:translateY(-1px);border-color:#b7d4d1;box-shadow:0 5px 13px rgba(20,49,71,.08)}
.btn.primary{
  border-color:#087f82;
  background:linear-gradient(135deg,#0b938c 0%,#08777e 100%);
  color:#fff;
  box-shadow:0 4px 11px rgba(8,127,130,.16);
}
.btn.primary:hover{border-color:#06696e;background:linear-gradient(135deg,#087e78,#06696e);color:#fff}
.btn.ghost{border-color:#e0e8ed;background:#f8fafc;color:#4d687b}
.btn.full{width:100%}

/* Dashboard cards */
.stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-bottom:20px;
}
.stat{
  position:relative;
  min-width:0;
  overflow:hidden;
  padding:19px 20px 18px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fff;
  box-shadow:var(--shadow-sm);
  transition:transform .18s ease,box-shadow .18s ease;
}
.stat:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.stat:after{
  position:absolute;
  top:-28px;
  right:-24px;
  width:94px;
  height:94px;
  border:17px solid rgba(8,127,130,.055);
  border-radius:50%;
  content:"";
}
.stat:before{
  position:absolute;
  top:16px;
  right:17px;
  z-index:1;
  display:grid;
  place-items:center;
  width:31px;
  height:31px;
  border-radius:9px;
  background:#edf8f6;
  color:#14877f;
  font-size:15px;
  font-weight:800;
}
.stat:nth-child(1):before{content:"♙"}
.stat:nth-child(2):before{content:"▣"}
.stat:nth-child(3):before{content:"⌂"}
.stat:nth-child(4):before{content:"▦"}
.stat:nth-child(5):before{content:"⚗"}
.stat:nth-child(6):before{content:"৳"}
.stat span{position:relative;z-index:2;display:block;padding-right:40px;color:#6d8191;font-size:12px;font-weight:700}
.stat strong{position:relative;z-index:2;display:block;margin:10px 0 4px;color:#1b3b52;font-size:27px;font-weight:820;line-height:1.25;letter-spacing:-.6px;overflow-wrap:anywhere}
.stat small{position:relative;z-index:2;color:#93a1ad;font-size:11px}
.dash-cols{display:grid;grid-template-columns:1.25fr 1fr;gap:18px}
.panel{
  margin-bottom:19px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  box-shadow:var(--shadow-sm);
}
.panel>h2{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 16px;
  padding-bottom:13px;
  border-bottom:1px solid #edf1f4;
  color:#25445a;
  font-size:16px;
}
.panel>h2:before{width:4px;height:18px;border-radius:4px;background:linear-gradient(180deg,#0b9b91,#3b85b5);content:""}
.actions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.actions-grid a{
  display:flex;
  align-items:center;
  min-height:48px;
  padding:12px 13px;
  border:1px solid #e3ecef;
  border-radius:9px;
  background:linear-gradient(135deg,#fbfdfd,#f5faf9);
  color:#315b6d;
  font-size:12px;
  font-weight:740;
  transition:all .17s ease;
}
.actions-grid a:hover{transform:translateY(-1px);border-color:#b8ded8;background:#eff9f7;color:#087b78}
.contact{padding:3px 1px}
.contact strong{display:block;margin-bottom:8px;color:#1d4056;font-size:14px}
.contact p{margin:7px 0;color:#6c8292;font-size:12px;overflow-wrap:anywhere}

/* Data tables */
.data-table{
  width:100%;
  overflow:auto;
  border:1px solid #e3eaf0;
  border-radius:10px;
  background:#fff;
}
table{width:100%;min-width:680px;border-collapse:separate;border-spacing:0;background:#fff}
thead th{
  position:sticky;
  top:0;
  z-index:2;
  padding:12px 14px;
  border-bottom:1px solid #dfe7ed;
  background:#f4f8fa;
  color:#60798b;
  font-size:10px;
  font-weight:850;
  letter-spacing:.65px;
  text-align:left;
  text-transform:uppercase;
  white-space:nowrap;
}
td{
  max-width:360px;
  padding:12px 14px;
  border-bottom:1px solid #edf1f4;
  color:#3b5366;
  font-size:12px;
  line-height:1.55;
  overflow-wrap:anywhere;
  vertical-align:middle;
}
tbody tr:last-child td{border-bottom:0}
tbody tr:nth-child(even) td{background:#fbfcfd}
tbody tr:hover td{background:#f0f8f7}
.small-link{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin:2px 5px 2px 0;
  color:#087d7d;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}
.small-link:hover{text-decoration:underline}

/* Forms */
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.field{display:flex;flex-direction:column;gap:7px;min-width:0}
.field>span{color:#425f73;font-size:12px;font-weight:760}
.field input,.field select,.field textarea{width:100%}
input,select,textarea{
  max-width:100%;
  min-height:44px;
  padding:10px 12px;
  border:1px solid #d5e0e7;
  border-radius:8px;
  background:#fff;
  color:#29465a;
  font-size:13px;
  line-height:1.45;
  box-shadow:inset 0 1px 2px rgba(20,49,71,.025);
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
input::placeholder,textarea::placeholder{color:#9aaab6}
input:hover,select:hover,textarea:hover{border-color:#b8cbd4}
input:focus,select:focus,textarea:focus{
  outline:0;
  border-color:#35a69d;
  box-shadow:0 0 0 3px rgba(8,127,130,.11);
}
textarea{min-height:94px;resize:vertical}
input[type=checkbox],input[type=radio]{width:auto;min-height:auto;accent-color:var(--brand)}
.field.wide,.form-grid>.wide{grid-column:1/-1}
.form-actions{
  grid-column:1/-1;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:4px;
  padding-top:18px;
  border-top:1px solid #e9eef2;
}
.search,.filters{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-bottom:17px}
.search input{width:min(390px,100%)}
.filters{
  padding:14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  box-shadow:var(--shadow-sm);
}
.form-inline{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.inline-form{display:inline-flex;align-items:center;gap:6px}
.inline-form select{min-height:34px;padding:6px 8px;font-size:11px}
.facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-bottom:20px}
.facts div{min-width:0;padding:12px 14px;border:1px solid #e6edf1;border-radius:9px;background:#f8fafb}
.facts small{display:block;margin-bottom:4px;color:#8295a3;font-size:9px;font-weight:850;letter-spacing:.55px;text-transform:uppercase}
.facts strong,.facts b{display:block;color:#2b4b60;font-size:12px;overflow-wrap:anywhere}
.clinical{margin:13px 0;white-space:normal}
.line-inputs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:10px}
.invoice-line{grid-template-columns:2fr 2fr 90px 125px}
.sale-line{grid-template-columns:4fr 100px}
.line-inputs input,.line-inputs select{width:100%;min-width:0}
.checkfield{display:flex;align-items:center;gap:8px}
.test-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.test-choices label{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:41px;
  padding:9px 11px;
  border:1px solid #e1e9ee;
  border-radius:8px;
  background:#f9fbfc;
  color:#405d70;
  font-size:12px;
}
.test-choices label:has(input:checked){border-color:#9ed7cf;background:#eff9f7}
.test-choices input{min-height:auto}
.inline-result{
  display:grid;
  grid-template-columns:1fr 2fr 1fr 110px;
  align-items:center;
  gap:10px;
  padding:12px 0;
  border-bottom:1px solid #e8eef2;
}
.inline-result input,.inline-result textarea{width:100%}
.result-name{color:#294a60;font-size:13px;font-weight:760}
.result-name small{display:block;margin-top:3px;color:#8598a6;font-size:10px;font-weight:520}

/* Alerts, chips and supporting text */
.alert{
  margin-bottom:16px;
  padding:12px 15px;
  border:1px solid transparent;
  border-radius:9px;
  font-size:12px;
  font-weight:650;
}
.alert.ok{border-color:#c9e8d8;background:#eff9f3;color:#18734e}
.alert.err{border-color:#efd2cf;background:#fff4f2;color:#a63e37}
.chip{display:inline-flex;align-items:center;padding:4px 9px;border-radius:20px;font-size:10px;font-weight:850;line-height:1.4}
.chip.red{background:#fff0ef;color:#b53d36}
.chip.orange{background:#fff6e7;color:#986515}
.chip.green{background:#eaf7ef;color:#247b51}
.muted{margin-top:10px;color:#8798a5;font-size:11px}

/* Invoice / printable reports */
.print-heading{margin:7px 0 24px;text-align:center}
.print-heading h1{font-size:22px}
.print-heading p{margin:2px;color:#5d7180;font-size:11px}
.print-heading h2{margin:17px auto;font-size:15px}
.print-heading hr{margin:14px 0;border:0;border-top:1px solid #bdcbd4}
.print-actions{margin-bottom:15px}
.amount-summary{padding:18px;text-align:right;color:#3c5668;font-size:13px}
.amount-summary>div,.amount-summary>strong{display:block;padding:3px}
.amount-summary strong{color:#193c52;font-size:19px}
.signature{margin-top:60px;color:#40596a;font-size:12px;text-align:right}
.total{margin-top:18px;color:#183d52;font-size:21px;font-weight:850;text-align:right}
.footer{padding:18px 10px;color:#8a9ba7;font-size:10px;text-align:center}

/* Login */
.login-bg{
  display:grid;
  place-items:center;
  min-height:100vh;
  padding:24px;
  background:
    radial-gradient(circle at 12% 16%,rgba(8,127,130,.12),transparent 29%),
    radial-gradient(circle at 91% 85%,rgba(57,125,184,.12),transparent 31%),
    linear-gradient(135deg,#edf3f6 0%,#f4f7f9 52%,#edf4f7 100%);
}
.login-card{
  width:min(100%,470px);
  padding:37px;
  border:1px solid rgba(255,255,255,.95);
  border-radius:19px;
  background:rgba(255,255,255,.97);
  box-shadow:0 22px 65px rgba(22,53,76,.14);
}
.login-mark{width:59px;height:59px;margin:0 auto 18px;border-radius:17px;font-size:27px}
.login-card .eyebrow,.login-card h1,.login-card>p{text-align:center}
.login-card h1{font-size:20px;line-height:1.4;letter-spacing:-.2px}
.login-card>p{color:#74899a;font-size:12px}
.login-card form .field{margin:14px 0}
.login-card .btn.full{width:100%;min-height:46px;margin-top:12px}
.login-footer{padding-top:14px;color:#8799a6;font-size:10px;line-height:1.65}

/* Responsive */
@media(max-width:1180px){
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dash-cols{grid-template-columns:1fr}
  .test-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:800px){
  aside#nav{transform:translateX(-100%);transition:transform .22s ease;box-shadow:12px 0 35px rgba(16,40,62,.17)}
  aside#nav.open{transform:translateX(0)}
  .main{margin-left:0}
  #menuBtn{display:inline-flex}
  .topbar{min-height:65px;padding:9px 13px;gap:10px}
  .topbar b{font-size:12px}
  .top-name span{max-width:210px;font-size:10px}
  .account{min-width:0;padding:6px 9px;font-size:10px}
  .account small{font-size:9px}
  .container{padding:19px 16px}
  .section-head{align-items:flex-start;flex-direction:column}
  .section-head h1{font-size:25px}
  .form-grid{grid-template-columns:1fr}
  .facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .line-inputs,.invoice-line,.sale-line{grid-template-columns:1fr 1fr}
  .line-inputs input:first-child,.line-inputs select:first-child{grid-column:1/-1}
  .stats{gap:11px}
  .stat{padding:16px}
  .stat strong{font-size:23px}
  .inline-result{grid-template-columns:1fr 1fr}
}
@media(max-width:520px){
  body{font-size:14px}
  h1{font-size:23px}
  .container{padding:15px 11px}
  .panel{padding:15px;border-radius:10px}
  .stats,.test-choices,.actions-grid{grid-template-columns:1fr}
  .facts{grid-template-columns:1fr}
  .stat{padding:15px}
  .stat strong{font-size:22px}
  .inline-result{grid-template-columns:1fr}
  .top-name span{display:none}
  .account{font-size:9px}
  .account small{font-size:8px}
  .form-actions{align-items:stretch}
  .form-actions .btn{flex:1}
  .search input{width:100%;flex:1}
  .search .btn{flex:0 0 auto}
  .data-table{border-radius:8px}
}
@media print{
  body{background:#fff;color:#111;font-size:10px}
  aside#nav,.topbar,.footer,.section-head,.print-actions,.btn,.search,.filters,.form-grid,.inline-result,.form-inline{display:none!important}
  .main{margin:0}
  .container{padding:0}
  .panel{padding:0;border:0;box-shadow:none}
  .data-table{overflow:visible;border:0}
  table{min-width:0}
  th,td{padding:5px 7px;font-size:9px}
  thead th{position:static;background:#f1f1f1;color:#222}
  .signature{page-break-inside:avoid}
  .print-heading{display:block}
  .facts{grid-template-columns:repeat(3,minmax(0,1fr))}
}


/* ==========================================================
   KPSFLEX-INSPIRED BLUE HOSPITAL DASHBOARD — v2.4
   Dashboard-specific visual layer
   ========================================================== */
:root{
  --kps-blue:#1769e8;
  --kps-blue-dark:#1059cb;
  --kps-cyan:#1ba7d6;
  --kps-ice:#edf4fc;
}
body{background:#f1f5fb}
aside#nav{background:#fff;border-right:1px solid #e7edf5;box-shadow:4px 0 22px rgba(25,61,105,.035)}
.brand{min-height:80px;background:#fff;border-bottom:1px solid #edf1f6}
.mark,.login-mark{background:linear-gradient(145deg,#1769e8,#2496d3);box-shadow:0 6px 15px rgba(23,105,232,.2)}
.brand b{color:#183754}
.nav-group{color:#92a2b5}
.nav-link{color:#53677e;border-radius:9px}
.nav-link:before{background:#f1f5fa;color:#5c82ac}
.nav-link:hover{background:#f0f6ff;border-color:#e2edff;color:#155fcf}
.nav-link:hover:before{background:#e1edff;color:#1769e8}
.nav-link.active{color:#155fcf;background:#eaf2ff;border-color:#dce9ff;box-shadow:inset 3px 0 0 #1769e8}
.nav-link.active:before{background:#dceaff;color:#1769e8}
.nav-bottom{background:#fbfcfe;border-top-color:#edf1f6}
.nav-bottom a:hover{color:#1769e8}
.main{background:#f1f5fb}
.topbar{
  min-height:68px;
  background:linear-gradient(105deg,#1261d8 0%,#1b73e8 55%,#2488ed 100%);
  border-bottom:0;
  box-shadow:0 4px 16px rgba(21,91,190,.15);
}
.topbar b{color:#fff}
.top-name span{color:#d9e8ff}
.account{background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.25);color:#fff}
.account small{color:#d8e8ff}
#menuBtn{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.25);color:#fff}
.container{max-width:1680px;padding-top:24px}
.section-head{margin-bottom:18px}
.eyebrow{color:#2874d7}

/* Welcome banner */
.welcome-hero{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  min-height:185px;
  margin:0 0 18px;
  padding:24px 30px;
  overflow:hidden;
  border-radius:15px;
  background:linear-gradient(112deg,#1768e6 0%,#1b75eb 58%,#2b8bed 100%);
  box-shadow:0 9px 22px rgba(25,103,219,.16);
  color:#fff;
}
.welcome-hero:before{
  position:absolute;
  top:-110px;
  right:20%;
  width:300px;
  height:300px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:50%;
  content:"";
}
.welcome-hero:after{
  position:absolute;
  right:-85px;
  bottom:-150px;
  width:340px;
  height:340px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:50%;
  content:"";
}
.welcome-copy{position:relative;z-index:2;max-width:690px}
.welcome-kicker{display:block;margin-bottom:8px;color:#cfe2ff;font-size:9px;font-weight:850;letter-spacing:1.5px}
.welcome-copy h1{margin:0 0 5px;color:#fff;font-size:25px;font-weight:800;letter-spacing:-.35px}
.welcome-copy>p{max-width:530px;margin:0;color:#e2eeff;font-size:12px;line-height:1.6}
.welcome-meta{margin-top:10px}
.today-pill{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border:1px solid rgba(255,255,255,.22);border-radius:20px;background:rgba(255,255,255,.12);color:#edf5ff;font-size:10px;font-weight:650}
.hero-metrics{display:flex;flex-wrap:wrap;gap:9px;margin-top:15px}
.hero-metrics>div{display:flex;align-items:center;gap:7px;min-width:112px;padding:7px 10px;border:1px solid rgba(255,255,255,.15);border-radius:8px;background:rgba(255,255,255,.13)}
.hero-metrics b{display:grid;place-items:center;min-width:24px;height:24px;border-radius:6px;background:rgba(255,255,255,.19);color:#fff;font-size:13px}
.hero-metrics span{color:#f0f6ff;font-size:10px;font-weight:650}
.hero-visual{position:relative;z-index:1;display:grid;place-items:center;flex:0 0 260px;min-height:150px}
.hero-orbit{position:absolute;border:1px solid rgba(255,255,255,.16);border-radius:50%}
.orbit-one{width:205px;height:145px;transform:rotate(-18deg)}
.orbit-two{width:165px;height:115px;transform:rotate(27deg)}
.hero-health-card{
  position:relative;
  width:190px;
  padding:10px 13px 11px;
  border:1px solid rgba(255,255,255,.45);
  border-radius:13px;
  background:linear-gradient(150deg,rgba(255,255,255,.97),rgba(237,247,255,.94));
  box-shadow:0 12px 28px rgba(9,54,137,.23);
  transform:rotate(-3deg);
}
.health-card-top{display:flex;align-items:center;gap:6px;color:#6686a6;font-size:8px;font-weight:850;letter-spacing:1px}
.health-cross{display:grid;place-items:center;width:20px;height:20px;border-radius:6px;background:#e4f0ff;color:#1769e8;font-size:13px}
.health-card-top i{width:5px;height:5px;margin-left:auto;border-radius:50%;background:#31c79a}
.health-building{position:relative;width:105px;height:70px;margin:7px auto 0}
.building-roof{position:absolute;top:0;left:13px;width:79px;height:15px;background:#4e9be9;clip-path:polygon(50% 0,100% 100%,0 100%)}
.building-body{position:absolute;top:13px;left:20px;display:grid;grid-template-columns:repeat(2,12px);grid-template-rows:repeat(2,10px);justify-content:space-between;gap:5px;width:65px;height:54px;padding:12px 9px 0;background:linear-gradient(90deg,#d6e8fb,#f3f8ff);border:1px solid #b9d6f3;border-bottom:4px solid #4d8fd2}
.building-cross{position:absolute;top:-7px;left:25px;display:grid;place-items:center;width:15px;height:15px;border-radius:4px;background:#1769e8;color:#fff;font-size:10px;font-weight:900}
.building-window{display:block;width:11px;height:9px;border-radius:2px;background:#72b9e9}
.building-door{position:absolute;bottom:0;left:25px;width:13px;height:19px;border-radius:4px 4px 0 0;background:#5d9ed9}
.health-pulse{height:23px;padding:1px 0 0;border-top:1px solid #e4edf7;color:#299bd4}
.health-pulse svg{width:100%;height:22px}
.hero-float{position:absolute;display:grid;place-items:center;border:1px solid rgba(255,255,255,.42);border-radius:10px;background:rgba(255,255,255,.92);color:#1b79dd;box-shadow:0 7px 16px rgba(9,54,137,.13);font-weight:900}
.float-cross{top:9px;right:18px;width:30px;height:30px;font-size:16px}
.float-heart{bottom:12px;left:11px;width:32px;height:32px;font-size:21px;color:#e06c82}
.float-plus{top:20px;left:16px;width:22px;height:22px;font-size:16px}

/* Metric cards */
.stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:18px}
.stat{
  min-height:104px;
  padding:16px 17px;
  border:1px solid #e6edf5;
  border-radius:11px;
  background:#fff;
  box-shadow:0 3px 12px rgba(36,75,126,.045);
}
.stat:after{top:-35px;right:-30px;width:95px;height:95px;border:16px solid rgba(31,116,223,.045)}
.stat:before{top:14px;right:14px;width:29px;height:29px;border-radius:8px;background:#eaf2ff;color:#1769e8}
.stat:nth-child(2):before{background:#e8f8ee;color:#31a76b}
.stat:nth-child(3):before{background:#fff2e7;color:#e29a42}
.stat:nth-child(4):before{background:#eaf5ff;color:#2a83d7}
.stat:nth-child(5):before{background:#f1edff;color:#8165d8}
.stat:nth-child(6):before{background:#fff7e7;color:#c18b28}
.stat span{color:#6f8195;font-size:11px}
.stat strong{margin:8px 0 2px;color:#183a5a;font-size:23px}
.stat small{color:#96a4b2;font-size:10px}

/* Analytics panels */
.analytics-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:15px;margin-bottom:16px}
.analytics-grid .panel{min-height:220px;margin-bottom:0}
.panel{border-color:#e5edf5;border-radius:12px;box-shadow:0 3px 12px rgba(36,75,126,.04)}
.panel>h2{padding-bottom:11px;border-bottom-color:#edf2f7;color:#2a4663;font-size:14px}
.panel>h2:before{background:linear-gradient(180deg,#1769e8,#31a5d4)}
.chart-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#6f8296;font-size:10px}
.chart-period{padding:4px 8px;border-radius:20px;background:#f1f6fd;color:#6d8cb0;font-size:9px;font-weight:750}
.bar-chart{display:flex;align-items:flex-end;justify-content:space-around;gap:13px;height:142px;padding:13px 5px 0}
.bar-column{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px;height:100%;min-width:0}
.bar-value{color:#6d8195;font-size:9px;font-weight:750}
.bar-track{display:flex;align-items:flex-end;justify-content:center;width:min(34px,75%);height:100%;overflow:hidden;border-radius:5px 5px 0 0;background:#f0f5fb}
.bar-track i{display:block;width:100%;min-height:5px;border-radius:5px 5px 0 0;background:linear-gradient(180deg,#22a8d3,#1769e8);box-shadow:0 2px 7px rgba(23,105,232,.16)}
.bar-column small{color:#899bad;font-size:9px}
.empty-chart{display:grid;place-items:center;min-height:135px;padding:15px;color:#94a4b2;font-size:11px;text-align:center}
.bed-summary{display:flex;align-items:center;justify-content:center;gap:26px;min-height:145px;padding:8px}
.bed-donut{display:grid;place-items:center;flex:0 0 125px;width:125px;height:125px;border-radius:50%;filter:drop-shadow(0 4px 7px rgba(29,75,130,.08))}
.bed-donut>div{display:flex;align-items:center;justify-content:center;flex-direction:column;width:82px;height:82px;border-radius:50%;background:#fff}
.bed-donut b{color:#1e4263;font-size:23px;line-height:1.2}
.bed-donut small{color:#8798a8;font-size:9px}
.bed-legend{display:flex;flex-direction:column;gap:12px;min-width:125px}
.bed-legend>div{display:grid;grid-template-columns:9px 1fr auto;align-items:center;gap:8px;color:#71869a;font-size:10px}
.bed-legend b{color:#284763;font-size:11px}
.legend-dot{width:8px;height:8px;border-radius:50%}
.legend-dot.available{background:#18b7a4}
.legend-dot.occupied{background:#2878df}
.legend-dot.maintenance{background:#d7e0e8}

/* Quick action and contact refinements */
.dash-cols{grid-template-columns:1.25fr 1fr;gap:15px;margin-bottom:16px}
.actions-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.actions-grid a{min-height:42px;padding:9px 10px;border-color:#e6edf5;background:#fbfdff;color:#3b5d7d;font-size:11px}
.actions-grid a:hover{border-color:#c9dcf6;background:#f0f6ff;color:#1769e8}
.action-plus{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;margin-right:8px;border-radius:6px;background:#e8f1ff;color:#1769e8;font-size:14px;font-weight:900}
.contact strong{color:#254b6b;font-size:13px}
.contact p{color:#74889b;font-size:11px}
.overview-foot{display:grid;grid-template-columns:1fr auto;gap:7px 14px;margin-top:13px;padding-top:12px;border-top:1px solid #edf2f7;color:#7c8fa1;font-size:10px}
.overview-foot b{color:#1769e8;font-size:12px}
.data-table{border-color:#e6edf5}
thead th{background:#f3f7fc;color:#6e8298}
tbody tr:hover td{background:#f2f7ff}
.small-link{color:#1769e8}
.btn.primary{border-color:#1769e8;background:linear-gradient(135deg,#1769e8,#267fe8);box-shadow:0 4px 11px rgba(23,105,232,.15)}
.btn.primary:hover{border-color:#1059cb;background:linear-gradient(135deg,#1059cb,#1b6ed7)}
input:focus,select:focus,textarea:focus{border-color:#4b91e5;box-shadow:0 0 0 3px rgba(23,105,232,.1)}
.alert.ok{border-color:#ccebd9;background:#effaf4;color:#18734e}
.alert.err{border-color:#f1d7d4;background:#fff5f3;color:#a63e37}

/* Responsive blue dashboard */
@media(max-width:1180px){
 .analytics-grid{grid-template-columns:1fr 1fr}
 .hero-visual{flex-basis:210px}
}
@media(max-width:800px){
 .topbar{background:linear-gradient(105deg,#1261d8,#2488ed)}
 .welcome-hero{min-height:170px;padding:21px 20px}
 .hero-visual{flex-basis:165px;transform:scale(.85);transform-origin:center right}
 .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .analytics-grid{grid-template-columns:1fr}
 .dash-cols{grid-template-columns:1fr}
}
@media(max-width:560px){
 .welcome-hero{padding:19px 16px}
 .welcome-copy h1{font-size:22px}
 .welcome-copy>p{max-width:100%;font-size:11px}
 .hero-visual{display:none}
 .hero-metrics{gap:6px}
 .hero-metrics>div{min-width:0;padding:6px 8px}
 .hero-metrics span{font-size:9px}
 .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .stat{min-height:96px;padding:13px}
 .stat strong{font-size:20px}
 .stat span{font-size:10px}
 .stat small{font-size:9px}
 .analytics-grid{grid-template-columns:1fr}
 .bed-summary{gap:15px}
 .bed-donut{flex-basis:108px;width:108px;height:108px}
 .bed-donut>div{width:72px;height:72px}
 .bed-legend{min-width:110px}
}
