/* Theme adapted to the user's MediCore dashboard reference; existing HMS components. */
@media screen {
 :root{--teal:#0e7c86;--teal-dark:#0b6871;--teal-light:#e4f2f3;--teal-mid:#0e7c8633;--signal:#0e7c86;--forest-2:#0e7c86;--ui-ink:#1b2530;--ui-body:#55636e;--ui-muted:#8a97a0;--ui-line:#e3e8ea;--ui-bg:#f5f7f8;--navy:#1b2530;--green:#2e9d6f;--red:#c1443c;--amber:#c9821a;--sidebar-w:260px;--header-h:68px;--ink:#1b2530;--muted:#55636e;--paper:#f5f7f8;--line:#e3e8ea;--mc-primary:#0e7c86;--mc-soft:#e4f2f3;--mc-border:#e3e8ea;--mc-text:#1b2530;--mc-muted:#8a97a0}
 body.hms-ui{background:#f5f7f8;color:#55636e;font:400 14px/1.55 'Inter',system-ui,sans-serif}
 .hms-ui :is(h1,h2,h3,h4){color:#1b2530;letter-spacing:-.02em}
 .hms-ui :focus-visible{outline-color:#0e7c86}
 /* Plain white navigation with the reference's slim teal selection marker. */
 .hms-ui .sidebar{border-color:#e3e8ea;box-shadow:none;background:#fff}
 .hms-ui .sidebar-logo{min-height:68px;padding:16px 20px;border-color:#e3e8ea}
 .hms-ui .sidebar-logo .brand{font-size:16px;font-weight:600;color:#1b2530;letter-spacing:0}
 .hms-ui .sidebar-brand-row .hospital-brand-icon{width:32px;height:32px;border-radius:6px}
 .hms-ui .sidebar-logo .sub,.hms-ui .sidebar-workspace{display:none}
 .hms-ui .sidebar-collapse-btn{border:0;background:transparent;color:#8a97a0}
 .hms-ui .sidebar-menu{padding:16px 12px}
 .hms-ui .sidebar .nav-label{font-size:11px;font-weight:600;letter-spacing:.06em;color:#8a97a0;padding:16px 12px 8px}
 .hms-ui .sidebar .nav-item{min-height:42px;padding:10px 12px;margin-bottom:2px;gap:12px;color:#55636e;font-size:13px;font-weight:500;line-height:20px;border:0;border-radius:6px;box-shadow:none}
 .hms-ui .sidebar .nav-item .icon{width:20px;height:20px;flex-basis:20px;border:0;border-radius:0;background:transparent;color:#73818b;box-shadow:none}
 .hms-ui .sidebar .nav-item .icon svg{width:18px;height:18px}
 .hms-ui .sidebar .nav-item:hover{background:#f9fafb;color:#1b2530;border:0}
 .hms-ui .sidebar .nav-item:hover .icon{background:transparent;color:#0e7c86;border:0}
 .hms-ui .sidebar .nav-item.active{background:#e4f2f3;color:#0b5c64;border:0;box-shadow:none}
 .hms-ui .sidebar .nav-item.active .icon{background:transparent;color:#0e7c86;border:0;box-shadow:none}
 .hms-ui .sidebar .nav-item.active::after{display:none}
 .hms-ui .sidebar .nav-item.active::before{content:'';position:absolute;left:-9px;top:6px;bottom:6px;width:3px;border-radius:2px;background:linear-gradient(135deg,#129099,#0a5a63)}
 .hms-ui .sidebar .nav-group[open]>summary{background:transparent;color:#1b2530;border:0}
 .hms-ui .sidebar .nav-group:has(.nav-item.active)>summary{color:#0e7c86}
 .hms-ui .sidebar .nav-submenu{border:0;margin:0;padding:2px 0 6px 32px}
 .hms-ui .sidebar .nav-submenu .nav-item{font-size:12px;min-height:36px;padding:8px 12px}
 .hms-ui .sidebar-settings,.hms-ui .sidebar-footer{border-color:#e3e8ea}
 .hms-ui .workspace-identity{border:0;background:#f9fafb;border-radius:6px}
 .hms-ui .workspace-identity:hover{background:#e4f2f3}
 .hms-ui .workspace-avatar{background:#e4f2f3;color:#0e7c86;border-radius:50%}
 .hms-ui .workspace-identity strong{color:#1b2530}.hms-ui .workspace-identity small{color:#8a97a0}
 .hms-ui .sidebar :is(a,button,summary):focus-visible{outline-color:#0e7c86}
 /* Understated top bar and account controls. */
 .hms-ui .header{background:#fff;border-color:#e3e8ea;box-shadow:none}
 .hms-ui .header-title{font-size:16px;color:#1b2530}.shell-breadcrumb{color:#8a97a0;font-size:12px}
 .hms-ui .shell-search{border-radius:6px;background:#f9fafb;border:1px solid #e3e8ea}
 .hms-ui .shell-search:focus-within{border-color:#0e7c86;box-shadow:0 0 0 3px #0e7c861a}
 .hms-ui .shell-search input{font-size:13px;color:#1b2530}.hms-ui .shell-search input::placeholder{color:#8a97a0}
 .hms-ui .shell-icon:hover{background:#e4f2f3;color:#0e7c86}
 .hms-ui .header .hd-avatar{background:#e4f2f3;color:#0e7c86;border-color:#fff;border-radius:50%}
 .hms-ui .header .hd-name{display:inline;font-size:13px;font-weight:600;color:#1b2530;margin:0 8px}
 .hms-ui .shell-footer{border-color:#e3e8ea;color:#8a97a0}.hms-ui .shell-footer a:hover{color:#0e7c86}
 .hms-ui .page{padding:24px 28px}
 .hms-ui .page .page-header h1{font-size:24px;color:#1b2530}
 .hms-ui .page :is(.card,.stat-card,.doctor-card,.dept-card,.merchant-card,.dx-panel,.dx-kpi){border:1px solid #e3e8ea;border-radius:10px;box-shadow:0 1px 2px #141e230f;background:#fff}
 .hms-ui .page .card-header{border-color:#e3e8ea;border-radius:10px 10px 0 0;padding:20px 24px}
 .hms-ui .page .card-body{padding:24px}
 .hms-ui .page .card-header h2,.hms-ui .dx-ph h2{font-size:15px;font-weight:600;color:#1b2530}
 .hms-ui .page .btn,.hms-ui .dx-btn{border-radius:6px;min-height:38px;font-size:13px;font-weight:500}
 .hms-ui .page .btn-primary,.hms-ui .dx-btn.sig{background:linear-gradient(135deg,#129099,#0a5a63);border-color:#0e7c86;color:#fff}
 .hms-ui .page .btn-primary:hover,.hms-ui .dx-btn.sig:hover{background:#0b6871;border-color:#0b6871}
 .hms-ui .page :is(.btn-outline,.btn-secondary),.hms-ui .dx-btn.ghost{background:#fff;border-color:#e3e8ea;color:#55636e}
 .hms-ui .page :is(.btn-outline,.btn-secondary):hover{border-color:#0e7c86;background:#e4f2f3;color:#0b5c64}
 .hms-ui .page :is(.form-control,.search-box){border-radius:6px;border-color:#cbd3d7;background:#fff;color:#1b2530;font-size:14px}
 .hms-ui .page .form-control:focus{border-color:#0e7c86;box-shadow:0 0 0 3px #0e7c861a}
 .hms-ui .page .form-label{color:#55636e}
 .hms-ui .page :is(.badge-teal,.badge-blue,.record-tab.active,.status-tab.active,.dept-tab.active){background:#e4f2f3;border-color:#c8e2e4;color:#0b5c64}
 .hms-ui .page :is(.badge-success,.badge-green){background:#e6f5ef;color:#2e9d6f}
 .hms-ui .page :is(.badge-warning,.badge-amber){background:#fbf0de;color:#c9821a}
 .hms-ui .page :is(.badge-danger,.badge-red){background:#fae7e5;color:#c1443c}
 .hms-ui .page .table-wrap>table thead th{background:#f9fafb;color:#8a97a0;font-size:11px;border-color:#e3e8ea}
 .hms-ui .page .table-wrap>table tbody td{font-size:13px;color:#55636e;border-color:#e3e8ea}
 .hms-ui .page .table-wrap>table tbody tr:hover td{background:#f9fafb}
 /* Dashboard 3 reference: open page header, joined statistics strip. */
 .hms-ui .page .dx-hero{display:block;background:transparent;border:0;box-shadow:none;padding:0;margin:0 0 24px;border-radius:0}
 .hms-ui .dx-hero>div:first-child{display:flex;flex-wrap:wrap;align-items:center;column-gap:24px}
 .hms-ui .dx-hero .dx-eyebrow{width:100%;margin-bottom:8px;color:#8a97a0;font-size:12px;text-transform:none;letter-spacing:0}
 .hms-ui .dx-hero h1{font-size:24px;font-weight:600;line-height:1.3;margin:0;color:#1b2530}
 .hms-ui .dx-hero p{width:100%;max-width:none;font-size:13px;color:#8a97a0;margin-top:8px}
 .hms-ui .dx-hero .dx-cta{margin-top:16px;gap:8px}
 .hms-ui .page .dx-kpis{gap:0;border:1px solid #e3e8ea;border-radius:14px;background:#fff;overflow:hidden;box-shadow:none;margin:0 0 24px}
 .hms-ui .page .dx-kpi{position:relative;border:0;border-right:1px solid #e3e8ea;border-radius:0;box-shadow:none;padding:20px 24px;gap:8px}
 .hms-ui .page .dx-kpi:last-child{border-right:0}.hms-ui .page a.dx-kpi:hover{background:#f9fafb;border-color:#e3e8ea}
 .hms-ui .dx-kpi .lbl{font-size:13px;text-transform:none;letter-spacing:0;color:#55636e;font-weight:400}
 .hms-ui .dx-kpi .val{font-size:28px;color:#1b2530;font-weight:700;margin:0}
 .hms-ui .dx-kpi .cap{color:#8a97a0;font-size:12px}.hms-ui .dx-kpi .dx-chip{display:none}
 .hms-ui .dx-grid{gap:24px;grid-template-columns:minmax(0,2fr) minmax(280px,1fr)}
 .hms-ui .dx-ph{padding:20px 24px}.hms-ui .dx-ph .ey{color:#8a97a0;font-size:11px}
 .hms-ui .dx-link{color:#0e7c86}.hms-ui .page :is(.dx-chip,.stat-icon,.metric-icon){background:#e4f2f3;color:#0e7c86;border-radius:10px}
 .hms-ui .page .dx-panel .card{border:0;border-top:1px solid #e3e8ea;border-radius:0;box-shadow:none}
 .hms-ui .dx-act:hover{background:#f9fafb}.hms-ui .dx-act strong{color:#1b2530;font-size:13px}.hms-ui .dx-act small{color:#8a97a0}
 .hms-ui .dx-note{background:#e4f2f3;border-color:#c8e2e4;color:#0b5c64}.hms-ui .dx-note b{color:#0b5c64}
 /* Carry the same accents into public and account pages. */
 body.hms-home{--signal:#0e7c86;--forest-2:#0b6871;--ink:#1b2530;--muted:#55636e;--paper:#f5f7f8;--line:#e3e8ea;background:#f5f7f8}
 .hms-ui .nav .login,.hms-ui .btn.sig,.hms-ui .btn.dk,.hms-ui .submit-btn{background:linear-gradient(135deg,#129099,#0a5a63);border-color:#0e7c86;color:#fff}
 .hms-ui .live,.hms-ui .ico{background:#e4f2f3;color:#0e7c86;border-color:#c8e2e4}
 .hms-ui .stage,.hms-ui .login-wrap-page{background:#f5f7f8}.hms-ui :is(.book,.dept,.role,.b){border-color:#e3e8ea;border-radius:10px}
 .hms-ui .login-intro{background:#e4f2f3;border-color:#c8e2e4}.hms-ui .login-eyebrow{color:#0e7c86}.hms-ui .login-features span{background:#fff;color:#0b5c64;border-color:#c8e2e4}
 .hms-ui .login-wrap-page :is(.auth-body a,.top-bar a){color:#0e7c86}
}
@media screen and (min-width:768px){.hms-ui .sidebar.collapsed .nav-item .icon{background:transparent;border:0}.hms-ui .sidebar.collapsed .nav-item.active::before{left:0}.hms-ui .sidebar.collapsed .sidebar-logo{min-height:104px}}
@media screen and (max-width:1199px){.hms-ui .shell-search:not(.expanded){background:transparent;border:0}.hms-ui .shell-search.expanded{border-color:#0e7c86}.hms-ui .header .hd-name{display:none}}
@media screen and (max-width:1023px){.hms-ui .page .dx-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.hms-ui .dx-kpi:nth-child(2){border-right:0}.hms-ui .page .dx-kpi:nth-child(n+3){border-top:1px solid #e3e8ea}.hms-ui .dx-grid{grid-template-columns:1fr}}
@media screen and (max-width:767px){.hms-ui .page{padding:20px 16px}.hms-ui .sidebar .nav-item,.hms-ui .sidebar .nav-submenu .nav-item{min-height:44px}.hms-ui .page .btn,.hms-ui .dx-btn{min-height:44px}.hms-ui .page .form-control{font-size:16px;min-height:44px}.hms-ui .dx-hero h1{font-size:22px}.hms-ui .page .dx-kpi{padding:20px}.hms-ui .dx-ph{padding:20px}.hms-ui .dx-hero>div:first-child{display:block}.hms-ui .dx-hero .dx-eyebrow{display:block}}
@media screen and (max-width:575px){.hms-ui .page .dx-kpis{grid-template-columns:1fr}.hms-ui .page .dx-kpi{border-right:0}.hms-ui .page .dx-kpi+.dx-kpi{border-top:1px solid #e3e8ea}}
