:root{--ink:#122033;--muted:#6c7889;--line:#e7ebf0;--bg:#f5f7fb;--card:#fff;--primary:#173d72;--accent:#c49b45;--green:#1e8e5a;--red:#c94343;--shadow:0 14px 40px rgba(24,43,73,.08)}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial;color:var(--ink);background:var(--bg)}a{text-decoration:none;color:inherit}.app-shell{display:flex;min-height:100vh}.sidebar{width:260px;background:#102d54;color:#dce8f8;padding:20px 15px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:11px;align-items:center;padding:6px 10px 25px;border-bottom:1px solid rgba(255,255,255,.12)}.brand-mark{width:44px;height:44px;border-radius:13px;background:linear-gradient(135deg,#d8b35a,#8e6422);display:grid;place-items:center;font-weight:900;color:#fff}.brand strong{display:block;color:#fff;font-size:14px;max-width:160px}.brand small{color:#a9bdd7}.sidebar nav{padding-top:18px;display:grid;gap:6px}.sidebar nav a,.logout{padding:12px 13px;border-radius:10px;color:#c5d5e9;display:flex;gap:12px;align-items:center;font-size:14px}.sidebar nav a:hover,.sidebar nav a.active,.logout:hover{background:rgba(255,255,255,.09);color:#fff}.side-bottom{margin-top:auto}.admin-chip{display:flex;gap:10px;align-items:center;padding:12px 8px;margin-bottom:8px;border-top:1px solid rgba(255,255,255,.12)}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#d9b25d;color:#17365f;font-weight:800}.admin-chip b,.admin-chip small{display:block}.admin-chip b{font-size:13px;color:#fff}.admin-chip small{font-size:11px;color:#9fb4cf}.logout{color:#ffcfcd}.main{margin-left:260px;width:calc(100% - 260px)}.topbar{height:88px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 30px;justify-content:space-between;position:sticky;top:0;z-index:10}.topbar h1{font-size:23px;margin:0 0 2px}.topbar p{margin:0;color:var(--muted);font-size:12px}.top-verify{border:1px solid var(--line);padding:10px 14px;border-radius:10px;font-size:13px}.menu-btn{display:inline-grid;place-items:center;border:0;background:#eef3f9;color:#173d72;border-radius:9px;padding:9px;cursor:pointer}.content{padding:28px;max-width:1500px;margin:auto}.grid{display:grid;gap:18px}.stats{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:var(--card);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:20px}.stat{position:relative;overflow:hidden}.stat .label{font-size:12px;color:var(--muted)}.stat .value{font-size:30px;font-weight:800;margin-top:8px}.stat .icon{position:absolute;right:18px;top:18px;width:40px;height:40px;border-radius:12px;background:#edf3fb;display:grid;place-items:center}.section-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:28px 0 13px}.section-head h2{font-size:18px;margin:0}.btn{border:0;border-radius:10px;padding:10px 14px;background:var(--primary);color:#fff;font-weight:700;cursor:pointer;display:inline-flex;gap:7px;align-items:center}.btn.gold{background:linear-gradient(135deg,#b9872e,#d5b260)}.btn.light{background:#eef3f9;color:#173d72}.btn.danger{background:#b93636}.btn.small{padding:8px 10px;font-size:12px}.toolbar{display:flex;gap:10px;flex-wrap:wrap}.input,.select,.textarea{width:100%;border:1px solid #dfe5ec;border-radius:10px;padding:11px 12px;background:#fff;outline:none;color:var(--ink);font:inherit}.input:focus,.select:focus,.textarea:focus{border-color:#7d9bc2;box-shadow:0 0 0 3px #dce8f7}.textarea{min-height:100px;resize:vertical}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.field label{display:block;font-size:12px;font-weight:700;margin:0 0 7px}.field.full{grid-column:1/-1}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;min-width:800px}.table th,.table td{text-align:left;padding:13px 10px;border-bottom:1px solid var(--line);font-size:13px}.table th{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.05em}.badge{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:800}.badge.success{background:#e3f5eb;color:#167448}.badge.danger{background:#fde8e8;color:#a82f2f}.badge.warning{background:#fff3d9;color:#8c671b}.badge.info{background:#eaf1fb;color:#315c8e}.alert{padding:12px 16px;margin:16px 28px 0;border-radius:10px;font-size:13px}.alert.success{background:#e9f7ef;color:#176d45}.alert.danger{background:#fdecec;color:#a42e2e}.actions{display:flex;gap:7px;flex-wrap:wrap}.empty{text-align:center;color:var(--muted);padding:35px}.hero{background:linear-gradient(135deg,#102d54,#1c4a83);color:#fff;border-radius:22px;padding:28px;position:relative;overflow:hidden}.hero:after{content:"";position:absolute;width:240px;height:240px;border:1px solid rgba(255,255,255,.1);border-radius:50%;right:-60px;top:-80px}.hero h2{font-size:28px;margin:0 0 8px}.hero p{color:#c9d9eb;max-width:650px}.split{grid-template-columns:1.25fr .75fr}.searchbar{display:grid;grid-template-columns:1fr auto;gap:10px}.doc-frame{background:#eef2f7;padding:25px;border-radius:16px;text-align:center}.idcard{width:100%;max-width:520px;margin:auto;aspect-ratio:1.586/1;border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 20px 60px rgba(18,32,51,.18);position:relative;border:4px solid #c6a04f;text-align:left}.idcard .top{height:30%;background:linear-gradient(135deg,#12365f,#1e5b91);color:#fff;padding:14px 18px;display:flex;gap:10px;align-items:center}.idcard .logo{width:46px;height:46px;object-fit:contain;background:#fff;border-radius:10px;padding:4px}.idcard .org{font-weight:900;font-size:15px}.idcard .sub{font-size:9px;opacity:.8}.idbody{display:flex;gap:14px;padding:18px}.photo{width:92px;height:110px;border-radius:10px;object-fit:cover;background:#eef1f5;border:3px solid #fff;box-shadow:0 4px 12px #0001}.idfields{display:grid;grid-template-columns:1fr 1fr;gap:6px;flex:1}.kv small{display:block;color:#788493;font-size:8px;text-transform:uppercase}.kv b{font-size:10px}.idqr{width:62px;height:62px;object-fit:contain;margin-left:auto}.idbottom{position:absolute;left:0;right:0;bottom:0;padding:7px 12px;background:#f7f1df;font-size:8px;color:#5d4a20;display:flex;justify-content:space-between}.certificate{max-width:1000px;margin:auto;aspect-ratio:1.414/1;background:#fff;position:relative;border:14px solid #f1e5c5;box-shadow:0 20px 60px rgba(18,32,51,.14);padding:44px;text-align:center}.certificate:before{content:"";position:absolute;inset:16px;border:2px solid #c59e4d}.certificate .cert-logo{height:60px;max-width:130px;object-fit:contain}.certificate h1{font-family:Georgia,serif;letter-spacing:.08em;color:#173d72;font-size:30px;margin:12px 0}.certificate h2{font-family:Georgia,serif;color:#a1782d;font-size:17px;margin:5px}.certificate .cert-name{font-family:Georgia,serif;font-size:32px;font-weight:700;color:#182b45;margin:18px 0 5px}.certificate .desc{max-width:730px;margin:10px auto;line-height:1.6;color:#536172;font-size:13px}.signs{display:flex;justify-content:space-between;margin-top:28px;padding:0 40px;font-size:11px}.signline{border-top:1px solid #7e8792;padding-top:6px;width:180px}.verify-wrap{min-height:100vh;background:radial-gradient(circle at top right,#e7f0ff,#f6f8fb 45%,#edf2f8);padding:30px}.verify-card{max-width:950px;margin:30px auto;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 25px 70px rgba(23,61,114,.12);overflow:hidden}.verify-head{padding:28px;background:#102d54;color:#fff;text-align:center}.verify-head img{height:55px;max-width:150px;object-fit:contain;background:#fff;border-radius:10px;padding:4px}.verify-head h1{margin:12px 0 5px;font-size:25px}.verify-head p{margin:0;color:#c9d9eb}.verify-body{padding:28px}.verify-result{border:1px solid #dfe6ef;border-radius:16px;padding:20px}.verified{background:#e8f7ef;border-color:#bce4cf}.invalid{background:#fff0f0;border-color:#f2caca}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}.result-grid div{background:#f8fafc;padding:12px;border-radius:10px}.result-grid small{display:block;color:var(--muted);font-size:10px}.result-grid b{font-size:13px}.verify-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:18px}.login-page{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#0d284b,#173d72 55%,#c49b45)}.login-card{width:min(430px,92vw);background:#fff;border-radius:22px;padding:30px;box-shadow:0 30px 90px #0004}.login-brand{text-align:center;margin-bottom:22px}.login-brand .brand-mark{margin:auto}.login-brand h1{font-size:22px}.login-brand p{color:var(--muted);font-size:12px}.print-only{display:none}
@media(max-width:1050px){.stats{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:repeat(2,1fr)}.split{grid-template-columns:1fr}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:.25s}.nav-open .sidebar{transform:translateX(0)}.main{margin-left:0;width:100%}.menu-btn{display:block;border:0;background:#eef3f9;border-radius:9px;padding:9px}.topbar{padding:0 15px;height:76px}.top-verify{display:none}.content{padding:16px}.alert{margin:12px 16px 0}.stats{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.searchbar{grid-template-columns:1fr}.result-grid{grid-template-columns:1fr 1fr}.certificate{padding:25px}.certificate .cert-name{font-size:22px}.certificate h1{font-size:22px}.signs{padding:0 10px}}
@media(max-width:480px){.stats{grid-template-columns:1fr}.result-grid{grid-template-columns:1fr}.card{padding:15px}.idcard{transform-origin:top center}.idbody{padding:12px}.photo{width:75px;height:90px}.idfields{gap:4px}.idqr{width:50px;height:50px}.certificate{border-width:8px;padding:20px}.certificate:before{inset:9px}.certificate .desc{font-size:10px}.signs{font-size:9px}.signline{width:120px}}
@media print{body{background:#fff}.sidebar,.topbar,.alert,.no-print{display:none!important}.main{margin:0;width:100%}.content{padding:0}.doc-frame{padding:0;background:#fff}.idcard{box-shadow:none}.certificate{box-shadow:none}.print-only{display:block}}
.page-note{margin:4px 0 0;color:var(--muted);font-size:12px}.form-hint{margin-top:14px;padding:11px 13px;background:#f6f8fb;border:1px solid var(--line);border-radius:10px;color:var(--muted);font-size:12px}
.document-page{background:#e9edf3;min-height:100vh}.document-toolbar{display:flex;justify-content:center;gap:10px;padding:15px;position:sticky;top:0;z-index:30;background:rgba(255,255,255,.92);backdrop-filter:blur(8px);border-bottom:1px solid #dfe5ec}.bhro-id-stage,.bhro-certificate-stage{padding:25px;display:flex;justify-content:center}.bhro-id-sheet{position:relative;width:min(1536px,100%);aspect-ratio:1536/1024;overflow:hidden;background:#fff;box-shadow:0 20px 70px rgba(12,28,52,.2)}.bhro-id-bg,.bhro-certificate-bg{position:absolute;inset:0;width:100%;height:100%;display:block}.id-overlay-value{position:absolute;z-index:2;font-family:Georgia,'Times New Roman',serif;font-weight:700;color:#071f5b;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}.id-name{left:38.1%;top:36.3%;width:23%;font-size:clamp(14px,1.75vw,30px)}.id-designation{left:38.1%;top:41.2%;width:23%;font-size:clamp(12px,1.45vw,24px)}.id-memberid{left:38.1%;top:46.7%;width:23%;font-size:clamp(11px,1.35vw,22px);color:#c40000}.id-blood{left:38.1%;top:51.8%;width:23%;font-size:clamp(12px,1.45vw,24px)}.id-valid{left:38.1%;top:57.0%;width:23%;font-size:clamp(12px,1.45vw,24px)}.id-overlay-photo{position:absolute;z-index:3;left:3.05%;top:33.3%;width:14.2%;height:26.8%;object-fit:cover;border:2px solid #102d72;border-radius:12px;background:#eee}.id-overlay-qr{position:absolute;z-index:3;left:27.8%;top:58.1%;width:6.7%;aspect-ratio:1;background:#fff;padding:3px}.id-overlay-back-address{position:absolute;z-index:2;left:52.3%;top:58.0%;width:42%;height:12.8%;font:600 clamp(12px,1.35vw,22px)/1.65 Arial,sans-serif;color:#111;overflow:hidden}.id-overlay-back-email{position:absolute;z-index:2;left:83.2%;top:76.5%;width:14%;font:600 clamp(9px,.9vw,15px) Arial,sans-serif;color:#111;overflow:hidden;white-space:nowrap}.id-overlay-back-mobile{position:absolute;z-index:2;left:83.2%;top:82.1%;width:14%;font:600 clamp(9px,.9vw,15px) Arial,sans-serif;color:#111;white-space:nowrap}.bhro-certificate-sheet{position:relative;width:min(1536px,100%);aspect-ratio:1536/1024;overflow:hidden;background:#fff;box-shadow:0 20px 70px rgba(12,28,52,.2)}.cert-overlay{position:absolute;z-index:2;text-align:center;color:#071f5b;font-family:Georgia,'Times New Roman',serif}.cert-no{left:7.5%;top:39.4%;width:16%;font-size:clamp(12px,1.35vw,22px);font-weight:700}.cert-date{left:78.3%;top:39.4%;width:14%;font-size:clamp(12px,1.35vw,22px);font-weight:700}.cert-name-field{left:20.2%;top:60.7%;width:59.6%;font-size:clamp(18px,2.25vw,36px);font-style:italic;font-weight:700;color:#111}.cert-program-field{left:23%;top:66.0%;width:54%;font-size:clamp(13px,1.55vw,25px);font-style:italic;font-weight:700;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cert-description-field{left:25%;top:72.8%;width:50%;font-size:clamp(10px,1.15vw,18px);line-height:1.45;font-weight:600;color:#111}.cert-qr{left:48.1%;top:76.5%;width:5.5%;background:#fff;padding:3px}
@media(max-width:760px){.document-toolbar{position:static}.bhro-id-stage,.bhro-certificate-stage{padding:8px}.id-overlay-value{font-size:clamp(7px,1.65vw,14px)}.id-overlay-photo{border-radius:5px}.cert-no,.cert-date{font-size:clamp(6px,1.4vw,12px)}.cert-name-field{font-size:clamp(9px,2.2vw,17px)}.cert-program-field{font-size:clamp(7px,1.7vw,13px)}.cert-description-field{font-size:clamp(5px,1.2vw,9px)}}
@media print{.document-page{background:#fff}.document-toolbar{display:none!important}.bhro-id-stage,.bhro-certificate-stage{padding:0}.bhro-id-sheet,.bhro-certificate-sheet{width:100%;box-shadow:none}.bhro-id-sheet{page-break-after:always}}


/* Header account profile menu */
.sidebar{overflow-y:auto;overflow-x:hidden;scrollbar-width:none;-ms-overflow-style:none}.sidebar::-webkit-scrollbar{display:none;width:0;height:0}
.topbar-left,.topbar-actions{display:flex;align-items:center}.topbar-left{gap:14px}.topbar-actions{gap:14px;margin-left:auto}.profile-menu-wrap{position:relative}.admin-profile-trigger{display:flex;align-items:center;gap:11px;border:0;background:transparent;padding:6px 8px;border-radius:14px;cursor:pointer;color:#1d2d44}.admin-profile-trigger:hover{background:#f4f7fb}.top-avatar{width:46px;height:46px;min-width:46px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#d9af54,#a77822);color:#fff;font-size:17px;font-weight:800;border:3px solid #fff;box-shadow:0 4px 14px rgba(25,44,75,.16)}.top-avatar img,.profile-summary-avatar img{width:100%;height:100%;object-fit:cover;display:block}.top-profile-copy{display:flex;flex-direction:column;text-align:left;line-height:1.25}.top-profile-copy strong{color:#1d2d44;font-size:14px;font-weight:750}.top-profile-copy small{margin-top:3px;color:#6c7a90;font-size:12px}.profile-chevron{font-size:20px;font-weight:700;color:#334a68;transition:transform .2s}.admin-profile-trigger[aria-expanded="true"] .profile-chevron{transform:rotate(180deg)}.profile-dropdown{position:absolute;top:calc(100% + 14px);right:0;width:360px;padding:18px;background:#fff;border:1px solid #e4e9f1;border-radius:18px;box-shadow:0 18px 55px rgba(20,38,65,.18);z-index:1000}.profile-dropdown-header{display:flex;align-items:center;gap:15px;padding-bottom:17px}.profile-summary-avatar{width:76px;height:76px;min-width:76px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#d9af54,#9d6d1e);color:#fff;font-size:25px;font-weight:800;border:3px solid #f4f6fa;box-shadow:0 6px 20px rgba(30,47,72,.14)}.profile-summary-content{min-width:0;display:flex;flex-direction:column}.profile-summary-content strong{color:#1d2d44;font-size:16px;font-weight:750;margin-bottom:4px}.profile-summary-content>span{color:#61718a;font-size:13px}.profile-online-status{display:flex;align-items:center;gap:7px;margin-top:9px;color:#607087;font-size:12px;font-weight:600}.profile-online-status i{width:8px;height:8px;display:block;border-radius:50%;background:#1aa36f;box-shadow:0 0 0 4px rgba(26,163,111,.09)}.profile-dropdown-links{display:flex;flex-direction:column;gap:5px}.profile-dropdown-item{display:flex;align-items:center;gap:13px;width:100%;padding:12px 10px;text-decoration:none;border-radius:12px;color:#24364f;transition:background .2s,transform .2s}.profile-dropdown-item:hover{background:#f5f8fc;transform:translateX(2px)}.profile-dropdown-icon{width:44px;height:44px;min-width:44px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#edf3fa;color:#234e7b;font-size:18px}.profile-dropdown-item>span:last-child{display:flex;flex-direction:column;gap:3px}.profile-dropdown-item strong{color:#24364f;font-size:14px;font-weight:750}.profile-dropdown-item small{color:#748197;font-size:12px}.profile-dropdown-divider{height:1px;background:#e8edf3;margin:9px 0}.profile-logout-item .profile-dropdown-icon{background:#fff0f2;color:#e14a61}
@media(max-width:768px){.top-profile-copy,.profile-chevron{display:none}.admin-profile-trigger{padding:3px}.top-avatar{width:40px;height:40px;min-width:40px}.profile-dropdown{position:fixed;top:72px;right:12px;width:min(360px,calc(100vw - 24px));max-height:calc(100vh - 90px);overflow-y:auto}.topbar-actions{gap:7px}}

.admin-profile-page{max-width:900px;margin:0 auto}.admin-profile-card{padding:28px}.profile-page-heading{display:flex;align-items:center;gap:18px;padding-bottom:24px;margin-bottom:22px;border-bottom:1px solid var(--line)}.profile-page-avatar{width:92px;height:92px;min-width:92px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#d9af54,#9d6d1e);color:#fff;font-size:30px;font-weight:800}.profile-page-avatar img{width:100%;height:100%;object-fit:cover}.profile-page-heading h2{margin:0 0 5px;font-size:23px}.profile-page-heading p{margin:0;color:var(--muted);font-size:13px}.form-note{display:block;margin-top:6px;color:var(--muted);font-size:11px}.profile-page-actions{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}@media(max-width:560px){.admin-profile-card{padding:18px}.profile-page-heading{align-items:flex-start}.profile-page-avatar{width:70px;height:70px;min-width:70px;font-size:24px}}


/* =====================================================
   MEMBER PORTAL COMMAND CENTER
   ===================================================== */
.member-content{max-width:1480px;margin:0 auto}.member-nav-label{padding:18px 18px 8px;color:#7f91aa;font-size:10px;font-weight:800;letter-spacing:1.5px}.member-sidebar nav a i{font-style:normal;width:22px;text-align:center}.member-sidebar nav a{gap:11px}.member-command-hero,.member-page-hero{position:relative;overflow:hidden;border-radius:22px;padding:34px 38px;margin-bottom:18px;background:linear-gradient(135deg,#172f57,#254d80 68%,#1e406e);color:#fff;box-shadow:0 14px 35px rgba(20,43,77,.13)}.member-command-hero:after{content:"";position:absolute;width:280px;height:280px;border:1px solid rgba(255,255,255,.12);border-radius:50%;right:-90px;top:-130px}.member-command-hero{display:flex;justify-content:space-between;align-items:center;gap:25px}.member-command-hero h2,.member-page-hero h2{margin:7px 0 10px;font-size:29px}.member-command-hero p,.member-page-hero p{margin:0;max-width:760px;color:#dce7f6;line-height:1.7}.member-eyebrow{display:inline-block;color:#d9b66b;font-size:10px;font-weight:900;letter-spacing:1.4px}.member-hero-status{position:relative;z-index:2;display:flex;align-items:center;gap:11px;min-width:205px;padding:15px 17px;border:1px solid rgba(255,255,255,.15);border-radius:14px;background:rgba(255,255,255,.09);backdrop-filter:blur(7px)}.member-hero-status b{display:block;font-size:13px}.member-hero-status small{display:block;margin-top:4px;color:#d8e5f5}.live-dot{width:9px;height:9px;border-radius:50%;background:#47d49b;box-shadow:0 0 0 5px rgba(71,212,155,.12)}.member-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.member-stat-card{position:relative;display:flex;align-items:flex-start;gap:13px;min-width:0;padding:18px;border:1px solid #dfe6ee;border-radius:16px;background:#fff;text-decoration:none;color:#223550;box-shadow:0 7px 20px rgba(20,42,72,.055);transition:.2s}.member-stat-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(20,42,72,.1)}.member-stat-card small{display:block;color:#7a899d;font-size:9px;font-weight:900;letter-spacing:1px}.member-stat-card strong{display:block;margin-top:7px;font-size:18px;color:#1a3153}.member-stat-card em{display:block;margin-top:5px;color:#7b8798;font-size:10px;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.member-stat-card>b{margin-left:auto;color:#244d7c}.member-stat-icon,.document-round-icon{width:43px;height:43px;min-width:43px;display:flex;align-items:center;justify-content:center;border-radius:13px;background:#edf3fa;color:#1b4b78;font-weight:900}.member-quick-actions{padding:21px 22px;margin-bottom:18px;border:1px solid #e1e7ee;border-radius:18px;background:#fff}.member-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.member-action-grid a{padding:18px;border:1px solid #e5eaf0;border-radius:14px;text-decoration:none;color:#26364d;background:#fbfcfe;transition:.2s}.member-action-grid a:hover{border-color:#c8d7e8;background:#f4f8fc}.member-action-grid span{display:block;margin-bottom:11px;color:#b38735;font-size:22px}.member-action-grid b,.member-action-grid small{display:block}.member-action-grid b{font-size:13px}.member-action-grid small{margin-top:5px;color:#7a8798;font-size:11px;line-height:1.5}.member-dashboard-grid{margin-bottom:18px}.member-profile-card .section-head{align-items:center}.member-security-strip{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid #dfe6ed;border-radius:15px;overflow:hidden;background:#fff;margin-bottom:8px}.member-security-strip>div{padding:18px;border-right:1px solid #e7ebf0}.member-security-strip>div:last-child{border-right:0}.member-security-strip span{display:block;color:#b38735;font-size:10px;font-weight:900}.member-security-strip b{display:block;margin-top:6px;color:#243750;font-size:12px}.member-security-strip small{display:block;margin-top:4px;color:#7a8792;font-size:10px;line-height:1.5}.member-page-hero{margin-bottom:18px}.member-document-card{padding:26px}.member-document-main{display:flex;align-items:center;justify-content:space-between;gap:25px}.member-document-main h2{margin:9px 0 6px;color:#1b3151}.member-document-main p{margin:0 0 12px;color:#6e7d91}.member-document-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.member-kyc-info ol{padding-left:20px;line-height:2;color:#56657a}.member-help-chip{padding:8px 12px;border-radius:9px;background:#eef5fb;color:#24517d;text-decoration:none;font-size:11px;font-weight:800}.member-top-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
@media(max-width:1200px){.member-stats-grid,.member-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.member-command-hero{padding:25px 20px;align-items:flex-start;flex-direction:column}.member-page-hero{padding:26px 20px}.member-command-hero h2,.member-page-hero h2{font-size:24px}.member-hero-status{width:100%}.member-stats-grid{grid-template-columns:1fr 1fr}.member-security-strip{grid-template-columns:1fr}.member-security-strip>div{border-right:0;border-bottom:1px solid #e7ebf0}.member-document-main{align-items:flex-start;flex-direction:column}.member-document-actions{justify-content:flex-start}.member-top-actions .member-help-chip{display:none}}@media(max-width:480px){.member-stats-grid,.member-action-grid{grid-template-columns:1fr}.member-command-hero h2,.member-page-hero h2{font-size:21px}.member-quick-actions,.member-document-card{padding:16px}.member-top-actions{display:none}}

/* =========================================================
   MEMBER PORTAL – ADMIN LEVEL UI/UX OVERRIDES
   ========================================================= */
.member-portal-body{background:#f4f7fb}
.member-sidebar{background:linear-gradient(180deg,#142f55 0%,#102947 100%);box-shadow:10px 0 30px rgba(16,41,71,.06)}
.member-sidebar .brand{padding:10px 10px 24px}
.member-sidebar .brand-mark{width:48px;height:48px;border-radius:15px;box-shadow:0 8px 18px rgba(196,155,69,.2)}
.member-sidebar nav{gap:7px;padding-top:14px}
.member-sidebar nav a{min-height:44px;border-radius:11px;padding:12px 14px;font-weight:650}
.member-sidebar nav a.active{background:rgba(255,255,255,.13);box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}
.member-sidebar nav a:hover{transform:translateX(2px);background:rgba(255,255,255,.09)}
.member-topbar{height:90px;padding:0 30px;background:rgba(255,255,255,.96);backdrop-filter:blur(14px)}
.member-header-actions{gap:12px}
.member-help-chip{display:flex;align-items:center;gap:7px;padding:10px 13px;border-radius:10px;background:#f2f7fc;color:#214a75;font-size:11px;font-weight:800;border:1px solid #e0e9f2}
.member-chip-dot{width:7px;height:7px;border-radius:50%;background:#21a36d;box-shadow:0 0 0 4px rgba(33,163,109,.08)}
.member-profile-menu-wrap{padding-left:2px}
.member-profile-trigger{min-height:58px;padding:6px 10px;border-radius:15px}
.member-profile-trigger:hover,.member-profile-trigger[aria-expanded="true"]{background:#f4f7fb}
.member-profile-trigger[aria-expanded="true"]{box-shadow:0 0 0 1px #e3e9f1}
.member-profile-dropdown{min-width:365px;right:0;top:calc(100% + 12px);z-index:99999!important}
.member-profile-dropdown.is-open{display:block!important;animation:memberMenuIn .18s ease both}
.member-profile-dropdown[hidden]{display:none!important}
@keyframes memberMenuIn{from{opacity:0;transform:translateY(-7px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.member-content{padding:28px 30px 36px}
.member-command-hero{min-height:172px;padding:34px 38px;border-radius:20px;background:linear-gradient(110deg,#18385f 0%,#244d80 65%,#193b66 100%)}
.member-command-hero:before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;right:-150px;bottom:-300px;border:1px solid rgba(255,255,255,.09)}
.member-command-hero h2{font-size:30px;letter-spacing:-.4px}
.member-command-hero p{font-size:14px}
.member-stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.member-stat-card{min-height:118px;padding:18px;border-radius:16px;background:#fff;border:1px solid #e3e9f0}
.member-stat-card strong{font-size:19px}
.member-stat-card>b{align-self:center;font-size:16px}
.member-stat-icon{background:#eef4fa;border:1px solid #e4ebf3}
.member-quick-actions{padding:22px;border-radius:18px;box-shadow:0 10px 28px rgba(20,42,72,.045)}
.member-action-grid a{min-height:125px;background:#fff;border-radius:15px}
.member-action-grid a:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(20,42,72,.06)}
.member-dashboard-grid{grid-template-columns:minmax(0,1.35fr) minmax(360px,.8fr);gap:18px}
.member-dashboard-grid .card{border-radius:18px}
.member-security-strip{box-shadow:0 8px 24px rgba(20,42,72,.035)}

@media(max-width:1200px){
 .member-dashboard-grid{grid-template-columns:1fr}
 .member-help-chip{display:none}
}
@media(max-width:900px){
 .member-content{padding:22px}
 .member-topbar{padding:0 22px}
 .member-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 .member-topbar{height:72px;padding:0 14px}
 .member-header-actions{gap:7px}
 .member-topbar .top-verify{padding:9px 10px;font-size:11px}
 .member-profile-dropdown{position:fixed;top:82px;right:12px;left:auto;width:min(365px,calc(100vw - 24px));max-height:calc(100vh - 96px);overflow-y:auto}
 .member-content{padding:18px 14px 28px}
 .member-command-hero{padding:25px 22px;min-height:auto}
}
@media(max-width:520px){
 .member-topbar .top-verify{display:none}
 .member-stats-grid,.member-action-grid{grid-template-columns:1fr}
 .member-command-hero h2{font-size:23px}
 .member-profile-dropdown{width:calc(100vw - 20px);right:10px}
}

/* =========================================================
   FINAL UNIFIED ADMIN + MEMBER DASHBOARD CARD SYSTEM
   ========================================================= */
.stats{display:grid;gap:16px;margin:16px 0 20px}
.dashboard-stats{grid-template-columns:repeat(6,minmax(0,1fr))}
.stat{position:relative;display:flex;align-items:center;gap:13px;min-width:0;min-height:112px;padding:18px;border:1px solid #e1e8f0;border-radius:17px;background:#fff;box-shadow:0 8px 24px rgba(20,42,72,.055);color:#223550;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.stat:before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,#173d72,#315f97);opacity:.95}
.stat:hover{transform:translateY(-3px);border-color:#cbd9e8;box-shadow:0 15px 32px rgba(20,42,72,.11)}
.stat-icon{width:42px;height:42px;min-width:42px;display:grid;place-items:center;border-radius:13px;background:#edf4fb;color:#1d4a78;font-size:18px;font-weight:900}
.stat-copy{min-width:0;display:block}
.stat-copy small{display:block;color:#78879a;font-size:9px;font-weight:900;letter-spacing:1.15px}
.stat-copy b{display:block;margin:7px 0 3px;color:#172f50;font-size:22px;line-height:1;font-weight:850}
.stat-copy em{display:block;color:#66768a;font-size:10px;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stat-arrow{margin-left:auto;color:#54718f;font-weight:800;font-size:16px}
.dashboard-hero{margin-bottom:0}
.dashboard-eyebrow{display:inline-block;color:#d9b66b;font-size:10px;font-weight:900;letter-spacing:1.4px}
.dashboard-eyebrow.dark{color:#7d8da1;margin-bottom:5px}
.dashboard-table-card .section-head{margin:0 0 13px}
.dashboard-table-card .section-head h2{margin-top:3px}

/* Member dashboard uses the exact same card language as the admin dashboard. */
.member-stats-grid{gap:16px}
.member-stat-card{min-height:112px;border-radius:17px;box-shadow:0 8px 24px rgba(20,42,72,.055)}
.member-stat-card:before{content:"";position:absolute;inset:0 0 auto 0;height:3px;background:linear-gradient(90deg,#173d72,#315f97)}
.member-stat-card:nth-child(2):before{background:linear-gradient(90deg,#2b6079,#4c91a7)}
.member-stat-card:nth-child(3):before{background:linear-gradient(90deg,#2c765d,#53a47e)}
.member-stat-card:nth-child(4):before{background:linear-gradient(90deg,#a56d24,#d2a14e)}
.member-quick-actions,.member-dashboard-grid .card,.member-security-strip{box-shadow:0 10px 28px rgba(20,42,72,.055)}
.member-action-grid a{position:relative;overflow:hidden;border-top:3px solid transparent}
.member-action-grid a:nth-child(1){border-top-color:#315f97}.member-action-grid a:nth-child(2){border-top-color:#2b6079}.member-action-grid a:nth-child(3){border-top-color:#2c765d}.member-action-grid a:nth-child(4){border-top-color:#a56d24}

@media(max-width:1450px){.dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{min-height:108px}}
@media(max-width:520px){.dashboard-stats{grid-template-columns:1fr}.stat{min-height:100px}.stat-copy em{white-space:normal}}

.notification-bell{position:relative;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid #d8e0eb;border-radius:12px;background:#fff;color:#193557;text-decoration:none;font-size:18px}.notification-bell b{position:absolute;top:-7px;right:-7px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#b42318;color:#fff;font-size:11px;line-height:20px;text-align:center}.notification-list{display:grid;gap:12px}.notification-item{display:flex;justify-content:space-between;gap:16px;padding:16px;border:1px solid #e0e6ef;border-radius:14px}.notification-item.unread{border-left:4px solid #c59635;background:#fffcf4}.notification-item p{margin:7px 0;color:#526174}.notification-item small{color:#7a8797}@media(max-width:640px){.notification-item{flex-direction:column}.notification-bell{width:38px;height:38px}}

/* =========================================================
   RESPONSIVE SIDEBAR – SHARED ADMIN + MEMBER PORTALS
   Desktop keeps the sidebar fixed. Tablet/mobile use a drawer
   with the same close control in the sidebar top-right corner.
   ========================================================= */
.sidebar-close,.sidebar-backdrop{display:none}
@media(max-width:1100px){
  .sidebar{width:292px;max-width:86vw;transform:translateX(-105%);transition:transform .24s ease,box-shadow .24s ease;box-shadow:14px 0 34px rgba(9,25,47,.24);z-index:1200;padding-top:18px}
  .nav-open .sidebar{transform:translateX(0)}
  .main{margin-left:0;width:100%}
  .menu-btn{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid #dce5ef;border-radius:12px;background:#f3f7fb;color:#193b63;font-size:21px;cursor:pointer}
  .sidebar-close{display:grid;place-items:center;position:absolute;top:15px;right:14px;width:40px;height:40px;border:1px solid rgba(255,255,255,.18);border-radius:12px;background:rgba(255,255,255,.09);color:#fff;font-size:28px;line-height:1;cursor:pointer;z-index:2}
  .sidebar-close:hover{background:rgba(255,255,255,.16)}
  .sidebar-backdrop{display:block;position:fixed;inset:0;background:rgba(7,20,38,.48);opacity:0;visibility:hidden;transition:opacity .24s ease,visibility .24s ease;z-index:1190}
  .nav-open .sidebar-backdrop{opacity:1;visibility:visible}
  body.nav-open{overflow:hidden}
}
@media(min-width:1101px){
  .sidebar{transform:none!important}
  .sidebar-backdrop{display:none!important}
}
@media(max-width:760px){
  .sidebar{width:286px;max-width:calc(100vw - 42px)}
  .sidebar-close{top:12px;right:12px}
  .brand{padding-right:54px}
  .topbar-left{gap:10px}
}

/* Mobile admin navigation: fixed drawer with its own scroll area. */
@media(max-width:760px){
  .admin-body .sidebar{position:fixed;left:0;top:0;bottom:0;height:100dvh;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:28px;}
  .admin-body .sidebar nav{padding-bottom:24px;}
  .admin-body .sidebar .brand{position:sticky;top:0;z-index:3;background:linear-gradient(180deg,#142f55 0%,#102947 100%);}
}

/* CRM people cards */
.crm-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 16px}
.crm-tabs a{padding:10px 14px;border:1px solid var(--line);background:#fff;border-radius:12px;color:var(--muted);font-weight:700;font-size:13px}
.crm-tabs a.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.crm-tabs b{margin-left:5px}
.people-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.person-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:var(--shadow)}
.person-head{display:flex;gap:13px;align-items:center}
.person-photo{width:64px;height:64px;border-radius:16px;overflow:hidden;display:grid;place-items:center;background:#eaf1fb;color:#173d72;font-weight:900;font-size:22px;flex:0 0 64px}
.person-photo img{width:100%;height:100%;object-fit:cover}
.person-head h3{margin:0 0 5px;font-size:16px}
.role-pill{display:inline-flex;padding:5px 8px;border-radius:999px;background:#f7f1df;color:#7c5a20;font-size:10px;font-weight:800}
.person-meta{display:grid;gap:7px;margin:16px 0;color:#536172;font-size:12px}
.person-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:13px}
.person-actions form{margin:0}
.person-actions .select{width:auto;min-width:112px;padding:8px 9px;font-size:12px}
.person-edit{margin-top:15px;padding-top:15px;border-top:1px dashed #dce3ec}
.person-edit .form-grid{grid-template-columns:1fr 1fr}
@media(max-width:1150px){.people-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.people-grid{grid-template-columns:1fr}.person-edit .form-grid{grid-template-columns:1fr}.person-actions{align-items:stretch}.person-actions .select{width:100%}}

/* ===== CRM COMMAND CENTER REFRESH ===== */
:root{--navy:#071b35;--navy2:#0d315c;--blue:#17589a;--blue2:#2879c7;--gold:#d7ad58}
.admin-body{background:#f3f6fa}
.admin-body .sidebar{background:linear-gradient(180deg,#06182f 0%,#0a2545 46%,#0d3968 100%);border-right:1px solid rgba(255,255,255,.07);box-shadow:10px 0 30px rgba(3,19,38,.12)}
.admin-body .brand{background:linear-gradient(135deg,rgba(255,255,255,.055),rgba(255,255,255,.01));border-radius:16px;padding:10px 10px 18px;margin-bottom:2px}
.admin-body .brand-mark{background:linear-gradient(135deg,#e1be6c,#a86f22);box-shadow:0 8px 22px rgba(214,169,75,.2)}
.admin-body .sidebar nav a{border:1px solid transparent;transition:.2s ease}
.admin-body .sidebar nav a:hover,.admin-body .sidebar nav a.active{background:linear-gradient(90deg,rgba(41,125,207,.25),rgba(255,255,255,.06));border-color:rgba(94,166,232,.15);box-shadow:inset 3px 0 0 #4d9be0}
.admin-body .topbar{background:rgba(255,255,255,.96);backdrop-filter:blur(14px);box-shadow:0 4px 20px rgba(15,37,65,.045)}
.admin-body .content{padding-top:24px}
.dashboard-hero{background:linear-gradient(120deg,#071d38 0%,#0d3b6e 58%,#1b65a5 100%);box-shadow:0 20px 45px rgba(7,35,66,.16);border:1px solid rgba(255,255,255,.05)}
.dashboard-hero:before{content:"";position:absolute;width:520px;height:520px;border-radius:50%;right:-170px;top:-270px;border:1px solid rgba(255,255,255,.08);box-shadow:0 0 0 55px rgba(255,255,255,.018),0 0 0 110px rgba(255,255,255,.012)}
.dashboard-hero-copy{position:relative;z-index:1}
.dashboard-hero h2{font-size:31px;letter-spacing:-.6px}
.dashboard-stats .stat{background:linear-gradient(180deg,#fff,#fbfcfe);border-color:#dfe7f0}
.dashboard-stats .stat:nth-child(1) .stat-icon,.dashboard-stats .stat:nth-child(2) .stat-icon{background:#eaf4ff;color:#1e65a1}
.dashboard-stats .stat:nth-child(3) .stat-icon{background:#edf5f0;color:#247552}
.dashboard-stats .stat:nth-child(4) .stat-icon{background:#fff5e5;color:#9b6b1d}
.dashboard-stats .stat:nth-child(5) .stat-icon{background:#f0edfb;color:#5c4a9b}
.dashboard-stats .stat:nth-child(6) .stat-icon{background:#eef5fb;color:#23618e}
.dashboard-stats .stat:nth-child(7) .stat-icon{background:#eaf8f3;color:#1d785d}
.dashboard-stats .stat:nth-child(8) .stat-icon{background:#fff1ed;color:#a54e35}
.dashboard-stats .stat:nth-child(9) .stat-icon{background:#eef2fb;color:#405d96}
.dashboard-table-card{border:1px solid #dfe7f0;box-shadow:0 12px 30px rgba(20,42,72,.06)}
.crm-tabs a{box-shadow:0 5px 14px rgba(20,42,72,.035)}
.crm-tabs a.active{background:linear-gradient(135deg,#123b6b,#2169a9);box-shadow:0 8px 20px rgba(18,59,107,.18)}
.person-card{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.person-card:hover{transform:translateY(-3px);box-shadow:0 16px 32px rgba(14,39,70,.1);border-color:#cad9e8}
.person-photo{box-shadow:inset 0 0 0 1px rgba(26,75,120,.08)}
@media(max-width:760px){.admin-body .topbar{padding:0 14px}.admin-body .content{padding:18px 14px 28px}.dashboard-hero h2{font-size:24px}.dashboard-hero{padding:22px}}

/* Final designation desk + hierarchy dashboard */
.designation-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px 30px;border-radius:22px;color:#fff;background:linear-gradient(120deg,#061a34,#0c3d70 58%,#176ca9);box-shadow:0 18px 40px rgba(7,31,58,.15);position:relative;overflow:hidden}.designation-hero:after{content:"";position:absolute;width:360px;height:360px;border:1px solid rgba(255,255,255,.1);border-radius:50%;right:-130px;top:-180px}.designation-hero h2{margin:7px 0;font-size:30px}.designation-hero p{margin:0;max-width:760px;color:#d9e7f6;line-height:1.65}.designation-authority{position:relative;z-index:2;padding:16px 18px;min-width:180px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.09);border-radius:15px}.designation-authority b,.designation-authority span{display:block}.designation-authority span{margin-top:5px;color:#bfd4e9;font-size:11px}.designation-level-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:18px 0}.designation-level-card{padding:15px;border:1px solid #dce5ef;background:#fff;border-radius:15px;box-shadow:0 8px 22px rgba(20,42,72,.05)}.designation-level-card.active{border-color:#2c73b1;box-shadow:0 0 0 2px #d9ebfb}.designation-level-card small,.designation-level-card span{display:block}.designation-level-card small{font-size:9px;font-weight:900;color:#73839a}.designation-level-card strong{display:block;margin:7px 0 2px;font-size:23px;color:#153b67}.designation-level-card span{font-size:10px;color:#8390a0}.designation-filter{grid-template-columns:1.5fr .8fr .8fr auto auto}.designation-member{display:flex;align-items:center;gap:10px;min-width:190px}.designation-member small,.designation-table td>small,.designation-table td small{display:block;color:#7a8798;font-size:10px;margin-top:3px}.mini-person{width:45px;height:45px;border-radius:12px;overflow:hidden;display:grid;place-items:center;background:#eaf2fb;color:#174b7b;font-weight:900}.mini-person img{width:100%;height:100%;object-fit:cover}.final-designation-form{display:grid;grid-template-columns:1fr 1.2fr;gap:7px;min-width:310px}.final-designation-form .input{grid-column:1/-1}.final-designation-form .actions{grid-column:1/-1}.designation-table .table{min-width:1100px}.hierarchy-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.hierarchy-grid a{padding:14px;border:1px solid #e2e8ef;border-radius:13px;background:#f9fbfd}.hierarchy-grid span,.hierarchy-grid small{display:block}.hierarchy-grid span{font-size:11px;font-weight:800;color:#294767}.hierarchy-grid b{display:block;margin:5px 0;font-size:20px;color:#123b6b}.hierarchy-grid small{font-size:9px;color:#7b899a}@media(max-width:1100px){.designation-level-grid,.hierarchy-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.designation-filter{grid-template-columns:1fr 1fr}.designation-filter .btn{width:100%;justify-content:center}}@media(max-width:760px){.designation-hero{align-items:flex-start;flex-direction:column;padding:22px}.designation-hero h2{font-size:24px}.designation-authority{width:100%}.designation-level-grid,.hierarchy-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.designation-filter{grid-template-columns:1fr}.final-designation-form{grid-template-columns:1fr;min-width:260px}.final-designation-form .input,.final-designation-form .actions{grid-column:auto}}@media(max-width:460px){.designation-level-grid,.hierarchy-grid{grid-template-columns:1fr}}

/* Dashboard visual analytics */
.dashboard-visual-grid{display:grid;grid-template-columns:1.15fr 1fr .72fr;gap:16px;margin:18px 0}
.chart-card,.circle-card{min-width:0;overflow:hidden}
.section-head.compact{margin-bottom:10px}.section-head.compact h2{margin-top:4px}
.chart-total{font-size:20px;color:#123b6b;white-space:nowrap}.chart-total small{display:block;text-align:right;font-size:9px;color:#8491a2;font-weight:700}
.bar-chart{height:210px;display:grid;grid-template-columns:repeat(7,1fr);gap:10px;align-items:end;padding:10px 4px 0}
.bar-item{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px;min-width:0}
.bar-item b{font-size:10px;color:#506175}.bar-item small{font-size:8px;color:#94a0ae;white-space:nowrap}.bar-value{font-size:10px;color:#1b4f80;font-weight:800}
.bar-track{height:145px;width:100%;max-width:28px;border-radius:10px;background:#edf3f8;display:flex;align-items:flex-end;overflow:hidden}
.bar-track i{display:block;width:100%;border-radius:10px;background:linear-gradient(180deg,#2e8cda,#123e70);min-height:3px;transition:height .35s ease}
.monthly-bars{display:grid;gap:9px;margin-top:12px}.month-row{display:grid;grid-template-columns:30px 1fr 30px;gap:8px;align-items:center}.month-row b{font-size:9px;color:#607085}.month-row strong{text-align:right;font-size:10px;color:#214b75}.month-track{height:9px;border-radius:999px;background:#edf2f7;overflow:hidden}.month-track i{display:block;height:100%;min-width:2px;border-radius:999px;background:linear-gradient(90deg,#123b6b,#2d8bd6)}
.circle-card{display:flex;flex-direction:column}.circle-metrics{display:flex;justify-content:center;gap:16px;margin:18px 0}.progress-circle{width:112px;height:112px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#1c70b5 var(--progress),#e8eef4 0);position:relative}.progress-circle:before{content:"";position:absolute;inset:10px;border-radius:50%;background:#fff}.progress-circle>div{position:relative;text-align:center}.progress-circle b{display:block;font-size:22px;color:#123b6b}.progress-circle span{font-size:9px;color:#8290a1;font-weight:800;text-transform:uppercase}.payment-circle{background:conic-gradient(#d29b3d var(--progress),#f0ece5 0)}.circle-legend{display:grid;gap:8px;margin-top:auto;padding-top:10px;border-top:1px solid #edf1f5;font-size:10px;color:#647387}.circle-legend i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#1c70b5;margin-right:5px}.circle-legend span:last-child i{background:#d29b3d}
@media(max-width:1200px){.dashboard-visual-grid{grid-template-columns:1fr 1fr}.circle-card{grid-column:1/-1}.circle-metrics{justify-content:flex-start}}
@media(max-width:760px){.dashboard-visual-grid{grid-template-columns:1fr}.circle-card{grid-column:auto}.chart-card,.circle-card{padding:16px}.bar-chart{height:190px}.bar-track{height:125px}.circle-metrics{justify-content:center}.progress-circle{width:100px;height:100px}}

/* Header global search */
.header-global-search{display:flex;align-items:center;gap:7px;height:40px;min-width:290px;padding:4px 6px 4px 10px;border:1px solid #dbe5ef;border-radius:12px;background:#fff;box-shadow:0 4px 14px rgba(10,45,82,.05)}
.header-global-search span{font-size:18px;color:#52708e}.header-global-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#1d2d3d;font-size:12px}.header-global-search button{border:0;border-radius:8px;padding:8px 11px;background:linear-gradient(135deg,#0b315d,#1467b5);color:#fff;font-size:11px;font-weight:700;cursor:pointer}.header-global-search button:hover{transform:translateY(-1px)}
@media(max-width:900px){.header-global-search{min-width:210px}.header-global-search button{display:none}}
@media(max-width:620px){.header-global-search{min-width:44px;width:44px;padding:4px 8px}.header-global-search input{display:none}.header-global-search span{margin:auto}}

/* BHRO Command UI refresh v5 */
:root{--ink:#10233d;--muted:#718096;--line:#dfe7f0;--bg:#f3f6fa;--card:#fff;--primary:#0b2d55;--primary2:#155fa5;--accent:#c79a3b;--shadow:0 12px 32px rgba(15,39,68,.07)}
body{background:radial-gradient(circle at 70% -10%,#e9f2fb 0,transparent 34%),var(--bg);color:var(--ink)}
.sidebar{width:272px;background:linear-gradient(180deg,#071e3a 0%,#0b315b 52%,#092849 100%);padding:18px 13px;border-right:1px solid rgba(255,255,255,.08);box-shadow:10px 0 30px rgba(4,22,42,.08)}
.brand{padding:7px 10px 20px;border-bottom:1px solid rgba(255,255,255,.1)}.brand-mark{width:46px;height:46px;border-radius:14px;background:linear-gradient(145deg,#d8b45d,#916a27);box-shadow:0 7px 18px rgba(0,0,0,.18)}
.sidebar nav{padding-top:14px;gap:4px;overflow:auto}.nav-section-label{padding:12px 13px 5px;color:#7594b6;font-size:9px;letter-spacing:1.4px;font-weight:900}.sidebar nav a{min-height:42px;padding:10px 12px;border:1px solid transparent;border-radius:11px;color:#c9d8e9;transition:.18s ease}.sidebar nav a i{width:24px;height:24px;display:grid;place-items:center;font-style:normal;font-size:14px;color:#9fb9d5}.sidebar nav a:hover{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.07);transform:translateX(2px)}.sidebar nav a.active{background:linear-gradient(90deg,rgba(52,137,215,.24),rgba(255,255,255,.05));border-color:rgba(110,181,241,.18);box-shadow:inset 3px 0 0 #5eb1ef;color:#fff}.sidebar nav a.active i{color:#fff}
.main{margin-left:272px;width:calc(100% - 272px)}.topbar{height:82px;padding:0 28px;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);box-shadow:0 1px 0 rgba(12,43,77,.04)}.topbar h1{font-size:22px;letter-spacing:-.35px}.topbar-left{display:flex;align-items:center;gap:12px}.menu-btn{background:#edf4fb;border:1px solid #dbe7f2}.topbar-actions{gap:10px}.header-global-search{height:44px;min-width:360px;border-radius:13px;background:#f7f9fc;border-color:#d9e3ed}.header-global-search:focus-within{background:#fff;box-shadow:0 0 0 3px rgba(32,111,177,.09)}.header-global-search button{background:linear-gradient(135deg,#0a315d,#176bb2);padding:9px 13px}
.content{padding:26px;max-width:1540px}.card{border-radius:16px;border-color:#e0e7ef;box-shadow:var(--shadow)}.card:hover{box-shadow:0 16px 38px rgba(15,39,68,.09)}.hero{border-radius:20px;box-shadow:0 18px 45px rgba(10,44,82,.12)}.dashboard-hero{background:linear-gradient(120deg,#082a50,#0e4c83 65%,#166da9);position:relative;overflow:hidden}.dashboard-hero:after{content:"";position:absolute;width:330px;height:330px;border:1px solid rgba(255,255,255,.1);border-radius:50%;right:-110px;top:-160px;box-shadow:0 0 0 45px rgba(255,255,255,.025),0 0 0 90px rgba(255,255,255,.02)}
.btn{border-radius:10px;font-weight:800;letter-spacing:.05px;transition:.18s ease}.btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(15,53,91,.12)}.btn.gold{background:linear-gradient(135deg,#d2a84f,#ad7c23)}
.stat,.analytics-card{border-radius:16px;border:1px solid #e0e7ef;box-shadow:0 8px 24px rgba(15,39,68,.05)}.stat:before{background:linear-gradient(90deg,#2c7ec1,#c79a3b)}
.table-wrap{border-radius:13px;border:1px solid #e2e8ef}.table th{background:#f6f8fb;color:#62748a;text-transform:uppercase;letter-spacing:.55px;font-size:9px}.table td{border-bottom-color:#edf1f5}.table tbody tr:hover{background:#f8fbfe}
.input,select,textarea{border:1px solid #d7e1eb;border-radius:10px;background:#fff;transition:.16s ease}.input:focus,select:focus,textarea:focus{border-color:#4d8dc3;box-shadow:0 0 0 3px rgba(52,128,187,.1);outline:0}
.badge{border-radius:999px;font-weight:800}.alert{border-radius:12px}.section-head h2{letter-spacing:-.25px}.dashboard-eyebrow{letter-spacing:1.6px}.profile-menu-wrap{position:relative}.admin-profile-trigger{border:1px solid #e0e7ef;background:#fff;border-radius:13px;padding:6px 9px;box-shadow:0 4px 15px rgba(15,39,68,.04)}

@media(max-width:1100px){.sidebar{width:272px}.main{margin-left:0;width:100%}.topbar{padding:0 18px}.header-global-search{min-width:250px}}
@media(max-width:760px){.content{padding:16px}.topbar{height:72px}.topbar h1{font-size:18px}.topbar-actions{gap:5px}.header-global-search{min-width:42px;width:42px}.header-global-search input{display:none}.header-global-search button{display:none}.top-profile-copy{display:none}}

/* Workflow board */
.workflow-board{margin:20px 0;padding:20px;border:1px solid #dfe7ef;border-radius:18px;background:rgba(255,255,255,.82);box-shadow:0 10px 28px rgba(15,39,68,.05)}.workflow-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:15px}.workflow-head h2{margin:5px 0 4px;font-size:18px}.workflow-steps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.workflow-step{position:relative;display:flex;align-items:center;gap:10px;min-height:82px;padding:12px;border:1px solid #e0e7ef;border-radius:13px;background:#fff;transition:.18s ease}.workflow-step:hover{transform:translateY(-2px);border-color:#b9d1e5;box-shadow:0 10px 22px rgba(15,49,83,.08)}.workflow-step.priority{border-color:#e2c57f;background:linear-gradient(145deg,#fffdf7,#fff)}.workflow-num{font-size:10px;font-weight:900;color:#6e88a1}.workflow-step b,.workflow-step small{display:block}.workflow-step b{font-size:11px;color:#173d63}.workflow-step small{margin-top:4px;font-size:9px;color:#8492a3;line-height:1.35}.workflow-step>strong{margin-left:auto;color:#9bb0c4;font-size:15px}@media(max-width:1250px){.workflow-steps{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.workflow-head{align-items:flex-start;flex-direction:column}.workflow-steps{grid-template-columns:1fr}.workflow-step{min-height:68px}}

/* =========================================================
   BHRO ADMIN CLEAN DESKTOP UI — V7
   Remove duplicate desktop navigation controls and visible
   sidebar scrollbars while keeping mobile drawer navigation.
   ========================================================= */
@media(min-width:1101px){
  .admin-body .menu-btn{display:none!important}
  .admin-body .sidebar-backdrop{display:none!important}
  .admin-body .sidebar{overflow-y:auto;overflow-x:hidden;scrollbar-width:none;-ms-overflow-style:none}
  .admin-body .sidebar::-webkit-scrollbar{width:0;height:0;display:none}
  .admin-body .sidebar nav{overflow:visible}
}

/* Keep the desktop command center visually clean and remove nested scrolling. */
.admin-body .sidebar nav{overflow:visible}
.admin-body .sidebar{scrollbar-width:none;-ms-overflow-style:none}
.admin-body .sidebar::-webkit-scrollbar{display:none;width:0;height:0}
.admin-body .topbar-left{gap:0}
.admin-body .topbar{border-bottom:1px solid #e4eaf1}
.admin-body .topbar h1{font-weight:800;color:#102846}
.admin-body .topbar p{color:#7b899a}
.admin-body .content{background:transparent}
.admin-body .workflow-board{background:#fff;border-color:#e1e8ef;box-shadow:0 8px 26px rgba(15,39,68,.045)}
.admin-body .workflow-step{box-shadow:none}
.admin-body .workflow-step:hover{box-shadow:0 8px 20px rgba(15,49,83,.07)}

@media(max-width:1100px){
  .admin-body .sidebar{scrollbar-width:none;-ms-overflow-style:none}
  .admin-body .sidebar::-webkit-scrollbar{display:none;width:0;height:0}
  .admin-body .sidebar nav{overflow:visible}
}


/* =========================================================
   BHRO HEADER MENU — ALL DEVICES
   One menu control in the dashboard header. Desktop/laptop
   collapses the sidebar; tablet/mobile opens the drawer.
   ========================================================= */
.header-menu-toggle{
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:grid;
  place-content:center;
  gap:4px;
  padding:0;
  margin:0;
  border:1px solid #dbe5ef;
  border-radius:11px;
  background:#f4f8fc;
  color:#153f68;
  cursor:pointer;
  transition:.18s ease;
}
.header-menu-toggle:hover{
  background:#eaf2f9;
  border-color:#c8d9e8;
  transform:translateY(-1px);
}
.header-menu-toggle span{
  display:block;
  width:16px;
  height:2px;
  border-radius:2px;
  background:currentColor;
}
.admin-body .topbar-left{gap:12px}

@media(min-width:1101px){
  .admin-body.nav-collapsed .sidebar{width:76px}
  .admin-body.nav-collapsed .main{margin-left:76px;width:calc(100% - 76px)}
  .admin-body.nav-collapsed .brand{justify-content:center;padding-left:4px;padding-right:4px}
  .admin-body.nav-collapsed .brand > div:last-child,
  .admin-body.nav-collapsed .nav-section-label,
  .admin-body.nav-collapsed .sidebar nav a span{display:none}
  .admin-body.nav-collapsed .sidebar nav a{
    justify-content:center;
    padding-left:8px;
    padding-right:8px;
  }
  .admin-body.nav-collapsed .sidebar nav a i{
    margin:0;
  }
  .admin-body.nav-collapsed .sidebar .brand-mark{width:44px}
}

@media(max-width:1100px){
  .admin-body .header-menu-toggle{display:grid}
  .admin-body .topbar-left{gap:10px}
}

@media(max-width:760px){
  .admin-body .header-menu-toggle{width:38px;height:38px;flex-basis:38px;border-radius:10px}
  .admin-body .topbar-left{gap:8px}
}

/* BHRO mobile drawer close control */
@media(max-width:1100px){
  .admin-body .sidebar-close{
    display:grid!important;
    position:absolute!important;
    top:14px!important;
    right:12px!important;
    width:38px!important;
    height:38px!important;
    align-items:center!important;
    justify-content:center!important;
    border:1px solid rgba(255,255,255,.22)!important;
    border-radius:10px!important;
    background:rgba(255,255,255,.10)!important;
    color:#fff!important;
    font-size:25px!important;
    line-height:1!important;
    cursor:pointer!important;
    z-index:20!important;
  }
  .admin-body .sidebar .brand{
    padding-right:58px!important;
  }
}
@media(min-width:1101px){
  .admin-body .sidebar-close{display:none!important}
}
