:root{
  --rhms-sky:#dff5ff;--rhms-sky2:#bfe9fb;--rhms-navy:#0d2b59;--rhms-green:#069b76;--rhms-green2:#08785e;
  --rhms-blue:#1565c0;--rhms-purple:#6a48c7;--rhms-orange:#e98918;--rhms-red:#d9424b;--rhms-text:#10213b;--rhms-muted:#65758b;
  --rhms-border:#d8e3ec;--rhms-focus:#fff4bf;--rhms-white:#fff;
}
html.rhms-active,body.rhms-active{margin:0!important;padding:0!important;overflow:hidden!important}
.rhms-app-shell,.rhms-admin-wrap,.rhms-app-shell *,.rhms-admin-wrap *{box-sizing:border-box;font-family:Inter,Segoe UI,Arial,sans-serif}
.rhms-app-shell{position:fixed;inset:0;z-index:2147480000;width:100vw;height:100vh;overflow:auto;color:var(--rhms-text)}
.rhms-login-bg,.rhms-registration-bg{background:linear-gradient(135deg,var(--rhms-sky) 0%,#eefcff 45%,var(--rhms-sky2) 100%);display:flex;align-items:flex-start;justify-content:center;padding:28px 16px}
.rhms-3d-card,.rhms-card-3d{background:#fff;border:1px solid rgba(13,43,89,.11);border-radius:24px;box-shadow:0 22px 55px rgba(22,86,120,.18),0 6px 0 rgba(8,75,107,.08);position:relative}
.rhms-login-card{width:min(440px,96vw);margin-top:10px;padding:28px 28px 24px;text-align:left}
.rhms-login-card h1{text-align:center;font-size:25px;line-height:1.25;margin:14px 0 2px;color:#00846d;font-weight:800}
.rhms-login-sub{text-align:center;color:#14765f;font-weight:700;font-size:13px;margin-bottom:22px}
.rhms-logo{width:64px;height:64px;border-radius:18px;margin:0 auto;background:linear-gradient(145deg,#fff,#eff7fb);border:1px solid #dce9ef;box-shadow:0 8px 16px rgba(13,43,89,.14),inset 0 2px 0 #fff;display:flex;align-items:center;justify-content:center;font-size:27px;font-weight:900;letter-spacing:-7px;color:#14286b}
.rhms-logo span{color:#18287d}.rhms-logo b{color:#e11b2d}.rhms-logo.small{width:48px;height:48px;border-radius:14px;font-size:20px;margin:0;flex:0 0 auto}
.admin2-logo{box-shadow:0 8px 18px rgba(12,31,67,.2)}
.rhms-login-card label{display:block;font-size:15px;font-weight:800;margin:12px 0 7px;color:#1c2535}
.rhms-login-card input[type=text],.rhms-login-card input[type=password]{width:100%;height:43px;border:1px solid #c9d6df;border-radius:9px;padding:0 12px;background:#fff;box-shadow:inset 0 2px 6px rgba(10,38,67,.04);outline:0}
.rhms-login-card input:focus,.rhms-reg-form input:focus,.rhms-reg-form select:focus,.rhms-reg-form textarea:focus,.rhms-dashboard-shell input:focus,.rhms-dashboard-shell select:focus,.rhms-dashboard-shell textarea:focus,.rhms-admin-wrap input:focus,.rhms-admin-wrap select:focus,.rhms-admin-wrap textarea:focus{background:var(--rhms-focus)!important;border-color:#02a780!important;box-shadow:0 0 0 3px rgba(4,157,118,.13),inset 0 1px 2px rgba(0,0,0,.03)!important;outline:0}
.rhms-check{display:flex!important;align-items:center;gap:8px!important;font-weight:500!important}.rhms-check input{width:auto!important}
.rhms-btn{border:0;border-radius:10px;padding:12px 18px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;text-decoration:none!important;cursor:pointer;transition:.16s ease;box-shadow:0 6px 0 rgba(0,0,0,.14),0 12px 18px rgba(0,0,0,.12);transform:translateY(0);color:#fff!important;line-height:1.15}
.rhms-btn:hover{transform:translateY(-2px);filter:brightness(1.03);color:#fff!important}.rhms-btn:active{transform:translateY(4px);box-shadow:0 2px 0 rgba(0,0,0,.14),0 6px 10px rgba(0,0,0,.10)}
.rhms-btn-login{width:100%;background:linear-gradient(180deg,#17b58c,#079a76);margin-top:8px;box-shadow:0 6px 0 #08745d,0 12px 22px rgba(6,155,118,.22)}
.rhms-btn-admin{background:linear-gradient(180deg,#173d78,#0b2856);box-shadow:0 6px 0 #071d40,0 12px 22px rgba(13,43,89,.25)}
.rhms-login-card>.rhms-btn-admin{width:100%;margin-top:12px}
.rhms-btn-submit{background:linear-gradient(180deg,#13a67e,#078c69);box-shadow:0 5px 0 #066c52,0 10px 17px rgba(6,145,109,.18)}
.rhms-btn-cancel{background:linear-gradient(180deg,#f4f5f6,#d7dde2);color:#263342!important;box-shadow:0 5px 0 #b5c0ca,0 10px 17px rgba(45,60,77,.1)}
.rhms-btn-purple{background:linear-gradient(180deg,#845ee6,#6841c4);box-shadow:0 5px 0 #4e2e9d,0 10px 18px rgba(104,65,196,.22)}
.rhms-btn-red{background:linear-gradient(180deg,#ef5b64,#cf313d);box-shadow:0 5px 0 #a9232e,0 10px 18px rgba(207,49,61,.2)}
.rhms-register-box{margin-top:14px;border:1px solid #b7dfd1;background:#effbf7;border-radius:11px;padding:10px;text-align:center;box-shadow:inset 0 1px 0 #fff}
.rhms-register-box span,.rhms-register-box small{display:block;font-size:11px;color:#526470}.rhms-register-box a{display:block;font-size:14px;font-weight:900;color:#00856d;text-decoration:underline;margin:5px 0}
.rhms-only-note{text-align:center;font-size:10px;color:#627189;margin-top:9px}.rhms-powered{text-align:center;font-size:10px;color:#77879b;margin-top:16px}.rhms-back-link{display:block;text-align:center;margin-top:18px;color:#0d2b59;font-weight:700}
.rhms-alert{padding:11px 13px;border-radius:10px;margin:12px 0;font-size:13px;font-weight:700}.rhms-alert.success{background:#e9fbf4;color:#087154;border:1px solid #b7e9d8}.rhms-alert.error{background:#fff0f1;color:#a72630;border:1px solid #f2c2c7}
.admin2-login-bg{background:radial-gradient(circle at 15% 15%,#d6ecff 0,transparent 25%),linear-gradient(135deg,#ccecff,#eaf6ff)}.admin2-card h1{color:#102f62}.admin2-card .rhms-login-sub{color:#65459e}

/* Registration */
.rhms-registration-bg{align-items:flex-start;padding:20px 16px 44px}.rhms-registration-card{width:min(920px,98vw);overflow:hidden;border-radius:20px;margin:0 auto}.rhms-registration-head{background:linear-gradient(145deg,#11a77f,#078d6b);padding:20px 24px;color:#fff;box-shadow:inset 0 -4px 0 rgba(0,0,0,.08)}.rhms-registration-head h1{font-size:22px;margin:0 0 7px;font-weight:900}.rhms-registration-head p{font-size:13px;margin:0;color:#eafff8}.rhms-reg-form{padding:18px 24px 20px}.rhms-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 14px}.field{min-width:0}.field.span-2{grid-column:1/-1}.field label{display:block;font-size:12px;font-weight:800;margin:0 0 6px;color:#183041}.field label em{font-style:normal;color:#e11d35}.field label small{font-weight:500;color:#6b7788}.field input,.field select,.field textarea,.rhms-inline-approve input,.rhms-filter-form input{width:100%;min-height:38px;border:1px solid #c7d8dc;border-radius:8px;background:#fff;padding:8px 10px;color:#132638;box-shadow:inset 0 1px 3px rgba(0,0,0,.035)}.field textarea{min-height:76px;resize:vertical}.field input[readonly]{background:#eef5f8;font-weight:800;color:#126b58}.rhms-form-actions{display:flex;gap:10px;margin-top:16px}.rhms-registration-foot{background:linear-gradient(180deg,#ffe885,#ffdd57);padding:13px;text-align:center;font-size:12px;font-weight:900;color:#1e2d36}.rhms-success-large{margin:28px;padding:24px;border-radius:14px;background:#ecfbf4;border:1px solid #b6ead5;color:#075c47;text-align:center;font-size:16px;line-height:1.7;box-shadow:inset 0 1px 0 #fff}

/* Full dashboard shell */
.rhms-dashboard-shell{background:#eef4f9;display:grid;grid-template-columns:265px minmax(0,1fr);overflow:hidden}.rhms-sidebar{height:100vh;display:flex;flex-direction:column;background:linear-gradient(180deg,#102f60 0%,#0a2248 55%,#071a39 100%);color:#fff;box-shadow:8px 0 26px rgba(10,31,66,.18);position:relative;z-index:2}.theme-admin2 .rhms-sidebar{background:linear-gradient(180deg,#34206c 0%,#24144f 55%,#170d36 100%)}
.rhms-sidebar-brand{padding:18px 14px;display:flex;align-items:center;gap:11px;border-bottom:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04)}.rhms-sidebar-brand strong{display:block;font-size:14px;max-width:160px}.rhms-sidebar-brand small{display:block;color:#cbd8ea;font-size:10px;margin-top:3px}.rhms-sidebar nav{padding:12px 9px;overflow:auto;flex:1}.rhms-sidebar nav a{display:flex;align-items:center;gap:10px;color:#dce8f7!important;text-decoration:none!important;padding:10px 10px;margin:4px 0;border-radius:10px;font-size:13px;font-weight:700;border:1px solid transparent;transition:.15s}.rhms-sidebar nav a i{font-style:normal;width:22px;text-align:center;font-size:16px}.rhms-sidebar nav a:hover{background:rgba(255,255,255,.10);transform:translateX(2px)}.rhms-sidebar nav a.active{background:linear-gradient(180deg,#18b68c,#079875);color:#fff!important;border-color:#36cba8;box-shadow:0 5px 0 #066d56,0 8px 18px rgba(0,0,0,.2)}.theme-admin2 .rhms-sidebar nav a.active{background:linear-gradient(180deg,#ff9c3e,#eb7315);border-color:#ffb36b;box-shadow:0 5px 0 #b14d08,0 8px 18px rgba(0,0,0,.2)}
.rhms-sidebar-foot{padding:12px;border-top:1px solid rgba(255,255,255,.12)}.rhms-sidebar-foot a{display:block;padding:9px;border-radius:8px;background:rgba(255,255,255,.08);color:#fff!important;text-decoration:none!important;font-weight:700;font-size:12px}.rhms-sidebar-foot small{display:block;text-align:center;color:#8ea7c4;font-size:9px;margin-top:9px}
.rhms-main-content{height:100vh;overflow:auto;padding:0 20px 40px;background:radial-gradient(circle at 90% 0,#dceeff 0,transparent 24%),#f3f7fb}.theme-admin2 .rhms-main-content{background:radial-gradient(circle at 90% 0,#eee4ff 0,transparent 24%),#f7f5fb}.rhms-topbar{position:sticky;top:0;z-index:5;margin:0 -20px 18px;padding:14px 20px;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dbe4ed;box-shadow:0 6px 18px rgba(30,64,99,.06)}.rhms-topbar h1{margin:0;font-size:20px;color:#173152}.rhms-topbar p{margin:4px 0 0;font-size:11px;color:#6a7b8f}.rhms-user-chip{display:flex;align-items:center;gap:8px;padding:7px 11px;border:1px solid #dce5ed;border-radius:12px;background:#fff;box-shadow:0 4px 11px rgba(19,50,86,.06)}.rhms-user-chip span{font-size:20px}.rhms-user-chip b,.rhms-user-chip small{display:block}.rhms-user-chip b{font-size:11px}.rhms-user-chip small{font-size:9px;color:#738398;max-width:220px}
.rhms-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:12px 0 18px}.rhms-stat-card{min-height:96px;border-radius:18px;padding:15px;display:flex;align-items:center;gap:12px;color:#fff;box-shadow:0 8px 0 rgba(0,0,0,.12),0 16px 25px rgba(27,54,83,.13);transform:perspective(900px) rotateX(1deg);position:relative;overflow:hidden}.rhms-stat-card:after{content:"";position:absolute;width:80px;height:80px;border-radius:50%;background:rgba(255,255,255,.12);right:-20px;top:-25px}.rhms-stat-card .icon{width:48px;height:48px;border-radius:14px;background:rgba(255,255,255,.19);display:grid;place-items:center;font-size:25px;box-shadow:inset 0 1px 0 rgba(255,255,255,.35)}.rhms-stat-card span{display:block;font-size:11px;font-weight:700;opacity:.9}.rhms-stat-card strong{display:block;font-size:23px;margin-top:5px}.rhms-stat-card.blue{background:linear-gradient(145deg,#3388e9,#1761b4)}.rhms-stat-card.green{background:linear-gradient(145deg,#27b989,#0b8b67)}.rhms-stat-card.purple{background:linear-gradient(145deg,#8a68df,#6444b8)}.rhms-stat-card.orange{background:linear-gradient(145deg,#ffad4a,#e77713)}.rhms-stat-card.red{background:linear-gradient(145deg,#ef6670,#ce3542)}
.rhms-card-3d{border-radius:17px;padding:17px;margin:14px 0;box-shadow:0 8px 0 #dfe8ef,0 15px 28px rgba(24,58,89,.08);overflow:visible}.rhms-card-3d h2{margin:0 0 15px;font-size:16px;color:#193451}.rhms-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.rhms-role-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.rhms-role-grid>div{padding:15px;border-radius:13px;background:linear-gradient(145deg,#f8fbff,#edf3f8);border:1px solid #dde8f0;box-shadow:0 5px 0 #dbe5ec}.rhms-role-grid b,.rhms-role-grid span{display:block}.rhms-role-grid b{font-size:14px;color:#16365c}.rhms-role-grid span{font-size:11px;color:#6d7d90;margin-top:6px;line-height:1.45}
.rhms-card-3d hr{border:0;border-top:1px solid #e4eaf0;margin:20px 0}.rhms-card-3d .field{margin-bottom:10px}.rhms-card-3d .rhms-form-grid{gap:12px}.rhms-card-3d form>.rhms-btn{margin-top:6px}
.rhms-table-wrap{overflow:auto;border:1px solid #e0e7ed;border-radius:12px}.rhms-table{width:100%;border-collapse:collapse;background:#fff;min-width:680px}.rhms-table th,.rhms-table td{padding:10px 11px;text-align:left;border-bottom:1px solid #e9eef2;vertical-align:top;font-size:11px}.rhms-table th{background:linear-gradient(180deg,#f3f7fa,#eaf0f5);font-weight:900;color:#2b435d;position:sticky;top:0}.rhms-table tr:last-child td{border-bottom:0}.rhms-table tr:hover td{background:#fbfdff}.rhms-table td small{display:block;color:#7d8b9c;margin-top:4px;font-size:9px;line-height:1.35}.rhms-status{display:inline-block;padding:4px 8px;border-radius:999px;font-size:9px;font-weight:900;text-transform:uppercase;background:#e7edf4;color:#4f637a}.rhms-status.active,.rhms-status.approved,.rhms-status.reported{background:#def7ec;color:#087252}.rhms-status.inactive,.rhms-status.rejected{background:#ffe2e5;color:#a52934}.rhms-status.pending{background:#fff0cf;color:#945d08}.rhms-mini-btn{display:inline-block;border:0;border-radius:7px;padding:7px 9px;font-size:9px;font-weight:900;color:#fff!important;text-decoration:none!important;background:linear-gradient(180deg,#526b87,#344b65);box-shadow:0 3px 0 #25384d;cursor:pointer;white-space:nowrap}.rhms-mini-btn.green{background:linear-gradient(180deg,#1eb287,#087a5d);box-shadow:0 3px 0 #075a46}.rhms-mini-btn.red{background:linear-gradient(180deg,#ed5d66,#c9313d);box-shadow:0 3px 0 #9e2530}.rhms-mini-btn.blue{background:linear-gradient(180deg,#3b8ee5,#1a61ad);box-shadow:0 3px 0 #154c86}.rhms-mini-btn.orange{background:linear-gradient(180deg,#f3a448,#db7417);box-shadow:0 3px 0 #ad560d}.rhms-inline-form{display:inline-block;margin:3px}.rhms-inline-approve{display:flex;flex-wrap:wrap;gap:5px;align-items:center}.rhms-inline-approve input{width:120px;min-height:30px;padding:5px 7px;font-size:10px}.rhms-inline-approve input[type=date]{width:125px}.rhms-info-list p{display:flex;justify-content:space-between;gap:15px;border-bottom:1px dashed #dde5ec;padding:8px 0;margin:0;font-size:11px}.rhms-info-list p:last-child{border-bottom:0}.rhms-info-list span{text-align:right;color:#52677e}.rhms-chip-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.rhms-chip-list span{padding:6px 9px;border-radius:999px;background:#e8f6f1;color:#087156;font-size:10px;font-weight:800}.rhms-filter-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.rhms-filter-form label{font-size:11px;font-weight:800}.rhms-filter-form input{display:block;margin-top:5px}

/* WP Admin master panel */
.rhms-admin-wrap{max-width:1500px;margin:18px 20px 40px 0}.rhms-admin-hero{padding:20px 22px;border-radius:18px;background:linear-gradient(145deg,#173b72,#0c2852);color:#fff;display:flex;justify-content:space-between;align-items:center;gap:20px;box-shadow:0 8px 0 #071c3b,0 16px 28px rgba(13,43,89,.23)}.rhms-admin-hero h1{color:#fff;margin:0;font-size:23px}.rhms-admin-hero p{margin:6px 0 0;color:#cad8eb}.rhms-admin-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.rhms-admin-tabs a{padding:10px 14px;border-radius:10px;background:#fff;border:1px solid #dbe5ed;text-decoration:none;font-weight:800;color:#29445f;box-shadow:0 4px 0 #d7e0e8}.rhms-admin-tabs a.active{background:linear-gradient(180deg,#1eb489,#0b8d69);color:#fff;box-shadow:0 4px 0 #07664e;border-color:#15a881}

@media(max-width:1000px){.rhms-dashboard-shell{grid-template-columns:220px 1fr}.rhms-role-grid{grid-template-columns:1fr}.rhms-grid-2{grid-template-columns:1fr}}
@media(max-width:760px){.rhms-login-bg,.rhms-registration-bg{padding:12px 8px}.rhms-login-card{padding:21px 17px;border-radius:18px}.rhms-login-card h1{font-size:20px}.rhms-registration-card{border-radius:14px}.rhms-registration-head{padding:16px}.rhms-registration-head h1{font-size:18px}.rhms-reg-form{padding:14px}.rhms-form-grid{grid-template-columns:1fr}.field.span-2{grid-column:auto}.rhms-dashboard-shell{display:block}.rhms-sidebar{position:fixed;left:-240px;width:235px;z-index:20;transition:.2s}.rhms-dashboard-shell.mobile-menu-open .rhms-sidebar{left:0}.rhms-main-content{height:100vh;padding:0 10px 30px}.rhms-topbar{margin:0 -10px 14px;padding:11px 10px;padding-left:52px}.rhms-topbar:before{content:"☰";position:absolute;left:12px;top:17px;font-size:23px;cursor:pointer}.rhms-topbar h1{font-size:16px}.rhms-user-chip small{display:none}.rhms-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rhms-stat-card{min-height:82px;padding:11px}.rhms-stat-card strong{font-size:18px}.rhms-stat-card .icon{width:39px;height:39px;font-size:20px}.rhms-card-3d{padding:13px;border-radius:13px}.rhms-grid-2{grid-template-columns:1fr}.rhms-admin-hero{align-items:flex-start;flex-direction:column}.rhms-admin-wrap{margin-right:10px}.rhms-inline-approve{min-width:300px}}
@media(max-width:450px){.rhms-stat-grid{grid-template-columns:1fr}.rhms-form-actions{flex-direction:column}.rhms-form-actions .rhms-btn{width:100%}.rhms-topbar .rhms-user-chip{display:none}}
.theme-super .rhms-sidebar{background:linear-gradient(180deg,#0f4777 0%,#0b355e 52%,#082746 100%)}
.theme-super .rhms-sidebar nav a.active{background:linear-gradient(180deg,#21b8a0,#0b8e7b);border-color:#4cd0bc;box-shadow:0 5px 0 #06695b,0 8px 18px rgba(0,0,0,.2)}
.theme-super .rhms-main-content{background:radial-gradient(circle at 90% 0,#d6f1ff 0,transparent 24%),#f3f8fb}

/* v4 Total ERP enhancements */
.rhms-nav-group{padding:14px 10px 5px;color:#87a9d5;font-size:9px;font-weight:900;letter-spacing:.8px;text-transform:uppercase;border-bottom:1px solid rgba(255,255,255,.07);margin-bottom:4px}
.theme-admin2 .rhms-nav-group{color:#c9b9f5}.rhms-sidebar nav::-webkit-scrollbar{width:6px}.rhms-sidebar nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22);border-radius:10px}
.rhms-quick-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin-top:15px}.rhms-quick-grid a{min-height:92px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;text-align:center;text-decoration:none!important;color:#14345f!important;background:linear-gradient(145deg,#fff,#e8f1fb);border:1px solid #d5e3f1;border-radius:15px;box-shadow:0 6px 0 #c5d4e3,0 10px 22px rgba(24,61,100,.12);font-weight:800;padding:12px;transition:.16s}.rhms-quick-grid a:hover{transform:translateY(-3px);box-shadow:0 9px 0 #c5d4e3,0 14px 28px rgba(24,61,100,.16)}.rhms-quick-grid a i{font-style:normal;font-size:28px}.rhms-quick-grid a span{font-size:12px;line-height:1.25}
.rhms-module-hero{display:flex;align-items:center;justify-content:space-between;background:linear-gradient(135deg,#f8fdff,#edf7ff)}.rhms-module-hero h2{margin-bottom:4px}.rhms-module-hero p{margin:0;color:#5e7187}.rhms-module-badge{display:inline-flex;align-items:center;justify-content:center;min-width:72px;height:42px;border-radius:13px;background:linear-gradient(180deg,#18b68c,#078b6d);color:#fff;font-weight:900;letter-spacing:1px;box-shadow:0 5px 0 #066d56,0 9px 17px rgba(7,139,109,.25)}
.rhms-form-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:15px}.rhms-btn-light{background:linear-gradient(180deg,#fff,#edf2f7)!important;color:#28435f!important;border:1px solid #d7e0e9!important;box-shadow:0 4px 0 #cad5df!important}.rhms-inline-form{display:inline-block;margin:0}.rhms-mini-btn{display:inline-block;border:0;border-radius:8px;padding:6px 9px;background:linear-gradient(180deg,#fff,#e9f1f8);box-shadow:0 3px 0 #c9d5e0;color:#16395f!important;text-decoration:none!important;font-size:11px;font-weight:800;cursor:pointer}.rhms-mini-btn.danger{background:linear-gradient(180deg,#ff8a8a,#e84b4b);color:#fff!important;box-shadow:0 3px 0 #b32d2d}.rhms-status-pill{display:inline-block;padding:4px 8px;border-radius:999px;background:#e5f7f1;color:#08765b;font-size:10px;font-weight:900;text-transform:capitalize}
.rhms-stat-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.rhms-stat-grid.compact .rhms-stat-card{min-height:90px}
.rhms-chart-3d{min-height:210px;display:flex;align-items:flex-end;gap:12px;overflow-x:auto;padding:20px 10px 4px;border-radius:14px;background:linear-gradient(180deg,#f8fbff,#edf4fa);box-shadow:inset 0 1px 0 #fff}.rhms-chart-col{min-width:48px;display:flex;flex-direction:column;align-items:center;gap:6px}.rhms-bars{height:160px;display:flex;align-items:flex-end;gap:5px}.rhms-bars span{width:14px;display:block;border-radius:5px 5px 2px 2px;box-shadow:3px 3px 0 rgba(0,0,0,.12),inset 2px 0 0 rgba(255,255,255,.35)}.rhms-bars .income{background:linear-gradient(180deg,#27d7a5,#07916c)}.rhms-bars .expense{background:linear-gradient(180deg,#ff8d8d,#d94848)}.rhms-chart-col small{font-size:9px;color:#61738a}.rhms-chart-legend{display:flex;gap:20px;margin-top:12px;font-size:11px;font-weight:800}.rhms-chart-legend span:first-child{color:#078b6d}.rhms-chart-legend span:last-child{color:#d94848}
@media(max-width:760px){.rhms-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rhms-module-hero{align-items:flex-start;gap:10px}.rhms-module-badge{min-width:58px;height:36px}.rhms-nav-group{padding-top:12px}}

/* v4.1 Master Admin Full ERP launcher */
.rhms-hospital-launch-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:12px}
.rhms-hospital-launch{display:flex;flex-direction:column;gap:5px;padding:15px;border-radius:14px;text-decoration:none!important;background:linear-gradient(145deg,#fff,#edf5fb);border:1px solid #d7e4ee;box-shadow:0 5px 0 #cbd8e2,0 10px 20px rgba(26,63,94,.08);color:#173b63!important}
.rhms-hospital-launch:hover,.rhms-hospital-launch.active{transform:translateY(-2px);border-color:#18a985;background:linear-gradient(145deg,#f7fffc,#e8fbf5);box-shadow:0 6px 0 #9ed7c7,0 12px 24px rgba(8,138,103,.12)}
.rhms-hospital-launch b{font-size:14px}.rhms-hospital-launch span{font-size:11px;color:#65788c}.rhms-hospital-launch em{font-style:normal;font-size:9px;text-transform:uppercase;font-weight:900;color:#078765}
.rhms-admin-module-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px;margin-top:14px}
.rhms-admin-module-card{min-height:115px;padding:14px;border-radius:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-align:center;text-decoration:none!important;color:#183c64!important;background:linear-gradient(145deg,#fff,#edf4fb);border:1px solid #d6e2ed;box-shadow:0 6px 0 #c9d6e1,0 12px 23px rgba(18,56,89,.10);transition:.15s}
.rhms-admin-module-card:hover{transform:translateY(-3px);box-shadow:0 9px 0 #c9d6e1,0 16px 29px rgba(18,56,89,.14)}
.rhms-admin-module-card.featured{background:linear-gradient(145deg,#effff9,#dff8ef);border-color:#27b891;box-shadow:0 6px 0 #96d6c4,0 12px 23px rgba(8,139,104,.14)}
.rhms-admin-module-card i{font-style:normal;font-size:30px}.rhms-admin-module-card b{font-size:12px;line-height:1.25}.rhms-admin-module-card span{font-size:9px;color:#718297;text-transform:uppercase;font-weight:800;letter-spacing:.35px}
.rhms-erp-note{margin:-4px 0 8px;color:#62758a;font-size:12px}
@media(max-width:760px){.rhms-admin-module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rhms-hospital-launch-grid{grid-template-columns:1fr}}


/* 4.2 full-screen standalone portal */
html.rhms-active, body.rhms-active, body.rhms-standalone-page {width:100%!important;height:100%!important;overflow:hidden!important;background:#eef7fb!important}
body.rhms-standalone-page #wpadminbar{display:none!important}
body.rhms-standalone-page{padding:0!important;margin:0!important}
body.rhms-standalone-page .rhms-app-shell{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important}
body.rhms-standalone-page .rhms-dashboard-shell{grid-template-columns:290px minmax(0,1fr)}
body.rhms-standalone-page .rhms-sidebar{height:100dvh!important}
body.rhms-standalone-page .rhms-main-content{height:100dvh!important}
@media(max-width:760px){body.rhms-standalone-page .rhms-app-shell{height:100dvh!important}body.rhms-standalone-page .rhms-main-content{padding-bottom:24px}}


/* 5.0 redesign */
:root{--rhms-rose:#ffebf4;--rhms-lilac:#efe6ff;--rhms-candy:#f5d6ea}
.rhms-sidebar-brand{background:linear-gradient(135deg,rgba(255,255,255,.09),rgba(255,255,255,.03))}
.rhms-sidebar nav a{box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
.rhms-main-content{background:radial-gradient(circle at 100% 0,#fde8f5 0,transparent 23%),radial-gradient(circle at 0 100%,#e4f6ff 0,transparent 26%),linear-gradient(180deg,#f7fbff 0%,#eff5fb 100%)}
.rhms-card-3d{background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);border:1px solid #dce7f1;box-shadow:0 12px 0 #dfe9f2,0 20px 30px rgba(26,63,94,.10);padding:16px;border-radius:18px}
.rhms-card-3d h2{margin-top:0;color:#163a63}.rhms-card-3d h3{margin:0 0 10px;color:#173a61}
.rhms-feature-board{background:linear-gradient(135deg,#fff 0%,#f4efff 100%)}
.rhms-feature-board.pink{background:linear-gradient(135deg,#fff 0%,#fff1f5 100%)}
.rhms-bullet-list{margin:0;padding-left:18px;display:grid;gap:8px}.rhms-bullet-list li{font-size:13px;color:#29445f;font-weight:700}
.rhms-prescription-wrap{display:grid;gap:16px}
.rhms-prescription-card{background:linear-gradient(135deg,#fff 0%,#eefbff 52%,#fff1f6 100%)}
.rhms-prescription-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:14px}
.rhms-prescription-head p{margin:6px 0 0;color:#5b6e82;font-size:12px}
.rhms-prescription-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.rhms-prescription-grid .inner{padding:14px;box-shadow:0 8px 0 #e4ecf4,0 14px 24px rgba(23,57,89,.08)}
.rhms-prescription-grid .inner:nth-child(1){background:linear-gradient(135deg,#fff,#eefcf7)}
.rhms-prescription-grid .inner:nth-child(2){background:linear-gradient(135deg,#fff,#eef5ff)}
.rhms-prescription-grid .inner:nth-child(3){background:linear-gradient(135deg,#fff,#fff0f8)}
.rhms-table th{background:linear-gradient(180deg,#eff6fd,#e1ebf5);color:#173b63}
.rhms-table tr:nth-child(even) td{background:#fbfdff}
@media(max-width:1100px){.rhms-prescription-grid{grid-template-columns:1fr}}


/* 5.1 compact accordion sidebar + searchable combo + dashboard charts */
body.rhms-standalone-page .rhms-dashboard-shell{grid-template-columns:250px minmax(0,1fr)}
.rhms-sidebar nav{padding:7px 7px}
.rhms-sidebar nav a{padding:7px 9px;margin:2px 0;font-size:11px;border-radius:8px;gap:7px;min-height:31px}
.rhms-sidebar nav a i{font-size:14px;width:18px}.rhms-sidebar-brand{padding:10px 10px}.rhms-sidebar-brand .rhms-logo.small{width:38px;height:38px;font-size:17px}.rhms-sidebar-brand strong{font-size:12px}
.rhms-nav-accordion{margin:2px 0;border-radius:9px;overflow:hidden;border:1px solid rgba(255,255,255,.055)}
.rhms-nav-parent{width:100%;border:0;background:rgba(255,255,255,.045);color:#dce8f7;padding:7px 9px;display:flex;align-items:center;justify-content:space-between;font-size:10px;font-weight:900;letter-spacing:.25px;cursor:pointer;text-transform:uppercase}
.rhms-nav-parent b{font-size:14px;transition:.15s}.rhms-nav-accordion.open .rhms-nav-parent b{transform:rotate(180deg)}
.rhms-nav-children{display:none;padding:2px 4px 4px}.rhms-nav-accordion.open .rhms-nav-children{display:block}.rhms-single-nav{margin-bottom:4px!important}
.rhms-combo{position:relative;width:100%}.rhms-combo-original{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important;left:-9999px!important}
.rhms-combo-input{width:100%!important;min-height:38px!important;border:1px solid #c7d8dc!important;border-radius:8px!important;background:#fff!important;padding:8px 34px 8px 10px!important;color:#132638!important;box-shadow:inset 0 1px 3px rgba(0,0,0,.035)!important}
.rhms-combo-toggle{position:absolute;right:4px;top:4px;width:30px;height:30px;border:0;background:transparent;color:#58708a;font-weight:900;font-size:16px;cursor:pointer;border-radius:7px}.rhms-combo-toggle:hover{background:#edf5fb}.rhms-combo-drop{display:none;position:absolute;z-index:9999;left:0;right:0;top:calc(100% + 4px);max-height:230px;overflow:auto;background:#fff;border:1px solid #cbd9e5;border-radius:10px;box-shadow:0 14px 28px rgba(20,52,83,.18);padding:4px}.rhms-combo-drop.show{display:block}.rhms-combo-item{padding:8px 9px;border-radius:7px;font-size:12px;cursor:pointer}.rhms-combo-item:hover,.rhms-combo-item.active{background:#e9f8f4;color:#08735a;font-weight:800}
.rhms-dashboard-stats{grid-template-columns:repeat(4,minmax(145px,1fr))}.rhms-dashboard-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.rhms-wide-chart{grid-column:1/-1}.rhms-pie-row{display:flex;align-items:center;gap:24px;min-height:220px}.rhms-pie-3d{--p:50;width:170px;height:170px;border-radius:50%;background:conic-gradient(#2687e9 calc(var(--p)*1%),#f05a9d 0);box-shadow:0 12px 0 #c9d7e4,0 20px 30px rgba(20,55,88,.16);transform:rotate(-10deg);position:relative;flex:0 0 auto}.rhms-pie-3d:after{content:'';position:absolute;inset:23px;border-radius:50%;background:#fff;box-shadow:inset 0 5px 12px rgba(0,0,0,.08)}.rhms-pie-3d.bed{background:conic-gradient(#19aa82 calc(var(--p)*1%),#f0b14d 0)}
.rhms-chart-details{flex:1}.rhms-chart-details p{display:flex;justify-content:space-between;gap:12px;border-bottom:1px dashed #dbe5ee;padding:9px 0;margin:0;font-size:12px}.rhms-chart-details span{font-weight:900;color:#183d66}.rhms-activity-bars{height:230px;display:flex;align-items:flex-end;gap:18px;padding:20px 12px 8px;overflow-x:auto;background:linear-gradient(180deg,#f9fcff,#edf4fa);border-radius:15px}.rhms-activity-col{min-width:75px;display:flex;flex-direction:column;align-items:center;gap:8px}.rhms-activity-bar{width:38px;min-height:10px;background:linear-gradient(90deg,#177bd2,#42a5f5);border-radius:8px 8px 3px 3px;box-shadow:7px 7px 0 rgba(13,76,133,.18),inset 5px 0 0 rgba(255,255,255,.16);display:flex;align-items:flex-start;justify-content:center;padding-top:4px;color:#fff;font-size:10px}.rhms-activity-col:nth-child(2n) .rhms-activity-bar{background:linear-gradient(90deg,#12a77f,#37cfaa)}.rhms-activity-col:nth-child(3n) .rhms-activity-bar{background:linear-gradient(90deg,#7d54d8,#a986ef)}.rhms-activity-col span{font-size:10px;font-weight:800;text-align:center;color:#52677e}.rhms-finance-card{grid-column:1/-1}.rhms-finance-3d{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.rhms-finance-3d>div{padding:18px;border-radius:14px;background:linear-gradient(145deg,#fff,#e9f4fb);box-shadow:0 7px 0 #d3e0ea,0 13px 20px rgba(20,55,88,.08)}.rhms-finance-3d span{display:block;font-size:11px;color:#64778c}.rhms-finance-3d b{display:block;font-size:22px;color:#143b63;margin-top:5px}
@media(max-width:1100px){.rhms-dashboard-stats{grid-template-columns:repeat(2,minmax(140px,1fr))}.rhms-dashboard-chart-grid{grid-template-columns:1fr}.rhms-wide-chart,.rhms-finance-card{grid-column:auto}}
@media(max-width:760px){body.rhms-standalone-page .rhms-dashboard-shell{display:block}.rhms-pie-row{flex-direction:column;align-items:flex-start}.rhms-finance-3d{grid-template-columns:1fr}.rhms-dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.rhms-sidebar{width:245px;left:-250px}.rhms-sidebar nav{padding-bottom:30px}}
@media(max-width:440px){.rhms-dashboard-stats{grid-template-columns:1fr}.rhms-pie-3d{width:145px;height:145px}}


/* Rezia Nova HMIS v6.0 — premium unique interface */
:root{--nova-navy:#072a4d;--nova-cyan:#00a6a6;--nova-mint:#14b88a;--nova-violet:#6f5bd7;--nova-gold:#f3b23c;--nova-surface:#f4f9fd}
body.rhms-standalone-page .rhms-dashboard-shell{grid-template-columns:238px minmax(0,1fr)!important;background:#eef6fb}
.rhms-sidebar{background:linear-gradient(180deg,#082f55 0%,#092746 52%,#061b33 100%)!important;box-shadow:10px 0 30px rgba(4,30,56,.18)!important}
.rhms-sidebar-brand{padding:12px 10px!important;min-height:66px;background:linear-gradient(135deg,rgba(0,196,180,.20),rgba(112,91,215,.14))!important}
.rhms-sidebar-brand .rhms-logo.small{width:38px!important;height:38px!important;border-radius:11px!important;font-size:17px!important}
.rhms-sidebar-brand strong{font-size:12px!important;line-height:1.2}.rhms-sidebar-brand small{font-size:9px!important}
.rhms-sidebar nav{padding:7px!important}.rhms-single-nav{padding:8px 9px!important;margin:2px 0!important}
.rhms-nav-accordion{margin:2px 0;border-radius:9px;overflow:hidden;border:1px solid rgba(255,255,255,.055)}
.rhms-nav-parent{width:100%;border:0;background:rgba(255,255,255,.035);color:#d8e8f7;display:flex;align-items:center;justify-content:space-between;padding:8px 9px;font-size:10px;font-weight:900;letter-spacing:.45px;text-transform:uppercase;cursor:pointer}
.rhms-nav-parent:hover{background:rgba(255,255,255,.08)}.rhms-nav-parent b{transition:.18s}.rhms-nav-accordion.open .rhms-nav-parent b{transform:rotate(180deg)}
.rhms-nav-children{display:none;padding:2px 3px 5px}.rhms-nav-accordion.open .rhms-nav-children{display:block}
.rhms-sidebar nav .rhms-nav-children a{padding:6px 7px!important;margin:2px 0!important;font-size:10.5px!important;border-radius:7px!important;gap:6px!important}
.rhms-sidebar nav .rhms-nav-children a i{width:17px!important;font-size:12px!important}.rhms-sidebar nav a.active{background:linear-gradient(135deg,#10bd91,#00a2a8)!important;border-color:#39dcc1!important;box-shadow:0 3px 0 #087d74,0 7px 14px rgba(0,0,0,.16)!important}
.rhms-main-content{padding:0 14px 28px!important;background:radial-gradient(circle at 88% -5%,rgba(111,91,215,.13),transparent 25%),radial-gradient(circle at 8% 100%,rgba(0,166,166,.12),transparent 25%),linear-gradient(180deg,#f9fcff,#eef5fb)!important}
.rhms-topbar{margin:0 -14px 12px!important;padding:10px 14px!important;min-height:68px;background:rgba(255,255,255,.91)!important;border-bottom:1px solid #d6e5ee!important;box-shadow:0 7px 20px rgba(7,42,77,.07)!important}
.rhms-product-pill{display:inline-flex;padding:3px 7px;border-radius:999px;background:linear-gradient(90deg,#0fb68e,#08a0aa);color:#fff;font-size:8px;font-weight:900;letter-spacing:.8px;margin-bottom:4px;box-shadow:0 3px 8px rgba(0,166,166,.22)}
.rhms-topbar h1{font-size:18px!important}.rhms-topbar p{font-size:9px!important}.rhms-user-chip{padding:6px 9px!important;border-radius:10px!important}
.rhms-card-3d{border-radius:16px!important;border:1px solid rgba(119,154,183,.23)!important;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(246,251,255,.96))!important;box-shadow:0 7px 0 rgba(197,214,226,.72),0 15px 30px rgba(17,58,94,.08)!important}
.rhms-stat-grid{gap:9px!important;margin:8px 0 13px!important}.rhms-stat-card{min-height:82px!important;border-radius:14px!important;padding:10px!important;box-shadow:0 6px 0 rgba(177,199,216,.7),0 12px 20px rgba(17,58,94,.08)!important}
.rhms-stat-card .icon{width:38px!important;height:38px!important;font-size:18px!important}.rhms-stat-card span{font-size:9px!important}.rhms-stat-card strong{font-size:18px!important}
.rhms-dashboard-chart-grid{gap:10px!important}.rhms-dashboard-chart-grid .rhms-card-3d{padding:13px!important}.rhms-dashboard-chart-grid h2{font-size:13px!important;margin-bottom:8px!important}
.rhms-pie-row{min-height:170px!important;gap:16px!important}.rhms-pie-3d{width:132px!important;height:132px!important;box-shadow:0 9px 0 #c6d8e4,0 15px 24px rgba(20,55,88,.14)!important}.rhms-pie-3d:after{inset:19px!important}
.rhms-activity-bars{height:185px!important;padding-top:13px!important}.rhms-activity-bar{width:32px!important}.rhms-finance-3d>div{padding:13px!important}.rhms-finance-3d b{font-size:18px!important}
.rhms-form-grid{gap:9px 10px!important}.field label{font-size:10px!important}.field input,.field select,.field textarea,.rhms-inline-approve input,.rhms-filter-form input,.rhms-combo-input{min-height:34px!important;border-radius:8px!important;font-size:11px!important}.field textarea{min-height:64px!important}
.rhms-btn{padding:9px 14px!important;border-radius:9px!important;font-size:11px!important}.rhms-table{font-size:10.5px!important}.rhms-table th,.rhms-table td{padding:7px 8px!important}
.rhms-prescription-card{background:linear-gradient(135deg,#ffffff 0%,#f1fcfb 46%,#f5f0ff 100%)!important;border:1px solid #cfe9e7!important}.rhms-prescription-grid{gap:10px!important}.rhms-prescription-grid .inner{border-radius:14px!important}
.rhms-combo-drop{border-radius:9px!important;box-shadow:0 16px 34px rgba(8,45,78,.18)!important}.rhms-combo-item{padding:7px 8px!important;font-size:11px!important}.rhms-combo-item.active,.rhms-combo-item:hover{background:linear-gradient(90deg,#e6fbf7,#edf7ff)!important;color:#087867!important}
@media(max-width:1000px){body.rhms-standalone-page .rhms-dashboard-shell{grid-template-columns:210px minmax(0,1fr)!important}}
@media(max-width:760px){body.rhms-standalone-page .rhms-dashboard-shell{display:block!important}.rhms-sidebar{width:248px!important;left:-255px!important}.rhms-dashboard-shell.mobile-menu-open .rhms-sidebar{left:0!important}.rhms-main-content{padding:0 9px 20px!important}.rhms-topbar{margin:0 -9px 10px!important;padding-left:48px!important}.rhms-product-pill{font-size:7px}.rhms-card-3d{border-radius:13px!important}.rhms-dashboard-chart-grid{grid-template-columns:1fr!important}.rhms-finance-3d{grid-template-columns:1fr!important}}


/* patient master enhanced buttons */
.rhms-pm-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;flex-wrap:wrap}.rhms-pm-head h2{margin-bottom:4px}.rhms-pm-head p{margin:0;color:#698094;font-size:11px}
.rhms-pm-selected{padding:10px 14px;border-radius:14px;background:linear-gradient(180deg,#f7fbff,#edf5fb);border:1px solid #d9e5ef;min-width:230px;box-shadow:0 5px 0 #d6e2ec}.rhms-pm-selected b{display:block;font-size:12px;color:#16395e}.rhms-pm-selected span{display:block;font-size:10px;color:#718296;margin-top:4px}.rhms-pm-selected.empty{background:linear-gradient(180deg,#fffdf6,#f7f1d6);border-color:#ece0aa;box-shadow:0 5px 0 #e8ddb0}
.rhms-pm-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.rhms-pm-action{min-width:170px;max-width:220px;flex:1 1 170px;padding:10px 12px;border-radius:14px;text-decoration:none!important;color:#fff!important;display:flex;align-items:center;gap:10px;box-shadow:0 5px 0 rgba(0,0,0,.16),0 10px 18px rgba(22,57,94,.12);transition:.16s ease}.rhms-pm-action:hover{transform:translateY(-2px)}.rhms-pm-action i{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-style:normal;background:rgba(255,255,255,.18);font-size:17px;flex:0 0 34px}.rhms-pm-action span{flex:1;text-align:center;font-size:11px;font-weight:900;line-height:1.2}
.rhms-pm-action.teal{background:linear-gradient(180deg,#18baa1,#0b8d79)}.rhms-pm-action.blue{background:linear-gradient(180deg,#3b91eb,#205fb0)}.rhms-pm-action.purple{background:linear-gradient(180deg,#8a63e7,#6744c5)}.rhms-pm-action.green{background:linear-gradient(180deg,#26b873,#118454)}.rhms-pm-action.orange{background:linear-gradient(180deg,#f4a44a,#dc7718)}.rhms-pm-action.navy{background:linear-gradient(180deg,#214d97,#132f63)}.rhms-pm-action.rose{background:linear-gradient(180deg,#ec708f,#c94b6a)}.rhms-pm-action.violet{background:linear-gradient(180deg,#7464f4,#5741cc)}.rhms-pm-action.disabled{pointer-events:none;opacity:.5;filter:grayscale(.2)}
.rhms-pm-summary{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap}.rhms-pm-summary p{margin:5px 0 0;color:#65798b;font-size:11px}
.rhms-patient-card-print{max-width:460px;margin:0 auto;background:linear-gradient(180deg,#fff,#f8fbff);border:2px solid #d5e2ee;border-radius:18px;padding:18px;box-shadow:0 10px 0 #dce7f0,0 20px 28px rgba(17,53,86,.12)}.rhms-patient-card-print .top{display:flex;justify-content:space-between;gap:8px;align-items:center;border-bottom:1px dashed #bfd0df;padding-bottom:8px;margin-bottom:12px}.rhms-patient-card-print .top b{font-size:16px;color:#173b62}.rhms-patient-card-print .top span{font-size:12px;font-weight:800;color:#0d8b69}.rhms-patient-card-print .code{font-size:20px;font-weight:900;letter-spacing:2px;text-align:center;background:repeating-linear-gradient(90deg,#000 0,#000 2px,transparent 2px,transparent 4px);color:#fff;padding:12px 10px;border-radius:10px;margin-bottom:14px;text-shadow:0 1px 0 rgba(0,0,0,.4)}.rhms-patient-card-print .footer{margin-top:12px;text-align:center;font-size:10px;color:#718296}
@media(max-width:800px){.rhms-pm-action{min-width:calc(50% - 8px)}}@media(max-width:520px){.rhms-pm-action{min-width:100%}}


/* v6.0.3 Patient form UX fixes */
.rhms-field-note{float:right;font-size:10px!important;color:#d04b54!important;font-weight:800!important;letter-spacing:.1px}
.rhms-combo-input{padding-left:12px!important;text-align:left!important;direction:ltr!important}
.rhms-dob-mask{font-variant-numeric:tabular-nums;letter-spacing:.5px}

/* v6.0.6 Patient Master compact smart layout */
.rhms-pm-toolbar-card{padding:10px 12px!important}
.rhms-pm-toolbar-card .rhms-pm-actions{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:7px!important;margin:0!important}
.rhms-pm-toolbar-card .rhms-pm-action{min-width:0!important;max-width:none!important;width:100%!important;min-height:48px!important;padding:7px 8px!important;border-radius:11px!important;gap:6px!important;box-shadow:0 4px 0 rgba(0,0,0,.14),0 7px 13px rgba(22,57,94,.10)!important}
.rhms-pm-toolbar-card .rhms-pm-action i{width:29px!important;height:29px!important;flex:0 0 29px!important;border-radius:8px!important;font-size:14px!important}
.rhms-pm-toolbar-card .rhms-pm-action span{font-size:9.5px!important;line-height:1.08!important;text-align:center!important;white-space:normal!important}
.rhms-pm-kpi-card{padding:9px 11px!important}
.rhms-pm-kpi-row{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:7px!important;margin:0!important}
.rhms-pm-kpi-row .rhms-stat-card{min-height:54px!important;padding:7px 9px!important;border-radius:11px!important;box-shadow:0 4px 0 rgba(26,63,94,.12),0 7px 14px rgba(26,63,94,.08)!important}
.rhms-pm-kpi-row .rhms-stat-card .icon{width:30px!important;height:30px!important;min-width:30px!important;font-size:15px!important;border-radius:8px!important}
.rhms-pm-kpi-row .rhms-stat-card span{font-size:8.5px!important;line-height:1.05!important}
.rhms-pm-kpi-row .rhms-stat-card strong{font-size:15px!important;margin-top:1px!important}

/* Compact patient registration fields: one desktop row, address remains large */
.rhms-patient-entry-form{margin-top:0!important}
.rhms-patient-entry-grid{display:grid!important;grid-template-columns:1.7fr 1.15fr .9fr .9fr 1.15fr .9fr 1.2fr!important;gap:8px!important;align-items:end!important}
.rhms-patient-entry-grid .field{margin:0!important;min-width:0!important}
.rhms-patient-entry-grid .field label{font-size:9.5px!important;margin:0 0 4px!important;white-space:nowrap!important}
.rhms-patient-entry-grid .field input,.rhms-patient-entry-grid .field select{height:34px!important;min-height:34px!important;padding:5px 8px!important;border-radius:8px!important;font-size:11px!important}
.rhms-patient-entry-grid .field.span-2{grid-column:1/-1!important}
.rhms-patient-entry-grid .field textarea{min-height:62px!important;height:62px!important;padding:8px!important;border-radius:9px!important;font-size:11px!important}
.rhms-patient-entry-form .rhms-form-actions{margin-top:9px!important;gap:7px!important}
.rhms-patient-entry-form .rhms-form-actions .rhms-btn{padding:8px 13px!important;font-size:10px!important}

/* Overall tighter and more resilient responsive behavior */
@media (max-width:1250px){
  .rhms-pm-toolbar-card .rhms-pm-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .rhms-pm-kpi-row{grid-template-columns:repeat(5,minmax(110px,1fr))!important;overflow-x:auto!important;padding-bottom:4px!important}
  .rhms-patient-entry-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media (max-width:900px){
  .rhms-pm-toolbar-card .rhms-pm-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .rhms-patient-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:560px){
  .rhms-pm-toolbar-card{padding:8px!important}
  .rhms-pm-toolbar-card .rhms-pm-actions{grid-template-columns:1fr!important;gap:6px!important}
  .rhms-pm-toolbar-card .rhms-pm-action{min-height:44px!important}
  .rhms-pm-kpi-row{grid-template-columns:repeat(2,minmax(130px,1fr))!important;overflow-x:visible!important}
  .rhms-patient-entry-grid{grid-template-columns:1fr!important}
  .rhms-patient-entry-grid .field.span-2{grid-column:auto!important}
  .rhms-patient-entry-grid .field textarea{height:82px!important;min-height:82px!important}
  .rhms-table{min-width:620px!important}
}


/* v6.0.7 Patient Master vertical entry + toolbar save/back */
.rhms-pm-toolbar-card .rhms-pm-actions{grid-template-columns:repeat(8,minmax(0,1fr)) 12px minmax(118px,.72fr) minmax(72px,.48fr)!important;align-items:stretch!important}
.rhms-pm-toolbar-gap{width:12px;min-width:12px}
.rhms-pm-save-action,.rhms-pm-back-action{border:0!important;cursor:pointer!important;font-family:inherit!important;margin:0!important}
.rhms-pm-save-action{background:linear-gradient(180deg,#18b789,#087b5f)!important;box-shadow:0 4px 0 #06624b,0 7px 13px rgba(8,123,95,.15)!important}
.rhms-pm-back-action{background:linear-gradient(180deg,#71869d,#50667d)!important;box-shadow:0 4px 0 #3d5064,0 7px 13px rgba(39,63,86,.14)!important}
.rhms-patient-form-card{max-width:760px!important;margin-left:auto!important;margin-right:auto!important;padding:14px 16px!important}
.rhms-patient-form-card>h2{margin:0 0 12px!important;font-size:18px!important}
.rhms-patient-entry-grid{display:flex!important;flex-direction:column!important;gap:9px!important;align-items:stretch!important}
.rhms-patient-entry-grid .field,.rhms-patient-entry-grid .field.span-2{width:100%!important;grid-column:auto!important;margin:0!important}
.rhms-patient-entry-grid .field label{display:block!important;font-size:10.5px!important;margin:0 0 4px!important;white-space:normal!important}
.rhms-patient-entry-grid .field input,.rhms-patient-entry-grid .field select,.rhms-patient-entry-grid .rhms-combo-input{width:100%!important;height:36px!important;min-height:36px!important;padding:6px 9px!important;border-radius:9px!important;font-size:11.5px!important}
.rhms-patient-entry-grid .field textarea{width:100%!important;min-height:80px!important;height:80px!important;padding:9px!important;border-radius:9px!important;font-size:11.5px!important}
.rhms-patient-entry-grid .field input:focus,.rhms-patient-entry-grid .field select:focus,.rhms-patient-entry-grid .field textarea:focus,.rhms-patient-entry-grid .rhms-combo-input:focus{background:#fff3ad!important;border-color:#06a77e!important;box-shadow:0 0 0 3px rgba(6,167,126,.14),inset 0 1px 2px rgba(0,0,0,.03)!important}
@media(max-width:1450px){.rhms-pm-toolbar-card .rhms-pm-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important}.rhms-pm-toolbar-gap{display:none!important}}
@media(max-width:800px){.rhms-patient-form-card{max-width:100%!important}.rhms-pm-toolbar-card .rhms-pm-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:520px){.rhms-pm-toolbar-card .rhms-pm-actions{grid-template-columns:1fr!important}.rhms-patient-form-card{padding:12px!important}.rhms-patient-entry-grid .field input,.rhms-patient-entry-grid .field select,.rhms-patient-entry-grid .rhms-combo-input{height:40px!important;min-height:40px!important;font-size:13px!important}}
/* v6.0.9 Patient Master: form first, top Save/Cancel, shortcuts below in one row */
.rhms-pm-form-top-actions{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;margin:0 0 12px!important}
.rhms-mini-save,.rhms-mini-cancel{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-height:36px!important;padding:7px 14px!important;border:0!important;border-radius:9px!important;font-weight:800!important;font-size:11px!important;text-decoration:none!important;cursor:pointer!important;box-shadow:0 4px 0 rgba(0,0,0,.14),0 7px 12px rgba(22,57,94,.10)!important}
.rhms-mini-save{background:linear-gradient(135deg,#18b99d,#078c72)!important;color:#fff!important}
.rhms-mini-cancel{background:linear-gradient(135deg,#eef3f7,#d8e2eb)!important;color:#163452!important}
.rhms-pm-toolbar-card{margin-top:12px!important}
.rhms-pm-toolbar-card .rhms-pm-actions{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:7px!important}
.rhms-pm-toolbar-card .rhms-pm-action{min-height:44px!important;padding:6px 7px!important}
.rhms-pm-toolbar-card .rhms-pm-action i{width:27px!important;height:27px!important;flex-basis:27px!important;font-size:13px!important}
.rhms-pm-toolbar-card .rhms-pm-action span{font-size:9px!important;white-space:normal!important}
@media(max-width:1450px){.rhms-pm-toolbar-card .rhms-pm-actions{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:800px){.rhms-pm-toolbar-card .rhms-pm-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}.rhms-pm-form-top-actions{position:static!important}}
@media(max-width:520px){.rhms-pm-toolbar-card .rhms-pm-actions{grid-template-columns:1fr!important}.rhms-mini-save,.rhms-mini-cancel{min-height:38px!important}}


/* v6.0.10 Patient Master top tab navigation */
.rhms-pm-tabbar{display:flex;align-items:flex-end;gap:4px;padding:7px 8px 0;margin:0 0 12px;background:linear-gradient(180deg,#f7fbff,#eaf2f9);border:1px solid #d7e3ed;border-radius:14px 14px 10px 10px;box-shadow:0 5px 0 #d7e2eb,0 10px 18px rgba(19,55,89,.08);overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;position:sticky;top:0;z-index:6}
.rhms-pm-tab{flex:1 0 145px;min-height:39px;padding:7px 9px;border-radius:10px 10px 0 0;display:flex;align-items:center;justify-content:center;gap:7px;text-decoration:none!important;color:#17395f!important;background:linear-gradient(180deg,#fff,#edf3f8);border:1px solid #d4e0ea;border-bottom:0;box-shadow:inset 0 1px 0 #fff;font-size:9.5px;font-weight:900;line-height:1.05;white-space:nowrap;transition:.15s ease}
.rhms-pm-tab i{font-style:normal;font-size:14px}.rhms-pm-tab:hover{transform:translateY(-1px);background:linear-gradient(180deg,#fefefe,#e5f1f9)}
.rhms-pm-tab.active{color:#fff!important;background:linear-gradient(180deg,#18b69a,#0b8d78);border-color:#0e9c84;box-shadow:0 -1px 0 rgba(255,255,255,.15),inset 0 1px 0 rgba(255,255,255,.22)}
.rhms-pm-tab.active i{filter:none}
@media(max-width:900px){.rhms-pm-tabbar{position:static}.rhms-pm-tab{flex:0 0 150px}}
@media(max-width:520px){.rhms-pm-tabbar{gap:3px;padding:6px 6px 0}.rhms-pm-tab{flex:0 0 135px;min-height:38px;font-size:9px;padding:6px 7px}}


/* v6.0.12 Edit Patient search/filter redesign */
.rhms-pm-edit-search{display:grid;grid-template-columns:150px minmax(260px,1.2fr) minmax(190px,.8fr) minmax(190px,.8fr) auto;gap:10px;align-items:end}
.rhms-pm-edit-search .field{margin:0!important}.rhms-pm-edit-search label{font-size:10px!important;font-weight:800}.rhms-pm-edit-search input,.rhms-pm-edit-search select{height:36px!important;min-height:36px!important;font-size:11px!important}
.rhms-date-pair{display:grid;grid-template-columns:minmax(125px,1fr) 42px;gap:5px}.rhms-date-picker{padding:2px 4px!important}.rhms-pm-edit-search .rhms-form-actions{margin:0!important;align-self:end;flex-wrap:nowrap!important}
.rhms-edit-form-below{margin-top:14px!important;scroll-margin-top:80px}.rhms-pm-search-card{padding:12px 14px!important}.rhms-pm-search-card h2{font-size:16px!important;margin-bottom:10px!important}
@media(max-width:1200px){.rhms-pm-edit-search{grid-template-columns:140px 1fr 1fr 1fr}.rhms-pm-edit-search .rhms-form-actions{grid-column:1/-1}}
@media(max-width:760px){.rhms-pm-edit-search{grid-template-columns:1fr 1fr}.rhms-pm-edit-search .pm-term{grid-column:1/-1}.rhms-pm-edit-search .rhms-form-actions{grid-column:1/-1}.rhms-pm-edit-search .rhms-btn{flex:1}}
@media(max-width:480px){.rhms-pm-edit-search{grid-template-columns:1fr}.rhms-pm-edit-search .pm-term,.rhms-pm-edit-search .rhms-form-actions{grid-column:auto}.rhms-date-pair{grid-template-columns:1fr 44px}}


/* v6.0.14 patient search calendar + direct patient tabs */
.rhms-date-pair{position:relative;display:flex;align-items:center;gap:6px}.rhms-date-pair .rhms-date-mask{padding-right:42px}.rhms-calendar-btn{width:34px;height:34px;flex:0 0 34px;border:1px solid #c8d8e6;border-radius:9px;background:linear-gradient(180deg,#fff,#eaf2f8);box-shadow:0 3px 0 #c7d4df;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center}.rhms-calendar-btn:disabled{opacity:.45;cursor:not-allowed}.rhms-native-date{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;right:0;bottom:0;padding:0!important;border:0!important}
.rhms-pm-edit-search .pm-filter{min-width:150px}.rhms-pm-edit-search .pm-term{min-width:260px}.rhms-pm-edit-search .pm-date{min-width:210px}
@media(max-width:760px){.rhms-pm-edit-search .pm-filter,.rhms-pm-edit-search .pm-term,.rhms-pm-edit-search .pm-date{min-width:100%;width:100%}.rhms-calendar-btn{width:38px;height:38px;flex-basis:38px}}


/* v6.0.16 OPD workflow */
.rhms-opd-tabs{display:flex;gap:8px;margin:0 0 14px;flex-wrap:wrap}.rhms-opd-tabs a{padding:9px 16px;border-radius:11px;background:#fff;border:1px solid #d7e3ed;box-shadow:0 4px 0 #d0dce6;text-decoration:none!important;color:#274664!important;font-size:11px;font-weight:900}.rhms-opd-tabs a.active{background:linear-gradient(180deg,#18b59a,#0b8e77);color:#fff!important;border-color:#18a58d;box-shadow:0 4px 0 #08705e}
.rhms-grid-opd{display:grid;grid-template-columns:270px minmax(0,1fr);gap:14px;align-items:start}.rhms-patient-id-panel{position:sticky;top:78px}.rhms-id-search-form{display:grid;gap:9px}.rhms-id-list{margin-top:14px;max-height:590px;overflow:auto;display:grid;gap:5px}.rhms-id-list>b{font-size:11px;color:#23435f;margin-bottom:5px}.rhms-id-list a{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:8px 9px;border-radius:9px;background:#f1f7fb;border:1px solid #dbe7ef;text-decoration:none!important}.rhms-id-list a:hover{background:#e6f8f2;border-color:#8fd7c1}.rhms-id-list span{font-size:10px;font-weight:900;color:#173b5e}.rhms-id-list small{font-size:9px;color:#728296;text-align:right}.rhms-empty-state{padding:26px;border:1px dashed #b9cedd;border-radius:14px;background:#f7fbfe;color:#65798b;text-align:center;font-weight:700}.rhms-opd-patient-grid input[readonly],.rhms-opd-patient-grid textarea[readonly]{background:#eef5f8!important;color:#35506b}.rhms-check-amount label{display:flex!important;align-items:center;gap:7px}.rhms-check-amount label input{width:auto!important;min-height:auto!important}.rhms-check-amount>input{margin-top:4px}
@media(max-width:900px){.rhms-grid-opd{grid-template-columns:1fr}.rhms-patient-id-panel{position:static}.rhms-id-list{max-height:220px;grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.rhms-id-list{grid-template-columns:1fr}.rhms-opd-tabs{display:grid;grid-template-columns:1fr 1fr}.rhms-opd-tabs a:last-child{grid-column:1/-1}}

/* 6.0.17 settings redesign */
.rhms-settings-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.rhms-settings-tabs a{padding:9px 14px;border-radius:10px;text-decoration:none!important;font-size:11px;font-weight:900;color:#24445f!important;background:linear-gradient(180deg,#f6fafc,#e5f0f1);border:1px solid #d7e4e8;box-shadow:0 3px 0 #c8d7dd}.rhms-settings-tabs a.active{color:#fff!important;background:linear-gradient(180deg,#13a67e,#078c69);box-shadow:0 3px 0 #066c52}.rhms-default-panel{background:linear-gradient(135deg,#f7fffc,#eefaf7)!important}.rhms-default-switches{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.rhms-default-switches label{display:flex;align-items:center;gap:7px;padding:9px 12px;border-radius:999px;background:#fff;border:1px solid #d7e5e1;box-shadow:0 3px 0 #d4e1dd;font-size:10px;font-weight:900}.rhms-default-switches input{width:18px;height:18px}.rhms-patient-setting-section{margin-top:14px}.rhms-section-title{display:flex;justify-content:space-between;gap:12px;align-items:center}.rhms-section-title p{margin:4px 0 0;color:#718296;font-size:10px}.rhms-settings-inline-add{display:grid;grid-template-columns:minmax(220px,1fr) minmax(150px,240px) auto;gap:10px;align-items:end;margin:12px 0 14px}.rhms-settings-inline-add .field{margin:0}.rhms-settings-inline-add .rhms-btn{margin:0!important}@media(max-width:760px){.rhms-settings-inline-add{grid-template-columns:1fr}.rhms-default-switches{align-items:stretch}.rhms-default-switches label,.rhms-default-switches .rhms-btn{width:100%}}


/* v6.0.20 compact live hospital dashboard */
.rhms-new-dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding-bottom:18px}
.rhms-kpi-3d{--k1:#247bd1;--k2:#155fae;position:relative;overflow:hidden;border-radius:16px;padding:14px;color:#fff;background:linear-gradient(145deg,var(--k1),var(--k2));box-shadow:0 7px 0 rgba(15,54,91,.18),0 13px 22px rgba(19,61,100,.13);min-height:160px;border:1px solid rgba(255,255,255,.25)}
.rhms-kpi-3d:after{content:"";position:absolute;width:92px;height:92px;border-radius:50%;right:-28px;top:-34px;background:rgba(255,255,255,.12)}
.rhms-kpi-head{display:flex;align-items:center;gap:9px;position:relative;z-index:1}.rhms-kpi-head h3{margin:0!important;color:#fff!important;font-size:15px!important;line-height:1.2;font-weight:800}.rhms-kpi-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:rgba(255,255,255,.18);font-size:20px;flex:0 0 38px}
.rhms-kpi-main{display:flex;justify-content:space-between;align-items:flex-end;margin:12px 0 9px;padding-bottom:8px;border-bottom:1px solid rgba(255,255,255,.25)}.rhms-kpi-main span{font-size:13px;font-weight:700}.rhms-kpi-main strong{font-size:21px;line-height:1;font-weight:900;text-align:right}
.rhms-kpi-periods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.rhms-kpi-periods div{background:rgba(255,255,255,.12);border-radius:8px;padding:6px 7px;display:flex;justify-content:space-between;gap:5px;align-items:center}.rhms-kpi-periods span{font-size:11px;font-weight:700;white-space:nowrap}.rhms-kpi-periods b{font-size:13px;white-space:nowrap}
.rhms-kpi-3d.tone-purple{--k1:#8157e5;--k2:#5e3bc3}.rhms-kpi-3d.tone-green{--k1:#23b77f;--k2:#118d62}.rhms-kpi-3d.tone-orange{--k1:#ffa13a;--k2:#e47b17}.rhms-kpi-3d.tone-pink{--k1:#eb6587;--k2:#cc4267}.rhms-kpi-3d.tone-red{--k1:#f05c68;--k2:#ce3d4a}.rhms-kpi-3d.tone-navy{--k1:#2858a6;--k2:#163b78}.rhms-kpi-3d.tone-teal{--k1:#16b39b;--k2:#087f70}.rhms-kpi-3d.tone-gold{--k1:#e4a72d;--k2:#b77a08}.rhms-kpi-3d.tone-violet{--k1:#725de5;--k2:#5140ba}.rhms-kpi-3d.tone-cyan{--k1:#18a9d2;--k2:#087ba1}.rhms-kpi-3d.tone-emerald{--k1:#20ae72;--k2:#087e4e}.rhms-kpi-3d.tone-amber{--k1:#f39b27;--k2:#cc6c0a}
@media(max-width:1250px){.rhms-new-dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.rhms-new-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.rhms-new-dashboard-grid{grid-template-columns:1fr;gap:10px}.rhms-kpi-3d{min-height:145px;padding:13px}.rhms-kpi-head h3{font-size:16px!important}.rhms-kpi-main span{font-size:14px}.rhms-kpi-main strong{font-size:22px}.rhms-kpi-periods span{font-size:12px}.rhms-kpi-periods b{font-size:14px}}

/* v6.0.21 dashboard analytics */
.rhms-dash-section-title{margin:25px 0 12px}.rhms-dash-section-title h2{margin:0!important;font-size:21px!important;color:#123b65!important}.rhms-dash-finance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.rhms-finance-3d{position:relative;overflow:hidden;border-radius:17px;padding:15px;color:#fff;box-shadow:0 7px 0 rgba(21,63,91,.18),0 14px 25px rgba(17,58,91,.12)}.rhms-finance-3d:after{content:"";position:absolute;width:105px;height:105px;border-radius:50%;right:-30px;top:-38px;background:rgba(255,255,255,.13)}.rhms-finance-3d.pc{background:linear-gradient(145deg,#13b694,#087d6c)}.rhms-finance-3d.doctor{background:linear-gradient(145deg,#6d5ce7,#4936b9)}.rhms-finance-title{display:flex;align-items:center;gap:9px;position:relative;z-index:1}.rhms-finance-title span{font-size:24px}.rhms-finance-title h3{margin:0!important;color:#fff!important;font-size:17px!important}.rhms-finance-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:13px;position:relative;z-index:1}.rhms-finance-stats div{background:rgba(255,255,255,.14);padding:9px;border-radius:10px}.rhms-finance-stats span{display:block;font-size:12px;font-weight:700}.rhms-finance-stats strong{display:block;margin-top:4px;font-size:16px}
.rhms-dashboard-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.rhms-chart-3d{min-height:310px;background:linear-gradient(145deg,#fff,#f2f8fd);border:1px solid #d8e5ef;border-radius:18px;padding:16px;box-shadow:0 7px 0 #d5e3ec,0 15px 27px rgba(32,76,108,.11)}.rhms-chart-3d h3{font-size:17px!important;color:#123b65!important;text-align:center;margin:0 0 15px!important}.rhms-css-pie{--slice:0deg;width:190px;height:190px;border-radius:50%;margin:7px auto 18px;background:conic-gradient(#2f80ed 0 var(--slice),#e75c87 var(--slice) 360deg);position:relative;box-shadow:inset -9px -9px 15px rgba(0,0,0,.12),0 9px 0 #cbdbe7,0 15px 22px rgba(26,70,101,.13)}.rhms-pie-hole{position:absolute;inset:46px;background:#f9fcff;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:inset 0 3px 9px rgba(35,78,110,.12)}.rhms-pie-hole b{font-size:25px;color:#123b65}.rhms-pie-hole span{font-size:12px;color:#668097}.rhms-chart-legend{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.rhms-chart-legend span{padding:7px 11px;border-radius:20px;font-weight:700;font-size:13px}.rhms-chart-legend .male{background:#e4f0ff;color:#1764ba}.rhms-chart-legend .female{background:#ffe5ed;color:#bd3c64}
.rhms-bar-chart{height:225px;display:flex;align-items:flex-end;justify-content:center;gap:28px;padding:12px 10px 0;border-bottom:2px solid #c8d9e5}.rhms-bar-chart .bar{height:100%;width:min(25%,110px);display:flex;flex-direction:column;align-items:center;justify-content:flex-end}.rhms-bar-chart .bar i{display:block;width:62px;height:var(--h,10%);min-height:12px;border-radius:10px 10px 3px 3px;box-shadow:inset -9px 0 10px rgba(0,0,0,.12),5px 6px 0 rgba(21,57,84,.14);transition:height .5s}.rhms-bar-chart .bar b{font-size:13px;margin:9px 0 4px;color:#153c61;text-align:center}.rhms-bar-chart .bar span{font-size:12px;font-weight:800;color:#536d82;text-align:center}.rhms-bar-chart .bill i,.rhms-bar-chart .total i{background:linear-gradient(#3d91ee,#1c64ba)}.rhms-bar-chart .collection i,.rhms-bar-chart .success i{background:linear-gradient(#27bd89,#0a8a61)}.rhms-bar-chart .due i,.rhms-bar-chart .pending i{background:linear-gradient(#f36b70,#c93f4a)}
@media(max-width:780px){.rhms-dash-finance-grid,.rhms-dashboard-chart-grid{grid-template-columns:1fr}.rhms-finance-stats{grid-template-columns:repeat(2,1fr)}.rhms-finance-title h3,.rhms-chart-3d h3{font-size:18px!important}.rhms-finance-stats span,.rhms-bar-chart .bar span{font-size:13px}.rhms-finance-stats strong{font-size:17px}.rhms-chart-3d{min-height:300px}.rhms-bar-chart{gap:15px}.rhms-bar-chart .bar i{width:52px}}


/* v6.0.22 Patient Master + OPD merged workflow */
.rhms-merged-patient-opd-form{max-width:920px;margin:0 auto}.rhms-merged-opd-grid{grid-template-columns:1fr!important;gap:8px!important}.rhms-merged-opd-grid .field{width:100%;margin:0!important}.rhms-merged-opd-grid .field.span-2,.rhms-merged-opd-grid .rhms-merged-section-title{grid-column:1!important}.rhms-merged-opd-grid input,.rhms-merged-opd-grid select{min-height:38px!important;padding:7px 10px!important}.rhms-merged-opd-grid textarea{min-height:76px!important}.rhms-merged-section-title{margin:10px 0 2px;padding:9px 12px;border-radius:10px;background:linear-gradient(135deg,#e8f7f3,#eef5ff);color:#0c5e66;font-size:12px;font-weight:900;border:1px solid #d5e6e5;box-shadow:0 4px 0 #d6e4e7}.rhms-merged-save-bottom{margin-top:10px}.rhms-merged-opd-grid .rhms-check-amount{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px}.rhms-merged-opd-grid .rhms-check-amount label{margin:0;white-space:nowrap}.rhms-merged-opd-grid .rhms-check-amount input[type=checkbox]{min-height:auto!important;width:16px;height:16px;padding:0!important}.rhms-merged-opd-grid input:focus,.rhms-merged-opd-grid select:focus,.rhms-merged-opd-grid textarea:focus{background:#fff8c9!important;border-color:#10a47c!important;box-shadow:0 0 0 2px rgba(16,164,124,.12)!important}
@media(max-width:760px){.rhms-merged-patient-opd-form{max-width:100%}.rhms-merged-opd-grid input,.rhms-merged-opd-grid select{min-height:42px!important}.rhms-merged-section-title{font-size:13px}}


/* v6.0.23 compact two-column Patient Master + OPD entry */
.rhms-merged-patient-opd-form{
  max-width:1180px!important;
  width:100%!important;
  margin:0 auto!important;
}
.rhms-patient-form-card{
  max-width:1220px!important;
  padding:11px 13px!important;
}
.rhms-patient-form-card>h2{
  font-size:16px!important;
  line-height:1.15!important;
  margin:0 0 7px!important;
}
.rhms-pm-form-top-actions{
  gap:7px!important;
  margin:0 0 8px!important;
}
.rhms-mini-save,.rhms-mini-cancel{
  min-height:32px!important;
  padding:6px 11px!important;
  font-size:10.5px!important;
  border-radius:8px!important;
}
.rhms-merged-opd-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  column-gap:12px!important;
  row-gap:6px!important;
  align-items:end!important;
}
.rhms-merged-opd-grid .field,
.rhms-merged-opd-grid .field.span-2{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  grid-column:auto!important;
}
.rhms-merged-opd-grid .rhms-address-field,
.rhms-merged-opd-grid .rhms-merged-section-title{
  grid-column:1 / -1!important;
}
.rhms-merged-opd-grid .field label{
  display:block!important;
  margin:0 0 3px!important;
  font-size:11px!important;
  line-height:1.15!important;
  font-weight:800!important;
}
.rhms-merged-opd-grid .field label small,
.rhms-merged-opd-grid .rhms-field-note{
  font-size:9px!important;
}
.rhms-merged-opd-grid input,
.rhms-merged-opd-grid select,
.rhms-merged-opd-grid .rhms-combo-input{
  width:100%!important;
  height:33px!important;
  min-height:33px!important;
  padding:5px 8px!important;
  border-radius:8px!important;
  font-size:11.5px!important;
  line-height:1.15!important;
}
.rhms-merged-opd-grid textarea{
  width:100%!important;
  height:48px!important;
  min-height:48px!important;
  padding:6px 8px!important;
  border-radius:8px!important;
  font-size:11.5px!important;
}
.rhms-merged-section-title{
  margin:3px 0 0!important;
  padding:6px 9px!important;
  border-radius:8px!important;
  font-size:11px!important;
  line-height:1.1!important;
  box-shadow:0 3px 0 #d6e4e7!important;
}
.rhms-merged-opd-grid .rhms-check-amount{
  display:grid!important;
  grid-template-columns:125px minmax(0,1fr)!important;
  align-items:end!important;
  gap:7px!important;
}
.rhms-merged-opd-grid .rhms-check-amount label{
  min-height:33px!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  padding:0 7px!important;
  margin:0!important;
  border:1px solid #d6e2eb!important;
  border-radius:8px!important;
  background:#f8fbfd!important;
  white-space:nowrap!important;
}
.rhms-merged-opd-grid .rhms-check-amount input[type=checkbox]{
  width:15px!important;
  height:15px!important;
  min-height:15px!important;
  padding:0!important;
  margin:0!important;
}
.rhms-merged-save-bottom{
  margin-top:7px!important;
}
.rhms-merged-save-bottom .rhms-btn{
  min-height:32px!important;
  padding:6px 12px!important;
  font-size:10.5px!important;
}
@media(max-width:760px){
  .rhms-patient-form-card{padding:10px!important;max-width:100%!important}
  .rhms-merged-opd-grid{grid-template-columns:1fr!important;row-gap:7px!important}
  .rhms-merged-opd-grid .rhms-address-field,.rhms-merged-opd-grid .rhms-merged-section-title{grid-column:1!important}
  .rhms-merged-opd-grid input,.rhms-merged-opd-grid select,.rhms-merged-opd-grid .rhms-combo-input{height:39px!important;min-height:39px!important;font-size:13px!important}
  .rhms-merged-opd-grid textarea{height:70px!important;min-height:70px!important;font-size:13px!important}
  .rhms-merged-opd-grid .field label{font-size:12px!important}
  .rhms-merged-opd-grid .rhms-check-amount{grid-template-columns:130px minmax(0,1fr)!important}
}
@media(max-width:430px){
  .rhms-merged-opd-grid .rhms-check-amount{grid-template-columns:1fr!important;gap:5px!important}
  .rhms-merged-opd-grid .rhms-check-amount label{min-height:38px!important}
  .rhms-pm-form-top-actions{display:grid!important;grid-template-columns:1fr 1fr!important}
}


/* v6.0.24 ultra compact Patient Master tabs */
.rhms-pm-tabbar{gap:3px!important;padding:5px 6px 0!important;margin-bottom:8px!important;border-radius:11px 11px 8px 8px!important;overflow-x:hidden!important}
.rhms-pm-tab{flex:1 1 0!important;min-width:0!important;min-height:31px!important;height:31px!important;padding:4px 5px!important;border-radius:8px 8px 0 0!important;gap:4px!important;font-size:8px!important;line-height:1!important;white-space:nowrap!important}
.rhms-pm-tab i{font-size:11px!important;line-height:1!important}
@media(max-width:1180px){.rhms-pm-tabbar{overflow-x:auto!important}.rhms-pm-tab{flex:0 0 118px!important;min-width:118px!important}}
@media(max-width:760px){.rhms-pm-tab{flex:0 0 108px!important;min-width:108px!important;height:34px!important;min-height:34px!important;font-size:8.5px!important}}
@media(max-width:520px){.rhms-pm-tabbar{padding:5px 5px 0!important;gap:2px!important}.rhms-pm-tab{flex:0 0 102px!important;min-width:102px!important;padding:4px!important}}


/* 6.0.31 Patient History full-screen lightbox */
.rhms-history-modal{display:none;position:fixed;inset:0;z-index:999999;background:rgba(8,24,43,.72);backdrop-filter:blur(6px);padding:18px;overflow:auto}
.rhms-history-modal.open{display:flex;align-items:flex-start;justify-content:center}
.rhms-history-modal-panel{width:min(1180px,100%);min-height:calc(100dvh - 36px);background:linear-gradient(180deg,#f8fcff,#edf6fb);border:1px solid #d6e5ef;border-radius:20px;padding:18px;box-shadow:0 20px 60px rgba(0,0,0,.30)}
.rhms-history-modal-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-bottom:14px;border-bottom:1px solid #d8e5ee}.rhms-history-modal-head h2{margin:2px 0;font-size:22px}.rhms-modal-kicker{font-size:9px;font-weight:900;letter-spacing:.9px;color:#0a8d71}.rhms-history-close{border:0;border-radius:10px;padding:9px 13px;font-weight:900;background:linear-gradient(180deg,#f25f68,#ca303c);color:#fff;box-shadow:0 4px 0 #9f2630;cursor:pointer}
.rhms-history-profile-grid{display:grid;grid-template-columns:1.35fr .65fr;gap:16px;margin-top:16px}.rhms-history-counts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rhms-history-counts div{padding:18px 12px;border-radius:16px;text-align:center;background:linear-gradient(145deg,#fff,#eaf4fb);border:1px solid #d7e5ef;box-shadow:0 6px 0 #d8e4ed}.rhms-history-counts b{display:block;font-size:26px;color:#0a3d67}.rhms-history-counts span{font-size:10px;font-weight:800;color:#62798d}
body.rhms-modal-open{overflow:hidden!important}
@media(max-width:760px){.rhms-history-modal{padding:0}.rhms-history-modal-panel{border-radius:0;min-height:100dvh;padding:12px}.rhms-history-profile-grid{grid-template-columns:1fr}.rhms-history-modal-head h2{font-size:18px}.rhms-history-close{padding:8px 10px;font-size:10px}}


/* v6.0.33 Advanced Appointment */
.rhms-appt-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:12px}.rhms-appt-stat{border-radius:14px;padding:10px 12px;color:#fff;box-shadow:0 5px 0 rgba(0,0,0,.14),0 10px 18px rgba(20,55,85,.12);display:flex;align-items:center;justify-content:space-between;min-height:48px}.rhms-appt-stat b{font-size:11px}.rhms-appt-stat span{font-size:20px;font-weight:900}.rhms-appt-stat.blue{background:linear-gradient(180deg,#3b8fe7,#2768b9)}.rhms-appt-stat.purple{background:linear-gradient(180deg,#8a61e6,#6842c5)}.rhms-appt-stat.green{background:linear-gradient(180deg,#24b47e,#0e8a5b)}.rhms-appt-stat.orange{background:linear-gradient(180deg,#f4a247,#dd7618)}.rhms-appt-stat.teal{background:linear-gradient(180deg,#1db8ae,#0c8e86)}.rhms-appt-stat.red{background:linear-gradient(180deg,#ef6670,#cf3642)}
.rhms-appt-head,.rhms-appt-list-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}.rhms-appt-head p{margin:3px 0 0;color:#6d8093;font-size:10px}.rhms-appt-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 10px}.rhms-appt-grid .field{margin:0}.rhms-appt-grid label{font-size:10px}.rhms-appt-grid input,.rhms-appt-grid select{min-height:34px!important;padding:6px 8px!important;font-size:11px!important}.rhms-appt-grid textarea{min-height:52px!important;padding:7px 8px!important;font-size:11px!important}.rhms-appt-grid .span-2{grid-column:span 2}.rhms-appt-card{padding:14px!important}.rhms-appt-actions{display:flex;gap:4px;flex-wrap:wrap}.rhms-appt-table{min-width:1080px}.rhms-status.booked{background:#e7edf4;color:#4f637a}.rhms-status.confirmed{background:#dff6ec;color:#087252}.rhms-status.waiting{background:#fff0cf;color:#945d08}.rhms-status.completed{background:#dceeff;color:#175f9d}.rhms-status.cancelled,.rhms-status.no_show{background:#ffe2e5;color:#a52934}
@media(max-width:1100px){.rhms-appt-stats{grid-template-columns:repeat(3,1fr)}.rhms-appt-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.rhms-appt-stats{grid-template-columns:repeat(2,1fr)}.rhms-appt-grid{grid-template-columns:1fr}.rhms-appt-grid .span-2{grid-column:auto}.rhms-appt-stat b{font-size:10px}.rhms-appt-stat span{font-size:18px}}


/* v6.0.34 appointment picker lightbox */
body.rhms-modal-open{overflow:hidden!important}
.rhms-new-patient-name{cursor:pointer}
.rhms-appt-picker{position:fixed;inset:0;z-index:999999;background:rgba(8,28,55,.72);backdrop-filter:blur(5px);display:none;align-items:center;justify-content:center;padding:18px}
.rhms-appt-picker.open{display:flex}
.rhms-appt-picker-panel{width:min(1180px,96vw);max-height:92vh;overflow:auto;background:linear-gradient(180deg,#fff,#f4f9fd);border:1px solid rgba(255,255,255,.7);border-radius:20px;padding:16px;box-shadow:0 18px 0 rgba(5,32,62,.16),0 30px 70px rgba(0,0,0,.35)}
.rhms-appt-picker-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.rhms-appt-picker-head h2{margin:0;color:#173c66;font-size:18px}.rhms-appt-picker-head p{margin:4px 0 0;color:#6c8093;font-size:11px}.rhms-appt-picker-close{border:0;border-radius:10px;padding:9px 14px;font-size:11px;font-weight:900;color:#fff;background:linear-gradient(180deg,#ef6a72,#cf3541);box-shadow:0 4px 0 #a92832;cursor:pointer}
.rhms-appt-pick-row{cursor:pointer}.rhms-appt-pick-row:hover td{background:#e8fff7!important}
@media(max-width:700px){.rhms-appt-picker{padding:0}.rhms-appt-picker-panel{width:100vw;height:100dvh;max-height:none;border-radius:0;padding:10px}.rhms-appt-picker-head{align-items:flex-start}.rhms-appt-picker-head h2{font-size:16px}.rhms-appt-picker-close{padding:8px 10px}.rhms-appt-picker-table{min-width:760px}}


/* 6.0.35 appointment workflow */
.rhms-appt-stats{grid-template-columns:repeat(7,minmax(0,1fr))}
.rhms-appt-stat.navy{background:linear-gradient(180deg,#264f93,#17376f)}
.rhms-status.registered{background:#dff7ee;color:#087255}.rhms-status.delayed{background:#fff0cf;color:#945d08}
.rhms-registered-note{display:inline-flex;align-items:center;min-height:30px;padding:6px 9px;border-radius:8px;background:#def7ec;color:#087252;font-size:10px;font-weight:900}
.rhms-reschedule-box{margin-top:7px;padding:7px;border-radius:10px;background:#f5f8fb;border:1px solid #d8e3ec}.rhms-reschedule-form{display:flex!important;align-items:center;gap:5px;flex-wrap:wrap}.rhms-reschedule-form input[type=datetime-local]{min-height:30px!important;padding:4px 6px!important;font-size:10px!important;max-width:190px}
.rhms-appt-actions .rhms-mini-btn{font-size:9px!important;padding:6px 8px!important}
@media(max-width:1200px){.rhms-appt-stats{grid-template-columns:repeat(4,1fr)}}@media(max-width:700px){.rhms-appt-stats{grid-template-columns:repeat(2,1fr)}}

/* v6.0.41 appointment polish */
.rhms-appt-list-head .rhms-mini-btn.blue{color:#fff!important;}
.rhms-appt-list-head .rhms-mini-btn.blue:hover,.rhms-appt-list-head .rhms-mini-btn.blue:focus{color:#fff!important;}


/* v6.0.42 Appointment smart input + one-line search */
.rhms-time-pair{position:relative;display:flex;align-items:center;gap:6px}.rhms-time-pair .rhms-time-mask{padding-right:42px}.rhms-time-btn{width:34px;height:34px;flex:0 0 34px;border:1px solid #c8d8e6;border-radius:9px;background:linear-gradient(180deg,#fff,#eaf2f8);box-shadow:0 3px 0 #c7d4df;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center}.rhms-native-time{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;right:0;bottom:0;padding:0!important;border:0!important}
.rhms-appt-list-head{align-items:center!important;flex-wrap:nowrap!important}.rhms-appt-list-head h2{margin-right:16px;white-space:nowrap}.rhms-appt-list-head .rhms-filter-form{margin-left:auto;display:grid!important;grid-template-columns:170px minmax(230px,360px) 64px;gap:7px!important;align-items:center!important;flex-wrap:nowrap!important}.rhms-appt-list-head .rhms-filter-form .rhms-combo{width:170px}.rhms-appt-list-head .rhms-filter-form input{margin:0!important;min-height:34px!important}.rhms-appt-list-head .rhms-appt-find{min-height:31px;color:#fff!important;text-align:center}
.rhms-appt-form .rhms-combo-drop .rhms-combo-item.active{background:#dff7ee;color:#075f47;font-weight:900}
@media(max-width:900px){.rhms-appt-list-head{align-items:flex-start!important;flex-direction:column}.rhms-appt-list-head .rhms-filter-form{margin-left:0;width:100%;grid-template-columns:150px minmax(160px,1fr) 60px}.rhms-appt-list-head .rhms-filter-form .rhms-combo{width:150px}}
@media(max-width:560px){.rhms-appt-list-head .rhms-filter-form{grid-template-columns:120px minmax(130px,1fr) 54px;gap:5px!important}.rhms-appt-list-head .rhms-filter-form .rhms-combo{width:120px}.rhms-appt-list-head .rhms-mini-btn{padding:7px 6px}}

/* v6.0.43 appointment status/history controls */
.rhms-appt-actions .rhms-mini-btn.disabled,.rhms-appt-actions .rhms-mini-btn:disabled{opacity:.42!important;filter:grayscale(.45);cursor:not-allowed!important;pointer-events:none;box-shadow:none!important}
.rhms-status.pending{background:#fff0c9!important;color:#9a5b00!important}.rhms-status.registered{background:#dfeaff!important;color:#153f83!important}.rhms-status.cancelled{background:#ffe1e5!important;color:#b51f34!important}
.rhms-appt-actions{display:flex;gap:6px;align-items:center;flex-wrap:nowrap}.rhms-appt-actions .rhms-mini-btn{min-width:58px;text-align:center}


/* v6.0.44 appointment pending/registered history controls */
.rhms-appt-actions .rhms-mini-btn,
.rhms-appt-actions a.rhms-mini-btn,
.rhms-appt-actions button.rhms-mini-btn{color:#fff!important;text-shadow:0 1px 1px rgba(0,0,0,.32);font-weight:900!important}
.rhms-appt-actions .rhms-appt-action-pending{color:#fff7b0!important}
.rhms-appt-actions .rhms-mini-btn.disabled,
.rhms-appt-actions .rhms-mini-btn:disabled{color:#f4f7fb!important;background:linear-gradient(180deg,#9eabba,#7b8999)!important;opacity:.72!important;filter:none!important;text-shadow:0 1px 1px rgba(0,0,0,.25)}
.rhms-status.registered{background:#d9f7e9!important;color:#08734f!important;border:1px solid #a9e5cb}
.rhms-status.pending{background:#fff1c9!important;color:#8a5700!important;border:1px solid #f1d78a}
.rhms-appt-pick-row{cursor:pointer;outline:none}.rhms-appt-pick-row:focus td{background:#fff6bf!important;box-shadow:inset 0 0 0 1px #e7c849}

/* v6.0.46 View Patient List */
.rhms-patient-list-stack{display:grid;gap:18px}.rhms-view-list-card{overflow:hidden;padding:0!important}.rhms-view-list-card.opd{border-top:4px solid #18a97f}.rhms-view-list-card.ipd{border-top:4px solid #3d7fe0}.rhms-view-list-title{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;background:linear-gradient(135deg,#f7fbff,#eef7f4);border-bottom:1px solid #dce8ef}.rhms-view-list-card.ipd .rhms-view-list-title{background:linear-gradient(135deg,#f5f9ff,#eef3ff)}.rhms-view-kicker{display:inline-block;font-size:9px;font-weight:900;letter-spacing:1px;color:#0b8f6d}.rhms-view-list-card.ipd .rhms-view-kicker{color:#286bc6}.rhms-view-list-title h2{margin:3px 0 2px;font-size:18px}.rhms-view-list-title p{margin:0;font-size:10px;color:#718295}.rhms-view-count{min-width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:900;color:#fff;background:linear-gradient(180deg,#22b98c,#0d8b69);box-shadow:0 5px 0 #0a7157,0 10px 18px rgba(16,80,65,.16)}.rhms-view-list-card.ipd .rhms-view-count{background:linear-gradient(180deg,#4a91eb,#286ac1);box-shadow:0 5px 0 #1e559e,0 10px 18px rgba(32,80,150,.16)}.rhms-view-list-filter{display:grid;grid-template-columns:180px minmax(260px,1fr) auto;gap:8px;align-items:end;padding:12px 18px;background:#fff}.rhms-view-list-filter select,.rhms-view-list-filter input{height:38px;border:1px solid #cddce8;border-radius:11px;padding:0 12px;font-size:12px;background:#fff}.rhms-view-list-filter .rhms-btn{height:38px;margin:0}.rhms-view-patient-table th{white-space:nowrap;background:#e6f0f8}.rhms-view-patient-table td{font-size:11px;vertical-align:middle}.rhms-status-pill{display:inline-flex;align-items:center;justify-content:center;min-width:66px;padding:5px 9px;border-radius:999px;font-size:9px;font-weight:900;text-transform:uppercase;background:#e8eef4;color:#35506b}.rhms-status-pill.open,.rhms-status-pill.admitted{background:#dff7ed;color:#087653}.rhms-status-pill.completed,.rhms-status-pill.discharged,.rhms-status-pill.closed{background:#e1edff;color:#1e62b6}.rhms-status-pill.transferred{background:#fff0d8;color:#9a5b00}.rhms-due-cell{font-weight:900;color:#c33}
@media(max-width:800px){.rhms-view-list-filter{grid-template-columns:1fr 1.7fr auto;padding:10px}.rhms-view-list-title{padding:12px}.rhms-view-list-title h2{font-size:16px}.rhms-view-list-title p{display:none}.rhms-view-patient-table{min-width:1050px}}
@media(max-width:540px){.rhms-view-list-filter{grid-template-columns:1fr}.rhms-view-list-filter .rhms-btn{width:100%}.rhms-view-count{min-width:40px;height:40px;font-size:16px}}

/* v6.0.47 Token / Ticket Management */
.rhms-queue-hero{display:flex;align-items:center;justify-content:space-between;gap:14px;background:linear-gradient(145deg,#ffffff,#f5fbff)}.rhms-queue-hero h2,.rhms-queue-controls h2,.rhms-queue-list-head h2{margin:0 0 4px}.rhms-queue-hero p,.rhms-queue-controls p,.rhms-queue-list-head p{margin:0;color:#6e8297;font-size:11px}.rhms-live-pill{background:linear-gradient(180deg,#12b886,#087f5b);color:#fff;font-weight:900;font-size:11px;padding:9px 13px;border-radius:999px;box-shadow:0 5px 0 #08694d}
.rhms-queue-call{display:flex;align-items:center;gap:14px;margin:12px 0;padding:14px 18px;border-radius:18px;background:linear-gradient(135deg,#192f60,#2563b8);color:#fff;box-shadow:0 8px 0 #122449,0 16px 28px rgba(25,47,96,.2)}.rhms-queue-call .pulse{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.18);font-size:24px;animation:rhmsPulse 1.4s infinite}.rhms-queue-call small{display:block;color:#bcd7ff;font-weight:800;letter-spacing:1px}.rhms-queue-call strong{display:block;font-size:22px;margin:2px 0}.rhms-queue-call span{font-size:12px;color:#e5efff}@keyframes rhmsPulse{50%{transform:scale(1.08);box-shadow:0 0 0 10px rgba(255,255,255,.05)}}
.rhms-queue-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:12px 0}.rhms-queue-stat{display:flex;align-items:center;gap:10px;padding:12px;border-radius:16px;color:#fff;box-shadow:0 6px 0 rgba(27,61,94,.18)}.rhms-queue-stat i{font-style:normal;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.16);font-size:19px}.rhms-queue-stat small{font-size:10px;display:block}.rhms-queue-stat b{font-size:22px}.rhms-queue-stat.blue{background:linear-gradient(135deg,#388be4,#1b63b8)}.rhms-queue-stat.orange{background:linear-gradient(135deg,#ffa43a,#e27b12)}.rhms-queue-stat.purple{background:linear-gradient(135deg,#8b62e9,#6340c4)}.rhms-queue-stat.green{background:linear-gradient(135deg,#24b979,#0d8a55)}.rhms-queue-stat.teal{background:linear-gradient(135deg,#22b8b0,#07827b)}
.rhms-queue-controls,.rhms-queue-list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.rhms-queue-next-form,.rhms-queue-filter{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.rhms-queue-next-form select,.rhms-queue-filter select,.rhms-queue-filter input{height:36px;min-width:170px}.rhms-queue-next{background:linear-gradient(180deg,#16b68f,#087f62)!important;color:#fff!important;font-weight:900}.rhms-token-badge{display:inline-block;min-width:70px;text-align:center;padding:7px 9px;border-radius:11px;background:linear-gradient(180deg,#153e75,#0b2850);color:#fff;font-weight:900;font-size:13px;box-shadow:0 4px 0 #071b38}.rhms-queue-status{display:inline-block;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:900;text-transform:uppercase}.rhms-queue-status.waiting{background:#fff0c2;color:#8a5a00}.rhms-queue-status.called{background:#e9ddff;color:#5e31b6}.rhms-queue-status.in_doctor_room{background:#d9f8e9;color:#087c4d}.rhms-queue-status.completed{background:#d7f7f5;color:#006f69}.rhms-queue-status.cancelled{background:#ffe0e4;color:#b81d37}.rhms-queue-actions{display:flex;gap:5px;flex-wrap:wrap}.rhms-queue-actions .rhms-inline-form{margin:0}.rhms-mini-btn.blue{background:#2878cc;color:#fff}.rhms-mini-btn.gray{background:#788b9e;color:#fff}.rhms-mini-btn.red{background:#df4254;color:#fff}.rhms-mini-btn.orange{background:#ed8c22;color:#fff}.rhms-mini-btn.green{background:#0d9a69;color:#fff}.rhms-queue-table tr.queue-called{background:#f4efff}.rhms-queue-table tr.queue-in_doctor_room{background:#effcf7}.rhms-queue-workflow{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.rhms-queue-workflow span{padding:9px 11px;border-radius:12px;background:#eef6fb;border:1px solid #d8e6f0;font-size:11px;font-weight:800;color:#193a5d}.rhms-queue-help p{font-size:11px;color:#6c7f92;margin:10px 0 0}
@media(max-width:1000px){.rhms-queue-stats{grid-template-columns:repeat(3,1fr)}}@media(max-width:650px){.rhms-queue-stats{grid-template-columns:repeat(2,1fr)}.rhms-queue-call strong{font-size:17px}.rhms-queue-next-form,.rhms-queue-filter{width:100%}.rhms-queue-next-form select,.rhms-queue-filter select,.rhms-queue-filter input,.rhms-queue-next-form button,.rhms-queue-filter button{flex:1 1 140px;min-width:0}}
/* v6.0.48 Emergency Care 3D */
.rhms-emg-alert{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 15px;margin-bottom:12px;border-radius:14px;background:linear-gradient(135deg,#fff1f2,#ffe5e8);border:1px solid #ffc8cf;box-shadow:0 5px 0 #f2c7cc;color:#9f1d2b}.rhms-emg-alert b{display:block;font-size:14px}.rhms-emg-alert span{font-size:11px}.rhms-emg-live{background:#db3244;color:#fff!important;border-radius:999px;padding:6px 10px;font-weight:900;letter-spacing:1px}.rhms-emg-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.rhms-emg-kpi{display:flex;align-items:center;gap:10px;padding:12px;border-radius:14px;color:#fff;box-shadow:0 6px 0 rgba(20,52,80,.16),0 10px 18px rgba(20,52,80,.12)}.rhms-emg-kpi>span{font-size:22px}.rhms-emg-kpi small{display:block;font-size:10px;font-weight:800}.rhms-emg-kpi b{font-size:22px}.rhms-emg-kpi.critical{background:linear-gradient(135deg,#f05a66,#c92d3a)}.rhms-emg-kpi.urgent{background:linear-gradient(135deg,#ff9d35,#db7012)}.rhms-emg-kpi.moderate{background:linear-gradient(135deg,#e8bf32,#b98a08)}.rhms-emg-kpi.stable{background:linear-gradient(135deg,#20b47d,#087d58)}.rhms-emg-title{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.rhms-emg-title span{font-size:9px;letter-spacing:1px;font-weight:900;color:#d53e4e}.rhms-emg-title h2{margin:3px 0!important}.rhms-emg-title p{margin:0;color:#6b7f93;font-size:10px}.rhms-emg-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 10px;margin-top:12px}.rhms-emg-grid .field{margin:0}.rhms-emg-grid label{font-size:10px}.rhms-emg-grid input,.rhms-emg-grid select{min-height:34px!important;padding:6px 8px!important;font-size:11px!important}.rhms-emg-grid textarea{min-height:58px!important;font-size:11px!important}.rhms-emg-grid .span-2{grid-column:span 2}.rhms-emg-list-card{margin-top:14px}.rhms-emg-list-head h2{margin-bottom:2px}.rhms-emg-list-head p{margin:0 0 9px;color:#6d8093;font-size:10px}.rhms-emg-filter{display:grid;grid-template-columns:150px 180px minmax(240px,1fr) auto;gap:8px;margin-bottom:10px}.rhms-emg-filter select,.rhms-emg-filter input{height:36px}.rhms-emg-table{min-width:1450px}.rhms-emg-priority{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:900;color:#fff}.rhms-emg-priority.critical{background:#d83142}.rhms-emg-priority.urgent{background:#e67a16}.rhms-emg-priority.moderate{background:#c99408}.rhms-emg-priority.stable{background:#11936a}.rhms-emg-table tr.emg-row-critical td{background:#fff6f7}.rhms-emg-table tr.emg-row-urgent td{background:#fffaf4}.rhms-emg-route{height:30px;max-width:125px;font-size:9px;margin-right:4px}
@media(max-width:980px){.rhms-emg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rhms-emg-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.rhms-emg-filter{grid-template-columns:1fr 1fr}.rhms-emg-filter input{grid-column:1/-1}.rhms-emg-filter .rhms-btn{grid-column:1/-1}}
@media(max-width:560px){.rhms-emg-grid{grid-template-columns:1fr}.rhms-emg-grid .span-2{grid-column:auto}.rhms-emg-kpis{grid-template-columns:1fr 1fr}.rhms-emg-alert{align-items:flex-start}.rhms-emg-filter{grid-template-columns:1fr}.rhms-emg-filter input,.rhms-emg-filter .rhms-btn{grid-column:auto}}


/* v6.0.49 Triage/Vitals + reusable Patient picker */
.rhms-triage-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.rhms-triage-stat{min-height:82px;border-radius:18px;padding:15px 18px;color:#fff;display:flex;align-items:center;gap:13px;box-shadow:0 7px 0 rgba(11,50,75,.13),0 12px 25px rgba(31,78,121,.12);position:relative;overflow:hidden}.rhms-triage-stat:after{content:"";position:absolute;width:80px;height:80px;border-radius:50%;right:-24px;top:-28px;background:rgba(255,255,255,.14)}.rhms-triage-stat>span{font-size:25px}.rhms-triage-stat small{display:block;font-weight:800;font-size:12px}.rhms-triage-stat b{font-size:24px;line-height:1.1}.rhms-triage-stat.red{background:linear-gradient(135deg,#ef476f,#c9184a)}.rhms-triage-stat.orange{background:linear-gradient(135deg,#ff9f1c,#e76f00)}.rhms-triage-stat.yellow{background:linear-gradient(135deg,#f4b942,#d99000)}.rhms-triage-stat.green{background:linear-gradient(135deg,#21b573,#078a54)}
.rhms-triage-card{padding:18px}.rhms-triage-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.rhms-triage-head>div>span{font-size:10px;font-weight:900;letter-spacing:1.6px;color:#07997e}.rhms-triage-head h2{margin:4px 0 2px}.rhms-triage-head p{margin:0;color:#698399;font-size:12px}.rhms-triage-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 12px}.rhms-triage-grid .span-2{grid-column:span 2}.rhms-triage-grid .field label small{font-weight:500;color:#607d8b}.rhms-triage-grid input,.rhms-triage-grid select{min-height:40px}.rhms-triage-grid textarea{min-height:70px}.rhms-priority-pill{display:inline-block;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:900;color:#fff}.rhms-priority-pill.critical{background:#d90429}.rhms-priority-pill.urgent{background:#f77f00}.rhms-priority-pill.moderate{background:#e9a100}.rhms-priority-pill.stable{background:#159957}.rhms-vitals-table td{white-space:nowrap}.rhms-vitals-table td:nth-child(2){white-space:normal;min-width:180px}
.rhms-patient-modal{position:fixed;inset:0;background:rgba(7,31,55,.72);backdrop-filter:blur(4px);display:none;align-items:center;justify-content:center;padding:20px;z-index:999999}.rhms-patient-modal.open{display:flex}.rhms-patient-modal-box{width:min(1180px,96vw);max-height:88vh;overflow:auto;background:#f8fcff;border-radius:22px;padding:18px;box-shadow:0 26px 70px rgba(0,0,0,.3),0 8px 0 rgba(14,73,106,.14)}.rhms-patient-modal-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.rhms-patient-modal-head h2{margin:0}.rhms-patient-modal-head p{margin:3px 0 0;color:#6c8293}.rhms-patient-picker-search{display:flex;gap:12px;align-items:center;margin:8px 0 12px}.rhms-patient-picker-search input{flex:1;min-height:42px;border:1px solid #c5d9e5;border-radius:12px;padding:0 14px}.rhms-patient-picker-search span{font-size:12px;color:#6c8293}.rhms-patient-modal tbody tr[data-pidx]{cursor:pointer}.rhms-patient-modal tbody tr[data-pidx]:hover,.rhms-patient-modal tbody tr[data-pidx]:focus{background:#fff3b0;outline:2px solid #12a886;outline-offset:-2px}
@media(max-width:1000px){.rhms-triage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rhms-triage-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.rhms-triage-grid{grid-template-columns:1fr}.rhms-triage-grid .span-2{grid-column:span 1}.rhms-triage-summary{grid-template-columns:1fr 1fr;gap:8px}.rhms-triage-stat{min-height:70px;padding:10px}.rhms-patient-picker-search{flex-direction:column;align-items:stretch}.rhms-patient-modal{padding:6px}.rhms-patient-modal-box{width:100%;max-height:96vh;border-radius:16px}}

/* v6.0.51 Operation Theatre Management */
.rhms-ot-tabs{display:flex;gap:8px;margin:0 0 12px;flex-wrap:wrap}.rhms-ot-tabs a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 18px;border:1px solid #cfe0ee;border-radius:12px;background:#fff;color:#123b63;text-decoration:none;font-weight:800;box-shadow:0 5px 0 #d5e1ea}.rhms-ot-tabs a.active{background:linear-gradient(135deg,#10b49b,#068d7d);color:#fff;border-color:#0b9b88;box-shadow:0 5px 0 #087465}.rhms-ot-booking-card{padding:16px!important}.rhms-ot-booking-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:12px}.rhms-ot-booking-head span{font-size:10px;letter-spacing:.08em;font-weight:900;color:#0b9b88}.rhms-ot-booking-head h2{margin:3px 0 2px}.rhms-ot-booking-head p{margin:0;color:#71869a;font-size:12px}.rhms-ot-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.rhms-ot-section{border:1px solid #d6e4ee;border-radius:14px;padding:12px;background:linear-gradient(180deg,#ffffff,#f7fbfe);box-shadow:0 5px 0 #d8e5ed}.rhms-ot-section.wide{margin-top:12px}.rhms-ot-section h3{margin:0 0 10px;font-size:15px;color:#0b456a;padding-bottom:7px;border-bottom:1px solid #dfeaf1}.rhms-form-grid.compact{gap:8px 12px}.rhms-form-grid.compact .field label{font-size:11px;margin-bottom:3px}.rhms-form-grid.compact input,.rhms-form-grid.compact select,.rhms-form-grid.compact textarea{min-height:36px;padding:7px 10px;font-size:12px}.rhms-ot-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.rhms-ot-list-head h2{margin:0}.rhms-ot-list-head p{margin:2px 0 0;color:#74889b;font-size:12px}.rhms-ot-filter{display:flex;gap:8px;align-items:center;margin-bottom:10px}.rhms-ot-filter select{width:180px}.rhms-ot-filter input{flex:1;min-width:220px}.rhms-ot-filter select,.rhms-ot-filter input{height:38px;border:1px solid #cbdce8;border-radius:10px;padding:0 11px;background:#fff}.rhms-source-pill{display:inline-block;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:900}.rhms-source-pill.registered{background:#dff2ff;color:#12628f}.rhms-source-pill.admitted{background:#dcf7e9;color:#087e55}.rhms-ot-table th,.rhms-ot-table td{font-size:11px;white-space:nowrap}.rhms-priority-pill.emergency{background:#ffe0e4;color:#b81e30}.rhms-priority-pill.urgent{background:#fff0d6;color:#a55c00}.rhms-priority-pill.routine{background:#e2f7ee;color:#087d5c}
@media(max-width:900px){.rhms-ot-grid{grid-template-columns:1fr}.rhms-ot-filter{flex-wrap:wrap}.rhms-ot-filter select,.rhms-ot-filter input{width:100%;flex:1 1 100%}.rhms-ot-tabs a{flex:1 1 45%}}
@media(max-width:560px){.rhms-ot-booking-card{padding:10px!important}.rhms-ot-tabs{gap:6px}.rhms-ot-tabs a{font-size:11px;padding:7px 9px}.rhms-form-grid.compact{grid-template-columns:1fr!important}.rhms-form-grid.compact .span-2{grid-column:auto}.rhms-ot-booking-head .rhms-module-badge{display:none}}
/* Health Checkup Package premium dashboard */
.rhms-hc-shell{font-family:Arial,sans-serif}.rhms-hc-head{display:flex;align-items:center;gap:12px;padding:16px 18px;background:linear-gradient(135deg,#fff,#eef8ff);border:1px solid #d5e8f5;border-radius:16px 16px 0 0;box-shadow:0 7px 0 #d9e7ef}.rhms-hc-head h2{margin:0;color:#0b3565;font-size:25px}.rhms-hc-head p{margin:4px 0 0;color:#58718b}.rhms-hc-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:13px;background:linear-gradient(145deg,#20d3a3,#008d6d);font-size:28px;box-shadow:0 6px 0 #087b63;color:#fff}.rhms-hc-tabs{display:flex;gap:7px;margin:18px 0 12px}.rhms-hc-tabs a{min-width:150px;padding:13px 18px;text-decoration:none;text-align:center;font-weight:800;color:#11365e;background:linear-gradient(#f8fcff,#dcecf8);border:1px solid #d4e4ef;border-radius:10px 10px 3px 3px;box-shadow:0 4px 0 #c9d9e4}.rhms-hc-tabs a.active{color:#fff;background:linear-gradient(145deg,#188cff,#0869db);box-shadow:0 5px 0 #0754ad}.rhms-hc-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(340px,.95fr);gap:12px}.rhms-hc-card{background:#fff;border:1px solid #d8e8f2;border-radius:12px;padding:12px;box-shadow:0 6px 0 #d8e5ed;margin-bottom:12px}.rhms-hc-card h3,.rhms-hc-benefits h3{margin:-12px -12px 12px;padding:10px 12px;color:#075db6;background:linear-gradient(90deg,#eaf7ff,#d8efff);border-radius:11px 11px 0 0;font-size:17px}.rhms-hc-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px 14px}.rhms-hc-fields .field label{font-weight:700;color:#173a5e;font-size:12px}.rhms-hc-fields input,.rhms-hc-fields select,.rhms-hc-fields textarea,.rhms-hc-card>input{width:100%;min-height:36px;border:1px solid #cbdde9;border-radius:7px;padding:7px 10px;background:#fff}.rhms-hc-fields textarea{min-height:70px}.rhms-hc-benefits{margin-top:15px;padding:12px;border:1px solid #d8e8f2;border-radius:10px}.rhms-hc-test-list{margin-top:8px;max-height:325px;overflow:auto;border:1px solid #dce8f0;border-radius:8px}.rhms-hc-test-list label{display:flex;align-items:center;gap:8px;padding:8px 9px;border-bottom:1px solid #e5eef4;cursor:pointer}.rhms-hc-test-list label span{margin-left:auto;color:#66809a;font-size:11px}.rhms-hc-test-list input{width:auto}.rhms-hc-selected #rhms-hc-count{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#ef3d50;color:#fff}.rhms-hc-selected #rhms-hc-selected>div{padding:7px;border-bottom:1px solid #e8eef3}.rhms-hc-list-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.rhms-hc-list-head h3{margin:0}.rhms-hc-list-head input{max-width:340px}.rhms-hc-report-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:15px 0}.rhms-hc-report-grid .rhms-stat-card{padding:18px;border-radius:14px;color:#fff;box-shadow:0 7px 0 rgba(10,40,70,.18)}.rhms-hc-report-grid strong{display:block;font-size:28px;margin-top:8px}@media(max-width:1000px){.rhms-hc-grid,.rhms-hc-fields{grid-template-columns:1fr}.rhms-hc-tabs{overflow:auto}.rhms-hc-report-grid{grid-template-columns:1fr}}
