:root{--navy:#061d46;--navy2:#0b2e66;--blue:#1677ff;--green:#13b86b;--purple:#7056df;--orange:#f59e0b;--red:#e63d55;--pink:#d94f9f;--bg:#f4f7fb;--text:#12213b;--muted:#6d7b91;--line:#e5eaf2;--white:#fff;--shadow:0 12px 35px rgba(15,40,80,.08)}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}a{text-decoration:none;color:var(--blue)}button,input,select,textarea{font:inherit}input,select,textarea{width:100%;border:1px solid #dbe2ec;background:#fff;border-radius:10px;padding:12px 13px;outline:0}input:focus,select:focus,textarea:focus{border-color:#73a9ff;box-shadow:0 0 0 3px #eaf2ff}textarea{min-height:90px;resize:vertical}label{display:block;font-size:12px;font-weight:800;color:#56657d;margin:14px 0 7px}.app{display:flex;min-height:100vh}.sidebar{width:245px;background:radial-gradient(circle at 12% 18%,rgba(255,169,0,.62) 0 18%,rgba(255,169,0,0) 45%),radial-gradient(circle at 92% 82%,rgba(0,145,55,.72) 0 22%,rgba(0,145,55,0) 58%),linear-gradient(135deg,#ff6900 0%,#ff9b22 18%,#fff4df 38%,#f8fbf4 51%,#b7dfad 66%,#35a44f 82%,#07812f 100%);color:#fff;position:fixed;left:0;top:0;bottom:0;padding:18px 14px;display:flex;flex-direction:column;z-index:30;overflow:hidden;border-right:1px solid rgba(255,255,255,.18)}
.sidebar:before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:linear-gradient(90deg,#ff9933 0 33.333%,#ffffff 33.333% 66.666%,#138808 66.666% 100%);z-index:2}
.sidebar nav{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding-top:18px;padding-right:2px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.35) transparent}
.sidebar nav::-webkit-scrollbar{width:5px}.sidebar nav::-webkit-scrollbar-track{background:transparent}.sidebar nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.35);border-radius:99px}.brand{display:flex;align-items:center;gap:10px;padding:12px 10px 22px;margin:-18px -14px 0;border-bottom:0;position:relative;background:linear-gradient(110deg,#ff6900 0%,#ffb22e 22%,#fffaf0 44%,#ffffff 56%,#e7f6e8 72%,#138808 100%);min-height:145px}.brand img{width:58px;height:58px;object-fit:contain;border-radius:12px;background:transparent}.brand b{display:block;font-size:16px;line-height:1.15;color:#172b50;text-shadow:0 1px 0 rgba(255,255,255,.65)}.brand small{display:block;color:#233b61;font-size:10px;margin-top:4px;font-weight:750}.sidebar .brand:after{content:"";position:absolute;left:18px;right:18px;bottom:16px;height:4px;border-radius:99px;background:linear-gradient(90deg,#ff7a00 0 33.333%,#fff 33.333% 66.666%,#138808 66.666% 100%);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.sidebar .brand{position:relative;border-bottom:0;padding-bottom:22px}
.sidebar nav a{position:relative;overflow:hidden}
.sidebar nav a:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,#ff9933 0 33.333%,#fff 33.333% 66.666%,#138808 66.666% 100%);opacity:0;transition:opacity .2s}
.sidebar nav a:hover:before,.sidebar nav a:focus-visible:before{opacity:1}
.side-bottom{flex:0 0 auto}.sidebar nav{padding-top:18px}.sidebar nav a,.side-bottom a{display:flex;gap:12px;align-items:center;color:#fff;padding:12px 13px;border-radius:14px;margin:4px 0;font-weight:750;font-size:14px;text-shadow:0 1px 2px rgba(0,0,0,.22)}.sidebar nav a:hover{background:rgba(255,255,255,.20);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}.sidebar nav a.active{background:linear-gradient(100deg,rgba(255,143,0,.92),rgba(255,255,255,.20),rgba(19,136,8,.32));color:#fff;box-shadow:0 8px 22px rgba(0,0,0,.12),inset 0 0 0 1px rgba(255,255,255,.18)}.side-bottom{margin-top:auto;border-top:1px solid rgba(255,255,255,.45);padding-top:14px}.online{font-size:12px;color:#00f078;font-weight:850;padding:7px 12px;text-shadow:0 1px 2px rgba(0,0,0,.25)}.main{margin-left:245px;min-height:100vh;width:calc(100% - 245px)}.topbar{height:76px;background:linear-gradient(90deg,#ff9933 0 33.333%,#ffffff 33.333% 66.666%,#138808 66.666% 100%);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 30px;gap:20px;position:sticky;top:0;z-index:5}.mobile-brand{display:none;font-weight:900}.search{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.92);border:1px solid #e4e9f1;border-radius:12px;padding:0 13px;color:#789;height:42px;flex:1;max-width:560px}.search input{border:0;background:transparent;padding:8px;box-shadow:none}.top-user{margin-left:auto;display:flex;align-items:center;gap:9px}.top-user small{display:block;color:var(--muted);font-size:11px}.avatar{width:38px;height:38px;border-radius:50%;background:#e9f1ff;color:var(--blue);display:grid;place-items:center;font-weight:900}.page{padding:28px 30px 45px;max-width:1600px;margin:auto}footer{text-align:center;padding:18px;color:#8390a5;font-size:11px;border-top:1px solid var(--line);background:#fff}.hero{background:linear-gradient(135deg,#0a2a60,#0b59bd);color:#fff;border-radius:20px;padding:28px 30px;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 18px 40px rgba(7,43,95,.18);margin-bottom:20px}.hero h1{margin:4px 0 6px;font-size:28px}.hero p{margin:0;color:#d9e8ff}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:900;color:#8aa0bd}.hero .eyebrow{color:#a9d0ff}.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid #dce4ef;background:#fff;color:#1b3152;padding:10px 15px;border-radius:10px;font-weight:800;cursor:pointer}.btn.primary{background:var(--blue);color:#fff;border-color:var(--blue)}.btn.light{background:#fff;color:#0c3978}.btn.danger{background:#fff0f2;color:#c92843;border-color:#ffd0d8}.btn.small{padding:7px 10px;font-size:12px}.full{width:100%}.kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin-bottom:20px}.kpi{background:#fff;border:1px solid var(--line);border-radius:16px;padding:17px;box-shadow:var(--shadow);position:relative;overflow:hidden}.kpi:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--blue)}.kpi.green:before{background:var(--green)}.kpi.purple:before{background:var(--purple)}.kpi.orange:before{background:var(--orange)}.kpi.red:before{background:var(--red)}.kpi.pink:before{background:var(--pink)}.kpi span{display:block;color:#66758c;font-size:12px;font-weight:800}.kpi b{display:block;font-size:22px;margin:9px 0 5px}.kpi small{color:#8a96a9}.grid-2,.grid-3{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-bottom:18px}.grid-3{grid-template-columns:1fr 1fr 1fr}.span2{grid-column:span 2}.panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:var(--shadow);min-width:0}.panel h2{font-size:17px;margin:0 0 16px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.panel-head h2{margin:0}.panel-head a{font-size:12px;font-weight:800}.badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#edf3ff;color:#315da1;font-size:11px;font-weight:800}.badge.success{background:#e8fbf1;color:#087c46}.badge.warning{background:#fff5d9;color:#9a6500}.badge.danger{background:#ffecef;color:#c72845}.progress{height:12px;border-radius:99px;background:#edf1f7;overflow:hidden;margin:22px 0}.progress span{display:block;height:100%;background:linear-gradient(90deg,#1477ff,#18b97b);border-radius:inherit}.statline,.rules>div{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #eef1f5;color:#68758a;font-size:13px}.statline b,.rules b{color:#1c2d48}.mini-chart{height:130px;display:flex;align-items:end;gap:15px;padding:12px 4px 0}.mini-chart>div{height:100%;flex:1;display:flex;flex-direction:column;justify-content:end;align-items:center;gap:5px}.mini-chart i{display:block;width:100%;max-width:42px;background:linear-gradient(180deg,#1c7dff,#77b4ff);border-radius:8px 8px 2px 2px}.mini-chart small{font-size:10px;color:#8793a7}.quick{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick a{background:#f6f8fc;border:1px solid #e5eaf2;padding:15px;border-radius:12px;color:#1c3151;font-weight:800;font-size:13px}.quick a:hover{background:#eef5ff;border-color:#c9dcff}.quick em{float:right;background:#ffe9ed;color:#c52d47;padding:2px 6px;border-radius:9px;font-style:normal}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:560px}th,td{text-align:left;padding:12px 9px;border-bottom:1px solid #edf0f5;font-size:13px;vertical-align:middle}th{color:#718096;font-size:11px;text-transform:uppercase;letter-spacing:.5px;background:#fafbfc}td small,.block{display:block;color:#8793a7;font-size:11px;margin-top:3px}.page-title{display:flex;justify-content:space-between;align-items:end;margin-bottom:20px}.page-title h1{font-size:30px;margin:3px 0}.page-title p{margin:0;color:var(--muted)}.alert{padding:12px 15px;border-radius:11px;margin:12px 0;font-size:13px}.alert.success{background:#eafaf2;color:#087647}.alert.danger{background:#ffedf0;color:#b5243d}.alert.warning{background:#fff7df;color:#865d00}.alert.info{background:#edf5ff;color:#225b9d}.search-inline{display:flex;gap:8px}.search-inline input{width:220px}.profile-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.profile-grid>div{padding:13px;background:#f7f9fc;border-radius:11px}.profile-grid b,.profile-grid span{display:block}.profile-grid b{font-size:11px;color:#748198;text-transform:uppercase}.profile-grid span{margin-top:5px}.inline-form{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.inline-form input{width:115px;padding:7px}.inline-form input:last-of-type{width:160px}.application{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid #edf0f5}.application span{display:block;color:#77859a;font-size:12px;margin-top:4px}.calc{padding:12px;background:#eef6ff;border-radius:10px;margin:12px 0;color:#2a5e9d}.pay-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:25px;display:grid;grid-template-columns:1fr 330px;gap:30px;max-width:900px;box-shadow:var(--shadow)}.qr{text-align:center}.qr img{width:280px;height:280px;object-fit:contain;background:#fff;border:1px solid #eee;border-radius:12px}.qr small{display:block;color:#7c899b;margin-top:7px}.pay-form{display:flex;gap:8px;margin-top:18px}.pay-form input{max-width:180px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px 18px}.settings-grid .span2{grid-column:span 2}.login-wrap{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#031738,#0d5fc7);padding:25px}.login-card{width:min(460px,100%);background:#fff;border-radius:22px;padding:30px;box-shadow:0 30px 80px rgba(0,0,0,.22)}.login-logo{width:110px;height:110px;object-fit:contain;background:#000;border-radius:18px;display:block;margin:0 auto 15px}.login-card h1{margin:7px 0}.muted{color:var(--muted)}.demo{font-size:11px;color:#75839a;background:#f5f7fa;padding:11px;border-radius:9px;margin-top:15px}
@media(max-width:1200px){.kpis{grid-template-columns:repeat(3,1fr)}.grid-3{grid-template-columns:1fr 1fr}.grid-3 .span2{grid-column:span 2}}
@media(max-width:900px){.topbar{padding:0 15px}.page{padding:18px 15px}.grid-2,.grid-3{grid-template-columns:1fr}.span2,.grid-3 .span2{grid-column:auto}.pay-card{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.settings-grid .span2{grid-column:auto}.quick{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.kpis{grid-template-columns:1fr 1fr}.hero{padding:20px;align-items:flex-start;flex-direction:column}.hero h1{font-size:23px}.search{display:none}.mobile-brand{display:block}.topbar{justify-content:space-between}.page-title{display:block}.search-inline input{width:100%}.search-inline{margin-top:10px}.pay-form{display:block}.pay-form input,.pay-form button{max-width:none;width:100%;margin-top:8px}.qr img{width:230px;height:230px}}


/* ===== GS SURaha Modern Mobile V2 ===== */
.menu-toggle{
  border:0;background:#eef5ff;color:#0b3978;width:42px;height:42px;
  border-radius:12px;font-size:20px;cursor:pointer;display:grid;place-items:center;
  flex:0 0 auto;box-shadow:0 5px 16px rgba(20,70,140,.08)
}
.menu-toggle:active{transform:scale(.96)}
.top-actions{margin-left:auto;display:flex;align-items:center;gap:10px}
.icon-btn{
  position:relative;width:40px;height:40px;border:1px solid var(--line);
  background:#fff;border-radius:12px;cursor:pointer
}
.icon-btn i{
  position:absolute;right:-3px;top:-4px;min-width:16px;height:16px;
  border-radius:99px;background:#e63d55;color:#fff;font-size:9px;
  display:grid;place-items:center;font-style:normal
}
.mobile-brand{display:none;align-items:center;gap:8px}
.mobile-brand img{width:36px;height:36px;border-radius:10px;object-fit:contain;background:transparent}
.mobile-brand b{display:block;font-size:14px;line-height:1}
.mobile-brand small{display:block;font-size:9px;color:#7b899e;margin-top:3px}
.top-logout{
  display:inline-flex;align-items:center;gap:5px;margin-left:8px;padding:9px 11px;
  border-radius:10px;background:#fff1f3;color:#c72b45;border:1px solid #ffd3da;
  font-size:12px;font-weight:800
}
.sidebar{
  transform:translateX(0);transition:transform .25s ease,visibility .25s ease;
  box-shadow:14px 0 45px rgba(0,0,0,.18)
}
.main{margin-left:245px;width:calc(100% - 245px)}
.sidebar-open .sidebar{transform:translateX(0)}
.mobile-overlay{
  display:none;position:fixed;inset:0;background:rgba(3,18,45,.48);
  backdrop-filter:blur(2px);z-index:9
}
.menu-active .mobile-overlay{display:block}
.mobile-bottom-nav{display:none}

/* Desktop keeps the sidebar available through the menu button. */
@media (min-width:901px){
  .sidebar-open .sidebar{transform:translateX(0)}
  .sidebar-open .main{margin-left:245px;width:calc(100% - 245px)}
}

/* Tablet + phone */
@media (max-width:900px){
  body{padding-bottom:72px}
  .sidebar{
    width:min(290px,86vw);padding:18px 14px;z-index:30;
    border-radius:0 22px 22px 0;overflow:hidden
  }
  .sidebar nav{overflow-y:auto;min-height:0;flex:1;padding-top:18px}
  .sidebar .side-bottom{flex:0 0 auto}
  .sidebar .brand div,.sidebar nav a span,.side-bottom a{display:block}
  .sidebar .brand{justify-content:flex-start;border-bottom:1px solid rgba(255,255,255,.12)}
  .sidebar .brand img{width:50px;height:50px}
  .main,.sidebar-open .main{margin-left:0;width:100%}
  .topbar{
    height:64px;padding:0 12px;gap:8px;position:sticky;top:0;
    box-shadow:0 3px 18px rgba(10,35,70,.05);z-index:20
  }
  .mobile-brand{display:flex}
  .search{display:none}
  .top-user .user-meta{display:none}
  .top-logout{font-size:11px;padding:8px 9px}
  .top-actions{gap:7px}
  .page{padding:15px 12px 28px}
  footer{font-size:10px;padding:13px 8px;margin-bottom:72px}
  .mobile-bottom-nav{
    display:flex;position:fixed;left:8px;right:8px;bottom:8px;height:62px;
    background:rgba(255,255,255,.96);backdrop-filter:blur(16px);
    border:1px solid #e3e9f2;border-radius:18px;
    box-shadow:0 12px 35px rgba(10,35,70,.16);z-index:25;
    justify-content:space-around;align-items:stretch;padding:4px
  }
  .mobile-bottom-nav a{
    flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:2px;color:#718096;font-size:10px;font-weight:700;border-radius:14px
  }
  .mobile-bottom-nav a span{font-size:19px;line-height:22px}
  .mobile-bottom-nav a b{font-size:9px}
  .mobile-bottom-nav a:hover,.mobile-bottom-nav a:focus{background:#edf5ff;color:#1265d8}
  .hero{
    border-radius:18px;padding:20px;margin-bottom:14px;
    flex-direction:column;align-items:flex-start
  }
  .hero h1{font-size:23px;line-height:1.2}
  .hero p{font-size:12px;line-height:1.5}
  .hero .btn{width:100%}
  .kpis{grid-template-columns:repeat(2,1fr);gap:9px;margin-bottom:14px}
  .kpi{padding:13px;border-radius:14px}
  .kpi b{font-size:18px;margin:7px 0 3px}
  .kpi span{font-size:10px}
  .kpi small{font-size:9px}
  .grid-2,.grid-3{grid-template-columns:1fr;gap:12px;margin-bottom:12px}
  .span2,.grid-3 .span2{grid-column:auto}
  .panel{padding:15px;border-radius:15px}
  .panel h2{font-size:15px}
  .panel-head{align-items:flex-start}
  .quick{grid-template-columns:1fr 1fr;gap:8px}
  .quick a{padding:12px;font-size:11px}
  .page-title{display:block;margin-bottom:14px}
  .page-title h1{font-size:24px}
  .page-title p{font-size:12px;margin-top:4px}
  .page-title>.btn{margin-top:10px}
  .table-wrap{margin:0 -5px;padding:0 5px}
  table{min-width:620px}
  th,td{padding:10px 8px;font-size:11px}
  .profile-grid{grid-template-columns:1fr}
  .pay-card{grid-template-columns:1fr;gap:18px;padding:17px}
  .qr img{width:220px;height:220px}
  .settings-grid{grid-template-columns:1fr}
  .settings-grid .span2{grid-column:auto}
  .login-wrap{padding:15px}
  .login-card{padding:23px 18px;border-radius:20px}
}
@media (max-width:420px){
  .topbar{padding:0 9px}
  .mobile-brand b{font-size:13px}
  .icon-btn{width:36px;height:36px}
  .menu-toggle{width:36px;height:36px}
  .top-logout{font-size:10px;padding:7px 8px}
  .kpi{padding:11px}
  .kpi b{font-size:17px}
  .quick a{padding:11px 9px}
  .mobile-bottom-nav{left:5px;right:5px;bottom:5px}
}

/* ===== Final mobile/sidebar/login fixes ===== */
.avatar-link{color:var(--blue);text-decoration:none}
.avatar-link:hover{filter:brightness(.95)}
@media(max-width:900px){
  .sidebar{transform:translateX(-105%) !important;visibility:hidden;transition:transform .25s ease,visibility .25s ease}
  body.sidebar-open .sidebar{transform:translateX(0) !important;visibility:visible}
  body.sidebar-open{overflow:hidden}
  body.menu-active .mobile-overlay{display:block}
  .mobile-overlay{cursor:pointer}
  .top-actions{margin-left:auto}
  .top-user{display:flex;align-items:center}
  .top-user .avatar-link{display:grid}
}

/* Member photo + document UI */
.member-photo-wrap{display:flex;align-items:center;gap:16px;margin-bottom:18px}
.member-photo,.dashboard-avatar{width:88px;height:88px;border-radius:20px;object-fit:cover;border:1px solid var(--line);background:#f4f7fb;display:grid;place-items:center;font-size:32px}
.dashboard-avatar{width:72px;height:72px;border-radius:18px;flex:0 0 auto}
.member-hero-main{display:flex;align-items:center;gap:14px}
.member-code{display:inline-block;margin-top:5px;font-size:11px;font-weight:700;opacity:.8}
.document-list{display:grid;gap:9px}
.document-card{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#f8fbff;color:var(--blue);font-weight:800}
.document-card span{font-size:12px}
.mini-avatar{width:30px;height:30px;border-radius:8px;object-fit:cover;vertical-align:middle;margin-right:7px}
input[type=file]{padding:9px;background:#f7f9fc}
@media(max-width:850px){.member-hero-main{align-items:flex-start}.member-photo-wrap{align-items:flex-start}.member-photo{width:74px;height:74px}.dashboard-avatar{width:62px;height:62px}.member-hero-main h1{font-size:21px}.document-card{padding:11px}}

/* ===== Notice bar + Member ID Card ===== */
.notice-bar{margin:12px 22px 0;padding:12px 15px;border:1px solid #cfe1ff;background:#eef6ff;color:#174c91;border-radius:14px;display:flex;gap:10px;align-items:flex-start;box-shadow:0 5px 18px rgba(20,70,140,.06)}
.notice-bar .notice-icon{font-size:18px;line-height:1.2}.notice-bar b{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:2px}.notice-bar div span{font-size:12px;line-height:1.45}.hero-actions{display:flex;gap:8px;flex-wrap:wrap}.id-card-page{min-height:100vh;background:#f3f6fb;display:flex;flex-direction:column;align-items:center;padding:28px}.id-card-actions{width:min(430px,100%);display:flex;gap:8px;margin-bottom:16px}.id-card-actions .btn{flex:1;text-align:center}.id-card{width:430px;max-width:100%;background:#fff;border:1px solid #dce4ef;border-radius:20px;overflow:hidden;box-shadow:0 18px 45px rgba(14,40,80,.16)}.id-card-head{padding:18px 20px;background:linear-gradient(135deg,#06265b,#0b65d5);color:#fff;display:flex;align-items:center;gap:12px}.id-card-head img{width:52px;height:52px;object-fit:contain;background:#fff;border-radius:12px}.id-card-head b{display:block;font-size:17px}.id-card-head small{display:block;margin-top:3px;opacity:.85;font-size:10px}.id-card-body{padding:22px 20px;display:flex;gap:18px;align-items:center}.id-photo{width:105px;height:125px;border-radius:14px;overflow:hidden;background:#eef2f7;border:1px solid #dce4ef;display:grid;place-items:center;font-size:38px;flex:0 0 auto}.id-photo img{width:100%;height:100%;object-fit:cover}.id-name{font-size:21px;font-weight:900;margin-bottom:12px;color:#10213c}.id-row{padding:7px 0;border-bottom:1px solid #edf0f5}.id-row span{display:block;color:#7a8798;font-size:9px;text-transform:uppercase;letter-spacing:.08em}.id-row b{display:block;margin-top:2px;font-size:12px}.id-card-foot{padding:12px 20px;background:#f7f9fc;border-top:1px solid #e7ebf2;display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#64748b}.id-print-note{font-size:10px;color:#7a8798;margin-top:10px}@media(max-width:850px){.notice-bar{margin:8px 12px 0}.hero-actions{width:100%}.hero-actions .btn{flex:1}.id-card-page{padding:16px 10px}.id-card{border-radius:16px}.id-card-body{padding:18px 15px}.id-photo{width:88px;height:108px}}@media print{body.id-card-page{background:#fff;padding:0;display:block}.id-card-actions,.id-print-note{display:none}.id-card{width:85.6mm;height:54mm;max-width:none;border:1px solid #bbb;border-radius:4mm;box-shadow:none;margin:10mm auto;break-inside:avoid}.id-card-head{padding:3.5mm 4mm}.id-card-head img{width:12mm;height:12mm;border-radius:2mm}.id-card-head b{font-size:11pt}.id-card-head small{font-size:6pt}.id-card-body{padding:4mm;gap:4mm}.id-photo{width:24mm;height:29mm;border-radius:2mm}.id-name{font-size:12pt;margin-bottom:3mm}.id-row{padding:1.5mm 0}.id-row span{font-size:5.5pt}.id-row b{font-size:7.5pt}.id-card-foot{padding:2.5mm 4mm;font-size:5.5pt}}

/* ===== Sidebar close, notifications and EMI payment UI ===== */
.sidebar-head{display:flex;align-items:center;gap:8px}
.sidebar-head .brand{flex:1}
.sidebar-close{display:none;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.10);color:#fff;width:36px;height:36px;border-radius:10px;font-size:24px;line-height:1;cursor:pointer}
.side-logout{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:12px;padding:10px 12px;border-radius:10px;background:rgba(255,255,255,.10);color:#fff;font-size:12px;font-weight:800}
.notification-btn{text-decoration:none;color:inherit;display:grid;place-items:center}
.notification-list{display:grid;gap:8px}
.notification-item{display:grid;grid-template-columns:38px 1fr 20px;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:13px;background:#fbfdff;color:inherit}
.notification-item:hover{background:#f0f6ff;border-color:#c9dcfb}
.notification-dot{width:34px;height:34px;border-radius:10px;background:#eef5ff;display:grid;place-items:center}
.notification-item b,.notification-item small,.notification-item em{display:block}
.notification-item b{font-size:12px;color:#172a46}
.notification-item small{font-size:11px;color:#708099;margin-top:2px}
.notification-item em{font-size:9px;color:#9aa6b7;margin-top:5px;font-style:normal}
.notification-item strong{color:#1767d8}
.emi-pay-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;padding:13px 0;border-bottom:1px solid #edf1f6}
.emi-pay-row:last-child{border-bottom:0}
.emi-pay-row>div b,.emi-pay-row>div span{display:block}
.emi-pay-row>div span{font-size:10px;color:#77859a;margin-top:3px}
.emi-pay-form{grid-column:1 / -1;display:flex;gap:8px;align-items:center}
.emi-pay-form input{margin-top:0;flex:1;min-width:0}
.loan-summary{margin-bottom:14px}
@media(max-width:850px){
  .sidebar-head .brand{border-bottom:0}
  .sidebar-close{display:grid;place-items:center}
  .side-logout{margin-bottom:4px}
  .notification-item{padding:11px}
  .emi-pay-form{flex-direction:column;align-items:stretch}
  .emi-pay-form .btn{width:100%}
  .loan-summary{grid-template-columns:repeat(2,1fr)}
}

/* ===== Profile menu + session info ===== */
.profile-trigger{border:0;cursor:pointer;padding:0;overflow:hidden;position:relative}
.profile-trigger img,.profile-menu-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.profile-menu{display:none;position:absolute;right:0;top:48px;width:280px;background:#fff;border:1px solid #e1e7ef;border-radius:16px;box-shadow:0 18px 45px rgba(10,35,70,.18);padding:10px;z-index:50}
.profile-menu.open{display:block}
.top-user{position:relative}
.profile-menu-head{display:flex;align-items:center;gap:10px;padding:8px 8px 12px;border-bottom:1px solid #edf0f5}
.profile-menu-avatar{width:44px;height:44px;border-radius:50%;background:#e9f1ff;color:var(--blue);display:grid;place-items:center;font-weight:900;overflow:hidden}
.profile-menu-head b,.profile-menu-head small{display:block}
.profile-menu-head b{font-size:13px;color:#172a46}
.profile-menu-head small{font-size:10px;color:#7a8798;margin-top:2px}
.profile-menu-time{padding:10px 8px;font-size:10px;color:#6e7d91;border-bottom:1px solid #edf0f5}
.profile-menu>a{display:block;padding:10px 9px;border-radius:9px;color:#203552;font-size:12px;font-weight:800;margin-top:3px}
.profile-menu>a:hover{background:#f1f6ff}
.profile-menu .profile-logout{color:#c72b45;background:#fff1f3}
@media(max-width:850px){
 .profile-menu{position:fixed;right:10px;top:62px;width:min(280px,calc(100vw - 20px));}
 .top-user .user-meta{display:none}
 .profile-trigger{display:grid}
}

/* ===== Modern EMI summary + reports ===== */
.report-kpis{grid-template-columns:repeat(6,1fr)}
.report-summary-grid{grid-template-columns:1.2fr 1fr 1fr}
.report-card{border:1px solid #dfe7f2;box-shadow:0 10px 30px rgba(15,40,80,.07);border-radius:18px}
.report-card-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.report-card-title h2{margin:0}
.report-stats{display:grid;gap:0}
.report-stats>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #edf1f6}
.report-stats>div:last-child{border-bottom:0}
.report-stats span{font-size:11px;color:#75839a;font-weight:700}.report-stats b{font-size:13px;color:#1c3151;text-align:right}
.report-loan-panel{border:1px solid #dbe5f2;box-shadow:0 12px 35px rgba(15,40,80,.07)}
.emi-summary-modern{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:190px;padding:7px 9px;border:1px solid #e3eaf4;border-radius:12px;background:linear-gradient(180deg,#fbfdff,#f5f8fc)}
.emi-pill{display:inline-flex;align-items:center;padding:4px 7px;border-radius:999px;font-size:10px;font-weight:900;border:1px solid transparent}
.emi-pill.paid{background:#e9fbf2;color:#087647;border-color:#bfead3}.emi-pill.pending{background:#fff6df;color:#986100;border-color:#f2dfac}
.emi-summary-modern small{width:100%;font-size:9px;color:#7b899c;margin-top:2px}
.empty-report{padding:28px;text-align:center;color:#8390a5;font-size:13px;background:#f8fafc;border:1px dashed #ccd6e4;border-radius:12px}
@media(max-width:1200px){.report-kpis{grid-template-columns:repeat(3,1fr)}.report-summary-grid{grid-template-columns:1fr 1fr}.report-summary-grid .report-card:first-child{grid-column:span 2}}
@media(max-width:850px){.report-kpis{grid-template-columns:repeat(2,1fr)}.report-summary-grid{grid-template-columns:1fr}.report-summary-grid .report-card:first-child{grid-column:auto}.emi-summary-modern{min-width:160px}.report-loan-panel{padding:13px}}

/* Hindi / Devanagari support for selected subtitles and notices */
body{font-family:Inter,"Noto Sans Devanagari","Nirmala UI","Mangal","Segoe UI",Arial,sans-serif}
.hi-sub{display:block;margin-top:4px;font-family:"Noto Sans Devanagari","Nirmala UI","Mangal",sans-serif;font-size:12px;font-weight:600;color:#64748b;letter-spacing:0}
.hero .hi-sub{color:#d9e8ff}
.hi-inline{font-family:"Noto Sans Devanagari","Nirmala UI","Mangal",sans-serif;font-size:11px;font-weight:700;color:#64748b;margin-left:6px;letter-spacing:0}
.notice-bar b,.notice-bar span{font-family:Inter,"Noto Sans Devanagari","Nirmala UI","Mangal","Segoe UI",Arial,sans-serif}
@media(max-width:560px){.hi-sub{font-size:11px}.hi-inline{font-size:10px}}


/* ===== GS Suraha All Features Dashboard ===== */
/* Dashboard hero: mixed Indian tricolour treatment */
.modern-dashboard-hero{position:relative;overflow:hidden;background:linear-gradient(118deg,#ff9933 0%,#ffb866 17%,#fff 43%,#f8fafc 57%,#8acb7f 79%,#138808 100%);color:#12213b;border:1px solid rgba(20,60,30,.10);box-shadow:0 18px 42px rgba(20,70,45,.14)}
.modern-dashboard-hero:before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:linear-gradient(90deg,#ff9933 0 33.333%,#fff 33.333% 66.666%,#138808 66.666% 100%);z-index:0}
.modern-dashboard-hero:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:linear-gradient(90deg,#ff9933 0 33.333%,#ffffff 33.333% 66.666%,#138808 66.666% 100%);z-index:0}
.modern-dashboard-hero>*{position:relative;z-index:1}.modern-dashboard-hero .eyebrow{color:#244b78}.modern-dashboard-hero p{color:#334d69}.modern-dashboard-hero h1{color:#10213b}.modern-dashboard-hero .btn.light{background:rgba(255,255,255,.92);border-color:rgba(20,55,90,.12);color:#17345a}
.dashboard-layout .notice-bar{margin-top:8px;margin-bottom:0}

.modern-kpis .kpi{border-radius:18px;transition:transform .18s ease,box-shadow .18s ease}.modern-kpis .kpi:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(15,40,80,.12)}
.feature-panel{margin-bottom:18px;background:linear-gradient(180deg,#ffffff,#f8fbff)}
.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.feature-card{position:relative;display:flex;align-items:center;gap:12px;min-height:86px;padding:14px;border-radius:15px;border:1px solid #e3eaf4;color:#19304f;background:#fff;box-shadow:0 7px 22px rgba(15,40,80,.05);transition:.18s ease}
.feature-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(15,40,80,.1);border-color:#cbdcf5}
.feature-card>span{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;font-size:21px;flex:0 0 auto;background:#edf4ff}
.feature-card b,.feature-card small{display:block}.feature-card b{font-size:13px}.feature-card small{font-size:10px;color:#77869b;line-height:1.35;margin-top:4px}.feature-card em{position:absolute;right:10px;top:9px;font-size:9px;font-style:normal;background:#ffe9ed;color:#c52d47;border-radius:999px;padding:3px 6px;font-weight:900}
.fc-blue>span{background:#e7f1ff;color:#1677ff}.fc-green>span{background:#e7faf1;color:#0a9b5c}.fc-purple>span,.fc-violet>span{background:#f0eaff;color:#7056df}.fc-orange>span{background:#fff1df;color:#e88a00}.fc-red>span{background:#ffeaee;color:#df3d58}.fc-pink>span{background:#fdeafa;color:#c4479a}.fc-indigo>span{background:#e9edff;color:#4f46e5}.fc-teal>span{background:#e4fbf8;color:#0f8f83}.fc-cyan>span{background:#e5f8ff;color:#0088b8}
@media(max-width:1200px){.feature-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:850px){.feature-grid{grid-template-columns:1fr 1fr}.feature-card{min-height:82px;padding:12px}.feature-card>span{width:40px;height:40px;font-size:18px}.feature-card small{font-size:9px}}
@media(max-width:560px){.feature-grid{grid-template-columns:1fr}.feature-card{min-height:76px}.modern-dashboard-hero{border-radius:16px}.modern-dashboard-hero h1{font-size:22px}}

.dashboard-welcome{display:flex;flex-direction:row;align-items:center;gap:18px;min-width:0}.dashboard-welcome-copy{min-width:0}.dashboard-welcome-logo{width:78px;height:78px;object-fit:contain;background:#fff;border-radius:18px;padding:7px;margin:0;flex:0 0 auto;box-shadow:0 8px 22px rgba(0,0,0,.12)}
@media(max-width:700px){.dashboard-welcome{gap:12px}.dashboard-welcome-logo{width:64px;height:64px;border-radius:15px;padding:6px}.dashboard-welcome-copy .eyebrow{font-size:8px;letter-spacing:1.4px}.dashboard-welcome-copy h1{font-size:20px}.dashboard-welcome-copy p{font-size:10px;line-height:1.35}}

/* ===== Final login isolation + modern login ===== */
.login-page{margin:0;min-height:100vh;overflow:hidden;background:linear-gradient(135deg,#081b3a 0%,#1e3a8a 48%,#7c3aed 100%)}
.login-page .login-wrap{min-height:100vh;width:100%;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 15% 15%,rgba(56,189,248,.22),transparent 30%),radial-gradient(circle at 85% 85%,rgba(168,85,247,.24),transparent 32%)}
.login-page .login-card{width:min(430px,100%);padding:34px 30px 26px;border:1px solid rgba(255,255,255,.42);border-radius:26px;background:rgba(255,255,255,.97);box-shadow:0 30px 90px rgba(0,0,0,.34)}
.login-brand{text-align:center;margin-bottom:12px}.login-brand span{display:block;font-size:11px;font-weight:900;letter-spacing:2px;color:#18345d;margin-top:5px}.login-page .login-logo{width:88px;height:88px;margin:0 auto;display:block;border-radius:20px;object-fit:contain;background:#fff;padding:5px;box-shadow:0 10px 25px rgba(15,40,80,.12)}
.login-page .eyebrow{text-align:center;margin-top:15px;color:#41618b;font-size:10px;letter-spacing:2px}.login-page h1{text-align:center;font-size:30px;margin:8px 0 3px;color:#122746}.login-subtitle{text-align:center;color:#718198;font-size:12px;margin:0 0 22px}.login-page label{margin:13px 0 7px}.login-input{display:flex;align-items:center;gap:8px;height:48px;border:1px solid #dbe3ef;border-radius:13px;background:#f9fbfe;padding:0 10px;transition:.18s}.login-input:focus-within{border-color:#5b8def;box-shadow:0 0 0 4px #eaf1ff;background:#fff}.login-input>span{font-size:15px;opacity:.75}.login-input input{border:0!important;box-shadow:none!important;background:transparent!important;padding:8px 3px!important;height:46px}.password-toggle{border:0;background:transparent;color:#3567bd;font-size:11px;font-weight:800;cursor:pointer;padding:7px}.login-submit{height:48px;border-radius:13px;margin-top:22px;font-size:14px;box-shadow:0 10px 22px rgba(22,119,255,.22)}.login-submit span{margin-left:7px;font-size:18px}.login-secure{text-align:center;margin-top:17px;color:#8290a4;font-size:10px}.login-page .alert{margin:0 0 12px}
@media(max-width:560px){.login-page .login-wrap{padding:15px}.login-page .login-card{padding:27px 20px 22px;border-radius:22px}.login-page .login-logo{width:76px;height:76px}.login-page h1{font-size:27px}}

/* EMI UPI + QR payment options */
.emi-pay-row-modern{display:block!important;padding:16px 0!important}
.emi-info{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}
.emi-payment-box{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#f7f9fd;border:1px solid #e5eaf2;border-radius:12px;padding:10px}
.emi-payment-box .emi-pay-form{display:flex;gap:7px;align-items:center;flex:1;min-width:260px}
.emi-payment-box .emi-pay-form input{max-width:130px;padding:8px}
.emi-payment-box .emi-pay-form button{white-space:nowrap}
.emi-qr-details{width:auto}
.emi-qr-details summary{cursor:pointer;list-style:none;border:1px solid #dce4ef;background:#fff;color:#1b3152;padding:9px 11px;border-radius:9px;font-size:12px;font-weight:800}
.emi-qr-details summary::-webkit-details-marker{display:none}
.emi-qr-wrap{position:absolute;z-index:20;margin-top:8px;background:#fff;border:1px solid #dce4ef;border-radius:14px;padding:12px;box-shadow:0 16px 35px rgba(0,0,0,.14);text-align:center}
.emi-qr-wrap img{width:190px;height:190px;object-fit:contain;display:block;background:#fff}
.emi-qr-wrap small{display:block;color:#718096;margin-top:6px;font-size:10px}
.payment-methods-note{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}
.payment-methods-note span{background:#f4f7fb;border:1px solid #e3e9f1;border-radius:9px;padding:8px 10px;font-size:11px;font-weight:800;color:#425572}
@media(max-width:560px){.emi-payment-box{display:block}.emi-payment-box>*{margin:6px 0}.emi-payment-box .emi-pay-form{display:block;min-width:0}.emi-payment-box .emi-pay-form input,.emi-payment-box .emi-pay-form button{width:100%;max-width:none;margin-top:7px}.emi-qr-wrap{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);max-width:90vw}.emi-qr-wrap img{width:230px;height:230px}}

/* ===== Payment receipt / slip — screenshot style ===== */
.receipt-link{display:inline-flex;align-items:center;margin-left:8px;padding:5px 8px;border-radius:7px;background:#eef5ff;color:#1e63c7;font-size:10px;font-weight:900;text-decoration:none;white-space:nowrap}.receipt-link:hover{background:#dfeeff}
.receipt-page{max-width:760px;margin:0 auto;padding:18px}.receipt-actions{display:flex;justify-content:flex-end;gap:8px;margin-bottom:12px}
.payment-receipt{max-width:560px;margin:0 auto;background:#fff;border:1px solid #d8e0ea;border-radius:20px;box-shadow:0 16px 45px rgba(20,40,70,.12);overflow:hidden}
.receipt-head{display:flex;align-items:center;gap:14px;padding:17px 18px 15px;background:linear-gradient(105deg,#ff9b2f 0%,#fff7ed 30%,#fff 52%,#eef9ef 70%,#2fa44f 100%);color:#172033;border-top:6px solid #ff9b2f;border-bottom:6px solid #138a22}
.receipt-logo{width:58px;height:58px;object-fit:contain;background:#fff;border:1px solid rgba(255,255,255,.95);border-radius:12px;padding:5px;flex:0 0 auto}.receipt-eyebrow{font-size:9px;font-weight:900;letter-spacing:1.35px;opacity:.9}.receipt-head h1{margin:4px 0 2px;font-size:20px;line-height:1.15}.receipt-head p{margin:0;font-size:10px;opacity:.84}
.receipt-status{margin:14px 18px 0;padding:10px 12px;border-radius:11px;background:#e9f8ef!important;color:#18724b;font-size:10px;font-weight:900;text-align:center;border:1px solid #ccebd9}
.receipt-title{padding:16px 18px 8px}.receipt-title h2{margin:0;font-size:22px;color:#17304f}.receipt-title span{display:block;margin-top:3px;color:#718096;font-size:10px}.receipt-title small{display:inline-block;margin-top:6px;color:#7d8997;font-size:9px;font-weight:800}.receipt-title small+span{display:inline-block;margin-left:7px;color:#718096}
.receipt-grid{display:grid;grid-template-columns:1fr;margin:0 18px;border:1px solid #e1e7ee;border-radius:14px;overflow:hidden}.receipt-grid>div{padding:12px 14px;border-bottom:1px solid #e8edf3}.receipt-grid>div:nth-child(odd){border-right:0}.receipt-grid>div:last-child{border-bottom:0}.receipt-grid small{display:block;color:#7d8998;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.4px}.receipt-grid b{display:block;color:#203552;font-size:12px;margin-top:4px;word-break:break-word}
.receipt-amount{margin:16px 18px;padding:14px 16px;border-radius:13px;background:#f4f7fd;display:flex;justify-content:space-between;align-items:center;gap:12px}.receipt-amount span{font-size:11px;font-weight:800;color:#5f7087}.receipt-amount strong{font-size:23px;color:#1767d2}
.receipt-note{margin:0 18px 16px;padding:11px 12px;border-left:3px solid #4f8ee8;background:#f8fbff;color:#718096;font-size:10px;line-height:1.55}.receipt-foot{text-align:center;padding:12px;background:#f2f5f9!important;color:#8793a5!important;font-size:9px}
@media(max-width:560px){.receipt-page{padding:8px}.receipt-actions{justify-content:stretch}.receipt-actions .btn{flex:1;text-align:center;padding:9px 7px;font-size:10px}.receipt-head{padding:15px;gap:10px}.receipt-logo{width:52px;height:52px}.receipt-head h1{font-size:17px}.receipt-title{padding:14px 14px 8px}.receipt-status{margin:12px 14px 0}.receipt-grid{margin:0 14px}.receipt-amount,.receipt-note{margin-left:14px;margin-right:14px}}
@media print{body{background:#fff!important}.no-print{display:none!important}.receipt-page{padding:0;max-width:none}.payment-receipt{box-shadow:none;border:1px solid #cfd8e5;border-radius:0;max-width:none}.receipt-head{-webkit-print-color-adjust:exact;print-color-adjust:exact}.receipt-status,.receipt-amount,.receipt-foot{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* Admin fund / loan accounting dashboard */
.financial-snapshot-panel{margin-top:18px}
.financial-flow-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.financial-flow-card{padding:16px;border:1px solid rgba(30,60,90,.10);border-radius:16px;background:linear-gradient(135deg,#fff,#f7fbff);display:flex;flex-direction:column;gap:5px}
.financial-flow-card span{font-weight:700;color:#334155;font-size:13px}
.financial-flow-card b{font-size:23px;color:#0f172a}
.financial-flow-card small{color:#64748b}
.financial-flow-card.highlight{background:linear-gradient(135deg,#eaf8f1,#eef8ff);border-color:rgba(16,185,129,.25)}
.financial-flow-card.highlight b{color:#047857}
.financial-formula{margin-top:14px;padding:12px 14px;border-radius:12px;background:#f8fafc;color:#475569}
.financial-formula strong{color:#047857}
@media(max-width:900px){.financial-flow-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.financial-flow-grid{grid-template-columns:1fr}.financial-flow-card b{font-size:20px}}

/* ===== Requested final document/print fixes ===== */
.mobile-bottom-nav a.active{background:#eaf3ff;color:#1265d8;box-shadow:inset 0 0 0 1px #cfe2ff}
.mobile-bottom-nav a.active span{transform:translateY(-1px)}
.document-preview-page{max-width:980px;margin:0 auto;padding:6px 0 30px}.document-actions{display:flex;justify-content:flex-end;gap:8px;margin-bottom:12px}.official-document{background:#fff;border:2px solid #193b68;border-radius:16px;box-shadow:0 18px 50px rgba(15,40,80,.12);overflow:hidden;padding:18px}.doc-header{display:flex;align-items:center;gap:14px;border-bottom:2px solid #193b68;padding:6px 4px 14px}.doc-header img{width:68px;height:68px;object-fit:contain;background:#fff;border-radius:12px}.doc-brand{font-size:11px;font-weight:900;letter-spacing:2px;color:#1c5eb5}.doc-header h1{margin:3px 0;font-size:22px;color:#142d50}.doc-header p{margin:0;color:#6d7b91;font-size:11px}.doc-box{border:1.5px solid #8da3bd;border-radius:10px;margin-top:14px;overflow:hidden}.doc-box-title{padding:9px 12px;background:#eef5ff;color:#173e70;font-weight:900;font-size:12px;border-bottom:1px solid #c9d8ea}.doc-grid{display:grid;grid-template-columns:repeat(2,1fr)}.doc-grid>div{padding:10px 12px;border-bottom:1px solid #e1e8f0}.doc-grid>div:nth-child(odd){border-right:1px solid #e1e8f0}.doc-grid small{display:block;color:#7b899c;font-size:9px;text-transform:uppercase}.doc-grid b{display:block;margin-top:3px;font-size:12px;color:#1d334f}.summary-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:12px}.summary-strip span{border:1px solid #dbe4ef;border-radius:8px;padding:9px;font-size:10px;color:#63748b}.summary-strip b{display:block;color:#15355e;font-size:13px;margin-top:3px}.doc-table{min-width:0}.doc-table th,.doc-table td{font-size:10px;padding:8px}.official-document p{font-size:11px;line-height:1.65;color:#41536b}.signature-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin:28px 8px 18px;font-size:11px;font-weight:800;color:#334b69}.signature-grid span{display:block;margin-top:24px}.doc-footer{text-align:center;border-top:1px solid #dbe3ed;padding-top:10px;color:#7b899c;font-size:9px}.noc-stamp{margin:16px auto 2px;width:max-content;border:2px solid #16804e;color:#16804e;padding:8px 18px;border-radius:8px;font-weight:900;font-size:12px}.noc-text{padding:4px 14px}.noc-text p{margin:10px 0}
.id-card-pair{display:flex;flex-direction:column;gap:14px;align-items:center}.id-back{display:block}.id-back-head{background:linear-gradient(135deg,#06265b,#0b65d5);color:#fff;padding:14px 18px;font-size:12px;font-weight:900;letter-spacing:1.5px}.id-back-body{display:grid;grid-template-columns:80px 1fr;gap:15px;padding:16px 18px;align-items:start}.id-qr-box{width:76px;height:76px;border:1px solid #cbd6e4;border-radius:10px;display:grid;place-items:center;font-size:42px;color:#1a5eae}.id-qr-box small{display:block;font-size:8px;color:#718096}.id-back-body p{margin:0 0 7px;font-size:10px;line-height:1.45;color:#4e6076}.id-sign{padding:8px 18px;font-size:9px;color:#53657a;text-align:right}.id-sign span{display:block;margin-top:10px}.id-card-page .id-card{width:430px;min-height:270px}.id-card-page{gap:0}
@media print{
  @page{margin:10mm}.sidebar,.topbar,.notice-bar,.mobile-overlay,.mobile-bottom-nav,footer,.no-print{display:none!important}.main{margin:0!important;width:100%!important}.page{padding:0!important;max-width:none!important}.document-preview-page{padding:0!important;max-width:none!important}.official-document{box-shadow:none;border:2px solid #193b68;border-radius:0}.document-actions{display:none!important}.id-card-pair{gap:8mm}.id-card-page{padding:0!important}.id-card-page .id-card{box-shadow:none;break-inside:avoid}.payment-receipt{page-break-inside:avoid}.receipt-page{padding:0!important}.receipt-page .payment-receipt{border:2px solid #193b68!important;box-shadow:none!important}
}
@media(max-width:650px){.document-actions{justify-content:stretch}.document-actions .btn{flex:1}.doc-grid{grid-template-columns:1fr}.doc-grid>div:nth-child(odd){border-right:0}.summary-strip{grid-template-columns:1fr 1fr}.official-document{padding:12px}.doc-header h1{font-size:18px}.signature-grid{grid-template-columns:1fr}.id-card-page .id-card{width:min(430px,100%)}.id-back-body{grid-template-columns:65px 1fr}.id-qr-box{width:62px;height:62px}}

/* ===== FINAL MOBILE DOCUMENT SIZE FIX ===== */
.document-preview-page{
  width:min(900px,calc(100% - 24px)) !important;
  max-width:900px !important;
  margin:0 auto !important;
  padding:10px 0 30px !important;
}
.document-preview-page .official-document{
  width:100% !important;
  max-width:100% !important;
  margin:0 auto !important;
}
.document-preview-page .doc-header{
  width:100% !important;
}
.document-preview-page .doc-header img{
  width:68px !important;
  height:68px !important;
  max-width:68px !important;
  max-height:68px !important;
  min-width:68px !important;
  min-height:68px !important;
  object-fit:contain !important;
  display:block !important;
  flex:0 0 68px !important;
}
.document-preview-page .doc-header h1{
  font-size:22px !important;
  line-height:1.25 !important;
}
.document-preview-page .doc-header p{
  font-size:11px !important;
}
.document-preview-page .doc-box,
.document-preview-page .doc-grid,
.document-preview-page .doc-table{
  width:100% !important;
}
@media(max-width:650px){
  .document-preview-page{
    width:calc(100% - 20px) !important;
    max-width:none !important;
    padding:8px 0 24px !important;
  }
  .document-preview-page .official-document{
    padding:12px !important;
    border-width:2px !important;
    border-radius:12px !important;
  }
  .document-preview-page .doc-header{
    gap:10px !important;
    padding:4px 2px 10px !important;
  }
  .document-preview-page .doc-header img{
    width:54px !important;
    height:54px !important;
    max-width:54px !important;
    max-height:54px !important;
    min-width:54px !important;
    min-height:54px !important;
    flex-basis:54px !important;
    border-radius:8px !important;
  }
  .document-preview-page .doc-brand{font-size:9px !important;letter-spacing:1.4px !important}
  .document-preview-page .doc-header h1{font-size:17px !important;margin:2px 0 !important}
  .document-preview-page .doc-header p{font-size:9px !important}
  .document-preview-page .doc-box{margin-top:10px !important}
  .document-preview-page .doc-box-title{font-size:11px !important;padding:8px 10px !important}
  .document-preview-page .doc-grid>div{padding:8px 10px !important}
  .document-preview-page .doc-grid small{font-size:8px !important}
  .document-preview-page .doc-grid b{font-size:11px !important}
  .document-preview-page .official-document p{font-size:10px !important;line-height:1.55 !important}
}
@media print{
  .document-preview-page{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
  }
  .document-preview-page .official-document{width:100% !important;max-width:none !important}
  .document-preview-page .doc-header img{width:60px !important;height:60px !important;max-width:60px !important;max-height:60px !important;min-width:60px !important;min-height:60px !important;flex-basis:60px !important}
}

/* ===== FINAL TEXT FIT / READABILITY FIX ===== */
.document-preview-page{width:calc(100% - 20px)!important;max-width:1000px!important;margin:0 auto!important;box-sizing:border-box!important}
.document-preview-page .official-document{font-size:14px!important;padding:20px!important;box-sizing:border-box!important}
.document-preview-page .doc-header{gap:14px!important;padding:6px 4px 14px!important}
.document-preview-page .doc-header img{width:58px!important;height:58px!important;min-width:58px!important;max-width:58px!important;min-height:58px!important;max-height:58px!important;flex:0 0 58px!important}
.document-preview-page .doc-brand{font-size:10px!important}
.document-preview-page .doc-header h1{font-size:22px!important;line-height:1.25!important;margin:3px 0 5px!important}
.document-preview-page .doc-header p{font-size:12px!important;line-height:1.4!important}
.document-preview-page .doc-box{margin-top:14px!important}
.document-preview-page .doc-box-title{font-size:13px!important;padding:10px 12px!important}
.document-preview-page .doc-grid>div{padding:10px 12px!important}
.document-preview-page .doc-grid small{font-size:10px!important;line-height:1.3!important}
.document-preview-page .doc-grid b{font-size:13px!important;line-height:1.35!important;overflow-wrap:anywhere!important}
.document-preview-page .summary-strip{gap:8px!important;padding:12px!important}
.document-preview-page .summary-strip span{font-size:11px!important;padding:9px!important;line-height:1.35!important}
.document-preview-page .summary-strip b{font-size:14px!important}
.document-preview-page .doc-table{width:100%!important}
.document-preview-page .doc-table th,.document-preview-page .doc-table td{font-size:11px!important;padding:9px 7px!important;line-height:1.35!important}
.document-preview-page .official-document p{font-size:13px!important;line-height:1.65!important;margin:11px 0!important}
.document-preview-page .signature-grid{font-size:12px!important;line-height:1.45!important}
.document-preview-page .doc-footer{font-size:10px!important}
.document-preview-page .noc-stamp{font-size:13px!important}

.id-card-page .id-card{width:min(430px,calc(100vw - 20px))!important;max-width:none!important}
.id-card-page .id-card-head{padding:15px 18px!important;gap:12px!important}
.id-card-page .id-card-head img{width:50px!important;height:50px!important}
.id-card-page .id-card-head b{font-size:17px!important;line-height:1.25!important}
.id-card-page .id-card-head small{font-size:10px!important}
.id-card-page .id-card-body{padding:20px 18px!important;gap:16px!important}
.id-card-page .id-photo{width:96px!important;height:116px!important;flex:0 0 96px!important}
.id-card-page .id-name{font-size:21px!important;line-height:1.2!important;margin-bottom:10px!important;overflow-wrap:anywhere!important}
.id-card-page .id-row{padding:7px 0!important}
.id-card-page .id-row span{font-size:9px!important;line-height:1.25!important}
.id-card-page .id-row b{font-size:12px!important;line-height:1.35!important;overflow-wrap:anywhere!important}
.id-card-page .id-card-foot{padding:11px 18px!important;font-size:9px!important}
.id-card-page .id-back-head{padding:13px 18px!important;font-size:13px!important}
.id-card-page .id-back-body{grid-template-columns:76px 1fr!important;gap:14px!important;padding:16px 18px!important}
.id-card-page .id-qr-box{width:72px!important;height:72px!important;font-size:38px!important}
.id-card-page .id-qr-box small{font-size:8px!important}
.id-card-page .id-back-body p{font-size:12px!important;line-height:1.5!important;margin:0 0 8px!important}
.id-card-page .id-sign{padding:9px 18px!important;font-size:10px!important}

@media(max-width:650px){
  .document-preview-page{width:calc(100% - 14px)!important;padding:6px 0 22px!important}
  .document-preview-page .official-document{padding:14px!important;border-radius:10px!important}
  .document-preview-page .doc-header{gap:10px!important;padding:3px 2px 11px!important}
  .document-preview-page .doc-header img{width:52px!important;height:52px!important;min-width:52px!important;max-width:52px!important;min-height:52px!important;max-height:52px!important;flex-basis:52px!important}
  .document-preview-page .doc-brand{font-size:9px!important;letter-spacing:1.2px!important}
  .document-preview-page .doc-header h1{font-size:19px!important;margin:2px 0 4px!important}
  .document-preview-page .doc-header p{font-size:10px!important}
  .document-preview-page .doc-box-title{font-size:12px!important;padding:9px 10px!important}
  .document-preview-page .doc-grid{grid-template-columns:1fr 1fr!important}
  .document-preview-page .doc-grid>div{padding:9px 10px!important}
  .document-preview-page .doc-grid>div:nth-child(odd){border-right:1px solid #e1e8f0!important}
  .document-preview-page .doc-grid small{font-size:9px!important}
  .document-preview-page .doc-grid b{font-size:12px!important}
  .document-preview-page .summary-strip{grid-template-columns:1fr 1fr!important}
  .document-preview-page .summary-strip span{font-size:10px!important}
  .document-preview-page .summary-strip b{font-size:13px!important}
  .document-preview-page .doc-table th,.document-preview-page .doc-table td{font-size:10px!important;padding:7px 5px!important}
  .document-preview-page .official-document p{font-size:12px!important;line-height:1.6!important}
  .document-preview-page .signature-grid{font-size:11px!important}
  .id-card-page .id-card{width:calc(100vw - 20px)!important}
  .id-card-page .id-card-body{padding:18px 14px!important;gap:12px!important}
  .id-card-page .id-photo{width:88px!important;height:108px!important;flex-basis:88px!important}
  .id-card-page .id-name{font-size:19px!important}
  .id-card-page .id-row span{font-size:8.5px!important}
  .id-card-page .id-row b{font-size:11px!important}
  .id-card-page .id-back-body{grid-template-columns:68px 1fr!important;gap:12px!important;padding:14px!important}
  .id-card-page .id-qr-box{width:64px!important;height:64px!important}
  .id-card-page .id-back-body p{font-size:11px!important;line-height:1.5!important}
}

/* ===== ADMIN MOBILE + EXCEL REPORT + PRINT/PAPER POLISH ===== */
.admin-member-actions{flex-wrap:wrap;align-items:center}
.mobile-change-panel{max-width:820px}
.spreadsheet-table table{border-collapse:collapse;min-width:900px;background:#fff}
.spreadsheet-table th{background:#e9eef5!important;color:#1f2937!important;border:1px solid #b9c5d3!important;font-weight:800}
.spreadsheet-table td{border:1px solid #cbd5e1!important;background:#fff}
.spreadsheet-table tbody tr:nth-child(even) td{background:#f8fafc}
.report-member-panel{margin-top:16px}

/* Indian tricolour-inspired ID header */
.id-card-head{
  background:linear-gradient(to bottom,#ff9933 0%,#ff9933 28%,#ffffff 28%,#ffffff 68%,#138808 68%,#138808 100%)!important;
  color:#17324d!important;
  border-bottom:3px solid #1a5daa;
  position:relative;
}
.id-card-head:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:#1a5daa}
.id-card-head b,.id-card-head small{color:#17324d!important;opacity:1!important}
.id-back-head{
  background:linear-gradient(to bottom,#ff9933 0%,#ff9933 30%,#ffffff 30%,#ffffff 66%,#138808 66%,#138808 100%)!important;
  color:#17324d!important;border-bottom:3px solid #1a5daa;
}

/* Keep official documents to one clean printed page whenever their content fits. */
@media print{
  @page{size:A4 portrait;margin:7mm}
  html,body{margin:0!important;padding:0!important;background:#fff!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  .sidebar,.topbar,.notice-bar,.mobile-overlay,.mobile-bottom-nav,footer,.no-print,.document-actions,.id-card-actions,.id-print-note{display:none!important}
  .app,.main,.page{margin:0!important;padding:0!important;width:100%!important;max-width:none!important;min-height:0!important;background:#fff!important}
  .document-preview-page{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
  .document-preview-page .official-document{width:100%!important;max-width:none!important;margin:0!important;padding:10mm!important;box-sizing:border-box!important;border:1.5px solid #193b68!important;border-radius:0!important;box-shadow:none!important;break-inside:avoid!important;page-break-inside:avoid!important}
  .document-preview-page .doc-header{break-inside:avoid!important;page-break-inside:avoid!important}
  .document-preview-page .doc-box,.document-preview-page .summary-strip,.document-preview-page .doc-table,.document-preview-page .signature-grid{break-inside:avoid!important;page-break-inside:avoid!important}
  .document-preview-page .doc-header img{width:52px!important;height:52px!important;min-width:52px!important;max-width:52px!important;min-height:52px!important;max-height:52px!important}
  .document-preview-page .doc-header h1{font-size:19px!important}
  .document-preview-page .doc-header p{font-size:9px!important}
  .document-preview-page .doc-box{margin-top:8px!important}
  .document-preview-page .doc-box-title{font-size:10px!important;padding:7px 9px!important}
  .document-preview-page .doc-grid>div{padding:7px 9px!important}
  .document-preview-page .doc-grid small{font-size:7.5px!important}
  .document-preview-page .doc-grid b{font-size:10px!important}
  .document-preview-page .official-document p{font-size:9.5px!important;line-height:1.4!important;margin:7px 0!important}
  .document-preview-page .doc-table th,.document-preview-page .doc-table td{font-size:8.5px!important;padding:5px!important}
  .document-preview-page .signature-grid{font-size:9px!important;margin:15px 6px 10px!important}
  .document-preview-page .signature-grid span{margin-top:12px!important}
  .document-preview-page .doc-footer{font-size:7.5px!important}

  body.id-card-page{background:#fff!important;padding:0!important;display:block!important}
  .id-card-pair{display:flex!important;flex-direction:column!important;align-items:center!important;gap:5mm!important;padding:0!important;margin:0!important}
  .id-card-page .id-card{width:85.6mm!important;height:54mm!important;min-height:54mm!important;max-width:none!important;margin:0 auto!important;box-sizing:border-box!important;border:1px solid #8c9bab!important;border-radius:3mm!important;box-shadow:none!important;break-inside:avoid!important;page-break-inside:avoid!important}
  .id-card-page .id-card-head{padding:3mm 3.5mm!important}
  .id-card-page .id-card-head img{width:11mm!important;height:11mm!important}
  .id-card-page .id-card-head b{font-size:10pt!important}
  .id-card-page .id-card-head small{font-size:5.5pt!important}
  .id-card-page .id-card-body{padding:3.5mm!important;gap:3mm!important}
  .id-card-page .id-photo{width:22mm!important;height:27mm!important}
  .id-card-page .id-name{font-size:11pt!important;margin-bottom:2mm!important}
  .id-card-page .id-row{padding:1mm 0!important}
  .id-card-page .id-row span{font-size:5pt!important}
  .id-card-page .id-row b{font-size:6.5pt!important}
  .id-card-page .id-card-foot{padding:2mm 3.5mm!important;font-size:5pt!important}
  .id-card-page .id-back-head{padding:2.8mm 3.5mm!important;font-size:8pt!important}
  .id-card-page .id-back-body{grid-template-columns:18mm 1fr!important;gap:3mm!important;padding:3mm 3.5mm!important}
  .id-card-page .id-qr-box{width:17mm!important;height:17mm!important;font-size:24px!important}
  .id-card-page .id-qr-box small{font-size:5pt!important}
  .id-card-page .id-back-body p{font-size:6.5pt!important;line-height:1.25!important;margin:0 0 1.5mm!important}
  .id-card-page .id-sign{padding:2mm 3.5mm!important;font-size:5.5pt!important}
}

/* ===== MEMBER ID CARD: PHOTO + MEMBER TEXT NEXT TO HEADER ===== */
.id-card-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:9px 11px!important;min-height:56px!important;box-sizing:border-box!important}
.id-brand{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important;flex:1 1 auto!important}
.id-brand img{width:30px!important;height:30px!important;object-fit:contain!important;flex:0 0 30px!important;border-radius:4px!important}
.id-brand b{display:block!important;font-size:10px!important;line-height:1.1!important;white-space:nowrap!important}
.id-brand small{display:block!important;font-size:6.5px!important;line-height:1.15!important;margin-top:2px!important;white-space:nowrap!important}
.id-member-head{display:flex!important;align-items:center!important;gap:6px!important;flex:0 0 auto!important;min-width:0!important}
.id-member-head-text{text-align:right!important;line-height:1.1!important;min-width:0!important}
.id-member-head-text strong{display:block!important;font-size:10px!important;max-width:105px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.id-member-head-text span{display:block!important;font-size:5.5px!important;margin-top:2px!important}
.id-member-head-text b{display:block!important;font-size:7px!important;margin-top:2px!important}
.id-card-page .head-photo{width:35px!important;height:40px!important;flex:0 0 35px!important;border-radius:3px!important;overflow:hidden!important;background:#fff!important;border:1px solid rgba(23,50,77,.35)!important;display:flex!important;align-items:center!important;justify-content:center!important}
.id-card-page .head-photo img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
.id-card-page .head-photo span{font-size:20px!important}
.id-card-page .id-card-body{padding:7px 11px!important;display:block!important}
.id-card-page .id-card-body .id-details{width:100%!important}
.id-card-page .id-card-body .id-row{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:8px!important}
.id-card-page .id-card-body .id-row span{font-size:6.5px!important}
.id-card-page .id-card-body .id-row b{font-size:8px!important;text-align:right!important;max-width:58%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
@media(max-width:600px){
 .id-card-page .id-card-head{padding:8px 10px!important}
 .id-brand img{width:27px!important;height:27px!important;flex-basis:27px!important}
 .id-brand b{font-size:9px!important}.id-brand small{font-size:6px!important}
 .id-member-head-text strong{font-size:9px!important;max-width:92px!important}
 .id-member-head-text span{font-size:5px!important}.id-member-head-text b{font-size:6.5px!important}
 .id-card-page .head-photo{width:32px!important;height:37px!important;flex-basis:32px!important}
}
@media print{
 .id-card-page .id-card-head{padding:3mm 3.5mm!important;min-height:16mm!important}
 .id-brand img{width:8mm!important;height:8mm!important;flex-basis:8mm!important}
 .id-brand b{font-size:8pt!important}.id-brand small{font-size:5pt!important}
 .id-member-head-text strong{font-size:8pt!important;max-width:34mm!important}
 .id-member-head-text span{font-size:4.5pt!important}.id-member-head-text b{font-size:5.5pt!important}
 .id-card-page .head-photo{width:11mm!important;height:13mm!important;flex-basis:11mm!important}
 .id-card-page .id-card-body{padding:2.5mm 3.5mm!important}
 .id-card-page .id-card-body .id-row span{font-size:5pt!important}
 .id-card-page .id-card-body .id-row b{font-size:6.5pt!important}
}

/* FINAL MEMBER ID CARD - 85.6mm x 54mm, compact reference-style layout */
.id-card-page{background:#fff!important;color:#17263d!important}
.id-card-page .id-card-pair{display:flex!important;flex-direction:column!important;gap:8mm!important;align-items:center!important}
.id-card-page .id-card{width:85.6mm!important;height:54mm!important;min-width:85.6mm!important;max-width:85.6mm!important;min-height:54mm!important;max-height:54mm!important;box-sizing:border-box!important;overflow:hidden!important;border:0.45mm solid #aeb8c4!important;border-radius:2.5mm!important;background:#fff!important;box-shadow:0 1mm 3mm rgba(0,0,0,.12)!important;position:relative!important}
.id-card-page .id-card-head{height:16mm!important;min-height:16mm!important;padding:2.4mm 3.2mm 1.8mm!important;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:2.5mm!important;background:linear-gradient(90deg,#ff8c00 0 33.33%,#fff 33.33% 66.66%,#138808 66.66% 100%) top/100% 1.7mm no-repeat,#fff!important;border-bottom:0.3mm solid #d8dde3!important}
.id-card-page .id-brand{display:flex!important;align-items:center!important;gap:1.7mm!important;min-width:0!important;flex:1 1 auto!important;padding-top:1mm!important}
.id-card-page .id-brand img{width:9mm!important;height:9mm!important;object-fit:contain!important;border-radius:1mm!important}
.id-card-page .id-brand div{min-width:0!important}
.id-card-page .id-brand b{display:block!important;font-size:7.2pt!important;line-height:1.05!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#4a5563!important}
.id-card-page .id-brand small{display:block!important;font-size:4.4pt!important;line-height:1.1!important;color:#7a8490!important;margin-top:.8mm!important;white-space:nowrap!important}
.id-card-page .id-member-head{display:flex!important;align-items:center!important;gap:1.8mm!important;order:2!important;flex:0 0 auto!important}
.id-card-page .id-member-head-text{text-align:left!important;line-height:1.05!important;max-width:31mm!important;min-width:0!important;order:1!important}
.id-card-page .id-member-head-text strong{font-size:7.5pt!important;line-height:1.05!important;display:block!important;max-width:31mm!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#17263d!important}
.id-card-page .id-member-head-text span{font-size:4.2pt!important;margin-top:1mm!important;color:#687384!important}
.id-card-page .id-member-head-text b{font-size:5.5pt!important;margin-top:.7mm!important;color:#17263d!important}
.id-card-page .head-photo{order:2!important;width:13mm!important;height:15mm!important;flex:0 0 13mm!important;border:0.3mm solid #9ba6b3!important;border-radius:1mm!important;background:#f5f6f8!important;overflow:hidden!important}
.id-card-page .head-photo img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
.id-card-page .head-photo span{font-size:18px!important}
.id-card-page .id-card-body{height:29mm!important;padding:2.2mm 3.2mm!important;box-sizing:border-box!important;display:flex!important;align-items:center!important}
.id-card-page .id-card-body .id-details{width:100%!important}
.id-card-page .id-card-body .id-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:2mm!important;padding:1.1mm 0!important;border-bottom:.2mm solid #e2e6ea!important}
.id-card-page .id-card-body .id-row:last-child{border-bottom:0!important}
.id-card-page .id-card-body .id-row span{font-size:4.6pt!important;color:#667180!important;white-space:nowrap!important}
.id-card-page .id-card-body .id-row b{font-size:5.8pt!important;color:#17263d!important;text-align:right!important;max-width:62%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.id-card-page .id-card-foot{height:7mm!important;box-sizing:border-box!important;padding:1.8mm 3.2mm!important;display:flex!important;justify-content:space-between!important;align-items:center!important;background:linear-gradient(90deg,#ff8c00 0 33.33%,#fff 33.33% 66.66%,#138808 66.66% 100%) bottom/100% 1.2mm no-repeat,#f8fafc!important;font-size:4.2pt!important;color:#667180!important}
.id-card-page .id-back{display:block!important}
.id-card-page .id-back-head{height:10mm!important;box-sizing:border-box!important;padding:3mm 3.2mm!important;background:linear-gradient(90deg,#ff8c00 0 33.33%,#fff 33.33% 66.66%,#138808 66.66% 100%) top/100% 1.7mm no-repeat,#fff!important;border-bottom:.3mm solid #d8dde3!important;font-size:7.2pt!important;font-weight:700!important;color:#17263d!important}
.id-card-page .id-back-body{height:32mm!important;box-sizing:border-box!important;display:grid!important;grid-template-columns:20mm 1fr!important;gap:3mm!important;padding:3mm 3.2mm!important}
.id-card-page .id-qr-box{width:18mm!important;height:18mm!important;border:.3mm solid #c8ced6!important;border-radius:1mm!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:27px!important;background:#fff!important}
.id-card-page .id-qr-box small{display:block!important;font-size:4pt!important;color:#687384!important;margin-top:1mm!important}
.id-card-page .id-back-body p{font-size:5.5pt!important;line-height:1.3!important;margin:0 0 1.8mm!important;color:#303b49!important}
.id-card-page .id-back-body .id-row{padding:1mm 0!important;border-bottom:.2mm solid #e2e6ea!important}
.id-card-page .id-back-body .id-row span{font-size:4.4pt!important;color:#687384!important}
.id-card-page .id-back-body .id-row b{font-size:5.4pt!important;color:#17263d!important}
.id-card-page .id-sign{height:5mm!important;box-sizing:border-box!important;padding:1mm 3.2mm!important;font-size:4.4pt!important;color:#4d5968!important}
.id-card-page .id-sign span{font-size:5pt!important}
@media screen and (max-width:500px){.id-card-page .id-card-pair{transform:none!important}.id-card-page .id-card{box-shadow:none!important}.id-card-page .id-print-note{font-size:10px!important}}
@media print{
  @page{size:A4 portrait;margin:10mm}
  .id-card-page{background:#fff!important}
  .id-card-page .id-card-actions,.id-card-page .id-print-note{display:none!important}
  .id-card-page .id-card-pair{gap:8mm!important;align-items:flex-start!important}
  .id-card-page .id-card{box-shadow:none!important;break-inside:avoid!important;page-break-inside:avoid!important}
}
/* Final reference-style member ID card layout */
.id-card-page .id-card.id-front{background:#fff!important;overflow:hidden!important}
.id-card-page .id-front .id-card-head{height:13mm!important;min-height:13mm!important;padding:2.2mm 3.2mm 1.5mm!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:2mm!important;background:linear-gradient(90deg,#ff9933 0 33.33%,#fff 33.33% 66.66%,#138808 66.66% 100%) top/100% 1.5mm no-repeat,#fff!important;border-bottom:.3mm solid #cfd5dc!important}
.id-card-page .id-front .id-brand{display:flex!important;align-items:center!important;gap:1.5mm!important;flex:1!important}
.id-card-page .id-front .id-brand img{width:9mm!important;height:9mm!important;object-fit:contain!important}
.id-card-page .id-front .id-brand b{font-size:7pt!important;line-height:1.05!important;color:#243449!important;white-space:nowrap!important}
.id-card-page .id-front .id-brand small{font-size:4.1pt!important;color:#707a86!important;display:block!important;margin-top:.6mm!important;white-space:nowrap!important}
.id-card-page .id-front .id-head-title{text-align:right!important;font-size:6.2pt!important;font-weight:800!important;line-height:1.1!important;color:#1f2d40!important;white-space:nowrap!important}
.id-card-page .id-front .id-head-title span{font-size:4.4pt!important;font-weight:600!important;color:#657181!important}
.id-card-page .id-front .id-card-main{height:34mm!important;padding:3mm 3.2mm 2mm!important;display:grid!important;grid-template-columns:22mm 1fr 17mm!important;gap:3mm!important;align-items:center!important;box-sizing:border-box!important}
.id-card-page .id-front .card-photo{width:20mm!important;height:24mm!important;flex:none!important;border:.35mm solid #b9c2cd!important;border-radius:1mm!important;overflow:hidden!important;background:#f3f5f7!important}
.id-card-page .id-front .card-photo img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
.id-card-page .id-front .card-photo span{font-size:22px!important}
.id-card-page .id-front .id-details{min-width:0!important;width:100%!important}
.id-card-page .id-front .id-name{margin-bottom:1.5mm!important;border-bottom:.25mm solid #dce1e6!important;padding-bottom:1.2mm!important}
.id-card-page .id-front .id-name strong{display:block!important;font-size:8pt!important;line-height:1.05!important;color:#16253a!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.id-card-page .id-front .id-name small{display:block!important;font-size:4.2pt!important;color:#687382!important;margin-top:.7mm!important}
.id-card-page .id-front .id-row{display:flex!important;justify-content:space-between!important;gap:1.5mm!important;padding:1mm 0!important;border-bottom:.2mm solid #e1e5e9!important}
.id-card-page .id-front .id-row span{font-size:4.2pt!important;color:#667281!important;white-space:nowrap!important}
.id-card-page .id-front .id-row b{font-size:5.4pt!important;color:#1b2b40!important;text-align:right!important;max-width:58%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.id-card-page .id-front .id-card-qr{text-align:center!important;align-self:center!important}
.id-card-page .id-front .fake-qr{width:15mm!important;height:15mm!important;border:.35mm solid #222!important;background-color:#fff!important;background-image:linear-gradient(90deg,#111 8%,transparent 8% 18%,#111 18% 27%,transparent 27% 39%,#111 39% 48%,transparent 48% 60%,#111 60% 72%,transparent 72% 82%,#111 82%),linear-gradient(#111 8%,transparent 8% 18%,#111 18% 29%,transparent 29% 40%,#111 40% 50%,transparent 50% 61%,#111 61% 72%,transparent 72% 84%,#111 84%);background-size:100% 100%;margin:0 auto 1mm!important}
.id-card-page .id-front .fake-qr i{display:none!important}
.id-card-page .id-front .id-card-qr small{font-size:3.6pt!important;color:#4e5967!important;font-weight:700!important}
.id-card-page .id-front .id-card-foot{height:7mm!important;padding:1.5mm 3.2mm!important;background:linear-gradient(90deg,#ff9933 0 33.33%,#fff 33.33% 66.66%,#138808 66.66% 100%) bottom/100% 1.2mm no-repeat,#f7f9fb!important;font-size:4.1pt!important}
@media print{.id-card-page .id-card-main{height:34mm!important}.id-card-page .id-front .card-photo{width:20mm!important;height:24mm!important}.id-card-page .id-front .id-name strong{font-size:8pt!important}.id-card-page .id-front .id-row b{font-size:5.4pt!important}}

/* Real member QR code */
.id-card-qr{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:72px}
.id-card-qr .member-qr-img{width:72px;height:72px;display:block;object-fit:contain;background:#fff;border:1px solid #d8dee8;border-radius:4px;padding:2px;box-sizing:border-box}
.id-card-qr small{font-size:8px;font-weight:800;color:#17324d;white-space:nowrap}
.id-qr-box{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:3px}
.id-qr-box .member-qr-img{width:58px;height:58px;display:block;object-fit:contain;background:#fff;border:0;padding:0}
.id-qr-box .member-qr-back{width:58px;height:58px}
@media print{
  .id-card-qr .member-qr-img{width:16mm;height:16mm}
  .id-qr-box .member-qr-img,.id-qr-box .member-qr-back{width:14mm;height:14mm}
}

/* FINAL ID CARD VISUAL FIX: visible tricolour header + vertically centered back QR */
.id-card-page .id-front .id-card-head{
  position:relative!important;
  background:linear-gradient(to bottom,
    #ff9933 0 20%,
    #fff 20% 76%,
    #138808 76% 100%)!important;
  border-bottom:.35mm solid #c8d0da!important;
  overflow:hidden!important;
}
.id-card-page .id-front .id-card-head:before{
  content:""!important;
  position:absolute!important;
  left:0!important;right:0!important;top:0!important;
  height:1.2mm!important;
  background:#ff9933!important;
}
.id-card-page .id-front .id-card-head:after{
  content:""!important;
  position:absolute!important;
  left:0!important;right:0!important;bottom:0!important;
  height:1.2mm!important;
  background:#138808!important;
}
.id-card-page .id-front .id-brand,
.id-card-page .id-front .id-head-title{position:relative!important;z-index:2!important}
.id-card-page .id-front .id-brand b,
.id-card-page .id-front .id-brand small,
.id-card-page .id-front .id-head-title,
.id-card-page .id-front .id-head-title span{color:#17263d!important}

.id-card-page .id-back .id-back-head{
  position:relative!important;
  background:linear-gradient(to bottom,
    #ff9933 0 20%,
    #fff 20% 76%,
    #138808 76% 100%)!important;
  color:#17263d!important;
  border-bottom:.35mm solid #c8d0da!important;
  overflow:hidden!important;
}
.id-card-page .id-back .id-back-head:before{
  content:""!important;position:absolute!important;left:0!important;right:0!important;top:0!important;height:1.2mm!important;background:#ff9933!important;
}
.id-card-page .id-back .id-back-head:after{
  content:""!important;position:absolute!important;left:0!important;right:0!important;bottom:0!important;height:1.2mm!important;background:#138808!important;
}
.id-card-page .id-back .id-back-head{padding-top:3.8mm!important;padding-bottom:3mm!important}
.id-card-page .id-back .id-qr-box{
  align-self:center!important;
  justify-self:center!important;
  transform:translateY(2.5mm)!important;
}
@media print{
  .id-card-page .id-front .id-card-head,
  .id-card-page .id-back .id-back-head{
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }
  .id-card-page .id-back .id-qr-box{transform:translateY(2mm)!important}
}

/* ===== FINAL USER REQUEST: FULL MIXED TRICOLOUR HEADER + QR POSITION + ONE-PAGE PRINT ===== */
.id-card-page .id-front .id-card-head,
.id-card-page .id-back .id-back-head{
  background:
    linear-gradient(110deg,
      rgba(255,153,51,.92) 0%,
      rgba(255,188,120,.70) 18%,
      rgba(255,255,255,.96) 43%,
      rgba(255,255,255,.96) 57%,
      rgba(154,211,143,.70) 78%,
      rgba(19,136,8,.92) 100%) !important;
  border-bottom:.35mm solid rgba(31,45,64,.28)!important;
  box-shadow:inset 0 -1.2mm 2.5mm rgba(19,136,8,.12), inset 0 1.2mm 2.5mm rgba(255,153,51,.12)!important;
}
.id-card-page .id-front .id-card-head:before,
.id-card-page .id-front .id-card-head:after,
.id-card-page .id-back .id-back-head:before,
.id-card-page .id-back .id-back-head:after{
  display:none!important;
}
.id-card-page .id-front .id-card-head > *,
.id-card-page .id-back .id-back-head > *{
  position:relative!important;
  z-index:2!important;
}

/* Keep the front QR exactly readable, but place the QR block a little higher. */
.id-card-page .id-front .id-card-qr{
  transform:translateY(-1.5mm)!important;
}

/* Back QR box slightly higher, never hanging toward the lower edge. */
.id-card-page .id-back .id-qr-box{
  align-self:start!important;
  justify-self:center!important;
  transform:translateY(-1.5mm)!important;
}

/* Print: front + back must stay together on one A4 page. */
@media print{
  @page{size:A4 portrait;margin:8mm}
  html,body.id-card-page{
    width:auto!important;
    min-height:0!important;
    height:auto!important;
    overflow:visible!important;
    background:#fff!important;
  }
  .id-card-page .id-card-pair{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:flex-start!important;
    gap:6mm!important;
    width:85.6mm!important;
    margin:0 auto!important;
    padding:0!important;
    break-inside:avoid!important;
    page-break-inside:avoid!important;
    page-break-after:avoid!important;
  }
  .id-card-page .id-card{
    width:85.6mm!important;
    height:54mm!important;
    min-height:54mm!important;
    max-height:54mm!important;
    margin:0!important;
    flex:0 0 54mm!important;
    break-inside:avoid!important;
    page-break-inside:avoid!important;
    page-break-before:avoid!important;
    page-break-after:avoid!important;
  }
  .id-card-page .id-front .id-card-qr{transform:translateY(-1.5mm)!important}
  .id-card-page .id-back .id-qr-box{transform:translateY(-2mm)!important}
  .id-card-page .id-front .id-card-head,
  .id-card-page .id-back .id-back-head{
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }
}

/* Indian tricolour header accents */
.panel-head,.page-title{position:relative;padding-top:9px}
.panel-head:before,.page-title:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;border-radius:8px;background:linear-gradient(90deg,#ff9933 0%,#ff9933 33%,#ffffff 33%,#ffffff 66%,#138808 66%,#138808 100%);box-shadow:0 0 0 1px rgba(0,0,0,.04)}
.page-title{padding-top:11px}
.hero,.id-card-head,.id-back-head{border-top:5px solid transparent;border-image:linear-gradient(90deg,#ff9933 0%,#ff9933 33%,#ffffff 33%,#ffffff 66%,#138808 66%,#138808 100%) 1}
.topbar{border-bottom:4px solid transparent;border-image:linear-gradient(90deg,#ff9933 0%,#ff9933 33%,#ffffff 33%,#ffffff 66%,#138808 66%,#138808 100%) 1}
/* Live multi-event notice ticker */
.notice-ticker{align-items:center;min-height:48px;overflow:hidden;gap:10px}
.notice-ticker .notice-label{min-width:64px;flex:0 0 auto}
.notice-ticker .notice-label b{margin:0}
.notice-ticker .notice-label .hi-inline{display:block;font-weight:800;font-size:10px}
.notice-viewport{position:relative;flex:1;min-width:0;overflow:hidden;height:30px;display:flex;align-items:center}
.notice-track{width:100%;height:100%;position:relative}
.notice-slide{position:absolute;inset:0;display:flex;align-items:center;text-decoration:none;color:inherit;opacity:0;transform:translateX(22px);transition:opacity .45s ease,transform .45s ease;pointer-events:none}
.notice-slide.active{opacity:1;transform:translateX(0);pointer-events:auto}
.notice-slide span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:700}
.notice-dots{display:flex;gap:4px;flex:0 0 auto}
.notice-dot{width:7px;height:7px;border-radius:50%;border:0;padding:0;background:#9db5d4;cursor:pointer}
.notice-dot.active{background:#0b65d5;transform:scale(1.15)}
@media(max-width:700px){.notice-ticker{margin:8px 12px 0;padding:9px 10px;gap:7px}.notice-ticker .notice-label{min-width:48px}.notice-slide span{font-size:11px}.notice-dots{display:none}}

/* ===== All section/table headers: Indian tricolour accent ===== */
.panel>table thead th,.table-wrap thead th{border-top:3px solid #ff9933!important;box-shadow:inset 0 3px 0 #ff9933;background:linear-gradient(90deg,rgba(255,153,51,.10) 0 33%,rgba(255,255,255,.96) 33% 66%,rgba(19,136,8,.10) 66% 100%)!important;}
.notice-ticker{border:2px solid #d8e2ee;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(15,40,80,.08);position:relative}
.notice-ticker:before{display:none!important}
.notice-ticker .notice-label{color:#12345e}.notice-ticker .notice-label b{font-size:12px}.notice-ticker .notice-label .hi-inline{color:#65758c}.notice-ticker .notice-icon{flex:0 0 auto}
@media(max-width:700px){.notice-ticker{min-height:46px}.notice-viewport{height:28px}.notice-slide span{white-space:nowrap;max-width:100%;}}
/* Final dashboard visual cleanup: remove decorative horizontal tricolour lines. */
.modern-dashboard-hero:before,
.modern-dashboard-hero:after,
.panel-head:before,
.page-title:before,
.notice-ticker:before{display:none!important;}
/* Keep the Welcome hero itself mixed in a clean, soft tricolour treatment. */
.modern-dashboard-hero{
  background:linear-gradient(100deg,#ff9933 0%,#fff8ef 34%,#f7fbf7 55%,#138808 100%)!important;
  color:#17263d!important;
  border:1px solid rgba(23,50,77,.08)!important;
}
.modern-dashboard-hero h1,
.modern-dashboard-hero p,
.modern-dashboard-hero .eyebrow{color:#17263d!important;}
.modern-dashboard-hero .eyebrow{opacity:.82;}
.modern-dashboard-hero p{opacity:.86;}
/* Consistent sidebar icons */
.sidebar nav a .sidebar-icon,.side-logout .sidebar-icon{width:40px;min-width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;font-style:normal;font-size:0;line-height:1;color:#dce9ff;font-weight:700;border-radius:12px;background:rgba(255,255,255,.24);box-shadow:inset 0 1px 0 rgba(255,255,255,.08);transition:transform .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease}.sidebar nav a .sidebar-icon svg,.side-logout .sidebar-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sidebar nav a:hover .sidebar-icon,.sidebar nav a:focus-visible .sidebar-icon{color:#fff;background:linear-gradient(135deg,rgba(255,153,51,.32),rgba(255,255,255,.08),rgba(19,136,8,.32));transform:translateY(-1px);box-shadow:0 6px 18px rgba(0,0,0,.14)}.sidebar nav a.active .sidebar-icon{color:#fff;background:linear-gradient(135deg,#ff9933,#fff4e7 48%,#138808);box-shadow:0 6px 18px rgba(0,0,0,.16)}.side-logout{display:flex;align-items:center;gap:10px}.side-logout .sidebar-icon{width:36px;min-width:36px;height:36px;background:rgba(255,255,255,.08)}
.sidebar nav a:hover .sidebar-icon,.sidebar nav a:focus-visible .sidebar-icon{color:#fff}
.sidebar nav a.active .sidebar-icon{color:#fff}

/* ===== STAFF/MEMBER ID CARD FINAL COLOUR + NO LINES ===== */
.id-card-page .id-card-head,
.id-card-page .id-back-head{
  background:linear-gradient(100deg,#ff8c00 0%,#ffb347 24%,#ffffff 49%,#e9f7ed 68%,#138808 100%) !important;
  border-bottom:0 !important;
  -webkit-print-color-adjust:exact !important;
  print-color-adjust:exact !important;
}
.id-card-page .id-card-foot{
  background:linear-gradient(100deg,#ff8c00 0%,#fff8ef 30%,#ffffff 50%,#f0faf2 70%,#138808 100%) !important;
  border-top:0 !important;
  background-size:100% 100% !important;
  -webkit-print-color-adjust:exact !important;
  print-color-adjust:exact !important;
}
.id-card-page .id-card-body .id-row,
.id-card-page .id-card-body .id-row:last-child{
  border-bottom:0 !important;
}
.id-card-page .id-card{
  border:0.45mm solid #d7dde5 !important;
}
@media print{
  .id-card-page .id-card-head,
  .id-card-page .id-back-head,
  .id-card-page .id-card-foot{
    -webkit-print-color-adjust:exact !important;
    print-color-adjust:exact !important;
  }
}

/* Final visual cleanup: Staff + Member dashboards and ID cards */
.member-hero{
  background:linear-gradient(118deg,#ff9933 0%,#ffb866 18%,#ffffff 45%,#f7faf8 58%,#8acb7f 80%,#138808 100%) !important;
  color:#12213b !important;
  border:1px solid rgba(20,60,30,.10) !important;
  box-shadow:0 18px 42px rgba(20,70,45,.14) !important;
}
.member-hero h1{color:#10213b !important}.member-hero p{color:#334d69 !important}.member-hero .eyebrow{color:#244b78 !important}.member-hero .member-code{color:#17345a !important;background:rgba(255,255,255,.55) !important;border-color:rgba(20,55,90,.12) !important}

/* No decorative horizontal separator lines inside either side of the ID card. */
.id-card-page .id-card,
.id-card-page .id-card-head,
.id-card-page .id-card-body,
.id-card-page .id-card-main,
.id-card-page .id-card-foot,
.id-card-page .id-back-head,
.id-card-page .id-back-body,
.id-card-page .id-sign,
.id-card-page .id-name,
.id-card-page .id-row,
.id-card-page .id-back-body .id-row{
  border-top:none !important;
  border-bottom:none !important;
  border-image:none !important;
}
.id-card-page .id-card-head,
.id-card-page .id-back-head{
  background:linear-gradient(118deg,#ff9933 0%,#ffb866 18%,#ffffff 45%,#f7faf8 58%,#8acb7f 80%,#138808 100%) !important;
  color:#17263d !important;
}
.id-card-page .id-card-foot{background:#f7f9fb !important}
.id-card-page .id-card-head:before,
.id-card-page .id-card-head:after,
.id-card-page .id-back-head:before,
.id-card-page .id-back-head:after{display:none !important;content:none !important}
.id-card-page .id-card{box-shadow:0 18px 45px rgba(14,40,80,.16) !important}

/* Modern multicolour navigation icons */
.sidebar nav a:nth-child(1) .sidebar-icon{color:#ff9933}
.sidebar nav a:nth-child(2) .sidebar-icon{color:#6c63ff}
.sidebar nav a:nth-child(3) .sidebar-icon{color:#19a974}
.sidebar nav a:nth-child(4) .sidebar-icon{color:#ff5c5c}
.sidebar nav a:nth-child(5) .sidebar-icon{color:#4f8cff}
.sidebar nav a:nth-child(6) .sidebar-icon{color:#00a884}
.sidebar nav a:nth-child(7) .sidebar-icon{color:#ffb000}
.sidebar nav a:nth-child(8) .sidebar-icon{color:#36a3ff}
.sidebar nav a:nth-child(9) .sidebar-icon{color:#ff4fa3}
.sidebar nav a:nth-child(10) .sidebar-icon{color:#8b5cf6}
.sidebar nav a:nth-child(11) .sidebar-icon{color:#14b8a6}
.sidebar nav a:nth-child(12) .sidebar-icon{color:#ff7a45}
.sidebar nav a:nth-child(13) .sidebar-icon{color:#22c55e}
.sidebar nav a:nth-child(14) .sidebar-icon{color:#38bdf8}
.sidebar nav a:nth-child(15) .sidebar-icon{color:#f59e0b}
.sidebar nav a:nth-child(16) .sidebar-icon{color:#a78bfa}
.sidebar nav a:nth-child(17) .sidebar-icon{color:#10b981}
.sidebar nav a:nth-child(18) .sidebar-icon{color:#f43f5e}
.sidebar nav a:nth-child(19) .sidebar-icon{color:#60a5fa}
.sidebar nav a:nth-child(20) .sidebar-icon{color:#c084fc}
.sidebar nav a:nth-child(21) .sidebar-icon{color:#2dd4bf}
.sidebar nav a:nth-child(22) .sidebar-icon{color:#fb923c}
.sidebar nav a:nth-child(23) .sidebar-icon{color:#4ade80}
.sidebar nav a:nth-child(24) .sidebar-icon{color:#f472b6}
.sidebar nav a.active .sidebar-icon{color:#fff!important}
.sidebar nav a:hover .sidebar-icon,.sidebar nav a:focus-visible .sidebar-icon{color:inherit}
.side-logout .sidebar-icon{color:#ff5c5c}

/* ===== FINAL SIDE + LOGO VISUAL UPDATE ===== */
.sidebar{
  background:linear-gradient(180deg,#151a2d 0%,#0b2f5f 46%,#073d2b 100%) !important;
}
.sidebar .brand img,
.mobile-brand img,
.login-logo,
.login-page .login-logo{
  background:transparent !important;
  padding:0 !important;
  box-shadow:none !important;
}
.sidebar .brand{
  background:linear-gradient(90deg,rgba(255,153,51,.10),rgba(255,255,255,.04),rgba(19,136,8,.10));
  border-radius:14px;
  padding:8px 9px 20px !important;
}
.verify-head img{
  background:linear-gradient(135deg,#ff9933 0%,#fff7ee 48%,#e8f7ec 52%,#138808 100%) !important;
  padding:7px !important;
  border-radius:12px !important;
  box-shadow:0 5px 16px rgba(15,40,80,.12);
}

/* ===== HEADER: GS SURaha HINDI + MIXED TRICOLOUR ===== */
.topbar{
  position:relative!important;
  background:linear-gradient(110deg,#ff9933 0%,#ffb96f 22%,#ffffff 43%,#ffffff 57%,#a8d99c 78%,#138808 100%)!important;
  border-bottom:4px solid transparent!important;
  border-image:linear-gradient(90deg,#ff9933 0%,#ff9933 33%,#ffffff 33%,#ffffff 66%,#138808 66%,#138808 100%) 1!important;
  box-shadow:0 2px 12px rgba(31,45,64,.12)!important;
}
.topbar-brand{display:flex!important;align-items:center!important;gap:10px!important;min-width:250px!important;flex:0 0 auto!important}
.topbar-brand img{width:48px!important;height:48px!important;object-fit:contain!important;border-radius:9px!important;background:rgba(255,255,255,.28)!important}
.topbar-brand b{display:block!important;font-size:18px!important;line-height:1.12!important;color:#17263d!important;font-weight:900!important;white-space:nowrap!important}
.topbar-brand small{display:block!important;margin-top:3px!important;font-size:11px!important;color:#334155!important;font-weight:700!important;white-space:nowrap!important}
@media(max-width:900px){
  .topbar-brand{display:none!important}
  .topbar{background:linear-gradient(110deg,#ff9933 0%,#ffbd78 24%,#ffffff 48%,#ffffff 56%,#a8d99c 78%,#138808 100%)!important}
}

/* ===== Updated tricolour sidebar ===== */
.sidebar{
  background:
    radial-gradient(circle at 8% 0%,rgba(255,153,51,.34),transparent 32%),
    radial-gradient(circle at 100% 100%,rgba(19,136,8,.28),transparent 38%),
    linear-gradient(180deg,#fffaf5 0%,#ffffff 46%,#f4fff6 100%);
  color:#12213b;
  border-right:1px solid #dbe4ee;
  box-shadow:8px 0 28px rgba(20,45,70,.08);
}
.sidebar:before{height:5px;background:linear-gradient(90deg,#ff9933 0 33.333%,#ffffff 33.333% 66.666%,#138808 66.666% 100%)}
.sidebar .brand{border-bottom:0}
.sidebar .brand b{color:#10213b;text-shadow:none;font-weight:900}
.sidebar .brand small{color:#56657b;text-shadow:none}
.sidebar .brand:after{height:3px;background:linear-gradient(90deg,#ff9933 0 33.333%,#dfe5ec 33.333% 66.666%,#138808 66.666% 100%)}
.sidebar nav{scrollbar-color:#c8d2df transparent}
.sidebar nav::-webkit-scrollbar-thumb{background:#c8d2df}
.sidebar nav a,.side-bottom a{color:#30415b}
.sidebar nav a:hover{background:rgba(255,255,255,.78);color:#10213b;box-shadow:0 5px 18px rgba(30,60,90,.08)}
.sidebar nav a:before{background:linear-gradient(180deg,#ff9933 0 33.333%,#dfe5ec 33.333% 66.666%,#138808 66.666% 100%)}
.sidebar nav a.active{background:linear-gradient(90deg,rgba(255,153,51,.18),rgba(255,255,255,.86) 48%,rgba(19,136,8,.16));color:#10213b;box-shadow:inset 0 0 0 1px rgba(70,95,120,.10),0 6px 18px rgba(30,60,90,.07)}
.side-bottom{border-top:1px solid #dbe4ee}
.online{color:#087647}
.side-logout{background:linear-gradient(90deg,rgba(255,153,51,.14),rgba(255,255,255,.75),rgba(19,136,8,.12));color:#233752;border:1px solid #dbe4ee}
.sidebar nav a .sidebar-icon,.side-logout .sidebar-icon{background:rgba(255,255,255,.72);box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 4px 12px rgba(30,60,90,.07)}
.sidebar nav a:hover .sidebar-icon{background:linear-gradient(135deg,rgba(255,153,51,.28),rgba(255,255,255,.95),rgba(19,136,8,.25));color:inherit}
.sidebar nav a.active .sidebar-icon{background:linear-gradient(135deg,#ff9933,#fff 48%,#138808);color:#18314f!important}
.side-logout .sidebar-icon{color:#df3d58}

/* ===== FINAL SIDEBAR: MATCH REFERENCE TRICOLOUR ===== */
.sidebar{
  background:
    radial-gradient(circle at 8% 12%, rgba(255,255,255,.38) 0 12%, transparent 34%),
    radial-gradient(circle at 90% 58%, rgba(255,255,255,.22) 0 10%, transparent 34%),
    linear-gradient(135deg,
      #ff6a00 0%,
      #ff8a00 17%,
      #ffb52e 28%,
      #fff7df 43%,
      #edf6e9 54%,
      #8fcd78 68%,
      #23a34a 82%,
      #07883a 100%) !important;
  color:#fff !important;
}
.sidebar:before{
  background:linear-gradient(90deg,#ff6a00 0 33.333%,#fff 33.333% 66.666%,#138808 66.666% 100%) !important;
}
.sidebar-head .brand,
.sidebar .brand{
  background:linear-gradient(115deg,
    #ff6a00 0%,
    #ff9b1f 22%,
    #fff8e8 43%,
    #ffffff 52%,
    #dff1d9 68%,
    #39ad54 83%,
    #07883a 100%) !important;
  color:#10213b !important;
  min-height:145px !important;
}
.sidebar .brand b{
  color:#10213b !important;
  text-shadow:0 1px 0 rgba(255,255,255,.8) !important;
  font-weight:900 !important;
}
.sidebar .brand small{
  color:#17365f !important;
  text-shadow:none !important;
}
.sidebar .brand:after{
  background:linear-gradient(90deg,#ff6a00 0 33.333%,#ffffff 33.333% 66.666%,#138808 66.666% 100%) !important;
}
.sidebar nav a,
.side-bottom a{
  color:#fff !important;
  text-shadow:0 2px 3px rgba(0,0,0,.30) !important;
  font-weight:850 !important;
}
.sidebar nav a:hover{
  background:rgba(255,255,255,.22) !important;
  color:#fff !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.25),0 7px 18px rgba(0,0,0,.08) !important;
}
.sidebar nav a.active{
  background:linear-gradient(90deg,rgba(255,112,0,.88),rgba(255,255,255,.22),rgba(19,136,8,.42)) !important;
  color:#fff !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.25),0 8px 22px rgba(0,0,0,.10) !important;
}
.sidebar nav a .sidebar-icon,
.side-logout .sidebar-icon{
  background:rgba(255,255,255,.88) !important;
  box-shadow:0 5px 14px rgba(0,0,0,.10),inset 0 1px 0 rgba(255,255,255,.98) !important;
}
.sidebar nav a:hover .sidebar-icon{
  background:rgba(255,255,255,.95) !important;
}
.sidebar nav a.active .sidebar-icon{
  background:linear-gradient(135deg,#ff9933,#fff 48%,#138808) !important;
  color:#17345a !important;
}
.side-bottom{
  border-top:1px solid rgba(255,255,255,.55) !important;
}
.online{
  color:#00e878 !important;
  text-shadow:0 2px 3px rgba(0,0,0,.25) !important;
}
.side-logout{
  background:rgba(255,255,255,.18) !important;
  border:1px solid rgba(255,255,255,.30) !important;
  color:#fff !important;
}
.side-logout .sidebar-icon{
  background:rgba(255,255,255,.78) !important;
}
@media(max-width:850px){
  .sidebar{
    background:
      radial-gradient(circle at 10% 10%,rgba(255,255,255,.30),transparent 32%),
      linear-gradient(155deg,#ff6a00 0%,#ff9a1f 22%,#fff5df 42%,#a4d98e 64%,#07883a 100%) !important;
  }
  .sidebar .brand{min-height:110px !important;background:transparent !important}
}

/* FINAL MEMBER ID CARD - reference style */
.id-card-page .id-front{background:#fff!important;position:relative!important;overflow:hidden!important}
.id-card-page .id-front:before{content:"";position:absolute;left:-8%;right:-8%;bottom:-13mm;height:25mm;background:linear-gradient(165deg,transparent 0 35%,rgba(255,153,51,.98) 36% 44%,transparent 45%),linear-gradient(168deg,transparent 0 49%,rgba(19,136,8,.98) 50% 67%,transparent 68%);z-index:0;pointer-events:none}
.id-card-page .id-front:after{content:"";position:absolute;left:0;right:0;top:0;height:2mm;background:linear-gradient(90deg,#ff9933 0 33.33%,#fff 33.33% 66.66%,#138808 66.66% 100%);z-index:3}
.id-card-page .id-front>*{position:relative;z-index:2}
.id-card-page .id-front .id-card-head{height:17mm!important;min-height:17mm!important;padding:3mm 3.5mm 2mm!important;background:#fff!important;border-bottom:.25mm solid #e1e5ea!important;display:flex!important;align-items:center!important}
.id-card-page .id-front .id-brand{gap:2mm!important;align-items:center!important}
.id-card-page .id-front .id-brand img{width:12mm!important;height:12mm!important;background:transparent!important;border-radius:0!important;object-fit:contain!important}
.id-card-page .id-front .id-brand b{font-size:9pt!important;line-height:1.05!important;color:#123c78!important;letter-spacing:.1px!important;white-space:nowrap!important}
.id-card-page .id-front .id-brand small{font-size:5.4pt!important;color:#24466f!important;margin-top:1mm!important}
.id-card-page .id-front .id-member-head{display:flex!important;align-items:center!important;gap:2mm!important}
.id-card-page .id-front .id-member-head-text{order:1!important;text-align:right!important;max-width:31mm!important}
.id-card-page .id-front .id-member-head-text span{font-size:4.5pt!important;color:#66758a!important;display:block!important}
.id-card-page .id-front .id-member-head-text strong{font-size:7pt!important;color:#d22b3f!important;display:block!important;margin-top:.8mm!important}
.id-card-page .id-front .head-photo{display:none!important}
.id-card-page .id-front .id-card-main{height:31mm!important;padding:3mm 3.5mm 2mm!important;display:grid!important;grid-template-columns:24mm 1fr 20mm!important;gap:3mm!important;align-items:center!important;box-sizing:border-box!important}
.id-card-page .id-front .card-photo{width:22mm!important;height:25mm!important;border:.35mm solid #aeb9c7!important;border-radius:2mm!important;background:#f4f7fb!important;box-shadow:0 .5mm 1mm rgba(0,0,0,.08)!important}
.id-card-page .id-front .id-name{border:0!important;margin:0 0 1.2mm!important;padding:0!important}
.id-card-page .id-front .id-name strong{font-size:8.2pt!important;color:#172d4b!important;line-height:1.1!important}
.id-card-page .id-front .id-name small{font-size:4.5pt!important;color:#748196!important;margin-top:.5mm!important}
.id-card-page .id-front .id-row{padding:.9mm 0!important;border-bottom:.18mm solid #e4e8ed!important}
.id-card-page .id-front .id-row span{font-size:4.3pt!important;color:#68778a!important}
.id-card-page .id-front .id-row b{font-size:5.5pt!important;color:#1d3454!important;max-width:56%!important}
.id-card-page .id-front .id-card-qr{align-self:center!important;text-align:center!important}
.id-card-page .id-front .id-card-qr img{width:17mm!important;height:17mm!important;display:block!important;margin:0 auto 1mm!important;background:#fff!important}
.id-card-page .id-front .id-card-qr small{font-size:3.8pt!important;color:#4d5d70!important;font-weight:700!important}
.id-card-page .id-front .id-card-sign{height:5mm!important;padding:0 3.5mm!important;box-sizing:border-box!important;text-align:right!important;font-size:4pt!important;color:#4b6078!important}
.id-card-page .id-front .id-card-sign span{margin-left:2mm!important;font-size:4.5pt!important;color:#263f5f!important}
.id-card-page .id-front .id-card-foot{height:7mm!important;padding:1.5mm 3.5mm!important;background:transparent!important;border-top:0!important;font-size:4.5pt!important;color:#173d70!important}
.id-card-page .id-front .id-card-foot b{color:#1a6b37!important}
.id-card-page .id-front .member-qr-img{object-fit:contain!important}
@media(max-width:500px){.id-card-page .id-front .id-card-head{padding:3mm!important}.id-card-page .id-front .id-brand b{font-size:8pt!important}.id-card-page .id-front .id-brand small{font-size:5pt!important}.id-card-page .id-front .id-card-main{grid-template-columns:23mm 1fr 19mm!important;gap:2.5mm!important}.id-card-page .id-front .card-photo{width:21mm!important;height:24mm!important}.id-card-page .id-front .id-row span{font-size:4pt!important}.id-card-page .id-front .id-row b{font-size:5.2pt!important}.id-card-page .id-front .id-card-qr img{width:16mm!important;height:16mm!important}}


/* ===== ID Card exact reference + signatures ===== */
.id-card-pair{width:min(920px,100%);display:grid;grid-template-columns:1fr;gap:18px}
.id-card{width:100%;max-width:760px;margin:0 auto;border:1px solid #d7e0ec;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 12px 35px rgba(20,50,90,.12)}
.id-card-head{background:linear-gradient(115deg,#ff8a00 0%,#fff 46%,#1bb34a 100%);color:#0d2a56;padding:18px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dfe7ef}
.id-brand{display:flex;align-items:center;gap:12px}.id-brand img{width:62px;height:62px;object-fit:contain;background:transparent!important;border-radius:0!important}.id-brand b{display:block;font-size:22px;font-weight:900;line-height:1.12}.id-brand small{display:block;margin-top:5px;font-size:11px;font-weight:800;color:#183d6d}.id-member-head-text span{display:block;font-size:9px;font-weight:900;letter-spacing:.06em;color:#38516f}.id-member-head-text strong{display:block;color:#c5162e;font-size:17px;margin-top:3px}
.id-card-main{padding:18px 22px;display:grid;grid-template-columns:115px 1fr 96px;gap:18px;align-items:center}.id-photo{width:105px;height:125px;border-radius:10px;background:#f2f5f8;border:1px solid #cfd8e4}.id-name strong{font-size:21px;color:#102d56}.id-name small{display:block;font-size:9px;color:#748298;margin-top:2px}.id-row{padding:6px 0;border-bottom:1px solid #e9eef4}.id-row span{font-size:8px;color:#68798f;text-transform:none;letter-spacing:0}.id-row b{font-size:11px;color:#172b49}.id-card-qr{text-align:center}.id-card-qr img{width:82px;height:82px}.id-card-qr small{display:block;font-size:8px;color:#5e7188;font-weight:800;margin-top:3px}.id-signatures{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:8px 22px 13px}.sig-box{min-height:45px;text-align:center;border-top:1px solid #dfe6ef;padding-top:6px}.sig-box span{display:block;font-size:8px;color:#66768b;font-weight:800}.sig-box img{display:block;width:105px;height:30px;object-fit:contain;margin:2px auto 0;background:transparent}.sig-box b{font-size:10px;color:#243b5b;line-height:28px}.id-card-foot{background:linear-gradient(90deg,#0b9b45 0%,#fff 50%,#ff8a00 100%);padding:9px 20px;color:#123b62;font-size:9px;font-weight:800}.id-card-foot b{color:#0b6b38}.id-back-head{background:linear-gradient(115deg,#ff8a00,#fff 48%,#1bb34a);padding:13px 20px;color:#12355d;font-size:13px;font-weight:900}.id-back-body{padding:18px 20px;display:grid;grid-template-columns:100px 1fr;gap:18px}.id-qr-box{text-align:center}.id-qr-box img{width:85px;height:85px}.id-qr-box small{display:block;font-size:8px}.id-signatures+.id-card-foot{margin-top:0}.signature-preview{padding:10px;border:1px solid #e5eaf0;border-radius:12px;background:#fff;margin-bottom:12px;text-align:center}.signature-preview img{max-width:220px;height:70px;object-fit:contain;background:transparent}.selected-member-sign{padding:10px;border:1px solid #e5eaf0;border-radius:12px;margin:12px 0;background:#f9fbfd}.selected-member-sign b,.selected-member-sign small{display:block}.selected-member-sign small{color:#718198;margin-top:2px}.selected-member-sign img{display:block;width:180px;height:55px;object-fit:contain;margin:8px auto 0;background:transparent}
@media(max-width:700px){.id-card-head{padding:13px}.id-brand b{font-size:16px}.id-brand img{width:48px;height:48px}.id-card-main{padding:13px;grid-template-columns:82px 1fr 70px;gap:10px}.id-photo{width:78px;height:96px}.id-name strong{font-size:16px}.id-row b{font-size:9px}.id-card-qr img{width:62px;height:62px}.id-signatures{padding:7px 13px 10px;gap:8px}.id-back-body{padding:13px;grid-template-columns:78px 1fr;gap:10px}}
@media print{.id-card-pair{width:85.6mm;gap:8mm}.id-card{width:85.6mm;max-width:none;border-radius:3mm;box-shadow:none}.id-card-head{padding:3mm 3.5mm}.id-brand img{width:11mm;height:11mm}.id-brand b{font-size:9.5pt}.id-brand small{font-size:5pt}.id-member-head-text span{font-size:4.5pt}.id-member-head-text strong{font-size:7.5pt}.id-card-main{padding:3mm 3.5mm;grid-template-columns:23mm 1fr 17mm;gap:3mm}.id-photo{width:22mm;height:26mm}.id-name strong{font-size:9.5pt}.id-name small{font-size:4.5pt}.id-row{padding:1.1mm 0}.id-row span{font-size:4pt}.id-row b{font-size:5.8pt}.id-card-qr img{width:15mm;height:15mm}.id-signatures{padding:2mm 3.5mm 2.5mm;gap:3mm}.sig-box span{font-size:4pt}.sig-box img{width:25mm;height:7mm}.sig-box b{font-size:5pt}.id-card-foot{padding:2mm 3.5mm;font-size:4.5pt}.id-back-head{padding:2.5mm 3.5mm;font-size:6.5pt}.id-back-body{padding:3mm 3.5mm;grid-template-columns:18mm 1fr;gap:3mm}.id-qr-box img{width:16mm;height:16mm}.id-qr-box small{font-size:4pt}}

/* === ID CARD REFERENCE MATCH — final override === */
@media screen and (min-width:701px){
  .id-card-page .id-card-pair{width:85.6mm;max-width:85.6mm;display:grid;grid-template-columns:1fr;gap:10mm;margin:0 auto}
}
.id-card-page .id-front{
  width:85.6mm!important;height:54mm!important;max-width:85.6mm!important;min-height:54mm!important;
  border-radius:3mm!important;background:#fff!important;overflow:hidden!important;position:relative!important;
  box-shadow:0 2mm 7mm rgba(20,45,80,.16)!important;border:.25mm solid #cfd8e4!important;
}
.id-card-page .id-front:before{
  content:""!important;position:absolute!important;left:-6mm!important;right:-6mm!important;bottom:-2mm!important;height:16mm!important;
  background:
    linear-gradient(166deg,transparent 0 37%,rgba(255,153,51,.98) 38% 45%,transparent 46%),
    linear-gradient(171deg,transparent 0 50%,rgba(255,255,255,.98) 51% 57%,transparent 58%),
    linear-gradient(170deg,transparent 0 59%,rgba(19,136,8,.98) 60% 76%,transparent 77%)!important;
  z-index:0!important;pointer-events:none!important;
}
.id-card-page .id-front:after{
  content:""!important;position:absolute!important;left:0!important;right:0!important;top:0!important;height:1.6mm!important;
  background:linear-gradient(90deg,#ff9933 0 33.33%,#fff 33.33% 66.66%,#138808 66.66% 100%)!important;z-index:5!important;
}
.id-card-page .id-front>*{position:relative!important;z-index:2!important}
.id-card-page .id-front .id-card-head{
  height:16mm!important;min-height:16mm!important;padding:2.8mm 3.2mm 1.8mm!important;
  background:linear-gradient(110deg,#ff9933 0%,#fff 47%,#eef9f0 70%,#138808 100%)!important;
  border-bottom:.22mm solid #dce4ea!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
}
.id-card-page .id-front .id-brand{display:flex!important;align-items:center!important;gap:2mm!important;min-width:0!important}
.id-card-page .id-front .id-brand img{width:13mm!important;height:13mm!important;object-fit:contain!important;background:transparent!important;border:0!important;border-radius:0!important}
.id-card-page .id-front .id-brand b{font-size:9.2pt!important;line-height:1.03!important;color:#153e77!important;font-weight:900!important;white-space:nowrap!important;letter-spacing:0!important}
.id-card-page .id-front .id-brand small{display:block!important;font-size:5.3pt!important;line-height:1.1!important;color:#173d70!important;margin-top:.8mm!important;font-weight:700!important}
.id-card-page .id-front .id-member-head{display:flex!important;align-items:center!important;margin-left:auto!important}
.id-card-page .id-front .id-member-head-text{text-align:right!important;max-width:26mm!important}
.id-card-page .id-front .id-member-head-text span{font-size:4.3pt!important;line-height:1.1!important;color:#53677f!important;font-weight:800!important;display:block!important}
.id-card-page .id-front .id-member-head-text strong{font-size:7.3pt!important;color:#d51f36!important;display:block!important;margin-top:.8mm!important;font-weight:900!important}
.id-card-page .id-front .id-card-main{
  height:25mm!important;padding:2.1mm 3.2mm 1.3mm!important;display:grid!important;
  grid-template-columns:22mm 1fr 18mm!important;gap:2.6mm!important;align-items:center!important;box-sizing:border-box!important;
}
.id-card-page .id-front .card-photo{width:21mm!important;height:23mm!important;border:.3mm solid #aab8c8!important;border-radius:2mm!important;background:#f3f6fa!important;overflow:hidden!important;box-shadow:none!important}
.id-card-page .id-front .card-photo img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
.id-card-page .id-front .id-details{min-width:0!important}
.id-card-page .id-front .id-name{border:0!important;margin:0 0 .7mm!important;padding:0!important}
.id-card-page .id-front .id-name strong{font-size:8pt!important;line-height:1.05!important;color:#132e50!important;font-weight:900!important;display:block!important}
.id-card-page .id-front .id-name small{font-size:4.2pt!important;line-height:1.05!important;color:#6f7e90!important;margin-top:.4mm!important;display:block!important}
.id-card-page .id-front .id-row{padding:.55mm 0!important;border-bottom:.16mm solid #e3e8ee!important;display:flex!important;justify-content:space-between!important;gap:1.2mm!important}
.id-card-page .id-front .id-row span{font-size:3.65pt!important;color:#66768a!important;line-height:1.15!important;white-space:nowrap!important}
.id-card-page .id-front .id-row b{font-size:4.7pt!important;color:#19385e!important;line-height:1.15!important;text-align:right!important;max-width:60%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.id-card-page .id-front .id-card-qr{text-align:center!important;align-self:center!important}
.id-card-page .id-front .id-card-qr img{width:16mm!important;height:16mm!important;display:block!important;margin:0 auto .6mm!important;background:#fff!important}
.id-card-page .id-front .id-card-qr small{font-size:3.5pt!important;color:#4d6077!important;font-weight:900!important}
.id-card-page .id-front .id-signatures{height:6.7mm!important;padding:0 3.2mm!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:2.5mm!important;align-items:end!important}
.id-card-page .id-front .sig-box{min-height:5.8mm!important;border-top:0!important;padding:0!important;text-align:center!important;position:relative!important}
.id-card-page .id-front .sig-box span{display:block!important;font-size:3.45pt!important;color:#66778a!important;font-weight:800!important;line-height:1.05!important;margin-bottom:.2mm!important}
.id-card-page .id-front .sig-box img{display:block!important;width:23mm!important;height:4.8mm!important;object-fit:contain!important;margin:0 auto!important;background:transparent!important;border:0!important}
.id-card-page .id-front .sig-box b{font-size:4.2pt!important;color:#24415f!important;line-height:4.8mm!important}
.id-card-page .id-front .id-card-foot{height:5.3mm!important;padding:1mm 3.2mm!important;background:transparent!important;border-top:0!important;font-size:4.1pt!important;color:#173d70!important;display:flex!important;justify-content:space-between!important;align-items:center!important}
.id-card-page .id-front .id-card-foot b{color:#146b39!important;font-size:4.2pt!important}

@media print{
  .id-card-page .id-card-pair{width:85.6mm!important;max-width:85.6mm!important;gap:8mm!important}
  .id-card-page .id-front{width:85.6mm!important;height:54mm!important;max-width:85.6mm!important;min-height:54mm!important}
}

/* ===== Admin branding + recent activity ===== */
.branding-settings{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;padding:16px;border:1px solid #e4eaf3;border-radius:16px;background:linear-gradient(135deg,#fff7ec,#f8fbff 52%,#f0fbf3)}
.branding-settings>div:first-child,.branding-settings>div:nth-child(2),.branding-settings>div:nth-child(3),.branding-preview{min-width:0}
.branding-preview{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px dashed #cbd5e1;border-radius:12px;background:#fff}
.branding-preview img{width:64px;height:48px;object-fit:contain;border-radius:8px;background:transparent}
.branding-preview small{color:#64748b}
.recent-activity-panel{margin-top:18px}
.recent-activity-list{display:grid;gap:0}
.recent-activity-item{display:flex;align-items:flex-start;gap:12px;padding:13px 4px;border-bottom:1px solid #edf1f6;text-decoration:none;color:inherit;transition:.18s ease}
.recent-activity-item:last-child{border-bottom:0}
.recent-activity-item:hover{background:#f8fbff;border-radius:10px;padding-left:10px;padding-right:10px}
.recent-activity-dot{width:10px;height:10px;border-radius:50%;margin-top:6px;flex:0 0 auto;background:linear-gradient(135deg,#ff9933 0 33%,#fff 33% 66%,#138808 66%);border:1px solid #d9e2ec;box-shadow:0 0 0 4px #f6f9fc}
.recent-activity-item>div{flex:1;min-width:0}
.recent-activity-item b{display:block;font-size:13px;line-height:1.45;color:#213452;font-weight:700}
.recent-activity-item small{display:block;margin-top:4px;color:#7b8aa0;font-size:11px}
.recent-activity-arrow{font-size:22px;color:#94a3b8;line-height:1;margin-top:2px}
.empty-state{padding:24px;text-align:center;color:#7b8aa0}
.sidebar-head .brand img,.topbar-brand img,.mobile-brand img{object-fit:contain}
@media(max-width:700px){.branding-settings{grid-template-columns:1fr}.recent-activity-item b{font-size:12px}.recent-activity-item{gap:9px}}

/* === ID CARD FIT FIX — exact 85.6mm × 54mm front/back === */
.id-card-page .id-front,
.id-card-page .id-back{
  width:85.6mm!important;
  height:54mm!important;
  min-width:85.6mm!important;
  max-width:85.6mm!important;
  min-height:54mm!important;
  max-height:54mm!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.id-card-page .id-front .id-card-head{
  height:13.5mm!important;min-height:13.5mm!important;box-sizing:border-box!important;
  padding:2.4mm 3.2mm 1.2mm!important;
}
.id-card-page .id-front .id-brand{gap:1.4mm!important;padding-top:.4mm!important}
.id-card-page .id-front .id-brand img{width:9mm!important;height:9mm!important}
.id-card-page .id-front .id-brand b{font-size:6.8pt!important;line-height:1.02!important}
.id-card-page .id-front .id-brand small{font-size:4pt!important;margin-top:.5mm!important}
.id-card-page .id-front .id-member-head-text span{font-size:4pt!important}
.id-card-page .id-front .id-member-head-text strong{font-size:5.3pt!important;margin-top:.5mm!important}
.id-card-page .id-front .id-card-main{
  height:29mm!important;box-sizing:border-box!important;
  padding:2.2mm 3.2mm 1.2mm!important;
  grid-template-columns:20mm 1fr 16mm!important;gap:2.5mm!important;
  align-items:center!important;
}
.id-card-page .id-front .card-photo{width:20mm!important;height:24mm!important;box-sizing:border-box!important}
.id-card-page .id-front .id-name{margin-bottom:1mm!important;padding-bottom:.8mm!important}
.id-card-page .id-front .id-name strong{font-size:7.2pt!important}
.id-card-page .id-front .id-name small{font-size:3.9pt!important;margin-top:.5mm!important}
.id-card-page .id-front .id-row{padding:.75mm 0!important}
.id-card-page .id-front .id-row span{font-size:3.65pt!important}
.id-card-page .id-front .id-row b{font-size:4.7pt!important;max-width:59%!important}
.id-card-page .id-front .id-card-qr img{width:14.5mm!important;height:14.5mm!important}
.id-card-page .id-front .id-card-qr small{font-size:3.3pt!important}
.id-card-page .id-front .id-signatures{
  height:6.5mm!important;min-height:6.5mm!important;box-sizing:border-box!important;
  padding:0 3.2mm!important;gap:2.5mm!important;align-items:end!important;
}
.id-card-page .id-front .sig-box{min-height:5.8mm!important;height:5.8mm!important}
.id-card-page .id-front .sig-box span{font-size:3.25pt!important;line-height:1!important}
.id-card-page .id-front .sig-box img{width:21mm!important;height:4.2mm!important}
.id-card-page .id-front .sig-box b{font-size:3.8pt!important;line-height:4.2mm!important}
.id-card-page .id-front .id-card-foot{
  height:5mm!important;min-height:5mm!important;box-sizing:border-box!important;
  padding:1mm 3.2mm!important;font-size:3.9pt!important;
}
.id-card-page .id-back .id-back-head{
  height:9mm!important;min-height:9mm!important;box-sizing:border-box!important;
  padding:2.6mm 3.2mm!important;font-size:6.5pt!important;
}
.id-card-page .id-back .id-back-body{
  height:33mm!important;min-height:33mm!important;box-sizing:border-box!important;
  padding:2.4mm 3.2mm!important;grid-template-columns:18mm 1fr!important;gap:2.5mm!important;
}
.id-card-page .id-back .id-qr-box{width:17mm!important;height:17mm!important;box-sizing:border-box!important}
.id-card-page .id-back .id-qr-box img{width:15.5mm!important;height:15.5mm!important}
.id-card-page .id-back .id-qr-box small{font-size:3.5pt!important}
.id-card-page .id-back .id-back-body p{font-size:4.8pt!important;line-height:1.18!important;margin:0 0 1.2mm!important}
.id-card-page .id-back .id-back-body .id-row{padding:.75mm 0!important}
.id-card-page .id-back .id-back-body .id-row span{font-size:3.9pt!important}
.id-card-page .id-back .id-back-body .id-row b{font-size:4.8pt!important}
.id-card-page .id-back .id-signatures{
  height:7mm!important;min-height:7mm!important;box-sizing:border-box!important;
  padding:0 3.2mm!important;gap:2.5mm!important;align-items:end!important;
}
.id-card-page .id-back .sig-box{min-height:5.8mm!important;height:5.8mm!important}
.id-card-page .id-back .sig-box span{font-size:3.3pt!important}
.id-card-page .id-back .sig-box img{width:21mm!important;height:4.2mm!important}
.id-card-page .id-back .sig-box b{font-size:3.8pt!important;line-height:4.2mm!important}
.id-card-page .id-back .id-card-foot{
  height:5mm!important;min-height:5mm!important;box-sizing:border-box!important;
  padding:1mm 3.2mm!important;font-size:3.9pt!important;
}
@media print{
  .id-card-page .id-card-pair{width:85.6mm!important;max-width:85.6mm!important;gap:8mm!important}
  .id-card-page .id-front,.id-card-page .id-back{width:85.6mm!important;height:54mm!important;min-height:54mm!important;max-height:54mm!important}
}


/* === ID CARD LABEL/VALUE INLINE FIX === */
.id-card-page .id-front .id-details .id-row{
  display:flex!important;
  align-items:baseline!important;
  justify-content:flex-start!important;
  gap:1.2mm!important;
  padding:.72mm 0!important;
  border-bottom:.2mm solid #e1e5e9!important;
}
.id-card-page .id-front .id-details .id-row span{
  flex:0 0 auto!important;
  width:auto!important;
  max-width:56%!important;
  font-size:3.8pt!important;
  color:#667281!important;
  white-space:nowrap!important;
  text-transform:none!important;
  letter-spacing:0!important;
}
.id-card-page .id-front .id-details .id-row b{
  flex:1 1 auto!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  font-size:4.8pt!important;
  line-height:1.15!important;
  color:#17263d!important;
  text-align:left!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
@media print{
 .id-card-page .id-front .id-details .id-row{gap:1.2mm!important;padding:.72mm 0!important}
 .id-card-page .id-front .id-details .id-row span{font-size:3.8pt!important}
 .id-card-page .id-front .id-details .id-row b{font-size:4.8pt!important}
}

/* FINAL ID CARD INLINE LABEL + VALUE OVERRIDE */
.id-card-page .id-front .id-card-main .id-details{
  min-width:0!important;
  width:100%!important;
  display:block!important;
}
.id-card-page .id-front .id-card-main .id-details .id-row{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:baseline!important;
  justify-content:flex-start!important;
  width:100%!important;
  box-sizing:border-box!important;
  gap:1.4mm!important;
  padding:.82mm 0!important;
  border-bottom:.18mm solid #e4e8ed!important;
}
.id-card-page .id-front .id-card-main .id-details .id-row span{
  display:inline-block!important;
  flex:0 0 auto!important;
  width:auto!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  font-size:4.05pt!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  text-align:left!important;
  color:#68778a!important;
}
.id-card-page .id-front .id-card-main .id-details .id-row b{
  display:inline-block!important;
  flex:1 1 auto!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  font-size:5.35pt!important;
  line-height:1.12!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  text-align:left!important;
  color:#172d4b!important;
}
@media print{
  .id-card-page .id-front .id-card-main .id-details .id-row{display:flex!important;gap:1.4mm!important;padding:.82mm 0!important}
  .id-card-page .id-front .id-card-main .id-details .id-row span{font-size:4.05pt!important}
  .id-card-page .id-front .id-card-main .id-details .id-row b{font-size:5.35pt!important}
}

/* === FINAL SIGNATURE POSITION FIX === */
.id-card-page .id-front .id-card-main{
  height:27mm!important;
  min-height:27mm!important;
  max-height:27mm!important;
  padding:1.8mm 3.2mm 1mm!important;
  align-items:center!important;
}
.id-card-page .id-front .id-signatures{
  height:8.5mm!important;
  min-height:8.5mm!important;
  max-height:8.5mm!important;
  box-sizing:border-box!important;
  padding:0 3.2mm!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:3mm!important;
  align-items:start!important;
  background:#fff!important;
}
.id-card-page .id-front .sig-box{
  height:8mm!important;
  min-height:8mm!important;
  max-height:8mm!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  text-align:center!important;
  position:relative!important;
}
.id-card-page .id-front .sig-box span{
  order:1!important;
  display:block!important;
  height:2.8mm!important;
  margin:0 0 .2mm!important;
  font-size:3.25pt!important;
  line-height:1!important;
  white-space:nowrap!important;
  color:#66778a!important;
}
.id-card-page .id-front .sig-box img{
  order:2!important;
  display:block!important;
  width:21mm!important;
  height:4.2mm!important;
  margin:0 auto!important;
  object-fit:contain!important;
  object-position:center!important;
  background:transparent!important;
  border:0!important;
}
.id-card-page .id-front .sig-box b{
  order:2!important;
  display:block!important;
  height:4.2mm!important;
  margin:0!important;
  font-size:3.8pt!important;
  line-height:4.2mm!important;
  color:#24415f!important;
}
.id-card-page .id-front .id-card-foot{
  height:5mm!important;
  min-height:5mm!important;
  max-height:5mm!important;
  position:relative!important;
  z-index:3!important;
  box-sizing:border-box!important;
  padding:1mm 3.2mm!important;
}
@media print{
  .id-card-page .id-front .id-card-main{height:27mm!important;max-height:27mm!important}
  .id-card-page .id-front .id-signatures{height:8.5mm!important;max-height:8.5mm!important}
  .id-card-page .id-front .sig-box{height:8mm!important;max-height:8mm!important}
}

/* FINAL NOTICE MARQUEE FIX: CSS animation works even when JavaScript animation fails */
.notice-ticker .notice-viewport{position:relative;overflow:hidden;height:34px;display:block!important;flex:1;min-width:0}
.notice-ticker .notice-track{position:relative;width:100%;height:100%;overflow:hidden!important}
.notice-ticker .notice-slide{position:absolute!important;left:0!important;top:0!important;width:max-content!important;max-width:none!important;height:100%;display:flex!important;align-items:center!important;opacity:0!important;transform:translateX(100vw)!important;transition:none!important;white-space:nowrap!important;pointer-events:none!important}
.notice-ticker .notice-slide.active{opacity:1!important;pointer-events:auto!important;animation:gsNoticeMarquee 16s linear 0s infinite!important}
.notice-ticker .notice-slide span{display:block!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;max-width:none!important;font-size:14px!important;font-weight:800!important;letter-spacing:.05px!important}
@keyframes gsNoticeMarquee{
  0%{transform:translateX(100vw)!important}
  100%{transform:translateX(calc(-100% - 100vw))!important}
}
@media(max-width:600px){
 .notice-ticker .notice-viewport{height:36px}
 .notice-ticker .notice-slide span{font-size:13px!important}
 .notice-ticker .notice-slide.active{animation-duration:15s!important}
}


/* ===== FINAL NOTICE + ID CARD REBUILD ===== */
.notice-ticker .notice-viewport{position:relative!important;overflow:hidden!important;height:34px!important;display:block!important;flex:1 1 auto!important;min-width:0!important}
.notice-ticker .notice-track{position:relative!important;width:100%!important;height:100%!important;overflow:visible!important}
.notice-ticker .notice-slide{position:absolute!important;left:0!important;top:0!important;width:max-content!important;max-width:none!important;height:100%!important;display:flex!important;align-items:center!important;opacity:0!important;transform:translateX(100vw)!important;transition:none!important;white-space:nowrap!important;pointer-events:none!important}
.notice-ticker .notice-slide.active{opacity:1!important;pointer-events:auto!important;animation:gsNoticeContinuous 17.5s linear 0s infinite!important}
.notice-ticker .notice-slide span{display:block!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;max-width:none!important;font-size:14px!important;font-weight:800!important;color:#17324d!important;line-height:1.2!important}
@keyframes gsNoticeContinuous{0%{transform:translateX(100vw)}100%{transform:translateX(calc(-100% - 100vw))}}
@media(max-width:600px){
 .notice-ticker .notice-viewport{height:34px!important}
 .notice-ticker .notice-slide.active{animation-duration:14s!important}
 .notice-ticker .notice-slide span{font-size:13px!important}
}

/* Clean reference-style ID card: exact 85.6 x 54 mm when printed */
.id-card-page .id-card-pair{gap:7mm!important;align-items:center!important}
.id-card-page .id-card{width:85.6mm!important;height:54mm!important;min-width:85.6mm!important;max-width:85.6mm!important;min-height:54mm!important;max-height:54mm!important;box-sizing:border-box!important;overflow:hidden!important;border:.35mm solid #aeb8c4!important;border-radius:2.2mm!important;background:#fff!important;box-shadow:0 1.5mm 4mm rgba(20,45,75,.16)!important;position:relative!important}
.id-card-page .id-front .id-card-head{height:12.5mm!important;min-height:12.5mm!important;padding:1.8mm 3mm!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:2mm!important;position:relative!important;background:#fff!important;border:0!important;border-bottom:.25mm solid #d9dfe5!important}
.id-card-page .id-front .id-card-head:before{content:""!important;position:absolute!important;left:0!important;right:0!important;top:0!important;height:1.2mm!important;background:linear-gradient(90deg,#ff9933 0 33.33%,#fff 33.33% 66.66%,#138808 66.66% 100%)!important}
.id-card-page .id-front .id-brand{display:flex!important;align-items:center!important;gap:1.6mm!important;min-width:0!important;flex:1 1 auto!important;padding-top:.5mm!important}
.id-card-page .id-front .id-brand img{width:9mm!important;height:9mm!important;flex:0 0 9mm!important;object-fit:contain!important;background:transparent!important;border:0!important;border-radius:0!important}
.id-card-page .id-front .id-brand b{font-size:7.2pt!important;line-height:1.05!important;color:#182b43!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.id-card-page .id-front .id-brand small{font-size:4.2pt!important;line-height:1.1!important;color:#687587!important;margin-top:.7mm!important;white-space:nowrap!important}
.id-card-page .id-front .id-member-head{display:flex!important;align-items:center!important;flex:0 0 auto!important}
.id-card-page .id-front .id-member-head-text{text-align:right!important;line-height:1.05!important}
.id-card-page .id-front .id-member-head-text span{display:block!important;font-size:4pt!important;color:#687587!important;margin:0!important}
.id-card-page .id-front .id-member-head-text strong{display:block!important;font-size:7.2pt!important;color:#17263d!important;margin-top:.7mm!important;max-width:25mm!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.id-card-page .id-front .id-card-main{height:28mm!important;min-height:28mm!important;padding:2.2mm 3mm!important;box-sizing:border-box!important;display:grid!important;grid-template-columns:21mm 1fr 17mm!important;gap:2.5mm!important;align-items:center!important}
.id-card-page .id-front .card-photo{width:20mm!important;height:24mm!important;box-sizing:border-box!important;border:.3mm solid #aeb8c4!important;border-radius:1.2mm!important;overflow:hidden!important;background:#f4f6f8!important;display:grid!important;place-items:center!important}
.id-card-page .id-front .card-photo img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}
.id-card-page .id-front .card-photo span{font-size:20px!important}
.id-card-page .id-front .id-details{min-width:0!important;width:100%!important}
.id-card-page .id-front .id-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:1.5mm!important;padding:.75mm 0!important;border-bottom:.18mm solid #e0e5ea!important}
.id-card-page .id-front .id-row:last-child{border-bottom:0!important}
.id-card-page .id-front .id-row span{font-size:4pt!important;color:#687587!important;white-space:nowrap!important;letter-spacing:0!important;text-transform:none!important}
.id-card-page .id-front .id-row b{font-size:5.2pt!important;color:#17263d!important;text-align:right!important;max-width:58%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.id-card-page .id-front .id-card-qr{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:.6mm!important}
.id-card-page .id-front .id-card-qr .member-qr-img{width:15mm!important;height:15mm!important;border:.2mm solid #d1d7de!important;border-radius:.6mm!important;padding:.5mm!important;background:#fff!important}
.id-card-page .id-front .id-card-qr small{font-size:3.5pt!important;color:#536274!important;font-weight:800!important}
.id-card-page .id-front .id-signatures{height:8.5mm!important;min-height:8.5mm!important;box-sizing:border-box!important;padding:0 3mm!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:2.5mm!important;align-items:center!important}
.id-card-page .id-front .sig-box{height:7.5mm!important;min-height:7.5mm!important;box-sizing:border-box!important;padding:0!important;border:0!important;text-align:center!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-end!important}
.id-card-page .id-front .sig-box span{display:block!important;font-size:3.35pt!important;line-height:1!important;color:#687587!important;margin:0 0 .5mm!important;white-space:nowrap!important}
.id-card-page .id-front .sig-box img{display:block!important;width:22mm!important;height:4.5mm!important;object-fit:contain!important;margin:0 auto!important;background:transparent!important;border:0!important}
.id-card-page .id-front .sig-box b{display:block!important;font-size:3.7pt!important;line-height:4.2mm!important;color:#24415f!important;margin:0!important}
.id-card-page .id-front .id-card-foot{height:5mm!important;min-height:5mm!important;max-height:5mm!important;box-sizing:border-box!important;padding:1mm 3mm!important;display:flex!important;align-items:center!important;justify-content:space-between!important;position:relative!important;background:#f8fafc!important;border:0!important;font-size:4pt!important;color:#667281!important}
.id-card-page .id-front .id-card-foot:after{content:""!important;position:absolute!important;left:0!important;right:0!important;bottom:0!important;height:1.1mm!important;background:linear-gradient(90deg,#ff9933 0 33.33%,#fff 33.33% 66.66%,#138808 66.66% 100%)!important}
.id-card-page .id-back .id-back-head{height:12.5mm!important;min-height:12.5mm!important;box-sizing:border-box!important;padding:1.8mm 3mm!important;display:flex!important;align-items:center!important;background:linear-gradient(90deg,#ff9933 0%,#f7a21a 28%,#fff 48%,#f7f7f7 67%,#20a34a 100%)!important;border:0!important;border-bottom:.25mm solid #d5dde6!important;color:#172b43!important;font-size:6.7pt!important;font-weight:800!important;position:relative!important;overflow:hidden!important}
.id-card-page .id-back .id-back-head:before{content:""!important;position:absolute!important;left:0!important;right:0!important;top:0!important;height:1.2mm!important;background:linear-gradient(90deg,#ff9933 0 33.33%,#fff 33.33% 66.66%,#138808 66.66% 100%)!important}
.id-card-page .id-back .id-back-head:after{content:""!important;position:absolute!important;left:0!important;right:0!important;bottom:0!important;height:.8mm!important;background:linear-gradient(90deg,#ff9933 0 33.33%,#fff 33.33% 66.66%,#138808 66.66% 100%)!important;opacity:.95!important}
.id-card-page .id-back .id-back-body{height:31mm!important;box-sizing:border-box!important;display:grid!important;grid-template-columns:18mm 1fr!important;gap:3mm!important;padding:2.8mm 3mm!important}
.id-card-page .id-back .id-qr-box{width:17mm!important;height:17mm!important;box-sizing:border-box!important;border:.2mm solid #d1d7de!important;border-radius:.7mm!important;background:#fff!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:.5mm!important}
.id-card-page .id-back .id-qr-box .member-qr-img,.id-card-page .id-back .id-qr-box .member-qr-back{width:14mm!important;height:14mm!important;object-fit:contain!important}
.id-card-page .id-back .id-qr-box small{font-size:3.4pt!important;color:#687587!important}
.id-card-page .id-back .id-back-body p{font-size:4.8pt!important;line-height:1.25!important;color:#344255!important;margin:0 0 1mm!important}
.id-card-page .id-back .id-row{display:flex!important;justify-content:space-between!important;gap:1.5mm!important;padding:.75mm 0!important;border-bottom:.18mm solid #e0e5ea!important}
.id-card-page .id-back .id-row span{font-size:3.8pt!important;color:#687587!important}
.id-card-page .id-back .id-row b{font-size:4.8pt!important;color:#17263d!important;max-width:62%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-align:right!important}
.id-card-page .id-back .id-signatures{height:8.5mm!important;box-sizing:border-box!important;padding:0 3mm!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:2.5mm!important;align-items:center!important}
.id-card-page .id-back .sig-box{height:7.5mm!important;box-sizing:border-box!important;padding:0!important;border:0!important;text-align:center!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-end!important}
.id-card-page .id-back .sig-box span{font-size:3.3pt!important;line-height:1!important;color:#687587!important;margin-bottom:.5mm!important}
.id-card-page .id-back .sig-box img{width:22mm!important;height:4.5mm!important;object-fit:contain!important;background:transparent!important;border:0!important;margin:0 auto!important}
.id-card-page .id-back .sig-box b{font-size:3.7pt!important;line-height:4.2mm!important;color:#24415f!important}
.id-card-page .id-back .id-card-foot{height:5mm!important;box-sizing:border-box!important;padding:1mm 3mm!important;display:flex!important;align-items:center!important;justify-content:space-between!important;background:#f8fafc!important;border:0!important;font-size:4pt!important;color:#667281!important;position:relative!important}
.id-card-page .id-back .id-card-foot:after{content:""!important;position:absolute!important;left:0!important;right:0!important;bottom:0!important;height:1.1mm!important;background:linear-gradient(90deg,#ff9933 0 33.33%,#fff 33.33% 66.66%,#138808 66.66% 100%)!important}
@media(max-width:500px){.id-card-page .id-card{box-shadow:none!important}.id-card-page .id-card-pair{gap:5mm!important}}
@media print{
 @page{size:A4 portrait;margin:10mm}
 .id-card-page .id-card-actions,.id-card-page .id-print-note{display:none!important}
 .id-card-page .id-card{box-shadow:none!important;break-inside:avoid!important;page-break-inside:avoid!important}
}

/* GUARANTEED NOTICE VISIBILITY */
.notice-ticker{display:flex!important;visibility:visible!important;opacity:1!important;min-height:48px!important;}
.notice-ticker .notice-viewport{display:block!important;visibility:visible!important;opacity:1!important;}
.notice-ticker .notice-slide.active{display:flex!important;visibility:visible!important;}


/* NOTICE VISIBILITY FIX V4 */
.notice-ticker .notice-viewport{position:relative!important;overflow:hidden!important;height:34px!important;display:flex!important;align-items:center!important;flex:1 1 auto!important;min-width:0!important;}
.notice-ticker .notice-track{position:relative!important;width:100%!important;height:34px!important;overflow:hidden!important;}
.notice-ticker .notice-slide{position:absolute!important;left:0!important;top:0!important;width:100%!important;max-width:100%!important;height:34px!important;display:flex!important;align-items:center!important;opacity:0!important;transform:none!important;visibility:hidden!important;transition:none!important;white-space:nowrap!important;pointer-events:none!important;}
.notice-ticker .notice-slide.active{display:flex!important;opacity:1!important;visibility:visible!important;transform:none!important;animation:none!important;pointer-events:auto!important;}
.notice-ticker .notice-slide span{display:block!important;width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:clip!important;color:#17324d!important;font-size:14px!important;font-weight:800!important;line-height:1.3!important;}
@media(max-width:700px){.notice-ticker .notice-slide span{font-size:13px!important;}}

/* ===== Member ID Card reference-style colour finish ===== */
.id-card-page .id-card{
  background:
    radial-gradient(120% 90% at 100% 100%, rgba(30,136,229,.10), transparent 52%),
    radial-gradient(95% 85% at 0% 0%, rgba(255,153,0,.09), transparent 48%),
    #f7fafc !important;
  border:0.35mm solid #b8c6d5 !important;
  overflow:hidden !important;
}
.id-card-page .id-card:before{
  content:"";position:absolute;inset:0;pointer-events:none;z-index:0;
  background:
    radial-gradient(90% 45% at 5% 108%, transparent 57%, rgba(255,153,0,.92) 58%, rgba(255,153,0,.92) 61%, transparent 62%),
    radial-gradient(100% 55% at 90% 110%, transparent 58%, rgba(19,136,8,.90) 59%, rgba(19,136,8,.90) 62%, transparent 63%),
    linear-gradient(135deg, transparent 0 73%, rgba(35,117,190,.06) 73% 100%);
}
.id-card-page .id-card > *{position:relative;z-index:1}
.id-card-page .id-card-head{
  background:
    linear-gradient(90deg,#f59a19 0 34%,#ffffff 34% 67%,#20a34a 67% 100%) top/100% 1.5mm no-repeat,
    linear-gradient(180deg,#ffffff,#f1f6fa) !important;
  border-bottom:0.25mm solid #d5dde6 !important;
}
.id-card-page .id-brand b{color:#173b63 !important}
.id-card-page .id-brand small{color:#31577e !important}
.id-card-page .id-member-head-text span{color:#65788d !important}
.id-card-page .id-member-head-text strong{color:#173b63 !important}
.id-card-page .id-card-main{background:linear-gradient(90deg,rgba(255,255,255,.92),rgba(241,247,252,.72)) !important}
.id-card-page .id-photo{
  background:linear-gradient(145deg,#e8eef5,#ffffff) !important;
  border:0.45mm solid #aab9c8 !important;
  box-shadow:0 1px 4px rgba(31,57,80,.12) !important;
}
.id-card-page .id-details .id-row{border-bottom:1px solid rgba(145,160,177,.35) !important}
.id-card-page .id-details .id-row span{color:#60758a !important}
.id-card-page .id-details .id-row b{color:#203d5a !important}
.id-card-page .id-card-qr{color:#4e657b !important}
.id-card-page .id-signatures{background:rgba(255,255,255,.55) !important}
.id-card-page .id-signatures .sig-box span{color:#526d83 !important}
.id-card-page .id-card-foot{
  background:linear-gradient(90deg,#138808 0 38%,#f6a21a 38% 63%,#138808 63% 100%) !important;
  color:#ffffff !important;
  border-top:0.25mm solid rgba(255,255,255,.7) !important;
}
.id-card-page .id-card-foot b{color:#ffffff !important}
.id-card-page .id-card-foot:after{content:"";position:absolute;left:0;right:0;bottom:0;height:0.9mm;background:linear-gradient(90deg,#138808 0 33%,#ffffff 33% 66%,#ff8c00 66% 100%);opacity:.85}
.quick-notification-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#d92d20;color:#fff;font-size:11px;font-weight:800;margin-left:6px}

/* ===== Member ID Card reference-style colour finish ===== */
.id-card-page .id-card{background:radial-gradient(120% 90% at 100% 100%,rgba(30,136,229,.10),transparent 52%),radial-gradient(95% 85% at 0% 0%,rgba(255,153,0,.09),transparent 48%),#f7fafc!important;border:0.35mm solid #b8c6d5!important;overflow:hidden!important}
.id-card-page .id-card:before{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;background:radial-gradient(90% 45% at 5% 108%,transparent 57%,rgba(255,153,0,.92) 58%,rgba(255,153,0,.92) 61%,transparent 62%),radial-gradient(100% 55% at 90% 110%,transparent 58%,rgba(19,136,8,.90) 59%,rgba(19,136,8,.90) 62%,transparent 63%),linear-gradient(135deg,transparent 0 73%,rgba(35,117,190,.06) 73% 100%)}
.id-card-page .id-card>*{position:relative;z-index:1}.id-card-page .id-card-head{background:linear-gradient(90deg,#f59a19 0 34%,#fff 34% 67%,#20a34a 67% 100%) top/100% 1.5mm no-repeat,linear-gradient(180deg,#fff,#f1f6fa)!important;border-bottom:.25mm solid #d5dde6!important}.id-card-page .id-brand b{color:#173b63!important}.id-card-page .id-brand small{color:#31577e!important}.id-card-page .id-member-head-text span{color:#65788d!important}.id-card-page .id-member-head-text strong{color:#173b63!important}.id-card-page .id-card-main{background:linear-gradient(90deg,rgba(255,255,255,.92),rgba(241,247,252,.72))!important}.id-card-page .id-photo{background:linear-gradient(145deg,#e8eef5,#fff)!important;border:.45mm solid #aab9c8!important;box-shadow:0 1px 4px rgba(31,57,80,.12)!important}.id-card-page .id-details .id-row{border-bottom:1px solid rgba(145,160,177,.35)!important}.id-card-page .id-details .id-row span{color:#60758a!important}.id-card-page .id-details .id-row b{color:#203d5a!important}.id-card-page .id-card-qr{color:#4e657b!important}.id-card-page .id-signatures{background:rgba(255,255,255,.55)!important}.id-card-page .id-signatures .sig-box span{color:#526d83!important}.id-card-page .id-card-foot{background:linear-gradient(90deg,#138808 0 38%,#f6a21a 38% 63%,#138808 63% 100%)!important;color:#fff!important;border-top:.25mm solid rgba(255,255,255,.7)!important}.id-card-page .id-card-foot b{color:#fff!important}.quick-notification-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#d92d20;color:#fff;font-size:11px;font-weight:800;margin-left:6px}

/* FINAL PRINT CLEANUP: never print the dashboard notice bar/ticker */
@media print {
  .notice-bar,
  .notice-ticker,
  div.notice-bar,
  div.notice-ticker,
  [aria-label="सूचना"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
}
/* FINAL NOTICE TICKER: one notice at a time, slow right-to-left movement */
.notice-ticker{display:flex!important;align-items:center!important;visibility:visible!important;opacity:1!important;overflow:hidden!important;min-height:52px!important;}
.notice-ticker .notice-viewport{position:relative!important;display:block!important;overflow:hidden!important;flex:1 1 auto!important;min-width:0!important;height:40px!important;}
.notice-ticker .notice-track{position:relative!important;width:100%!important;height:40px!important;overflow:hidden!important;}
.notice-ticker .notice-slide{position:absolute!important;left:0!important;top:0!important;width:max-content!important;max-width:none!important;height:40px!important;display:flex!important;align-items:center!important;opacity:0!important;visibility:hidden!important;transform:translateX(100vw)!important;white-space:nowrap!important;pointer-events:none!important;}
.notice-ticker .notice-slide.active{opacity:1!important;visibility:visible!important;display:flex!important;animation:gsNoticeOneByOne 22s linear 0s 1 forwards!important;pointer-events:auto!important;}
.notice-ticker .notice-slide span{display:block!important;width:max-content!important;max-width:none!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;color:#17324d!important;font-size:15px!important;font-weight:800!important;line-height:1.3!important;}
@keyframes gsNoticeOneByOne{0%{transform:translateX(100vw)}100%{transform:translateX(calc(-100% - 40px))}}
.notice-dots{flex:0 0 auto!important;display:flex!important;gap:4px!important;margin-left:8px!important;}
.notice-dot{width:7px!important;height:7px!important;padding:0!important;border:0!important;border-radius:50%!important;background:#cbd5e1!important;}
.notice-dot.active{background:#138808!important;}
@media(max-width:800px){.notice-ticker .notice-slide span{font-size:13px!important}.notice-ticker .notice-viewport,.notice-ticker .notice-track,.notice-ticker .notice-slide{height:36px!important}.notice-ticker .notice-slide.active{animation-duration:22s!important}}
/* Members: one Modify Details button replaces separate profile-edit buttons */
.admin-member-actions .btn.primary{background:#1677ff!important;color:#fff!important;border-color:#1677ff!important}


/* ===== FINAL PATCH: WORKING SLOW NOTICE SCROLL ===== */
.notice-ticker .notice-viewport{
  position:relative!important;
  display:block!important;
  overflow:hidden!important;
  flex:1 1 auto!important;
  min-width:0!important;
  height:40px!important;
}
.notice-ticker .notice-track{
  position:relative!important;
  width:100%!important;
  height:40px!important;
  overflow:hidden!important;
}
.notice-ticker .notice-slide{
  position:absolute!important;
  left:0!important;
  top:0!important;
  width:max-content!important;
  max-width:none!important;
  height:40px!important;
  display:flex!important;
  align-items:center!important;
  opacity:0!important;
  visibility:hidden!important;
  transform:translateX(100%)!important;
  white-space:nowrap!important;
  pointer-events:none!important;
}
.notice-ticker .notice-slide.active{
  display:flex!important;
  opacity:1!important;
  visibility:visible!important;
  animation:gsNoticeWorking 22s linear infinite!important;
  pointer-events:auto!important;
}
.notice-ticker .notice-slide span{
  display:block!important;
  width:max-content!important;
  max-width:none!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  font-size:15px!important;
  font-weight:800!important;
  line-height:40px!important;
}
@keyframes gsNoticeWorking{
  0%{transform:translateX(100vw)!important}
  100%{transform:translateX(calc(-100% - 40px))!important}
}
@media(max-width:700px){
  .notice-ticker .notice-viewport,
  .notice-ticker .notice-track,
  .notice-ticker .notice-slide{height:36px!important}
  .notice-ticker .notice-slide span{font-size:13px!important;line-height:36px!important}
  .notice-ticker .notice-slide.active{animation-duration:18s!important}
}

/* ===== DEFINITIVE NOTICE MOVE ON/OFF - FIXED ===== */
.notice-ticker.notice-moving .notice-slide.active{
  animation: gsNoticeDefinitive var(--notice-duration,35s) linear infinite !important;
  transform: translateX(100vw);
  will-change: transform;
}
.notice-ticker.notice-static .notice-slide.active{
  animation: none !important;
  transform: translateX(0);
}
.notice-ticker.notice-static .notice-slide.active span{
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  max-width:100%!important;
}
@keyframes gsNoticeDefinitive{
  0%{transform:translateX(100vw)}
  100%{transform:translateX(calc(-100% - 40px))}
}

/* ===== NOTICE JS MOVEMENT OVERRIDE ===== */
.notice-ticker .notice-slide,
.notice-ticker .notice-slide.active{
  animation:none!important;
  transition:none!important;
  width:max-content!important;
  max-width:none!important;
  white-space:nowrap!important;
  will-change:transform!important;
}
.notice-ticker .notice-slide.active{
  opacity:1!important;
  visibility:visible!important;
  display:flex!important;
}
.notice-ticker .notice-slide:not(.active){
  opacity:0!important;
  visibility:hidden!important;
}

/* ===== RECEIPT EXACT SCREENSHOT STYLE OVERRIDE ===== */
.receipt-page{background:#f7f7fb!important;max-width:760px!important;margin:0 auto!important;padding:18px!important}
.payment-receipt{width:min(560px,100%)!important;max-width:560px!important;margin:0 auto!important;background:#fff!important;border:1px solid #d8e0ea!important;border-radius:20px!important;box-shadow:0 16px 45px rgba(20,40,70,.12)!important;overflow:hidden!important}
.receipt-screenshot-head{display:flex!important;align-items:center!important;gap:14px!important;padding:17px 18px 15px!important;background:linear-gradient(105deg,#ff9b2f 0%,#fff7ed 30%,#fff 52%,#eef9ef 70%,#2fa44f 100%)!important;color:#172033!important;border-top:6px solid #ff9b2f!important;border-bottom:6px solid #138a22!important}
.receipt-screenshot-head .receipt-logo{width:58px!important;height:58px!important;object-fit:contain!important;background:#fff!important;border:1px solid rgba(255,255,255,.95)!important;border-radius:12px!important;padding:5px!important}
.receipt-screenshot-head h1{color:#172033!important;margin:4px 0 2px!important;font-size:20px!important;line-height:1.15!important}
.receipt-screenshot-head p{color:#26364c!important;margin:0!important;font-size:10px!important;opacity:.84!important}
.receipt-status{margin:14px 18px 0!important;padding:10px 12px!important;border-radius:11px!important;background:#e9f8ef!important;color:#18724b!important;font-size:10px!important;font-weight:900!important;text-align:center!important;border:1px solid #ccebd9!important}
.receipt-title{padding:16px 18px 8px!important}.receipt-title h2{font-size:22px!important;color:#17304f!important}.receipt-title span,.receipt-title small{color:#718096!important}
.receipt-grid{margin:0 18px!important;border:1px solid #e1e7ee!important;border-radius:14px!important;overflow:hidden!important;background:#fff!important}
.receipt-grid>div{padding:12px 14px!important;border-bottom:1px solid #e8edf3!important}
.receipt-grid small{color:#7d8998!important;font-size:9px!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.4px!important}
.receipt-grid b{color:#203552!important;font-size:12px!important;margin-top:4px!important}
.receipt-amount{margin:16px 18px!important;padding:14px 16px!important;border-radius:13px!important;background:#f4f7fd!important}.receipt-amount strong{font-size:23px!important;color:#1767d2!important}
.receipt-note{margin:0 18px 16px!important;padding:11px 12px!important;border-left:3px solid #4f8ee8!important;background:#f8fbff!important;color:#718096!important;font-size:10px!important;line-height:1.55!important}
.receipt-foot{padding:12px!important;background:#f2f5f9!important;color:#8793a5!important;font-size:9px!important;text-align:center!important}
@media(max-width:560px){.receipt-page{padding:8px!important}.payment-receipt{width:100%!important}.receipt-screenshot-head{padding:15px!important;gap:10px!important}.receipt-screenshot-head .receipt-logo{width:52px!important;height:52px!important}.receipt-screenshot-head h1{font-size:17px!important}.receipt-status{margin:12px 14px 0!important}.receipt-grid{margin:0 14px!important}.receipt-amount,.receipt-note{margin-left:14px!important;margin-right:14px!important}}

/* ===== WhatsApp Center + Settings future-proof UI ===== */
.settings-tabs{display:flex;gap:8px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);padding:8px;border-radius:16px;box-shadow:var(--shadow);margin-bottom:18px}
.settings-tabs a{display:inline-flex;align-items:center;justify-content:center;padding:11px 15px;border-radius:11px;color:#4c5e78;font-weight:850;font-size:13px;border:1px solid transparent}
.settings-tabs a:hover{background:#f5f8fd;color:#125fc8}.settings-tabs a.active{background:#0d63d8;color:#fff;box-shadow:0 8px 20px rgba(13,99,216,.18)}
.settings-mode-card{background:linear-gradient(135deg,#eef6ff,#f7fbff);border:1px solid #d9e8ff;border-radius:14px;padding:14px;margin-bottom:14px}.settings-mode-card b{color:#0b4e9d}.settings-mode-card p{margin:5px 0 0;font-size:12px}
.wa-center-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}.wa-center-tabs .btn{border-radius:12px}.whatsapp-kpis{grid-template-columns:repeat(5,1fr)}
.wa-live-inbox{display:grid;grid-template-columns:330px minmax(0,1fr);height:680px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);overflow:hidden}
.wa-inbox-sidebar{border-right:1px solid #e6ebf2;display:flex;flex-direction:column;min-width:0;background:#fff}.wa-inbox-head{display:flex;align-items:center;justify-content:space-between;padding:17px 16px;border-bottom:1px solid #edf0f4}.wa-inbox-head b{display:block;font-size:18px;color:#173052}.wa-inbox-head small{display:block;color:#8a96a9;font-size:10px;margin-top:3px}.wa-inbox-search{padding:10px;border-bottom:1px solid #edf0f4}.wa-inbox-search input{background:#f5f7fa;border-color:#edf0f4;border-radius:10px;padding:10px 12px}.wa-conversation-list{overflow:auto;flex:1}.wa-conversation{display:flex;gap:11px;padding:13px 12px;border-bottom:1px solid #f0f2f6;color:#263752;transition:.15s;background:#fff}.wa-conversation:hover{background:#f5f9ff}.wa-conversation.active{background:#edf5ff;box-shadow:inset 3px 0 0 #1477ff}.wa-avatar{width:42px;height:42px;flex:0 0 42px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#dcecff,#edf7ef);color:#1765ba;font-weight:900}.wa-avatar.big{width:44px;height:44px;flex-basis:44px}.wa-conv-body{min-width:0;flex:1}.wa-conv-top,.wa-conv-bottom{display:flex;justify-content:space-between;gap:8px;align-items:center}.wa-conv-top b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wa-conv-top small{font-size:9px;color:#8793a6;white-space:nowrap}.wa-conv-bottom span{font-size:11px;color:#7a8799;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wa-conv-bottom i{font-style:normal;min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:#19b66b;color:#fff;font-size:9px;display:grid;place-items:center}.wa-empty{display:grid;place-items:center;min-height:180px;text-align:center;color:#8b97a8;font-size:12px;padding:30px}.wa-inbox-chat{display:flex;flex-direction:column;min-width:0;background:#f5f8fb}.wa-chat-header{display:flex;align-items:center;gap:11px;padding:12px 16px;background:#fff;border-bottom:1px solid #e7ecf2}.wa-chat-header b{display:block;font-size:14px;color:#173052}.wa-chat-header small{display:block;color:#8a96a9;font-size:10px;margin-top:3px}.wa-chat-status{margin-left:auto;color:#1aa667;font-size:10px;font-weight:800}.wa-message-scroll{flex:1;overflow:auto;padding:22px 24px;background:radial-gradient(circle at 20% 10%,rgba(0,132,255,.04),transparent 30%),#eef3f7}.wa-bubble-row{display:flex;margin:6px 0}.wa-bubble-row.inbound{justify-content:flex-start}.wa-bubble-row.outbound{justify-content:flex-end}.wa-bubble{max-width:min(75%,560px);padding:9px 11px;border-radius:12px;box-shadow:0 2px 7px rgba(20,50,90,.05);border:1px solid rgba(20,50,90,.05)}.wa-bubble.in{background:#fff;border-top-left-radius:4px}.wa-bubble.out{background:#dcffc9;border-top-right-radius:4px}.wa-sender{font-size:10px;color:#2b6b9e;font-weight:800;margin-bottom:3px}.wa-text{font-size:13px;line-height:1.45;color:#26384f;word-break:break-word}.wa-meta{text-align:right;font-size:8px;color:#8b97a8;margin-top:5px}.wa-meta span{margin-left:5px;color:#5c8c6b}.wa-media{display:block;max-width:310px;max-height:310px;border-radius:9px;margin-top:6px}.wa-compose{display:flex;gap:8px;padding:10px;background:#fff;border-top:1px solid #e5eaf0;align-items:end}.wa-compose textarea{min-height:48px;max-height:120px;resize:vertical;background:#f8fafc;border-color:#e2e8f0}.wa-compose .btn{height:48px;min-width:82px}.wa-center-footer-note{margin-top:10px;padding:10px 12px;background:#fff;border:1px solid var(--line);border-radius:10px;color:#718096;font-size:10px;word-break:break-all}
@media(max-width:1050px){.whatsapp-kpis{grid-template-columns:repeat(3,1fr)}.wa-live-inbox{grid-template-columns:280px minmax(0,1fr)}}
@media(max-width:850px){.whatsapp-kpis{grid-template-columns:repeat(2,1fr)}.settings-tabs{overflow:auto;flex-wrap:nowrap}.settings-tabs a{white-space:nowrap}.wa-live-inbox{grid-template-columns:1fr;height:auto;min-height:700px}.wa-inbox-sidebar{border-right:0;border-bottom:1px solid #e6ebf2;max-height:300px}.wa-inbox-chat{min-height:500px}.wa-message-scroll{min-height:360px;padding:14px}.wa-bubble{max-width:86%}.wa-compose{position:sticky;bottom:0}.wa-center-tabs{overflow:auto;flex-wrap:nowrap;padding-bottom:2px}.wa-center-tabs .btn{white-space:nowrap}.wa-center-footer-note{font-size:9px}}
@media(max-width:560px){.whatsapp-kpis{grid-template-columns:1fr 1fr}.wa-inbox-sidebar{max-height:260px}.wa-chat-header{padding:10px}.wa-chat-status{display:none}.wa-message-scroll{min-height:360px}.wa-compose textarea{font-size:12px}.wa-compose .btn{min-width:64px;padding:9px}.wa-media{max-width:240px;max-height:240px}}
.footer-legal-links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:8px}.footer-legal-links a{color:inherit;text-decoration:none;font-size:12px;opacity:.9}.footer-legal-links a:hover{text-decoration:underline;opacity:1}

/* ===== FINAL MOBILE FULL-WIDTH REPAIR ===== */
html,body{width:100%;max-width:100%;min-width:0;overflow-x:hidden}
@media(max-width:850px){
  .app,.main,.page,.topbar,footer{width:100%!important;max-width:none!important;min-width:0!important}
  .main{margin-left:0!important}
  .page{box-sizing:border-box!important}
  .topbar{box-sizing:border-box!important}
  .panel,.hero,.kpi,.pay-card,.grid-2,.grid-3,.settings-tabs,.wa-live-inbox{max-width:100%!important;min-width:0!important}
  img,video,iframe{max-width:100%;height:auto}
  input,select,textarea,button{max-width:100%}
  .table-wrap{max-width:100%;overflow-x:auto}
}
@media(max-width:560px){
  .page{padding-left:10px!important;padding-right:10px!important}
  .panel{width:100%!important}
}


/* ===== Mobile overflow repair: tables, member summary, calling logs, reports ===== */
html,body{max-width:100%;overflow-x:hidden}
.table-wrap{max-width:100%;min-width:0}
.panel,.wa-card,.hero,.page-title,.grid-2,.grid-3,.kpis,.settings-grid,.profile-grid{min-width:0}
.btn{max-width:100%;white-space:normal;text-align:center}
@media(max-width:600px){
  .page{width:100%;max-width:100%;overflow-x:hidden}
  .table-wrap{overflow:visible;margin:0;padding:0}
  .table-wrap table.mobile-card-table{display:block;width:100%;min-width:0;border-collapse:separate;border-spacing:0}
  .table-wrap table.mobile-card-table thead{display:none}
  .table-wrap table.mobile-card-table tbody{display:block;width:100%}
  .table-wrap table.mobile-card-table tr{display:block;width:100%;margin:0 0 10px;padding:10px 11px;background:#fff;border:1px solid #e5eaf2;border-radius:12px;box-shadow:0 5px 15px rgba(15,45,85,.05)}
  .table-wrap table.mobile-card-table td{display:grid;grid-template-columns:minmax(88px,38%) minmax(0,1fr);gap:8px;align-items:start;width:100%;min-width:0;padding:7px 0;border-bottom:1px solid #edf0f5;font-size:12px;overflow-wrap:anywhere;word-break:break-word}
  .table-wrap table.mobile-card-table td:last-child{border-bottom:0}
  .table-wrap table.mobile-card-table td::before{content:attr(data-label);font-size:9px;font-weight:800;color:#718096;text-transform:uppercase;letter-spacing:.45px;line-height:1.35}
  .table-wrap table.mobile-card-table td[colspan]{display:block;text-align:center;padding:12px 4px}
  .table-wrap table.mobile-card-table td[colspan]::before{display:none}
  .table-wrap table.mobile-card-table td .inline-form{width:100%;gap:6px;margin-top:0}
  .table-wrap table.mobile-card-table td .inline-form .btn{flex:1;min-width:0}
  .table-wrap table.mobile-card-table td form{max-width:100%}
  .table-wrap table.mobile-card-table td input,.table-wrap table.mobile-card-table td select{min-width:0;max-width:100%}
  .table-wrap table.mobile-card-table .emi-summary-modern{min-width:0;overflow-wrap:anywhere}
  .table-wrap table.mobile-card-table .badge{white-space:normal}
  .table-wrap table.mobile-card-table td img{max-width:100%;height:auto}
  .table-wrap table.mobile-card-table.doc-table{display:table;min-width:560px}
  .table-wrap:has(table:not(.mobile-card-table)) {overflow-x:auto}
  .panel-head{flex-wrap:wrap}
  .panel-head h2{min-width:0;overflow-wrap:anywhere}
  .search-inline,.inline-form{max-width:100%}
  .inline-form>*{max-width:100%}
}
@media(max-width:380px){
  .table-wrap table.mobile-card-table td{grid-template-columns:78px minmax(0,1fr);font-size:11px}
  .table-wrap table.mobile-card-table td::before{font-size:8px}
}


/* ===== MEMBER CLOSE + ID CARD FINAL RESPONSIVE REPAIR ===== */
.member-close-nav{color:#b42318!important;font-weight:800!important}
.member-close-nav:hover{background:#fff1f0!important;color:#9f1c12!important}
.profile-actions{justify-content:flex-end;flex-wrap:wrap}
@media(max-width:600px){
  .profile-actions{width:100%;justify-content:stretch}
  .profile-actions .btn{flex:1;min-width:0}
}

/* Keep ID card compact, readable and inside the viewport on every phone. */
.id-card-page{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;overflow-x:hidden!important;padding:14px 8px 24px!important;background:#f3f6fb!important}
.id-card-page .id-card-actions{width:min(430px,100%)!important;max-width:100%!important;box-sizing:border-box!important;display:flex!important;gap:8px!important;flex-wrap:wrap!important}
.id-card-page .id-card-actions .btn{min-width:0!important;flex:1 1 150px!important}
.id-card-page .id-card-pair{width:100%!important;max-width:100%!important;min-width:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:14px!important}
.id-card-page .id-card{width:min(430px,100%)!important;max-width:430px!important;min-width:0!important;height:auto!important;min-height:0!important;box-sizing:border-box!important;overflow:hidden!important}
.id-card-page .id-front .id-card-head{height:auto!important;min-height:74px!important;padding:14px 14px 12px!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;gap:10px!important}
.id-card-page .id-front .id-brand{min-width:0!important;overflow:hidden!important}
.id-card-page .id-front .id-brand img{width:44px!important;height:44px!important;flex:0 0 44px!important}
.id-card-page .id-front .id-brand b{font-size:14px!important;line-height:1.15!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
.id-card-page .id-front .id-brand small{font-size:9px!important;white-space:normal!important}
.id-card-page .id-front .id-member-head{flex:0 0 auto!important}
.id-card-page .id-front .id-member-head-text span{font-size:8px!important}
.id-card-page .id-front .id-member-head-text strong{font-size:15px!important;max-width:110px!important}
.id-card-page .id-front .id-card-main{height:auto!important;min-height:150px!important;max-height:none!important;padding:14px!important;display:grid!important;grid-template-columns:82px minmax(0,1fr) 64px!important;gap:10px!important;align-items:center!important;box-sizing:border-box!important}
.id-card-page .id-front .card-photo{width:82px!important;height:102px!important;border-radius:8px!important}
.id-card-page .id-front .id-details{min-width:0!important;overflow:hidden!important}
.id-card-page .id-front .id-details .id-row{width:100%!important;display:flex!important;align-items:flex-start!important;gap:5px!important;padding:5px 0!important;box-sizing:border-box!important}
.id-card-page .id-front .id-details .id-row span{font-size:8px!important;line-height:1.25!important;white-space:normal!important;flex:0 0 auto!important;max-width:48%!important}
.id-card-page .id-front .id-details .id-row b{font-size:10px!important;line-height:1.25!important;white-space:normal!important;overflow-wrap:anywhere!important;text-overflow:clip!important;max-width:none!important;text-align:left!important}
.id-card-page .id-front .id-card-qr{min-width:0!important}
.id-card-page .id-front .id-card-qr .member-qr-img{width:58px!important;height:58px!important}
.id-card-page .id-front .id-card-qr small{font-size:7px!important}
.id-card-page .id-front .id-signatures{height:auto!important;min-height:58px!important;padding:6px 14px!important;gap:10px!important}
.id-card-page .id-front .sig-box{height:48px!important;min-height:48px!important}
.id-card-page .id-front .sig-box span{font-size:7px!important}
.id-card-page .id-front .sig-box img{width:75px!important;height:25px!important}
.id-card-page .id-front .sig-box b{font-size:8px!important}
.id-card-page .id-front .id-card-foot{height:auto!important;min-height:30px!important;padding:7px 14px!important;font-size:8px!important;box-sizing:border-box!important}
.id-card-page .id-back .id-back-head{height:auto!important;min-height:46px!important;padding:12px 14px!important;font-size:10px!important}
.id-card-page .id-back .id-back-body{height:auto!important;min-height:150px!important;padding:14px!important;grid-template-columns:64px minmax(0,1fr)!important;gap:10px!important;box-sizing:border-box!important}
.id-card-page .id-back .id-qr-box{width:60px!important;height:60px!important}
.id-card-page .id-back .id-qr-box .member-qr-img,.id-card-page .id-back .id-qr-box .member-qr-back{width:50px!important;height:50px!important}
.id-card-page .id-back .id-back-body p{font-size:9px!important;line-height:1.4!important;margin-bottom:7px!important}
.id-card-page .id-back .id-back-body .id-row{padding:5px 0!important;gap:5px!important}
.id-card-page .id-back .id-back-body .id-row span{font-size:8px!important}
.id-card-page .id-back .id-back-body .id-row b{font-size:9px!important;max-width:60%!important;white-space:normal!important;overflow-wrap:anywhere!important;text-overflow:clip!important}
.id-card-page .id-back .id-signatures{height:auto!important;min-height:58px!important;padding:6px 14px!important}
.id-card-page .id-back .sig-box{height:48px!important;min-height:48px!important}
.id-card-page .id-back .sig-box span{font-size:7px!important}
.id-card-page .id-back .sig-box img{width:75px!important;height:25px!important}
.id-card-page .id-back .sig-box b{font-size:8px!important}
.id-card-page .id-back .id-card-foot{height:auto!important;min-height:30px!important;padding:7px 14px!important;font-size:8px!important}
@media(max-width:390px){
  .id-card-page{padding-left:5px!important;padding-right:5px!important}
  .id-card-page .id-front .id-card-head{padding:11px 10px!important}
  .id-card-page .id-front .id-brand img{width:38px!important;height:38px!important;flex-basis:38px!important}
  .id-card-page .id-front .id-brand b{font-size:12px!important}
  .id-card-page .id-front .id-brand small{font-size:8px!important}
  .id-card-page .id-front .id-member-head-text strong{font-size:13px!important}
  .id-card-page .id-front .id-card-main{grid-template-columns:68px minmax(0,1fr) 54px!important;gap:7px!important;padding:10px!important}
  .id-card-page .id-front .card-photo{width:68px!important;height:88px!important}
  .id-card-page .id-front .id-details .id-row span{font-size:7px!important}
  .id-card-page .id-front .id-details .id-row b{font-size:9px!important}
  .id-card-page .id-front .id-card-qr .member-qr-img{width:48px!important;height:48px!important}
  .id-card-page .id-front .id-signatures,.id-card-page .id-back .id-signatures{padding-left:10px!important;padding-right:10px!important}
}
@media print{
  .id-card-page{padding:0!important;background:#fff!important;overflow:visible!important}
  .id-card-page .id-card-pair{width:85.6mm!important;gap:6mm!important}
  .id-card-page .id-card{width:85.6mm!important;height:54mm!important;max-width:85.6mm!important;min-width:85.6mm!important;min-height:54mm!important;max-height:54mm!important;border-radius:2.5mm!important;box-shadow:none!important}
  .id-card-page .id-front .id-card-head{min-height:12.5mm!important;padding:1.8mm 3mm!important}
  .id-card-page .id-front .id-brand img{width:9mm!important;height:9mm!important;flex-basis:9mm!important}
  .id-card-page .id-front .id-brand b{font-size:7.2pt!important}
  .id-card-page .id-front .id-brand small{font-size:4.2pt!important}
  .id-card-page .id-front .id-member-head-text span{font-size:4pt!important}
  .id-card-page .id-front .id-member-head-text strong{font-size:7.2pt!important}
  .id-card-page .id-front .id-card-main{height:28mm!important;min-height:28mm!important;padding:2.2mm 3mm!important;grid-template-columns:21mm 1fr 17mm!important;gap:2.5mm!important}
  .id-card-page .id-front .card-photo{width:20mm!important;height:24mm!important}
  .id-card-page .id-front .id-details .id-row{padding:.75mm 0!important;gap:1.5mm!important}
  .id-card-page .id-front .id-details .id-row span{font-size:4pt!important;white-space:nowrap!important}
  .id-card-page .id-front .id-details .id-row b{font-size:5.2pt!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .id-card-page .id-front .id-card-qr .member-qr-img{width:15mm!important;height:15mm!important}
  .id-card-page .id-front .id-signatures{height:8.5mm!important;min-height:8.5mm!important;padding:0 3mm!important}
  .id-card-page .id-front .sig-box{height:7.5mm!important;min-height:7.5mm!important}
  .id-card-page .id-front .sig-box span{font-size:3.35pt!important}
  .id-card-page .id-front .sig-box img{width:22mm!important;height:4.5mm!important}
  .id-card-page .id-front .id-card-foot{height:5mm!important;min-height:5mm!important;padding:1mm 3mm!important;font-size:4pt!important}
  .id-card-page .id-back .id-back-head{min-height:12.5mm!important;padding:1.8mm 3mm!important;font-size:6.7pt!important}
  .id-card-page .id-back .id-back-body{height:31mm!important;min-height:31mm!important;padding:2.8mm 3mm!important;grid-template-columns:18mm 1fr!important;gap:3mm!important}
  .id-card-page .id-back .id-qr-box{width:17mm!important;height:17mm!important}
  .id-card-page .id-back .id-qr-box .member-qr-img,.id-card-page .id-back .id-qr-box .member-qr-back{width:14mm!important;height:14mm!important}
  .id-card-page .id-back .id-back-body p{font-size:4.8pt!important;line-height:1.25!important}
  .id-card-page .id-back .id-back-body .id-row span{font-size:3.8pt!important}
  .id-card-page .id-back .id-back-body .id-row b{font-size:4.8pt!important;white-space:nowrap!important}
}

/* ===== FINAL MOBILE COMPACT ACTIONS + NOTICE ACTIVITY DELETE ===== */
.notification-main{display:flex;align-items:center;gap:10px;flex:1;min-width:0;color:inherit;text-decoration:none}
.activity-delete-form{margin-left:auto;flex:0 0 auto}
.notification-item{gap:8px;align-items:center}
@media (max-width:600px){
  .admin-member-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px!important;width:100%!important;max-width:100%!important}
  .admin-member-actions .btn,.admin-member-actions form{min-width:0!important;width:100%!important;box-sizing:border-box!important}
  .admin-member-actions .btn{padding:6px 5px!important;font-size:10px!important;line-height:1.1!important;min-height:34px!important;white-space:normal!important;word-break:break-word!important}
  .inline-form{display:flex;flex-wrap:wrap;gap:6px!important}
  .inline-form .btn{min-width:0!important}
  .notification-item{display:flex!important;flex-wrap:wrap!important;padding:10px!important}
  .notification-main{width:100%;flex:1 1 100%;min-width:0}
  .notification-main span:not(.notification-dot){min-width:0;overflow-wrap:anywhere}
  .activity-delete-form{width:100%;margin:4px 0 0!important}
  .activity-delete-form .btn{width:100%!important;min-height:32px!important;padding:6px 8px!important}
  .table-wrap{overflow-x:hidden!important}
  .table-wrap table{max-width:100%!important}
  .btn.small{padding:6px 8px!important;font-size:11px!important;line-height:1.15!important}
}
@media (max-width:390px){
  .admin-member-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px!important}
  .admin-member-actions .btn{font-size:9px!important;padding:5px 3px!important;min-height:31px!important}
}
@media (max-width:340px){
  .admin-member-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-member-actions .btn{font-size:10px!important}
}

/* ===== FINAL MOBILE COMPACT SIDE-BY-SIDE ACTION BUTTONS ===== */
@media (max-width:600px){
  .page-title,.hero{gap:10px!important}
  .page-title>.inline-form,.page-title>.profile-actions,.page-title>.member-contact-actions,
  .hero-actions,.panel-head>.inline-form,.panel-head>.btn,.id-card-actions,
  .search-inline,.contact-mini,.profile-actions,.member-contact-actions{
    display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;gap:6px!important;width:100%!important;max-width:100%!important;
  }
  .page-title>.inline-form .btn,.page-title>.profile-actions .btn,.page-title>.member-contact-actions .btn,
  .hero-actions .btn,.panel-head>.inline-form .btn,.panel-head>.btn,.id-card-actions .btn,
  .search-inline .btn,.contact-mini .btn,.profile-actions .btn,.member-contact-actions .btn{
    flex:1 1 0!important;min-width:0!important;width:auto!important;max-width:100%!important;height:34px!important;min-height:34px!important;padding:6px 8px!important;font-size:10px!important;line-height:1.1!important;white-space:normal!important;text-align:center!important;
  }
  .page-title>.btn{margin-top:0!important}
  .inline-form{gap:6px!important}
  .inline-form .btn.small{height:32px!important;min-height:32px!important;padding:5px 7px!important;font-size:10px!important}
  .panel-head{align-items:center!important;flex-wrap:wrap!important}
  .panel-head h2{font-size:15px!important}
  .quick{grid-template-columns:1fr 1fr!important;gap:7px!important}
  .quick a{padding:9px 8px!important;font-size:11px!important;line-height:1.25!important}
  .btn{min-height:34px}
}
@media (max-width:390px){
  .page{padding:16px 9px 28px!important}
  .panel{padding:13px!important;border-radius:13px!important}
  .hero{padding:14px!important;border-radius:15px!important}
  .hero-actions .btn,.profile-actions .btn,.member-contact-actions .btn{font-size:9px!important;padding:5px 6px!important;height:32px!important;min-height:32px!important}
  .quick a{font-size:10px!important;padding:8px 6px!important}
}

/* ===== Modern Member Details view ===== */
.member-modern-page{max-width:1180px;margin:0 auto;padding-bottom:8px}
.member-modern-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:18px}
.member-modern-head h1{margin:4px 0 5px;font-size:29px;color:#10213c}
.member-modern-head p{margin:0;color:#718096;font-size:13px}
.member-modern-head-actions{display:flex;gap:8px;flex-wrap:wrap}
.member-modern-hero{background:linear-gradient(135deg,#fff,#f5f9ff);border:1px solid #dfe8f4;border-radius:22px;padding:24px;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 14px 35px rgba(25,55,95,.08)}
.member-modern-identity{display:flex;align-items:center;gap:17px;min-width:0}
.member-modern-avatar{width:104px;height:104px;border-radius:28px;object-fit:cover;border:4px solid #fff;box-shadow:0 8px 24px rgba(26,91,170,.14);background:#eaf2ff;display:grid;place-items:center;flex:0 0 auto;font-size:40px;font-weight:900;color:#176bd7}
.member-modern-name{min-width:0}.member-modern-chip{display:inline-flex;padding:5px 10px;border-radius:999px;background:#e8f1ff;color:#176bd7;font-size:11px;font-weight:800}.member-modern-name h2{margin:7px 0 2px;font-size:26px;color:#10213c}.member-modern-code{font-size:15px;color:#687a94;font-weight:700}.member-modern-mobile{font-size:14px;color:#40536e;margin:8px 0}.member-modern-deposit{min-width:205px;padding:20px;border-radius:18px;background:linear-gradient(145deg,#edf6ff,#f8fbff);border:1px solid #dcecff}.member-modern-deposit span,.member-modern-deposit small{display:block;color:#60718b;font-size:12px;font-weight:700}.member-modern-deposit strong{display:block;font-size:27px;color:#10213c;margin:5px 0}.member-modern-deposit small{font-weight:600}
.member-modern-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:14px 0}.member-action{min-width:0;display:flex;align-items:center;justify-content:center;gap:9px;padding:13px 10px;border-radius:15px;border:1px solid #dfe6ef;background:#fff;text-decoration:none;color:#172a46;box-shadow:0 5px 15px rgba(20,45,80,.05);transition:.18s}.member-action span{font-size:21px}.member-action:hover{transform:translateY(-1px);box-shadow:0 9px 20px rgba(20,45,80,.09)}.member-action.green{border-color:#ccefdc;background:#f2fff7;color:#087647}.member-action.blue{border-color:#cfe2ff;background:#f2f7ff;color:#176bd7}.member-action.purple{border-color:#dfd4ff;background:#faf7ff;color:#7042cf}.member-action.red{border-color:#ffd7df;background:#fff5f7;color:#c72845}
.member-modern-status{display:flex;align-items:center;gap:13px;padding:14px 17px;margin-bottom:14px;border:1px solid #c9f0dd;border-radius:17px;background:linear-gradient(90deg,#effcf5,#f9fffb)}.member-modern-status .status-icon{width:43px;height:43px;border-radius:50%;background:#28bd78;color:#fff;display:grid;place-items:center;font-size:22px;font-weight:900}.member-modern-status div:nth-child(2){flex:1}.member-modern-status small{display:block;color:#087647;font-size:11px;font-weight:700}.member-modern-status strong{display:block;color:#087647;font-size:21px;margin-top:2px}.member-modern-status .btn{border-color:#28bd78;color:#087647;background:#fff}
.member-modern-card{background:#fff;border:1px solid #e0e7f0;border-radius:19px;padding:18px;box-shadow:0 7px 22px rgba(20,45,80,.05);margin-bottom:14px}.member-modern-card-title{display:flex;align-items:center;gap:9px;margin-bottom:14px}.member-modern-card-title h2{margin:0;font-size:18px;color:#12243f}.title-icon{width:31px;height:31px;border-radius:10px;background:#edf5ff;color:#176bd7;display:grid;place-items:center;font-size:16px}.member-quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:11px}.member-quick-item{display:flex;align-items:center;gap:10px;padding:14px;border-radius:14px;background:#f8fafd;border:1px solid #edf1f6;min-width:0}.quick-icon{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-weight:900;flex:0 0 auto}.quick-icon.blue{background:#e7f1ff;color:#176bd7}.quick-icon.purple{background:#eee8ff;color:#7042cf}.quick-icon.green{background:#e3f9ed;color:#08945a}.quick-icon.orange{background:#fff1cf;color:#bd7900}.member-quick-item small{display:block;color:#687a94;font-size:10px;font-weight:700}.member-quick-item b{display:block;color:#10213c;font-size:15px;margin-top:3px;overflow-wrap:anywhere}.member-modern-two-col{display:grid;grid-template-columns:1.25fr .75fr;gap:14px}.member-detail-list{display:grid;grid-template-columns:1fr 1fr;gap:10px}.member-detail-list>div{padding:12px 13px;background:#f8fafd;border:1px solid #edf1f6;border-radius:12px;min-width:0}.member-detail-list .wide{grid-column:span 2}.member-detail-list small{display:block;color:#748198;font-size:10px;font-weight:800;text-transform:uppercase}.member-detail-list b{display:block;color:#1c2d48;font-size:13px;margin-top:5px;overflow-wrap:anywhere}.member-document-modern{display:flex;align-items:center;gap:11px;padding:13px;border:1px solid #dce9fa;background:#f6faff;border-radius:13px;color:#176bd7;text-decoration:none;margin-bottom:9px}.member-document-modern>span{font-size:23px}.member-document-modern div{flex:1;min-width:0}.member-document-modern b,.member-document-modern small{display:block}.member-document-modern b{font-size:13px}.member-document-modern small{font-size:10px;color:#718096;margin-top:3px}.member-document-modern strong{font-size:22px}.member-document-modern.secondary{background:#faf8ff;border-color:#e8defd;color:#7042cf}.member-empty-doc{padding:14px;border-radius:12px;background:#fff7df;color:#8a6200;font-size:12px;margin-bottom:9px}
@media(max-width:850px){.member-modern-page{padding:0 1px}.member-modern-head{align-items:flex-start;flex-direction:column}.member-modern-head-actions{width:100%}.member-modern-head-actions .btn{flex:1}.member-modern-hero{padding:18px;align-items:flex-start}.member-modern-avatar{width:78px;height:78px;border-radius:21px;font-size:30px}.member-modern-name h2{font-size:21px}.member-modern-deposit{min-width:155px;padding:14px}.member-modern-deposit strong{font-size:21px}.member-modern-actions{grid-template-columns:repeat(2,1fr)}.member-modern-two-col{grid-template-columns:1fr}.member-quick-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.member-modern-head{margin-bottom:12px}.member-modern-head h1{font-size:23px}.member-modern-head p{font-size:11px}.member-modern-hero{display:block;padding:15px;border-radius:17px}.member-modern-identity{gap:11px}.member-modern-avatar{width:68px;height:68px;border-radius:18px}.member-modern-name h2{font-size:19px;margin-top:5px}.member-modern-mobile{font-size:12px;margin:6px 0}.member-modern-deposit{margin-top:12px;display:flex;align-items:center;gap:9px;padding:11px 13px}.member-modern-deposit span{font-size:10px}.member-modern-deposit strong{font-size:18px;margin:0}.member-modern-deposit small{font-size:9px;margin-left:auto}.member-modern-actions{grid-template-columns:repeat(2,1fr);gap:8px;margin:10px 0}.member-action{padding:10px 7px;border-radius:12px;font-size:12px}.member-action span{font-size:17px}.member-modern-status{padding:10px 12px;border-radius:14px}.member-modern-status .status-icon{width:36px;height:36px;font-size:18px}.member-modern-status strong{font-size:17px}.member-modern-status .btn{padding:8px 9px;font-size:11px}.member-modern-card{padding:13px;border-radius:15px}.member-modern-card-title{margin-bottom:10px}.member-modern-card-title h2{font-size:15px}.title-icon{width:28px;height:28px;font-size:14px}.member-quick-grid{grid-template-columns:1fr 1fr;gap:7px}.member-quick-item{padding:10px 8px;gap:7px;border-radius:11px}.quick-icon{width:32px;height:32px;font-size:12px}.member-quick-item b{font-size:12px}.member-quick-item small{font-size:8px}.member-detail-list{grid-template-columns:1fr;gap:7px}.member-detail-list .wide{grid-column:auto}.member-detail-list>div{padding:10px}.member-detail-list b{font-size:12px}.member-document-modern{padding:10px}.member-document-modern b{font-size:12px}.member-document-modern small{font-size:9px}}


/* ===== V8 FINAL MEMBER DETAILS + FULL ID CARD MOBILE FIX ===== */
.member-modern-actions{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.member-action.amber{border-color:#ffe1ad;background:#fffaf0;color:#a15b00}
.member-modern-head-actions .btn.danger{border-color:#ffd0d8;background:#fff5f7;color:#c72845}

/* Never crop the ID card on phones/tablets. Screen preview is allowed to grow; print remains credit-card size. */
@media screen{
  .id-card-page{overflow-x:hidden!important;overflow-y:auto!important;padding-bottom:28px!important}
  .id-card-page .id-card-pair{width:100%!important;max-width:100%!important;overflow:visible!important}
  .id-card-page .id-card{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
  .id-card-page .id-front .id-card-main{min-height:28mm!important;height:auto!important}
  .id-card-page .id-front .id-signatures{height:auto!important;min-height:8.5mm!important;padding-top:1mm!important;padding-bottom:1mm!important}
  .id-card-page .id-back .id-back-body{height:auto!important;min-height:31mm!important}
  .id-card-page .id-back .id-signatures{height:auto!important;min-height:7mm!important;padding-top:1mm!important;padding-bottom:1mm!important}
  .id-card-page .id-card-foot{height:auto!important;min-height:5mm!important}
  .id-card-page .sig-box{height:auto!important;min-height:6mm!important}
  .id-card-page .sig-box img{max-width:100%!important}
}
@media(max-width:850px){
  .member-modern-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .member-modern-head-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important}
  .member-modern-head-actions .btn{min-width:0!important;width:100%!important}
}
@media(max-width:560px){
  .member-modern-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  .member-action{min-height:42px!important;padding:9px 6px!important;font-size:11px!important}
  .member-action b{white-space:nowrap!important}
  .member-modern-head-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  .member-modern-head-actions .btn{height:34px!important;min-height:34px!important;padding:6px 5px!important;font-size:10px!important}
  .id-card-page{padding:10px 8px 24px!important}
  .id-card-page .id-card{width:calc(100vw - 16px)!important;max-width:none!important}
  .id-card-page .id-card-head{min-height:16mm!important}
  .id-card-page .id-front .id-card-main{grid-template-columns:21mm 1fr 17mm!important;gap:2.5mm!important;min-height:28mm!important}
  .id-card-page .id-front .id-details .id-row b{max-width:64%!important}
  .id-card-page .id-back .id-back-body{grid-template-columns:18mm 1fr!important;gap:3mm!important}
}
@media(max-width:390px){
  .member-modern-head-actions{grid-template-columns:1fr 1fr!important}
  .member-modern-head-actions .btn:last-child{grid-column:1 / -1}
  .id-card-page .id-front .id-card-main{grid-template-columns:19mm 1fr 15mm!important;gap:2mm!important}
  .id-card-page .id-front .card-photo{width:18mm!important;height:23mm!important}
  .id-card-page .id-front .id-card-qr .member-qr-img{width:13mm!important;height:13mm!important}
}

/* ===== FINAL ID CARD COMPACT / MOBILE + PRINT FIX ===== */
.id-card-page .id-card-pair{
  width:100%;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  gap:10px!important;
}
.id-card-page .id-card.id-front,
.id-card-page .id-card.id-back{
  width:85.6mm!important;
  height:54mm!important;
  min-width:85.6mm!important;
  max-width:85.6mm!important;
  min-height:54mm!important;
  max-height:54mm!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  flex:none!important;
}
/* Back side must never grow larger than the front */
.id-card-page .id-back .id-back-head{height:9mm!important;min-height:9mm!important;padding:2.4mm 3.2mm!important;box-sizing:border-box!important}
.id-card-page .id-back .id-back-body{height:31mm!important;min-height:31mm!important;padding:2.5mm 3.2mm!important;box-sizing:border-box!important;grid-template-columns:17mm 1fr!important;gap:2.5mm!important}
.id-card-page .id-back .id-qr-box{width:15mm!important;height:15mm!important;min-width:15mm!important}
.id-card-page .id-back .id-qr-box .member-qr-img{width:13mm!important;height:13mm!important}
.id-card-page .id-back .id-back-body p{font-size:4.8pt!important;line-height:1.18!important;margin:0 0 1.2mm!important}
.id-card-page .id-back .id-row{padding:.7mm 0!important}
.id-card-page .id-back .id-row span{font-size:3.9pt!important}
.id-card-page .id-back .id-row b{font-size:4.8pt!important}
.id-card-page .id-back .id-signatures{min-height:5mm!important;max-height:5mm!important;overflow:hidden!important}
.id-card-page .id-back .id-card-foot{height:7mm!important;min-height:7mm!important;padding:1.5mm 3.2mm!important;font-size:3.8pt!important;box-sizing:border-box!important}

@media screen and (max-width:500px){
  .id-card-page{padding:12px 8px!important;overflow-x:hidden!important}
  .id-card-page .id-card-pair{gap:12px!important}
  .id-card-page .id-card.id-front,
  .id-card-page .id-card.id-back{
    width:min(85.6mm,calc(100vw - 16px))!important;
    min-width:0!important;
    max-width:calc(100vw - 16px)!important;
    aspect-ratio:85.6 / 54!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
  }
  .id-card-page .id-card.id-back{height:auto!important;aspect-ratio:85.6 / 54!important}
}

/* Browser print: compact pair, both cards equal size and fully inside A4 */
@media print{
  @page{size:A4 portrait;margin:8mm}
  html,body{margin:0!important;padding:0!important;background:#fff!important}
  .id-card-page{padding:0!important;background:#fff!important;display:block!important;min-height:0!important;overflow:visible!important}
  .id-card-page .id-card-actions,
  .id-card-page .id-print-note{display:none!important}
  .id-card-page .id-card-pair{
    width:175.2mm!important;
    max-width:175.2mm!important;
    margin:0 auto!important;
    display:grid!important;
    grid-template-columns:85.6mm 85.6mm!important;
    grid-template-rows:54mm!important;
    gap:4mm!important;
    align-items:start!important;
    justify-content:center!important;
  }
  .id-card-page .id-card.id-front,
  .id-card-page .id-card.id-back{
    width:85.6mm!important;
    height:54mm!important;
    min-width:85.6mm!important;
    max-width:85.6mm!important;
    min-height:54mm!important;
    max-height:54mm!important;
    margin:0!important;
    box-shadow:none!important;
    border-radius:2mm!important;
    transform:none!important;
    break-inside:avoid!important;
    page-break-inside:avoid!important;
  }
  .id-card-page .id-back .id-back-body{height:31mm!important}
}

/* ===== V10: MEMBER DETAILS MATCH DEMO MOBILE UI ===== */
.member-modern-page{max-width:1180px;margin:0 auto;padding:0 0 90px}
.member-modern-head{display:block;margin:0 0 14px}
.member-modern-head .eyebrow{font-size:12px;letter-spacing:2px;color:#8aa0ba;font-weight:800}
.member-modern-head h1{font-size:31px;line-height:1.1;margin:5px 0 7px;color:#10213c;font-weight:800}
.member-modern-head p{font-size:14px;color:#7a889b;margin:0}
.member-modern-head-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin-top:28px;width:100%}
.member-modern-head-actions .btn{height:74px;min-height:74px;border-radius:18px;justify-content:center;font-size:17px;font-weight:800;padding:10px 8px}
.member-modern-head-actions .btn.primary{background:#1976f3;border-color:#1976f3;color:#fff}
.member-modern-head-actions .btn.danger{background:#fff3f4;border-color:#f4d2d8;color:#b52f4a}
.member-modern-hero{border-radius:24px;padding:24px 26px;margin-bottom:14px;background:linear-gradient(145deg,#fff,#f5f9ff);border:1px solid #dfe8f4;box-shadow:0 10px 28px rgba(20,45,80,.06)}
.member-modern-identity{gap:18px}
.member-modern-avatar{width:92px;height:92px;border-radius:25px;border:5px solid #fff;box-shadow:0 8px 20px rgba(30,80,140,.12);font-size:39px}
.member-modern-chip{font-size:13px;padding:7px 13px}
.member-modern-name h2{font-size:28px;margin:8px 0 2px}
.member-modern-code{font-size:17px}
.member-modern-mobile{font-size:16px;margin:8px 0}
.member-modern-name .badge{font-size:12px;padding:6px 12px;border-radius:999px}
.member-modern-deposit{min-width:260px;padding:18px 20px;border-radius:22px}
.member-modern-deposit strong{font-size:30px}
.member-modern-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px;margin:0 0 14px!important}
.member-action{min-height:72px;padding:13px 12px;border-radius:18px;font-size:17px;box-shadow:0 4px 12px rgba(20,45,80,.04)}
.member-action span{font-size:23px}
.member-modern-actions .member-action.red{grid-column:1 / 2}
.member-modern-status{min-height:80px;padding:13px 18px;border-radius:20px;margin-bottom:14px}
.member-modern-status .status-icon{width:52px;height:52px;font-size:27px}
.member-modern-status small{font-size:13px}
.member-modern-status strong{font-size:23px}
.member-modern-status .btn{height:50px;min-height:50px;border-radius:15px;padding:8px 20px;font-size:15px;font-weight:800}
.member-modern-card{border-radius:21px;padding:20px;margin-bottom:14px;box-shadow:0 7px 22px rgba(20,45,80,.05)}
.member-modern-card-title h2{font-size:20px}
.member-quick-grid{grid-template-columns:1fr 1fr;gap:12px}
.member-quick-item{min-height:82px;padding:14px;border-radius:16px}
.member-quick-item b{font-size:16px}
.member-quick-item small{font-size:11px}

@media(max-width:680px){
  .member-modern-page{padding:0 0 105px}
  .member-modern-head{margin-bottom:14px}
  .member-modern-head h1{font-size:29px}
  .member-modern-head p{font-size:13px}
  .member-modern-head-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:25px}
  .member-modern-head-actions .btn{height:70px;min-height:70px;font-size:16px;line-height:1.15;padding:8px 6px}
  .member-modern-hero{display:block;padding:18px 16px;border-radius:21px}
  .member-modern-identity{gap:13px}
  .member-modern-avatar{width:76px;height:76px;border-radius:21px;font-size:32px}
  .member-modern-name h2{font-size:23px}
  .member-modern-code{font-size:16px}
  .member-modern-mobile{font-size:14px;margin:6px 0}
  .member-modern-deposit{margin-top:16px;min-width:0;width:100%;padding:13px 15px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;border-radius:20px}
  .member-modern-deposit strong{font-size:25px;margin:0}
  .member-modern-deposit small{font-size:11px;margin:0;text-align:right}
  .member-modern-actions{gap:10px!important}
  .member-action{min-height:70px;border-radius:17px;font-size:16px}
  .member-action span{font-size:22px}
  .member-modern-status{min-height:82px;padding:12px 14px;border-radius:19px}
  .member-modern-status .status-icon{width:48px;height:48px}
  .member-modern-status strong{font-size:21px}
  .member-modern-status .btn{font-size:13px;padding:7px 13px;height:46px;min-height:46px}
  .member-modern-card{padding:16px;border-radius:19px}
}
@media(max-width:390px){
  .member-modern-head-actions{gap:7px}
  .member-modern-head-actions .btn{font-size:14px;height:64px;min-height:64px}
  .member-modern-avatar{width:68px;height:68px}
  .member-modern-name h2{font-size:20px}
  .member-modern-code{font-size:14px}
  .member-modern-mobile{font-size:13px}
  .member-modern-deposit{grid-template-columns:auto 1fr;}
  .member-modern-deposit small{grid-column:1 / -1;text-align:left}
  .member-action{min-height:64px;font-size:14px}
}

/* ===== V11: CLEAN MEMBER DETAILS ACTIONS ===== */
.member-modern-head-actions{display:none!important}
.member-modern-head h1{font-size:26px!important;line-height:1.15!important}
.member-modern-head p{font-size:12px!important}
.member-modern-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:12px 0 14px!important}
.member-action,.member-action-form .member-action{min-height:48px!important;height:48px!important;padding:7px 8px!important;border-radius:13px!important;font-size:13px!important;gap:6px!important;box-shadow:0 3px 10px rgba(20,45,80,.035)!important}
.member-action span,.member-action-form .member-action span{font-size:17px!important}
.member-action b,.member-action-form .member-action b{font-size:13px!important;font-weight:750!important;white-space:nowrap!important}
.member-action-form{margin:0!important;padding:0!important;border:0!important;background:transparent!important;display:block!important;min-width:0!important}
.member-action-form .member-action{width:100%!important;display:flex!important;align-items:center!important;justify-content:center!important}
.member-action.delete{border-color:#ffd8df!important;background:#fff5f6!important;color:#c62845!important}
.member-modern-status{min-height:66px!important;padding:10px 14px!important;border-radius:16px!important}
.member-modern-status .status-icon{width:42px!important;height:42px!important;font-size:21px!important}
.member-modern-status small{font-size:11px!important}
.member-modern-status strong{font-size:18px!important}
.member-modern-status .btn{height:40px!important;min-height:40px!important;padding:6px 14px!important;font-size:12px!important}
.member-modern-hero{padding:18px 20px!important;border-radius:19px!important}
.member-modern-avatar{width:72px!important;height:72px!important;border-radius:19px!important;font-size:30px!important}
.member-modern-name h2{font-size:22px!important}
.member-modern-code{font-size:14px!important}
.member-modern-mobile{font-size:13px!important;margin:5px 0!important}
.member-modern-deposit{min-width:210px!important;padding:12px 15px!important;border-radius:17px!important}
.member-modern-deposit strong{font-size:23px!important}
.member-modern-deposit span{font-size:11px!important}
.member-modern-deposit small{font-size:10px!important}
@media(max-width:680px){
  .member-modern-head h1{font-size:24px!important}
  .member-modern-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
  .member-action,.member-action-form .member-action{min-height:44px!important;height:44px!important;padding:6px 4px!important;font-size:11px!important;border-radius:11px!important}
  .member-action span,.member-action-form .member-action span{font-size:15px!important}
  .member-action b,.member-action-form .member-action b{font-size:11px!important}
  .member-modern-status{min-height:60px!important}
}
@media(max-width:390px){
  .member-modern-actions{gap:6px!important}
  .member-action,.member-action-form .member-action{min-height:42px!important;height:42px!important;padding:5px 2px!important}
  .member-action span,.member-action-form .member-action span{font-size:14px!important}
  .member-action b,.member-action-form .member-action b{font-size:10px!important}
}

/* ===== V12: MEMBER ACTIONS EXACT 2-ROW LAYOUT ===== */
.member-modern-actions{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  gap:7px!important;
  align-items:stretch!important;
}
.member-modern-actions .member-action.red{
  grid-column:auto!important;
}
.member-modern-actions .member-action-form{
  grid-column:auto!important;
  grid-row:auto!important;
  width:100%!important;
  min-width:0!important;
}
.member-modern-actions > .member-action,
.member-modern-actions > .member-action-form{
  width:100%!important;
  min-width:0!important;
}
.member-action,.member-action-form .member-action{
  min-width:0!important;
  width:100%!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.member-action b,.member-action-form .member-action b{
  font-size:11px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
@media(max-width:390px){
  .member-modern-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
  .member-action,.member-action-form .member-action{height:40px!important;min-height:40px!important;padding:4px 2px!important;border-radius:10px!important}
  .member-action span,.member-action-form .member-action span{font-size:13px!important}
  .member-action b,.member-action-form .member-action b{font-size:9px!important}
}


/* ===== V14: FINAL ID CARD FRONT FIT + NOTICE ACTIONS ===== */
.id-card-page .id-front .id-card-head{
  height:10mm!important;min-height:10mm!important;padding:1.5mm 3.2mm 1mm!important;
}
.id-card-page .id-front .id-brand img{width:7.5mm!important;height:7.5mm!important}
.id-card-page .id-front .id-brand b{font-size:6.2pt!important}
.id-card-page .id-front .id-brand small{font-size:3.8pt!important;margin-top:.4mm!important}
.id-card-page .id-front .id-member-head-text span{font-size:3.8pt!important}
.id-card-page .id-front .id-member-head-text strong{font-size:6.8pt!important}
.id-card-page .id-front .id-card-main{
  height:29mm!important;min-height:29mm!important;padding:2mm 3.2mm 1.5mm!important;gap:2.5mm!important;
}
.id-card-page .id-front .card-photo{width:19mm!important;height:22mm!important}
.id-card-page .id-front .id-card-qr .member-qr-img{width:14mm!important;height:14mm!important}
.id-card-page .id-front .id-card-qr small{font-size:3.2pt!important}
.id-card-page .id-front .id-row{padding:.7mm 0!important}
.id-card-page .id-front .id-row span{font-size:3.8pt!important}
.id-card-page .id-front .id-row b{font-size:5pt!important}
.id-card-page .id-front .id-signatures{height:8mm!important;min-height:8mm!important;max-height:8mm!important;padding:0 3.2mm!important}
.id-card-page .id-front .sig-box{height:7mm!important;min-height:7mm!important;max-height:7mm!important}
.id-card-page .id-front .sig-box span{font-size:3pt!important}
.id-card-page .id-front .sig-box img{width:20mm!important;height:4mm!important}
.id-card-page .id-front .sig-box b{font-size:3.5pt!important;line-height:4mm!important}
.id-card-page .id-front .id-card-foot{height:7mm!important;min-height:7mm!important;padding:1.4mm 3.2mm!important;font-size:3.8pt!important}
@media print{
  .id-card-page .id-front .id-card-head{height:10mm!important;min-height:10mm!important}
  .id-card-page .id-front .id-card-main{height:29mm!important;min-height:29mm!important}
  .id-card-page .id-front .id-signatures{height:8mm!important;min-height:8mm!important;max-height:8mm!important}
  .id-card-page .id-front .id-card-foot{height:7mm!important;min-height:7mm!important}
}

/* Current Notice: keep the notice visible and give Admin/Staff a compact delete control. */
.notice-current-delete-form{display:inline-flex!important;align-items:center!important;margin:0 6px 0 4px!important;flex:0 0 auto!important}
.notice-current-delete{border:1px solid #f1c5cc!important;background:#fff5f6!important;color:#b52f4a!important;border-radius:9px!important;padding:4px 7px!important;font-size:11px!important;line-height:1!important;cursor:pointer!important;white-space:nowrap!important}
@media(max-width:600px){.notice-current-delete-form{margin-left:3px!important;margin-right:3px!important}.notice-current-delete{padding:4px 6px!important;font-size:10px!important}}

/* ===== V21 NOTIFICATION SUMMARY COMPACT / MOBILE CLEANUP ===== */
.notification-list{display:grid;gap:6px!important}
.notification-item{grid-template-columns:32px minmax(0,1fr) auto!important;gap:8px!important;padding:8px 10px!important;min-height:0!important}
.notification-dot{width:30px!important;height:30px!important;border-radius:8px!important;font-size:14px!important}
.notification-main,.notification-copy{min-width:0!important}
.notification-item b{font-size:11px!important;line-height:1.25!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.notification-item small{font-size:10px!important;line-height:1.3!important;margin-top:2px!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.notification-item em{font-size:8px!important;margin-top:3px!important;line-height:1.2!important}
.notification-item .activity-delete-form{margin:0!important}
.notification-item .activity-delete-form .btn{min-height:28px!important;padding:4px 7px!important;font-size:10px!important;line-height:1!important;white-space:nowrap}
.notification-item strong{font-size:14px!important}
@media(max-width:600px){
  .notification-item{display:grid!important;grid-template-columns:28px minmax(0,1fr) auto!important;flex-wrap:nowrap!important;align-items:center!important;padding:7px 8px!important}
  .notification-dot{width:28px!important;height:28px!important;font-size:13px!important}
  .notification-item b{font-size:10.5px!important}
  .notification-item small{font-size:9.5px!important;-webkit-line-clamp:2}
  .notification-item em{font-size:7.5px!important}
  .notification-item .activity-delete-form{width:auto!important;margin:0!important}
  .notification-item .activity-delete-form .btn{width:auto!important;min-height:27px!important;padding:4px 6px!important;font-size:9px!important}
}

/* V23: Notice Manager - show every currently running notice with direct delete. */
.notice-manager-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.notice-manager-grid>.notice-all-panel{grid-column:1/-1}
.notice-running-panel{min-width:0}
.running-notice-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #e8edf3}
.running-notice-row:last-child{border-bottom:0}
.running-notice-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
.running-notice-copy b{font-size:13px;line-height:1.25}
.running-notice-copy span{font-size:11px;line-height:1.4;overflow-wrap:anywhere}
.running-notice-copy small{font-size:9px;opacity:.7}
.running-notice-row>.inline-form{flex:0 0 auto;display:flex;gap:5px;align-items:center}
.notice-manager-grid .btn.small{min-height:29px;padding:5px 8px;font-size:10px;white-space:nowrap}
@media(max-width:800px){.notice-manager-grid{grid-template-columns:1fr}.notice-manager-grid>.notice-all-panel{grid-column:auto}.running-notice-row{align-items:flex-start;gap:8px}.running-notice-copy b{font-size:12px}.running-notice-copy span{font-size:10px}.running-notice-row>.inline-form{flex-direction:column;align-items:stretch}.notice-manager-grid .table-wrap{overflow-x:auto}.notice-manager-grid table{min-width:560px}}


/* V36 WhatsApp Live Inbox scroll and mobile layout fix */
.wa-live-inbox{min-height:0}
.wa-inbox-sidebar,.wa-inbox-chat{min-height:0;height:100%}
.wa-conversation-list,.wa-message-scroll{min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.wa-inbox-chat{overflow:hidden}
.wa-message-scroll{flex:1 1 auto;min-height:0;max-height:100%;scrollbar-gutter:stable}
.wa-chat-header{flex:0 0 auto;flex-wrap:wrap}
.wa-compose{flex:0 0 auto}
.wa-center-footer-note{clear:both}
@media(max-width:850px){
 .wa-live-inbox{display:flex;flex-direction:column;height:auto;min-height:0;overflow:visible}
 .wa-inbox-sidebar{height:auto;max-height:260px;min-height:150px;flex:0 0 auto;overflow:hidden}
 .wa-conversation-list{overflow-y:auto;min-height:0;max-height:180px}
 .wa-inbox-chat{display:flex;flex-direction:column;height:65vh;min-height:420px;max-height:720px;overflow:hidden}
 .wa-message-scroll{flex:1 1 auto;height:auto;min-height:0;max-height:none;overflow-y:auto}
 .wa-compose{position:relative;bottom:auto}
}
@media(max-width:560px){
 .wa-inbox-chat{height:65vh;min-height:380px}
 .wa-chat-header{gap:7px}
 .wa-chat-header .btn{font-size:11px;padding:7px}
 .wa-message-scroll{padding:10px}
}


/* V39: Desktop notice delete layout + responsive WhatsApp chat auto-fit */
.notification-list{width:100%;min-width:0}
.notification-item{display:flex;align-items:center;gap:12px;min-width:0;box-sizing:border-box}
.notification-item .notification-main{display:flex;align-items:center;gap:10px;flex:1 1 auto;min-width:0;width:auto}
.notification-item .notification-copy{display:flex;flex:1 1 auto;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}
.notification-item .notification-main>span:not(.notification-dot){display:flex;flex:1 1 auto;flex-direction:column;min-width:0;overflow-wrap:anywhere}
.notification-item b,.notification-item small{white-space:normal;overflow-wrap:anywhere;word-break:normal}
.notification-item .activity-delete-form{position:static;display:flex;flex:0 0 auto;align-items:center;width:auto;max-width:100%;margin:0 0 0 auto}
.notification-item .activity-delete-form .btn{white-space:nowrap;max-width:100%}
.wa-live-inbox{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.wa-inbox-sidebar,.wa-inbox-chat{min-width:0;box-sizing:border-box}
.wa-inbox-chat{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.wa-message-scroll{flex:1 1 0%;min-width:0;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;overflow-wrap:anywhere}
.wa-message-scroll img,.wa-message-scroll video{max-width:100%;height:auto}
.wa-bubble{max-width:min(86%, 680px);min-width:0;overflow-wrap:anywhere;word-break:break-word;box-sizing:border-box}
.wa-compose{display:flex;flex-wrap:wrap;gap:8px;min-width:0;max-width:100%;box-sizing:border-box}
.wa-compose textarea,.wa-compose input{flex:1 1 180px;min-width:0;max-width:100%;box-sizing:border-box}
@media(min-width:851px){
 .wa-live-inbox{height:calc(100vh - 220px);min-height:480px;max-height:900px}
 .wa-inbox-chat{height:100%;min-height:0}
 .wa-message-scroll{height:auto;min-height:0}
}
@media(max-width:850px){
 .notification-item{align-items:flex-start;flex-wrap:wrap}
 .notification-item .notification-main{flex:1 1 100%;width:100%}
 .notification-item .activity-delete-form{margin:4px 0 0 auto;width:auto}
 .wa-live-inbox{height:auto;min-height:0}
 .wa-inbox-chat{height:65vh;min-height:380px;max-height:760px}
 .wa-message-scroll{flex:1 1 0%;height:auto;min-height:0;overflow-y:auto}
}
@media(max-width:560px){
 .notification-item .activity-delete-form .btn{min-height:30px;padding:5px 9px}
 .wa-inbox-chat{height:65dvh;min-height:360px;max-height:700px}
 .wa-bubble{max-width:92%}
}


/* GS Suraha compact contribution reminders: mobile-first layout, preserving desktop table */
/* Reminder + shared data tables: always desktop-style one row per item */
.gs-reminder-table-wrap { width:100%; min-width:0; overflow-x:auto; -webkit-overflow-scrolling:touch; }
.gs-reminder-table { width:100%; }
.gs-reminder-table .inline-form { display:inline-flex; flex-wrap:nowrap; align-items:center; gap:4px; }
.gs-reminder-table .inline-form form { display:inline-flex !important; margin:0; }
.gs-reminder-table .inline-form .btn { white-space:nowrap; }

table.gs-data-table,
table.gs-reminder-table.ml-table,
table.gs-reminder-table{
  display:table!important;
  width:100%!important;
  border-collapse:collapse!important;
  white-space:nowrap!important;
}
table.gs-data-table thead,
table.gs-reminder-table thead{display:table-header-group!important}
table.gs-data-table tbody,
table.gs-reminder-table tbody{display:table-row-group!important}
table.gs-data-table tr,
table.gs-reminder-table tr{
  display:table-row!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  grid-template-columns:none!important;
  box-shadow:none!important;
}
table.gs-data-table th,
table.gs-data-table td,
table.gs-reminder-table th,
table.gs-reminder-table td{
  display:table-cell!important;
  float:none!important;
  flex-direction:row!important;
  grid-column:auto!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
}
table.gs-data-table td::before,
table.gs-reminder-table td::before{content:none!important;display:none!important}

@media (max-width: 900px) {
  table.gs-data-table,
  table.gs-reminder-table{
    min-width:900px!important;
    font-size:11px!important;
  }
}

/* Chat Logs: keep the full inbox scrollable without being covered by fixed navigation. */
.wa-chat-logs-panel { min-width: 0; }
.wa-chat-logs-scroll { max-width: 100%; max-height: min(72vh, 820px); overflow: auto !important; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; }
.wa-chat-logs-scroll table { min-width: 780px; }
.wa-chat-logs-scroll td { vertical-align: top; }
.wa-chat-logs-scroll td:nth-child(6) { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 760px) {
  .wa-chat-logs-panel { margin-bottom: 110px !important; }
  .wa-chat-logs-scroll { max-height: 68vh; padding-bottom: 12px; }
  .wa-chat-logs-scroll table { min-width: 700px; }
  body { scroll-padding-bottom: 110px; }
}


/* GS Suraha V42: responsive auto-fit for desktop, tablet and mobile */
*,*::before,*::after{box-sizing:border-box}
html{width:100%;max-width:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{width:100%;max-width:100%;min-width:0;overflow-x:hidden}
img,video,canvas,iframe{max-width:100%}
input,select,textarea,button{max-width:100%;font:inherit}
.page,.main,.panel,.card,.hero,.panel-head,.page-title,.grid-2,.grid-3,.kpis,.settings-grid,.profile-grid{min-width:0;max-width:100%}
.grid-2,.grid-3,.settings-grid,.profile-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
.grid-3 .span2,.span2,.settings-grid .span2{grid-column:auto}
.table-wrap{width:100%;max-width:100%;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch}
table{max-width:100%}
.inline-form,.panel-head,.page-title{flex-wrap:wrap}
.inline-form>*{min-width:0}
@media(max-width:850px){
 .main{width:calc(100% - 70px);min-width:0}
 .page{width:100%;padding-left:clamp(8px,2.5vw,15px);padding-right:clamp(8px,2.5vw,15px)}
 .panel{padding:clamp(10px,2.5vw,18px)}
 .kpis{grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr))}
 .hero{width:100%;min-width:0;flex-wrap:wrap}
}
@media(max-width:560px){
 .main{margin-left:0;width:100%;padding-bottom:env(safe-area-inset-bottom)}
 .sidebar{z-index:30}
 .topbar{gap:8px;padding-left:10px;padding-right:10px;min-width:0}
 .top-user{min-width:0;gap:5px}
 .page{padding:12px 8px 28px}
 .panel{padding:12px;border-radius:13px}
 .panel-head{align-items:flex-start}
 .kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .kpi{padding:11px;min-width:0}
 .kpi b{font-size:clamp(15px,4.5vw,22px);overflow-wrap:anywhere}
 .quick{grid-template-columns:repeat(2,minmax(0,1fr))}
 .profile-grid{grid-template-columns:minmax(0,1fr)}
 .settings-grid{grid-template-columns:minmax(0,1fr)}
 .stamp-aff-wrap{width:100%!important;max-width:100%!important;overflow:hidden}
 .stamp-page{width:100%!important;max-width:100%!important;height:auto!important;aspect-ratio:215.9/279.4}
 .stamp-cont{width:100%!important;max-width:100%!important;padding:18px 14px!important;font-size:11pt;line-height:1.5}
 .stamp-cont .sig{grid-template-columns:minmax(0,1fr);gap:18px}
}


/* GS Suraha V43: desktop/tablet layout correction. Preserve intended span2 panels. */
@media (min-width: 1201px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-2 > .span2, .grid-3 > .span2,
  .settings-grid > .span2 { grid-column: 1 / -1; }
  .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 851px) and (max-width: 1200px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 > .span2, .grid-3 > .span2,
  .settings-grid > .span2 { grid-column: 1 / -1; }
  .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .grid-2, .grid-3, .settings-grid, .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-2 > .span2, .grid-3 > .span2, .settings-grid > .span2 { grid-column: 1 / -1; }
  .page-title { align-items: flex-start; gap: 12px; }
  .page-title > * { min-width: 0; }
  .table-wrap { overflow-x: auto !important; }
  .table-wrap table { width: max-content; min-width: 100%; }
  .table-wrap td, .table-wrap th { overflow-wrap: anywhere; }
}
@media (min-width: 851px) {
  .main { min-width: 0; }
  .page { width: 100%; }
  .panel, .hero, .page-title, .grid-2, .grid-3, .settings-grid, .profile-grid { min-width: 0; }
  .panel-head { min-width: 0; }
  .panel-head > * { min-width: 0; }
}

/* V48: repair mobile Notifications Summary card sizing and date wrapping */
.notification-list{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-content:start!important;gap:8px!important;width:100%!important;min-width:0!important}
.notification-item{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;max-height:none!important;box-sizing:border-box!important;overflow:hidden!important}
.notification-item>a.notification-main{display:grid!important;grid-template-columns:30px minmax(0,1fr) 16px!important;align-items:center!important;gap:8px!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;text-decoration:none!important}
.notification-item>a.notification-main>span:nth-child(2),.notification-item .notification-copy{display:flex!important;flex-direction:column!important;min-width:0!important;width:100%!important;max-width:100%!important;overflow:hidden!important}
.notification-item b{display:block!important;min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;line-height:1.35!important}
.notification-item small{display:block!important;min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;line-height:1.4!important;-webkit-line-clamp:unset!important;overflow:visible!important}
.notification-item em{display:block!important;min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;font-size:10px!important;line-height:1.35!important;font-style:normal!important}
.notification-item strong{justify-self:end!important;white-space:nowrap!important}
.notification-item .activity-delete-form{align-self:center!important;min-width:0!important;max-width:100%!important}
.notification-item .activity-delete-form .btn{white-space:nowrap!important}
@media(max-width:600px){
 .panel:has(>.panel-head h2){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
 .notification-list{gap:7px!important}
 .notification-item{grid-template-columns:minmax(0,1fr) auto!important;padding:9px!important;gap:6px!important}
 .notification-item>a.notification-main{grid-template-columns:28px minmax(0,1fr) 12px!important;gap:7px!important}
 .notification-dot{flex-shrink:0!important}
 .notification-item b{font-size:12px!important}
 .notification-item small{font-size:11px!important}
 .notification-item em{font-size:10px!important;letter-spacing:normal!important;word-spacing:normal!important}
 .notification-item .activity-delete-form .btn{font-size:10px!important;padding:5px 6px!important}
 body{padding-bottom:calc(86px + env(safe-area-inset-bottom, 0px))!important}
}

/* Account password visibility and desktop EMI UTR form repair */
.password-field-wrap{display:flex;align-items:center;gap:8px;width:100%;min-width:0}
.password-field-wrap input{flex:1 1 auto;min-width:0}
.password-field-wrap .btn{flex:0 0 auto;white-space:nowrap}
.pay-form input[name="payment_utr"],.emi-pay-form input[name="payment_utr"]{width:100%;max-width:none;min-width:0;box-sizing:border-box}
.emi-payment-box .emi-pay-form{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:8px 12px;align-items:center;flex:1 1 100%;width:100%;min-width:0}
.emi-payment-box .emi-pay-form label{min-width:0;margin:0}
.emi-payment-box .emi-pay-form input{width:100%;max-width:none;min-width:0;box-sizing:border-box;margin:0}
.emi-payment-box .emi-pay-form small{min-width:0;overflow-wrap:anywhere}
.emi-payment-box .emi-pay-form button{white-space:normal}
@media(max-width:850px){.emi-payment-box .emi-pay-form{grid-template-columns:minmax(0,1fr)}.emi-payment-box .emi-pay-form input,.emi-payment-box .emi-pay-form button{width:100%;max-width:none}.emi-payment-box .emi-pay-form small{grid-column:1}}

.pay-form{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:100%;max-width:680px;min-width:0}.pay-form label{display:block}.pay-form input[name="payment_utr"]{width:100%;max-width:none;min-width:0;box-sizing:border-box}

/* Make the login password visibility control obvious on desktop and mobile. */
.login-input .password-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:104px;min-height:36px;padding:7px 10px;border:1px solid #b8c9e5;border-radius:9px;background:#f3f7ff;color:#174ea6;font-size:12px;font-weight:800;white-space:nowrap;cursor:pointer}
.login-input .password-toggle:focus-visible{outline:3px solid #65a2ff;outline-offset:2px}

/* Final ID-card back-side QR alignment: center it in the body column on screen and print.
   Overrides legacy translateY rules that placed the code too close to the top edge. */
.id-card-page .id-back .id-back-body{display:grid!important;align-items:center!important}
.id-card-page .id-back .id-back-body>.id-qr-box{align-self:center!important;justify-self:center!important;transform:none!important;margin:0 auto!important}

/* Phone-style WhatsApp navigation: show either the chat list or the active thread. */
.wa-mobile-back{display:none;align-items:center;gap:4px;text-decoration:none;color:#1768b2;font-weight:800;white-space:nowrap}
@media(max-width:560px){
  .wa-center-page .wa-live-inbox{display:flex!important;flex-direction:column!important;gap:0!important;min-height:0!important;height:auto!important;border:1px solid #dfe6ed!important;border-radius:14px!important;overflow:hidden!important;background:#f5f8fb!important}
  .wa-center-page .wa-inbox-sidebar{height:auto!important;max-height:calc(100dvh - 260px)!important;min-height:220px!important;border:0!important;border-radius:0!important}
  .wa-center-page .wa-conversation-list{max-height:none!important;min-height:0!important;flex:1 1 auto!important;overflow-y:auto!important}
  .wa-center-page .wa-live-inbox[data-has-selected="1"] .wa-inbox-sidebar{display:none!important}
  .wa-center-page .wa-live-inbox[data-has-selected="0"] .wa-inbox-chat{display:none!important}
  .wa-center-page .wa-live-inbox[data-has-selected="1"] .wa-inbox-chat{display:flex!important;width:100%!important;height:calc(100dvh - 250px)!important;min-height:360px!important;max-height:760px!important;border:0!important;border-radius:0!important}
  .wa-center-page .wa-chat-header{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;padding:10px!important;min-height:60px!important}
  .wa-center-page .wa-mobile-back{display:inline-flex!important;font-size:12px!important}
  .wa-center-page .wa-chat-header .wa-avatar.big{width:38px!important;height:38px!important;flex-basis:38px!important}
  .wa-center-page .wa-chat-header .wa-avatar.big img{width:38px!important;height:38px!important}
  .wa-center-page .wa-chat-header>div:nth-of-type(2){flex:1 1 auto!important;min-width:0!important;overflow:hidden!important}
  .wa-center-page .wa-chat-header>div:nth-of-type(2) b{max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .wa-center-page .wa-chat-status,.wa-center-page .wa-chat-header>a.btn{display:none!important}
  .wa-center-page .wa-chat-header form{flex:0 0 auto!important}
  .wa-center-page .wa-chat-header form .btn{padding:7px!important;font-size:10px!important}
  .wa-center-page .wa-message-scroll{padding:12px 10px!important;background-color:#efeae2!important}
  .wa-center-page .wa-bubble{max-width:88%!important;padding:8px 10px!important;border-radius:12px!important}
  .wa-center-page .wa-bubble.in{border-top-left-radius:4px!important}
  .wa-center-page .wa-bubble.out{border-top-right-radius:4px!important}
  .wa-center-page .wa-compose{display:flex!important;flex-wrap:nowrap!important;align-items:flex-end!important;gap:7px!important;padding:9px!important;padding-bottom:max(9px,env(safe-area-inset-bottom))!important}
  .wa-center-page .wa-compose textarea{flex:1 1 auto!important;min-width:0!important;min-height:42px!important;max-height:100px!important;border-radius:20px!important;padding:11px 13px!important}
  .wa-center-page .wa-compose .btn{flex:0 0 auto!important;min-width:54px!important;height:42px!important;border-radius:22px!important;padding:8px 12px!important}
}

/* Keep both ID-card faces within 54mm; the back's old 31mm body clipped its footer. */
@media print{
  .id-card-page .id-back{display:flex!important;flex-direction:column!important}
  .id-card-page .id-back .id-back-head{flex:0 0 12.5mm!important;height:12.5mm!important;min-height:12.5mm!important;max-height:12.5mm!important;box-sizing:border-box!important}
  .id-card-page .id-back .id-back-body{flex:0 0 28mm!important;height:28mm!important;min-height:28mm!important;max-height:28mm!important;box-sizing:border-box!important;display:grid!important;align-items:center!important;overflow:hidden!important}
  .id-card-page .id-back .id-signatures{flex:0 0 8.5mm!important;height:8.5mm!important;min-height:8.5mm!important;max-height:8.5mm!important;box-sizing:border-box!important}
  .id-card-page .id-back .id-card-foot{flex:0 0 5mm!important;height:5mm!important;min-height:5mm!important;max-height:5mm!important;box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:space-between!important;overflow:visible!important;white-space:nowrap!important;z-index:2!important}
}
/* Replace edge-clipped decorative arcs with a subtle, fully contained card background. */
.id-card-page .id-card:before{inset:0!important;border-radius:inherit!important;background:radial-gradient(72% 58% at 100% 100%,rgba(30,136,229,.08),transparent 72%),radial-gradient(68% 55% at 0% 0%,rgba(255,153,0,.07),transparent 72%),linear-gradient(135deg,transparent 0 82%,rgba(35,117,190,.045) 82% 100%)!important}

/* V62: Mobile-safe WhatsApp Center layout. Keep the full page in normal document flow;
   do not depend on :has() or fixed-position chat panels, which can render as a blank screen
   on some mobile browsers/webviews. */
@media(max-width:850px){
 .wa-center-page{display:block!important;visibility:visible!important;opacity:1!important;position:relative!important;inset:auto!important;transform:none!important;height:auto!important;min-height:0!important;overflow:visible!important;z-index:auto!important}
 .wa-center-page .wa-hero,.wa-center-page .wa-stat-grid,.wa-center-page .wa-tabs,.wa-center-page .wa-content,.wa-center-page .wa-center-footer-note{visibility:visible!important;opacity:1!important}
 .wa-center-page .wa-hero,.wa-center-page .wa-stat-grid,.wa-center-page .wa-tabs,.wa-center-page .wa-content{display:grid!important;position:relative!important;height:auto!important;max-height:none!important}
 .wa-center-page .wa-hero{display:flex!important;}
 .wa-center-page .wa-tabs{display:flex!important;}
 .wa-center-page .wa-live-inbox{display:flex!important;position:relative!important;inset:auto!important;z-index:auto!important;width:100%!important;height:auto!important;min-height:320px!important;max-height:none!important;margin:0 0 14px!important;overflow:hidden!important;transform:none!important}
 .wa-center-page .wa-inbox-sidebar{display:flex!important;flex-direction:column!important;width:100%!important;max-height:none!important;min-height:240px!important;height:auto!important;flex:1 1 auto!important}
 .wa-center-page .wa-inbox-chat{display:flex!important;flex-direction:column!important;width:100%!important;height:auto!important;min-height:320px!important;max-height:none!important;flex:1 1 auto!important}
 .wa-center-page .wa-live-inbox[data-has-selected="1"] .wa-inbox-sidebar{display:none!important}
 .wa-center-page .wa-live-inbox[data-has-selected="0"] .wa-inbox-chat{display:none!important}
 .wa-center-page .wa-live-inbox[data-has-selected="1"] .wa-inbox-chat{display:flex!important}
 .wa-center-page .wa-message-scroll{flex:1 1 auto!important;height:auto!important;min-height:160px!important;max-height:none!important;overflow-y:auto!important}
}

/* V56 FINAL MEMBER CARD: mixed tricolour header/footer with visible curved footer arcs. */
.id-card-page .id-card{position:relative;background:linear-gradient(135deg,#fffaf3 0%,#ffffff 48%,#f4fbf4 100%)!important}
.id-card-page .id-card-head,.id-card-page .id-back-head{background:linear-gradient(120deg,#ff9933 0%,#ffd9a8 22%,#ffffff 46%,#dcefdc 70%,#138808 100%)!important;color:#17324d!important}
.id-card-page .id-back{background:linear-gradient(135deg,#fffaf3 0%,#ffffff 48%,#f4fbf4 100%)!important}
.id-card-page .id-back-body{background:linear-gradient(135deg,rgba(255,244,228,.82),rgba(255,255,255,.75) 48%,rgba(225,244,229,.86))!important}
.id-card-page .id-card:before{inset:0!important;background:radial-gradient(90% 68% at 8% 108%,transparent 58%,rgba(255,153,0,.86) 59%,rgba(255,153,0,.86) 61%,transparent 62%),radial-gradient(100% 74% at 92% 108%,transparent 59%,rgba(19,136,8,.82) 60%,rgba(19,136,8,.82) 62%,transparent 63%),radial-gradient(72% 50% at 50% 115%,transparent 64%,rgba(255,255,255,.96) 65%,rgba(255,255,255,.96) 66%,transparent 67%)!important}
.id-card-page .id-card-foot{position:relative!important;overflow:hidden!important;background:linear-gradient(120deg,#ff9933 0%,#ffd9a8 22%,#ffffff 46%,#dcefdc 70%,#138808 100%)!important;color:#17324d!important;border-top:0!important;text-shadow:0 1px 1px rgba(255,255,255,.55)}
.id-card-page .id-card-foot:after{content:"";display:block!important;position:absolute!important;inset:0!important;pointer-events:none!important;z-index:0!important;background:radial-gradient(120% 150% at 0% 130%,transparent 62%,rgba(255,153,0,.72) 63%,rgba(255,153,0,.72) 66%,transparent 67%),radial-gradient(120% 150% at 100% 130%,transparent 62%,rgba(19,136,8,.70) 63%,rgba(19,136,8,.70) 66%,transparent 67%),radial-gradient(90% 120% at 50% 135%,transparent 66%,rgba(255,255,255,.92) 67%,rgba(255,255,255,.92) 69%,transparent 70%)!important}
.id-card-page .id-card-foot>span,.id-card-page .id-card-foot>b{position:relative!important;z-index:1!important;color:#17324d!important}

/* V57 login member selector: keep checkbox and label on one line. */
.login-page .login-member-check{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;width:100%!important;margin:0 0 14px!important;padding:10px 12px!important;border:1px solid #dbe3ef!important;border-radius:10px!important;background:#f7faff!important;color:#18345d!important;font-weight:800!important;line-height:20px!important;cursor:pointer!important}
.login-page .login-member-check input[type="checkbox"]{display:block!important;flex:0 0 17px!important;width:17px!important;height:17px!important;margin:0!important;padding:0!important;accent-color:#1769d1!important}
.login-page .login-member-check span{display:block!important;margin:0!important;line-height:20px!important}

/* V57 FINAL: Keep Remember Me checkbox and text on one horizontal line. */
.login-page .remember-login{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;width:100%!important;margin:12px 0 0!important;padding:8px 2px!important;color:#52677f!important;font-size:12px!important;line-height:20px!important;white-space:normal!important;cursor:pointer!important}
.login-page .remember-login input[type="checkbox"]{display:block!important;flex:0 0 17px!important;width:17px!important;height:17px!important;margin:0!important;padding:0!important;accent-color:#1769d1!important}
.login-page .remember-login::before,.login-page .remember-login::after{display:none!important;content:none!important}

/* V58 settings safety: branding controls remain usable on small screens. */
.branding-settings .branding-preview img{max-width:100%;height:86px;object-fit:contain;background:#fff;border:1px solid #e1e8f0;border-radius:12px;padding:6px}
.branding-settings .branding-preview{display:flex;flex-direction:column;gap:6px;justify-content:center}


/* V61: Ensure WhatsApp Center is directly reachable on phones and its page fits narrow screens. */
@media (max-width:850px){
  .mobile-bottom-nav{overflow-x:auto;overflow-y:hidden;justify-content:flex-start;gap:2px;-webkit-overflow-scrolling:touch}
  .mobile-bottom-nav a{flex:1 0 52px;min-width:0;padding:3px 2px}
  .mobile-bottom-nav a b{white-space:nowrap;font-size:9px}
  .wa-center-page{width:100%;max-width:100%;min-width:0;overflow-x:hidden}
  .wa-center-page .wa-hero,.wa-center-page .wa-stat-grid,.wa-center-page .wa-tabs,.wa-center-page .wa-content{min-width:0;max-width:100%}
  .wa-center-page .wa-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;gap:7px;padding-bottom:5px}
  .wa-center-page .wa-tabs a{flex:0 0 auto;min-width:max-content;white-space:nowrap}
  .wa-center-page .wa-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wa-center-page .wa-content{grid-template-columns:minmax(0,1fr)}
  .wa-center-page .wa-content>*{min-width:0;max-width:100%}
}
@media (max-width:390px){
  .mobile-bottom-nav a{flex-basis:48px}
  .mobile-bottom-nav a b{font-size:8px}
  .wa-center-page .wa-hero{padding:13px!important}
  .wa-center-page .wa-tabs a{padding:9px 11px;font-size:11px}
  .wa-center-page .wa-stat{padding:10px!important}
  .wa-center-page .wa-stat b{font-size:19px!important}
}


/* V64: On phones keep both the conversation list and the selected chat visible,
   matching the desktop inbox workflow. Stack the list above the chat for narrow screens. */
@media (max-width: 850px) {
  .wa-center-page .wa-live-inbox {
    display: flex !important; flex-direction: column !important; align-items: stretch !important;
    height: auto !important; min-height: 0 !important; max-height: none !important;
    overflow: visible !important; gap: 0 !important;
  }
  .wa-center-page .wa-live-inbox .wa-inbox-sidebar,
  .wa-center-page .wa-live-inbox[data-has-explicit-chat="0"] .wa-inbox-sidebar,
  .wa-center-page .wa-live-inbox[data-has-explicit-chat="1"] .wa-inbox-sidebar,
  .wa-center-page .wa-live-inbox[data-has-selected="0"] .wa-inbox-sidebar,
  .wa-center-page .wa-live-inbox[data-has-selected="1"] .wa-inbox-sidebar {
    display: flex !important; visibility: visible !important; flex: 0 0 auto !important;
    width: 100% !important; height: 250px !important; min-height: 180px !important;
    max-height: 250px !important; overflow: hidden !important; border-right: 0 !important;
    border-bottom: 1px solid #e6ebf2 !important;
  }
  .wa-center-page .wa-live-inbox .wa-conversation-list {
    display: block !important; flex: 1 1 auto !important; min-height: 0 !important;
    max-height: none !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch !important;
  }
  .wa-center-page .wa-live-inbox .wa-inbox-chat,
  .wa-center-page .wa-live-inbox[data-has-explicit-chat="0"] .wa-inbox-chat,
  .wa-center-page .wa-live-inbox[data-has-explicit-chat="1"] .wa-inbox-chat,
  .wa-center-page .wa-live-inbox[data-has-selected="0"] .wa-inbox-chat,
  .wa-center-page .wa-live-inbox[data-has-selected="1"] .wa-inbox-chat {
    display: flex !important; visibility: visible !important; flex: 0 0 auto !important;
    width: 100% !important; height: auto !important; min-height: 420px !important;
    max-height: none !important; overflow: hidden !important;
  }
  .wa-center-page .wa-live-inbox .wa-mobile-back { display: none !important; }
  .wa-center-page .wa-live-inbox .wa-chat-header { display: flex !important; }
  .wa-center-page .wa-live-inbox .wa-message-scroll {
    display: block !important; flex: 1 1 auto !important; height: 300px !important;
    min-height: 220px !important; max-height: 45vh !important; overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .wa-center-page .wa-live-inbox .wa-compose { flex: 0 0 auto !important; }
}


/* V65: WhatsApp inbox keeps the chat list beside the active conversation on mobile. */
@media (max-width: 850px) {
  .wa-center-page .wa-live-inbox { display:flex!important; flex-direction:row!important; align-items:stretch!important; width:100%!important; min-width:0!important; height:520px!important; min-height:520px!important; max-height:70vh!important; overflow:hidden!important; gap:0!important; }
  .wa-center-page .wa-live-inbox .wa-inbox-sidebar,
  .wa-center-page .wa-live-inbox[data-has-explicit-chat="0"] .wa-inbox-sidebar,
  .wa-center-page .wa-live-inbox[data-has-explicit-chat="1"] .wa-inbox-sidebar,
  .wa-center-page .wa-live-inbox[data-has-selected="0"] .wa-inbox-sidebar,
  .wa-center-page .wa-live-inbox[data-has-selected="1"] .wa-inbox-sidebar { display:flex!important; visibility:visible!important; flex:0 0 34%!important; width:34%!important; min-width:0!important; height:100%!important; min-height:0!important; max-height:none!important; overflow:hidden!important; border-right:1px solid #e6ebf2!important; border-bottom:0!important; }
  .wa-center-page .wa-live-inbox .wa-inbox-head { padding:8px 5px!important; gap:3px!important; flex-wrap:wrap!important; }
  .wa-center-page .wa-live-inbox .wa-inbox-head b { font-size:12px!important; }
  .wa-center-page .wa-live-inbox .wa-inbox-head small { font-size:9px!important; overflow-wrap:anywhere!important; }
  .wa-center-page .wa-live-inbox .wa-inbox-search { padding:5px!important; }
  .wa-center-page .wa-live-inbox .wa-inbox-search input { width:100%!important; min-width:0!important; padding:7px 5px!important; font-size:11px!important; }
  .wa-center-page .wa-live-inbox .wa-conversation-list { display:block!important; flex:1 1 auto!important; min-height:0!important; max-height:none!important; overflow-y:auto!important; overflow-x:hidden!important; -webkit-overflow-scrolling:touch!important; }
  .wa-center-page .wa-live-inbox .wa-conversation { display:flex!important; gap:5px!important; padding:8px 5px!important; min-width:0!important; }
  .wa-center-page .wa-live-inbox .wa-avatar { width:28px!important; height:28px!important; min-width:28px!important; flex:0 0 28px!important; font-size:11px!important; }
  .wa-center-page .wa-live-inbox .wa-avatar img { width:28px!important; height:28px!important; }
  .wa-center-page .wa-live-inbox .wa-conv-body { min-width:0!important; width:calc(100% - 33px)!important; }
  .wa-center-page .wa-live-inbox .wa-conv-top { display:block!important; min-width:0!important; }
  .wa-center-page .wa-live-inbox .wa-conv-top b { display:block!important; max-width:100%!important; font-size:10px!important; white-space:nowrap!important; overflow:hidden!important; text-overflow:ellipsis!important; }
  .wa-center-page .wa-live-inbox .wa-conv-top small { display:block!important; font-size:8px!important; white-space:nowrap!important; overflow:hidden!important; }
  .wa-center-page .wa-live-inbox .wa-conv-bottom span { display:block!important; max-width:100%!important; font-size:9px!important; white-space:nowrap!important; overflow:hidden!important; text-overflow:ellipsis!important; }
  .wa-center-page .wa-live-inbox .wa-inbox-chat,
  .wa-center-page .wa-live-inbox[data-has-explicit-chat="0"] .wa-inbox-chat,
  .wa-center-page .wa-live-inbox[data-has-explicit-chat="1"] .wa-inbox-chat,
  .wa-center-page .wa-live-inbox[data-has-selected="0"] .wa-inbox-chat,
  .wa-center-page .wa-live-inbox[data-has-selected="1"] .wa-inbox-chat { display:flex!important; visibility:visible!important; flex:1 1 66%!important; width:66%!important; min-width:0!important; height:100%!important; min-height:0!important; max-height:none!important; overflow:hidden!important; border:0!important; border-radius:0!important; }
  .wa-center-page .wa-live-inbox .wa-mobile-back { display:none!important; }
  .wa-center-page .wa-live-inbox .wa-chat-header { display:flex!important; flex-wrap:wrap!important; gap:4px!important; padding:7px 5px!important; min-width:0!important; }
  .wa-center-page .wa-live-inbox .wa-chat-header .wa-avatar.big { width:26px!important; height:26px!important; flex:0 0 26px!important; }
  .wa-center-page .wa-live-inbox .wa-chat-header .wa-avatar.big img { width:26px!important; height:26px!important; }
  .wa-center-page .wa-live-inbox .wa-chat-header>div:nth-of-type(2) { flex:1 1 calc(100% - 34px)!important; min-width:0!important; }
  .wa-center-page .wa-live-inbox .wa-chat-header>div:nth-of-type(2) b { display:block!important; font-size:10px!important; white-space:nowrap!important; overflow:hidden!important; text-overflow:ellipsis!important; }
  .wa-center-page .wa-live-inbox .wa-chat-header>div:nth-of-type(2) small { display:block!important; font-size:8px!important; overflow-wrap:anywhere!important; }
  .wa-center-page .wa-live-inbox .wa-chat-status,.wa-center-page .wa-live-inbox .wa-chat-header>a.btn { display:none!important; }
  .wa-center-page .wa-live-inbox .wa-chat-header form { display:none!important; }
  .wa-center-page .wa-live-inbox .wa-message-scroll { display:block!important; flex:1 1 auto!important; width:100%!important; height:auto!important; min-height:0!important; max-height:none!important; padding:8px 5px!important; overflow-y:auto!important; overflow-x:hidden!important; -webkit-overflow-scrolling:touch!important; }
  .wa-center-page .wa-live-inbox .wa-bubble { max-width:96%!important; padding:7px!important; font-size:11px!important; overflow-wrap:anywhere!important; }
  .wa-center-page .wa-live-inbox .wa-meta { font-size:8px!important; }
  .wa-center-page .wa-live-inbox .wa-compose { display:flex!important; flex:0 0 auto!important; flex-wrap:nowrap!important; gap:4px!important; padding:5px!important; }
  .wa-center-page .wa-live-inbox .wa-compose textarea { flex:1 1 auto!important; min-width:0!important; width:1px!important; padding:8px 7px!important; font-size:11px!important; }
  .wa-center-page .wa-live-inbox .wa-compose .btn { flex:0 0 auto!important; min-width:42px!important; padding:7px 6px!important; font-size:10px!important; }
}


/* V72: Keep the WhatsApp conversation list visible beside the active chat on phones.
   Earlier list-first and side-by-side overrides conflicted and could hide the sidebar. */
@media (max-width: 850px) {
  .wa-center-page .wa-live-inbox {
    display: flex !important; flex-direction: row !important; align-items: stretch !important;
    width: 100% !important; min-width: 0 !important; height: min(70dvh, 640px) !important;
    min-height: 380px !important; max-height: 640px !important; overflow: hidden !important;
    gap: 0 !important; position: relative !important;
  }
  .wa-center-page .wa-live-inbox .wa-inbox-sidebar,
  .wa-center-page .wa-live-inbox[data-has-selected="0"] .wa-inbox-sidebar,
  .wa-center-page .wa-live-inbox[data-has-selected="1"] .wa-inbox-sidebar {
    display: flex !important; visibility: visible !important; flex: 0 0 38% !important;
    width: 38% !important; min-width: 118px !important; max-width: 220px !important;
    height: 100% !important; min-height: 0 !important; max-height: none !important;
    overflow: hidden !important; border-right: 1px solid #e6ebf2 !important;
    border-bottom: 0 !important; order: 0 !important;
  }
  .wa-center-page .wa-live-inbox .wa-conversation-list {
    display: block !important; flex: 1 1 auto !important; min-height: 0 !important;
    max-height: none !important; overflow-y: auto !important; overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .wa-center-page .wa-live-inbox .wa-inbox-chat,
  .wa-center-page .wa-live-inbox[data-has-selected="0"] .wa-inbox-chat,
  .wa-center-page .wa-live-inbox[data-has-selected="1"] .wa-inbox-chat {
    display: flex !important; visibility: visible !important; flex: 1 1 62% !important;
    width: 62% !important; min-width: 0 !important; height: 100% !important;
    min-height: 0 !important; max-height: none !important; overflow: hidden !important;
    border: 0 !important; border-radius: 0 !important; order: 1 !important;
  }
  .wa-center-page .wa-live-inbox .wa-mobile-back { display: none !important; }
}
@media (max-width: 420px) {
  .wa-center-page .wa-live-inbox .wa-inbox-sidebar,
  .wa-center-page .wa-live-inbox[data-has-selected="0"] .wa-inbox-sidebar,
  .wa-center-page .wa-live-inbox[data-has-selected="1"] .wa-inbox-sidebar {
    flex-basis: 40% !important; width: 40% !important; min-width: 112px !important;
  }
  .wa-center-page .wa-live-inbox .wa-inbox-chat,
  .wa-center-page .wa-live-inbox[data-has-selected="0"] .wa-inbox-chat,
  .wa-center-page .wa-live-inbox[data-has-selected="1"] .wa-inbox-chat { flex-basis: 60% !important; width: 60% !important; }
}


/* V83: mobile slogan aligned to the right; keep social links compact */
@media(max-width:720px){
 .home-top{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:8px!important;}
 .home-top-left{flex:1 1 auto!important;min-width:0!important;gap:7px!important;}
 .home-top-right{display:flex!important;flex:0 0 auto!important;justify-content:flex-end!important;align-items:center!important;margin-left:auto!important;gap:0!important;white-space:nowrap!important;}
 .home-top-right strong{display:block!important;text-align:right!important;font-size:12px!important;line-height:1.25!important;color:#fff!important;}
 .home-top-right span{display:none!important;}
}


/* V86 NOTICE ROTATION FIX: one-by-one ticker with reliable visibility */
.notice-ticker .notice-track{position:relative!important;overflow:hidden!important;width:100%!important;}
.notice-ticker .notice-slide{position:absolute!important;left:0!important;top:0!important;display:none!important;opacity:0!important;visibility:hidden!important;animation:none!important;transition:none!important;}
.notice-ticker .notice-slide.active{display:flex!important;opacity:1!important;visibility:visible!important;}
.notice-ticker .notice-slide span{width:max-content!important;max-width:none!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;}

/* V95: modern desktop login presentation; authentication markup and actions remain unchanged. */
.login-page .login-wrap{grid-template-columns:minmax(420px,1fr) minmax(430px,520px);gap:clamp(36px,6vw,110px);max-width:1450px;margin:0 auto;place-items:center;align-items:center;padding:42px clamp(28px,5vw,86px);}
.login-page .login-showcase{display:block;color:#fff;max-width:700px;padding:18px 0;text-align:left;text-shadow:0 2px 18px rgba(0,0,0,.18)}
.login-showcase-logo{width:220px;height:150px;object-fit:contain;display:block;margin:0 0 14px;filter:drop-shadow(0 12px 20px rgba(0,0,0,.25))}
.login-showcase-brand{font-size:clamp(30px,3.2vw,54px);font-weight:900;line-height:1.05;letter-spacing:.5px}.login-showcase-eyebrow{font-size:15px;letter-spacing:5px;margin-top:13px;color:#bfe0ff;font-weight:800}.login-showcase h2{font-size:clamp(28px,3vw,46px);margin:48px 0 12px;line-height:1.08}.login-showcase p{max-width:620px;color:#d2e1fa;font-size:18px;line-height:1.55;margin:0}.login-trust-grid{display:flex;gap:20px;margin-top:42px}.login-trust-grid>div{display:flex;align-items:center;gap:10px;min-width:145px}.login-trust-grid b{display:grid;place-items:center;width:38px;height:38px;border:2px solid #39a8ff;border-radius:50%;color:#fff;font-size:21px;box-shadow:0 0 18px #168cff}.login-trust-grid span{font-weight:800;font-size:14px}.login-trust-grid small{display:block;color:#b9d0ed;font-size:11px;font-weight:400;margin-top:3px}.login-page .login-card{width:100%;max-width:520px;padding:38px 36px 30px;background:rgba(255,255,255,.96);box-shadow:0 30px 80px rgba(0,0,0,.35)}
@media(max-width:900px){.login-page .login-wrap{grid-template-columns:1fr;gap:15px;padding:22px 15px}.login-page .login-showcase{display:none}.login-page .login-card{max-width:520px}}

/* V96: use the generated demo-style background and keep the login page clean without a notice ticker. */
.login-page{background:#061a43 url('login-background.png') center center/cover fixed no-repeat!important;}
.login-page .login-wrap{background:linear-gradient(90deg,rgba(3,22,61,.10),rgba(4,20,58,.28))!important;}
@media(max-width:900px){.login-page{background-position:center center!important;background-attachment:scroll!important}.login-page .login-wrap{background:linear-gradient(180deg,rgba(3,22,61,.18),rgba(4,20,58,.28))!important;}}

/* V97: mobile login screen styled to match the supplied GS Suraha reference. */
.login-page{min-height:100vh;background-color:#061a43;background-image:url('login-background.png')!important;background-position:center center!important;background-size:cover!important;background-repeat:no-repeat!important;background-attachment:fixed!important;}
.login-page .login-wrap{box-sizing:border-box;min-height:100vh;}
.login-mobile-masthead{display:none}
.login-notice-bar{display:none;align-items:center;gap:12px;min-height:66px;width:min(100%,1250px);margin:0 auto 6px;padding:10px 18px;border:1.5px solid #21df89;border-radius:18px;background:linear-gradient(100deg,rgba(0,124,80,.96),rgba(0,73,88,.92));color:#fff;box-shadow:0 9px 28px rgba(0,0,0,.22);overflow:hidden;}
.login-notice-icon{flex:0 0 auto;display:grid;place-items:center;width:42px;height:42px;border-right:1px solid rgba(255,255,255,.36);font-size:22px;padding-right:12px;}
.login-notice-label{flex:0 0 auto;font-size:17px;white-space:nowrap;padding-right:13px;border-right:1px solid rgba(255,255,255,.36)}
.login-notice-window{position:relative;min-width:0;overflow:hidden;flex:1;white-space:nowrap;}
.login-notice-track{display:flex;width:max-content;animation:loginNoticeScroll 48s linear infinite;will-change:transform}
.login-notice-bar:hover .login-notice-track{animation-play-state:paused}
.login-notice-item{display:inline-flex;align-items:center;min-height:38px;padding:0 34px;font-size:16px;color:#fff;border-right:1px solid rgba(255,255,255,.22)}
@keyframes loginNoticeScroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.login-mobile-masthead img{object-fit:contain;filter:drop-shadow(0 8px 16px rgba(0,0,0,.28))}
@media(max-width:900px){
  .login-page .login-notice-bar{display:flex!important}
  .login-page{background-position:center center!important;background-size:auto 100vh!important;background-attachment:scroll!important;}
  .login-page .login-wrap{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:center!important;gap:14px!important;min-height:100svh!important;padding:22px 16px 38px!important;background:linear-gradient(180deg,rgba(1,22,58,.06),rgba(3,17,51,.10))!important;}
  .login-page .login-showcase{display:none!important}
  .login-mobile-masthead{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;color:#fff;text-align:center;text-shadow:0 2px 8px rgba(0,0,0,.35);}
  .login-mobile-masthead img{width:142px;height:120px;object-fit:contain;margin:0 auto 1px;}
  .login-mobile-masthead b{display:block;font-size:clamp(20px,5.5vw,32px);font-weight:900;line-height:1.1;letter-spacing:.3px;text-transform:uppercase;}
  .login-mobile-masthead small{display:block;margin-top:5px;font-size:12px;font-weight:700;letter-spacing:5px;color:#c5dcff;}
  .login-notice-bar{width:100%;min-height:58px;margin:4px 0 2px;padding:7px 10px;gap:9px;border-radius:15px;}
  .login-notice-icon{width:34px;height:36px;padding-right:8px;font-size:19px;}
  .login-notice-label{font-size:13px;padding-right:8px;white-space:normal;line-height:1.2;max-width:112px;}
  .login-notice-item{min-height:36px;padding:0 20px;font-size:13px;}
  .login-page .login-card{width:100%!important;max-width:560px!important;box-sizing:border-box!important;padding:27px clamp(20px,6vw,44px) 24px!important;border:1px solid rgba(255,255,255,.82)!important;border-radius:30px!important;background:rgba(247,251,255,.97)!important;box-shadow:0 18px 55px rgba(0,13,43,.30),inset 0 0 20px rgba(255,255,255,.55)!important;}
  .login-page .login-brand{display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;margin-bottom:13px;}
  .login-page .login-logo{width:98px!important;height:98px!important;margin:0 auto 3px!important;border-radius:50%!important;border:2px solid #79bcff!important;box-shadow:0 4px 15px rgba(13,75,160,.18)!important;}
  .login-page .login-brand span{font-size:clamp(17px,4.7vw,25px)!important;font-weight:900!important;line-height:1.15!important;color:#0a1743!important;text-transform:uppercase!important;text-align:center!important;}
  .login-page .login-card>.eyebrow{display:block!important;text-align:center!important;color:#536b93!important;letter-spacing:4px!important;margin:4px 0 20px!important;}
  .login-page .login-card h1{font-size:30px!important;color:#111c4b!important;margin:7px 0 3px!important;}
  .login-page .login-subtitle{font-size:14px!important;margin:0 0 21px!important;color:#63738f!important;}
  .login-page .login-input{height:68px!important;border-radius:13px!important;background:#f4f8fd!important;padding:0 13px!important;}
  .login-page .login-input input{height:62px!important;font-size:16px!important;}
  .login-page .login-input>span{font-size:20px!important;color:#1757a7!important;}
  .login-page .remember-login{font-size:14px!important;line-height:1.4!important;margin-top:14px!important;}
  .login-page .login-submit{height:64px!important;border-radius:40px!important;margin-top:17px!important;font-size:23px!important;background:linear-gradient(100deg,#10bd60,#075fe4)!important;border:0!important;box-shadow:0 9px 22px rgba(8,115,175,.22)!important;}
  .login-page .login-card>a[href*="route=home"]{font-size:16px!important;color:#075fc5!important;margin:18px 0!important;}
  .login-page .login-card a[href*="wa.me"]{min-height:64px!important;border-radius:40px!important;background:linear-gradient(100deg,#078e48,#08a947)!important;font-size:17px!important;font-weight:800!important;box-shadow:0 7px 17px rgba(0,112,55,.18)!important;}
  .login-page .login-secure{font-size:12px!important;margin-top:12px!important;color:#667995!important;}
}
@media(max-width:420px){
  .login-page .login-wrap{padding:14px 12px 28px!important;gap:10px!important;}
  .login-mobile-masthead img{width:116px;height:100px;}
  .login-mobile-masthead b{font-size:20px;}
  .login-mobile-masthead small{font-size:10px;letter-spacing:4px;}
  .login-notice-bar{min-height:52px;padding:6px 8px;gap:7px;}
  .login-notice-label{font-size:11px;max-width:95px;}
  .login-notice-item{font-size:12px;padding:0 15px;}
  .login-page .login-card{padding:22px 17px 20px!important;border-radius:25px!important;}
  .login-page .login-logo{width:82px!important;height:82px!important;}
  .login-page .login-card h1{font-size:27px!important;}
}
@media(prefers-reduced-motion:reduce){.login-notice-track{animation:none!important;}}


/* V98: 3D desktop login composition matching the supplied 16:9 reference. */
@media(min-width:901px){
 .login-page{background-color:#061943!important;background-image:linear-gradient(180deg,rgba(0,12,45,.04),rgba(1,10,38,.10)),url('login-background.png')!important;background-position:center center!important;background-size:cover!important;background-repeat:no-repeat!important;background-attachment:fixed!important;overflow-x:hidden}
 .login-page .login-wrap{position:relative;isolation:isolate;display:grid!important;grid-template-columns:minmax(0,1.16fr) minmax(480px,.84fr)!important;align-items:center!important;justify-content:center!important;gap:clamp(28px,4.4vw,76px)!important;width:100%!important;max-width:1672px!important;min-height:100vh!important;margin:0 auto!important;padding:36px clamp(36px,5vw,86px) 76px!important;background:transparent!important}
 .login-page .login-showcase{display:flex!important;flex-direction:column;align-items:center;justify-content:center;width:100%;max-width:800px;margin:0 auto;padding:0;color:#fff;text-align:center;text-shadow:0 3px 18px rgba(0,0,0,.34)}
 .login-page .login-showcase-logo{width:min(100%,410px);height:225px;object-fit:contain;margin:0 auto -6px;filter:drop-shadow(0 12px 14px rgba(0,0,0,.42)) drop-shadow(0 0 13px rgba(0,117,255,.45))}
 .login-page .login-showcase-brand{font-size:clamp(38px,3.45vw,61px);font-weight:950;line-height:1.04;letter-spacing:.1px;color:#f7fbff;-webkit-text-stroke:.4px #fff;text-shadow:0 3px 0 #8ca4c7,0 7px 15px rgba(0,0,0,.52)}
 .login-page .login-showcase-eyebrow{font-size:clamp(14px,1.25vw,21px);letter-spacing:clamp(4px,.65vw,10px);margin:14px 0 0;color:#d6e7ff;font-weight:800;text-shadow:0 2px 9px #00194a}
 .login-page .login-hindi-motto{display:flex;flex-direction:column;align-items:center;margin:19px 0 2px;font-size:clamp(28px,2.65vw,44px);font-weight:900;line-height:1.28;text-shadow:0 3px 10px rgba(0,0,0,.46)}
 .login-page .login-hindi-motto span{color:#fff}.login-page .login-hindi-motto b{color:#ffed19;font-weight:950}
 .login-page .login-hindi-motto i{width:210px;height:5px;margin-top:9px;border-radius:50%;background:linear-gradient(90deg,transparent,#ffec00 25% 75%,transparent);transform:rotate(-3deg);box-shadow:0 0 12px #ffd900}
 .login-page .login-trust-grid.login-trust-grid-4{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;justify-items:center;gap:clamp(8px,1.5vw,24px);width:100%;margin:24px 0 0}
 .login-page .login-trust-grid-4>div{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;min-width:0;text-align:center}
 .login-page .login-trust-grid-4>div>b{display:grid;place-items:center;width:66px;height:66px;border:1px solid rgba(104,203,255,.75);border-radius:50%;background:linear-gradient(145deg,#0d86ff,#0648c9);box-shadow:0 9px 18px rgba(0,10,50,.36),inset 0 2px 5px rgba(255,255,255,.4),0 0 20px rgba(8,140,255,.48);font-size:29px;text-shadow:none}
 .login-page .login-trust-grid-4>div>span{font-size:clamp(12px,1.08vw,17px);font-weight:700;line-height:1.14;text-shadow:0 2px 7px #00133c}
 .login-page .login-trust-grid-4 small{display:block;margin-top:2px;color:#e3efff;font-size:inherit;font-weight:600}
 .login-page .login-card{position:relative;z-index:1;width:100%!important;max-width:640px!important;margin:0 auto!important;padding:29px clamp(26px,3vw,46px) 25px!important;border:2px solid rgba(255,255,255,.94)!important;border-radius:38px!important;background:linear-gradient(145deg,rgba(255,255,255,.99),rgba(239,246,255,.97))!important;box-shadow:0 28px 0 rgba(1,17,54,.24),0 42px 90px rgba(0,0,0,.42),inset 0 2px 0 #fff,inset 0 -8px 22px rgba(34,103,190,.08)!important}
 .login-page .login-brand{margin:0 0 7px}
 .login-page .login-logo{width:112px!important;height:112px!important;margin:0 auto 8px!important;border:2px solid #8cc9ff!important;border-radius:50%!important;object-fit:contain!important;background:radial-gradient(circle at 35% 25%,#17366e,#050e2d 72%)!important;padding:9px!important;box-shadow:0 7px 16px rgba(7,42,108,.24),inset 0 3px 7px rgba(255,255,255,.2)!important}
 .login-page .login-brand span{font-size:clamp(20px,1.55vw,28px)!important;letter-spacing:.25px!important;color:#0a1743!important;margin-top:0!important;font-weight:950!important}
 .login-page .login-card>.eyebrow{display:block!important;text-align:center!important;color:#354e79!important;letter-spacing:5px!important;margin:5px 0 8px!important;font-size:12px!important}
 .login-page .login-card h1{color:#101a48!important;font-size:34px!important;margin:6px 0 0!important}
 .login-page .login-subtitle{font-size:16px!important;margin:0 0 15px!important;color:#536a8a!important}
 .login-page .login-card label:not(.remember-login){margin:9px 0 5px!important;font-size:13px!important}
 .login-page .login-input{height:66px!important;border-radius:13px!important;background:linear-gradient(180deg,#f8fbff,#edf3f9)!important;border:1px solid #c5d1e0!important;box-shadow:inset 0 2px 4px rgba(12,39,82,.06),0 2px 0 rgba(255,255,255,.8)!important;padding:0 15px!important}
 .login-page .login-input input{font-size:16px!important;height:62px!important}
 .login-page .login-input>span{font-size:21px!important;color:#145cae!important}
 .login-page .password-toggle{font-size:0!important;min-width:30px!important;color:#46668f!important}
 .login-page .password-toggle:after{content:'◉';font-size:21px}
 .login-page .remember-login{margin:8px 0 0!important;font-size:13px!important;color:#182b54!important}
 .login-page .remember-login input{width:18px!important;height:18px!important;accent-color:#0878ed}
 .login-page .login-submit{height:60px!important;border:0!important;border-radius:36px!important;margin-top:14px!important;background:linear-gradient(105deg,#0bbb56 0%,#079c7d 47%,#075deb 100%)!important;box-shadow:0 8px 18px rgba(0,121,183,.24),inset 0 2px 1px rgba(255,255,255,.34),inset 0 -3px 5px rgba(0,20,90,.16)!important;font-size:22px!important}
 .login-page .login-card>a[href*="route=home"]{margin:12px 0!important;font-size:14px!important;color:#1261bb!important}
 .login-page .login-card a[href*="wa.me"]{min-height:58px!important;border-radius:34px!important;background:linear-gradient(105deg,#079342,#04a74e)!important;box-shadow:0 8px 17px rgba(0,105,48,.23),inset 0 2px 1px rgba(255,255,255,.34),inset 0 -3px 5px rgba(0,40,20,.14)!important;font-size:17px!important}
 .login-page .login-secure{font-size:12px!important;margin-top:12px!important;color:#566d8c!important}
 .login-page .login-screen-footer{position:fixed;left:0;right:0;bottom:13px;z-index:0;text-align:center;color:#e0edff;font-size:14px;letter-spacing:5px;text-shadow:0 2px 12px #00113a;font-weight:700}
 .login-page .login-notice-bar{display:none!important}
}
@media(max-width:900px){
 .login-page .login-screen-footer{display:none!important}
 .login-page .login-showcase{display:none!important}
 .login-page .login-card{max-width:560px!important}
}


/* V99: final spacing and emblem refinements for the 16:9 login reference. */
@media(min-width:901px){
 .login-page .login-showcase-logo{width:min(100%,450px)!important;height:250px!important;margin:0 auto -13px!important;object-fit:contain!important;filter:drop-shadow(0 17px 20px rgba(0,0,0,.42)) drop-shadow(0 0 17px rgba(0,120,255,.48))!important}
 .login-page .login-showcase-brand{font-size:clamp(35px,2.9vw,49px)!important;white-space:nowrap!important;letter-spacing:-.5px!important;transform:scaleX(.91);}
 .login-page .login-showcase-eyebrow{margin-top:11px!important;}
 .login-page .login-hindi-motto{margin-top:15px!important;font-size:clamp(27px,2.5vw,41px)!important;}
 .login-page .login-trust-grid.login-trust-grid-4{margin-top:19px!important;}
 .login-page .login-trust-grid-4>div>b{width:62px!important;height:62px!important;}
 .login-page .login-card{padding-top:24px!important;padding-bottom:21px!important;border-radius:38px!important;}
 .login-page .login-logo{width:104px!important;height:104px!important;margin-bottom:5px!important;}
 .login-page .login-card h1{font-size:32px!important;}
 .login-page .login-subtitle{margin-bottom:12px!important;}
 .login-page .login-input{height:62px!important;}
 .login-page .login-input input{height:58px!important;}
 .login-page .login-submit{height:56px!important;}
}

/* V100: clean mobile login focus with a modern raised card. */
@media(max-width:900px){
 .login-page .login-mobile-masthead,
 .login-page .login-notice-bar{display:none!important}
 .login-page .login-wrap{justify-content:center!important;align-items:center!important;min-height:100svh!important;padding:22px 14px 28px!important;gap:0!important}
 .login-page .login-card{position:relative!important;isolation:isolate!important;border:1px solid rgba(255,255,255,.98)!important;border-bottom:4px solid #b9c9dd!important;border-radius:28px!important;background:linear-gradient(145deg,rgba(255,255,255,.99) 0%,rgba(239,246,255,.98) 58%,rgba(226,237,251,.98) 100%)!important;box-shadow:0 8px 0 rgba(3,23,62,.18),0 22px 58px rgba(0,10,42,.42),inset 0 2px 0 #fff,inset 0 -8px 20px rgba(27,86,154,.09)!important;transform:translateY(-3px)!important}
 .login-page .login-card:before{content:"";position:absolute;inset:0 9% auto;height:2px;border-radius:50%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.98),transparent);z-index:-1}
 .login-page .login-logo{box-shadow:0 7px 0 rgba(12,45,103,.10),0 12px 22px rgba(12,45,103,.24),inset 0 3px 7px rgba(255,255,255,.3)!important}
 .login-page .login-input{background:linear-gradient(180deg,#fbfdff,#eaf1f8)!important;border:1px solid #bccde0!important;box-shadow:inset 0 3px 6px rgba(16,45,88,.08),0 2px 0 rgba(255,255,255,.95)!important}
 .login-page .login-submit{background:linear-gradient(105deg,#09b955 0%,#078c83 48%,#075ee8 100%)!important;box-shadow:0 6px 0 #064ba9,0 12px 24px rgba(8,88,182,.28),inset 0 2px 1px rgba(255,255,255,.42),inset 0 -3px 5px rgba(0,22,89,.20)!important;transform:translateY(-2px)!important}
 .login-page .login-card a[href*="wa.me"]{border:1px solid #07a348!important;box-shadow:0 5px 0 #08793e,0 12px 20px rgba(0,102,49,.22),inset 0 2px 1px rgba(255,255,255,.38)!important;transform:translateY(-2px)!important}
 .login-page .login-screen-footer{display:none!important}
}

/* V101: compact, viewport-fitted login form on mobile and desktop. */
@media(min-width:901px){
 .login-page .login-card{max-width:min(620px,40vw)!important;padding-top:19px!important;padding-bottom:18px!important;}
 .login-page .login-logo{width:94px!important;height:94px!important;margin-bottom:3px!important;}
 .login-page .login-brand{margin-bottom:4px!important;}
 .login-page .login-card h1{font-size:30px!important;}
 .login-page .login-subtitle{font-size:14px!important;margin-bottom:9px!important;}
 .login-page .login-card label:not(.remember-login){margin:6px 0 4px!important;}
 .login-page .login-input{height:54px!important;min-height:54px!important;}
 .login-page .login-input input{height:50px!important;}
 .login-page .login-submit{height:51px!important;margin-top:10px!important;font-size:20px!important;}
 .login-page .login-card>a[href*="route=home"]{margin:8px 0!important;}
 .login-page .login-card a[href*="wa.me"]{min-height:50px!important;margin-top:8px!important;font-size:15px!important;}
 .login-page .login-secure{margin-top:8px!important;}
}
@media(max-width:900px){
 .login-page .login-wrap{min-height:100svh!important;padding:10px 12px 16px!important;}
 .login-page .login-card{width:100%!important;max-width:500px!important;padding:16px 18px 16px!important;border-radius:25px!important;}
 .login-page .login-brand{margin-bottom:5px!important;gap:5px!important;}
 .login-page .login-logo{width:72px!important;height:72px!important;margin-bottom:1px!important;padding:6px!important;}
 .login-page .login-brand span{font-size:18px!important;line-height:1.08!important;}
 .login-page .login-card>.eyebrow{font-size:10px!important;margin:3px 0 7px!important;letter-spacing:3.5px!important;}
 .login-page .login-card h1{font-size:25px!important;margin:4px 0 0!important;}
 .login-page .login-subtitle{font-size:12px!important;margin:0 0 10px!important;}
 .login-page .login-card label:not(.remember-login){margin:6px 0 4px!important;font-size:12px!important;}
 .login-page .login-input{height:49px!important;min-height:49px!important;padding:0 10px!important;gap:8px!important;border-radius:11px!important;}
 .login-page .login-input input{height:45px!important;font-size:14px!important;padding:6px 2px!important;}
 .login-page .login-input>span{font-size:17px!important;}
 .login-page .password-toggle{font-size:0!important;min-width:26px!important;padding:5px!important;}
 .login-page .password-toggle:after{content:'◉';font-size:18px;}
 .login-page .remember-login{font-size:11px!important;line-height:1.25!important;margin:6px 0 0!important;padding:4px 2px!important;}
 .login-page .remember-login input{width:15px!important;height:15px!important;}
 .login-page .login-submit{height:48px!important;min-height:48px!important;margin-top:10px!important;font-size:18px!important;}
 .login-page .login-card>a[href*="route=home"]{margin:9px 0!important;font-size:13px!important;}
 .login-page .login-card .or{margin:0 0 8px!important;font-size:11px!important;}
 .login-page .login-card a[href*="wa.me"]{min-height:47px!important;height:auto!important;margin-top:6px!important;padding:8px 10px!important;font-size:12px!important;line-height:1.2!important;}
 .login-page .login-secure{font-size:10px!important;margin-top:8px!important;}
}
@media(max-width:900px) and (max-height:780px){
 .login-page .login-wrap{padding-top:6px!important;padding-bottom:6px!important;}
 .login-page .login-card{padding-top:11px!important;padding-bottom:11px!important;}
 .login-page .login-logo{width:60px!important;height:60px!important;}
 .login-page .login-card h1{font-size:22px!important;}
 .login-page .login-subtitle{margin-bottom:6px!important;}
 .login-page .login-input{height:44px!important;min-height:44px!important;}
 .login-page .login-input input{height:40px!important;}
 .login-page .login-submit{height:43px!important;min-height:43px!important;}
 .login-page .login-card a[href*="wa.me"]{min-height:42px!important;}
}

/* V102: Option 2 polish and true viewport fit without page scrolling. */
.login-page{box-sizing:border-box!important;height:100vh!important;height:100svh!important;min-height:100vh!important;min-height:100svh!important;padding:0!important;margin:0!important;overflow:hidden!important;background-color:#061943!important;background-size:cover!important;background-position:center center!important;background-repeat:no-repeat!important;background-attachment:fixed!important}
.login-page .login-wrap{box-sizing:border-box!important;height:100vh!important;height:100svh!important;min-height:100vh!important;min-height:100svh!important;max-height:100vh!important;max-height:100svh!important;overflow:hidden!important}
@media(min-width:901px){
 .login-page .login-wrap{padding:18px clamp(30px,4.6vw,78px) 56px!important;gap:clamp(24px,4vw,68px)!important}
 .login-page .login-showcase{max-height:calc(100svh - 66px)!important}
 .login-page .login-card{max-height:calc(100svh - 52px)!important;overflow:hidden!important}
}
@media(min-width:901px) and (max-height:800px){
 .login-page .login-wrap{padding-top:12px!important;padding-bottom:44px!important}
 .login-page .login-showcase-logo{height:190px!important;width:min(100%,380px)!important}
 .login-page .login-showcase-brand{font-size:clamp(34px,2.7vw,45px)!important}
 .login-page .login-hindi-motto{margin-top:10px!important;font-size:clamp(24px,2.25vw,34px)!important}
 .login-page .login-trust-grid.login-trust-grid-4{margin-top:12px!important}
 .login-page .login-trust-grid-4>div>b{width:52px!important;height:52px!important;font-size:24px!important}
 .login-page .login-card{padding-top:12px!important;padding-bottom:12px!important}
 .login-page .login-logo{width:76px!important;height:76px!important}
 .login-page .login-card h1{font-size:26px!important}
 .login-page .login-subtitle{margin-bottom:6px!important}
 .login-page .login-input{height:47px!important;min-height:47px!important}
 .login-page .login-input input{height:43px!important}
 .login-page .login-submit{height:44px!important}
 .login-page .login-card a[href*="wa.me"]{min-height:42px!important}
}
@media(max-width:900px){
 .login-page{background-position:center center!important}
 .login-page .login-wrap{padding:8px 12px!important;justify-content:center!important;align-items:center!important}
 .login-page .login-card{max-height:calc(100svh - 16px)!important;overflow:hidden!important}
}
@media(max-width:900px) and (max-height:680px){
 .login-page .login-wrap{padding:5px 10px!important}
 .login-page .login-card{max-height:calc(100svh - 10px)!important;padding-top:8px!important;padding-bottom:8px!important}
 .login-page .login-logo{width:50px!important;height:50px!important}
 .login-page .login-brand span{font-size:16px!important}
 .login-page .login-card>.eyebrow{margin:2px 0 4px!important}
 .login-page .login-card h1{font-size:20px!important}
 .login-page .login-subtitle{margin-bottom:4px!important}
 .login-page .login-card label:not(.remember-login){margin:4px 0 2px!important}
 .login-page .login-input{height:40px!important;min-height:40px!important}
 .login-page .login-input input{height:36px!important}
 .login-page .remember-login{margin:3px 0 0!important}
 .login-page .login-submit{height:39px!important;min-height:39px!important;margin-top:6px!important}
 .login-page .login-card>a[href*="route=home"]{margin:5px 0!important}
 .login-page .login-card .or{margin:0 0 4px!important}
 .login-page .login-card a[href*="wa.me"]{min-height:36px!important;margin-top:4px!important}
 .login-page .login-secure{margin-top:4px!important}
}


/* V103: pale-blue reference card + stable notice scrollers after legacy overrides. */
.login-page .login-card{background:linear-gradient(145deg,#e7f0ff 0%,#f5f9ff 38%,#e5effd 100%)!important;border-color:rgba(255,255,255,.98)!important;}
.login-page .login-card .login-input{background:linear-gradient(180deg,#f5f8fd,#e9f1fa)!important;}
.notice-ticker .notice-viewport{position:relative!important;overflow:hidden!important;white-space:nowrap!important;}
.notice-ticker .notice-slide,.notice-ticker .notice-slide.active{animation:none!important;transition:none!important;transform:translate3d(0,0,0);width:max-content!important;max-width:none!important;white-space:nowrap!important;will-change:transform!important;}
.notice-ticker .notice-slide.active{opacity:1!important;visibility:visible!important;display:flex!important;}
.notice-ticker .notice-slide span{width:max-content!important;max-width:none!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;}
.home-page .home-notices{position:relative!important;overflow:hidden!important;}
.home-page .home-notice-track{display:block!important;position:relative!important;animation:none!important;transition:transform .65s ease!important;will-change:transform!important;}
.home-page .home-notice{box-sizing:border-box!important;overflow:hidden!important;}
@media(max-width:720px){.home-page .home-notices{display:block!important;overflow:hidden!important;max-height:none!important;padding-top:0!important;padding-bottom:0!important}.home-page .home-notice-track{animation:none!important}}


/* V104: no-ring emblem, frosted login card, and always-moving home notice marquee. */
.login-page .login-card{background:linear-gradient(145deg,rgba(232,241,255,.84) 0%,rgba(246,250,255,.78) 42%,rgba(225,237,253,.84) 100%)!important;backdrop-filter:blur(20px) saturate(140%)!important;-webkit-backdrop-filter:blur(20px) saturate(140%)!important;border:1.5px solid rgba(255,255,255,.94)!important;}
.login-page .login-logo{width:150px!important;height:82px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;object-fit:contain!important;}
@media(max-width:900px){.login-page .login-logo{width:112px!important;height:62px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;}}
@keyframes gsHomeNoticeMarquee{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}
.home-page .home-notices{height:66px!important;max-height:66px!important;min-height:66px!important;position:relative!important;display:block!important;overflow:hidden!important;white-space:nowrap!important;padding:0!important;}
.home-page .home-notice-track{height:66px!important;min-height:66px!important;display:flex!important;align-items:stretch!important;flex-flow:row nowrap!important;gap:0!important;width:max-content!important;max-width:none!important;animation:gsHomeNoticeMarquee 34s linear infinite!important;transition:none!important;will-change:transform!important;}
.home-page .home-notice{display:flex!important;flex:0 0 max(100vw,760px)!important;width:max(100vw,760px)!important;min-width:max(100vw,760px)!important;max-width:none!important;height:66px!important;min-height:66px!important;max-height:66px!important;box-sizing:border-box!important;align-items:center!important;gap:12px!important;white-space:nowrap!important;overflow:hidden!important;padding:8px 24px!important;border:0!important;border-right:1px solid rgba(10,73,46,.18)!important;}
.home-page .home-notice>div{display:flex!important;flex:0 0 auto!important;align-items:center!important;gap:10px!important;min-width:0!important;white-space:nowrap!important;}
.home-page .home-notice-icon{flex:0 0 auto!important;font-size:21px!important;}
.home-page .home-notice b{display:inline-block!important;flex:0 0 auto!important;white-space:nowrap!important;font-size:15px!important;}
.home-page .home-notice p{display:inline-block!important;flex:0 0 auto!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;margin:0!important;font-size:13px!important;}
.home-page .home-notice p br{display:none!important;}
.home-page .home-notice time{display:inline-block!important;flex:0 0 auto!important;white-space:nowrap!important;margin-left:auto!important;}
.home-page .home-notice-copy{aria-hidden:true;}
.home-page .home-notice-track:hover{animation-play-state:paused!important;}


/* V105: public pages are not login screens; allow normal desktop/document scrolling. */
body.public-page{box-sizing:border-box!important;height:auto!important;min-height:100vh!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;margin:0!important;padding:0!important;background:#f5fbf7!important;background-attachment:scroll!important;}
/* Keep the homepage ticker visibly moving for a single short notice as well as a full feed. */
.home-page .home-notice-track{animation:gsHomeNoticeMarquee 24s linear infinite!important;}
.home-page .home-notice{flex:0 0 max-content!important;width:max-content!important;min-width:max-content!important;max-width:none!important;}


/* V106: unified modern visual system for Member, Admin and Staff dashboards. */
body.authenticated-page.role-admin .sidebar,
body.authenticated-page.role-staff .sidebar,
body.authenticated-page.role-member .sidebar{
  background:radial-gradient(circle at 100% 0%,rgba(25,118,210,.26),transparent 30%),linear-gradient(180deg,#0c2148 0%,#102b58 58%,#0b3e4c 100%)!important;
  color:#fff!important;border-right:1px solid rgba(255,255,255,.08)!important;box-shadow:8px 0 28px rgba(10,29,61,.12)!important
}
body.authenticated-page.role-admin .sidebar .brand,
body.authenticated-page.role-staff .sidebar .brand,
body.authenticated-page.role-member .sidebar .brand{background:linear-gradient(145deg,#102b58,#0b2148)!important}
body.authenticated-page.role-admin .sidebar .brand b,
body.authenticated-page.role-staff .sidebar .brand b,
body.authenticated-page.role-member .sidebar .brand b{color:#fff!important;text-shadow:none!important}
body.authenticated-page.role-admin .sidebar .brand small,
body.authenticated-page.role-staff .sidebar .brand small,
body.authenticated-page.role-member .sidebar .brand small{color:#c4d5ee!important}
body.authenticated-page.role-admin .sidebar .brand:after,
body.authenticated-page.role-staff .sidebar .brand:after,
body.authenticated-page.role-member .sidebar .brand:after{background:linear-gradient(90deg,#12b981,#3b82f6)!important;height:3px!important}
body.authenticated-page.role-admin .sidebar nav a,
body.authenticated-page.role-staff .sidebar nav a,
body.authenticated-page.role-member .sidebar nav a{color:#dce8f8!important;text-shadow:none!important;border-radius:12px!important}
body.authenticated-page.role-admin .sidebar nav a.active,
body.authenticated-page.role-staff .sidebar nav a.active,
body.authenticated-page.role-member .sidebar nav a.active{background:linear-gradient(100deg,rgba(20,184,129,.28),rgba(59,130,246,.18))!important;color:#fff!important;box-shadow:inset 0 0 0 1px rgba(156,220,255,.15)!important}
body.authenticated-page.role-admin .sidebar nav a:hover,
body.authenticated-page.role-staff .sidebar nav a:hover,
body.authenticated-page.role-member .sidebar nav a:hover{background:rgba(255,255,255,.09)!important;color:#fff!important}
body.authenticated-page.role-admin .side-bottom,
body.authenticated-page.role-staff .side-bottom,
body.authenticated-page.role-member .side-bottom{border-color:rgba(255,255,255,.12)!important}
body.authenticated-page.role-admin .online,
body.authenticated-page.role-staff .online,
body.authenticated-page.role-member .online{color:#76e2b2!important;text-shadow:none!important}
body.authenticated-page.role-admin .topbar,
body.authenticated-page.role-staff .topbar,
body.authenticated-page.role-member .topbar{background:rgba(255,255,255,.96)!important;border-bottom:1px solid #e5ebf3!important;border-image:none!important;box-shadow:0 4px 18px rgba(17,38,69,.04)!important}
body.authenticated-page.role-admin .page,
body.authenticated-page.role-staff .page,
body.authenticated-page.role-member .page{padding-top:24px!important}
body.authenticated-page.role-admin .modern-dashboard-hero,
body.authenticated-page.role-staff .modern-dashboard-hero,
body.authenticated-page.role-member .member-hero{
  position:relative!important;overflow:hidden!important;border:1px solid rgba(41,83,130,.10)!important;border-radius:22px!important;
  background:linear-gradient(120deg,#f8fbff 0%,#edf5ff 52%,#eaf8f1 100%)!important;color:#102440!important;
  box-shadow:0 12px 32px rgba(17,47,86,.09)!important;padding:24px 26px!important;margin-bottom:18px!important
}
body.authenticated-page.role-admin .modern-dashboard-hero:after,
body.authenticated-page.role-staff .modern-dashboard-hero:after,
body.authenticated-page.role-member .member-hero:after{content:"";position:absolute;right:-60px;top:-100px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(22,119,255,.10),transparent 70%);pointer-events:none}
body.authenticated-page.role-admin .modern-dashboard-hero h1,
body.authenticated-page.role-staff .modern-dashboard-hero h1,
body.authenticated-page.role-member .member-hero h1{color:#102440!important;font-size:clamp(24px,2.2vw,34px)!important;line-height:1.18!important}
body.authenticated-page.role-admin .modern-dashboard-hero p,
body.authenticated-page.role-staff .modern-dashboard-hero p,
body.authenticated-page.role-member .member-hero p{color:#5b6e86!important}
body.authenticated-page.role-admin .modern-dashboard-hero .eyebrow,
body.authenticated-page.role-staff .modern-dashboard-hero .eyebrow,
body.authenticated-page.role-member .member-hero .eyebrow{color:#14775c!important;letter-spacing:1.5px!important}
body.authenticated-page.role-admin .modern-dashboard-hero .btn.light,
body.authenticated-page.role-staff .modern-dashboard-hero .btn.light,
body.authenticated-page.role-member .member-hero .btn.light{background:linear-gradient(110deg,#0c9a66,#0879c9)!important;border:0!important;color:#fff!important;box-shadow:0 8px 18px rgba(10,135,109,.18)!important}
body.authenticated-page.role-member .member-hero .member-code{background:#fff!important;color:#15436b!important;border:1px solid #dbe8f4!important;border-radius:999px!important}
body.authenticated-page.role-admin .modern-kpis,body.authenticated-page.role-staff .modern-kpis{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}
body.authenticated-page.role-member .kpis{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}
body.authenticated-page.role-admin .modern-kpis .kpi,
body.authenticated-page.role-staff .modern-kpis .kpi,
body.authenticated-page.role-member .kpis .kpi{border:1px solid #e5ebf3!important;border-radius:17px!important;background:linear-gradient(145deg,#fff,#fbfdff)!important;box-shadow:0 7px 20px rgba(19,48,82,.06)!important;padding:16px!important;transition:transform .18s ease,box-shadow .18s ease}
body.authenticated-page.role-admin .modern-kpis .kpi:hover,
body.authenticated-page.role-staff .modern-kpis .kpi:hover,
body.authenticated-page.role-member .kpis .kpi:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(19,48,82,.10)!important}
body.authenticated-page.role-admin .modern-kpis .kpi b,
body.authenticated-page.role-staff .modern-kpis .kpi b,
body.authenticated-page.role-member .kpis .kpi b{font-size:clamp(18px,1.65vw,24px)!important;color:#122949!important;line-height:1.15!important;overflow-wrap:anywhere}
body.authenticated-page.role-admin .modern-kpis .kpi span,
body.authenticated-page.role-staff .modern-kpis .kpi span,
body.authenticated-page.role-member .kpis .kpi span{color:#62748b!important;font-size:12px!important;line-height:1.35!important}
body.authenticated-page.role-admin .modern-kpis .kpi small,
body.authenticated-page.role-staff .modern-kpis .kpi small,
body.authenticated-page.role-member .kpis .kpi small{color:#8291a6!important;font-size:10px!important;line-height:1.4!important}
body.authenticated-page.role-admin .panel,
body.authenticated-page.role-staff .panel,
body.authenticated-page.role-member .panel{border:1px solid #e6ecf3!important;border-radius:18px!important;box-shadow:0 7px 22px rgba(18,43,75,.055)!important}
body.authenticated-page.role-admin .panel-head h2,
body.authenticated-page.role-staff .panel-head h2,
body.authenticated-page.role-member .panel-head h2{color:#132d4c!important}
body.authenticated-page.role-admin .financial-snapshot-panel,
body.authenticated-page.role-staff .financial-snapshot-panel{background:linear-gradient(145deg,#fff,#f7fbff)!important}
body.authenticated-page.role-admin .financial-flow-card,
body.authenticated-page.role-staff .financial-flow-card{border-radius:14px!important;border:1px solid #e5edf5!important;box-shadow:0 4px 14px rgba(15,51,79,.04)!important}
body.authenticated-page.role-admin .financial-flow-card.highlight,
body.authenticated-page.role-staff .financial-flow-card.highlight{background:linear-gradient(130deg,#e5f8ee,#eaf4ff)!important}
body.authenticated-page.role-admin .recent-activity-item,
body.authenticated-page.role-staff .recent-activity-item{border-radius:12px!important;transition:background .15s ease,transform .15s ease}
body.authenticated-page.role-admin .recent-activity-item:hover,
body.authenticated-page.role-staff .recent-activity-item:hover{background:#f5f9ff!important;transform:translateX(2px)}
body.authenticated-page.role-member .member-home-feed{border:1px solid #dcebe5!important;border-radius:16px!important;box-shadow:0 7px 20px rgba(9,70,39,.07)!important}
body.authenticated-page.role-member .member-home-feed-head{background:linear-gradient(105deg,#0c7350,#1378b8)!important}
body.authenticated-page.role-member .quick a{border-radius:14px!important;border:1px solid #e5ebf3!important;background:linear-gradient(145deg,#fff,#f6faff)!important;padding:15px!important;box-shadow:0 4px 14px rgba(17,47,86,.04)!important}
body.authenticated-page.role-member .quick a:hover{background:#effaf5!important;border-color:#a9ddc6!important}
body.authenticated-page.role-admin .feature-card,
body.authenticated-page.role-staff .feature-card{border-radius:15px!important;border:1px solid #e6edf5!important;box-shadow:0 4px 14px rgba(18,43,75,.04)!important;transition:transform .16s ease,box-shadow .16s ease!important}
body.authenticated-page.role-admin .feature-card:hover,
body.authenticated-page.role-staff .feature-card:hover{transform:translateY(-2px)!important;box-shadow:0 10px 22px rgba(18,43,75,.09)!important}
@media(max-width:1200px){body.authenticated-page.role-admin .modern-kpis,body.authenticated-page.role-staff .modern-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:850px){
 body.authenticated-page.role-admin .page,body.authenticated-page.role-staff .page,body.authenticated-page.role-member .page{padding:14px 12px 26px!important}
 body.authenticated-page.role-admin .modern-kpis,body.authenticated-page.role-staff .modern-kpis,body.authenticated-page.role-member .kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 body.authenticated-page.role-admin .modern-dashboard-hero,body.authenticated-page.role-staff .modern-dashboard-hero,body.authenticated-page.role-member .member-hero{padding:17px!important;border-radius:18px!important;gap:12px!important}
 body.authenticated-page.role-admin .modern-dashboard-hero .btn,body.authenticated-page.role-staff .modern-dashboard-hero .btn,body.authenticated-page.role-member .member-hero .btn{width:100%!important}
 body.authenticated-page.role-admin .modern-dashboard-hero h1,body.authenticated-page.role-staff .modern-dashboard-hero h1,body.authenticated-page.role-member .member-hero h1{font-size:22px!important}
 body.authenticated-page.role-admin .panel,body.authenticated-page.role-staff .panel,body.authenticated-page.role-member .panel{padding:15px!important;border-radius:15px!important}
 body.authenticated-page.role-admin .financial-flow-grid,body.authenticated-page.role-staff .financial-flow-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:560px){
 body.authenticated-page.role-admin .modern-kpis .kpi,body.authenticated-page.role-staff .modern-kpis .kpi,body.authenticated-page.role-member .kpis .kpi{padding:12px!important;min-width:0!important}
 body.authenticated-page.role-admin .modern-kpis .kpi b,body.authenticated-page.role-staff .modern-kpis .kpi b,body.authenticated-page.role-member .kpis .kpi b{font-size:18px!important}
 body.authenticated-page.role-admin .modern-dashboard-hero .dashboard-welcome,body.authenticated-page.role-staff .modern-dashboard-hero .dashboard-welcome,body.authenticated-page.role-member .member-hero-main{align-items:flex-start!important;gap:10px!important}
 body.authenticated-page.role-admin .modern-dashboard-hero .dashboard-welcome-logo{width:46px!important;height:46px!important}
 body.authenticated-page.role-member .member-hero-main .dashboard-avatar{width:54px!important;height:54px!important;object-fit:cover!important}
 body.authenticated-page.role-member .member-hero .hero-actions{display:grid!important;grid-template-columns:1fr!important;width:100%!important}
 body.authenticated-page.role-admin .financial-flow-card,body.authenticated-page.role-staff .financial-flow-card{padding:11px!important}
 body.authenticated-page.role-admin .financial-flow-card b,body.authenticated-page.role-staff .financial-flow-card b{font-size:16px!important}
}

/* V107: demo-matched tricolour dashboard layout + one notice feed per dashboard. */
body.authenticated-page.role-admin .modern-dashboard-hero,
body.authenticated-page.role-staff .modern-dashboard-hero,
body.authenticated-page.role-member .member-hero{background:linear-gradient(110deg,#fff 0%,#f6faff 61%,#f2fbf4 100%)!important;isolation:isolate!important;}
body.authenticated-page.role-admin .modern-dashboard-hero:after,
body.authenticated-page.role-staff .modern-dashboard-hero:after,
body.authenticated-page.role-member .member-hero:after{display:block!important;content:""!important;position:absolute!important;right:-1%!important;top:-8%!important;width:43%!important;height:116%!important;border-radius:0!important;opacity:.9!important;pointer-events:none!important;background:radial-gradient(135% 120% at 105% 130%,transparent 55%,rgba(255,153,51,.78) 56% 60%,transparent 61%),radial-gradient(145% 130% at 105% 132%,transparent 66%,rgba(255,255,255,.98) 67% 71%,transparent 72%),radial-gradient(155% 140% at 105% 137%,transparent 77%,rgba(19,136,8,.60) 78% 82%,transparent 83%)!important;z-index:0!important;}
body.authenticated-page.role-admin .modern-dashboard-hero .dashboard-welcome,
body.authenticated-page.role-staff .modern-dashboard-hero .dashboard-welcome,
body.authenticated-page.role-admin .modern-dashboard-hero .btn,
body.authenticated-page.role-staff .modern-dashboard-hero .btn,
body.authenticated-page.role-member .member-hero-main,
body.authenticated-page.role-member .member-hero-actions{position:relative!important;z-index:1!important;}
body.authenticated-page.role-admin .modern-kpis,body.authenticated-page.role-staff .modern-kpis{grid-template-columns:repeat(6,minmax(0,1fr))!important;}
body.authenticated-page.role-member .member-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
body.authenticated-page.role-admin .dashboard-layout .page,body.authenticated-page.role-staff .dashboard-layout .page{padding-top:16px!important;}
.dashboard-layout .notice-bar{margin:12px 24px 0!important;border-radius:14px!important;box-shadow:0 6px 18px rgba(17,47,86,.07)!important;background:#f0faf4!important;border:1px solid #d2eadb!important;}
.dashboard-layout .notice-ticker .notice-label b{color:#087647!important;}
.dashboard-layout .notice-ticker .notice-icon{color:#087647!important;}
.dashboard-layout .notice-ticker .notice-dot.active{background:#0b8d5b!important;}
.admin-dashboard-overview{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.92fr);gap:18px;margin:0 0 18px;align-items:start}
.admin-dashboard-main,.admin-dashboard-side{display:grid;gap:18px;min-width:0}
.admin-dashboard-overview .panel{margin:0!important;}
.admin-core-flow{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;}
.admin-core-flow .financial-flow-card{min-width:0!important;padding:14px!important;background:#fff!important;}
.admin-core-flow .financial-flow-card.highlight{background:linear-gradient(140deg,#e8f8ef,#edf6ff)!important;}
.admin-financial-details{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px;}
.admin-financial-details>div{padding:10px 11px;border:1px solid #e9eef4;border-radius:11px;background:#f8fafc;min-width:0;}
.admin-financial-details span,.admin-financial-details b{display:block;}
.admin-financial-details span{color:#75839a;font-size:11px;line-height:1.3;}
.admin-financial-details b{color:#16345a;margin-top:4px;font-size:13px;overflow-wrap:anywhere;}
.admin-dashboard-side .recent-activity-panel .recent-activity-list{max-height:390px;overflow:auto;}
.admin-quick-panel .quick{grid-template-columns:1fr 1fr;}
.collection-overview-panel .mini-chart{height:150px;}
.collection-overview-panel .mini-chart i{background:linear-gradient(180deg,#10a86f,#52c9a0)!important;}
body.authenticated-page.role-admin .side-bottom:before,
body.authenticated-page.role-staff .side-bottom:before,
body.authenticated-page.role-member .side-bottom:before{content:"";display:block;height:4px;border-radius:99px;margin:0 8px 10px;background:linear-gradient(90deg,#ff9933 0 33.333%,#fff 33.333% 66.666%,#138808 66.666% 100%);}
.member-home-feed{margin:0 0 15px!important;border:1px solid #d8eadf!important;border-radius:14px!important;box-shadow:0 5px 16px rgba(12,69,45,.07)!important;}
.member-home-feed-head{background:linear-gradient(105deg,#087b55,#0878b9)!important;}
.member-home-feed-viewport{padding:10px 0!important;background:linear-gradient(90deg,#eef9f2,#fff 12%,#fff 88%,#eef9f2)!important;}
.member-home-feed-track{display:flex!important;width:max-content!important;white-space:nowrap!important;animation:memberHomeFeedScroll 30s linear infinite!important;}
.member-home-feed-item{padding:0 22px!important;font-size:13px!important;}
.member-hero-main{align-items:center!important;}
.member-welcome-copy{min-width:0;}
.member-active-loan-pill{display:inline-flex;margin:8px 0 0 7px;padding:6px 10px;border:1px solid #dce7f2;border-radius:999px;background:rgba(255,255,255,.85);color:#315473;font-size:12px;font-weight:800;}
.member-hero-actions{display:flex;gap:8px;flex-wrap:wrap;}
.member-dashboard-content-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(290px,.9fr);gap:18px;margin:0 0 18px;align-items:start;}
.member-dashboard-content-grid>.panel{margin:0!important;min-width:0;}
.member-activity-list{display:grid;gap:0;}
.member-activity-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:12px 2px;border-bottom:1px solid #edf1f5;}
.member-activity-row:last-child{border-bottom:0;}
.member-activity-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#e9f8ef;color:#09885e;font-size:18px;font-weight:900;}
.member-activity-description b,.member-activity-description small{display:block;}
.member-activity-description b{color:#193550;font-size:13px;}
.member-activity-description small{color:#8290a2;font-size:11px;margin-top:3px;}
.member-activity-row>strong{font-size:13px;color:#14365a;white-space:nowrap;}
.member-secondary-grid{margin-top:0!important;}
.member-secondary-grid .panel{min-width:0;}
@media(max-width:1200px){body.authenticated-page.role-admin .modern-kpis,body.authenticated-page.role-staff .modern-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important;}}
@media(max-width:900px){.admin-dashboard-overview,.member-dashboard-content-grid{grid-template-columns:1fr;}.admin-dashboard-side{grid-template-columns:1fr 1fr;align-items:start;}}
@media(max-width:850px){
 .dashboard-layout .notice-bar{margin:8px 12px 0!important;}
 body.authenticated-page.role-admin .modern-kpis,body.authenticated-page.role-staff .modern-kpis,body.authenticated-page.role-member .member-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 .admin-dashboard-overview,.member-dashboard-content-grid{gap:12px;margin-bottom:12px;}
 .admin-dashboard-side{grid-template-columns:1fr;gap:12px;}
 .admin-core-flow{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 .admin-financial-details{grid-template-columns:repeat(2,minmax(0,1fr));}
 .member-hero-main{align-items:flex-start!important;}
 .member-hero-actions{width:100%;}
 .member-hero-actions .btn{flex:1 1 140px!important;width:auto!important;}
 .member-activity-row{grid-template-columns:34px minmax(0,1fr) auto auto;gap:7px;padding:10px 0;}
}
@media(max-width:560px){
 .member-home-feed-item{padding:0 14px!important;font-size:12px!important;}
 .member-active-loan-pill{margin:7px 0 0;font-size:11px;}
 .member-activity-row{grid-template-columns:32px minmax(0,1fr) auto;}
 .member-activity-row>.badge{grid-column:2/4;justify-self:start;}
 .admin-quick-panel .quick{grid-template-columns:1fr 1fr;}
 .admin-financial-details>div{padding:9px;}
 .admin-core-flow .financial-flow-card{padding:10px!important;}
 body.authenticated-page.role-admin .modern-dashboard-hero:after,body.authenticated-page.role-staff .modern-dashboard-hero:after,body.authenticated-page.role-member .member-hero:after{width:68%!important;opacity:.55!important;}
}
@keyframes memberHomeFeedScroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.member-home-feed:hover .member-home-feed-track{animation-play-state:paused!important;}
@media(prefers-reduced-motion:reduce){.member-home-feed-track{animation:none!important;}}

/* V108: GS Suraha reference dashboard refresh (admin + member, mobile-first). */
:root{--gs-navy:#102e59;--gs-blue:#1769c2;--gs-green:#13845b;--gs-mint:#eaf8f1;--gs-sky:#eaf4ff;--gs-line:#e8eef5;--gs-muted:#718096}
body.authenticated-page{background:linear-gradient(180deg,#f6faff 0%,#f8fafc 46%,#fff 100%);color:#19324f}
body.authenticated-page .app{background:transparent}
body.authenticated-page .panel,body.authenticated-page .kpi,body.authenticated-page .hero,body.authenticated-page .member-home-feed{border:1px solid rgba(222,232,243,.9)!important;border-radius:18px!important;box-shadow:0 5px 22px rgba(25,56,91,.055)!important}
body.authenticated-page .panel{background:rgba(255,255,255,.96)!important}
body.authenticated-page .panel-head h2{color:var(--gs-navy)!important;letter-spacing:-.025em}
body.authenticated-page .modern-dashboard-hero,body.authenticated-page .member-hero{padding:22px 24px!important;min-height:112px;border:1px solid #e4edf6!important;border-radius:20px!important;box-shadow:0 7px 24px rgba(22,60,94,.055)!important}
body.authenticated-page .modern-dashboard-hero h1,body.authenticated-page .member-hero h1{color:#102e59!important;letter-spacing:-.035em}
body.authenticated-page .modern-dashboard-hero h1{font-size:clamp(23px,2.1vw,34px)!important}
body.authenticated-page .modern-dashboard-hero p,body.authenticated-page .member-hero p{color:#697c93!important}
body.authenticated-page .modern-dashboard-hero .eyebrow,body.authenticated-page .member-hero .eyebrow{color:#16845c!important;font-weight:800;letter-spacing:.12em}
body.authenticated-page .modern-dashboard-hero .btn.light,body.authenticated-page .member-hero .btn.light{border-radius:12px!important;padding:13px 18px!important;font-weight:800!important;background:linear-gradient(115deg,#13885e,#0c9b67)!important;box-shadow:0 7px 16px rgba(19,136,94,.16)!important}
body.authenticated-page .modern-kpis{gap:12px!important;margin:14px 0 16px!important}
body.authenticated-page .modern-kpis .kpi,body.authenticated-page .member-kpis .kpi{position:relative;overflow:hidden;min-width:0;padding:17px 16px!important;background:#fff!important;border-radius:16px!important}
body.authenticated-page .modern-kpis .kpi:before,body.authenticated-page .member-kpis .kpi:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#2e83d8;opacity:.85}
body.authenticated-page .modern-kpis .kpi.green:before,body.authenticated-page .member-kpis .kpi.green:before,body.authenticated-page .member-kpis .kpi.teal:before{background:#16966a}
body.authenticated-page .modern-kpis .kpi.orange:before,body.authenticated-page .member-kpis .kpi.orange:before{background:#ef8b2f}
body.authenticated-page .modern-kpis .kpi.red:before{background:#e74d61}
body.authenticated-page .modern-kpis .kpi b,body.authenticated-page .member-kpis .kpi b{font-size:clamp(19px,1.8vw,28px)!important;color:#102e59!important;letter-spacing:-.025em;overflow-wrap:anywhere}
body.authenticated-page .modern-kpis .kpi span,body.authenticated-page .member-kpis .kpi span{color:#405672!important;font-weight:700}
body.authenticated-page .admin-dashboard-overview{gap:14px!important;align-items:stretch}
body.authenticated-page .admin-dashboard-main,body.authenticated-page .admin-dashboard-side{gap:14px!important;min-width:0}
body.authenticated-page .financial-snapshot-panel,body.authenticated-page .collection-overview-panel,body.authenticated-page .recent-activity-panel,body.authenticated-page .admin-quick-panel{padding:18px!important}
body.authenticated-page .admin-core-flow{gap:10px!important}
body.authenticated-page .admin-core-flow .financial-flow-card{border:1px solid #e9f0f6!important;border-radius:15px!important;background:linear-gradient(150deg,#fff,#f6faff)!important;padding:16px 12px!important;min-width:0}
body.authenticated-page .admin-core-flow .financial-flow-card:nth-child(1){background:linear-gradient(145deg,#fff,#eaf8f1)!important}
body.authenticated-page .admin-core-flow .financial-flow-card:nth-child(2){background:linear-gradient(145deg,#fff,#eaf4ff)!important}
body.authenticated-page .admin-core-flow .financial-flow-card:nth-child(3){background:linear-gradient(145deg,#fff,#fff3e7)!important}
body.authenticated-page .admin-core-flow .financial-flow-card:nth-child(4){background:linear-gradient(145deg,#fff,#eaf8f1)!important}
body.authenticated-page .financial-flow-card b{overflow-wrap:anywhere;font-size:clamp(16px,1.5vw,23px)!important}
body.authenticated-page .mini-chart{border-radius:12px;background:linear-gradient(180deg,#fff,#f8fbff);padding:12px 8px 2px}
body.authenticated-page .mini-chart i{border-radius:5px 5px 0 0!important;background:linear-gradient(180deg,#47b995,#14845f)!important;box-shadow:0 2px 5px #16865c20}
body.authenticated-page .admin-quick-panel .quick{gap:9px!important}
body.authenticated-page .admin-quick-panel .quick a{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:48px;padding:12px 14px!important;border-radius:12px!important;background:linear-gradient(110deg,#13885e,#0878c5)!important;color:#fff!important;font-weight:800!important;border:0!important;box-shadow:0 4px 12px rgba(22,90,126,.12)}
body.authenticated-page .admin-quick-panel .quick a:nth-child(3){background:linear-gradient(110deg,#ed8a2f,#f3a044)!important}
body.authenticated-page .recent-activity-item{border-bottom:1px solid #edf2f7!important;padding:12px 2px!important}
body.authenticated-page .feature-grid{gap:12px!important}
body.authenticated-page .feature-card{border-radius:14px!important;border:1px solid #e7eef6!important;box-shadow:none!important;background:linear-gradient(145deg,#fff,#f8fbff)!important}
body.authenticated-page .member-home-feed{overflow:hidden;margin-bottom:14px!important;background:linear-gradient(110deg,#e7f8ef,#f5fcf8)!important;border-color:#d8f0e4!important}
body.authenticated-page .member-home-feed-head{color:#08794f!important;font-weight:800!important}
body.authenticated-page .member-kpis{gap:13px!important;margin:15px 0 16px!important}
body.authenticated-page .member-kpis .kpi{min-height:126px!important;padding:19px 18px!important;background:linear-gradient(145deg,#fff,#f7fbff)!important}
body.authenticated-page .member-kpis .kpi:nth-child(1),body.authenticated-page .member-kpis .kpi:nth-child(2){background:linear-gradient(145deg,#fff,#effaf4)!important}
body.authenticated-page .member-kpis .kpi:nth-child(3){background:linear-gradient(145deg,#fff,#eef6ff)!important}
body.authenticated-page .member-kpis .kpi:nth-child(4){background:linear-gradient(145deg,#fff,#fff7ec)!important}
body.authenticated-page .member-dashboard-content-grid{gap:14px!important}
body.authenticated-page .member-activity-row{padding:14px 2px!important}
body.authenticated-page .member-activity-icon{width:38px!important;height:38px!important;background:#e7f8ef!important;color:#0c875d!important}
body.authenticated-page .member-quick-actions .quick{display:grid;gap:10px!important}
body.authenticated-page .member-quick-actions .quick a{border-radius:12px!important;padding:14px 15px!important;background:linear-gradient(110deg,#13885e,#0878c5)!important;color:#fff!important;font-weight:800!important;border:0!important}
body.authenticated-page .member-quick-actions .quick a:nth-child(2){background:linear-gradient(110deg,#1767b8,#2585db)!important}
body.authenticated-page .member-quick-actions .quick a:nth-child(3){background:#eef5ff!important;color:#174a8a!important;border:1px solid #d5e5fb!important}
body.authenticated-page .mobile-bottom-nav{border:1px solid #e5edf5!important;border-radius:18px 18px 0 0!important;box-shadow:0 -6px 24px rgba(20,45,75,.08)!important;background:rgba(255,255,255,.97)!important;backdrop-filter:blur(14px)}
body.authenticated-page .mobile-bottom-nav a.active{background:#eaf8f1!important;color:#11845b!important;box-shadow:inset 0 -3px #16885f!important}
@media(max-width:850px){
 body.authenticated-page .modern-dashboard-hero,body.authenticated-page .member-hero{padding:17px!important;margin-bottom:12px!important}
 body.authenticated-page .modern-kpis,body.authenticated-page .member-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 body.authenticated-page .modern-kpis .kpi,body.authenticated-page .member-kpis .kpi{padding:14px 13px!important;min-height:106px!important}
 body.authenticated-page .modern-kpis .kpi b,body.authenticated-page .member-kpis .kpi b{font-size:clamp(18px,5vw,25px)!important}
 body.authenticated-page .admin-dashboard-overview{grid-template-columns:minmax(0,1fr)!important}
 body.authenticated-page .admin-dashboard-side{grid-template-columns:minmax(0,1fr)!important}
 body.authenticated-page .admin-core-flow{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.authenticated-page .financial-snapshot-panel,body.authenticated-page .collection-overview-panel,body.authenticated-page .recent-activity-panel,body.authenticated-page .admin-quick-panel{padding:14px!important}
 body.authenticated-page .member-dashboard-content-grid{grid-template-columns:minmax(0,1fr)!important}
 body.authenticated-page .member-hero-actions{display:grid!important;grid-template-columns:1fr 1fr!important}
 body.authenticated-page .member-hero-actions .btn{width:100%!important;min-width:0!important}
 body.authenticated-page .feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:480px){
 body.authenticated-page .modern-dashboard-hero h1,body.authenticated-page .member-hero h1{font-size:21px!important}
 body.authenticated-page .modern-dashboard-hero p,body.authenticated-page .member-hero p{font-size:12px!important}
 body.authenticated-page .dashboard-welcome-logo{width:45px!important;height:45px!important;object-fit:contain}
 body.authenticated-page .admin-core-flow .financial-flow-card{padding:11px 8px!important}
 body.authenticated-page .financial-flow-card span{font-size:11px!important}
 body.authenticated-page .financial-flow-card b{font-size:16px!important}
 body.authenticated-page .admin-financial-details{gap:8px!important}
 body.authenticated-page .admin-quick-panel .quick{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.authenticated-page .admin-quick-panel .quick a{font-size:12px!important;padding:11px 9px!important;min-height:48px}
 body.authenticated-page .member-hero-actions{grid-template-columns:1fr!important}
 body.authenticated-page .member-kpis .kpi{min-height:100px!important;padding:13px 12px!important}
 body.authenticated-page .member-kpis .kpi span{font-size:12px!important}
 body.authenticated-page .member-kpis .kpi small{font-size:10px!important}
 body.authenticated-page .member-activity-row{grid-template-columns:32px minmax(0,1fr) auto!important;gap:8px!important}
 body.authenticated-page .member-activity-row>.badge{grid-column:2/4;justify-self:start}
 body.authenticated-page .feature-grid{grid-template-columns:1fr 1fr!important}
}

/* V109: unified modern design system across every authenticated screen.
   Presentation-only overrides: no routes, permissions, forms, calculations or DB logic changed. */
:root{--navy:#092b57;--navy2:#103f76;--blue:#176fd1;--green:#13865f;--orange:#ef8c35;--bg:#f3f7fb;--text:#142b49;--muted:#718096;--line:#e4ebf3;--shadow:0 8px 26px rgba(19,48,82,.065)}
html{scroll-behavior:smooth}body{background:linear-gradient(180deg,#f7faff 0,#f2f6fb 60%,#f7f9fc 100%);color:#172c49;-webkit-font-smoothing:antialiased}
body.authenticated-page .sidebar{background:linear-gradient(180deg,#08294f 0%,#0b3766 55%,#092747 100%)!important;border-right:1px solid rgba(255,255,255,.08)!important;box-shadow:8px 0 28px rgba(9,36,68,.08)}
body.authenticated-page .sidebar:before{height:4px;background:linear-gradient(90deg,#f49a38 0 33.33%,#fff 33.33% 66.66%,#16845b 66.66%)!important}
body.authenticated-page .brand{background:transparent!important;min-height:100px;padding-top:12px!important;padding-bottom:18px!important;border-bottom:1px solid rgba(255,255,255,.12)!important}
body.authenticated-page .brand b{color:#fff!important;text-shadow:none!important;font-size:14px!important}
body.authenticated-page .brand small{color:#b8cbe1!important}
body.authenticated-page .sidebar .brand:after{bottom:7px;height:3px;box-shadow:none}
body.authenticated-page .sidebar nav a,body.authenticated-page .side-bottom a{border:1px solid transparent!important;border-radius:12px!important;color:#c5d6eb!important;text-shadow:none!important;transition:background .18s ease,border-color .18s ease,transform .18s ease}
body.authenticated-page .sidebar nav a:hover,body.authenticated-page .side-bottom a:hover{background:rgba(255,255,255,.08)!important;color:#fff!important;transform:translateX(2px)}
body.authenticated-page .sidebar nav a.active{background:linear-gradient(100deg,rgba(24,113,207,.35),rgba(21,135,96,.22))!important;border-color:rgba(126,183,238,.2)!important;box-shadow:inset 3px 0 #2995ed!important;color:#fff!important}
body.authenticated-page .topbar{background:rgba(255,255,255,.94)!important;border-bottom:1px solid #e5edf5!important;box-shadow:0 3px 18px rgba(15,42,75,.035);backdrop-filter:blur(16px)}
body.authenticated-page .page{padding-top:24px}
body.authenticated-page .page-title{align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:18px}
body.authenticated-page .page-title h1{font-size:clamp(22px,2.1vw,30px);letter-spacing:-.035em;color:#102f59}
body.authenticated-page .page-title p{font-size:13px;line-height:1.5}
body.authenticated-page .panel,body.authenticated-page .pay-card,body.authenticated-page .login-card{border:1px solid #e5edf5!important;border-radius:18px!important;box-shadow:0 8px 28px rgba(21,50,83,.055)!important}
body.authenticated-page .panel{padding:20px;background:rgba(255,255,255,.96)}
body.authenticated-page .panel h2{color:#12345f;letter-spacing:-.02em;font-size:17px}
body.authenticated-page .panel-head{padding-bottom:12px;border-bottom:1px solid #edf2f7;margin-bottom:13px}
body.authenticated-page .btn{border-radius:11px;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}
body.authenticated-page .btn:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(20,65,110,.10)}
body.authenticated-page .btn.primary{background:linear-gradient(120deg,#176fd1,#16845f);border-color:transparent}
body.authenticated-page input,body.authenticated-page select,body.authenticated-page textarea{border-color:#dce6f0;border-radius:11px;background:#fff;min-height:42px;transition:border-color .15s,box-shadow .15s}
body.authenticated-page input:focus,body.authenticated-page select:focus,body.authenticated-page textarea:focus{border-color:#5d9de0;box-shadow:0 0 0 3px rgba(36,126,212,.12)}
body.authenticated-page label{color:#465d79;font-size:12px;letter-spacing:.01em}
body.authenticated-page .table-wrap{border:1px solid #e7edf4;border-radius:13px;background:#fff;scrollbar-width:thin;scrollbar-color:#c8d7e8 transparent}
body.authenticated-page table{border-collapse:separate;border-spacing:0;min-width:560px}
body.authenticated-page th{background:#f3f7fb;color:#60738d;font-size:10px;padding:13px 11px;white-space:nowrap;border-bottom:1px solid #e3ebf4}
body.authenticated-page td{padding:13px 11px;color:#30445f;border-bottom:1px solid #edf2f7}
body.authenticated-page tbody tr:last-child td{border-bottom:0}
body.authenticated-page tbody tr:hover td{background:#f8fbff}
body.authenticated-page .badge{padding:5px 10px;line-height:1.25}
body.authenticated-page .alert{border:1px solid transparent;border-radius:12px;line-height:1.5}
body.authenticated-page .alert.success{border-color:#cceedd}body.authenticated-page .alert.warning{border-color:#f5e5b5}body.authenticated-page .alert.danger{border-color:#f5d1d8}body.authenticated-page .alert.info{border-color:#d4e6fa}
body.authenticated-page .profile-grid>div,body.authenticated-page .calc,body.authenticated-page .document-card{border:1px solid #e5edf5;border-radius:12px}
body.authenticated-page .notification-item{border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(18,47,82,.025)}
body.authenticated-page .application,body.authenticated-page .emi-pay-row{border-color:#eaf0f6}
body.authenticated-page .quick a{border-radius:13px;background:linear-gradient(145deg,#fff,#f5f9fd);border-color:#e3ebf4;transition:transform .16s ease,box-shadow .16s ease}
body.authenticated-page .quick a:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(17,65,112,.08);background:#f3f8ff}
body.authenticated-page .search{background:#f7f9fc;border-color:#e5edf5}
body.authenticated-page .avatar{background:linear-gradient(145deg,#e6f2ff,#e3f8ed);color:#145d9e}
body.authenticated-page footer{background:transparent;border-top-color:#e5edf5}
body.authenticated-page .mobile-bottom-nav{box-shadow:0 -8px 28px rgba(17,42,73,.09)!important}
@media(max-width:850px){body.authenticated-page .page{padding:16px 13px 90px!important}body.authenticated-page .topbar{padding:0 14px!important;min-height:64px;height:auto!important}body.authenticated-page .panel{padding:15px!important}body.authenticated-page .page-title h1{font-size:23px}body.authenticated-page .table-wrap{margin-left:0;margin-right:0}body.authenticated-page .sidebar{box-shadow:16px 0 40px rgba(0,0,0,.18)}}
@media(max-width:480px){body.authenticated-page .page-title{align-items:flex-start}body.authenticated-page .page-title .btn{max-width:100%}body.authenticated-page .panel{border-radius:15px!important}body.authenticated-page .search-inline{flex-wrap:wrap}body.authenticated-page .search-inline input{width:100%;min-width:0}body.authenticated-page .profile-grid{grid-template-columns:1fr 1fr;gap:8px}body.authenticated-page .profile-grid>div{padding:10px}body.authenticated-page .table-wrap{border-radius:11px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}


/* V111: cohesive modern refresh across all routes + clearer settings navigation */
:root{--gs-radius:18px;--gs-shadow:0 10px 30px rgba(9,43,87,.07)}
body{background-color:#f3f7fb}
body.authenticated-page .page{max-width:1600px;margin-inline:auto}
body.authenticated-page .panel,body.authenticated-page .pay-card,body.authenticated-page .login-card{box-shadow:var(--gs-shadow)!important}
body.authenticated-page .panel-head h2{font-weight:800}
body.authenticated-page .settings-hub-group{padding:16px;margin:18px 0 22px;border:1px solid #e5edf5;border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(247,250,254,.96));box-shadow:0 7px 24px rgba(18,48,90,.04)}
body.authenticated-page .settings-hub-group h2{display:flex;align-items:center;gap:8px;margin:0 0 14px;padding-bottom:10px;border-bottom:1px solid #e9eff6;font-size:16px;font-weight:850}
body.authenticated-page .settings-hub-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body.authenticated-page .settings-hub-card{min-width:0;position:relative;overflow:hidden;border:1px solid #e2eaf3;border-radius:15px;background:#fff;box-shadow:0 4px 14px rgba(18,48,90,.035);transition:transform .18s,border-color .18s,box-shadow .18s}
body.authenticated-page .settings-hub-card:after{content:'›';margin-left:auto;color:#8293a8;font-size:25px;line-height:1}
body.authenticated-page .settings-hub-card:hover{border-color:#8bcdb1;box-shadow:0 10px 22px rgba(18,90,65,.09);transform:translateY(-2px)}
body.authenticated-page .settings-hub-icon{background:linear-gradient(145deg,#e8f7ef,#e8f1ff);border:1px solid #e0edf5}
body.authenticated-page .settings-hub-card b{color:#12345f;font-size:13px;line-height:1.35}
body.authenticated-page .settings-hub-card small{font-size:11px;line-height:1.45}
body.authenticated-page .inline-form{gap:8px}
body.authenticated-page .inline-form>.btn,body.authenticated-page .inline-form>a.btn{white-space:nowrap}
body.authenticated-page .settings-grid{gap:14px}
body.authenticated-page .settings-grid .span2{min-width:0}
body.authenticated-page .page-title .eyebrow{font-size:10px;letter-spacing:.14em;font-weight:850;color:#16845f}
body.authenticated-page .btn{font-weight:750}
body.authenticated-page .btn.danger{background:#fff3f3;border-color:#f4caca;color:#b42332}
body.authenticated-page .btn.success{background:#e9f8f0;border-color:#c7ead7;color:#08784d}
body.authenticated-page .table-wrap{max-width:100%;overscroll-behavior-x:contain}
body.authenticated-page .table-wrap table{width:100%}
body.authenticated-page .table-wrap th:first-child{border-top-left-radius:10px}
body.authenticated-page .table-wrap th:last-child{border-top-right-radius:10px}
@media(max-width:1000px){body.authenticated-page .settings-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){body.authenticated-page .settings-hub-group{padding:12px;margin:13px 0 16px;border-radius:15px}body.authenticated-page .settings-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}body.authenticated-page .settings-hub-card{align-items:flex-start;padding:11px;min-height:80px;gap:8px}body.authenticated-page .settings-hub-card:after{font-size:20px}body.authenticated-page .settings-hub-icon{width:34px;height:34px;font-size:17px;border-radius:10px}body.authenticated-page .settings-hub-card b{font-size:12px}body.authenticated-page .settings-hub-card small{font-size:10px}body.authenticated-page .page-title{margin-bottom:14px}body.authenticated-page .page-title .btn{min-height:40px}}
@media(max-width:390px){body.authenticated-page .settings-hub-grid{grid-template-columns:1fr}body.authenticated-page .settings-hub-card{align-items:center;min-height:68px}body.authenticated-page .settings-hub-card small{font-size:11px}}


/* V113: keep member ID Card and Contribution shortcuts beside the member photo only. */
body.member-dashboard-screen .member-photo-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px;position:relative;z-index:2;}
body.member-dashboard-screen .member-photo-action{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:34px;padding:8px 12px;border-radius:10px;text-decoration:none;font-size:12px;font-weight:800;line-height:1.2;box-shadow:0 3px 10px rgba(20,46,76,.08);}
body.member-dashboard-screen .member-photo-action.contribution-action{background:linear-gradient(110deg,#13885e,#0a9b68);color:#fff!important;border:1px solid #0b8a5b;}
body.member-dashboard-screen .member-photo-action.idcard-action{background:#eaf3ff;color:#1455a0!important;border:1px solid #d4e5fb;}
body.member-dashboard-screen .member-quick-actions .quick{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
/* V112: mobile member dashboard tuned to the approved reference design.
   Dashboard-only presentation changes; financial logic and existing routes stay intact. */
body.member-dashboard-screen .page{max-width:100%;}
body.member-dashboard-screen .member-home-feed{border:1px solid #d8f0e4!important;border-radius:16px!important;background:linear-gradient(100deg,#e7f8ef,#f4fcf7)!important;box-shadow:0 5px 16px rgba(18,93,65,.06)!important;overflow:hidden;margin-bottom:14px!important;}
body.member-dashboard-screen .member-home-feed-head{display:flex;align-items:center;gap:8px;color:#08764e!important;font-weight:800!important;padding:12px 15px 5px!important;}
body.member-dashboard-screen .member-home-feed-viewport{padding:5px 0 12px!important;}
body.member-dashboard-screen .member-hero{background:linear-gradient(115deg,#fff 0%,#f7fbff 60%,#e9f8f0 100%)!important;border:0!important;box-shadow:none!important;position:relative;overflow:hidden;}
body.member-dashboard-screen .member-hero:after{content:"";position:absolute;right:-35px;top:0;width:42%;height:100%;background:linear-gradient(140deg,transparent 35%,rgba(22,139,94,.09) 36%,rgba(22,139,94,.03) 66%,transparent 67%);pointer-events:none;}
body.member-dashboard-screen .member-hero-main,body.member-dashboard-screen .member-hero-actions{position:relative;z-index:1;}
body.member-dashboard-screen .member-hero h1{font-weight:850!important;letter-spacing:-.035em!important;}
body.member-dashboard-screen .member-hero .dashboard-avatar{border:4px solid #fff!important;box-shadow:0 6px 20px rgba(25,65,100,.14)!important;}
body.member-dashboard-screen .member-kpis .kpi{border:1px solid #edf1f5!important;border-radius:20px!important;box-shadow:0 6px 20px rgba(23,51,83,.065)!important;background:#fff!important;position:relative;overflow:hidden;}
body.member-dashboard-screen .member-kpis .kpi:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#13865f;opacity:.8;}
body.member-dashboard-screen .member-kpis .kpi:nth-child(2):before{background:#2f83db}body.member-dashboard-screen .member-kpis .kpi:nth-child(3):before{background:#e99332}body.member-dashboard-screen .member-kpis .kpi:nth-child(4):before{background:#7956d8}
body.member-dashboard-screen .member-kpis .kpi b{color:#08744e!important;letter-spacing:-.03em;}
body.member-dashboard-screen .member-dashboard-content-grid>.panel,body.member-dashboard-screen .member-secondary-grid>.panel{border:1px solid #edf1f5!important;border-radius:20px!important;box-shadow:0 6px 22px rgba(20,46,76,.055)!important;}
body.member-dashboard-screen .member-quick-actions .quick{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;}
body.member-dashboard-screen .member-quick-actions .quick a{display:flex!important;min-height:88px;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:7px;padding:12px 8px!important;border-radius:16px!important;background:#eaf8f1!important;color:#075c45!important;border:1px solid #d9f0e5!important;font-size:12px!important;line-height:1.35;font-weight:800!important;}
body.member-dashboard-screen .member-quick-actions .quick a:nth-child(2){background:#eaf3ff!important;color:#1455a0!important;border-color:#dceaff!important;}
body.member-dashboard-screen .member-quick-actions .quick a:nth-child(3){background:#fff1e5!important;color:#a64d09!important;border-color:#ffead6!important;}
body.member-dashboard-screen .member-quick-actions .quick a:nth-child(4){background:#f0edff!important;color:#5540aa!important;border-color:#e5dfff!important;}
body.member-dashboard-screen .member-activity-row{padding:14px 0!important;border-bottom:1px solid #edf1f5!important;}
body.member-dashboard-screen .member-activity-icon{width:42px!important;height:42px!important;font-size:20px!important;}
body.member-dashboard-screen .mobile-bottom-nav{z-index:100!important;display:none;}
@media(max-width:850px){
 body.member-dashboard-screen .page{padding:12px 12px 100px!important;}
 body.member-dashboard-screen .member-home-feed{margin:0 0 12px!important;border-radius:16px!important;}
 body.member-dashboard-screen .member-hero{padding:8px 2px 14px!important;margin:0 0 12px!important;min-height:0!important;border-radius:0!important;}
 body.member-dashboard-screen .member-hero-main{display:flex!important;align-items:center!important;gap:14px!important;}
 body.member-dashboard-screen .member-hero .dashboard-avatar{width:82px!important;height:82px!important;min-width:82px!important;border-radius:50%!important;object-fit:cover!important;}
 body.member-dashboard-screen .member-hero h1{font-size:24px!important;line-height:1.12!important;margin:3px 0 6px!important;}
 body.member-dashboard-screen .member-hero p{font-size:12px!important;line-height:1.45!important;margin:0 0 5px!important;}
 body.member-dashboard-screen .member-hero .eyebrow{font-size:10px!important;letter-spacing:.1em!important;}
 body.member-dashboard-screen .member-code{font-size:11px!important;}
 body.member-dashboard-screen .member-active-loan-pill{display:none!important;}
 body.member-dashboard-screen .member-hero-actions{display:none!important;}
 body.member-dashboard-screen .member-photo-actions{display:flex!important;gap:6px!important;margin-top:9px!important;}
 body.member-dashboard-screen .member-photo-action{font-size:10px!important;min-height:32px!important;padding:7px 9px!important;white-space:nowrap;}
 body.member-dashboard-screen .member-quick-actions .quick{grid-template-columns:repeat(3,minmax(0,1fr))!important;} 
 body.member-dashboard-screen .member-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;margin:0 0 14px!important;}
 body.member-dashboard-screen .member-kpis .kpi{min-height:126px!important;padding:18px 15px 15px 18px!important;display:flex!important;flex-direction:column;justify-content:center;}
 body.member-dashboard-screen .member-kpis .kpi span{font-size:13px!important;color:#243b59!important;font-weight:700!important;line-height:1.35;}
 body.member-dashboard-screen .member-kpis .kpi b{font-size:clamp(22px,6.4vw,30px)!important;line-height:1.15!important;margin-top:7px!important;overflow-wrap:anywhere;}
 body.member-dashboard-screen .member-kpis .kpi small{font-size:10px!important;margin-top:6px!important;line-height:1.35;}
 body.member-dashboard-screen .member-dashboard-content-grid{display:flex!important;flex-direction:column!important;gap:12px!important;margin:0 0 12px!important;}
 body.member-dashboard-screen .member-dashboard-content-grid>.panel{width:100%!important;padding:16px!important;}
 body.member-dashboard-screen .member-dashboard-content-grid .panel-head h2{font-size:19px!important;}
 body.member-dashboard-screen .member-quick-actions{order:-1;}
 body.member-dashboard-screen .member-quick-actions .quick{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;}
 body.member-dashboard-screen .member-quick-actions .quick a{min-height:98px!important;padding:10px 3px!important;font-size:10px!important;word-break:normal;}
 body.member-dashboard-screen .member-quick-actions .panel-head{margin-bottom:12px!important;}
 body.member-dashboard-screen .member-activity-row{grid-template-columns:38px minmax(0,1fr) auto!important;gap:9px!important;padding:13px 0!important;}
 body.member-dashboard-screen .member-activity-row>.badge{grid-column:2/4;justify-self:start;margin-top:-3px;}
 body.member-dashboard-screen .member-activity-row>strong{font-size:13px!important;}
 body.member-dashboard-screen .member-secondary-grid{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;}
 body.member-dashboard-screen .member-secondary-grid>.panel{padding:15px!important;}
 body.member-dashboard-screen .mobile-bottom-nav{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;padding:8px 8px max(8px,env(safe-area-inset-bottom))!important;border-radius:22px 22px 0 0!important;background:rgba(255,255,255,.97)!important;backdrop-filter:blur(18px)!important;box-shadow:0 -7px 26px rgba(17,42,71,.12)!important;border:1px solid #e7edf4!important;}
 body.member-dashboard-screen .mobile-bottom-nav a{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;min-height:48px!important;border-radius:12px!important;color:#687487!important;font-size:11px!important;padding:3px 2px!important;}
 body.member-dashboard-screen .mobile-bottom-nav a span{font-size:23px!important;line-height:1.1!important;font-weight:800!important;}
 body.member-dashboard-screen .mobile-bottom-nav a b{font-size:11px!important;}
 body.member-dashboard-screen .mobile-bottom-nav a.active{background:#e8f8ef!important;color:#08794f!important;box-shadow:inset 0 -3px #13865f!important;}
 body.member-dashboard-screen .mobile-bottom-nav a.active span{color:#13865f!important;}
}
@media(max-width:380px){
 body.member-dashboard-screen .page{padding-left:9px!important;padding-right:9px!important;}
 body.member-dashboard-screen .member-hero .dashboard-avatar{width:68px!important;height:68px!important;min-width:68px!important;}
 body.member-dashboard-screen .member-hero h1{font-size:21px!important;}
 body.member-dashboard-screen .member-photo-actions{flex-wrap:wrap!important;}
 body.member-dashboard-screen .member-photo-action{font-size:9px!important;padding:7px 6px!important;} 
 body.member-dashboard-screen .member-kpis .kpi{padding:14px 10px 13px 14px!important;min-height:116px!important;}
 body.member-dashboard-screen .member-quick-actions .quick a{font-size:9px!important;min-height:88px!important;}
}

/* V114 — reference-matched member mobile dashboard polish */
body.member-dashboard-screen{background:#f5f8fc!important;color:#142b4d!important;}
body.member-dashboard-screen .page{max-width:1240px!important;margin:0 auto!important;}
body.member-dashboard-screen .member-home-feed{border:1px solid #d7eee2!important;border-radius:16px!important;background:linear-gradient(100deg,#e5f8ee,#f7fffa)!important;box-shadow:0 5px 18px rgba(17,65,48,.06)!important;color:#075b3b!important;overflow:hidden!important;}
body.member-dashboard-screen .member-home-feed-head{display:flex!important;align-items:center!important;gap:8px!important;padding:12px 15px!important;font-weight:800!important;color:#08734b!important;border-bottom:1px solid #d4ecdf!important;}
body.member-dashboard-screen .member-home-feed-viewport{padding:9px 0!important;}
body.member-dashboard-screen .member-home-feed-item{color:#28435c!important;font-size:12px!important;}
body.member-dashboard-screen .member-hero{position:relative!important;overflow:hidden!important;border-radius:22px!important;padding:18px!important;margin:0 0 16px!important;background:linear-gradient(120deg,#fff 0%,#f8fcff 65%,#e9f7ef 100%)!important;border:1px solid #e7edf4!important;box-shadow:0 7px 22px rgba(23,48,79,.07)!important;min-height:0!important;}
body.member-dashboard-screen .member-hero:after{content:"";position:absolute;right:-45px;top:-72px;width:230px;height:150px;border-radius:50%;border:13px solid rgba(27,151,101,.10);transform:rotate(-18deg);pointer-events:none;}
body.member-dashboard-screen .member-hero-main{position:relative!important;z-index:1!important;display:flex!important;align-items:center!important;gap:16px!important;}
body.member-dashboard-screen .member-hero .dashboard-avatar{width:100px!important;height:100px!important;min-width:100px!important;border:4px solid #fff!important;box-shadow:0 5px 18px rgba(22,63,99,.16)!important;border-radius:50%!important;object-fit:cover!important;background:#eaf2fb!important;}
body.member-dashboard-screen .member-welcome-copy{min-width:0!important;flex:1!important;}
body.member-dashboard-screen .member-hero .eyebrow{font-size:10px!important;font-weight:800!important;letter-spacing:1.6px!important;color:#13845b!important;margin-bottom:5px!important;}
body.member-dashboard-screen .member-hero h1{font-size:clamp(21px,3vw,30px)!important;line-height:1.15!important;color:#102b51!important;margin:0 0 5px!important;overflow-wrap:anywhere!important;}
body.member-dashboard-screen .member-hero p{font-size:13px!important;color:#64748b!important;line-height:1.45!important;margin:0 0 8px!important;}
body.member-dashboard-screen .member-code{display:inline-flex!important;align-items:center!important;border-radius:20px!important;background:#eaf2ff!important;color:#245b9e!important;padding:5px 9px!important;font-weight:800!important;font-size:11px!important;margin:0 6px 5px 0!important;}
body.member-dashboard-screen .member-active-loan-pill{display:inline-flex!important;background:#e8f8ef!important;color:#08734b!important;border-radius:20px!important;padding:5px 9px!important;font-size:11px!important;font-weight:800!important;}
body.member-dashboard-screen .member-photo-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-top:10px!important;}
body.member-dashboard-screen .member-photo-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-height:38px!important;padding:9px 13px!important;border-radius:11px!important;font-size:12px!important;font-weight:800!important;text-decoration:none!important;box-shadow:0 3px 8px rgba(16,44,73,.08)!important;transition:transform .18s ease,box-shadow .18s ease!important;}
body.member-dashboard-screen .member-photo-action:hover{transform:translateY(-1px)!important;box-shadow:0 6px 13px rgba(16,44,73,.13)!important;}
body.member-dashboard-screen .member-photo-action.contribution-action{background:linear-gradient(135deg,#159b62,#08774b)!important;color:#fff!important;border:1px solid #0d8b56!important;}
body.member-dashboard-screen .member-photo-action.idcard-action{background:#edf4ff!important;color:#1556a0!important;border:1px solid #d5e5ff!important;}
body.member-dashboard-screen .member-kpis{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px!important;margin:0 0 16px!important;}
body.member-dashboard-screen .member-kpis .kpi{position:relative!important;overflow:hidden!important;min-width:0!important;min-height:132px!important;padding:20px 17px!important;border:1px solid #e7edf4!important;border-radius:20px!important;background:#fff!important;box-shadow:0 5px 18px rgba(22,49,78,.06)!important;display:flex!important;flex-direction:column!important;justify-content:center!important;}
body.member-dashboard-screen .member-kpis .kpi:before{content:"";position:absolute!important;left:0!important;top:0!important;bottom:0!important;width:4px!important;border-radius:20px 0 0 20px!important;background:#149967!important;}
body.member-dashboard-screen .member-kpis .kpi:nth-child(2){background:linear-gradient(145deg,#fff,#f0fbf5)!important;}
body.member-dashboard-screen .member-kpis .kpi:nth-child(3){background:linear-gradient(145deg,#fff,#f1f7ff)!important;}
body.member-dashboard-screen .member-kpis .kpi:nth-child(4){background:linear-gradient(145deg,#fff,#fff7ed)!important;}
body.member-dashboard-screen .member-kpis .kpi span{font-size:13px!important;line-height:1.35!important;color:#40536e!important;font-weight:700!important;}
body.member-dashboard-screen .member-kpis .kpi b{font-size:clamp(22px,5.5vw,30px)!important;line-height:1.15!important;color:#08744e!important;letter-spacing:-.035em!important;margin-top:8px!important;overflow-wrap:anywhere!important;}
body.member-dashboard-screen .member-kpis .kpi small{font-size:10px!important;line-height:1.35!important;color:#8090a4!important;margin-top:7px!important;}
body.member-dashboard-screen .member-dashboard-content-grid{display:flex!important;flex-direction:column!important;gap:14px!important;margin:0 0 15px!important;}
body.member-dashboard-screen .member-dashboard-content-grid>.panel,body.member-dashboard-screen .member-secondary-grid>.panel{border:1px solid #e7edf4!important;border-radius:20px!important;background:#fff!important;box-shadow:0 5px 18px rgba(22,49,78,.055)!important;padding:17px!important;min-width:0!important;}
body.member-dashboard-screen .member-dashboard-content-grid .panel-head,body.member-dashboard-screen .member-secondary-grid .panel-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;margin:0 0 12px!important;padding:0 0 11px!important;border-bottom:1px solid #edf1f6!important;}
body.member-dashboard-screen .member-dashboard-content-grid .panel-head h2,body.member-dashboard-screen .member-secondary-grid .panel-head h2{font-size:18px!important;color:#102b51!important;margin:0!important;}
body.member-dashboard-screen .member-dashboard-content-grid .panel-head a,body.member-dashboard-screen .member-secondary-grid .panel-head a{color:#08794f!important;font-size:12px!important;font-weight:800!important;text-decoration:none!important;white-space:nowrap!important;}
body.member-dashboard-screen .member-quick-actions .quick{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important;}
body.member-dashboard-screen .member-quick-actions .quick a{display:flex!important;min-width:0!important;min-height:96px!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;text-align:center!important;gap:9px!important;padding:12px 5px!important;border-radius:15px!important;background:#eaf8f1!important;color:#075c45!important;border:1px solid #d9f0e5!important;font-size:11px!important;line-height:1.35!important;font-weight:800!important;text-decoration:none!important;}
body.member-dashboard-screen .member-quick-actions .quick a:before{font-size:25px!important;line-height:1!important;}
body.member-dashboard-screen .member-quick-actions .quick a:nth-child(1):before{content:"₹";display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#159b62;color:#fff;}
body.member-dashboard-screen .member-quick-actions .quick a:nth-child(2){background:#edf4ff!important;color:#1556a0!important;border-color:#dceaff!important;}
body.member-dashboard-screen .member-quick-actions .quick a:nth-child(2):before{content:"▤";display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#347fdf;color:#fff;}
body.member-dashboard-screen .member-quick-actions .quick a:nth-child(3){background:#fff1e5!important;color:#a64d09!important;border-color:#ffead6!important;}
body.member-dashboard-screen .member-quick-actions .quick a:nth-child(3):before{content:"◷";display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#f07b27;color:#fff;}
body.member-dashboard-screen .member-quick-actions .quick a:nth-child(4){background:#f0edff!important;color:#5540aa!important;border-color:#e5dfff!important;}
body.member-dashboard-screen .member-quick-actions .quick a:nth-child(4):before{content:"●";display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#7956d8;color:#fff;}
body.member-dashboard-screen .member-activity-row{display:grid!important;grid-template-columns:44px minmax(0,1fr) auto!important;align-items:center!important;gap:11px!important;padding:13px 0!important;border-bottom:1px solid #edf1f6!important;}
body.member-dashboard-screen .member-activity-row:last-child{border-bottom:0!important;}
body.member-dashboard-screen .member-activity-icon{width:42px!important;height:42px!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:#e4f8ef!important;color:#08794f!important;font-size:20px!important;}
body.member-dashboard-screen .member-activity-description b{font-size:13px!important;color:#152f52!important;}
body.member-dashboard-screen .member-activity-description small{font-size:11px!important;color:#8290a3!important;display:block!important;margin-top:4px!important;}
body.member-dashboard-screen .member-activity-row>strong{font-size:13px!important;color:#132d50!important;white-space:nowrap!important;}
body.member-dashboard-screen .member-secondary-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;margin-top:14px!important;}
body.member-dashboard-screen .member-secondary-grid .document-card{border:1px solid #e3edf5!important;border-radius:12px!important;background:#f8fbff!important;padding:12px!important;}
@media(max-width:850px){
 body.member-dashboard-screen .page{padding:12px 13px calc(100px + env(safe-area-inset-bottom))!important;}
 body.member-dashboard-screen .member-hero{padding:15px!important;border-radius:20px!important;margin-bottom:14px!important;}
 body.member-dashboard-screen .member-hero-main{gap:12px!important;align-items:flex-start!important;}
 body.member-dashboard-screen .member-hero .dashboard-avatar{width:82px!important;height:82px!important;min-width:82px!important;}
 body.member-dashboard-screen .member-hero h1{font-size:clamp(20px,5.4vw,25px)!important;}
 body.member-dashboard-screen .member-hero p{font-size:12px!important;}
 body.member-dashboard-screen .member-photo-actions{gap:6px!important;}
 body.member-dashboard-screen .member-photo-action{font-size:10px!important;min-height:35px!important;padding:8px 9px!important;}
 body.member-dashboard-screen .member-kpis{gap:10px!important;}
 body.member-dashboard-screen .member-kpis .kpi{min-height:119px!important;padding:16px 12px 14px 15px!important;border-radius:17px!important;}
 body.member-dashboard-screen .member-kpis .kpi b{font-size:clamp(21px,6vw,28px)!important;}
 body.member-dashboard-screen .member-dashboard-content-grid>.panel,body.member-dashboard-screen .member-secondary-grid>.panel{padding:14px!important;border-radius:17px!important;}
 body.member-dashboard-screen .member-quick-actions .quick{gap:6px!important;}
 body.member-dashboard-screen .member-quick-actions .quick a{min-height:88px!important;font-size:10px!important;padding:9px 3px!important;}
 body.member-dashboard-screen .member-quick-actions .quick a:before{width:36px!important;height:36px!important;font-size:21px!important;}
 body.member-dashboard-screen .member-secondary-grid{grid-template-columns:1fr!important;}
}
@media(max-width:380px){
 body.member-dashboard-screen .page{padding-left:9px!important;padding-right:9px!important;}
 body.member-dashboard-screen .member-hero{padding:12px!important;}
 body.member-dashboard-screen .member-hero .dashboard-avatar{width:66px!important;height:66px!important;min-width:66px!important;}
 body.member-dashboard-screen .member-hero h1{font-size:19px!important;}
 body.member-dashboard-screen .member-code{font-size:10px!important;padding:4px 7px!important;}
 body.member-dashboard-screen .member-photo-action{font-size:9px!important;padding:7px 7px!important;}
 body.member-dashboard-screen .member-kpis .kpi{min-height:108px!important;padding:13px 9px 12px 12px!important;}
 body.member-dashboard-screen .member-kpis .kpi span{font-size:12px!important;}
 body.member-dashboard-screen .member-kpis .kpi b{font-size:20px!important;}
 body.member-dashboard-screen .member-quick-actions .quick a{font-size:9px!important;min-height:82px!important;}
}


/* V115 — reference-aligned member dashboard hero; scoped to member dashboard only */
body.member-dashboard-screen .member-hero{
  position:relative!important;display:block!important;overflow:hidden!important;
  padding:22px 26px!important;margin:0 0 16px!important;min-height:150px!important;
  border:1px solid #dce9f6!important;border-radius:20px!important;
  background:linear-gradient(105deg,#ffffff 0%,#f2f7ff 58%,#eaf8f0 100%)!important;
  box-shadow:0 8px 26px rgba(22,55,92,.08)!important;
}
body.member-dashboard-screen .member-hero:after{
  content:""!important;display:block!important;position:absolute!important;right:-3%!important;top:-48%!important;
  width:42%!important;height:190%!important;pointer-events:none!important;z-index:0!important;
  background:radial-gradient(ellipse at 100% 100%,rgba(20,145,83,.18),transparent 64%),
             linear-gradient(135deg,transparent 60%,rgba(32,170,105,.10) 60% 64%,transparent 64%)!important;
}
body.member-dashboard-screen .member-hero-main{position:relative!important;z-index:1!important;display:flex!important;align-items:center!important;gap:22px!important;min-width:0!important;}
body.member-dashboard-screen .member-hero .dashboard-avatar{display:block!important;flex:0 0 112px!important;width:112px!important;height:112px!important;min-width:112px!important;object-fit:cover!important;border-radius:50%!important;border:5px solid #fff!important;box-shadow:0 4px 16px rgba(21,55,91,.18)!important;background:#eaf2fb!important;}
body.member-dashboard-screen .member-hero .dashboard-avatar.placeholder{display:grid!important;place-items:center!important;font-size:42px!important;}
body.member-dashboard-screen .member-welcome-copy{display:flex!important;flex:1 1 auto!important;flex-wrap:wrap!important;align-items:center!important;gap:8px 12px!important;min-width:0!important;}
body.member-dashboard-screen .member-welcome-copy .eyebrow{flex:0 0 100%!important;margin:0!important;color:#14845b!important;font-size:11px!important;font-weight:850!important;letter-spacing:.14em!important;}
body.member-dashboard-screen .member-welcome-copy h1{flex:0 1 auto!important;margin:0!important;color:#102b53!important;font-size:clamp(23px,2.2vw,32px)!important;line-height:1.18!important;}
body.member-dashboard-screen .member-welcome-copy p{flex:0 0 100%!important;margin:0!important;color:#647891!important;font-size:13px!important;}
body.member-dashboard-screen .member-welcome-copy .member-code,
body.member-dashboard-screen .member-welcome-copy .member-active-loan-pill{display:inline-flex!important;align-items:center!important;min-height:28px!important;padding:5px 11px!important;border-radius:999px!important;font-size:11px!important;font-weight:750!important;}
body.member-dashboard-screen .member-welcome-copy .member-code{background:#fff!important;border:1px solid #dbe8f4!important;color:#173e68!important;}
body.member-dashboard-screen .member-welcome-copy .member-active-loan-pill{background:#e8f7ef!important;border:1px solid #ccebd9!important;color:#08794f!important;}
body.member-dashboard-screen .member-photo-actions{display:flex!important;flex:0 0 100%!important;align-items:center!important;gap:9px!important;margin:3px 0 0!important;}
body.member-dashboard-screen .member-photo-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:40px!important;padding:10px 16px!important;border-radius:11px!important;font-size:12px!important;font-weight:850!important;text-decoration:none!important;white-space:nowrap!important;box-shadow:0 4px 10px rgba(22,55,92,.10)!important;}
body.member-dashboard-screen .member-photo-action.contribution-action{background:linear-gradient(110deg,#07945d,#0baf70)!important;color:#fff!important;border:1px solid #078b58!important;}
body.member-dashboard-screen .member-photo-action.idcard-action{background:linear-gradient(110deg,#0878cb,#1764b4)!important;color:#fff!important;border:1px solid #126bb9!important;}
body.member-dashboard-screen .member-photo-action:hover{transform:translateY(-1px)!important;filter:brightness(1.03)!important;}
body.member-dashboard-screen .member-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:13px!important;margin:0 0 16px!important;}
body.member-dashboard-screen .member-kpis .kpi{min-width:0!important;min-height:124px!important;padding:18px 16px!important;border:1px solid #e1eaf4!important;border-radius:16px!important;box-shadow:0 5px 18px rgba(25,56,91,.05)!important;}
body.member-dashboard-screen .member-dashboard-content-grid{display:grid!important;grid-template-columns:minmax(0,1.4fr) minmax(270px,.9fr)!important;gap:14px!important;}
@media(max-width:850px){
 body.member-dashboard-screen .member-hero{padding:17px!important;min-height:0!important;}
 body.member-dashboard-screen .member-hero-main{gap:14px!important;align-items:flex-start!important;}
 body.member-dashboard-screen .member-hero .dashboard-avatar{flex-basis:82px!important;width:82px!important;height:82px!important;min-width:82px!important;border-width:4px!important;}
 body.member-dashboard-screen .member-welcome-copy{gap:7px 8px!important;}
 body.member-dashboard-screen .member-welcome-copy h1{font-size:clamp(19px,5vw,25px)!important;}
 body.member-dashboard-screen .member-welcome-copy p{font-size:11px!important;}
 body.member-dashboard-screen .member-photo-actions{flex-wrap:wrap!important;gap:7px!important;}
 body.member-dashboard-screen .member-photo-action{min-height:36px!important;padding:8px 10px!important;font-size:10px!important;}
 body.member-dashboard-screen .member-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
 body.member-dashboard-screen .member-kpis .kpi{min-height:112px!important;padding:14px 12px!important;}
 body.member-dashboard-screen .member-dashboard-content-grid{grid-template-columns:minmax(0,1fr)!important;}
}
@media(max-width:420px){
 body.member-dashboard-screen .member-hero{padding:13px!important;}
 body.member-dashboard-screen .member-hero-main{gap:10px!important;}
 body.member-dashboard-screen .member-hero .dashboard-avatar{flex-basis:66px!important;width:66px!important;height:66px!important;min-width:66px!important;}
 body.member-dashboard-screen .member-welcome-copy h1{font-size:18px!important;}
 body.member-dashboard-screen .member-welcome-copy .member-code,
 body.member-dashboard-screen .member-welcome-copy .member-active-loan-pill{font-size:9px!important;padding:4px 7px!important;}
 body.member-dashboard-screen .member-photo-action{font-size:9px!important;padding:7px 8px!important;}
}

/* V117 — member dashboard reference layout: large photo, quick payment, lower notice, ID card in profile. */
body.member-dashboard-screen .member-hero .dashboard-avatar,
body.member-dashboard-screen .member-hero .dashboard-avatar.placeholder{flex-basis:150px!important;width:150px!important;height:150px!important;min-width:150px!important;border-radius:50%!important;object-fit:cover!important;}
body.member-dashboard-screen .member-home-feed{order:3!important;margin:18px 0 0!important;border-radius:18px!important;background:linear-gradient(105deg,#e4f8ed,#f7fffa)!important;border:1px solid #cfead9!important;box-shadow:0 7px 22px rgba(17,65,48,.08)!important;}
body.member-dashboard-screen .member-home-feed-head{font-size:16px!important;padding:14px 17px!important;}
body.member-dashboard-screen .member-home-feed-viewport{min-height:48px!important;padding:10px 0 13px!important;}
body.member-dashboard-screen .member-home-feed-item{font-size:13px!important;font-weight:650!important;}
body.member-dashboard-screen .member-quick-actions .quick{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
body.member-dashboard-screen .member-quick-actions .quick .quick-pay-contribution{background:linear-gradient(135deg,#159b62,#08774b)!important;color:#fff!important;border-color:#0d8b56!important;}
body.member-dashboard-screen .member-quick-actions .quick .quick-pay-contribution:before{content:"₹"!important;background:#fff!important;color:#08794f!important;}
body.member-dashboard-screen .profile-actions{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;}
@media(max-width:850px){
 body.member-dashboard-screen .member-hero .dashboard-avatar,body.member-dashboard-screen .member-hero .dashboard-avatar.placeholder{flex-basis:112px!important;width:112px!important;height:112px!important;min-width:112px!important;}
 body.member-dashboard-screen .member-home-feed{margin-top:14px!important;}
 body.member-dashboard-screen .member-home-feed-head{font-size:14px!important;padding:12px 14px!important;}
 body.member-dashboard-screen .member-home-feed-item{font-size:11px!important;}
 body.member-dashboard-screen .member-quick-actions .quick{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;}
 body.member-dashboard-screen .member-quick-actions .quick a{min-height:94px!important;padding:9px 3px!important;font-size:10px!important;}
 body.member-dashboard-screen .member-quick-actions .quick a:before{width:36px!important;height:36px!important;font-size:21px!important;}
}
@media(max-width:420px){
 body.member-dashboard-screen .member-hero .dashboard-avatar,body.member-dashboard-screen .member-hero .dashboard-avatar.placeholder{flex-basis:96px!important;width:96px!important;height:96px!important;min-width:96px!important;}
 body.member-dashboard-screen .member-quick-actions .quick{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;}
 body.member-dashboard-screen .member-quick-actions .quick a{min-height:88px!important;font-size:10px!important;}
 body.member-dashboard-screen .member-home-feed-item{font-size:10px!important;}
 body.member-dashboard-screen .profile-actions .btn{font-size:11px!important;padding:8px 10px!important;}
}
@media(max-width:380px){
 body.member-dashboard-screen .member-hero .dashboard-avatar,body.member-dashboard-screen .member-hero .dashboard-avatar.placeholder{flex-basis:88px!important;width:88px!important;height:88px!important;min-width:88px!important;}
}


/* =========================================================
   V118 UNIFIED DASHBOARDS — Auto-fit Desktop + Mobile
   Admin (.ad-dash) + Member (.md-app)
   ========================================================= */

/* ---------- Shared page background ---------- */
body.dashboard-layout .page,
body.authenticated-page.role-admin .page,
body.authenticated-page.role-staff .page,
body.member-dashboard-screen .page{
  background:#f3f6fb !important;
}

/* ---------- ADMIN DASHBOARD ---------- */
.ad-dash{
  width:100%;
  max-width:1280px;
  margin:0 auto;
  padding:0 0 20px;
  box-sizing:border-box;
}
.ad-welcome{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  background:linear-gradient(105deg,#f7fbff 0%,#eef8f4 55%,#fff 100%);
  border:1px solid #e4edf6;
  border-radius:18px;
  padding:20px 22px;
  margin-bottom:16px;
  position:relative;
  overflow:hidden;
}
.ad-welcome:after{
  content:"";
  position:absolute;right:0;top:0;width:40%;height:100%;
  background:linear-gradient(120deg,transparent,rgba(255,153,51,.07) 40%,rgba(19,136,8,.07) 70%,transparent);
  pointer-events:none;
}
.ad-welcome h1{
  margin:0;
  font-size:clamp(20px,2.2vw,28px);
  font-weight:800;
  color:#0f2a4a;
  letter-spacing:-.03em;
}
.ad-welcome h1 span{color:#11845b}
.ad-welcome p{margin:6px 0 0;color:#6b7c8f;font-size:13px}
.ad-welcome-right{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;position:relative;z-index:1;
}
.ad-btn-green{
  display:inline-flex;align-items:center;gap:6px;
  background:linear-gradient(110deg,#13a066,#0d8a55);
  color:#fff!important;font-weight:800;font-size:13px;
  padding:12px 18px;border-radius:12px;text-decoration:none;
  box-shadow:0 6px 16px rgba(13,138,85,.22);border:0;white-space:nowrap;
}
.ad-progress-pill{
  background:#fff;border:1px solid #e4edf6;border-radius:12px;padding:10px 14px;min-width:130px;
}
.ad-progress-pill small{display:block;font-size:10px;font-weight:700;color:#6b7c8f;margin-bottom:6px}
.ad-progress-bar{height:5px;background:#e8eef5;border-radius:99px;overflow:hidden}
.ad-progress-bar i{display:block;height:100%;background:linear-gradient(90deg,#ff9933,#138808);border-radius:99px}

.ad-kpis{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}
.ad-kpi{
  background:#fff;border:1px solid #e8eef5;border-radius:16px;padding:14px 12px;
  display:flex;align-items:flex-start;gap:10px;
  box-shadow:0 2px 10px rgba(20,40,70,.04);min-width:0;
}
.ad-kpi-icon{
  width:40px;height:40px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  font-size:18px;flex-shrink:0;
}
.ad-i-blue{background:#e8f1fc}.ad-i-green{background:#e6f7ef}.ad-i-sky{background:#e3f4fc}
.ad-i-cyan{background:#e6f8f6}.ad-i-red{background:#fdecea}.ad-i-orange{background:#fef3e0}
.ad-kpi span{display:block;font-size:11px;font-weight:600;color:#6b7c8f;line-height:1.2}
.ad-kpi b{display:block;font-size:clamp(15px,1.4vw,18px);font-weight:800;color:#0f2a4a;margin:3px 0;letter-spacing:-.02em;word-break:break-word}
.ad-kpi small{font-size:10px;font-weight:700}
.ad-kpi small.up{color:#11845b}.ad-kpi small.down{color:#c0392b}.ad-kpi small.warn{color:#d68910}

.ad-main-grid{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(280px,.9fr);
  gap:16px;
  align-items:start;
}
.ad-card{
  background:#fff;border:1px solid #e8eef5;border-radius:18px;
  padding:18px 16px;box-shadow:0 2px 12px rgba(20,40,70,.04);margin-bottom:16px;
}
.ad-card-head{
  display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:10px;flex-wrap:wrap;
}
.ad-card-head h2{margin:0;font-size:16px;font-weight:800;color:#0f2a4a}
.ad-card-head small{color:#8a97a8;font-size:12px}
.ad-card-head a{font-size:12px;font-weight:700;color:#1a6fd4;text-decoration:none}

.ad-flow{
  display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;
}
.ad-flow-item{flex:1 1 90px;min-width:80px;text-align:center}
.ad-flow-icon{
  width:52px;height:52px;border-radius:50%;margin:0 auto 8px;
  display:flex;align-items:center;justify-content:center;
  font-size:20px;font-weight:800;color:#fff;
}
.ad-f-green{background:linear-gradient(145deg,#1dbf73,#0d9b5a)}
.ad-f-blue{background:linear-gradient(145deg,#3b8ef0,#1a6fd4)}
.ad-f-orange{background:linear-gradient(145deg,#f5a623,#e08910)}
.ad-f-teal{background:linear-gradient(145deg,#2ec4b6,#1a9b8e)}
.ad-flow-item span{display:block;font-size:11px;font-weight:600;color:#6b7c8f}
.ad-flow-item b{display:block;font-size:13px;font-weight:800;color:#0f2a4a;margin-top:2px;word-break:break-word}
.ad-flow-arrow{color:#c0cad6;font-size:22px;font-weight:300;flex-shrink:0}

.ad-chart{
  display:flex;align-items:flex-end;justify-content:space-between;
  gap:8px;height:200px;padding:10px 4px 0;
}
.ad-bar-col{
  flex:1;display:flex;flex-direction:column;align-items:center;
  justify-content:flex-end;height:100%;min-width:0;
}
.ad-bar-val{font-size:11px;font-weight:700;color:#0f2a4a;margin-bottom:6px}
.ad-bar{
  width:100%;max-width:48px;
  background:linear-gradient(180deg,#2ecf8a,#11845b);
  border-radius:8px 8px 4px 4px;min-height:8px;
}
.ad-bar-label{font-size:11px;font-weight:600;color:#6b7c8f;margin-top:8px}

.ad-activity-list{display:flex;flex-direction:column}
.ad-act-row{
  display:flex;align-items:flex-start;gap:10px;
  padding:12px 4px;border-bottom:1px solid #f0f4f8;
}
.ad-act-row:last-child{border-bottom:none}
.ad-act-icon{
  width:36px;height:36px;border-radius:50%;background:#eef4fb;
  display:flex;align-items:center;justify-content:center;font-size:15px;flex-shrink:0;
}
.ad-act-body{flex:1;min-width:0}
.ad-act-body b{display:block;font-size:13px;font-weight:700;color:#0f2a4a}
.ad-act-body small{font-size:11px;color:#8a97a8}
.ad-act-meta{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex-shrink:0}
.ad-act-meta time{font-size:11px;color:#8a97a8;font-weight:600}
.ad-badge{font-size:10px;font-weight:800;padding:3px 8px;border-radius:999px;white-space:nowrap}
.ad-badge.ok{background:#e6f7ef;color:#0d7a4f}
.ad-badge.review{background:#e8f1fc;color:#1a6fd4}
.ad-badge.info{background:#f0f4f8;color:#5a6a7a}
.ad-empty{text-align:center;padding:20px;color:#8a97a8;font-size:13px}

.ad-quick{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ad-q{
  display:flex;align-items:center;justify-content:center;gap:8px;
  padding:14px 12px;border-radius:12px;font-weight:800;font-size:13px;
  text-decoration:none;color:#fff!important;position:relative;text-align:center;
}
.ad-q em{
  position:absolute;top:6px;right:8px;background:#fff;color:#c0392b;
  font-style:normal;font-size:10px;font-weight:800;min-width:18px;height:18px;
  border-radius:999px;display:flex;align-items:center;justify-content:center;
}
.ad-q-green{background:linear-gradient(110deg,#13a066,#0d8a55)}
.ad-q-blue{background:linear-gradient(110deg,#2b7de9,#1a5fb8)}
.ad-q-orange{background:linear-gradient(110deg,#f5a623,#d68910)}
.ad-q-sky{background:linear-gradient(110deg,#3b8ef0,#2563c7)}

/* Admin responsive */
@media(max-width:1200px){
  .ad-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
  .ad-main-grid{grid-template-columns:1fr}
  .ad-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ad-welcome{padding:16px}
  .ad-chart{height:170px}
}
@media(max-width:480px){
  .ad-kpis{grid-template-columns:1fr 1fr;gap:8px}
  .ad-kpi{padding:12px 10px}
  .ad-kpi b{font-size:15px}
  .ad-flow-icon{width:42px;height:42px;font-size:16px}
  .ad-flow-item{min-width:64px}
  .ad-quick{grid-template-columns:1fr 1fr}
  .ad-chart{height:150px}
}

/* ---------- MEMBER DASHBOARD ---------- */
.md-app{
  width:100%;
  max-width:1100px;
  margin:0 auto;
  padding:0;
  box-sizing:border-box;
  font-family:inherit;
  color:#1a2b3c;
}

/* Visibility helpers — mobile-first defaults (phone shows mobile UI) */
.md-mobile-only{display:block}
.md-mobile-only.md-topbar{display:flex}
.md-mobile-only.md-activity-list{display:flex}
.md-mobile-only.md-quick-grid{display:grid}
.md-mobile-only.md-notice{display:flex}
.md-mobile-only.md-pill{display:flex}
.md-desktop-only{display:none !important}

.md-topbar{
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;margin-bottom:14px;padding-top:2px;flex-wrap:nowrap;
}
.md-topbar .md-brand{flex:1;min-width:0}
.md-topbar .md-top-actions{flex-shrink:0}

.md-brand{display:flex;align-items:center;gap:8px;min-width:0}
.md-logo{width:48px;height:48px;object-fit:contain;border-radius:10px;flex-shrink:0}
.md-brand-title{font-size:14px;font-weight:800;letter-spacing:.01em;color:#0b3d7a;line-height:1.15;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.md-brand-sub{font-size:11px;font-weight:700;color:#234;margin-top:1px;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.md-brand-tag{font-size:9px;color:#6b7c8f;font-style:italic;margin-top:1px}
.md-top-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.md-bell{
  position:relative;width:38px;height:38px;display:flex;align-items:center;justify-content:center;
  border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(20,40,70,.06);text-decoration:none;
}
.md-badge{
  position:absolute;top:2px;right:2px;min-width:16px;height:16px;background:#e53935;color:#fff;
  font-size:10px;font-weight:800;border-radius:999px;display:flex;align-items:center;justify-content:center;
  padding:0 4px;border:2px solid #fff;
}
.md-sahyog{display:flex;align-items:center;gap:5px}
.md-sahyog-text{display:flex;flex-direction:column;line-height:1.1;font-size:9px;color:#1a5c2e}
.md-sahyog-text b{font-weight:800}
.md-sahyog-text small{color:#c47a00;font-weight:700}

.md-notice-banner{
  align-items:center;gap:12px;
  background:linear-gradient(105deg,#e8faf1,#f0fdf6);
  border:1px solid #c8ecd8;border-radius:14px;padding:12px 16px;margin-bottom:16px;
}
.md-nb-icon{font-size:18px}
.md-nb-label{font-weight:800;color:#0d7a4f;font-size:13px;white-space:nowrap}
.md-nb-text{flex:1;font-size:13px;color:#2a4a3a;font-weight:600;min-width:0}
.md-nb-link{font-size:12px;font-weight:700;color:#11845b;text-decoration:none;white-space:nowrap}

.md-welcome{
  display:flex;align-items:center;justify-content:space-between;
  gap:10px;margin-bottom:16px;flex-wrap:nowrap;
}
.md-user{display:flex;align-items:center;gap:12px;min-width:0}
.md-avatar{
  width:64px;height:64px;border-radius:50%;object-fit:cover;
  border:3px solid #fff;box-shadow:0 4px 14px rgba(20,50,80,.12);
  flex-shrink:0;background:#e8f0f8;
}
.md-avatar-ph{
  display:flex;align-items:center;justify-content:center;font-size:28px;
  background:linear-gradient(145deg,#e8f4ff,#d4ebff);
}
.md-user-info h1{
  margin:0;font-size:clamp(20px,2.2vw,28px);font-weight:500;
  color:#1a2b3c;line-height:1.2;letter-spacing:-.02em;
}
.md-user-info h1 span{font-weight:800;color:#11845b}
.md-user-info .md-greeting{font-size:12px;line-height:1.15;font-weight:700;letter-spacing:.04em;color:#718096;margin:0 0 3px}
.md-user-info .md-member-id{margin:4px 0 0;font-size:12px;color:#536579;font-weight:700}
.md-user-info p{margin:4px 0 0;font-size:13px;color:#6b7c8f;font-weight:500}
.md-pill{
  display:flex;align-items:center;gap:6px;
  background:linear-gradient(135deg,#e8faf1,#d4f5e4);
  border-radius:14px;padding:8px 10px;flex-shrink:0;
  box-shadow:0 2px 10px rgba(18,120,80,.08);max-width:42%;
}
.md-pill-icon{
  width:28px;height:28px;border-radius:50%;background:#fff;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 6px rgba(18,120,80,.1);font-size:14px;flex-shrink:0;
}
.md-pill-text{font-size:9px;font-weight:700;color:#0d7a4f;line-height:1.2}
.md-user{flex:1;min-width:0}
.md-user-info{min-width:0}
.md-user-info h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.md-desktop-tagline{text-align:right;font-size:12px;color:#6b7c8f;line-height:1.4}
.md-desktop-tagline em{font-style:normal;font-weight:600}

.md-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-bottom:16px;
}
.md-kpi{
  display:flex;align-items:flex-start;gap:10px;
  background:#fff;border-radius:16px;padding:16px 14px;
  text-decoration:none;color:inherit;
  box-shadow:0 2px 12px rgba(20,40,70,.05);border:1px solid #eef2f7;
  min-width:0;flex-direction:column;
}
.md-kpi-icon{
  width:42px;height:42px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;font-size:18px;
}
.md-kpi-green{background:#e6f7ef}
.md-kpi-blue{background:#e8f1fc}
.md-kpi-sky{background:#e3f4fc}
.md-kpi-orange{background:#fef3e0}
.md-kpi-purple{background:#f0ebff}
.md-kpi-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;width:100%}
.md-kpi-body span{font-size:12px;color:#6b7c8f;font-weight:600}
.md-kpi-body b{font-size:clamp(17px,1.6vw,22px);font-weight:800;color:#0d7a4f;letter-spacing:-.02em}
.md-kpi-body small{display:block;font-size:11px;color:#8a97a8;font-weight:500;margin-top:2px}
.md-kpi-arrow{color:#c0cad6;font-size:20px;font-weight:300;line-height:1;align-self:center}

.md-content-grid{
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(260px,.85fr);
  gap:16px;
  align-items:start;
}
.md-activity,.md-quick-card{
  background:#fff;border-radius:18px;padding:16px 14px;
  box-shadow:0 2px 12px rgba(20,40,70,.05);border:1px solid #eef2f7;
}
.md-section-head{
  display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;
}
.md-section-title{display:flex;align-items:center;gap:6px}
.md-section-title h2{margin:0;font-size:15px;font-weight:800;color:#1a2b3c}
.md-section-head > a{font-size:12px;font-weight:700;color:#1a9b63;text-decoration:none}
.md-bolt,.md-clock{font-size:15px}

.md-table{flex-direction:column}
.md-table-head,.md-table-row{
  display:grid;
  grid-template-columns:100px 1fr 90px 90px;
  gap:10px;align-items:center;padding:12px 8px;font-size:13px;
}
.md-table-head{
  font-weight:700;color:#6b7c8f;background:#f7fafc;border-radius:10px;font-size:12px;
}
.md-table-row{border-bottom:1px solid #f0f4f8}
.md-table-row:last-child{border-bottom:none}

.md-quick-desktop{flex-direction:column;gap:10px}
.md-qd-btn{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 16px;border-radius:12px;font-weight:800;font-size:14px;
  text-decoration:none;color:#fff!important;
}
.md-qd-green{background:linear-gradient(110deg,#13a066,#0d8a55)}
.md-qd-blue{background:linear-gradient(110deg,#2b7de9,#1a5fb8)}
.md-qd-sky{background:linear-gradient(110deg,#3b8ef0,#2563c7)}

.md-status{
  font-size:11px;font-weight:800;padding:4px 10px;border-radius:999px;
  letter-spacing:.02em;display:inline-flex;align-items:center;gap:3px;width:fit-content;
}
.md-status.paid{background:#e6f7ef;color:#0d7a4f}
.md-status.pending{background:#fff3e0;color:#c47a00}

.md-activity-list{display:flex;flex-direction:column}
.md-activity-row{
  display:flex;align-items:center;gap:12px;padding:12px 4px;border-bottom:1px solid #f0f4f8;
}
.md-activity-row:last-child{border-bottom:none}
.md-act-icon{
  width:40px;height:40px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:16px;font-weight:700;flex-shrink:0;
}
.md-act-up{background:#e6f7ef;color:#1a9b63}
.md-act-doc{background:#e8f1fc;color:#2b7de9}
.md-act-info{flex:1;min-width:0}
.md-act-info b{display:block;font-size:13px;font-weight:700;color:#1a2b3c}
.md-act-info small{font-size:11px;color:#8a97a8;font-weight:500}
.md-act-right{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.md-act-right strong{font-size:14px;font-weight:800;color:#1a2b3c}
.md-activity-empty{text-align:center;padding:20px;color:#8a97a8;font-size:13px}

.md-quick-grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:8px;text-align:center;
}
.md-quick-item{
  display:flex;flex-direction:column;align-items:center;gap:8px;
  text-decoration:none;color:#2a3a4a;
}
.md-qicon{
  width:54px;height:54px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 12px rgba(0,0,0,.12);font-size:20px;color:#fff;font-weight:800;
}
.md-q-green{background:linear-gradient(145deg,#1dbf73,#0d9b5a)}
.md-q-blue{background:linear-gradient(145deg,#3b8ef0,#1a6fd4)}
.md-q-orange{background:linear-gradient(145deg,#f5a623,#e08910)}
.md-q-purple{background:linear-gradient(145deg,#8b6cf7,#6b4ce0)}
.md-quick-item span{font-size:11px;font-weight:700;line-height:1.25;color:#2a3a4a}

.md-notice{
  display:flex;align-items:center;gap:10px;
  background:linear-gradient(105deg,#e8faf1,#f0fdf6);
  border:1px solid #c8ecd8;border-radius:16px;padding:12px 14px;margin:12px 0 14px;
}
.md-notice-icon{
  font-size:16px;width:36px;height:36px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  background:#fff;border-radius:50%;box-shadow:0 2px 8px rgba(18,120,80,.1);
}
.md-notice-content{flex:1;min-width:0}
.md-notice-label{font-size:12px;font-weight:800;color:#0d7a4f;margin-bottom:2px}
.md-notice-body{
  font-size:12px;color:#2a4a3a;font-weight:600;line-height:1.35;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.md-notice-arrow{font-size:22px;color:#8ab89a;text-decoration:none;font-weight:300;flex-shrink:0}

/* ========== MOBILE DEFAULT (member phone UI) ========== */
body.member-dashboard-screen .sidebar,
body.member-dashboard-screen .topbar{
  display:none !important;
}
body.member-dashboard-screen .main{
  margin-left:0 !important;
  width:100% !important;
}
body.member-dashboard-screen .page{
  max-width:480px !important;
  margin:0 auto !important;
  padding:0 0 88px !important;
  background:#f4f7fb !important;
}
body.member-dashboard-screen .mobile-bottom-nav{
  display:flex !important;
}
body.member-dashboard-screen footer{display:none !important}

.md-app{max-width:480px;margin:0 auto;padding:12px 14px 16px}
.md-kpis{grid-template-columns:1fr 1fr;gap:10px}
.md-kpi{flex-direction:row;align-items:center;padding:14px 12px}
.md-kpi-body b{font-size:17px}
.md-kpi-body small{display:none !important}
.md-content-grid{display:block}
.md-quick-card{margin-bottom:12px}
.md-activity{margin-bottom:12px}
.md-user-info h1{font-size:20px}
.md-user-info h1 span{color:#0d1f33}
.md-welcome{align-items:center}
.md-pill{margin-left:auto}

/* Reorder mobile sections: quick actions before activity */
.md-content-grid .md-quick-card{order:1}
.md-content-grid .md-activity{order:2}

/* ========== DESKTOP ≥901px ========== */
@media(min-width:901px){
  .md-mobile-only{display:none !important}
  .md-desktop-only{display:block !important}
  .md-desktop-only.md-notice-banner{display:flex !important}
  .md-desktop-only.md-table{display:flex !important}
  .md-desktop-only.md-quick-desktop{display:flex !important}
  .md-desktop-only.md-desktop-tagline{display:block !important}
  .md-desktop-only.md-content-grid{display:grid !important}

  body.member-dashboard-screen:not(.sidebar-collapsed) .sidebar{display:flex !important}
  body.member-dashboard-screen .topbar{display:flex !important}
  body.member-dashboard-screen .main{/* layout default */}
  body.member-dashboard-screen .page{
    max-width:1600px !important;
    width:100% !important;
    padding:20px 24px 40px !important;
    margin:0 auto !important;
  }
  body.member-dashboard-screen .mobile-bottom-nav{display:none !important}
  body.member-dashboard-screen footer{display:block !important}

  body.member-dashboard-screen.role-member .sidebar a[href*="member-dashboard"]{
    background:linear-gradient(110deg,#13a066,#0d8a55)!important;
    color:#fff!important;border-radius:12px;
  }

  .md-app{max-width:1100px;padding:0}
  .md-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
  .md-kpi{flex-direction:column;align-items:flex-start;padding:16px 14px}
  .md-kpi-body b{font-size:clamp(17px,1.6vw,22px)}
  .md-kpi-body small{display:block !important}
  .md-content-grid{
    display:grid;
    grid-template-columns:minmax(0,1.5fr) minmax(260px,.85fr);
    gap:16px;
  }
  .md-user-info h1{font-size:clamp(22px,2.2vw,28px)}
  .md-user-info h1 span{color:#11845b}
}

@media(max-width:400px){
  .md-kpis{gap:8px}
  .md-kpi{padding:12px 10px}
  .md-kpi-body b{font-size:15px}
  .md-qicon{width:48px;height:48px;font-size:18px}
  .ad-kpis{gap:8px}
}

/* Fix typo protection */
.md-dots span{background:#c5e0d0}

/* Ensure admin page uses full content width on desktop */
body.dashboard-layout .page{
  max-width:1600px;
  width:100%;
}

/* =========================================================
   V121 GLOBAL MODERN UI — All Admin + Member pages
   Panels, forms, tables, buttons, lists, filters
   ========================================================= */

body.authenticated-page{
  background:#f3f6fb !important;
}
body.authenticated-page .page{
  background:transparent !important;
}

/* Page titles */
body.authenticated-page .page-title{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:18px;
  padding:18px 18px 16px;
  background:#fff;
  border:1px solid #e8eef5;
  border-radius:18px;
  box-shadow:0 2px 12px rgba(20,40,70,.04);
}
body.authenticated-page .page-title:before{
  left:18px;right:18px;top:0;border-radius:0 0 8px 8px;
}
body.authenticated-page .page-title h1{
  margin:4px 0 4px;
  font-size:clamp(20px,2.2vw,26px);
  font-weight:800;
  color:#0f2a4a;
  letter-spacing:-.02em;
}
body.authenticated-page .page-title p,
body.authenticated-page .page-title .hi-sub{
  margin:0;
  color:#6b7c8f;
  font-size:13px;
}
body.authenticated-page .page-title .eyebrow{
  color:#11845b !important;
  font-weight:800;
  letter-spacing:.12em;
  font-size:10px;
}

/* Panels / cards */
body.authenticated-page .panel{
  background:#fff;
  border:1px solid #e8eef5;
  border-radius:18px;
  padding:18px 16px;
  box-shadow:0 2px 12px rgba(20,40,70,.04);
  margin-bottom:16px;
}
body.authenticated-page .panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:14px;
  padding-bottom:10px;
  border-bottom:1px solid #f0f4f8;
}
body.authenticated-page .panel-head h2{
  margin:0;
  font-size:16px;
  font-weight:800;
  color:#0f2a4a;
}
body.authenticated-page .panel-head a{
  font-size:12px;
  font-weight:700;
  color:#1a6fd4;
}

/* Forms */
body.authenticated-page label{
  font-size:12px;
  font-weight:700;
  color:#4a5d73;
  margin:12px 0 6px;
}
body.authenticated-page input[type="text"],
body.authenticated-page input[type="number"],
body.authenticated-page input[type="email"],
body.authenticated-page input[type="tel"],
body.authenticated-page input[type="password"],
body.authenticated-page input[type="date"],
body.authenticated-page input[type="month"],
body.authenticated-page input[type="search"],
body.authenticated-page input[type="file"],
body.authenticated-page select,
body.authenticated-page textarea{
  width:100%;
  border:1px solid #dde5f0;
  background:#f8fafc;
  border-radius:12px;
  padding:12px 14px;
  font-size:14px;
  color:#0f2a4a;
  transition:border-color .15s, box-shadow .15s, background .15s;
}
body.authenticated-page input:focus,
body.authenticated-page select:focus,
body.authenticated-page textarea:focus{
  border-color:#3b8ef0;
  background:#fff;
  box-shadow:0 0 0 3px rgba(59,142,240,.15);
  outline:none;
}
body.authenticated-page textarea{min-height:100px}
body.authenticated-page .settings-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 16px;
}
body.authenticated-page .settings-grid .span2{grid-column:1 / -1}
body.authenticated-page .inline-form{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:flex-end;
  margin-bottom:14px;
}
body.authenticated-page .inline-form input,
body.authenticated-page .inline-form select{
  min-width:140px;
  flex:1 1 160px;
}

/* Buttons */
body.authenticated-page .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:11px 16px;
  border-radius:12px;
  font-weight:800;
  font-size:13px;
  border:1px solid #dce4ef;
  background:#fff;
  color:#1b3152;
  cursor:pointer;
  transition:transform .12s, box-shadow .12s, background .12s;
  text-decoration:none;
}
body.authenticated-page .btn:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(20,40,70,.08)}
body.authenticated-page .btn.primary,
body.authenticated-page .btn-primary{
  background:linear-gradient(110deg,#2b7de9,#1a5fb8);
  color:#fff !important;
  border-color:transparent;
  box-shadow:0 4px 14px rgba(26,95,184,.22);
}
body.authenticated-page .btn.success,
body.authenticated-page button.btn[type="submit"]:not(.danger):not(.btn){
  /* keep existing */
}
body.authenticated-page .btn.danger{
  background:linear-gradient(110deg,#e74c3c,#c0392b);
  color:#fff !important;
  border-color:transparent;
}
body.authenticated-page .btn.full{width:100%}
body.authenticated-page form .btn.primary,
body.authenticated-page form button.btn.primary,
body.authenticated-page form button[type="submit"].btn,
body.authenticated-page form button.btn:not(.danger):not(.light){
  background:linear-gradient(110deg,#13a066,#0d8a55);
  color:#fff !important;
  border-color:transparent;
  box-shadow:0 4px 14px rgba(13,138,85,.2);
}
body.authenticated-page form button.btn.danger{
  background:linear-gradient(110deg,#e74c3c,#c0392b);
}

/* Tables */
body.authenticated-page .table-wrap{
  border:1px solid #e8eef5;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}
body.authenticated-page table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
body.authenticated-page table thead th{
  background:#f7fafc !important;
  color:#5a6a7a !important;
  font-weight:800;
  font-size:12px;
  text-align:left;
  padding:12px 14px;
  border-bottom:1px solid #e8eef5;
  box-shadow:none !important;
  border-top:none !important;
}
body.authenticated-page table tbody td{
  padding:12px 14px;
  border-bottom:1px solid #f0f4f8;
  color:#1a2b3c;
  vertical-align:middle;
}
body.authenticated-page table tbody tr:last-child td{border-bottom:none}
body.authenticated-page table tbody tr:hover{background:#f8fafc}

/* Badges */
body.authenticated-page .badge{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:4px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.02em;
}
body.authenticated-page .badge.success{background:#e6f7ef;color:#0d7a4f}
body.authenticated-page .badge.warning{background:#fff3e0;color:#c47a00}
body.authenticated-page .badge.danger{background:#fdecea;color:#c0392b}
body.authenticated-page .badge.info{background:#e8f1fc;color:#1a6fd4}

/* Alerts */
body.authenticated-page .alert{
  border-radius:14px;
  padding:12px 14px;
  margin-bottom:14px;
  font-size:13px;
  font-weight:600;
  border:1px solid transparent;
}
body.authenticated-page .alert.success{background:#e6f7ef;color:#0d7a4f;border-color:#c8ecd8}
body.authenticated-page .alert.info{background:#e8f1fc;color:#1a5fb8;border-color:#cfe2ff}
body.authenticated-page .alert.warning{background:#fff3e0;color:#c47a00;border-color:#ffe0b2}
body.authenticated-page .alert.danger{background:#fdecea;color:#c0392b;border-color:#f5c6cb}

/* KPI strips on other pages */
body.authenticated-page .kpis{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:12px;
  margin-bottom:16px;
}
body.authenticated-page .kpi{
  background:#fff;
  border:1px solid #e8eef5;
  border-radius:16px;
  padding:14px;
  box-shadow:0 2px 10px rgba(20,40,70,.04);
}
body.authenticated-page .kpi span{font-size:11px;font-weight:600;color:#6b7c8f}
body.authenticated-page .kpi b{display:block;font-size:18px;font-weight:800;color:#0f2a4a;margin-top:4px}

/* Quick links */
body.authenticated-page .quick{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:10px;
}
body.authenticated-page .quick a{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 12px;
  border-radius:14px;
  background:#f7fafc;
  border:1px solid #e8eef5;
  font-weight:800;
  font-size:13px;
  color:#0f2a4a;
  text-decoration:none;
  transition:background .15s, transform .12s;
}
body.authenticated-page .quick a:hover{
  background:#eef6ff;
  transform:translateY(-1px);
}

/* Grids */
body.authenticated-page .grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
body.authenticated-page .grid-3{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

/* Hero blocks on inner pages */
body.authenticated-page .hero:not(.member-hero):not(.modern-dashboard-hero){
  background:linear-gradient(105deg,#f7fbff 0%,#eef8f4 55%,#fff 100%) !important;
  color:#0f2a4a !important;
  border:1px solid #e4edf6;
  border-radius:18px;
  box-shadow:0 2px 12px rgba(20,40,70,.04);
}
body.authenticated-page .hero:not(.member-hero):not(.modern-dashboard-hero) h1{color:#0f2a4a !important}
body.authenticated-page .hero:not(.member-hero):not(.modern-dashboard-hero) p{color:#6b7c8f !important}

/* Empty states */
body.authenticated-page .empty-state,
body.authenticated-page .muted{
  color:#8a97a8;
}

/* Mobile global */
@media(max-width:900px){
  body.authenticated-page .page{
    padding:14px 12px 90px !important;
  }
  body.authenticated-page .page-title{
    padding:14px;
    margin-bottom:12px;
  }
  body.authenticated-page .page-title h1{font-size:20px}
  body.authenticated-page .panel{padding:14px;border-radius:16px}
  body.authenticated-page .settings-grid{grid-template-columns:1fr}
  body.authenticated-page .grid-2,
  body.authenticated-page .grid-3{grid-template-columns:1fr}
  body.authenticated-page .kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body.authenticated-page table thead th,
  body.authenticated-page table tbody td{padding:10px 10px;font-size:12px}
  body.authenticated-page .inline-form{flex-direction:column;align-items:stretch}
  body.authenticated-page .inline-form .btn{width:100%}
  body.authenticated-page .btn{width:100%;max-width:100%}
  body.authenticated-page .panel-head .btn{width:auto}
}

@media(max-width:480px){
  body.authenticated-page .kpis{grid-template-columns:1fr 1fr}
  body.authenticated-page .kpi b{font-size:15px}
}


/* =========================================================
   V122 Admin mobile A-Z layout fix
   ========================================================= */
@media(max-width:900px){
  .ad-dash{padding:0 0 12px}
  .ad-welcome{
    flex-direction:column;align-items:stretch;gap:12px;padding:14px;
  }
  .ad-welcome-right{width:100%;justify-content:space-between}
  .ad-btn-green{flex:1;justify-content:center}
  .ad-kpis{
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
  }
  .ad-kpi{
    flex-direction:column;align-items:flex-start;gap:6px;padding:12px 10px;
  }
  .ad-kpi b{font-size:15px;word-break:break-word}
  .ad-kpi span{font-size:10px}
  .ad-main-grid{grid-template-columns:1fr !important;gap:12px}
  .ad-flow{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:12px !important;
  }
  .ad-flow-arrow{display:none !important}
  .ad-flow-item{min-width:0 !important}
  .ad-flow-icon{width:44px;height:44px;font-size:16px}
  .ad-chart{height:150px;gap:4px}
  .ad-bar{max-width:36px}
  .ad-bar-val{font-size:9px}
  .ad-quick{grid-template-columns:1fr 1fr !important}
  .ad-q{font-size:12px;padding:12px 8px}
  .ad-act-row{flex-wrap:wrap}
  .ad-act-meta{flex-direction:row;align-items:center;gap:8px;width:100%;justify-content:space-between;margin-top:4px;padding-left:46px}
  body.authenticated-page.role-admin .page,
  body.authenticated-page.role-staff .page{
    padding:12px 10px 90px !important;
  }
  body.authenticated-page .settings-grid{grid-template-columns:1fr !important}
  body.authenticated-page .grid-2,
  body.authenticated-page .grid-3{grid-template-columns:1fr !important}
  body.authenticated-page table{font-size:12px}
  body.authenticated-page .table-wrap{overflow-x:auto}
  body.authenticated-page .inline-form{
    flex-direction:column !important;
    align-items:stretch !important;
  }
  body.authenticated-page .inline-form input,
  body.authenticated-page .inline-form select{width:100% !important;min-width:0 !important}
  body.authenticated-page .panel-head{flex-direction:column;align-items:flex-start}
}
@media(max-width:400px){
  .ad-kpis{grid-template-columns:1fr 1fr !important}
  .md-pill{max-width:38%;padding:6px 8px}
  .md-pill-text{font-size:8px}
  .md-user-info h1{font-size:16px}
}

/* =========================================================
   V123 — A2Z tabs grid, Sidebar polish, Payment history height
   ========================================================= */

/* A2Z Control Center tab grid */
.a2z-tabs-panel{padding:12px !important}
.a2z-tabs{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:8px;
}
.a2z-tab{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:11px 8px;
  border-radius:12px;
  background:#f5f8fc;
  border:1px solid #e4edf6;
  color:#2a3f5f !important;
  font-weight:800;
  font-size:12px;
  text-align:center;
  text-decoration:none;
  line-height:1.25;
  min-height:44px;
  transition:background .15s, border-color .15s, color .15s;
}
.a2z-tab:hover{background:#eef6ff;border-color:#cfe2ff}
.a2z-tab.active{
  background:linear-gradient(110deg,#13a066,#0d8a55);
  color:#fff !important;
  border-color:transparent;
  box-shadow:0 4px 12px rgba(13,138,85,.2);
}
@media(max-width:1100px){
  .a2z-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:700px){
  .a2z-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .a2z-tab{font-size:11px;padding:10px 6px;min-height:48px}
}
@media(max-width:360px){
  .a2z-tabs{grid-template-columns:1fr 1fr}
}

/* Sidebar modern polish — desktop + mobile drawer */
.sidebar{
  background:linear-gradient(180deg,#0b2a55 0%,#0a3d6e 40%,#0c4a5c 100%) !important;
}
.sidebar .brand{
  background:linear-gradient(110deg,#ff8a1f 0%,#ffb84d 25%,#ffffff 50%,#d4f0d8 75%,#1a9b4a 100%) !important;
  min-height:120px !important;
  border-radius:0 0 18px 18px;
  margin-bottom:8px;
}
.sidebar nav a{
  border-radius:12px !important;
  margin:3px 0 !important;
  padding:11px 12px !important;
  font-size:13px !important;
  gap:10px !important;
}
.sidebar nav a:hover{
  background:rgba(255,255,255,.14) !important;
}
.sidebar nav a.active{
  background:linear-gradient(100deg,rgba(255,153,51,.95),rgba(255,255,255,.18),rgba(19,136,8,.45)) !important;
  box-shadow:0 6px 16px rgba(0,0,0,.15) !important;
}
.sidebar nav a .sidebar-icon{
  width:36px !important;
  min-width:36px !important;
  height:36px !important;
  border-radius:10px !important;
}
.side-bottom a{
  border-radius:12px !important;
  padding:11px 12px !important;
}

/* Mobile sidebar drawer */
@media(max-width:850px){
  .sidebar{
    width:min(300px,88vw) !important;
    padding:14px 12px !important;
    border-radius:0 20px 20px 0 !important;
    box-shadow:12px 0 40px rgba(0,0,0,.25) !important;
  }
  .sidebar .brand{
    min-height:100px !important;
    padding:12px 10px 18px !important;
  }
  .sidebar .brand div,
  .sidebar nav a span,
  .side-bottom a{display:block !important}
  .sidebar nav a{
    font-size:13px !important;
    padding:12px !important;
  }
  .sidebar nav a span{
    white-space:normal !important;
    line-height:1.25;
  }
}

/* Payment history / long tables — limit height */
body.authenticated-page .table-wrap{
  max-height:none;
}
/* Member payment history and similar list panels */
body.authenticated-page.role-member .panel .table-wrap,
body.authenticated-page .panel.payment-history-panel .table-wrap,
body.member-dashboard-screen ~ * .table-wrap{
  max-height:none;
}
/* Cap very tall activity/history tables on mobile */
@media(max-width:900px){
  body.authenticated-page .panel .table-wrap{
    max-height:55vh;
    overflow:auto;
    -webkit-overflow-scrolling:touch;
  }
  body.authenticated-page .page-title{
    flex-direction:column;
    align-items:stretch;
  }
  body.authenticated-page .page-title .btn{
    width:100%;
  }
  /* Don't force ALL buttons full width inside a2z tabs */
  body.authenticated-page .a2z-tab{
    width:auto !important;
    max-width:none !important;
  }
  body.authenticated-page .a2z-tabs .btn{
    width:auto !important;
  }
}

/* Member payment history page spacing */
body.authenticated-page.role-member .page .panel{
  margin-bottom:12px;
}
body.authenticated-page.role-member .page .panel .table-wrap table tbody tr{
  height:auto;
}
body.authenticated-page.role-member .page .panel .table-wrap table tbody td{
  padding:10px 12px;
  line-height:1.35;
}

/* Desktop sidebar width polish */
@media(min-width:851px){
  .sidebar{width:250px !important}
  .main{margin-left:250px !important;width:calc(100% - 250px) !important}
}

/* Payment history compact */
.payment-history-panel{padding:12px !important}
.payment-history-table{
  max-height:60vh;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  border-radius:12px;
}
.payment-history-table table{margin:0}
.payment-history-table th,
.payment-history-table td{padding:10px 12px !important;font-size:12px !important}
@media(max-width:700px){
  .payment-history-table{max-height:50vh}
  .payment-history-table th:nth-child(3),
  .payment-history-table td:nth-child(3),
  .payment-history-table th:nth-child(5),
  .payment-history-table td:nth-child(5){display:none} /* hide Month/EMI + Mode on very small */
}

/* =========================================================
   V124 — Header colors, Print, Modern forms (Apply Loan etc.)
   ========================================================= */

/* Topbar / menu header — clean white with accent, not harsh tricolor fill */
body.authenticated-page .topbar{
  background:#ffffff !important;
  border-bottom:1px solid #e8eef5 !important;
  border-image:none !important;
  box-shadow:0 2px 12px rgba(20,40,70,.06) !important;
  height:64px !important;
  min-height:64px !important;
  padding:0 16px !important;
  gap:12px !important;
}
body.authenticated-page .topbar:before{
  content:"";
  position:absolute;left:0;right:0;top:0;height:3px;
  background:linear-gradient(90deg,#ff9933 0%,#ff9933 33%,#ffffff 33%,#ffffff 66%,#138808 66%,#138808 100%);
}
body.authenticated-page .topbar{position:sticky}
body.authenticated-page .topbar .mobile-brand,
body.authenticated-page .topbar .topbar-brand{
  color:#0f2a4a !important;
}
body.authenticated-page .topbar .mobile-brand b,
body.authenticated-page .topbar .topbar-brand b{
  color:#0f2a4a !important;
  font-size:14px;
}
body.authenticated-page .topbar .mobile-brand small,
body.authenticated-page .topbar .topbar-brand small{
  color:#6b7c8f !important;
}
body.authenticated-page .topbar .search{
  background:#f5f8fc !important;
  border-color:#e4edf6 !important;
}
body.authenticated-page .topbar .icon-btn,
body.authenticated-page .topbar .notification-btn{
  background:#f5f8fc !important;
  border-radius:50%;
  width:40px;height:40px;
  display:inline-flex;align-items:center;justify-content:center;
}

/* Notice bar — single clean strip, no truncation mess */
body.authenticated-page .notice-bar{
  background:linear-gradient(105deg,#eef8f3,#f5fbf7) !important;
  border:1px solid #d0eadc !important;
  border-radius:14px !important;
  margin:10px 12px 0 !important;
  padding:10px 14px !important;
  overflow:hidden;
  min-height:48px;
  display:flex;
  align-items:center;
  gap:10px;
}
body.authenticated-page .notice-bar *{
  max-width:100%;
}
body.authenticated-page .notice-ticker,
body.authenticated-page .notice-bar .notice-text{
  flex:1;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:13px;
  font-weight:600;
  color:#1a3d2e;
}

/* Modern form system — Apply Loan + all future forms */
.modern-form-kpis{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:14px;
}
.modern-form-kpi{
  background:#fff;
  border:1px solid #e8eef5;
  border-radius:14px;
  padding:14px;
  box-shadow:0 2px 10px rgba(20,40,70,.04);
}
.modern-form-kpi span{display:block;font-size:11px;font-weight:700;color:#6b7c8f}
.modern-form-kpi b{display:block;font-size:18px;font-weight:800;color:#0f2a4a;margin-top:4px}
.modern-form-kpi.green b{color:#0d7a4f}
.modern-form-panel{padding:16px !important}
.modern-form-section{
  font-size:12px;
  font-weight:800;
  color:#11845b;
  letter-spacing:.04em;
  text-transform:uppercase;
  margin:16px 0 8px;
  padding-bottom:6px;
  border-bottom:1px dashed #d8e8de;
}
.modern-form-row{margin-bottom:4px}
.modern-form-row.two-col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.modern-emi-box{
  background:linear-gradient(105deg,#e8faf1,#f0fdf6);
  border:1px solid #c8ecd8;
  border-radius:12px;
  padding:12px 14px;
  margin:14px 0;
  font-size:14px;
  font-weight:700;
  color:#0d5c3a;
}
.modern-emi-box b{color:#0d7a4f;font-size:16px}
.modern-submit{
  margin-top:8px;
  padding:14px !important;
  font-size:15px !important;
  border-radius:12px !important;
}
.modern-form-grid .application{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 0;
  border-bottom:1px solid #f0f4f8;
  flex-wrap:wrap;
}
.modern-form-grid .application:last-child{border-bottom:none}
.modern-form-grid .application b{display:block;font-size:15px;color:#0f2a4a}
.modern-form-grid .application span{font-size:12px;color:#6b7c8f}

@media(max-width:700px){
  .modern-form-row.two-col{grid-template-columns:1fr}
  .modern-form-grid.grid-2{grid-template-columns:1fr !important}
  .modern-form-kpis{grid-template-columns:1fr 1fr}
}

/* Receipt print actions — clear, full width on mobile */
.modern-receipt-actions,
.receipt-actions{
  display:flex !important;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.modern-receipt-actions .btn,
.receipt-actions .btn{
  flex:1 1 140px;
  min-height:44px;
  border-radius:12px !important;
  font-weight:800 !important;
}
.modern-receipt-actions .btn.primary,
.receipt-actions .btn.primary{
  background:linear-gradient(110deg,#2b7de9,#1a5fb8) !important;
  color:#fff !important;
  border:none !important;
  box-shadow:0 4px 14px rgba(26,95,184,.22);
}

/* Receipt header colors print-safe */
.payment-receipt .receipt-head{
  background:linear-gradient(110deg,#ff9933 0%,#f5c06a 35%,#e8f5e9 65%,#138808 100%) !important;
  -webkit-print-color-adjust:exact !important;
  print-color-adjust:exact !important;
}
@media print{
  .modern-receipt-actions,
  .receipt-actions,
  .no-print,
  .mobile-bottom-nav,
  .sidebar,
  .topbar,
  .notice-bar{display:none !important}
  .payment-receipt .receipt-head{
    background:linear-gradient(110deg,#ff9933,#138808) !important;
    -webkit-print-color-adjust:exact !important;
    print-color-adjust:exact !important;
  }
  body.authenticated-page .page{padding:0 !important;max-width:none !important}
}

/* Member brand title single line */
.md-brand-title{
  max-width:200px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* =========================================================
   V125 — FULL WIDTH DESKTOP + GLOBAL MODERN ADJUSTMENT
   Fixes: desktop not full screen, all pages responsive
   ========================================================= */

/* Desktop: use full content area (no 1600/1280/1100 cap) */
@media (min-width: 901px) {
  body.authenticated-page .page,
  body.dashboard-layout .page,
  body.authenticated-page.role-admin .page,
  body.authenticated-page.role-staff .page {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 20px 28px 40px !important;
    box-sizing: border-box !important;
  }

  body.member-dashboard-screen .page {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 20px 28px 40px !important;
  }

  body.member-dashboard-screen .md-app {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .ad-dash {
    max-width: none !important;
    width: 100% !important;
  }

  /* Expand grids on wide screens */
  body.authenticated-page .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.authenticated-page .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  body.authenticated-page .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.authenticated-page .kpis {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  }

  .ad-kpis {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
  .ad-main-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr) !important;
  }

  .md-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .md-content-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr) !important;
  }

  .a2z-tabs {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  body.authenticated-page .settings-hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  /* Main fills remaining viewport beside sidebar */
  body.authenticated-page .main {
    margin-left: 250px !important;
    width: calc(100% - 250px) !important;
    max-width: none !important;
    min-height: 100vh !important;
  }
  body.authenticated-page .sidebar {
    width: 250px !important;
  }
}

/* Extra-wide monitors: more padding, denser cards */
@media (min-width: 1400px) {
  body.authenticated-page .page,
  body.member-dashboard-screen .page {
    padding: 24px 36px 48px !important;
  }
  body.authenticated-page .settings-hub-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .a2z-tabs {
    grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
  }
}

/* Tablet */
@media (min-width: 701px) and (max-width: 900px) {
  body.authenticated-page .page {
    max-width: none !important;
    width: 100% !important;
    padding: 16px 14px 90px !important;
  }
  body.authenticated-page .grid-2 {
    grid-template-columns: 1fr 1fr !important;
  }
  .ad-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .a2z-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Mobile: keep app-style member dashboard centered */
@media (max-width: 900px) {
  body.member-dashboard-screen .main {
    margin-left: 0 !important;
    width: 100% !important;
  }
  body.member-dashboard-screen .page {
    max-width: 480px !important;
    margin: 0 auto !important;
    padding: 0 0 88px !important;
  }
  body.member-dashboard-screen .md-app {
    max-width: 480px !important;
    margin: 0 auto !important;
    padding: 12px 14px 16px !important;
  }

  /* Admin/staff mobile full width of phone */
  body.authenticated-page.role-admin .page,
  body.authenticated-page.role-staff .page {
    max-width: none !important;
    width: 100% !important;
    padding: 12px 12px 90px !important;
  }

  body.authenticated-page .grid-2,
  body.authenticated-page .grid-3,
  body.authenticated-page .settings-grid {
    grid-template-columns: 1fr !important;
  }
  body.authenticated-page .kpis {
    grid-template-columns: 1fr 1fr !important;
  }
  .ad-kpis {
    grid-template-columns: 1fr 1fr !important;
  }
  .ad-main-grid {
    grid-template-columns: 1fr !important;
  }
  .a2z-tabs {
    grid-template-columns: 1fr 1fr !important;
  }
  body.authenticated-page .settings-hub-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Global polish: panels / tables always fit container */
body.authenticated-page .panel,
body.authenticated-page .table-wrap,
body.authenticated-page .hero,
body.authenticated-page .page-title {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
body.authenticated-page table {
  width: 100% !important;
}
body.authenticated-page .table-wrap {
  overflow-x: auto !important;
}

/* Prevent horizontal page scroll */
body.authenticated-page,
body.authenticated-page .main,
body.authenticated-page .page {
  overflow-x: hidden !important;
}

/* =========================================================
   V126 — FORCE DESKTOP FULL LAYOUT + ALL SETTINGS DESIGN
   Workflow unchanged — visual only
   ========================================================= */

/* ===== DESKTOP SHELL: sidebar + full remaining width ===== */
@media (min-width: 901px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  body.authenticated-page .app {
    display: block !important;
    width: 100% !important;
    min-height: 100vh !important;
  }
  body.authenticated-page .sidebar {
    display: flex !important;
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 260px !important;
    max-width: 260px !important;
    z-index: 40 !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  body.authenticated-page .main {
    display: block !important;
    margin-left: 260px !important;
    width: calc(100% - 260px) !important;
    max-width: none !important;
    min-height: 100vh !important;
    box-sizing: border-box !important;
  }
  body.authenticated-page .page,
  body.dashboard-layout .page,
  body.member-dashboard-screen .page {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 20px 24px 40px !important;
    box-sizing: border-box !important;
  }
  body.authenticated-page .topbar {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }
  /* kill old narrow caps */
  body.authenticated-page .ad-dash,
  body.authenticated-page .md-app {
    max-width: none !important;
    width: 100% !important;
  }
}

/* ===== SETTINGS / CONTROL CENTER / ALL INNER FORMS ===== */
body.authenticated-page .panel {
  background: #fff !important;
  border: 1px solid #e6eef6 !important;
  border-radius: 18px !important;
  box-shadow: 0 4px 18px rgba(15,40,70,.05) !important;
  padding: 18px 18px !important;
  margin-bottom: 16px !important;
}
body.authenticated-page .panel > h2,
body.authenticated-page .panel-head h2 {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f2a4a !important;
  margin: 0 0 12px !important;
}
body.authenticated-page .panel-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin-bottom: 14px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #eef3f8 !important;
}

/* Settings forms */
body.authenticated-page .settings-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px 18px !important;
}
body.authenticated-page .settings-grid .span2 {
  grid-column: 1 / -1 !important;
}
body.authenticated-page label {
  display: block !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #4a5d73 !important;
  margin: 0 0 6px !important;
}
body.authenticated-page input[type="text"],
body.authenticated-page input[type="number"],
body.authenticated-page input[type="email"],
body.authenticated-page input[type="tel"],
body.authenticated-page input[type="password"],
body.authenticated-page input[type="date"],
body.authenticated-page input[type="month"],
body.authenticated-page input[type="url"],
body.authenticated-page input[type="search"],
body.authenticated-page input[type="file"],
body.authenticated-page input[type="color"],
body.authenticated-page select,
body.authenticated-page textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  border: 1px solid #d7e0ec !important;
  background: #f7fafc !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  color: #0f2a4a !important;
  min-height: 44px !important;
}
body.authenticated-page textarea {
  min-height: 110px !important;
  resize: vertical !important;
}
body.authenticated-page input:focus,
body.authenticated-page select:focus,
body.authenticated-page textarea:focus {
  border-color: #3b8ef0 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(59,142,240,.14) !important;
  outline: none !important;
}

/* Settings small help text */
body.authenticated-page small.muted,
body.authenticated-page .muted {
  display: block !important;
  margin-top: 6px !important;
  font-size: 11px !important;
  color: #7a8a9e !important;
  line-height: 1.4 !important;
}

/* Buttons in settings / forms */
body.authenticated-page .btn {
  border-radius: 12px !important;
  min-height: 42px !important;
  padding: 10px 16px !important;
  font-weight: 800 !important;
  font-size: 13px !important;
}
body.authenticated-page .btn.primary,
body.authenticated-page form button.btn.primary,
body.authenticated-page form button[type="submit"].btn {
  background: linear-gradient(110deg, #13a066, #0d8a55) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(13,138,85,.2) !important;
}
body.authenticated-page .btn.danger {
  background: linear-gradient(110deg, #e74c3c, #c0392b) !important;
  color: #fff !important;
  border: none !important;
}

/* A2Z tabs already grid — reinforce */
body.authenticated-page .a2z-tabs {
  display: grid !important;
  gap: 8px !important;
}
@media (min-width: 901px) {
  body.authenticated-page .a2z-tabs {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
  body.authenticated-page .settings-hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (min-width: 1400px) {
  body.authenticated-page .a2z-tabs {
    grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
  }
  body.authenticated-page .settings-hub-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  body.authenticated-page .settings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Settings hub cards */
body.authenticated-page .settings-hub-card {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px !important;
  border-radius: 14px !important;
  border: 1px solid #e4edf5 !important;
  background: #fff !important;
  text-decoration: none !important;
  color: #12324d !important;
  min-height: 72px !important;
  box-shadow: 0 3px 12px rgba(18,48,90,.04) !important;
}
body.authenticated-page .settings-hub-card:hover {
  border-color: #8bcdb1 !important;
  transform: translateY(-1px);
}
body.authenticated-page .settings-hub-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  display: grid !important;
  place-items: center !important;
  background: linear-gradient(145deg, #e8f7ef, #e8f1ff) !important;
  font-size: 20px !important;
  flex-shrink: 0 !important;
}

/* Tables everywhere */
body.authenticated-page .table-wrap {
  border: 1px solid #e8eef5 !important;
  border-radius: 14px !important;
  overflow: auto !important;
  background: #fff !important;
}
body.authenticated-page table thead th {
  background: #f5f8fc !important;
  color: #5a6a7a !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 12px 14px !important;
  border-bottom: 1px solid #e8eef5 !important;
  box-shadow: none !important;
  border-top: none !important;
}
body.authenticated-page table tbody td {
  padding: 12px 14px !important;
  border-bottom: 1px solid #f0f4f8 !important;
  font-size: 13px !important;
}

/* Inline forms / filters */
body.authenticated-page .inline-form {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  align-items: flex-end !important;
}
body.authenticated-page .inline-form input,
body.authenticated-page .inline-form select {
  min-width: 160px !important;
  flex: 1 1 180px !important;
}

/* Mobile settings */
@media (max-width: 900px) {
  body.authenticated-page .settings-grid {
    grid-template-columns: 1fr !important;
  }
  body.authenticated-page .a2z-tabs {
    grid-template-columns: 1fr 1fr !important;
  }
  body.authenticated-page .settings-hub-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  body.authenticated-page .inline-form {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  body.authenticated-page .inline-form input,
  body.authenticated-page .inline-form select,
  body.authenticated-page .inline-form .btn {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }
  /* sidebar drawer — no permanent empty gap */
  body.authenticated-page .main {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

/* =========================================================
   V127 — Desktop sidebar toggle (☰) + Add Member modern
   ========================================================= */

/* Always show menu button on desktop too */
body.authenticated-page .menu-toggle{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e4edf6;
  background: #f5f8fc;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  color: #0f2a4a;
  flex-shrink: 0;
}
body.authenticated-page .menu-toggle:hover{
  background: #eef4fb;
}

/* Desktop: collapsed sidebar = full screen content */
@media (min-width: 901px) {
  body.authenticated-page.sidebar-collapsed .sidebar {
    transform: translateX(-110%) !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
  body.authenticated-page.sidebar-collapsed .main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }
  body.authenticated-page.sidebar-collapsed .page {
    max-width: none !important;
    width: 100% !important;
  }
  /* smooth transition */
  body.authenticated-page .sidebar {
    transition: transform .25s ease, opacity .2s ease, visibility .2s ease !important;
  }
  body.authenticated-page .main {
    transition: margin-left .25s ease, width .25s ease !important;
  }
}

/* Members page layout */
.members-page-grid{
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.35fr);
  gap: 16px;
  align-items: start;
}
.add-member-panel .modern-form-row.two-col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.add-member-panel .modern-submit{
  margin-top: 10px;
}
.member-directory-panel .table-wrap{
  max-height: 70vh;
  overflow: auto;
}
@media (max-width: 1100px) {
  .members-page-grid{
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .add-member-panel .modern-form-row.two-col{
    grid-template-columns: 1fr;
  }
}

/* Premium banking checkout – member contribution */
.pb-checkout{max-width:860px;margin:0 auto;padding:8px 0 28px;color:#17233d}.pb-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 20px}.pb-eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:800;color:#64748b}.pb-heading h1{font-size:clamp(24px,4vw,32px);margin:5px 0;color:#101d37;font-weight:800;letter-spacing:-.7px}.pb-heading p{margin:0;color:#718096;font-size:13px}.pb-lock{background:#eaf7f1;color:#147a52;border:1px solid #ccebdc;border-radius:30px;padding:8px 12px;font-size:11px;font-weight:800;white-space:nowrap}.pb-total-card{position:relative;overflow:hidden;padding:23px 22px 18px;border-radius:22px;background:linear-gradient(120deg,#101d39 0%,#173b58 58%,#176b69 100%);color:#fff;box-shadow:0 14px 32px #173b5826;margin-bottom:18px}.pb-total-card:after{content:"₹";position:absolute;right:22px;top:0;font-size:150px;line-height:1;font-weight:900;color:#ffffff0b;pointer-events:none}.pb-total-top,.pb-total-foot{display:flex;justify-content:space-between;gap:10px;align-items:center;position:relative;z-index:1}.pb-total-top>span:first-child{font-size:10px;letter-spacing:1.7px;font-weight:800;color:#c2d6df}.pb-status{font-size:11px;color:#d8f8e8}.pb-status i{display:inline-block;width:7px;height:7px;background:#51d69a;border-radius:50%;margin-right:5px}.pb-amount{font-size:clamp(34px,7vw,48px);font-weight:850;letter-spacing:-1.5px;margin:10px 0 13px;position:relative;z-index:1}.pb-total-foot{font-size:11px;color:#d2e0e8}.pb-progress{height:5px;background:#ffffff25;border-radius:10px;margin:15px 0 13px;overflow:hidden}.pb-progress span{display:block;height:100%;background:#58d7a0;border-radius:10px}.pb-breakdown{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;border-top:1px solid #ffffff25;padding-top:13px}.pb-breakdown small{display:block;font-size:10px;color:#c1d3dc;margin-bottom:4px}.pb-breakdown b{font-size:13px;color:#fff}.pb-payment-card,.pb-confirm-card{background:#fff;border:1px solid #e7edf2;border-radius:19px;padding:19px;margin-bottom:15px;box-shadow:0 5px 18px #142b4508}.pb-section-title{display:flex;gap:12px;align-items:center;margin-bottom:17px}.pb-step{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:#eaf3f5;color:#176b69;font-size:12px;font-weight:900}.pb-section-title h2{font-size:16px;margin:0;color:#17233d}.pb-section-title p{font-size:11px;color:#8793a3;margin:3px 0 0}.pb-method{display:flex;align-items:center;gap:12px;padding:13px;border:1.5px solid #1b8278;background:#f4fbf9;border-radius:14px}.pb-method-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#d9f2e9;color:#087b66;font-size:24px;font-weight:800}.pb-method-copy{flex:1;min-width:0}.pb-method-copy b{display:block;font-size:14px}.pb-method-copy small{font-size:10px;color:#738294}.pb-recommended{font-size:9px;font-weight:900;letter-spacing:.5px;color:#087b66;background:#d9f2e9;border-radius:20px;padding:6px 8px}.pb-pay-actions{margin-top:12px}.pb-upi-button,.pb-submit-button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;box-sizing:border-box;text-decoration:none;border:0;border-radius:13px;padding:14px 16px;background:linear-gradient(100deg,#123b58,#087f75);color:#fff;font-size:14px;font-weight:800;box-shadow:0 7px 16px #087f7525}.pb-upi-button>span{font-size:20px}.pb-upi-button b{margin-left:auto;font-size:20px}.pb-gateway-link{display:block;text-align:center;padding:11px 5px;color:#176b69;font-size:12px;font-weight:700;text-decoration:none}.pb-divider{display:flex;align-items:center;gap:12px;color:#9aa6b2;font-size:9px;font-weight:800;letter-spacing:1px;margin:18px 0}.pb-divider:before,.pb-divider:after{content:"";height:1px;background:#e7edf2;flex:1}.pb-qr-area{display:flex;align-items:center;gap:18px;padding:14px;background:#f8fafb;border:1px solid #edf1f4;border-radius:15px}.pb-qr-frame{flex:0 0 142px;width:142px;height:142px;background:#fff;padding:8px;border:1px solid #e0e8ed;border-radius:12px;box-sizing:border-box}.pb-qr-frame img{width:100%;height:100%;object-fit:contain}.pb-qr-copy b{font-size:16px;color:#17233d}.pb-qr-copy p{font-size:12px;line-height:1.55;color:#69788a;margin:6px 0 10px}.pb-qr-copy small{font-size:10px;color:#84909e;overflow-wrap:anywhere}.pb-qr-copy small strong{color:#176b69;font-size:11px}.pb-outline-button{width:100%;display:flex;justify-content:space-between;align-items:center;padding:13px 15px;border:1px solid #d7e2e8;border-radius:12px;background:#fff;color:#176b69;font-weight:800;font-size:13px}.pb-note{margin:13px 0;padding:11px 12px;border-radius:10px;background:#eff7f7;color:#486675;font-size:11px;line-height:1.5}.pb-form{display:grid;gap:9px}.pb-form label{font-size:11px;font-weight:800;color:#435267;margin-top:5px}.pb-form input{width:100%;box-sizing:border-box;border:1px solid #dce5eb;border-radius:11px;padding:12px 13px;font:inherit;font-size:14px;background:#fbfcfd;color:#17233d}.pb-form input:focus{outline:2px solid #b8dfd8;border-color:#168276}.pb-form small{font-size:10px;color:#7b8795;line-height:1.5}.pb-submit-button{margin-top:8px;cursor:pointer}.pb-submit-button span{margin-left:auto;font-size:19px}.pb-trust{display:flex;gap:11px;align-items:flex-start;padding:13px 15px;border-radius:13px;background:#f0f7f5;color:#18775f}.pb-trust>span{font-size:22px}.pb-trust b{display:block;font-size:11px}.pb-trust small{display:block;font-size:10px;color:#71877f;line-height:1.5;margin-top:3px}.pb-paid-state{text-align:center;background:#f1faf6;border:1px solid #d8eee4;border-radius:18px;padding:28px 15px;margin-bottom:16px}.pb-paid-state>span{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#d8f4e6;color:#14865d;font-size:25px}.pb-paid-state h2{margin:10px 0 5px;color:#175d49}.pb-paid-state p{font-size:12px;color:#71877f}.pb-paid-state a{color:#087b66;font-size:12px;font-weight:800;text-decoration:none}
@media(max-width:600px){.pb-checkout{padding:2px 0 20px}.pb-heading{margin-bottom:14px}.pb-total-card{padding:19px 16px;border-radius:18px}.pb-breakdown{gap:5px}.pb-breakdown b{font-size:12px}.pb-payment-card,.pb-confirm-card{padding:15px;border-radius:16px}.pb-qr-area{gap:12px;padding:10px}.pb-qr-frame{flex-basis:116px;width:116px;height:116px}.pb-qr-copy p{font-size:11px}.pb-recommended{font-size:8px;padding:5px 6px}}

/* Contribution checkout QR: collapsed until the member requests it. */
.pb-qr-details{margin-top:14px;border:1px solid #dfe9ee;border-radius:14px;background:#fbfdfd;overflow:hidden}
.pb-qr-details>summary{list-style:none;display:flex;align-items:center;gap:11px;padding:13px 14px;cursor:pointer;color:#17324b}
.pb-qr-details>summary::-webkit-details-marker{display:none}
.pb-qr-summary-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#e5f4ef;color:#087b66;font-size:23px}
.pb-qr-details>summary span:nth-child(2){flex:1;min-width:0}
.pb-qr-details>summary b,.pb-qr-details>summary small{display:block}
.pb-qr-details>summary b{font-size:13px}
.pb-qr-details>summary small{font-size:10px;color:#7b8997;margin-top:3px}
.pb-qr-chevron{font-size:19px;color:#087b66}
.pb-qr-details[open] .pb-qr-chevron{font-size:0}
.pb-qr-details[open] .pb-qr-chevron:after{content:'−';font-size:22px}
.pb-qr-details .pb-qr-area{margin:0 12px 12px;padding:14px;justify-content:flex-start}
.pb-qr-details .pb-qr-frame{flex:0 0 190px;width:190px;height:190px;padding:7px}
@media(max-width:600px){.pb-qr-details .pb-qr-area{flex-direction:column;align-items:center;text-align:center}.pb-qr-details .pb-qr-frame{flex-basis:auto;width:210px;height:210px}.pb-qr-details .pb-qr-copy{width:100%}}

/* V139 — Modern colour treatment for member welcome and brand blocks only */
.md-app .md-topbar{
  background:linear-gradient(115deg,#082f62 0%,#075985 52%,#087f6b 100%)!important;
  border:1px solid rgba(255,255,255,.16)!important;
  box-shadow:0 8px 24px rgba(7,48,89,.18)!important;
}
.md-app .md-brand-title{color:#fff!important;font-weight:900!important;letter-spacing:.01em!important;text-shadow:0 1px 2px rgba(0,0,0,.16)!important}
.md-app .md-brand-tag{color:#d8f3ff!important;font-weight:650!important}
.md-app .md-bell svg{stroke:#fff!important}
.md-app .md-sahyog{
  padding:7px 9px!important;border-radius:12px!important;
  background:linear-gradient(135deg,#fff7e8,#e8fff4)!important;
  border:1px solid rgba(255,255,255,.55)!important;
  box-shadow:0 3px 12px rgba(0,0,0,.12)!important;
}
.md-app .md-sahyog-text b:first-child{color:#c15a12!important}
.md-app .md-sahyog-text b:nth-child(2){color:#087b61!important}
.md-app .md-sahyog-text small{color:#315a9b!important;font-weight:850!important}
.md-app .md-welcome{
  position:relative!important;overflow:hidden!important;
  background:linear-gradient(118deg,#f0f7ff 0%,#fff 48%,#e8fff5 100%)!important;
  border:1px solid #cfe2f4!important;border-radius:20px!important;
  box-shadow:0 9px 26px rgba(18,65,105,.10)!important;
}
.md-app .md-welcome:before{
  content:""!important;position:absolute!important;right:-45px!important;top:-65px!important;
  width:190px!important;height:190px!important;border-radius:50%!important;
  background:radial-gradient(circle,rgba(14,165,139,.17),rgba(14,165,139,0) 70%)!important;
  pointer-events:none!important;
}
.md-app .md-user,.md-app .md-user-info{position:relative!important;z-index:1!important}
.md-app .md-avatar{border:4px solid #fff!important;box-shadow:0 5px 16px rgba(18,65,105,.2)!important}
.md-app .md-user-info .md-greeting{
  display:inline-flex!important;align-items:center!important;width:max-content!important;
  padding:4px 10px!important;margin:0 0 7px!important;border-radius:7px!important;
  color:#087b61!important;background:#d9f7eb!important;border:1px solid #b6ead6!important;
  font-size:10px!important;font-weight:900!important;letter-spacing:.12em!important;text-transform:uppercase!important;
}
.md-app .md-user-info h1{margin:0!important;line-height:1.2!important}
.md-app .md-user-info h1 span{
  display:inline-block!important;padding:5px 11px!important;border-radius:9px!important;
  color:#fff!important;background:linear-gradient(105deg,#1256a0,#087f79)!important;
  box-shadow:0 4px 11px rgba(18,86,160,.18)!important;
  text-shadow:0 1px 1px rgba(0,0,0,.12)!important;
}
.md-app .md-user-info .md-member-id{
  display:inline-flex!important;align-items:center!important;width:max-content!important;
  padding:6px 10px!important;margin:7px 0 0!important;border-radius:8px!important;
  color:#49358e!important;background:linear-gradient(100deg,#eee9ff,#e8f0ff)!important;
  border:1px solid #d8cdfb!important;font-size:11px!important;font-weight:850!important;
  letter-spacing:.025em!important;
}
.md-app .md-pill{
  position:relative!important;z-index:1!important;padding:10px 13px!important;
  border-radius:13px!important;background:linear-gradient(125deg,#fff0d9,#ffe3ec)!important;
  border:1px solid #f5c9d7!important;box-shadow:0 5px 14px rgba(151,65,102,.12)!important;
}
.md-app .md-pill-icon{color:#9b3f83!important}
.md-app .md-pill-text{color:#8a326d!important;font-weight:900!important;line-height:1.35!important}
.md-app .md-desktop-tagline em{color:#087b61!important;font-weight:800!important}
@media(max-width:600px){
 .md-app .md-topbar{border-radius:0 0 15px 15px!important}
 .md-app .md-sahyog{padding:5px 7px!important}
 .md-app .md-welcome{border-radius:15px!important}
 .md-app .md-user-info h1 span{padding:4px 8px!important}
 .md-app .md-user-info .md-member-id{font-size:10px!important;padding:5px 8px!important}
 .md-app .md-pill{padding:7px 9px!important}
}


/* V140: force visible member-dashboard colour blocks; cache-busted stylesheet */
body.member-dashboard-screen .md-app .md-topbar.md-mobile-only{
  background:linear-gradient(120deg,#073b78 0%,#087e8b 55%,#07845e 100%) !important;
  border:0 !important; box-shadow:0 8px 22px rgba(8,54,92,.22) !important;
}
body.member-dashboard-screen .md-app .md-brand-title{color:#fff !important;text-shadow:0 1px 3px rgba(0,0,0,.25) !important}
body.member-dashboard-screen .md-app .md-brand-tag{color:#e1f7ff !important}
body.member-dashboard-screen .md-app .md-sahyog{
  background:linear-gradient(135deg,#fff0d8 0%,#fff 48%,#dcfce7 100%) !important;
  border:1px solid #f2d7a8 !important; box-shadow:0 4px 13px rgba(0,0,0,.15) !important;
}
body.member-dashboard-screen .md-app .md-sahyog-text b:first-child{color:#c45b12 !important}
body.member-dashboard-screen .md-app .md-sahyog-text b:nth-child(2){color:#087a55 !important}
body.member-dashboard-screen .md-app .md-sahyog-text small{color:#2456a6 !important}
body.member-dashboard-screen .md-app .md-welcome{
  background:linear-gradient(115deg,#e4f1ff 0%,#f9fbff 48%,#dcfce9 100%) !important;
  border:2px solid #b9d8f5 !important; box-shadow:0 8px 24px rgba(23,76,126,.14) !important;
}
body.member-dashboard-screen .md-app .md-user-info .md-greeting{
  color:#075e48 !important;background:#baf3d8 !important;border:1px solid #70d7ad !important;
}
body.member-dashboard-screen .md-app .md-user-info h1 span{
  color:#fff !important;background:linear-gradient(100deg,#174ea6,#087f79) !important;
  border:1px solid rgba(255,255,255,.65) !important;box-shadow:0 5px 14px rgba(23,78,166,.24) !important;
}
body.member-dashboard-screen .md-app .md-user-info .md-member-id{
  color:#fff !important;background:linear-gradient(100deg,#6941c6,#3157b7) !important;
  border:1px solid #8c79e8 !important;box-shadow:0 3px 10px rgba(76,55,158,.2) !important;
}
body.member-dashboard-screen .md-app .md-pill{
  background:linear-gradient(125deg,#ffedd5 0%,#fce7f3 100%) !important;
  border:1px solid #f4b9cb !important;box-shadow:0 5px 15px rgba(156,55,103,.16) !important;
}
body.member-dashboard-screen .md-app .md-pill-icon{color:#a52e70 !important}
body.member-dashboard-screen .md-app .md-pill-text{color:#9d285f !important;font-weight:900 !important}
body.member-dashboard-screen .md-app .md-desktop-tagline em{color:#087b61 !important}

/* V143: compact checkbox sizing on every screen, including login and member pages. */
input[type="checkbox"]{
  appearance:auto !important;
  -webkit-appearance:checkbox !important;
  box-sizing:border-box !important;
  width:14px !important;height:14px !important;
  min-width:14px !important;min-height:14px !important;
  max-width:14px !important;max-height:14px !important;
  padding:0 !important;margin:0 6px 0 0 !important;
  flex:0 0 14px !important;accent-color:#2563eb;
  vertical-align:middle !important;cursor:pointer;
}
label:has(> input[type="checkbox"]),
label:has(input[type="checkbox"]){
  align-items:center;
  gap:5px;
  line-height:1.35;
}

/* V142 — Unified soft blended glass colours; remove decorative borders on member dashboard */
body.member-dashboard-screen .md-app .md-topbar,
body.member-dashboard-screen .md-app .md-sahyog,
body.member-dashboard-screen .md-app .md-welcome,
body.member-dashboard-screen .md-app .md-avatar,
body.member-dashboard-screen .md-app .md-user-info .md-greeting,
body.member-dashboard-screen .md-app .md-user-info h1 span,
body.member-dashboard-screen .md-app .md-user-info .md-member-id,
body.member-dashboard-screen .md-app .md-pill{
  border:0 !important;
  outline:0 !important;
}
body.member-dashboard-screen .md-app .md-topbar{
  background:linear-gradient(115deg,rgba(31,91,153,.96),rgba(35,139,133,.94),rgba(72,151,121,.94)) !important;
  box-shadow:0 10px 30px rgba(34,91,125,.16) !important;
}
body.member-dashboard-screen .md-app .md-sahyog{
  background:linear-gradient(125deg,rgba(255,255,255,.24),rgba(220,250,237,.20),rgba(220,235,255,.22)) !important;
  backdrop-filter:blur(16px) saturate(145%) !important;
  -webkit-backdrop-filter:blur(16px) saturate(145%) !important;
  box-shadow:0 5px 18px rgba(17,57,87,.10) !important;
}
body.member-dashboard-screen .md-app .md-sahyog-text b:first-child,
body.member-dashboard-screen .md-app .md-sahyog-text b:nth-child(2),
body.member-dashboard-screen .md-app .md-sahyog-text small{color:#fff !important;text-shadow:0 1px 5px rgba(12,45,65,.22) !important}
body.member-dashboard-screen .md-app .md-welcome{
  background:
    radial-gradient(ellipse at 12% 18%,rgba(104,174,232,.30) 0%,rgba(104,174,232,0) 48%),
    radial-gradient(ellipse at 88% 15%,rgba(93,201,164,.27) 0%,rgba(93,201,164,0) 48%),
    radial-gradient(ellipse at 55% 100%,rgba(173,151,226,.20) 0%,rgba(173,151,226,0) 52%),
    linear-gradient(118deg,rgba(237,246,255,.92),rgba(239,250,246,.91) 52%,rgba(247,243,255,.92)) !important;
  backdrop-filter:blur(22px) saturate(135%) !important;
  -webkit-backdrop-filter:blur(22px) saturate(135%) !important;
  box-shadow:0 12px 32px rgba(47,91,125,.10) !important;
}
body.member-dashboard-screen .md-app .md-avatar{
  box-shadow:0 7px 22px rgba(45,91,126,.16) !important;
}
body.member-dashboard-screen .md-app .md-user-info .md-greeting{
  padding:3px 0 !important;margin:0 0 6px !important;
  background:transparent !important;color:#287e68 !important;
  letter-spacing:.13em !important;
}
body.member-dashboard-screen .md-app .md-user-info h1 span{
  padding:0 !important;background:transparent !important;
  color:#214d75 !important;box-shadow:none !important;text-shadow:none !important;
}
body.member-dashboard-screen .md-app .md-user-info .md-member-id{
  padding:5px 11px !important;
  background:linear-gradient(105deg,rgba(116,153,214,.17),rgba(105,190,164,.17),rgba(174,148,218,.16)) !important;
  color:#365a78 !important;box-shadow:0 4px 14px rgba(60,103,133,.07) !important;
  backdrop-filter:blur(12px) !important;-webkit-backdrop-filter:blur(12px) !important;
}
body.member-dashboard-screen .md-app .md-pill{
  background:
    radial-gradient(ellipse at 10% 10%,rgba(255,190,145,.35),transparent 60%),
    radial-gradient(ellipse at 90% 90%,rgba(211,166,220,.30),transparent 58%),
    linear-gradient(120deg,rgba(236,246,255,.88),rgba(235,250,243,.88),rgba(250,241,248,.88)) !important;
  color:#41617a !important;box-shadow:0 8px 22px rgba(79,91,135,.10) !important;
  backdrop-filter:blur(18px) saturate(135%) !important;
  -webkit-backdrop-filter:blur(18px) saturate(135%) !important;
}
body.member-dashboard-screen .md-app .md-pill-icon,
body.member-dashboard-screen .md-app .md-pill-text{color:#45657c !important}
body.member-dashboard-screen .md-app .md-desktop-tagline em{color:#397d69 !important}


/* V143: readable, responsive typography and overflow protection across the whole app. */
*,*::before,*::after{box-sizing:border-box}
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }
body{max-width:100%; overflow-x:hidden;}
body :where(h1,h2,h3,h4,h5,h6,p,small,label,th,td,button,a,span,strong,b,div){
  overflow-wrap:anywhere;
  word-break:normal;
}
body :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea,button){
  max-width:100%; min-width:0; font-family:inherit;
}
body :where(input,select,textarea,button){font-size:clamp(12px, .92em, 16px)}
body :where(.panel,.card,.form-group,.form-grid,.settings-grid,.settings-checks,.table-wrap,.page-content){min-width:0;max-width:100%}
body :where(.settings-grid,.settings-checks) label{min-width:0;white-space:normal}
body :where(table){max-width:100%;}
body :where(th,td){white-space:normal;overflow-wrap:anywhere;}
@media(max-width:600px){
  body{font-size:14px;}
  body :where(h1){font-size:clamp(18px,5vw,24px)}
  body :where(h2){font-size:clamp(16px,4.4vw,20px)}
  body :where(h3){font-size:clamp(14px,4vw,18px)}
  body :where(button,.btn){white-space:normal;line-height:1.3}
  body :where(.settings-grid){grid-template-columns:minmax(0,1fr) !important}
}
@media(max-width:360px){
  body{font-size:13px;}
  body :where(th,td){padding-left:6px !important;padding-right:6px !important}
  input[type="checkbox"]{width:13px !important;height:13px !important;min-width:13px !important;min-height:13px !important;max-width:13px !important;max-height:13px !important;flex-basis:13px !important}
}


/* V144: profile photo opens the main side menu */
.md-avatar-menu-trigger{cursor:pointer!important; -webkit-tap-highlight-color:transparent;}
.md-avatar-menu-trigger:focus-visible{outline:2px solid rgba(20,110,190,.55);outline-offset:3px;}
.topbar .profile-trigger{cursor:pointer!important;}


/* V145: edge-to-edge responsive header, aligned with the full content area */
body.authenticated-page .main > .topbar{
  display:flex !important;
  position:sticky !important;
  top:0 !important;
  left:auto !important;
  right:auto !important;
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  min-height:68px !important;
  height:68px !important;
  margin:0 !important;
  padding:0 clamp(12px, 2vw, 24px) !important;
  box-sizing:border-box !important;
  border-radius:0 !important;
  z-index:45 !important;
  gap:clamp(8px, 1.2vw, 16px) !important;
}
body.authenticated-page .main{
  min-width:0 !important;
  max-width:none !important;
}
body.authenticated-page .main > .topbar:before{
  left:0 !important; right:0 !important;
}
@media(max-width:900px){
  body.authenticated-page .main{
    margin-left:0 !important;
    width:100% !important;
    max-width:100% !important;
  }
  body.authenticated-page .main > .topbar{
    width:100% !important;
    min-height:62px !important;
    height:62px !important;
    padding:0 10px !important;
    margin:0 !important;
    border-radius:0 !important;
    gap:8px !important;
  }
  body.authenticated-page .main > .topbar .topbar-brand,
  body.authenticated-page .main > .topbar .mobile-brand{
    min-width:0 !important;
    flex:1 1 auto !important;
    overflow:hidden !important;
  }
  body.authenticated-page .main > .topbar .topbar-brand b,
  body.authenticated-page .main > .topbar .mobile-brand b{
    display:block !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }
}

/* V146: one header only + reliable member side navigation */
body.member-dashboard-screen .md-app > .md-topbar.md-mobile-only{display:none !important}
body.member-dashboard-screen .main > .topbar{display:flex !important}
.mobile-overlay{z-index:29 !important}
@media (max-width:900px){
  body.authenticated-page .sidebar{
    position:fixed !important;left:0 !important;top:0 !important;bottom:0 !important;
    width:min(290px,86vw) !important;max-width:min(290px,86vw) !important;
    transform:translateX(-105%) !important;visibility:hidden !important;opacity:1 !important;
    z-index:30 !important;transition:transform .25s ease,visibility .25s ease !important;
  }
  body.authenticated-page.sidebar-open .sidebar{
    transform:translateX(0) !important;visibility:visible !important;
  }
  body.authenticated-page .main,
  body.authenticated-page.sidebar-open .main{
    margin-left:0 !important;width:100% !important;
  }
  body.authenticated-page.sidebar-open{overflow:hidden !important}
  body.authenticated-page.sidebar-open .mobile-overlay{display:block !important}
}
@media (min-width:901px){
  body.authenticated-page.sidebar-collapsed .sidebar{transform:translateX(-110%) !important;visibility:hidden !important;pointer-events:none !important}
  body.authenticated-page:not(.sidebar-collapsed) .sidebar{transform:translateX(0) !important;visibility:visible !important;pointer-events:auto !important}
}


/* V147: Admin-wide square box system with compact mobile spacing.
   Scoped to admin pages so member screens and existing navigation remain unchanged. */
body.authenticated-page.role-admin .main .page{
  padding:12px 12px 24px !important;
}
body.authenticated-page.role-admin .main .page :where(
  .panel,.card,.stat-card,.stat,.metric-card,.widget-card,.table-wrap,
  .form-section,.form-card,.settings-card,.financial-flow-card,
  [class*="admin-"][class*="panel"],[class*="admin-"][class*="card"],
  [class*="admin-"][class*="box"],[class*="admin-"][class*="tile"],
  [class*="admin-"][class*="widget"]
){
  border-radius:0 !important;
  box-shadow:none !important;
}
body.authenticated-page.role-admin .main .page :where(.panel,.card,.form-section,.form-card,.settings-card,.table-wrap){
  border:1px solid var(--line,#dfe5ed) !important;
  background:#fff !important;
  padding:10px !important;
}
body.authenticated-page.role-admin .main .page :where(
  input:not([type="checkbox"]):not([type="radio"]),select,textarea
){
  border-radius:0 !important;
  box-shadow:none !important;
  min-height:36px !important;
  padding:7px 9px !important;
  border:1px solid #cfd7e2 !important;
}
body.authenticated-page.role-admin .main .page :where(input,select,textarea):focus{
  border-color:#7b9fcf !important;
  box-shadow:none !important;
  outline:1px solid #d8e5f5 !important;
}
body.authenticated-page.role-admin .main .page label{
  margin:5px 0 2px !important;
}
body.authenticated-page.role-admin .main .page :where(
  .form-grid,.settings-grid,.settings-checks,.grid,.admin-dashboard-overview,
  .admin-dashboard-main,.admin-dashboard-side,.admin-core-flow,
  .admin-financial-details,.quick,.stats-grid,.cards-grid
){
  gap:6px !important;
}
body.authenticated-page.role-admin .main .page :where(
  .admin-financial-details>div,.admin-core-flow .financial-flow-card
){
  border-radius:0 !important;
  box-shadow:none !important;
  border:1px solid var(--line,#dfe5ed) !important;
  padding:8px !important;
  background:#fff !important;
}
body.authenticated-page.role-admin .main .page :where(button,.btn){
  border-radius:0 !important;
  box-shadow:none !important;
}
@media(max-width:900px){
  body.authenticated-page.role-admin .main .page{
    padding:8px 7px 18px !important;
  }
  body.authenticated-page.role-admin .main .page :where(.panel,.card,.form-section,.form-card,.settings-card,.table-wrap){
    padding:7px !important;
    margin-bottom:6px !important;
  }
  body.authenticated-page.role-admin .main .page label{
    margin:3px 0 1px !important;
    font-size:11px !important;
  }
  body.authenticated-page.role-admin .main .page :where(
    input:not([type="checkbox"]):not([type="radio"]),select,textarea
  ){
    min-height:33px !important;
    padding:6px 7px !important;
    font-size:13px !important;
  }
}


/* V148: broaden square-box coverage across every Admin module and nested card. */
body.authenticated-page.role-admin .main .page :where(
  [class*="card"],[class*="panel"],[class*="box"],[class*="tile"],
  [class*="widget"],[class*="stat"],[class*="metric"],[class*="summary"],
  [class*="section"],[class*="wrap"],[class*="feature"],[class*="notice"],
  [class*="report"],[class*="settings-hub"],[class*="modern-form"]
){
  border-radius:0 !important;
  box-shadow:none !important;
}
body.authenticated-page.role-admin .main .page :where(
  .settings-hub-card,.feature-card,.wa-card,.ad-card,.document-card,.report-card,
  .notice-running-panel,.notice-all-panel,.feature-panel,.home-panel,
  .add-member-panel,.member-directory-panel,.mobile-change-panel,
  .payment-history-panel,.report-loan-panel,.report-member-panel,
  .wa-chat-logs-panel,.modern-form-panel,.modern-form-section,
  .loan-summary,.emi-summary-modern,.modern-emi-box,.pb-total-card,
  .pb-payment-card,.pb-confirm-card,.emi-payment-box,.summary-strip
){
  border:1px solid var(--line,#dfe5ed) !important;
  background:#fff !important;
  padding:8px !important;
}
body.authenticated-page.role-admin .main .page :where(
  .grid-2,.grid-3,.profile-grid,.doc-grid,.receipt-grid,.signature-grid,
  .settings-hub-grid,.settings-hub-group,.notice-manager-grid,.feature-grid,
  .ad-main-grid,.members-page-grid,.member-quick-grid,.report-summary-grid,
  .wa-stat-grid,.wa-status-grid,.modern-form-grid,.modern-form-kpis,
  .home-section-grid,.login-trust-grid,.login-trust-grid-4
){gap:6px !important;}
body.authenticated-page.role-admin .main .page :where(
  .inline-form,.modern-form-row,.form-row,.id-row,.verify-row,.running-notice-row,
  .ad-flow-item,.member-quick-item,.md-quick-item,.md-activity-row,
  .notification-item,.emi-pay-row,.emi-pay-row-modern,.ad-act-row
){gap:5px !important;}
body.authenticated-page.role-admin .main .page :where(
  input,select,textarea,button,.btn,.badge,.chip,.tab,.nav-link
){border-radius:0 !important;box-shadow:none !important;}
body.authenticated-page.role-admin .main .page :where(
  input:not([type="checkbox"]):not([type="radio"]),select,textarea
){box-sizing:border-box !important;max-width:100% !important;}
body.authenticated-page.role-admin .main .page :where(table){border-collapse:collapse !important;}
body.authenticated-page.role-admin .main .page :where(th,td){border-radius:0 !important;}
@media(max-width:900px){
  body.authenticated-page.role-admin .main .page :where(
    .settings-hub-card,.feature-card,.wa-card,.ad-card,.document-card,.report-card,
    .notice-running-panel,.notice-all-panel,.feature-panel,.home-panel,
    .add-member-panel,.member-directory-panel,.mobile-change-panel,
    .payment-history-panel,.report-loan-panel,.report-member-panel,
    .wa-chat-logs-panel,.modern-form-panel,.modern-form-section,
    .loan-summary,.emi-summary-modern,.modern-emi-box,.pb-total-card,
    .pb-payment-card,.pb-confirm-card,.emi-payment-box,.summary-strip
  ){padding:6px !important;margin-bottom:5px !important;}
  body.authenticated-page.role-admin .main .page :where(
    .grid-2,.grid-3,.profile-grid,.doc-grid,.receipt-grid,.signature-grid,
    .settings-hub-grid,.notice-manager-grid,.feature-grid,.ad-main-grid,
    .members-page-grid,.member-quick-grid,.report-summary-grid,.wa-stat-grid,
    .wa-status-grid,.modern-form-grid,.modern-form-kpis,.home-section-grid
  ){gap:5px !important;}
}

/* V149: Mobile Admin Settings use a compact two-column layout.
   Desktop rules remain untouched; wide/long controls keep a full-width row. */
@media (max-width: 900px){
  body.authenticated-page.role-admin .main .page :where(
    .settings-grid,.settings-hub-grid,.settings-checks,.settings-hub-group .settings-hub-grid
  ){
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:6px !important;
    width:100% !important;
    min-width:0 !important;
  }
  body.authenticated-page.role-admin .main .page :where(
    .settings-grid > .span2,.settings-grid > [class~="span2"],
    .settings-grid > .full,.settings-grid > .full-width,
    .settings-hub-grid > .span2
  ){
    grid-column:1 / -1 !important;
  }
  body.authenticated-page.role-admin .main .page :where(
    .settings-grid > *, .settings-hub-grid > *, .settings-checks > *
  ){
    min-width:0 !important;
    max-width:100% !important;
  }
  body.authenticated-page.role-admin .main .page :where(
    .settings-grid input:not([type="checkbox"]):not([type="radio"]),
    .settings-grid select,.settings-grid textarea,
    .settings-grid button,.settings-grid .btn
  ){
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
  }
  body.authenticated-page.role-admin .main .page .settings-hub-card{
    min-width:0 !important;
    padding:7px !important;
    gap:6px !important;
    min-height:62px !important;
    overflow-wrap:anywhere !important;
  }
  body.authenticated-page.role-admin .main .page .settings-hub-icon{
    width:30px !important;
    height:30px !important;
    font-size:16px !important;
  }
}
@media (max-width:360px){
  body.authenticated-page.role-admin .main .page :where(.settings-grid,.settings-hub-grid,.settings-checks){
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:4px !important;
  }
  body.authenticated-page.role-admin .main .page .settings-hub-card{padding:5px !important;gap:4px !important;}
}

/* V150: compact responsive polish requested for desktop and mobile. */
html{font-size:clamp(14px,1vw + 8px,16px);}
body.authenticated-page .main .page{
  font-size:clamp(13px,1vw + 8px,16px) !important;
}
body.authenticated-page .main .page :where(
  p,small,label,th,td,button,a,span,strong,b,li,input,select,textarea
){font-size:clamp(11px, .85vw + 8px, 15px) !important;}
body.authenticated-page .main .page :where(h1){font-size:clamp(20px, 1.35vw + 14px, 32px) !important;}
body.authenticated-page .main .page :where(h2){font-size:clamp(18px, 1.1vw + 12px, 27px) !important;}
body.authenticated-page .main .page :where(h3,h4,h5,h6){font-size:clamp(15px, .8vw + 11px, 22px) !important;}
body.authenticated-page.role-admin .main .page :where(
  [class*="card"],[class*="panel"],[class*="box"],[class*="tile"],
  [class*="widget"],[class*="stat"],[class*="metric"],[class*="summary"],
  [class*="section"],[class*="wrap"],[class*="feature"],[class*="notice"],
  input,select,textarea,table,th,td
){border-width:1px !important;}
/* Keep flex/grid gutters nearly flush throughout Admin pages while preserving
   enough room for controls to remain readable and tappable. */
body.authenticated-page.role-admin .main .page :where(*){gap:2px !important;}
body.authenticated-page.role-admin .main .page :where(
  .panel,.card,.form-section,.form-card,.settings-card,.table-wrap,
  [class*="card"],[class*="panel"],[class*="box"],[class*="tile"],
  [class*="widget"],[class*="stat"],[class*="metric"],[class*="summary"]
){margin-bottom:2px !important;}
@media(max-width:600px){
  body.authenticated-page .main .page{font-size:13px !important;}
  body.authenticated-page .main .page :where(p,small,label,th,td,button,a,span,strong,b,li,input,select,textarea){
    font-size:clamp(11px, 2.8vw, 14px) !important;
  }
  body.authenticated-page .main .page :where(h1){font-size:clamp(19px,5.5vw,25px) !important;}
  body.authenticated-page .main .page :where(h2){font-size:clamp(17px,4.8vw,22px) !important;}
  body.authenticated-page .main .page :where(h3,h4,h5,h6){font-size:clamp(14px,4vw,19px) !important;}
}

/* V151: member dashboard navigation, colored section headers, and tighter sides. */
@media(max-width:900px){
  body.member-dashboard-screen .page{
    width:100% !important;max-width:none !important;margin:0 !important;
    padding:0 6px calc(82px + env(safe-area-inset-bottom)) !important;
  }
  body.member-dashboard-screen .md-app{
    width:100% !important;max-width:none !important;margin:0 !important;
    padding:8px 8px 12px !important;
  }
  /* The profile avatar opens this drawer; make the hidden member sidebar visible. */
  body.member-dashboard-screen.sidebar-open .sidebar{
    display:flex !important;position:fixed !important;inset:0 auto 0 0 !important;
    width:min(300px,88vw) !important;max-width:88vw !important;height:100dvh !important;
    padding:12px 10px !important;overflow:hidden !important;
    transform:translateX(0) !important;visibility:visible !important;opacity:1 !important;
    background:linear-gradient(160deg,#123d70 0%,#0e5c75 52%,#08774f 100%) !important;
    box-shadow:10px 0 32px rgba(9,35,60,.28) !important;z-index:60 !important;
  }
  body.member-dashboard-screen.sidebar-open .sidebar nav{
    display:block !important;flex:1 1 auto !important;overflow-y:auto !important;
    padding:8px 2px !important;
  }
  body.member-dashboard-screen.sidebar-open .sidebar nav a,
  body.member-dashboard-screen.sidebar-open .side-bottom a{
    display:flex !important;align-items:center !important;gap:11px !important;
    min-height:44px !important;margin:3px 0 !important;padding:9px 10px !important;
    border-radius:9px !important;color:#fff !important;font-size:13px !important;
  }
  body.member-dashboard-screen.sidebar-open .sidebar nav a:hover,
  body.member-dashboard-screen.sidebar-open .sidebar nav a:focus-visible{
    background:rgba(255,255,255,.16) !important;outline:1px solid rgba(255,255,255,.25) !important;
  }
  body.member-dashboard-screen.sidebar-open .sidebar .brand{
    min-height:88px !important;margin:0 !important;padding:10px !important;
    border-radius:10px !important;background:rgba(255,255,255,.96) !important;
  }
  body.member-dashboard-screen.sidebar-open .sidebar .brand img{width:46px !important;height:46px !important;}
  body.member-dashboard-screen.sidebar-open .sidebar .sidebar-close{display:flex !important;}
  body.member-dashboard-screen.sidebar-open .side-bottom{padding-top:6px !important;}
  body.member-dashboard-screen .mobile-overlay{z-index:55 !important;background:rgba(10,25,44,.48) !important;}
  body.member-dashboard-screen .mobile-bottom-nav{
    display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    position:fixed !important;left:0 !important;right:0 !important;bottom:0 !important;
    width:100% !important;margin:0 !important;padding:5px 5px max(6px,env(safe-area-inset-bottom)) !important;
    gap:3px !important;border:0 !important;border-top:1px solid #d9e7f0 !important;
    border-radius:12px 12px 0 0 !important;background:rgba(255,255,255,.98) !important;
    box-shadow:0 -5px 18px rgba(18,55,82,.13) !important;z-index:50 !important;
  }
  body.member-dashboard-screen .mobile-bottom-nav a{
    min-width:0 !important;min-height:52px !important;padding:4px 2px !important;
    display:flex !important;flex-direction:column !important;justify-content:center !important;
    align-items:center !important;gap:2px !important;border-radius:8px !important;
    color:#36546c !important;text-decoration:none !important;line-height:1.1 !important;
    -webkit-tap-highlight-color:transparent !important;
  }
  body.member-dashboard-screen .mobile-bottom-nav a span{font-size:20px !important;line-height:1 !important;}
  body.member-dashboard-screen .mobile-bottom-nav a b{
    display:block !important;max-width:100% !important;overflow:hidden !important;
    text-overflow:ellipsis !important;white-space:nowrap !important;font-size:10px !important;
  }
  body.member-dashboard-screen .mobile-bottom-nav a.active{
    color:#fff !important;background:linear-gradient(135deg,#087b61,#1267a4) !important;
    box-shadow:0 2px 8px rgba(8,96,99,.22) !important;
  }
  body.member-dashboard-screen .mobile-bottom-nav a.active span{color:#fff !important;}
  body.member-dashboard-screen :where(.member-dashboard-content-grid .panel-head,.member-secondary-grid .panel-head,.member-home-feed-head,.md-section-head){
    color:#fff !important;background:linear-gradient(105deg,#1256a0,#087f79) !important;
    border:0 !important;border-radius:8px !important;padding:9px 11px !important;
    margin:0 0 9px !important;
  }
  body.member-dashboard-screen :where(.member-dashboard-content-grid .panel-head h2,.member-secondary-grid .panel-head h2,.member-home-feed-head,.md-section-title h2){
    color:#fff !important;
  }
}
@media(min-width:901px){
  body.member-dashboard-screen .page{padding-left:14px !important;padding-right:14px !important;}
  body.member-dashboard-screen .md-app{padding-left:0 !important;padding-right:0 !important;}
  body.member-dashboard-screen :where(.member-dashboard-content-grid .panel-head,.member-secondary-grid .panel-head,.member-home-feed-head,.md-section-head){
    color:#fff !important;background:linear-gradient(105deg,#1256a0,#087f79) !important;
    border:0 !important;border-radius:8px !important;padding:10px 12px !important;
  }
  body.member-dashboard-screen :where(.member-dashboard-content-grid .panel-head h2,.member-secondary-grid .panel-head h2,.md-section-title h2){color:#fff !important;}
}
@media(max-width:380px){
  body.member-dashboard-screen .page{padding-left:3px !important;padding-right:3px !important;}
  body.member-dashboard-screen .md-app{padding-left:5px !important;padding-right:5px !important;}
  body.member-dashboard-screen .mobile-bottom-nav a b{font-size:9px !important;}
}

/* V152: full-bleed member dashboard + visible three-line menu button. */
@media(max-width:900px){
  body.member-dashboard-screen .main > .topbar{
    display:flex !important;width:100% !important;max-width:none !important;
    min-height:60px !important;height:60px !important;padding:0 5px !important;
    margin:0 !important;gap:5px !important;
    background:linear-gradient(105deg,#124d86 0%,#087d83 58%,#12804f 100%) !important;
    border:0 !important;box-shadow:0 2px 10px rgba(10,50,76,.16) !important;
  }
  body.member-dashboard-screen .main > .topbar .menu-toggle{
    display:grid !important;place-items:center !important;flex:0 0 40px !important;
    width:40px !important;height:40px !important;padding:0 !important;
    border:0 !important;border-radius:7px !important;background:rgba(255,255,255,.16) !important;
    color:#fff !important;font-size:25px !important;line-height:1 !important;
    box-shadow:none !important;order:0 !important;
  }
  body.member-dashboard-screen .main > .topbar .mobile-brand{
    display:flex !important;flex:1 1 auto !important;min-width:0 !important;
    gap:5px !important;margin:0 !important;overflow:hidden !important;color:#fff !important;
  }
  body.member-dashboard-screen .main > .topbar .mobile-brand img{width:32px !important;height:32px !important;flex:0 0 32px !important;}
  body.member-dashboard-screen .main > .topbar .mobile-brand b,
  body.member-dashboard-screen .main > .topbar .mobile-brand small{color:#fff !important;}
  body.member-dashboard-screen .main > .topbar .mobile-brand b{font-size:12px !important;}
  body.member-dashboard-screen .main > .topbar .mobile-brand small{font-size:9px !important;}
  body.member-dashboard-screen .main > .topbar .topbar-brand{display:none !important;}
  body.member-dashboard-screen .main > .topbar .top-actions{gap:4px !important;margin-left:auto !important;}
  body.member-dashboard-screen .main > .topbar .icon-btn,
  body.member-dashboard-screen .main > .topbar .avatar{width:34px !important;height:34px !important;min-width:34px !important;}
  body.member-dashboard-screen .page{
    width:100% !important;max-width:none !important;margin:0 !important;
    padding:0 0 calc(76px + env(safe-area-inset-bottom)) !important;
  }
  body.member-dashboard-screen .md-app{
    width:100% !important;max-width:none !important;margin:0 !important;padding:0 !important;
  }
  body.member-dashboard-screen .md-app .md-topbar.md-mobile-only{
    display:none !important;margin:0 !important;border-radius:0 !important;
  }
  body.member-dashboard-screen .md-app :where(.md-welcome,.md-kpis,.md-content-grid,.md-notice,.md-nb,.md-section-head){
    margin-left:0 !important;margin-right:0 !important;max-width:none !important;
  }
  body.member-dashboard-screen.sidebar-open .sidebar{
    padding:0 10px 10px !important;max-width:88vw !important;
  }
  body.member-dashboard-screen.sidebar-open .sidebar-head{
    width:calc(100% + 20px) !important;margin:0 -10px 8px !important;
    padding:8px 10px !important;gap:8px !important;
    background:linear-gradient(105deg,#124d86,#087d83 60%,#12804f) !important;
  }
  body.member-dashboard-screen.sidebar-open .sidebar-head .brand{
    min-height:70px !important;width:auto !important;flex:1 1 auto !important;
    margin:0 !important;padding:5px 2px !important;border-radius:0 !important;
    background:transparent !important;
  }
  body.member-dashboard-screen.sidebar-open .sidebar-head .brand b,
  body.member-dashboard-screen.sidebar-open .sidebar-head .brand small{color:#fff !important;}
  body.member-dashboard-screen.sidebar-open .sidebar .sidebar-close{
    display:grid !important;place-items:center !important;flex:0 0 36px !important;
    width:36px !important;height:36px !important;background:rgba(255,255,255,.18) !important;
    border:1px solid rgba(255,255,255,.32) !important;color:#fff !important;
  }
  body.member-dashboard-screen :where(.md-section-head,.md-table-head,.md-notice-head,.md-nb-head){
    border-radius:0 !important;margin-left:0 !important;margin-right:0 !important;
  }
}

/* V153: Quick Actions and All Services span the full mobile viewport. */
@media(max-width:900px){
  body.member-dashboard-screen .md-app .md-quick-card.md-mobile-only{
    display:block !important;width:100% !important;max-width:none !important;
    margin:0 !important;padding:0 !important;border:0 !important;border-radius:0 !important;
    box-shadow:none !important;background:#fff !important;
  }
  body.member-dashboard-screen .md-app .md-quick-card.md-mobile-only .md-section-head{
    width:100% !important;min-height:42px !important;margin:0 !important;padding:8px 8px !important;
    border:0 !important;border-radius:0 !important;
    background:linear-gradient(105deg,#1256a0,#087f79) !important;color:#fff !important;
  }
  body.member-dashboard-screen .md-app .md-quick-card.md-mobile-only .md-section-title,
  body.member-dashboard-screen .md-app .md-quick-card.md-mobile-only .md-section-title h2,
  body.member-dashboard-screen .md-app .md-quick-card.md-mobile-only .md-section-head>a{
    color:#fff !important;margin:0 !important;
  }
  body.member-dashboard-screen .md-app .md-quick-card.md-mobile-only .md-quick-grid{
    width:100% !important;max-width:none !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:0 !important;margin:0 !important;padding:8px 0 !important;background:#fff !important;
  }
  body.member-dashboard-screen .md-app .md-quick-card.md-mobile-only .md-quick-item{
    min-width:0 !important;padding:6px 2px !important;gap:5px !important;
  }
  body.member-dashboard-screen .md-app .md-quick-card.md-mobile-only .md-qicon{
    width:48px !important;height:48px !important;max-width:14vw !important;max-height:14vw !important;
  }
}

/* V154: consistent icon-and-label grid alignment for member Quick Actions. */
@media(max-width:900px){
  body.member-dashboard-screen .md-app .md-quick-card.md-mobile-only .md-quick-grid{
    display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    align-items:stretch !important;justify-items:stretch !important;column-gap:0 !important;row-gap:0 !important;
  }
  body.member-dashboard-screen .md-app .md-quick-card.md-mobile-only .md-quick-item{
    display:grid !important;grid-template-rows:48px minmax(2.6em,auto) !important;
    align-content:start !important;justify-items:center !important;align-items:start !important;
    width:100% !important;min-width:0 !important;min-height:82px !important;
    box-sizing:border-box !important;padding:5px 2px 7px !important;margin:0 !important;
    gap:4px !important;text-align:center !important;line-height:1.2 !important;
  }
  body.member-dashboard-screen .md-app .md-quick-card.md-mobile-only .md-quick-item .md-qicon{
    display:grid !important;place-items:center !important;align-self:center !important;justify-self:center !important;
    width:44px !important;height:44px !important;max-width:44px !important;max-height:44px !important;
    margin:0 !important;font-size:19px !important;line-height:1 !important;
  }
  body.member-dashboard-screen .md-app .md-quick-card.md-mobile-only .md-quick-item > span{
    display:block !important;align-self:start !important;justify-self:stretch !important;
    width:100% !important;min-width:0 !important;min-height:2.6em !important;
    margin:0 !important;padding:0 1px !important;text-align:center !important;
    font-size:clamp(10px,2.8vw,12px) !important;line-height:1.25 !important;
    font-weight:750 !important;overflow-wrap:anywhere !important;word-break:normal !important;
  }
  body.member-dashboard-screen .md-app .md-quick-card.md-mobile-only .md-quick-item:focus-visible{
    outline:2px solid #1976d2 !important;outline-offset:-2px !important;border-radius:6px !important;
  }
}
@media(max-width:360px){
  body.member-dashboard-screen .md-app .md-quick-card.md-mobile-only .md-quick-item{
    grid-template-rows:43px minmax(2.6em,auto) !important;min-height:77px !important;
  }
  body.member-dashboard-screen .md-app .md-quick-card.md-mobile-only .md-quick-item .md-qicon{
    width:40px !important;height:40px !important;max-width:40px !important;max-height:40px !important;font-size:17px !important;
  }
}

/* V155: compact full-width mobile member account/profile page. */
@media(max-width:900px){
  body.authenticated-page.role-member .main .page:has(.page-title .profile-actions){
    width:100% !important;max-width:none !important;margin:0 !important;
    padding:0 0 14px !important;box-sizing:border-box !important;
  }
  body.authenticated-page.role-member .main .page:has(.page-title .profile-actions) .page-title{
    display:grid !important;grid-template-columns:minmax(0,1fr) !important;
    width:100% !important;margin:0 !important;padding:8px 8px 6px !important;gap:3px !important;
  }
  body.authenticated-page.role-member .main .page:has(.page-title .profile-actions) .page-title>div:first-child{
    min-width:0 !important;margin:0 !important;
  }
  body.authenticated-page.role-member .main .page:has(.page-title .profile-actions) .profile-actions{
    display:grid !important;grid-template-columns:minmax(0,1fr) !important;
    width:100% !important;margin:5px 0 0 !important;padding:0 !important;gap:4px !important;
  }
  body.authenticated-page.role-member .main .page:has(.page-title .profile-actions) .profile-actions .btn{
    display:flex !important;width:100% !important;min-height:40px !important;
    margin:0 !important;padding:8px 10px !important;justify-content:center !important;
    white-space:normal !important;text-align:center !important;
  }
  body.authenticated-page.role-member .main .page:has(.page-title .profile-actions) .grid-2{
    display:grid !important;grid-template-columns:minmax(0,1fr) !important;
    width:100% !important;max-width:none !important;margin:0 !important;gap:4px !important;
  }
  body.authenticated-page.role-member .main .page:has(.page-title .profile-actions) .panel{
    width:100% !important;max-width:none !important;margin:0 !important;padding:8px !important;
    border-radius:0 !important;box-shadow:none !important;
  }
  body.authenticated-page.role-member .main .page:has(.page-title .profile-actions) .member-photo-wrap{
    display:flex !important;align-items:center !important;gap:8px !important;margin:0 0 7px !important;
  }
  body.authenticated-page.role-member .main .page:has(.page-title .profile-actions) .member-photo-wrap h2{
    margin:0 !important;font-size:17px !important;line-height:1.2 !important;
  }
  body.authenticated-page.role-member .main .page:has(.page-title .profile-actions) .member-photo-wrap p{
    margin:2px 0 0 !important;line-height:1.2 !important;
  }
  body.authenticated-page.role-member .main .page:has(.page-title .profile-actions) .profile-grid{
    display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    width:100% !important;gap:4px !important;margin:0 !important;
  }
  body.authenticated-page.role-member .main .page:has(.page-title .profile-actions) .profile-grid>div{
    min-width:0 !important;padding:6px !important;margin:0 !important;overflow-wrap:anywhere !important;
  }
  body.authenticated-page.role-member .main .page:has(.page-title .profile-actions) .profile-grid span{
    display:block !important;margin-top:2px !important;overflow-wrap:anywhere !important;line-height:1.25 !important;
  }
  body.authenticated-page.role-member .main .page:has(.page-title .profile-actions) .panel h2{
    margin:0 0 6px !important;font-size:15px !important;
  }
  body.authenticated-page.role-member .main .page:has(.page-title .profile-actions) .alert{margin:4px 0 !important;padding:7px !important;}
}
@media(max-width:360px){
  body.authenticated-page.role-member .main .page:has(.page-title .profile-actions) .page-title{padding-left:5px !important;padding-right:5px !important;}
  body.authenticated-page.role-member .main .page:has(.page-title .profile-actions) .panel{padding:6px !important;}
  body.authenticated-page.role-member .main .page:has(.page-title .profile-actions) .profile-grid>div{padding:5px !important;}
}

/* V156: compact full-width mobile Recent Activity section. */
@media(max-width:900px){
  body.member-dashboard-screen .md-app .md-activity.md-mobile-only{
    display:block !important;width:100% !important;max-width:none !important;
    margin:0 !important;padding:0 !important;border:0 !important;border-radius:0 !important;
    box-shadow:none !important;background:#fff !important;
  }
  body.member-dashboard-screen .md-app .md-activity.md-mobile-only .md-section-head{
    width:100% !important;margin:0 !important;padding:8px !important;
    background:linear-gradient(105deg,#1256a0,#087f79) !important;color:#fff !important;
  }
  body.member-dashboard-screen .md-app .md-activity.md-mobile-only .md-section-title h2,
  body.member-dashboard-screen .md-app .md-activity.md-mobile-only .md-section-head>a{color:#fff !important;}
  body.member-dashboard-screen .md-app .md-activity.md-mobile-only .md-activity-list{padding:0 8px !important;}
  body.member-dashboard-screen .md-app .md-activity.md-mobile-only .md-activity-row{
    gap:7px !important;padding:8px 0 !important;min-height:54px !important;
  }
  body.member-dashboard-screen .md-app .md-activity.md-mobile-only .md-act-icon{
    width:32px !important;height:32px !important;flex:0 0 32px !important;
  }
  body.member-dashboard-screen .md-app .md-activity.md-mobile-only .md-activity-empty{padding:10px !important;}
}

/* V157: unified zero-gutter layout for Admin, Staff, and Member areas. */
body.authenticated-page .main .page{
  width:100% !important;max-width:none !important;margin:0 !important;
  padding:0 !important;box-sizing:border-box !important;
}
body.authenticated-page .main .page :where(*){gap:0 !important;}
body.authenticated-page .main .page :where(
  .grid,.grid-2,.grid-3,.form-grid,.settings-grid,.settings-checks,
  .profile-grid,.cards-grid,.stats-grid,.kpis,.md-kpis,.md-content-grid,
  .member-kpis,.member-dashboard-content-grid,.member-secondary-grid,
  .report-kpis,.report-summary-grid,.financial-flow-grid,.feature-grid,
  .quick,.md-quick-grid,.md-activity-list,.admin-dashboard-overview,
  .admin-dashboard-main,.admin-dashboard-side,.admin-core-flow,
  .admin-financial-details,.inline-form,.form-row,.form-actions,
  .button-row,.actions,.toolbar,.tabs,.tab-list,.modal-actions,
  .table-actions,.filters,.filter-row
){gap:0 !important;}
body.authenticated-page .main .page :where(
  .panel,.card,.form-section,.form-card,.settings-card,.table-wrap,
  [class*="card"],[class*="panel"],[class*="box"],[class*="tile"],
  [class*="widget"],[class*="stat"],[class*="metric"],[class*="summary"]
){margin-left:0 !important;margin-right:0 !important;margin-bottom:0 !important;}
body.authenticated-page .main .page :where(
  .panel,.card,.form-section,.form-card,.settings-card,.table-wrap
){max-width:100% !important;}
@media(max-width:900px){
  body.authenticated-page .main .page{
    width:100% !important;max-width:none !important;margin:0 !important;
    padding:0 !important;overflow-x:hidden !important;
  }
  body.authenticated-page .main .page :where(
    .grid,.grid-2,.grid-3,.form-grid,.settings-grid,.settings-checks,
    .profile-grid,.cards-grid,.stats-grid,.kpis,.md-kpis,.md-content-grid,
    .member-kpis,.member-dashboard-content-grid,.member-secondary-grid,
    .report-kpis,.report-summary-grid,.financial-flow-grid,.feature-grid,
    .quick,.md-quick-grid,.admin-dashboard-overview,.admin-dashboard-main,
    .admin-dashboard-side,.admin-core-flow,.admin-financial-details
  ){grid-column-gap:0 !important;column-gap:0 !important;row-gap:0 !important;}
  body.authenticated-page .main .page :where(
    input:not([type="checkbox"]):not([type="radio"]),select,textarea,button,.btn
  ){max-width:100% !important;min-width:0 !important;}
}
@media(min-width:901px){
  body.authenticated-page .main .page{padding:0 !important;}
}

/* V158: same mobile side-drawer behavior on every authenticated route. */
@media(max-width:900px){
  body.authenticated-page .main>.topbar .menu-toggle{
    display:grid !important;place-items:center !important;flex:0 0 42px !important;
    width:42px !important;height:42px !important;visibility:visible !important;opacity:1 !important;
    cursor:pointer !important;pointer-events:auto !important;
  }
  body.authenticated-page .sidebar{
    display:flex !important;position:fixed !important;inset:0 auto 0 0 !important;
    width:min(300px,88vw) !important;max-width:88vw !important;height:100vh !important;height:100dvh !important;
    transform:translateX(-105%) !important;visibility:hidden !important;opacity:1 !important;
    pointer-events:none !important;overflow:hidden !important;z-index:60 !important;
    transition:transform .24s ease,visibility .24s ease !important;
    box-shadow:10px 0 32px rgba(9,35,60,.24) !important;
  }
  body.authenticated-page.sidebar-open .sidebar{
    display:flex !important;transform:translateX(0) !important;visibility:visible !important;
    pointer-events:auto !important;z-index:60 !important;
  }
  body.authenticated-page .sidebar-head{display:flex !important;flex:0 0 auto !important;}
  body.authenticated-page .sidebar-head .brand{min-width:0 !important;flex:1 1 auto !important;}
  body.authenticated-page .sidebar-close{
    display:grid !important;place-items:center !important;flex:0 0 36px !important;
    width:36px !important;height:36px !important;cursor:pointer !important;
  }
  body.authenticated-page .sidebar nav{
    display:block !important;flex:1 1 auto !important;min-height:0 !important;
    overflow-y:auto !important;overflow-x:hidden !important;
  }
  body.authenticated-page .mobile-overlay{
    display:none !important;position:fixed !important;inset:0 !important;
    background:rgba(10,25,44,.5) !important;z-index:55 !important;cursor:pointer !important;
  }
  body.authenticated-page.sidebar-open .mobile-overlay{display:block !important;}
  body.authenticated-page .main,
  body.authenticated-page.sidebar-open .main{
    margin-left:0 !important;width:100% !important;max-width:100% !important;
  }
  body.authenticated-page.sidebar-open{overflow:hidden !important;}
}

/* V159: compact mobile side drawer; remove decorative stripes and dividers. */
@media(max-width:900px){
  body.authenticated-page.sidebar-open .sidebar{
    width:min(320px,88vw) !important;max-width:88vw !important;
    padding:8px !important;border:0 !important;border-radius:0 !important;
    box-shadow:8px 0 24px rgba(0,0,0,.22) !important;
  }
  body.authenticated-page.sidebar-open .sidebar:before,
  body.authenticated-page.sidebar-open .sidebar .brand:after,
  body.authenticated-page.sidebar-open .side-bottom:before{display:none !important;content:none !important;}
  body.authenticated-page.sidebar-open .sidebar-head{
    display:flex !important;align-items:center !important;flex:0 0 auto !important;
    width:100% !important;margin:0 0 6px !important;padding:4px !important;
    gap:6px !important;border:0 !important;border-bottom:0 !important;
  }
  body.authenticated-page.sidebar-open .sidebar-head .brand,
  body.authenticated-page.sidebar-open .sidebar .brand{
    flex:1 1 auto !important;width:auto !important;min-height:64px !important;
    margin:0 !important;padding:4px !important;border:0 !important;border-bottom:0 !important;
    border-radius:0 !important;background:transparent !important;box-shadow:none !important;
  }
  body.authenticated-page.sidebar-open .sidebar .brand img{
    width:44px !important;height:44px !important;max-width:44px !important;max-height:44px !important;
  }
  body.authenticated-page.sidebar-open .sidebar .brand b{font-size:14px !important;line-height:1.2 !important;}
  body.authenticated-page.sidebar-open .sidebar .brand small{font-size:10px !important;line-height:1.25 !important;}
  body.authenticated-page.sidebar-open .sidebar .sidebar-close{
    display:grid !important;place-items:center !important;position:static !important;
    flex:0 0 36px !important;width:36px !important;height:36px !important;
    margin:0 !important;padding:0 !important;border:0 !important;border-radius:6px !important;
    background:rgba(255,255,255,.12) !important;box-shadow:none !important;
  }
  body.authenticated-page.sidebar-open .sidebar nav{
    display:flex !important;flex:1 1 auto !important;flex-direction:column !important;
    justify-content:flex-start !important;align-content:flex-start !important;align-items:stretch !important;
    min-height:0 !important;overflow-y:auto !important;overflow-x:hidden !important;
    width:100% !important;margin:0 !important;padding:0 !important;gap:2px !important;
  }
  body.authenticated-page.sidebar-open .sidebar nav a{
    display:flex !important;flex:0 0 auto !important;align-items:center !important;justify-content:flex-start !important;
    width:100% !important;min-width:0 !important;min-height:48px !important;height:auto !important;
    margin:0 !important;padding:5px 8px !important;gap:9px !important;
    border:0 !important;border-radius:7px !important;box-shadow:none !important;
    font-size:13px !important;line-height:1.2 !important;text-align:left !important;
  }
  body.authenticated-page.sidebar-open .sidebar nav a .sidebar-icon{
    display:inline-flex !important;flex:0 0 36px !important;width:36px !important;min-width:36px !important;
    height:36px !important;max-width:36px !important;max-height:36px !important;
    margin:0 !important;padding:0 !important;border:0 !important;border-radius:7px !important;
    box-shadow:none !important;
  }
  body.authenticated-page.sidebar-open .sidebar nav a span{
    display:block !important;min-width:0 !important;white-space:normal !important;
    overflow-wrap:anywhere !important;line-height:1.2 !important;
  }
  body.authenticated-page.sidebar-open .sidebar .side-bottom{
    flex:0 0 auto !important;margin:4px 0 0 !important;padding:4px 0 0 !important;
    border:0 !important;border-top:0 !important;box-shadow:none !important;
  }
  body.authenticated-page.sidebar-open .sidebar .online{
    margin:0 !important;padding:4px 8px !important;font-size:11px !important;
  }
  body.authenticated-page.sidebar-open .sidebar .side-logout{
    display:flex !important;align-items:center !important;justify-content:flex-start !important;
    width:100% !important;min-height:44px !important;margin:2px 0 0 !important;padding:4px 8px !important;
    gap:9px !important;border:0 !important;border-radius:7px !important;
    background:rgba(255,255,255,.08) !important;box-shadow:none !important;
  }
  body.authenticated-page.sidebar-open .sidebar .side-logout .sidebar-icon{
    flex:0 0 34px !important;width:34px !important;min-width:34px !important;height:34px !important;
    max-width:34px !important;max-height:34px !important;margin:0 !important;padding:0 !important;
    border:0 !important;box-shadow:none !important;
  }
}

/* V160: subtle tricolor drawer edges and stronger society name. */
@media(max-width:900px){
  body.authenticated-page.sidebar-open .sidebar{
    position:fixed !important;isolation:isolate !important;
    border-top:1px solid rgba(255,255,255,.12) !important;
    border-bottom:1px solid rgba(255,255,255,.12) !important;
  }
  body.authenticated-page.sidebar-open .sidebar:before{
    content:"" !important;display:block !important;position:absolute !important;
    left:0 !important;right:0 !important;top:0 !important;height:3px !important;
    background:linear-gradient(90deg,
      rgba(255,153,51,.58) 0 33.333%,
      rgba(255,255,255,.52) 33.333% 66.666%,
      rgba(19,136,8,.55) 66.666% 100%) !important;
    opacity:.8 !important;z-index:3 !important;pointer-events:none !important;
  }
  body.authenticated-page.sidebar-open .sidebar:after{
    content:"" !important;display:block !important;position:absolute !important;
    left:0 !important;right:0 !important;bottom:0 !important;height:3px !important;
    background:linear-gradient(90deg,
      rgba(255,153,51,.58) 0 33.333%,
      rgba(255,255,255,.52) 33.333% 66.666%,
      rgba(19,136,8,.55) 66.666% 100%) !important;
    opacity:.8 !important;z-index:3 !important;pointer-events:none !important;
  }
  body.authenticated-page.sidebar-open .sidebar-head .brand b{
    display:block !important;font-size:17px !important;font-weight:950 !important;
    line-height:1.12 !important;letter-spacing:.01em !important;
    white-space:normal !important;overflow-wrap:anywhere !important;
  }
  body.authenticated-page.sidebar-open .sidebar-head .brand small{
    display:block !important;font-size:10px !important;font-weight:700 !important;
    line-height:1.2 !important;
  }
}

/* V161: corrected member-name emphasis, translucent drawer, compact dashboard cards. */
@media(max-width:900px){
  body.authenticated-page.sidebar-open .sidebar{
    background:linear-gradient(155deg,
      rgba(13,43,78,.86) 0%,rgba(10,68,91,.82) 54%,rgba(7,75,53,.84) 100%) !important;
    -webkit-backdrop-filter:blur(16px) saturate(125%) !important;
    backdrop-filter:blur(16px) saturate(125%) !important;
  }
  body.member-dashboard-screen .md-app .md-user-info h1 span{
    display:inline-block !important;font-size:clamp(23px,6vw,29px) !important;
    font-weight:950 !important;line-height:1.08 !important;letter-spacing:.005em !important;
  }
  body.authenticated-page.role-member .main .page:has(.page-title .profile-actions) .member-photo-wrap h2{
    font-size:20px !important;font-weight:950 !important;line-height:1.12 !important;
  }
  body.member-dashboard-screen .md-app .md-quick-card.md-mobile-only .md-section-head{
    min-height:34px !important;padding:5px 8px !important;margin:0 !important;
  }
  body.member-dashboard-screen .md-app .md-quick-card.md-mobile-only .md-quick-grid{
    padding:3px 0 !important;
  }
  body.member-dashboard-screen .md-app .md-quick-card.md-mobile-only .md-quick-item{
    grid-template-rows:37px minmax(2.2em,auto) !important;
    min-height:63px !important;padding:3px 1px 4px !important;gap:2px !important;
  }
  body.member-dashboard-screen .md-app .md-quick-card.md-mobile-only .md-quick-item .md-qicon{
    width:35px !important;height:35px !important;max-width:35px !important;max-height:35px !important;font-size:16px !important;
  }
  body.member-dashboard-screen .md-app .md-quick-card.md-mobile-only .md-quick-item>span{
    min-height:2.2em !important;font-size:clamp(9px,2.6vw,11px) !important;line-height:1.15 !important;
  }
  body.member-dashboard-screen .md-app .md-activity.md-mobile-only .md-section-head{
    min-height:34px !important;padding:5px 8px !important;margin:0 !important;
  }
  body.member-dashboard-screen .md-app .md-activity.md-mobile-only .md-activity-list{padding:0 6px !important;}
  body.member-dashboard-screen .md-app .md-activity.md-mobile-only .md-activity-row{
    min-height:42px !important;padding:5px 0 !important;gap:5px !important;
  }
  body.member-dashboard-screen .md-app .md-activity.md-mobile-only .md-act-icon{
    width:28px !important;height:28px !important;flex:0 0 28px !important;font-size:13px !important;
  }
  body.member-dashboard-screen .md-app .md-activity.md-mobile-only .md-act-info b{font-size:11px !important;}
  body.member-dashboard-screen .md-app .md-activity.md-mobile-only .md-act-info small{font-size:9px !important;}
  body.member-dashboard-screen .md-app .md-activity.md-mobile-only .md-act-right strong{font-size:12px !important;}
  body.member-dashboard-screen .md-app .md-activity.md-mobile-only .md-status{font-size:9px !important;padding:2px 6px !important;}
}

/* V162: narrower white-glass drawer, stronger amounts, moving notices. */
@media(max-width:900px){
  body.authenticated-page.sidebar-open .sidebar{
    width:min(280px,72vw) !important;max-width:72vw !important;
    background:rgba(255,255,255,.78) !important;color:#17324d !important;
    -webkit-backdrop-filter:blur(22px) saturate(145%) !important;
    backdrop-filter:blur(22px) saturate(145%) !important;
    border-right:1px solid rgba(255,255,255,.55) !important;
  }
  body.authenticated-page.sidebar-open .sidebar .brand b,
  body.authenticated-page.sidebar-open .sidebar .brand small{color:#17324d !important;text-shadow:none !important;}
  body.authenticated-page.sidebar-open .sidebar nav a,
  body.authenticated-page.sidebar-open .sidebar .side-bottom a{
    color:#17324d !important;text-shadow:none !important;background:rgba(255,255,255,.38) !important;
  }
  body.authenticated-page.sidebar-open .sidebar nav a.active{
    color:#fff !important;background:linear-gradient(110deg,rgba(20,125,115,.9),rgba(26,105,165,.88)) !important;
  }
  body.authenticated-page.sidebar-open .sidebar nav a .sidebar-icon,
  body.authenticated-page.sidebar-open .sidebar .side-logout .sidebar-icon{
    background:rgba(255,255,255,.82) !important;
  }
  body.authenticated-page.sidebar-open .sidebar .online{color:#11744d !important;text-shadow:none !important;}
  body.authenticated-page.sidebar-open .sidebar .sidebar-close{
    color:#17324d !important;background:rgba(255,255,255,.55) !important;
  }
  body.member-dashboard-screen .md-app .md-kpi-body b,
  body.authenticated-page.role-member .main .page .member-kpis .kpi b{
    font-size:clamp(25px,7vw,34px) !important;font-weight:950 !important;line-height:1.05 !important;
  }
  body.member-dashboard-screen .md-app .md-user-info .md-greeting{
    margin-top:5px !important;margin-bottom:3px !important;
  }
  body.member-dashboard-screen .md-app .md-user .md-avatar{
    margin-left:6px !important;transform:translateX(4px) !important;
  }
  body.member-dashboard-screen .md-app .md-notice-content,
  body.member-dashboard-screen .md-app .md-nb-text{overflow:hidden !important;white-space:nowrap !important;}
  body.member-dashboard-screen .md-app .md-notice-marquee{
    display:inline-block !important;width:max-content !important;max-width:none !important;
    white-space:nowrap !important;animation:gsMemberNoticeMove 18s linear infinite !important;
    will-change:transform !important;
  }
}
@keyframes gsMemberNoticeMove{
  0%{transform:translateX(100%)}
  100%{transform:translateX(-100%)}
}
@media(prefers-reduced-motion:reduce){
  body.member-dashboard-screen .md-app .md-notice-marquee{animation-duration:45s !important;}
}
/* V163: keep dashboard notice marquees clipped cleanly inside their rows. */
body.member-dashboard-screen .md-app .md-nb-text,
body.member-dashboard-screen .md-app .md-notice-body{
  min-width:0 !important;overflow:hidden !important;white-space:nowrap !important;
}
body.member-dashboard-screen .md-app .md-notice-body{
  display:block !important;-webkit-line-clamp:unset !important;-webkit-box-orient:initial !important;
  text-overflow:clip !important;
}
body.member-dashboard-screen .md-app .md-notice-marquee{
  display:inline-block !important;width:max-content !important;max-width:none !important;
  white-space:nowrap !important;will-change:transform !important;
}

/* V164: compact low-border tables, lists, reminders, and history across roles. */
body.authenticated-page .main .page :where(.page-title){
  gap:0 !important;margin:0 0 4px !important;padding:4px 6px !important;
}
body.authenticated-page .main .page :where(
  .panel,.card,.table-wrap,[class*="member-list"],[class*="member-directory"],
  [class*="payment-history"],[class*="history"],[class*="reminder"],
  [class*="list-card"],[class*="list-panel"]
){
  margin:0 !important;border-width:1px !important;border-color:rgba(87,112,138,.16) !important;
  border-radius:4px !important;box-shadow:none !important;
}
body.authenticated-page .main .page :where(
  .panel,.card,[class*="member-list"],[class*="member-directory"],
  [class*="payment-history"],[class*="history"],[class*="reminder"],
  [class*="list-card"],[class*="list-panel"]
){padding:6px !important;}
body.authenticated-page .main .page :where(.table-wrap){
  width:100% !important;max-width:100% !important;min-width:0 !important;
  margin:0 !important;padding:0 !important;overflow-x:auto !important;
  border:1px solid rgba(87,112,138,.14) !important;border-radius:3px !important;
}
body.authenticated-page .main .page :where(table){
  margin:0 !important;border-collapse:collapse !important;border-spacing:0 !important;
}
body.authenticated-page .main .page :where(th,td){
  padding:5px 6px !important;line-height:1.25 !important;
  border-width:0 0 1px !important;border-color:rgba(87,112,138,.14) !important;
  border-radius:0 !important;vertical-align:middle !important;
}
body.authenticated-page .main .page :where(tbody tr:last-child td){border-bottom:0 !important;}
body.authenticated-page .main .page :where(.mobile-card-table tbody tr){
  margin:0 0 2px !important;padding:5px !important;gap:0 !important;
  border:1px solid rgba(87,112,138,.16) !important;border-radius:3px !important;
  box-shadow:none !important;
}
body.authenticated-page .main .page :where(.mobile-card-table tbody td){
  min-width:0 !important;padding:4px !important;border-width:0 0 1px !important;
  line-height:1.2 !important;overflow-wrap:anywhere !important;
}
body.authenticated-page .main .page :where(.gs-reminder-table tbody tr){
  margin:0 0 2px !important;padding:5px !important;gap:0 !important;
  border:1px solid rgba(87,112,138,.16) !important;border-radius:3px !important;box-shadow:none !important;
}
body.authenticated-page .main .page :where(.gs-reminder-table tbody td){padding:4px 3px !important;}
body.authenticated-page .main .page :where(.member-list-only .table-wrap,.member-directory-panel .table-wrap){
  border:0 !important;border-radius:0 !important;
}
@media(max-width:900px){
  body.authenticated-page .main .page :where(.page-title){padding:4px !important;margin-bottom:2px !important;}
  body.authenticated-page .main .page :where(.panel,.card,[class*="member-list"],[class*="member-directory"],[class*="payment-history"],[class*="history"],[class*="reminder"]){padding:5px !important;}
  body.authenticated-page .main .page :where(th,td){padding:4px !important;font-size:12px !important;}
  body.authenticated-page .main .page :where(.payment-history-table th,.payment-history-table td){padding:4px !important;font-size:11px !important;}
  body.authenticated-page .main .page :where(.gs-reminder-table tbody tr,.mobile-card-table tbody tr){margin-bottom:2px !important;padding:4px !important;}
  body.authenticated-page .main .page :where(.gs-reminder-table tbody td,.mobile-card-table tbody td){padding:3px !important;}
}

/* V165: one-line, font-fitted EMI reminder buttons on mobile. */
@media(max-width:900px){
  body.authenticated-page .main .page .emi-reminder-table-wrap{width:100% !important;max-width:100% !important;overflow:visible !important;border:0 !important;}
  body.authenticated-page .main .page table.emi-reminder-table.mobile-card-table{
    display:block !important;width:100% !important;min-width:0 !important;
  }
  body.authenticated-page .main .page table.emi-reminder-table.mobile-card-table tbody,
  body.authenticated-page .main .page table.emi-reminder-table.mobile-card-table tr{display:block !important;width:100% !important;}
  body.authenticated-page .main .page table.emi-reminder-table.mobile-card-table tr{
    margin:0 0 3px !important;padding:5px !important;border:1px solid rgba(87,112,138,.16) !important;
    border-radius:3px !important;box-shadow:none !important;
  }
  body.authenticated-page .main .page table.emi-reminder-table.mobile-card-table td{
    display:grid !important;grid-template-columns:74px minmax(0,1fr) !important;
    gap:3px !important;width:100% !important;padding:4px 2px !important;
    border-bottom:1px solid rgba(87,112,138,.12) !important;
  }
  body.authenticated-page .main .page table.emi-reminder-table.mobile-card-table td:nth-child(6){
    display:block !important;padding:5px 0 2px !important;border-bottom:0 !important;
  }
  body.authenticated-page .main .page table.emi-reminder-table.mobile-card-table td:nth-child(6)::before{
    display:block !important;margin:0 0 3px !important;
  }
  body.authenticated-page .main .page table.emi-reminder-table td:nth-child(6) .inline-form{
    display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    width:100% !important;max-width:100% !important;gap:2px !important;margin:0 !important;
    overflow:visible !important;
  }
  body.authenticated-page .main .page table.emi-reminder-table td:nth-child(6) .inline-form>*{
    display:flex !important;align-items:center !important;justify-content:center !important;
    box-sizing:border-box !important;width:100% !important;min-width:0 !important;max-width:100% !important;
    min-height:30px !important;height:auto !important;margin:0 !important;padding:3px 1px !important;
    font-size:clamp(7px,2.4vw,9px) !important;line-height:1 !important;
    white-space:nowrap !important;overflow:hidden !important;text-overflow:clip !important;
    word-break:keep-all !important;letter-spacing:-.02em !important;
  }
  body.authenticated-page .main .page table.emi-reminder-table td:nth-child(6) small.block{
    display:block !important;margin-top:3px !important;font-size:9px !important;
  }
  body.authenticated-page .main .page .panel-head>.inline-form{
    display:flex !important;flex-flow:row nowrap !important;gap:2px !important;
    width:100% !important;max-width:100% !important;overflow-x:auto !important;
  }
  body.authenticated-page .main .page .panel-head>.inline-form .btn{
    flex:1 1 0 !important;min-width:0 !important;padding:4px 2px !important;
    font-size:clamp(8px,2.4vw,10px) !important;white-space:nowrap !important;
  }
}

/* V166: keep member account status readable on one label/value line each. */
@media(max-width:700px){
  body.authenticated-page .main .page .member-modern-status{
    display:flex !important;align-items:center !important;gap:8px !important;min-width:0 !important;
  }
  body.authenticated-page .main .page .member-modern-status>div:not(.status-icon){
    flex:1 1 auto !important;min-width:0 !important;
  }
  body.authenticated-page .main .page .member-modern-status small{
    display:block !important;white-space:nowrap !important;word-break:keep-all !important;
    overflow-wrap:normal !important;line-height:1.2 !important;
  }
  body.authenticated-page .main .page .member-modern-status strong{
    display:block !important;white-space:nowrap !important;word-break:keep-all !important;
    overflow-wrap:normal !important;line-height:1.15 !important;
  }
  body.authenticated-page .main .page .member-modern-status .btn{
    flex:0 0 auto !important;white-space:nowrap !important;padding:5px 8px !important;
  }
}

/* V167: contribution reminder details first, one compact action row second. */
@media(max-width:700px){
  body.authenticated-page .main .page .gs-reminder-table-wrap{
    border:0 !important;border-radius:0 !important;overflow:visible !important;
  }
  body.authenticated-page .main .page table.gs-reminder-table.mobile-card-table,
  body.authenticated-page .main .page table.gs-reminder-table.mobile-card-table tbody{
    display:block !important;width:100% !important;min-width:0 !important;
  }
  body.authenticated-page .main .page table.gs-reminder-table.mobile-card-table tbody tr{
    display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:0 6px !important;width:100% !important;margin:0 0 3px !important;padding:5px 4px !important;
    border:0 !important;border-bottom:1px solid rgba(74,100,126,.16) !important;
    border-radius:0 !important;box-shadow:none !important;background:transparent !important;
  }
  body.authenticated-page .main .page table.gs-reminder-table.mobile-card-table tbody td{
    display:block !important;grid-column:auto !important;min-width:0 !important;width:auto !important;
    padding:3px 4px !important;border:0 !important;overflow-wrap:anywhere !important;
    word-break:normal !important;font-size:11px !important;line-height:1.2 !important;
  }
  body.authenticated-page .main .page table.gs-reminder-table.mobile-card-table tbody td:nth-child(1){grid-column:1/-1 !important;}
  body.authenticated-page .main .page table.gs-reminder-table.mobile-card-table tbody td:nth-child(1)::before{content:"NAME / MEMBER ID" !important;display:block !important;}
  body.authenticated-page .main .page table.gs-reminder-table.mobile-card-table tbody td:nth-child(2)::before{content:"DUE" !important;display:block !important;}
  body.authenticated-page .main .page table.gs-reminder-table.mobile-card-table tbody td:nth-child(3)::before{content:"PAID" !important;display:block !important;}
  body.authenticated-page .main .page table.gs-reminder-table.mobile-card-table tbody td:nth-child(4)::before{content:"BALANCE" !important;display:block !important;}
  body.authenticated-page .main .page table.gs-reminder-table.mobile-card-table tbody td:nth-child(5)::before{content:"MOBILE" !important;display:block !important;}
  body.authenticated-page .main .page table.gs-reminder-table.mobile-card-table tbody td:nth-child(6){
    display:block !important;grid-column:1/-1 !important;width:100% !important;
    margin-top:2px !important;padding:4px 3px 2px !important;border-top:1px solid rgba(74,100,126,.1) !important;
  }
  body.authenticated-page .main .page table.gs-reminder-table.mobile-card-table tbody td:nth-child(6)::before{
    content:"REMINDER" !important;display:block !important;margin:0 0 3px !important;
  }
  body.authenticated-page .main .page table.gs-reminder-table td:nth-child(6) .inline-form{
    display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    width:100% !important;max-width:100% !important;gap:2px !important;margin:0 !important;
  }
  body.authenticated-page .main .page table.gs-reminder-table td:nth-child(6) .inline-form>*{
    display:flex !important;align-items:center !important;justify-content:center !important;
    min-width:0 !important;width:100% !important;height:auto !important;min-height:28px !important;
    margin:0 !important;padding:2px 1px !important;box-sizing:border-box !important;
    font-size:clamp(7px,2.35vw,9px) !important;line-height:1 !important;
    white-space:nowrap !important;word-break:keep-all !important;overflow:hidden !important;
  }
  body.authenticated-page .main .page table.gs-reminder-table td:nth-child(6) form{display:block !important;min-width:0 !important;}
  body.authenticated-page .main .page table.gs-reminder-table td:nth-child(6) small.block{margin-top:2px !important;font-size:9px !important;}
  body.authenticated-page .main .page .member-modern-status{
    min-height:44px !important;padding:5px 7px !important;gap:6px !important;
    border:1px solid rgba(74,100,126,.12) !important;border-radius:5px !important;box-shadow:none !important;
  }
  body.authenticated-page .main .page .member-modern-status .status-icon{width:28px !important;height:28px !important;font-size:15px !important;}
  body.authenticated-page .main .page .member-modern-status small{font-size:10px !important;}
  body.authenticated-page .main .page .member-modern-status strong{font-size:14px !important;}
  body.authenticated-page .main .page .member-modern-status .btn{height:30px !important;min-height:30px !important;font-size:10px !important;padding:4px 6px !important;}
}

/* V168: top-labeled reminder details, stable member status row, WhatsApp-style conversation. */
@media(max-width:700px){
  body.authenticated-page .main .page table.gs-reminder-table.mobile-card-table tbody td:nth-child(1){grid-column:1/-1 !important;}
  body.authenticated-page .main .page table.gs-reminder-table.mobile-card-table tbody td:nth-child(1)::before{content:"NAME / MEMBER ID" !important;}
  body.authenticated-page .main .page table.gs-reminder-table.mobile-card-table tbody td:nth-child(2)::before{content:"DUE" !important;}
  body.authenticated-page .main .page table.gs-reminder-table.mobile-card-table tbody td:nth-child(3)::before{content:"MONTH" !important;}
  body.authenticated-page .main .page table.gs-reminder-table.mobile-card-table tbody td:nth-child(4)::before{content:"PAID" !important;}
  body.authenticated-page .main .page table.gs-reminder-table.mobile-card-table tbody td:nth-child(5)::before{content:"BALANCE" !important;}
  body.authenticated-page .main .page table.gs-reminder-table.mobile-card-table tbody td:nth-child(6)::before{content:"MOBILE" !important;}
  body.authenticated-page .main .page table.gs-reminder-table.mobile-card-table tbody td:nth-child(7){
    display:block !important;grid-column:1/-1 !important;width:100% !important;
    margin-top:2px !important;padding:4px 3px 2px !important;border-top:1px solid rgba(74,100,126,.1) !important;
  }
  body.authenticated-page .main .page table.gs-reminder-table.mobile-card-table tbody td:nth-child(7)::before{
    content:"REMINDER" !important;display:block !important;margin:0 0 3px !important;
  }
  body.authenticated-page .main .page table.gs-reminder-table td:nth-child(7) .inline-form{
    display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    width:100% !important;max-width:100% !important;gap:2px !important;margin:0 !important;
  }
  body.authenticated-page .main .page table.gs-reminder-table td:nth-child(7) .inline-form>*{
    display:flex !important;align-items:center !important;justify-content:center !important;
    min-width:0 !important;width:100% !important;min-height:28px !important;margin:0 !important;
    padding:2px 1px !important;box-sizing:border-box !important;font-size:clamp(7px,2.35vw,9px) !important;
    line-height:1 !important;white-space:nowrap !important;word-break:keep-all !important;overflow:hidden !important;
  }
}
body.authenticated-page .main .page .member-modern-status{
  display:flex !important;flex-flow:row nowrap !important;align-items:center !important;
}
body.authenticated-page .main .page .member-modern-status .status-icon{order:0 !important;flex:0 0 auto !important;}
body.authenticated-page .main .page .member-modern-status>div:not(.status-icon){
  order:1 !important;flex:1 1 auto !important;min-width:0 !important;
}
body.authenticated-page .main .page .member-modern-status>.btn{
  order:2 !important;position:static !important;flex:0 0 auto !important;margin:0 0 0 auto !important;
  white-space:nowrap !important;
}
/* WhatsApp-style conversation surface and bubbles. */
.wa-inbox-chat{background:#efeae2 !important;}
.wa-chat-header{
  min-height:58px !important;padding:7px 12px !important;gap:8px !important;
  background:#f0f2f5 !important;border-bottom:1px solid #dfe3e7 !important;
}
.wa-chat-header>div:has(>.wa-avatar){min-width:0 !important;flex:1 1 120px !important;}
.wa-chat-header>div:has(>.wa-avatar) b{font-size:14px !important;color:#172b24 !important;}
.wa-chat-header>div:has(>.wa-avatar) small{font-size:10px !important;color:#667781 !important;}
.wa-chat-status{color:#168b62 !important;font-size:10px !important;}
.wa-message-scroll{
  padding:18px clamp(10px,3vw,28px) !important;
  background-color:#efeae2 !important;
  background-image:radial-gradient(rgba(102,119,129,.09) .65px,transparent .65px) !important;
  background-size:17px 17px !important;
}
.wa-bubble-row{width:100% !important;margin:4px 0 !important;}
.wa-bubble{
  max-width:min(78%,560px) !important;padding:7px 9px 5px !important;
  border:0 !important;border-radius:9px !important;box-shadow:0 1px 1px rgba(0,0,0,.12) !important;
  color:#172b24 !important;
}
.wa-bubble.in{background:#fff !important;border-top-left-radius:3px !important;}
.wa-bubble.out{background:#d9fdd3 !important;border-top-right-radius:3px !important;}
.wa-sender{color:#128c7e !important;font-size:10px !important;}
.wa-text{color:#172b24 !important;font-size:13px !important;line-height:1.42 !important;}
.wa-meta{display:flex !important;justify-content:flex-end !important;align-items:center !important;gap:5px !important;margin-top:3px !important;color:#667781 !important;font-size:9px !important;}
.wa-meta span{color:#53a6c8 !important;font-size:9px !important;}
.wa-compose{
  align-items:center !important;gap:7px !important;padding:8px 10px !important;
  background:#f0f2f5 !important;border-top:1px solid #e2e5e9 !important;
}
.wa-compose textarea{
  min-height:40px !important;max-height:100px !important;resize:none !important;
  padding:10px 13px !important;border:0 !important;border-radius:22px !important;
  background:#fff !important;font-size:13px !important;box-shadow:none !important;
}
.wa-compose .btn{
  min-width:58px !important;height:38px !important;min-height:38px !important;padding:7px 12px !important;
  border:0 !important;border-radius:20px !important;background:#128c7e !important;color:#fff !important;
}
@media(max-width:850px){
  .wa-live-inbox{gap:0 !important;border:1px solid #dfe3e7 !important;border-radius:12px !important;overflow:hidden !important;background:#fff !important;}
  .wa-inbox-sidebar{background:#fff !important;border-bottom:1px solid #e5e8eb !important;}
  .wa-conversation{padding:9px 10px !important;border-bottom:1px solid #eef0f2 !important;}
  .wa-inbox-chat{height:62vh !important;min-height:350px !important;max-height:680px !important;}
  .wa-chat-header .btn{font-size:10px !important;padding:6px 8px !important;}
  .wa-bubble{max-width:86% !important;}
}
/* V169: make nested reminder form buttons fill their single-line grid cells. */
@media(max-width:700px){
  body.authenticated-page .main .page table.gs-reminder-table td:nth-child(7) .inline-form>form,
  body.authenticated-page .main .page table.gs-reminder-table td:nth-child(7) .inline-form>form button{
    display:flex !important;align-items:center !important;justify-content:center !important;
    width:100% !important;min-width:0 !important;max-width:100% !important;box-sizing:border-box !important;
    padding:2px 1px !important;font-size:clamp(7px,2.35vw,9px) !important;
    line-height:1 !important;white-space:nowrap !important;overflow:hidden !important;
  }
}

/* V170: dashboard slogan fit, tricolor authenticated header and continuous notice feed. */
body.member-dashboard-screen .main>.topbar{
  background:linear-gradient(105deg,#ff9933 0%,#fff8ef 31%,#fff 52%,#eef8ed 72%,#138808 100%) !important;
  color:#18344a !important;border-bottom:3px solid transparent !important;
  border-image:linear-gradient(90deg,#ff9933,#fff,#138808) 1 !important;
  box-shadow:0 5px 18px rgba(29,69,50,.13) !important;
}
body.member-dashboard-screen .main>.topbar .topbar-brand b,
body.member-dashboard-screen .main>.topbar .mobile-brand b,
body.member-dashboard-screen .main>.topbar .topbar-brand small,
body.member-dashboard-screen .main>.topbar .mobile-brand small,
body.member-dashboard-screen .main>.topbar .user-meta b,
body.member-dashboard-screen .main>.topbar .user-meta small{color:#17324d !important;text-shadow:none !important;}
body.member-dashboard-screen .main>.topbar .menu-toggle{color:#14532d !important;background:rgba(255,255,255,.7) !important;}
body.member-dashboard-screen .md-app .md-pill{
  flex:0 0 auto !important;max-width:31% !important;min-width:0 !important;
  padding:3px 5px !important;gap:3px !important;border-radius:8px !important;
  box-shadow:none !important;background:linear-gradient(110deg,rgba(255,153,51,.17),rgba(255,255,255,.8),rgba(19,136,8,.14)) !important;
}
body.member-dashboard-screen .md-app .md-pill-icon{width:18px !important;height:18px !important;font-size:10px !important;}
body.member-dashboard-screen .md-app .md-pill-text{
  min-width:0 !important;font-size:clamp(7px,1.9vw,9px) !important;line-height:1.05 !important;
  letter-spacing:-.02em !important;overflow-wrap:normal !important;word-break:keep-all !important;
}
body.member-dashboard-screen .md-app .md-user{flex:1 1 auto !important;min-width:0 !important;}
body.member-dashboard-screen .md-app .md-user-info{flex:1 1 auto !important;min-width:0 !important;}
body.member-dashboard-screen .md-app .md-user-info h1{max-width:100% !important;min-width:0 !important;}
body.member-dashboard-screen .md-app .md-notice-marquee{
  display:inline-block !important;width:max-content !important;max-width:none !important;
  white-space:nowrap !important;animation:gsMemberNoticeMove 38s linear infinite !important;
  will-change:transform !important;
}
body.member-dashboard-screen .md-app .md-notice-content,
body.member-dashboard-screen .md-app .md-nb-text,
body.member-dashboard-screen .md-app .md-notice-body{min-width:0 !important;overflow:hidden !important;white-space:nowrap !important;}
body.member-dashboard-screen .md-app .md-notice-marquee:hover{animation-play-state:paused !important;}
@keyframes gsMemberNoticeMove{0%{transform:translateX(100%)}100%{transform:translateX(-100%)}}

/* Public latest-contribution ticker — announces activity without publishing member names or amounts. */
.home-latest-contribution{
  display:flex;align-items:center;gap:12px;margin:0 clamp(14px,3vw,32px) 16px;
  min-height:48px;padding:8px 12px;background:linear-gradient(100deg,#fff7e8,#fff 45%,#eef8ee);
  border:1px solid rgba(19,136,8,.14);border-radius:10px;box-shadow:0 2px 8px rgba(17,73,44,.08);
}
.home-latest-contribution-title{flex:0 0 auto;color:#14532d;font-weight:800;font-size:13px;white-space:nowrap;}
.home-latest-contribution-viewport{flex:1 1 auto;min-width:0;overflow:hidden;white-space:nowrap;}
.home-latest-contribution-track{display:flex;flex-flow:row nowrap;width:max-content;animation:gsContributionTicker 36s linear infinite;will-change:transform;}
.home-latest-contribution-item{flex:0 0 auto;padding:0 50px 0 18px;color:#345344;font-size:12px;font-weight:650;white-space:nowrap;}
.home-latest-contribution:hover .home-latest-contribution-track{animation-play-state:paused;}
@keyframes gsContributionTicker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(max-width:720px){
  body.member-dashboard-screen .md-app .md-pill{max-width:28% !important;padding:2px 4px !important;}
  body.member-dashboard-screen .md-app .md-pill-icon{display:none !important;}
  .home-latest-contribution{margin:0 8px 10px;padding:6px 8px;min-height:38px;gap:8px;}
  .home-latest-contribution-title{font-size:10px;}
  .home-latest-contribution-item{font-size:10px;padding-right:32px;padding-left:10px;}
}

/* V171: standalone WhatsApp conversation page, expandable member picker, mobile-first composer. */
.wa-center-page.wa-chat-only>.wa-hero,
.wa-center-page.wa-chat-only>.wa-stat-grid,
.wa-center-page.wa-chat-only>.wa-tabs,
.wa-center-page.wa-chat-only>#wa-auto,
.wa-center-page.wa-chat-only>#wa-bulk,
.wa-center-page.wa-chat-only>#wa-payment,
.wa-center-page.wa-chat-only>#wa-logs,
.wa-center-page.wa-chat-only>.wa-center-footer-note{display:none !important;}
.wa-center-page.wa-chat-only>#wa-chat{display:block!important;margin:0!important;}
.wa-member-list-toggle{
  width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;
  flex:0 0 38px!important;padding:8px!important;border:0!important;border-radius:50%!important;
  display:inline-flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;
  background:#e9f5f2!important;color:#128c7e!important;cursor:pointer!important;box-shadow:none!important;
}
.wa-member-list-toggle span{display:block!important;width:19px!important;height:2px!important;border-radius:2px!important;background:#128c7e!important;}
.wa-chat-header .wa-member-list-toggle{display:none!important;}
.wa-chat-only .wa-live-inbox{min-height:70vh!important;height:calc(100vh - 132px)!important;max-height:900px!important;}
.wa-chat-only .wa-compose{display:flex!important;align-items:flex-end!important;flex-flow:row nowrap!important;gap:8px!important;padding:8px 10px!important;}
.wa-chat-only .wa-compose textarea{
  display:block!important;flex:1 1 auto!important;width:100%!important;min-width:0!important;min-height:54px!important;max-height:112px!important;
  resize:none!important;overflow-y:auto!important;line-height:1.4!important;padding:12px 15px!important;border:0!important;border-radius:18px!important;
}
.wa-chat-only .wa-compose .btn{
  flex:0 0 auto!important;width:auto!important;min-width:58px!important;max-width:78px!important;height:40px!important;min-height:40px!important;
  padding:7px 12px!important;border-radius:22px!important;font-size:12px!important;line-height:1!important;white-space:nowrap!important;
}
.wa-chat-empty{position:relative!important;}
.wa-chat-empty .wa-member-list-toggle{position:absolute!important;top:12px!important;left:12px!important;}
@media(max-width:850px){
  .wa-chat-only .wa-live-inbox{position:relative!important;display:flex!important;flex-direction:column!important;height:calc(100dvh - 74px)!important;min-height:480px!important;max-height:none!important;}
  .wa-chat-only .wa-live-inbox .wa-inbox-sidebar{display:none!important;position:absolute!important;z-index:8!important;inset:0 auto 0 0!important;width:min(88%,360px)!important;height:100%!important;max-height:none!important;border:0!important;border-right:1px solid #dfe3e7!important;box-shadow:12px 0 28px rgba(18,45,38,.18)!important;}
  .wa-chat-only .wa-live-inbox.show-member-list .wa-inbox-sidebar{display:flex!important;}
  .wa-chat-only .wa-live-inbox .wa-inbox-chat{display:flex!important;flex:1 1 auto!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;}
  .wa-chat-only .wa-chat-header .wa-member-list-toggle{display:inline-flex!important;}
  .wa-chat-only .wa-chat-header{flex-wrap:nowrap!important;min-height:58px!important;}
  .wa-chat-only .wa-chat-header .wa-chat-status,.wa-chat-only .wa-chat-header>a.btn{display:none!important;}
  .wa-chat-only .wa-chat-header form{display:none!important;}
  .wa-chat-only .wa-message-scroll{flex:1 1 auto!important;min-height:0!important;max-height:none!important;padding:12px 8px!important;}
  .wa-chat-only .wa-compose{flex:0 0 auto!important;padding:8px!important;gap:7px!important;}
  .wa-chat-only .wa-compose textarea{min-height:58px!important;max-height:112px!important;font-size:14px!important;padding:11px 14px!important;}
  .wa-chat-only .wa-compose .btn{min-width:58px!important;max-width:68px!important;height:38px!important;min-height:38px!important;padding:6px 10px!important;font-size:12px!important;}
  .wa-chat-only .wa-chat-empty .wa-member-list-toggle{display:inline-flex!important;}
  .wa-chat-only .wa-inbox-head{min-height:56px!important;}
}
@media(max-width:380px){
 .wa-chat-only .wa-compose{gap:5px!important;padding:6px!important;}
 .wa-chat-only .wa-compose .btn{min-width:52px!important;max-width:58px!important;padding:5px 7px!important;font-size:11px!important;}
}

/* Notification/activity cards use the same clean notice treatment across roles. */
body.authenticated-page .notification-list{display:grid!important;gap:7px!important;}
body.authenticated-page .notification-list .notification-item{
  display:flex!important;align-items:center!important;gap:10px!important;margin:0!important;padding:11px 12px!important;
  border:1px solid #dcebe2!important;border-left:4px solid #16834a!important;border-radius:10px!important;
  background:linear-gradient(100deg,#fff 0%,#f8fcf9 100%)!important;box-shadow:0 2px 8px rgba(17,73,44,.07)!important;
}
body.authenticated-page .notification-list .notification-dot{flex:0 0 32px!important;width:32px!important;height:32px!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:#e6f5eb!important;}
body.authenticated-page .notification-list .notification-copy,
body.authenticated-page .notification-list .notification-main>span:nth-child(2){min-width:0!important;}
body.authenticated-page .notification-list .notification-copy b,
body.authenticated-page .notification-list .notification-main b{display:block!important;color:#14532d!important;font-weight:850!important;}
body.authenticated-page .notification-list .notification-copy small,
body.authenticated-page .notification-list .notification-main small{display:block!important;color:#52665a!important;line-height:1.4!important;}
body.authenticated-page .notification-list .notification-copy em,
body.authenticated-page .notification-list .notification-main em{display:block!important;margin-top:3px!important;color:#7b8a80!important;font-size:10px!important;font-style:normal!important;}
@media(max-width:600px){body.authenticated-page .notification-list .notification-item{padding:8px!important;gap:7px!important;}body.authenticated-page .notification-list .notification-dot{flex-basis:27px!important;width:27px!important;height:27px!important;}}

/* V172: keep member selection and refresh inside Chat Overview; compact list and contact details. */
.wa-chat-only .wa-inbox-head{min-height:46px!important;padding:7px 9px!important;}
.wa-chat-only .wa-inbox-head b{font-size:14px!important;line-height:1.1!important;}
.wa-chat-only .wa-inbox-head small{font-size:9px!important;margin-top:1px!important;}
.wa-chat-only .wa-inbox-search{padding:6px!important;}
.wa-chat-only .wa-inbox-search input{min-height:34px!important;padding:7px 10px!important;font-size:12px!important;border-radius:18px!important;}
.wa-chat-only .wa-conversation{min-height:0!important;padding:6px 8px!important;gap:8px!important;}
.wa-chat-only .wa-avatar{width:34px!important;height:34px!important;flex-basis:34px!important;font-size:13px!important;}
.wa-chat-only .wa-conversation .wa-avatar img{width:34px!important;height:34px!important;}
.wa-chat-only .wa-conv-top,.wa-chat-only .wa-conv-bottom{gap:5px!important;line-height:1.15!important;}
.wa-chat-only .wa-conv-top b{font-size:11px!important;}
.wa-chat-only .wa-conv-top small{font-size:8px!important;}
.wa-chat-only .wa-conv-bottom span{font-size:9px!important;}
.wa-chat-only .wa-chat-header{min-height:48px!important;padding:5px 8px!important;gap:6px!important;}
.wa-chat-only .wa-chat-header .wa-avatar.big{width:32px!important;height:32px!important;flex-basis:32px!important;}
.wa-chat-only .wa-chat-header .wa-avatar.big img{width:32px!important;height:32px!important;}
.wa-chat-only .wa-chat-header>div:has(>.wa-avatar){min-width:0!important;}
.wa-chat-only .wa-chat-header>div:has(>.wa-avatar) b{font-size:12px!important;line-height:1.15!important;}
.wa-chat-only .wa-chat-header>div:has(>.wa-avatar) small{font-size:9px!important;line-height:1.15!important;}
@media(max-width:850px){
 .wa-chat-only .wa-inbox-head{min-height:44px!important;padding:6px 8px!important;}
 .wa-chat-only .wa-conversation{padding:5px 8px!important;}
 .wa-chat-only .wa-chat-header{min-height:48px!important;}
}


/* V179: compact desktop density; deliberately scoped to wide desktop screens only. */
@media (min-width: 1201px) {
  body.authenticated-page { font-size: 13px !important; }
  body.authenticated-page .sidebar { width: 224px !important; padding: 10px !important; }
  body.authenticated-page .main { margin-left: 224px !important; width: calc(100% - 224px) !important; }
  body.authenticated-page .brand { min-height: 78px !important; padding: 8px 10px 12px !important; gap: 8px !important; }
  body.authenticated-page .brand img { width: 42px !important; height: 42px !important; }
  body.authenticated-page .brand b { font-size: 12px !important; }
  body.authenticated-page .brand small { font-size: 9px !important; }
  body.authenticated-page .sidebar nav { gap: 3px !important; }
  body.authenticated-page .sidebar nav a,
  body.authenticated-page .side-bottom a { min-height: 36px !important; padding: 7px 9px !important; border-radius: 9px !important; font-size: 11px !important; gap: 9px !important; }
  body.authenticated-page .sidebar-icon { width: 17px !important; height: 17px !important; }
  body.authenticated-page .topbar { height: 58px !important; min-height: 58px !important; padding: 0 20px !important; gap: 12px !important; }
  body.authenticated-page .topbar-brand { gap: 8px !important; min-width: 0 !important; }
  body.authenticated-page .topbar-brand img { width: 38px !important; height: 38px !important; }
  body.authenticated-page .topbar-brand b { font-size: 15px !important; }
  body.authenticated-page .topbar-brand small { font-size: 9px !important; }
  body.authenticated-page .page { max-width: 1680px !important; padding: 15px 20px 24px !important; }
  body.authenticated-page .page-title { gap: 10px !important; margin-bottom: 12px !important; }
  body.authenticated-page .page-title h1 { font-size: 23px !important; line-height: 1.2 !important; }
  body.authenticated-page .page-title p { font-size: 11px !important; line-height: 1.4 !important; }
  body.authenticated-page .panel,
  body.authenticated-page .pay-card { padding: 14px !important; border-radius: 13px !important; }
  body.authenticated-page .panel h2 { font-size: 15px !important; margin-bottom: 9px !important; }
  body.authenticated-page .panel-head { gap: 8px !important; padding-bottom: 8px !important; margin-bottom: 9px !important; }
  body.authenticated-page .panel-head h2 { font-size: 15px !important; }
  body.authenticated-page .grid-2,
  body.authenticated-page .grid-3,
  body.authenticated-page .kpis { gap: 10px !important; margin-bottom: 12px !important; }
  body.authenticated-page .kpi { padding: 12px !important; border-radius: 12px !important; }
  body.authenticated-page .kpi b { font-size: 20px !important; margin: 5px 0 2px !important; }
  body.authenticated-page .kpi span { font-size: 10px !important; }
  body.authenticated-page .kpi small { font-size: 9px !important; }
  body.authenticated-page .btn { min-height: 32px !important; padding: 6px 10px !important; border-radius: 8px !important; font-size: 11px !important; }
  body.authenticated-page input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]),
  body.authenticated-page select { min-height: 35px !important; padding: 6px 9px !important; border-radius: 8px !important; font-size: 12px !important; }
  body.authenticated-page textarea { min-height: 72px !important; padding: 7px 9px !important; border-radius: 8px !important; font-size: 12px !important; }
  body.authenticated-page label { margin-bottom: 4px !important; font-size: 11px !important; }
  body.authenticated-page .table-wrap { border-radius: 10px !important; }
  body.authenticated-page table { font-size: 11px !important; }
  body.authenticated-page th { padding: 8px 9px !important; font-size: 9px !important; }
  body.authenticated-page td { padding: 8px 9px !important; font-size: 11px !important; }
  body.authenticated-page .badge { padding: 3px 7px !important; font-size: 10px !important; }
  body.authenticated-page .alert { padding: 9px 11px !important; margin: 9px 0 !important; font-size: 11px !important; }
  body.authenticated-page .quick { gap: 9px !important; }
  body.authenticated-page .quick a { padding: 10px !important; border-radius: 10px !important; font-size: 11px !important; }
  body.authenticated-page .modern-dashboard-hero,
  body.authenticated-page .member-hero { padding: 17px 19px !important; margin-bottom: 12px !important; border-radius: 15px !important; }
  body.authenticated-page .modern-dashboard-hero h1,
  body.authenticated-page .member-hero h1 { font-size: 24px !important; line-height: 1.15 !important; }
  body.authenticated-page .modern-dashboard-hero p,
  body.authenticated-page .member-hero p { font-size: 12px !important; line-height: 1.4 !important; }
  body.authenticated-page .notification-list .notification-item { padding: 8px 10px !important; gap: 8px !important; }
  body.authenticated-page .notification-list .notification-dot { width: 27px !important; height: 27px !important; flex-basis: 27px !important; }

  .home-page .home-top { padding: 5px 22px !important; gap: 10px !important; font-size: 11px !important; }
  .home-page .home-top-left,
  .home-page .home-top-right { gap: 10px !important; }
  .home-page .home-nav { min-height: 60px !important; padding: 4px 22px !important; gap: 12px !important; }
  .home-page .home-brand { min-width: 0 !important; gap: 9px !important; }
  .home-page .home-brand img { width: min(var(--front-logo-size,72px),54px) !important; height: min(var(--front-logo-size,72px),54px) !important; }
  .home-page .home-brand b { font-size: min(var(--front-brand-name-size,28px),24px) !important; }
  .home-page .home-brand small { font-size: min(var(--front-brand-tagline-size,17px),13px) !important; }
  .home-page .home-links { gap: 4px !important; }
  .home-page .home-links a { padding: 6px 9px !important; font-size: min(var(--front-nav-font-size,12px),12px) !important; }
  .home-page .home-hero { min-height: 285px !important; padding: 18px 25px !important; gap: 14px !important; }
  .home-page .home-hero-copy h1 { font-size: clamp(26px,2.5vw,36px) !important; margin-bottom: 10px !important; }
  .home-page .home-hero-copy p { max-width: 350px !important; padding: 9px 16px !important; font-size: 18px !important; }
  .home-page .home-login-card { max-width: 340px !important; padding: 12px !important; border-radius: 12px !important; }
  .home-page .home-login-card h2 { font-size: 16px !important; margin-bottom: 8px !important; }
  .home-page .home-login-card a { padding: 9px 11px !important; margin: 7px 0 !important; font-size: 14px !important; }
  .home-page .home-login-card h3 { margin: 10px 0 5px !important; padding: 7px !important; font-size: 13px !important; }
  .home-page .home-login-card li { padding: 3px 0 !important; font-size: 11px !important; }
  .home-page .home-section-grid { gap: 12px !important; padding: 14px 22px !important; }
  .home-page .home-panel-head { padding: 8px 12px !important; }
  .home-page .home-panel-head h2 { font-size: 17px !important; }
  .home-page .home-member-photo { height: 110px !important; }
  .home-page .home-member b { font-size: 13px !important; padding: 6px 4px 1px !important; }
  .home-page .home-features { margin: 0 22px 12px !important; padding: 10px 14px !important; }
  .home-page .home-feature { font-size: 12px !important; }
  .home-page .home-feature span { font-size: 22px !important; }
  .home-page .home-footer { padding: 12px 22px !important; font-size: 12px !important; }

  body.login-page .login-wrap { padding: 16px !important; }
  body.login-page .login-card { width: min(400px,100%) !important; padding: 22px !important; border-radius: 16px !important; }
  body.login-page .login-logo { width: 82px !important; height: 82px !important; margin-bottom: 10px !important; }
}


/* V185: render shared dashboard header artwork clearly on desktop and mobile. */
body.authenticated-page .topbar-with-artwork{position:relative!important;isolation:isolate!important;}
body.authenticated-page .topbar-with-artwork>.topbar-artwork{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;opacity:1!important;filter:none!important;z-index:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;pointer-events:none!important;}
body.authenticated-page .topbar-with-artwork>.topbar-artwork[style*="object-fit:contain"]{object-fit:contain!important;}
body.authenticated-page .topbar-with-artwork>.topbar-artwork[style*="object-fit:auto"]{object-fit:contain!important;}
body.authenticated-page .topbar-with-artwork>.menu-toggle,
body.authenticated-page .topbar-with-artwork>.topbar-brand,
body.authenticated-page .topbar-with-artwork>.mobile-brand,
body.authenticated-page .topbar-with-artwork>.top-actions{position:relative!important;z-index:1!important;}
@media(max-width:900px){
  body.authenticated-page .topbar-with-artwork>.topbar-artwork{opacity:1!important;filter:none!important;}
}

/* V185: compact responsive header art stays above header paint and below readable controls. */
body.authenticated-page .topbar-with-artwork{overflow:visible!important;background-color:transparent!important;z-index:5000!important;}
body.authenticated-page .topbar-with-artwork>.topbar-artwork{object-fit:cover!important;object-position:center 48%!important;}
body.authenticated-page .topbar-with-artwork>.menu-toggle,
body.authenticated-page .topbar-with-artwork>.topbar-brand,
body.authenticated-page .topbar-with-artwork>.mobile-brand,
body.authenticated-page .topbar-with-artwork>.top-actions{z-index:2!important;}
@media(max-width:900px){body.authenticated-page .topbar-with-artwork>.topbar-artwork{opacity:1!important;}}

/* V187: topbar image stays behind controls; profile menu escapes the header and overlays content. */
body.authenticated-page .topbar-with-artwork{overflow:visible!important;z-index:5000!important;}
body.authenticated-page .topbar-with-artwork .top-actions,
body.authenticated-page .topbar-with-artwork .top-user{position:relative!important;z-index:5001!important;overflow:visible!important;}
body.authenticated-page .topbar-with-artwork .profile-menu{position:fixed!important;top:70px!important;right:12px!important;left:auto!important;z-index:100000!important;width:min(300px,calc(100vw - 24px))!important;max-height:calc(100vh - 84px)!important;overflow-y:auto!important;}
@media(max-width:850px){body.authenticated-page .topbar-with-artwork .profile-menu{top:62px!important;right:10px!important;width:min(280px,calc(100vw - 20px))!important;}}
/* Keep the front-page notice and contribution tickers moving even when the pointer rests over them. */
.home-page .home-latest-contribution:hover .home-latest-contribution-track{animation-play-state:running!important;}
.home-page .home-notice-ticker .home-notice-ticker-track{animation-play-state:running!important;}

/* V121 — Staff reminders, mobile page-title flow, and account update placement. */
.reminder-page-title{position:relative!important;z-index:1!important;}
.account-update-message{margin:0 0 14px!important;}
@media(max-width:850px){
  .reminder-page-title{display:block!important;margin:0 0 14px!important;padding:0!important;}
  .reminder-page-title>div{min-width:0!important;}
  .reminder-page-title h1{font-size:24px!important;line-height:1.18!important;margin:4px 0 7px!important;}
  .reminder-page-title p{display:block!important;position:static!important;max-width:100%!important;margin:0 0 12px!important;line-height:1.45!important;white-space:normal!important;overflow:visible!important;}
  .reminder-page-title>.btn{position:static!important;display:inline-flex!important;margin:4px 0 2px!important;}
  .account-update-message{position:static!important;display:block!important;width:100%!important;margin:0 0 14px!important;clear:both!important;}
  .gs-reminder-table-wrap,.emi-reminder-table-wrap{margin-top:8px!important;}
  .gs-reminder-table-wrap table,.emi-reminder-table-wrap table{min-width:760px!important;}
}

/* V123 — organized member lists, Staff permissions, and compact reminder layout. */
.account-password-field{min-width:0;}
.account-password-field .password-field-wrap{display:flex!important;align-items:stretch!important;gap:8px!important;min-height:44px;}
.account-password-field .password-field-wrap input{height:44px!important;min-width:0!important;flex:1 1 auto!important;}
.account-password-field .password-toggle{height:44px!important;min-width:70px!important;padding:8px 12px!important;flex:0 0 70px!important;}
.staff-permissions-box{padding:14px!important;border:1px solid #dce8f5!important;border-radius:12px!important;background:#f7fbff!important;}
.form-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;color:#1b3152;}
.form-section-heading small{color:#718096;font-size:11px;font-weight:500;}
.staff-permission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
.permission-option{display:flex!important;align-items:center!important;gap:7px!important;margin:0!important;padding:9px 10px!important;border:1px solid #e1eaf4!important;border-radius:9px!important;background:#fff!important;font-size:12px!important;color:#30445f!important;cursor:pointer;}
.permission-option input{width:auto!important;flex:0 0 auto!important;}
.all-members-account-panel{grid-column:1/-1;}
.all-members-account-table{min-width:760px;}
.all-members-account-table th,.all-members-account-table td{padding:8px 9px;}
.member-directory-panel .member-directory-simple{min-width:0;width:100%;}
.member-directory-panel .member-directory-simple th,.member-directory-panel .member-directory-simple td{padding:8px 9px;}
.member-directory-panel .member-view-only-btn{white-space:nowrap;}
.reminder-help-panel{clear:both!important;order:3!important;margin-top:14px!important;}
.reminder-help-panel h2{margin-bottom:9px!important;}
.gs-reminder-table tbody tr{min-height:0!important;}
.gs-reminder-table tbody td{line-height:1.2!important;}
@media(max-width:850px){
  .staff-permission-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
  .form-section-heading{display:block;}
  .form-section-heading small{display:block;margin-top:4px;}
  .all-members-account-panel{grid-column:auto;}
  .all-members-account-table{min-width:0!important;}
  .all-members-account-table thead,.member-directory-panel .member-directory-simple thead{display:none!important;}
  .all-members-account-table,.all-members-account-table tbody,.member-directory-panel .member-directory-simple,.member-directory-panel .member-directory-simple tbody{display:block!important;width:100%!important;}
  .all-members-account-table tbody tr,.member-directory-panel .member-directory-simple tbody tr{display:grid!important;grid-template-columns:1fr 1fr!important;gap:0 10px!important;margin:0 0 7px!important;padding:7px!important;border:1px solid #e2eaf2!important;border-radius:9px!important;background:#fff!important;}
  .all-members-account-table tbody td,.member-directory-panel .member-directory-simple tbody td{display:flex!important;flex-direction:column!important;justify-content:center!important;min-width:0!important;padding:5px 4px!important;border:0!important;border-bottom:1px solid #edf1f5!important;font-size:11px!important;overflow-wrap:anywhere!important;}
  .all-members-account-table tbody td:nth-child(1),.member-directory-panel .member-directory-simple tbody td:nth-child(1){grid-column:1/-1!important;font-size:13px!important;}
  .all-members-account-table tbody td:nth-child(1)::before{content:'MEMBER';}
  .all-members-account-table tbody td:nth-child(2)::before{content:'MEMBER ID';}
  .all-members-account-table tbody td:nth-child(3)::before{content:'MOBILE';}
  .all-members-account-table tbody td:nth-child(4)::before{content:'STATUS';}
  .all-members-account-table tbody td:nth-child(5)::before{content:'LOGIN';}
  .all-members-account-table tbody td:nth-child(6){grid-column:1/-1;border-bottom:0!important;padding-top:7px!important;}
  .all-members-account-table tbody td:nth-child(6)::before{content:'ACTION';}
  .member-directory-panel .member-directory-simple tbody td:nth-child(1)::before{content:'MEMBER';}
  .member-directory-panel .member-directory-simple tbody td:nth-child(2)::before{content:'MEMBER ID';}
  .member-directory-panel .member-directory-simple tbody td:nth-child(3)::before{content:'STATUS';}
  .member-directory-panel .member-directory-simple tbody td:nth-child(4){grid-column:1/-1;border-bottom:0!important;}
  .member-directory-panel .member-directory-simple tbody td:nth-child(4)::before{content:'ACTION';}
  .all-members-account-table tbody td::before,.member-directory-panel .member-directory-simple tbody td::before{display:block!important;color:#7b8ba0!important;font-size:9px!important;font-weight:800!important;letter-spacing:.05em!important;margin-bottom:2px!important;}
  .all-members-account-table tbody td:nth-child(1) b{font-size:13px!important;}
  .reminder-help-panel{margin-top:10px!important;}
  .reminder-help-panel .rules>div{padding:6px 0!important;line-height:1.25!important;}
  .gs-reminder-table tbody tr{margin-bottom:4px!important;}
  .gs-reminder-table tbody td{padding:3px!important;}
}
@media(max-width:480px){
  .staff-permission-grid{grid-template-columns:1fr;}
  .account-password-field .password-field-wrap{gap:6px!important;}
  .account-password-field .password-toggle{min-width:64px!important;flex-basis:64px!important;padding-left:7px!important;padding-right:7px!important;}
}

/* ========== Modern Member List (screenshot match) ========== */
.ml-page{padding:0 2px 24px}
.ml-header{display:flex;align-items:center;justify-content:space-between;background:linear-gradient(135deg,#0b5ed7 0%,#084298 55%,#052c65 100%);color:#fff;border-radius:14px;padding:16px 20px;margin-bottom:16px;box-shadow:0 10px 28px rgba(8,66,152,.22)}
.ml-header-left{display:flex;align-items:center;gap:14px}
.ml-header-icon{width:46px;height:46px;border-radius:12px;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;font-size:22px}
.ml-header h1{margin:0;font-size:20px;font-weight:800;letter-spacing:.2px}
.ml-header p{margin:2px 0 0;font-size:12px;opacity:.9}
.ml-btn-add{display:inline-flex;align-items:center;gap:6px;background:#fff;color:#0b5ed7;font-weight:800;font-size:13px;padding:10px 16px;border-radius:10px;border:0;box-shadow:0 4px 14px rgba(0,0,0,.12);transition:.15s}
.ml-btn-add:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(0,0,0,.16)}

.ml-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin-bottom:16px;box-shadow:0 4px 16px rgba(15,40,80,.04)}
.ml-search-wrap{position:relative;flex:1 1 220px;min-width:180px}
.ml-search-wrap input{padding-left:36px;height:40px;border-radius:10px}
.ml-search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);opacity:.55;font-size:14px;pointer-events:none}
.ml-btn-search{background:#0b5ed7;color:#fff;border:0;border-radius:10px;padding:0 16px;height:40px;font-weight:800;cursor:pointer}
.ml-filters select{height:40px;border-radius:10px;border:1px solid #dbe2ec;padding:0 12px;min-width:120px;background:#fff}
.ml-btn-export{display:inline-flex;align-items:center;gap:6px;background:#0b2e66;color:#fff;border-radius:10px;padding:0 14px;height:40px;font-weight:800;font-size:13px;white-space:nowrap}

.ml-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}
.ml-stat{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px;box-shadow:0 4px 16px rgba(15,40,80,.04)}
.ml-stat-icon{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
.ml-stat.blue .ml-stat-icon{background:#e8f1ff;color:#0b5ed7}
.ml-stat.green .ml-stat-icon{background:#e6f8ef;color:#13b86b}
.ml-stat.orange .ml-stat-icon{background:#fff4e5;color:#f59e0b}
.ml-stat.purple .ml-stat-icon{background:#f0eaff;color:#7056df}
.ml-stat span{display:block;font-size:12px;color:var(--muted);font-weight:700}
.ml-stat b{display:block;font-size:20px;font-weight:900;color:var(--text);margin-top:2px}

.ml-table-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 6px 22px rgba(15,40,80,.05)}
.ml-table{width:100%;border-collapse:collapse;font-size:13px}
.ml-table thead th{background:#0b2e66;color:#fff;font-weight:800;text-align:left;padding:12px 14px;white-space:nowrap}
.ml-table tbody td{padding:12px 14px;border-bottom:1px solid #eef2f7;vertical-align:middle}
.ml-table tbody tr:hover{background:#f7faff}
.ml-photo{width:36px;height:36px;border-radius:8px;object-fit:cover;background:#eef2f7;display:block}
.ml-photo.placeholder{display:flex;align-items:center;justify-content:center;font-size:16px;color:#8a97ad}
.ml-code{font-weight:800;color:#0b5ed7}
.ml-gender{display:inline-block;padding:3px 10px;border-radius:999px;font-size:11px;font-weight:800}
.ml-gender.male{background:#e8f1ff;color:#0b5ed7}
.ml-gender.female{background:#fde8f0;color:#d94f9f}
.ml-gender.other{background:#f0eaff;color:#7056df}
.ml-status{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:999px;font-size:11px;font-weight:800}
.ml-status.active{background:#e6f8ef;color:#0d9b57}
.ml-status.inactive{background:#fff4e5;color:#c47a00}
.ml-status.closed{background:#fde8ec;color:#c0392b}
.ml-actions{display:flex;flex-wrap:wrap;gap:6px}
.ml-act{display:inline-flex;align-items:center;gap:3px;padding:5px 9px;border-radius:8px;font-size:11px;font-weight:800;border:1px solid transparent}
.ml-act.view{background:#e8f1ff;color:#0b5ed7}
.ml-act.edit{background:#eef2f7;color:#3d4f6f}
.ml-act.delete{background:#fde8ec;color:#c0392b}
.ml-empty{text-align:center;padding:28px 14px!important;color:var(--muted);font-weight:700}
.ml-footer{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-top:1px solid #eef2f7;font-size:12px;color:var(--muted);font-weight:700}
.ml-pager{display:flex;gap:6px}
.ml-pager button{min-width:34px;height:32px;border-radius:8px;border:1px solid #dbe2ec;background:#fff;font-weight:800;cursor:pointer}
.ml-pager button.active{background:#0b5ed7;color:#fff;border-color:#0b5ed7}
.ml-pager button:disabled{opacity:.45;cursor:not-allowed}

@media(max-width:1100px){
  .ml-stats{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:700px){
  .ml-header{flex-direction:column;align-items:flex-start;gap:12px}
  .ml-stats{grid-template-columns:1fr 1fr}
  .ml-filters{flex-direction:column;align-items:stretch}
  .ml-btn-search,.ml-btn-export,.ml-filters select{width:100%}
  /* Keep member row as ONE horizontal line (desktop style) */
  .ml-table{font-size:11px}
  .ml-actions{flex-direction:row!important;flex-wrap:nowrap!important;gap:4px!important}
}

/* ========== Modern Member Details (md-*) ========== */
.md-page{max-width:1100px;margin:0 auto;padding-bottom:20px}
.md-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.md-back{font-weight:800;color:#0b5ed7;font-size:14px}
.md-topbar-actions{display:flex;gap:8px;flex-wrap:wrap}
.md-btn{display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border-radius:10px;font-weight:800;font-size:13px;border:1px solid transparent}
.md-btn.ghost{background:#fff;border-color:#dbe2ec;color:#3d4f6f}
.md-btn.primary{background:#0b5ed7;color:#fff}

.md-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(135deg,#0b5ed7 0%,#084298 55%,#052c65 100%);color:#fff;border-radius:18px;padding:22px 24px;margin-bottom:14px;box-shadow:0 12px 32px rgba(8,66,152,.25);flex-wrap:wrap}
.md-hero-left{display:flex;align-items:center;gap:18px;min-width:0}
.md-avatar{width:96px;height:96px;border-radius:22px;object-fit:cover;border:4px solid rgba(255,255,255,.85);box-shadow:0 8px 24px rgba(0,0,0,.18);background:#eaf2ff;flex:0 0 auto}
.md-avatar.placeholder{display:grid;place-items:center;font-size:36px;font-weight:900;color:#176bd7;background:#e8f1ff}
.md-identity{min-width:0}
.md-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.md-chip{display:inline-flex;padding:4px 10px;border-radius:999px;font-size:11px;font-weight:800;background:rgba(255,255,255,.18)}
.md-chip.active{background:#13b86b}
.md-chip.closed{background:#e63d55}
.md-chip.inactive{background:#f59e0b;color:#1a1a1a}
.md-chip.gender{background:rgba(255,255,255,.22)}
.md-identity h1{margin:0 0 6px;font-size:26px;font-weight:900;line-height:1.15}
.md-meta{display:flex;flex-wrap:wrap;gap:12px;font-size:13px;opacity:.95;font-weight:600}
.md-code{background:rgba(255,255,255,.18);padding:2px 8px;border-radius:6px;font-weight:800}
.md-submeta{display:flex;flex-wrap:wrap;gap:14px;margin-top:8px;font-size:12px;opacity:.85;font-weight:600}
.md-hero-deposit{min-width:180px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);border-radius:14px;padding:16px 18px;text-align:right}
.md-hero-deposit span,.md-hero-deposit small{display:block;font-size:12px;opacity:.9;font-weight:700}
.md-hero-deposit strong{display:block;font-size:26px;font-weight:900;margin:4px 0}

.md-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin-bottom:16px}
.md-act,.md-act-form .md-act{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 10px;border-radius:12px;border:1px solid #e5eaf2;background:#fff;text-decoration:none;color:#172a46;font-weight:800;font-size:13px;box-shadow:0 4px 14px rgba(15,40,80,.05);transition:.15s;cursor:pointer;width:100%}
.md-act span{font-size:18px}
.md-act:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(15,40,80,.09)}
.md-act.green{border-color:#ccefdc;background:#f2fff7;color:#087647}
.md-act.blue{border-color:#cfe2ff;background:#f2f7ff;color:#176bd7}
.md-act.purple{border-color:#dfd4ff;background:#faf7ff;color:#7042cf}
.md-act.amber{border-color:#ffe4b8;background:#fffaf0;color:#b86e00}
.md-act.red{border-color:#ffd7df;background:#fff5f7;color:#c72845}
.md-act.delete{border-color:#ffd0d8;background:#fff0f3;color:#c0392b}
.md-act-form{margin:0}

.md-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}
.md-stat{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px;box-shadow:0 4px 16px rgba(15,40,80,.04)}
.md-stat-icon{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:900;flex-shrink:0}
.md-stat.blue .md-stat-icon{background:#e8f1ff;color:#0b5ed7}
.md-stat.green .md-stat-icon{background:#e6f8ef;color:#13b86b}
.md-stat.purple .md-stat-icon{background:#f0eaff;color:#7056df}
.md-stat.orange .md-stat-icon{background:#fff4e5;color:#f59e0b}
.md-stat span{display:block;font-size:11px;color:var(--muted);font-weight:700}
.md-stat b{display:block;font-size:16px;font-weight:900;margin-top:2px;color:var(--text)}

.md-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.md-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 18px;box-shadow:0 4px 16px rgba(15,40,80,.04)}
.md-card-head{display:flex;align-items:center;gap:10px;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid #eef2f7}
.md-card-icon{width:32px;height:32px;border-radius:9px;background:#eef4ff;display:grid;place-items:center;font-size:15px}
.md-card-head h2{margin:0;font-size:15px;font-weight:800;color:#10213c}
.md-detail-list{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px}
.md-detail-list .wide{grid-column:1 / -1}
.md-detail-list small{display:block;font-size:11px;color:var(--muted);font-weight:700;margin-bottom:2px}
.md-detail-list b{font-size:13px;font-weight:800;color:#12213b;word-break:break-word}

.md-docs{display:flex;flex-direction:column;gap:10px}
.md-doc{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;border:1px solid #e5eaf2;background:#f8fafc;text-decoration:none;color:inherit}
.md-doc span{font-size:22px}
.md-doc b{display:block;font-size:13px;font-weight:800}
.md-doc small{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.md-doc strong{margin-left:auto;color:#8a97ad}
.md-doc.secondary{background:#f0f5ff;border-color:#d6e4ff}
.md-doc.empty{opacity:.75}
.md-signature{margin-top:8px;padding:12px;border:1px dashed #dbe2ec;border-radius:12px;background:#fafbfc}
.md-signature small{display:block;font-size:11px;color:var(--muted);font-weight:700;margin-bottom:8px}
.md-signature img{max-height:64px;max-width:100%;object-fit:contain}

@media(max-width:900px){
  .md-stats{grid-template-columns:1fr 1fr}
  .md-grid{grid-template-columns:1fr}
  .md-hero{flex-direction:column;align-items:flex-start}
  .md-hero-deposit{text-align:left;width:100%}
}
@media(max-width:560px){
  .md-stats{grid-template-columns:1fr}
  .md-detail-list{grid-template-columns:1fr}
  .md-hero-left{flex-direction:column;align-items:flex-start}
}

/* ========== Add Member Modal (Member List) ========== */
body.ml-modal-open{overflow:hidden}
.ml-modal-backdrop{position:fixed;inset:0;background:rgba(10,22,48,.45);backdrop-filter:blur(3px);z-index:80;opacity:0;visibility:hidden;transition:.2s}
.ml-modal-backdrop.show{opacity:1;visibility:visible}
.ml-modal{position:fixed;z-index:90;left:50%;top:50%;transform:translate(-50%,-48%) scale(.96);width:min(640px,calc(100vw - 24px));max-height:min(92vh,820px);background:#fff;border-radius:18px;box-shadow:0 24px 60px rgba(8,30,70,.28);display:flex;flex-direction:column;opacity:0;visibility:hidden;transition:.22s}
.ml-modal.show{opacity:1;visibility:visible;transform:translate(-50%,-50%) scale(1)}
.ml-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 20px 12px;border-bottom:1px solid #eef2f7;background:linear-gradient(180deg,#f7faff,#fff)}
.ml-modal-head h2{margin:0;font-size:18px;font-weight:900;color:#10213c}
.ml-modal-head p{margin:4px 0 0;font-size:12px;color:#6d7b91;font-weight:600}
.ml-modal-close{width:36px;height:36px;border:0;border-radius:10px;background:#eef2f7;color:#3d4f6f;font-size:22px;line-height:1;cursor:pointer;flex-shrink:0}
.ml-modal-close:hover{background:#e2e8f0}
.ml-modal-body{padding:16px 20px 8px;overflow-y:auto;flex:1;min-height:0}
.ml-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px}
.ml-form-grid label{display:block;font-size:12px;font-weight:800;color:#56657d;margin:0 0 6px}
.ml-form-grid label .req{color:#e63d55}
.ml-form-grid label small{font-weight:600;color:#8a97ad}
.ml-form-grid input,.ml-form-grid select,.ml-form-grid textarea{width:100%;border:1px solid #dbe2ec;background:#fff;border-radius:10px;padding:11px 12px;outline:0;font:inherit}
.ml-form-grid input:focus,.ml-form-grid select:focus,.ml-form-grid textarea:focus{border-color:#73a9ff;box-shadow:0 0 0 3px #eaf2ff}
.ml-form-section{margin:14px 0 10px;font-size:12px;font-weight:900;color:#0b2e66;letter-spacing:.3px;text-transform:uppercase}
.ml-modal-foot{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px 18px;border-top:1px solid #eef2f7;background:#fafbfd}
.ml-btn-cancel{height:42px;padding:0 16px;border-radius:10px;border:1px solid #dbe2ec;background:#fff;font-weight:800;cursor:pointer;color:#3d4f6f}
.ml-btn-submit{height:42px;padding:0 18px;border-radius:10px;border:0;background:#0b5ed7;color:#fff;font-weight:800;cursor:pointer;box-shadow:0 6px 16px rgba(11,94,215,.25)}
.ml-btn-submit:hover{background:#0a53c2}

/* Mobile: Add Member sheet + compact ONE-LINE tables (desktop-like) */
@media(max-width:700px){
  .ml-modal{left:0;right:0;top:auto;bottom:0;width:100%;max-height:92vh;transform:translateY(100%);border-radius:18px 18px 0 0;box-shadow:0 -12px 40px rgba(8,30,70,.2)}
  .ml-modal.show{transform:translateY(0);left:0;top:auto}
  .ml-form-grid{grid-template-columns:1fr}
  .ml-modal-foot{position:sticky;bottom:0;padding-bottom:max(14px,env(safe-area-inset-bottom))}
  .ml-btn-cancel,.ml-btn-submit{flex:1}
  .ml-header{padding:12px 12px}
  .ml-header h1{font-size:16px}
  .ml-btn-add{width:100%;justify-content:center}
  .ml-filters{padding:10px;gap:8px}
  .ml-search-wrap{flex:1 1 100%}
  .ml-table-card{border-radius:12px}
  .ml-footer{flex-wrap:wrap;gap:8px}
  .ml-pager{justify-content:center}
}

/* ========== Member Available Balance (ml style) ========== */
.mb-stats{grid-template-columns:repeat(5,1fr)}
.mb-stat-wide{grid-column:span 1}
.mb-sub{font-size:11px;color:var(--muted);margin-top:3px;font-weight:600}
.mb-available{color:#0b5ed7;font-weight:900}
.mb-table td{vertical-align:middle}

@media(max-width:1100px){
  .mb-stats{grid-template-columns:repeat(2,1fr)}
  .mb-stat-wide{grid-column:span 2}
}
@media(max-width:700px){
  .mb-stats{grid-template-columns:1fr 1fr}
  .mb-stat-wide{grid-column:span 2}
}

/* ===== Desktop-style table: ONE member = ONE row (mobile + desktop) ===== */
.ml-table-card .table-wrap,
.mb-page .table-wrap{
  overflow-x:auto!important;
  -webkit-overflow-scrolling:touch;
  width:100%;
}
table.ml-table,
table.mb-table,
.ml-table,
.mb-table{
  display:table!important;
  width:100%!important;
  border-collapse:collapse!important;
  white-space:nowrap!important;
  table-layout:auto!important;
}
.ml-table thead,
.mb-table thead{
  display:table-header-group!important;
}
.ml-table tbody,
.mb-table tbody{
  display:table-row-group!important;
}
.ml-table tr,
.mb-table tr{
  display:table-row!important;
  width:auto!important;
  float:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  grid-template-columns:none!important;
}
.ml-table th,
.ml-table td,
.mb-table th,
.mb-table td{
  display:table-cell!important;
  width:auto!important;
  float:none!important;
  flex-direction:row!important;
  grid-column:auto!important;
  border-bottom:1px solid #eef2f7!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
}
.ml-table td::before,
.mb-table td::before{
  content:none!important;
  display:none!important;
}
.ml-table .ml-photo,
.ml-table .ml-photo.placeholder{
  display:inline-flex!important;
  width:32px!important;
  height:32px!important;
  border-radius:7px!important;
  vertical-align:middle;
}
.ml-table .ml-actions,
.mb-table .ml-actions{
  display:inline-flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  gap:4px!important;
  margin:0!important;
}

@media(max-width:900px){
  table.ml-table,
  table.mb-table,
  .ml-table,
  .mb-table{
    font-size:11px!important;
    min-width:860px!important;
  }
  .ml-table thead th,
  .mb-table thead th{
    padding:9px 8px!important;
    font-size:10px!important;
  }
  .ml-table tbody td,
  .mb-table tbody td{
    padding:8px 8px!important;
  }
  .ml-gender,
  .ml-status{
    padding:2px 7px!important;
    font-size:10px!important;
  }
  .ml-act{
    padding:4px 6px!important;
    font-size:10px!important;
    border-radius:6px!important;
  }
  .mb-sub{font-size:10px;margin-top:1px}
}

@media(max-width:420px){
  table.ml-table,
  table.mb-table,
  .ml-table,
  .mb-table{
    font-size:10px!important;
    min-width:800px!important;
  }
  .ml-table thead th,
  .mb-table thead th,
  .ml-table tbody td,
  .mb-table tbody td{
    padding:6px 6px!important;
  }
  .ml-table .ml-photo,
  .ml-table .ml-photo.placeholder{
    width:26px!important;
    height:26px!important;
  }
}

/* ========== WhatsApp Overview mobile parity ========== */
@media(max-width:700px){
  .wa-center-page .wa-stat-grid{grid-template-columns:1fr 1fr!important;gap:10px}
  .wa-center-page .wa-stat{padding:12px 14px;border-radius:14px}
  .wa-center-page .wa-stat b{font-size:20px}
  .wa-center-page .wa-tabs{display:grid!important;grid-template-columns:1fr 1fr;gap:8px}
  .wa-center-page .wa-tabs a{min-width:0!important;flex:none!important;font-size:12px;padding:10px 8px!important;text-align:center}
  .wa-center-page .wa-content{display:block!important}
  .wa-center-page .wa-chat-layout{min-height:70vh}
  .wa-center-page .wa-conversation{padding:12px}
  .wa-center-page .wa-message-scroll{max-height:50vh}
  .wa-center-page .wa-compose{flex-direction:column;align-items:stretch}
  .wa-center-page .wa-compose textarea{min-height:72px;width:100%}
  .wa-center-page .wa-compose button,.wa-center-page .wa-attach-btn{width:100%}
}

/* ========== Payment Checkout modern mobile ========== */
@media(max-width:600px){
  .pb-checkout{padding:0 0 24px}
  .pb-heading{flex-direction:column;align-items:flex-start;gap:8px}
  .pb-lock{align-self:flex-start}
  .pb-total-card{border-radius:20px;padding:20px 16px}
  .pb-amount{font-size:40px}
  .pb-breakdown{grid-template-columns:1fr;gap:10px}
  .pb-breakdown>div{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.12)}
  .pb-breakdown>div:last-child{border-bottom:0}
  .pb-breakdown small{margin:0}
  .pb-method{flex-wrap:wrap}
  .pb-recommended{margin-left:auto}
  .pb-upi-button{width:100%;justify-content:center;padding:14px 16px;font-size:15px}
  .pb-qr-area{flex-direction:column;align-items:center;text-align:center}
  .pb-qr-frame{width:160px;height:160px;flex-basis:160px}
  .pb-submit-button,.pb-outline-button{min-height:48px;font-size:14px}
  .pb-form input{min-height:46px;font-size:16px}
  .pb-trust{flex-direction:row}
}

/* Shared content area on mobile: less cramped */
@media(max-width:700px){
  .content,.main-content,.page-content{padding-left:10px!important;padding-right:10px!important}
  .page-title h1{font-size:22px}
  .kpis{grid-template-columns:1fr 1fr!important;gap:10px}
  .kpi{padding:12px!important}
  .panel{border-radius:14px}
  .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
}

/* ========== Member Details cards + Financial Summary + Dashboard mobile fit ========== */
.md-page{max-width:1100px;margin:0 auto;padding:0 2px 20px;box-sizing:border-box}
.md-page *{box-sizing:border-box}
.md-hero{flex-wrap:wrap}
.md-actions{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}
.md-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.md-card{min-width:0}
.md-detail-list{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px}
.md-detail-list .wide{grid-column:1 / -1}
.md-detail-list b{overflow-wrap:anywhere;word-break:break-word}

@media(max-width:900px){
  .md-grid{grid-template-columns:1fr!important}
  .md-stats{grid-template-columns:1fr 1fr!important}
  .md-hero{padding:16px!important}
  .md-hero-left{width:100%}
  .md-hero-deposit{width:100%;text-align:left!important}
  .md-identity h1{font-size:22px!important}
  .md-avatar{width:72px!important;height:72px!important;border-radius:18px!important}
  .md-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .md-act,.md-act-form .md-act{min-height:44px;font-size:12px!important;padding:10px 8px!important}
  .md-card{padding:14px!important;border-radius:14px!important}
  .md-detail-list{grid-template-columns:1fr 1fr!important;gap:10px!important}
  .md-detail-list b{font-size:12px!important}
  .md-docs .md-doc{padding:12px!important}
}

@media(max-width:560px){
  .md-stats{grid-template-columns:1fr!important}
  .md-detail-list{grid-template-columns:1fr!important}
  .md-meta,.md-submeta{gap:8px!important;font-size:12px!important}
  .md-topbar{gap:8px}
  .md-btn{padding:8px 12px;font-size:12px}
}

/* My Financial Summary */
.mfs-page{padding-bottom:24px}
.mfs-stats{grid-template-columns:repeat(4,1fr)}
.mfs-grid{margin:0 0 16px}
.mfs-society{
  margin-top:8px;
  padding:18px;
  border-radius:18px;
  background:linear-gradient(135deg,#0b2545,#145b75);
  color:#fff;
  box-shadow:0 12px 30px rgba(15,40,70,.16);
}
.mfs-society-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.mfs-eyebrow{font-size:11px;letter-spacing:2px;opacity:.78;font-weight:800}
.mfs-society-head h2{margin:5px 0;color:#fff;font-size:22px}
.mfs-society-head p{margin:0;opacity:.8;font-size:13px}
.mfs-month{padding:7px 11px;border:1px solid rgba(255,255,255,.35);border-radius:20px;font-size:12px;white-space:nowrap}
.mfs-society-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.mfs-society-card{padding:14px;border-radius:13px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);min-width:0}
.mfs-society-card small{opacity:.8;font-size:11px;font-weight:700}
.mfs-num{font-size:22px;font-weight:800;margin-top:7px;line-height:1.2;overflow-wrap:anywhere}
.mfs-sub{display:block;opacity:.72;font-size:11px;margin-top:4px}
.mfs-note{font-size:11px;opacity:.7;margin:13px 0 0}

@media(max-width:900px){
  .mfs-stats{grid-template-columns:1fr 1fr!important}
  .mfs-society-grid{grid-template-columns:1fr 1fr!important}
  .mfs-num{font-size:18px!important}
}
@media(max-width:560px){
  .mfs-stats{grid-template-columns:1fr!important}
  .mfs-society{padding:14px!important;border-radius:14px!important}
  .mfs-society-head h2{font-size:18px!important}
  .mfs-society-grid{grid-template-columns:1fr!important}
}

/* Member dashboard mobile fit (md-app) */
@media(max-width:900px){
  body.member-dashboard-screen .page,
  body.role-member .page{
    padding-left:10px!important;
    padding-right:10px!important;
    padding-bottom:96px!important;
  }
  .md-app{
    max-width:100%!important;
    width:100%!important;
    margin:0 auto!important;
    padding:10px 0 16px!important;
  }
  .md-app .md-welcome{
    padding:12px!important;
    gap:12px!important;
    border-radius:16px!important;
  }
  .md-app .md-user{gap:12px!important;min-width:0}
  .md-app .md-avatar{
    width:64px!important;
    height:64px!important;
    min-width:64px!important;
  }
  .md-app .md-user-info h1{font-size:20px!important}
  .md-app .md-user-info .md-member-id{font-size:12px!important}
  .md-app .md-kpis{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
  }
  .md-app .md-kpi{
    min-width:0!important;
    padding:12px!important;
    border-radius:14px!important;
  }
  .md-app .md-kpi-body b{
    font-size:16px!important;
    overflow-wrap:anywhere;
  }
  .md-app .md-quick-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .md-app .md-quick-item span{font-size:11px!important;line-height:1.25}
  .md-app .md-notice{
    border-radius:14px!important;
    padding:10px 12px!important;
  }
  .md-app .md-activity-list{gap:8px!important}
}
@media(max-width:420px){
  .md-app .md-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .md-app .md-kpis{gap:8px!important}
}

/* ========== Member dashboard notice SCROLLING ticker ========== */
.md-notice-track,
.md-notice-track-desktop{
  overflow:hidden;
  width:100%;
  min-width:0;
  white-space:nowrap;
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
}
.md-notice-marquee-run{
  display:inline-flex;
  gap:48px;
  width:max-content;
  animation:mdNoticeScroll 22s linear infinite;
  will-change:transform;
}
.md-notice-marquee-run span{
  display:inline-block;
  white-space:nowrap;
  font-size:12px;
  font-weight:700;
  color:#1e4a36;
}
.md-notice-banner .md-notice-marquee-run span{color:#0d3d2a}
@keyframes mdNoticeScroll{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}
.md-notice .md-notice-body{display:none!important} /* old clamp body disabled */
.md-notice{
  display:flex!important;
  align-items:center;
  gap:10px;
  overflow:hidden;
}
.md-notice-content{flex:1;min-width:0;overflow:hidden}
.md-notice-label{margin-bottom:4px}

/* Desktop banner track */
.md-notice-banner .md-nb-text{flex:1;min-width:0;overflow:hidden}
.md-notice-track-desktop{padding:2px 0}

/* ========== Staff mapping filter: no big gap ========== */
.sma-filters{
  padding:10px 12px!important;
  gap:8px!important;
  margin-bottom:12px!important;
}
.sma-staff-row{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  flex-wrap:nowrap;
}
.sma-label{
  font-size:12px;
  font-weight:800;
  color:#56657d;
  white-space:nowrap;
  margin:0!important;
}
.sma-select{
  flex:1 1 auto;
  min-width:0;
  height:40px;
  border-radius:10px;
  border:1px solid #dbe2ec;
  padding:0 12px;
  background:#fff;
  font:inherit;
}
.sma-hint{
  font-size:11px;
  font-weight:700;
  color:#6d7b91;
  white-space:nowrap;
}
@media(max-width:700px){
  .sma-filters{margin-bottom:10px!important;padding:8px 10px!important}
  .sma-staff-row{gap:8px}
  .sma-hint{display:none} /* save space; select is enough */
  .sma-select{height:38px}
  .ml-page .ml-header{margin-bottom:10px!important}
  .ml-page .ml-table-card{margin-top:0}
}

/* ========== Contribution Reminders mobile = desktop table row ========== */
body.authenticated-page .ml-table-card .table-wrap{
  overflow-x:auto!important;
  -webkit-overflow-scrolling:touch;
  max-width:100%;
}
body.authenticated-page table.ml-table.gs-reminder-table,
body.authenticated-page table.gs-reminder-table,
body.authenticated-page table.gs-data-table{
  display:table!important;
  width:100%!important;
  min-width:920px!important;
  border-collapse:collapse!important;
  white-space:nowrap!important;
}
body.authenticated-page table.ml-table.gs-reminder-table thead,
body.authenticated-page table.gs-data-table thead{
  display:table-header-group!important;
}
body.authenticated-page table.ml-table.gs-reminder-table tbody,
body.authenticated-page table.gs-data-table tbody{
  display:table-row-group!important;
}
body.authenticated-page table.ml-table.gs-reminder-table tr,
body.authenticated-page table.gs-data-table tr{
  display:table-row!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  grid-template-columns:none!important;
  box-shadow:none!important;
}
body.authenticated-page table.ml-table.gs-reminder-table th,
body.authenticated-page table.ml-table.gs-reminder-table td,
body.authenticated-page table.gs-data-table th,
body.authenticated-page table.gs-data-table td{
  display:table-cell!important;
  float:none!important;
  grid-column:auto!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
  border-bottom:1px solid #eef2f7!important;
}
body.authenticated-page table.ml-table.gs-reminder-table td::before,
body.authenticated-page table.gs-data-table td::before{
  content:none!important;
  display:none!important;
}
body.authenticated-page table.ml-table.gs-reminder-table .ml-actions{
  display:inline-flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  gap:4px!important;
}

/* ========== Member dashboard mobile polish ========== */
@media(max-width:900px){
  body.member-dashboard-screen .page{
    max-width:100%!important;
    margin:0 auto!important;
    padding:0 10px 92px!important;
    background:#f4f7fb!important;
  }
  body.member-dashboard-screen .md-app{
    max-width:100%!important;
    padding:10px 0 12px!important;
  }
  body.member-dashboard-screen .md-welcome{
    margin-bottom:10px!important;
    padding:12px!important;
  }
  body.member-dashboard-screen .md-kpis{
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    margin-bottom:10px!important;
  }
  body.member-dashboard-screen .md-kpi{
    padding:12px 10px!important;
    border-radius:14px!important;
  }
  body.member-dashboard-screen .md-kpi-body b{font-size:15px!important}
  body.member-dashboard-screen .md-quick-card,
  body.member-dashboard-screen .md-notice,
  body.member-dashboard-screen .md-activity{
    margin-bottom:10px!important;
  }
  body.member-dashboard-screen .md-notice{
    padding:10px 12px!important;
    border-radius:14px!important;
  }
  body.member-dashboard-screen .mobile-bottom-nav{
    display:flex!important;
  }
}

/* Contribution reminder filter row compact */
.cr-filters{padding:10px 12px!important;margin-bottom:12px!important}
.cr-filter-row{display:flex;align-items:center;gap:10px;width:100%;flex-wrap:nowrap}
.cr-month{height:40px;border:1px solid #dbe2ec;border-radius:10px;padding:0 12px;background:#fff;font:inherit;min-width:0;flex:0 1 180px}
.cr-hint{font-size:11px;font-weight:700;color:#6d7b91;white-space:nowrap}
@media(max-width:700px){
  .cr-filters{padding:8px 10px!important;margin-bottom:10px!important}
  .cr-hint{display:none}
  .cr-month{flex:1 1 auto;width:auto}
  .cr-filter-row .ml-btn-search{flex:0 0 auto;height:38px;padding:0 14px}
}

/* Recent Contributions: reduce side gap */
body.authenticated-page .main .page .ml-table-card{
  margin-left:0!important;
  margin-right:0!important;
}
body.authenticated-page .main .page{
  padding-left:12px!important;
  padding-right:12px!important;
}
@media(max-width:700px){
  body.authenticated-page .main .page{
    padding-left:8px!important;
    padding-right:8px!important;
  }
}

/* Staff Accounts + All Members: force desktop one-line table */
body.authenticated-page table.all-members-account-table,
body.authenticated-page .staff-accounts-card table.ml-table{
  display:table!important;
  width:100%!important;
  min-width:760px!important;
  border-collapse:collapse!important;
  white-space:nowrap!important;
}
body.authenticated-page table.all-members-account-table thead,
body.authenticated-page .staff-accounts-card table.ml-table thead{
  display:table-header-group!important;
}
body.authenticated-page table.all-members-account-table tbody,
body.authenticated-page .staff-accounts-card table.ml-table tbody{
  display:table-row-group!important;
}
body.authenticated-page table.all-members-account-table tr,
body.authenticated-page .staff-accounts-card table.ml-table tr{
  display:table-row!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  grid-template-columns:none!important;
  box-shadow:none!important;
}
body.authenticated-page table.all-members-account-table th,
body.authenticated-page table.all-members-account-table td,
body.authenticated-page .staff-accounts-card table.ml-table th,
body.authenticated-page .staff-accounts-card table.ml-table td{
  display:table-cell!important;
  float:none!important;
  grid-column:auto!important;
  flex-direction:row!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
  border-bottom:1px solid #eef2f7!important;
  padding:8px 10px!important;
}
body.authenticated-page table.all-members-account-table td::before{
  content:none!important;
  display:none!important;
}
body.authenticated-page .all-members-account-panel .table-wrap,
body.authenticated-page .staff-accounts-card .table-wrap{
  overflow-x:auto!important;
  -webkit-overflow-scrolling:touch;
}

/* grid-2 on staff-member-users: stack on mobile, less gap */
@media(max-width:900px){
  body.authenticated-page .grid-2{
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
}

/* Member dashboard: show global contribution/notice ticker like admin */
body.member-dashboard-screen .notice-bar.notice-ticker{
  display:flex!important;
  margin:10px 10px 0!important;
  z-index:5;
}
body.member-dashboard-screen .main{
  padding-top:0!important;
}
@media(max-width:900px){
  body.member-dashboard-screen .notice-ticker{
    margin:8px 8px 0!important;
    border-radius:12px!important;
  }
  body.member-dashboard-screen .notice-ticker .notice-dots,
  body.member-dashboard-screen .notice-current-delete-form{
    display:none!important;
  }
}


/* ===== Unified design system: mobile + desktop (v209 polish) =====
   Covers: menu, icons, boxes, borders, columns, width/height,
   left/right spacing, lists, colours, tables, forms.
*/

:root{
  --gs-radius: 14px;
  --gs-radius-sm: 10px;
  --gs-radius-lg: 18px;
  --gs-border: 1px solid #e5eaf2;
  --gs-border-strong: 1px solid #d5dde8;
  --gs-pad-page: 28px 30px 45px;
  --gs-pad-page-m: 14px 12px 88px;
  --gs-pad-panel: 18px;
  --gs-pad-panel-m: 14px;
  --gs-gap: 14px;
  --gs-gap-m: 10px;
  --gs-sidebar-w: 245px;
  --gs-icon: 40px;
  --gs-icon-sm: 36px;
  --gs-touch: 44px;
}

/* --- Global box model & overflow --- */
html, body{
  max-width:100%;
  overflow-x:hidden;
  -webkit-text-size-adjust:100%;
}
*, *::before, *::after{ box-sizing:border-box; }
img, svg, video{ max-width:100%; height:auto; }
.app, .main, .page{ min-width:0; }

/* --- Unified boxes / panels / cards --- */
.panel,
.card,
.pay-card,
.login-card,
.kpi,
.document-card,
.application,
.member-modern-deposit,
.settings-card,
.form-card,
.wa-card{
  border: var(--gs-border) !important;
  border-radius: var(--gs-radius) !important;
  background: #fff;
  max-width: 100%;
  min-width: 0;
}
.panel, .card, .pay-card, .settings-card, .form-card{
  padding: var(--gs-pad-panel);
}
.hero{
  border-radius: var(--gs-radius-lg) !important;
}
.kpi{
  padding: 14px 15px !important;
  border-radius: var(--gs-radius) !important;
}
.document-card,
.application{
  padding: 12px 14px !important;
  border-radius: var(--gs-radius-sm) !important;
}

/* --- Borders consistency --- */
.table-wrap,
.profile-grid > div,
.settings-grid > div,
.member-photo,
.dashboard-avatar,
input, select, textarea,
.btn{
  border-color: #dbe2ec;
}
input, select, textarea{
  border-radius: var(--gs-radius-sm) !important;
  min-height: var(--gs-touch);
  padding: 11px 12px;
}
.btn{
  border-radius: var(--gs-radius-sm) !important;
  min-height: 42px;
  padding: 10px 14px;
  gap: 6px;
}
.btn.full, .btn.primary.full{ width:100%; }

/* --- Columns / grids --- */
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:var(--gs-gap); }
.grid-3{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:var(--gs-gap); }
.kpis{ display:grid; grid-template-columns:repeat(4,1fr); gap:var(--gs-gap); }
.profile-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px 18px; }
.settings-grid{ display:grid; grid-template-columns:1fr 1fr; gap:var(--gs-gap); }
.quick{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.span2, .grid-3 .span2{ grid-column:span 2; }

/* --- Lists --- */
.document-list{
  display:flex; flex-wrap:wrap; gap:10px;
}
.document-card{
  display:inline-flex; align-items:center; gap:8px;
  text-decoration:none; color:var(--text);
  border:var(--gs-border); background:#f8fafc;
}
.document-card:hover{ background:#eef4fb; border-color:#c9d6e8; }
.application{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; flex-wrap:wrap; margin-bottom:10px;
}
.badge{
  display:inline-flex; align-items:center; gap:4px;
  padding:4px 10px; border-radius:999px; font-size:11px; font-weight:800;
  border:1px solid transparent; white-space:nowrap;
}
.badge.success{ background:#e8f8ef; color:#0f8a4b; border-color:#c6ebd6; }
.badge.warning{ background:#fff7e8; color:#9a6700; border-color:#f5e0b5; }
.badge.danger{ background:#fdecee; color:#c2304a; border-color:#f5c4cc; }
.badge.info{ background:#eaf2ff; color:#1a5fcc; border-color:#c9dcff; }

/* --- Menu / icons / topbar --- */
.menu-toggle,
.icon-btn,
.sidebar-close{
  width: var(--gs-icon-sm);
  height: var(--gs-icon-sm);
  min-width: var(--gs-icon-sm);
  min-height: var(--gs-icon-sm);
  display:inline-grid;
  place-items:center;
  border-radius: 11px;
  border: 1px solid #e4edf6;
  background: #f5f8fc;
  color: #0f2a4a;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.menu-toggle:hover, .icon-btn:hover{ background:#eef4fb; }
.sidebar nav a .sidebar-icon,
.side-logout .sidebar-icon{
  width: var(--gs-icon);
  min-width: var(--gs-icon);
  height: var(--gs-icon);
  border-radius: 12px;
}
.sidebar nav a .sidebar-icon svg,
.side-logout .sidebar-icon svg{
  width: 20px; height: 20px;
}
.avatar{
  width: 38px; height: 38px; border-radius: 50%;
  flex-shrink: 0;
}
.topbar{
  display:flex; align-items:center; gap:12px;
  padding-left: 20px; padding-right: 20px;
}
.top-actions{ display:flex; align-items:center; gap:8px; margin-left:auto; }

/* --- Page / main spacing (left-right balance) --- */
.page{
  padding: var(--gs-pad-page);
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.page-title{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 18px;
}
.page-title h1{ margin: 0; font-size: 26px; line-height: 1.2; }
.page-title p{ margin: 4px 0 0; color: var(--muted); font-size: 13px; }

/* --- Tables --- */
.table-wrap{
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: var(--gs-border);
  border-radius: var(--gs-radius-sm);
  background: #fff;
}
table{ width:100%; border-collapse: collapse; }
th, td{
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid #edf0f5;
  vertical-align: middle;
}
th{
  font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  color: #64748b; background: #f8fafc; font-weight: 800;
}

/* ========== DESKTOP (>=901px) ========== */
@media (min-width: 901px) {
  body.authenticated-page:not(.sidebar-collapsed) .sidebar {
    transform: translateX(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    width: var(--gs-sidebar-w) !important;
  }
  body.authenticated-page:not(.sidebar-collapsed) .main {
    margin-left: var(--gs-sidebar-w) !important;
    width: calc(100% - var(--gs-sidebar-w)) !important;
  }
  body.authenticated-page.sidebar-collapsed .sidebar {
    transform: translateX(-110%) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }
  body.authenticated-page.sidebar-collapsed .main {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .mobile-bottom-nav { display: none !important; }
  .mobile-overlay { display: none !important; }
  .mobile-brand { display: none !important; }
  .menu-toggle { display: inline-grid; }
}

/* ========== MOBILE / TABLET (<=900px) ========== */
@media (max-width: 900px) {
  /* Sidebar drawer */
  body.authenticated-page .sidebar,
  .sidebar {
    position: fixed !important;
    left: 0 !important; top: 0 !important; bottom: 0 !important;
    width: min(290px, 86vw) !important;
    max-width: min(290px, 86vw) !important;
    transform: translateX(-105%) !important;
    visibility: hidden !important;
    z-index: 40 !important;
    transition: transform .25s ease, visibility .25s ease !important;
    border-radius: 0 18px 18px 0 !important;
  }
  body.authenticated-page.sidebar-open .sidebar,
  body.sidebar-open .sidebar {
    transform: translateX(0) !important;
    visibility: visible !important;
  }
  body.authenticated-page .main,
  body.authenticated-page.sidebar-open .main,
  .main, .sidebar-open .main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.authenticated-page.sidebar-open { overflow: hidden !important; }
  body.authenticated-page.sidebar-open .mobile-overlay,
  body.menu-active .mobile-overlay,
  body.sidebar-open .mobile-overlay {
    display: block !important;
    z-index: 35 !important;
  }
  .mobile-bottom-nav {
    display: flex !important;
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
  }

  /* Page spacing equal left/right */
  .page{
    padding: var(--gs-pad-page-m) !important;
    max-width: 100% !important;
  }
  .panel, .card, .pay-card, .settings-card, .form-card{
    padding: var(--gs-pad-panel-m) !important;
    border-radius: 12px !important;
  }
  .page-title{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
  }
  .page-title h1{ font-size: 22px !important; }
  .page-title .btn, .page-title > .btn, .page-title .inline-form{
    width: 100%;
  }
  .page-title .inline-form{ display:flex; flex-wrap:wrap; gap:8px; }
  .page-title .inline-form .btn{ flex:1; min-width: 120px; }

  /* Columns collapse */
  .grid-2, .grid-3, .settings-grid, .profile-grid,
  .pay-card, .member-modern-two-col{
    grid-template-columns: 1fr !important;
    gap: var(--gs-gap-m) !important;
  }
  .span2, .grid-3 .span2{ grid-column: auto !important; }
  .kpis{ grid-template-columns: 1fr 1fr !important; gap: 9px !important; }
  .quick, .member-quick-grid, .member-modern-actions{
    grid-template-columns: 1fr 1fr !important; gap: 8px !important;
  }

  /* Topbar */
  .topbar{
    height: auto !important;
    min-height: 58px;
    padding: 8px 12px !important;
    gap: 8px !important;
  }
  .mobile-brand{ display: flex !important; }
  .search{ display: none !important; }
  .top-user .user-meta{ display: none !important; }
  .menu-toggle, .icon-btn{
    width: 40px; height: 40px; min-width: 40px; min-height: 40px;
  }

  /* Forms full width, equal padding */
  input, select, textarea, .btn, label{
    max-width: 100% !important;
  }
  .btn.full{ width: 100% !important; }
  form .grid-2 > *, form .settings-grid > *{
    width: 100%;
  }

  /* Lists / documents */
  .document-list{ flex-direction: column; }
  .document-card{ width: 100%; justify-content: flex-start; }
  .application{ flex-direction: column; align-items: flex-start; }
  .badge{ white-space: normal; }

  /* Tables → cards already handled; ensure no overflow */
  .table-wrap{
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 12px !important;
  }
  table{ min-width: 0; }
  th, td{ padding: 9px 8px; font-size: 12px; }

  /* Hero / KPI */
  .hero{
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 16px !important;
    gap: 12px !important;
  }
  .hero h1{ font-size: 22px !important; }
  .hero .btn{ width: 100%; }
  .kpi b{ font-size: 18px; }
  .kpi span, .kpi small{ font-size: 10px; }

  /* Photo / signature upload area */
  .member-photo-wrap{
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px;
  }
  .member-photo, .dashboard-avatar{
    width: 72px !important; height: 72px !important;
  }
  .profile-actions{ width: 100%; display:flex; flex-wrap:wrap; gap:8px; }
  .profile-actions .btn{ flex:1; min-width: 130px; }

  /* Footer clear of bottom nav */
  footer{
    margin-bottom: 80px !important;
    padding: 14px 12px !important;
  }

  /* Safe touch targets */
  .sidebar nav a, .side-bottom a{
    min-height: 46px;
    padding: 11px 12px !important;
  }
}

/* ========== SMALL PHONES (<=420px) ========== */
@media (max-width: 420px) {
  .page{ padding: 12px 10px 90px !important; }
  .kpis{ grid-template-columns: 1fr 1fr !important; }
  .quick, .member-quick-grid{ grid-template-columns: 1fr 1fr !important; }
  .kpi{ padding: 11px !important; }
  .topbar{ padding: 6px 8px !important; }
  .mobile-brand b{ font-size: 13px; }
  .btn{ font-size: 13px; padding: 9px 11px; }
}

/* Colour tokens stay consistent (no drift on mobile) */
body{ color: var(--text); background: var(--bg); }
a{ color: var(--blue); }
.btn.primary{ background: var(--blue); border-color: var(--blue); color:#fff; }
.btn.danger{ background: #fff1f3; color: #c72b45; border-color: #ffd3da; }
.alert{
  border-radius: var(--gs-radius-sm);
  padding: 11px 13px;
  border: 1px solid transparent;
  font-size: 13px;
  line-height: 1.45;
}
.alert.info{ background:#eaf2ff; border-color:#c9dcff; color:#1a5fcc; }
.alert.success{ background:#e8f8ef; border-color:#c6ebd6; color:#0f8a4b; }
.alert.danger, .alert.error{ background:#fdecee; border-color:#f5c4cc; color:#c2304a; }
.alert.warning{ background:#fff7e8; border-color:#f5e0b5; color:#9a6700; }

/* === Desktop sidebar: same tricolor as mobile (fix navy override) === */
body.authenticated-page.role-admin .sidebar,
body.authenticated-page.role-staff .sidebar,
body.authenticated-page.role-member .sidebar,
body.member-dashboard-screen .sidebar{
  background:radial-gradient(circle at 12% 18%,rgba(255,169,0,.62) 0 18%,rgba(255,169,0,0) 45%),radial-gradient(circle at 92% 82%,rgba(0,145,55,.72) 0 22%,rgba(0,145,55,0) 58%),linear-gradient(135deg,#ff6900 0%,#ff9b22 18%,#fff4df 38%,#f8fbf4 51%,#b7dfad 66%,#35a44f 82%,#07812f 100%) !important;
  color:#fff !important;
  border-right:1px solid rgba(255,255,255,.18) !important;
  box-shadow:8px 0 28px rgba(10,29,61,.12) !important;
}
body.authenticated-page.role-admin .sidebar .brand,
body.authenticated-page.role-staff .sidebar .brand,
body.authenticated-page.role-member .sidebar .brand,
body.member-dashboard-screen .sidebar .brand{
  background:linear-gradient(110deg,#ff6900 0%,#ffb22e 22%,#fffaf0 44%,#ffffff 56%,#e7f6e8 72%,#138808 100%) !important;
}
body.authenticated-page.role-admin .sidebar .brand b,
body.authenticated-page.role-staff .sidebar .brand b,
body.authenticated-page.role-member .sidebar .brand b,
body.member-dashboard-screen .sidebar .brand b{
  color:#172b50 !important;
  text-shadow:0 1px 0 rgba(255,255,255,.65) !important;
}
body.authenticated-page.role-admin .sidebar .brand small,
body.authenticated-page.role-staff .sidebar .brand small,
body.authenticated-page.role-member .sidebar .brand small,
body.member-dashboard-screen .sidebar .brand small{
  color:#233b61 !important;
}
body.authenticated-page.role-admin .sidebar .brand:after,
body.authenticated-page.role-staff .sidebar .brand:after,
body.authenticated-page.role-member .sidebar .brand:after,
body.member-dashboard-screen .sidebar .brand:after{
  background:linear-gradient(90deg,#ff7a00 0 33.333%,#fff 33.333% 66.666%,#138808 66.666% 100%) !important;
  height:4px !important;
}
body.authenticated-page.role-admin .sidebar nav a,
body.authenticated-page.role-staff .sidebar nav a,
body.authenticated-page.role-member .sidebar nav a,
body.member-dashboard-screen .sidebar nav a{
  color:#fff !important;
  text-shadow:0 1px 2px rgba(0,0,0,.22) !important;
}
body.authenticated-page.role-admin .sidebar nav a.active,
body.authenticated-page.role-staff .sidebar nav a.active,
body.authenticated-page.role-member .sidebar nav a.active,
body.member-dashboard-screen .sidebar nav a.active{
  background:linear-gradient(100deg,rgba(255,143,0,.92),rgba(255,255,255,.20),rgba(19,136,8,.32)) !important;
  color:#fff !important;
  box-shadow:0 8px 22px rgba(0,0,0,.12),inset 0 0 0 1px rgba(255,255,255,.18) !important;
}
body.authenticated-page.role-admin .sidebar nav a:hover,
body.authenticated-page.role-staff .sidebar nav a:hover,
body.authenticated-page.role-member .sidebar nav a:hover,
body.member-dashboard-screen .sidebar nav a:hover{
  background:rgba(255,255,255,.20) !important;
  color:#fff !important;
}

/* Single notice box on member dashboard (desktop + mobile) */
body.member-dashboard-screen .md-notice{
  display:flex !important;
  margin:10px 0 14px !important;
}
body.member-dashboard-screen .md-notice-banner{
  display:none !important;
}

/* Desktop sidebar can collapse — do not force always-open on member dashboard */
@media (min-width:901px){
  body.member-dashboard-screen:not(.sidebar-collapsed) .sidebar{
    display:flex !important;
    transform:translateX(0) !important;
    visibility:visible !important;
  }
  body.member-dashboard-screen.sidebar-collapsed .sidebar{
    transform:translateX(-110%) !important;
    visibility:hidden !important;
    pointer-events:none !important;
    opacity:0 !important;
  }
  body.member-dashboard-screen.sidebar-collapsed .main{
    margin-left:0 !important;
    width:100% !important;
  }
  body.member-dashboard-screen:not(.sidebar-collapsed) .main{
    margin-left:245px !important;
    width:calc(100% - 245px) !important;
  }
}


/* ===== Sidebar header + auto-close polish ===== */
.sidebar-head{
  display:flex !important;
  align-items:flex-start !important;
  gap:8px !important;
  margin:-18px -14px 0 !important;
  padding:0 !important;
  position:relative !important;
  flex:0 0 auto !important;
}
.sidebar-head .brand{
  flex:1 1 auto !important;
  min-width:0 !important;
  margin:0 !important;
  padding:14px 12px 18px !important;
  min-height:0 !important;
  align-items:center !important;
  gap:10px !important;
}
.sidebar-head .brand img{
  width:52px !important;
  height:52px !important;
  flex:0 0 52px !important;
  object-fit:contain !important;
  border-radius:12px !important;
  background:rgba(255,255,255,.9) !important;
}
.sidebar-head .brand > div{
  min-width:0 !important;
  flex:1 1 auto !important;
}
.sidebar-head .brand b{
  font-size:15px !important;
  line-height:1.2 !important;
  word-break:break-word !important;
}
.sidebar-head .brand small{
  font-size:10px !important;
  line-height:1.3 !important;
  margin-top:3px !important;
  display:block !important;
}
.sidebar-close{
  display:grid !important;
  place-items:center !important;
  position:absolute !important;
  top:10px !important;
  right:10px !important;
  z-index:5 !important;
  width:34px !important;
  height:34px !important;
  border-radius:10px !important;
  border:1px solid rgba(255,255,255,.35) !important;
  background:rgba(0,0,0,.18) !important;
  color:#fff !important;
  font-size:22px !important;
  line-height:1 !important;
  cursor:pointer !important;
  flex-shrink:0 !important;
}
.sidebar-close:hover{ background:rgba(0,0,0,.28) !important; }
/* Brand bar under logo */
.sidebar .brand:after{
  left:14px !important;
  right:14px !important;
  bottom:10px !important;
}

/* ===== Front page notice LIST + ticker ===== */
.home-notices-list{
  display:flex;
  flex-direction:column;
  gap:0;
  padding:4px 12px 8px;
  max-height:320px;
  overflow-y:auto;
}
.home-notice-row{
  display:grid;
  grid-template-columns:36px 1fr auto;
  gap:10px;
  align-items:start;
  padding:12px 4px;
  border-bottom:1px solid #e6eee8;
}
.home-notice-row:last-child{ border-bottom:0; }
.home-notice-icon{ font-size:20px; line-height:1.2; }
.home-notice-body b{
  display:block;
  font-size:14px;
  color:#075d35;
  line-height:1.25;
}
.home-notice-body p{
  margin:4px 0 0;
  font-size:12px;
  color:#5a6b60;
  line-height:1.4;
}
.home-notice-row time{
  font-size:11px;
  color:#7a8a80;
  white-space:nowrap;
  padding-top:2px;
}
.home-notice-panel .home-notice-ticker{
  margin:8px 12px 12px;
  border:1px solid #d7ebdd;
  border-radius:12px;
  background:#f3fbf6;
  overflow:hidden;
}
.home-notice-ticker-viewport{
  height:36px !important;
  overflow:hidden !important;
  position:relative !important;
}
.home-notice-ticker-track{
  display:flex !important;
  width:max-content !important;
  animation: gsHomeNoticeScroll 28s linear infinite !important;
  gap:40px !important;
  align-items:center !important;
  height:36px !important;
}
.home-notice-ticker-item{
  display:inline-flex !important;
  align-items:center !important;
  gap:8px !important;
  white-space:nowrap !important;
  font-size:13px !important;
  font-weight:700 !important;
  color:#0b5c38 !important;
  padding:0 8px !important;
}
.home-notice-ticker-item b{ color:#064e2e; }
.home-notice-ticker-item span{ font-weight:600; color:#3d5c4a; }
@keyframes gsHomeNoticeScroll{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-50%); }
}
@media (max-width:720px){
  .home-notice-row{ grid-template-columns:28px 1fr; }
  .home-notice-row time{ grid-column:2; padding-top:0; }
  .home-notices-list{ max-height:260px; }
}

/* ===== WhatsApp center mobile overview ===== */
@media (max-width:900px){
  .wa-center-page .page-title,
  .wa-center-page .wa-tabs{
    padding-left:4px !important;
    padding-right:4px !important;
  }
  .wa-center-page .wa-tabs{
    display:flex !important;
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch !important;
    gap:6px !important;
    margin-bottom:12px !important;
  }
  .wa-center-page .wa-tabs a{
    flex:0 0 auto !important;
    white-space:nowrap !important;
    font-size:12px !important;
    padding:8px 12px !important;
  }
  .wa-center-page .panel,
  .wa-center-page .wa-card{
    max-width:100% !important;
    min-width:0 !important;
    overflow:hidden !important;
  }
  .wa-center-page .grid-2,
  .wa-center-page .grid-3,
  .wa-center-page .whatsapp-kpis,
  .wa-center-page .wa-kpis{
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
  }
  .wa-center-page .wa-live-inbox{
    grid-template-columns:1fr !important;
    height:auto !important;
    min-height:420px !important;
    max-width:100% !important;
  }
  .wa-center-page .wa-inbox-sidebar{
    max-height:240px !important;
    border-right:0 !important;
    border-bottom:1px solid #e6ebf2 !important;
    width:100% !important;
  }
  .wa-center-page .wa-inbox-chat{
    min-height:320px !important;
    width:100% !important;
  }
  .wa-center-page .wa-message-scroll{
    min-height:220px !important;
    max-height:45vh !important;
  }
  .wa-center-page .wa-compose{
    position:sticky !important;
    bottom:0 !important;
  }
  .wa-center-page .wa-compose textarea{
    font-size:14px !important;
  }
  .wa-center-page table{
    min-width:0 !important;
  }
  .wa-center-page .table-wrap{
    overflow-x:auto !important;
  }
}


/* ===== Front page: notice list visible on desktop, tablet, and mobile ===== */
@media (max-width:900px){
  .home-page .home-notices-list{ display:flex !important; }
  .home-page .home-notice-panel .home-panel-head{ display:flex !important; }
  .home-page .home-notice-panel .home-notice-ticker{ display:none !important; }
  .home-page .home-notice-ticker-title{ font-size:12px !important; }
}
@media (min-width:901px){
  .home-page .home-notices-list{ display:flex !important; }
  .home-page .home-notice-panel .home-panel-head{ display:flex !important; }
  .home-page .home-notice-panel .home-notice-ticker{ display:none !important; }
}

/* ===== 2) WhatsApp mobile — bottom tabs + content clear of app bottom nav ===== */
@media (max-width:900px){
  body.authenticated-page .wa-center-page,
  .wa-center-page{
    padding-bottom:88px !important;
  }
  .wa-center-page .wa-tabs{
    position:sticky !important;
    top:56px !important;
    z-index:12 !important;
    background:#fff !important;
    border-bottom:1px solid #e5eaf2 !important;
    padding:8px 6px !important;
    margin:0 0 10px !important;
    display:flex !important;
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    gap:6px !important;
    -webkit-overflow-scrolling:touch !important;
  }
  .wa-center-page .wa-tabs a{
    flex:0 0 auto !important;
    border-radius:999px !important;
    padding:8px 14px !important;
    font-size:12px !important;
    font-weight:800 !important;
    background:#f3f6fa !important;
    color:#334155 !important;
    border:1px solid #e2e8f0 !important;
    white-space:nowrap !important;
  }
  .wa-center-page .wa-tabs a.active{
    background:#0b5ed7 !important;
    color:#fff !important;
    border-color:#0b5ed7 !important;
  }
  .wa-center-page .wa-live-inbox{
    margin-bottom:12px !important;
  }
  /* keep app mobile-bottom-nav above content, not overlapping WA compose */
  .wa-center-page .wa-compose{
    margin-bottom:8px !important;
    padding-bottom:max(8px, env(safe-area-inset-bottom)) !important;
  }
}

/* ===== 3) Recent Activity — modern cards everywhere ===== */
.ad-activity-list,
.md-activity-list,
.member-activity-list,
.recent-activity-list{
  display:flex !important;
  flex-direction:column !important;
  gap:8px !important;
}
.ad-act-row,
.md-activity-row,
.member-activity-row,
.recent-activity-row{
  display:grid !important;
  grid-template-columns:44px minmax(0,1fr) auto !important;
  gap:12px !important;
  align-items:center !important;
  padding:12px 14px !important;
  border:1px solid #e8eef5 !important;
  border-radius:14px !important;
  background:linear-gradient(145deg,#fff,#f8fafc) !important;
  box-shadow:0 4px 14px rgba(15,40,80,.04) !important;
  border-bottom:1px solid #e8eef5 !important;
}
.ad-act-icon,
.md-activity-icon,
.member-activity-icon{
  width:42px !important;
  height:42px !important;
  border-radius:12px !important;
  display:grid !important;
  place-items:center !important;
  background:linear-gradient(145deg,#e8f8ef,#dff3ff) !important;
  font-size:18px !important;
}
.ad-act-body b,
.md-activity-body b,
.member-activity-description b{
  display:block !important;
  font-size:13px !important;
  color:#14304f !important;
  line-height:1.3 !important;
}
.ad-act-body small,
.md-activity-body small,
.member-activity-description small{
  display:block !important;
  margin-top:3px !important;
  font-size:11px !important;
  color:#7b8a9c !important;
}
@media (max-width:600px){
  .ad-act-row,
  .md-activity-row,
  .member-activity-row{
    grid-template-columns:40px minmax(0,1fr) !important;
  }
  .ad-act-row .badge,
  .md-activity-row .badge,
  .member-activity-row .badge,
  .member-activity-row > strong{
    grid-column:2 !important;
    justify-self:start !important;
    margin-top:2px !important;
  }
}

/* ===== 5) Member list search — icon + text no overlap ===== */
.ml-search-wrap{
  position:relative !important;
  flex:1 1 240px !important;
  min-width:0 !important;
}
.ml-search-wrap input[type="search"],
.ml-search-wrap input{
  width:100% !important;
  height:42px !important;
  padding:10px 12px 10px 40px !important;
  border-radius:11px !important;
  border:1px solid #dbe2ec !important;
  font-size:14px !important;
  line-height:1.2 !important;
  background:#fff !important;
}
.ml-search-wrap input::placeholder{
  color:#8b97a8 !important;
  opacity:1 !important;
}
.ml-search-icon{
  position:absolute !important;
  left:12px !important;
  top:50% !important;
  transform:translateY(-50%) !important;
  font-size:15px !important;
  opacity:.55 !important;
  pointer-events:none !important;
  z-index:2 !important;
  line-height:1 !important;
}
/* hide any accidental label inside search wrap */
.ml-search-wrap > label{ display:none !important; }
@media (max-width:700px){
  .ml-search-wrap{ flex:1 1 100% !important; width:100% !important; }
  .ml-search-wrap input{ font-size:15px !important; }
}

/* ===== 6) Reminders — mobile date not crushed ===== */
@media (max-width:900px){
  /* EMI / contribution reminder tables as cards */
  .table-wrap table.mobile-card-table td[data-label*="Due"],
  .table-wrap table.mobile-card-table td[data-label*="due"],
  .table-wrap table.mobile-card-table td[data-label*="Date"],
  .table-wrap table.mobile-card-table td[data-label*="date"],
  .table-wrap table.mobile-card-table td[data-label*="Month"]{
    grid-template-columns: minmax(90px,36%) minmax(0,1fr) !important;
  }
  .table-wrap table.mobile-card-table td[data-label*="Due"] ,
  .table-wrap table.mobile-card-table td[data-label*="Date"] {
    font-variant-numeric: tabular-nums;
  }
  .table-wrap table.mobile-card-table td{
    grid-template-columns: minmax(96px,40%) minmax(0,1fr) !important;
    gap:10px !important;
    align-items:center !important;
  }
  .table-wrap table.mobile-card-table td::before{
    white-space:normal !important;
    line-height:1.3 !important;
  }
  /* reminder filter rows */
  .cr-filter-row,
  .reminder-filters,
  form.inline-form.reminder-bar{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:8px !important;
  }
  .cr-filter-row input[type="date"],
  .reminder-filters input[type="date"],
  .page input[type="date"]{
    min-width:0 !important;
    width:100% !important;
    max-width:100% !important;
    min-height:42px !important;
    font-size:14px !important;
    padding:10px 12px !important;
  }
}


/* Reminder tables mobile — prevent date/month squeeze */
@media (max-width:900px){
  table.gs-reminder-table thead{ display:none !important; }
  table.gs-reminder-table,
  table.gs-reminder-table tbody,
  table.gs-reminder-table tr,
  table.gs-reminder-table td{
    display:block !important;
    width:100% !important;
  }
  table.gs-reminder-table tr{
    margin:0 0 12px !important;
    padding:12px !important;
    border:1px solid #e5eaf2 !important;
    border-radius:14px !important;
    background:#fff !important;
    box-shadow:0 4px 14px rgba(15,40,80,.05) !important;
  }
  table.gs-reminder-table td{
    display:grid !important;
    grid-template-columns:110px minmax(0,1fr) !important;
    gap:8px !important;
    padding:7px 0 !important;
    border:0 !important;
    border-bottom:1px solid #f0f3f7 !important;
    font-size:13px !important;
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
  }
  table.gs-reminder-table td:last-child{ border-bottom:0 !important; }
  table.gs-reminder-table td::before{
    content:attr(data-label);
    font-size:10px !important;
    font-weight:800 !important;
    color:#718096 !important;
    text-transform:uppercase !important;
    letter-spacing:.03em !important;
  }
  /* due date / month never crush */
  table.gs-reminder-table td[data-label="Due"],
  table.gs-reminder-table td[data-label="Due Date"],
  table.gs-reminder-table td[data-label="Month"]{
    font-variant-numeric:tabular-nums !important;
    white-space:normal !important;
  }
  table.gs-reminder-table td[data-label="Actions"]{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:6px !important;
  }
  table.gs-reminder-table td[data-label="Actions"]::before{ display:none !important; }
}


/* ============================================================
   v209_ui6 FINAL-2  (Recent Activity + Notice + Search + WhatsApp)
   ============================================================ */

/* 1. Recent Activity – clean mobile cards */
@media screen and (max-width: 900px) {
  body .ad-act-row,
  body .md-activity-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 12px 12px !important;
    margin-bottom: 8px !important;
    border: 1px solid #e8eef5 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(15,40,80,.05) !important;
  }
  body .ad-act-icon,
  body .md-act-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    flex: 0 0 40px !important;
    border-radius: 11px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 17px !important;
  }
  body .ad-act-body,
  body .md-act-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  body .ad-act-body b,
  body .md-act-info b {
    display: block !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #14304f !important;
    white-space: normal !important;
  }
  body .ad-act-body small,
  body .md-act-info small {
    display: block !important;
    font-size: 12px !important;
    color: #7b8a9c !important;
    margin-top: 2px !important;
  }
  body .ad-act-meta,
  body .md-act-right {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 6px !important;
    width: auto !important;
    max-width: 100% !important;
  }
  body .ad-act-meta time {
    font-size: 11px !important;
    color: #7b8a9c !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
  }
  body .ad-badge {
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 3px 9px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    background: #e6f7ef !important;
    color: #0d7a4f !important;
  }
}

/* 2. Front page – hide only old duplicate running ticker, never the notice list panel */
.home-page .home-notices,
.home-page .home-notice-track,
.home-page .home-notice-ticker,
.home-page .home-notice {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Also hide dashboard upper notice-bar on mobile */
@media screen and (max-width: 900px) {
  body .notice-bar,
  body .notice-bar.notice-ticker,
  body .notice-bar.notice-moving,
  body .notice-bar.notice-static {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
  }
}

/* 3. Member list search icon + text */
body .ml-search-wrap {
  position: relative !important;
  flex: 1 1 180px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
body .ml-search-wrap .ml-search-icon,
body .ml-search-icon {
  position: absolute !important;
  left: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 15px !important;
  line-height: 1 !important;
  width: 18px !important;
  text-align: center !important;
  opacity: 0.55 !important;
  pointer-events: none !important;
  z-index: 3 !important;
}
body .ml-search-wrap input[type="search"],
body .ml-search-wrap input {
  width: 100% !important;
  max-width: 100% !important;
  height: 42px !important;
  padding: 10px 12px 10px 40px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
@media screen and (max-width: 700px) {
  body .ml-search-wrap {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
}

/* 4. WhatsApp – send/compose box ALWAYS above bottom tab bar */
@media screen and (max-width: 900px) {
  /* Extra space at bottom of WhatsApp page so content is not hidden */
  body:has(.wa-center-page) ,
  body:has(.wa-live-inbox) ,
  body:has(.wa-compose) {
    padding-bottom: calc(130px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .wa-center-page .wa-live-inbox,
  .wa-center-page .wa-inbox-chat {
    padding-bottom: 0 !important;
  }

  /* Compose bar fixed above the floating bottom nav */
  .wa-center-page .wa-compose,
  body .wa-compose {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 30 !important;
    background: #fff !important;
    border-top: 1px solid #e5eaf0 !important;
    box-shadow: 0 -4px 16px rgba(15,40,80,.08) !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-end !important;
    gap: 8px !important;
  }

  .wa-center-page .wa-compose textarea,
  body .wa-compose textarea {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 40px !important;
    max-height: 90px !important;
    border-radius: 20px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
  }

  .wa-center-page .wa-compose .btn,
  body .wa-compose button {
    flex: 0 0 auto !important;
    min-width: 52px !important;
    height: 40px !important;
    border-radius: 20px !important;
  }

  /* Make message area leave space for the fixed compose */
  .wa-center-page .wa-message-scroll,
  body .wa-message-scroll {
    padding-bottom: 90px !important;
  }
}

/* ===== Modern Reports + Actions ===== */
.report-actions{display:flex;flex-wrap:wrap;gap:8px}.report-actions .btn-excel{background:linear-gradient(135deg,#0d7a4f,#13b86b)!important;color:#fff!important;border:0!important}.report-actions .btn-pdf{background:linear-gradient(135deg,#0b4f9c,#1677ff)!important;color:#fff!important;border:0!important}
.report-card{border:1px solid #dfe7f2;box-shadow:0 10px 30px rgba(15,40,80,.07);border-radius:18px}.report-card-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.report-card-title h2{margin:0}.report-stats{display:grid;gap:0}.report-stats>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #edf1f6}.report-stats>div:last-child{border-bottom:0}.report-stats span{font-size:11px;color:#75839a;font-weight:700}.report-stats b{font-size:13px;color:#1c3151;text-align:right}.report-loan-panel,.report-member-panel{border:1px solid #dbe5f2;box-shadow:0 12px 35px rgba(15,40,80,.07)}.report-loan-table th,.report-member-table th{white-space:nowrap}.report-loan-table td,.report-member-table td{vertical-align:middle}.empty-report{padding:28px;text-align:center;color:#8390a5;font-size:13px;background:#f8fafc;border:1px dashed #ccd6e4;border-radius:12px}
@media(max-width:1200px){.report-kpis{grid-template-columns:repeat(3,1fr)}.report-summary-grid{grid-template-columns:1fr 1fr}.report-summary-grid .report-card:first-child{grid-column:span 2}}
@media(max-width:850px){.report-kpis{grid-template-columns:repeat(2,1fr)}.report-summary-grid{grid-template-columns:1fr}.report-summary-grid .report-card:first-child{grid-column:auto}.report-loan-panel,.report-member-panel{padding:12px}.report-actions{width:100%}.report-actions .btn{flex:1 1 145px}.report-loan-table,.report-member-table{min-width:0!important}}
@media(max-width:600px){.report-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.report-actions .btn{min-height:40px;padding:8px 6px;font-size:11px}.report-kpis{gap:7px}.report-kpis .kpi{padding:10px 8px;min-width:0}.report-kpis .kpi span{font-size:9px}.report-kpis .kpi b{font-size:13px;overflow-wrap:anywhere}.report-card{border-radius:13px}.report-loan-table td,.report-member-table td{grid-template-columns:92px minmax(0,1fr)!important;font-size:11px!important}.report-loan-table .emi-summary-modern{display:grid;gap:4px}.report-member-panel .panel-head{align-items:flex-start}.report-member-panel .panel-head .btn{width:100%;margin-top:6px}}
/* V210: mobile report tables become readable stacked cards, not cropped spreadsheets. */
@media(max-width:600px){body.authenticated-page .main .page .report-loan-table,body.authenticated-page .main .page .report-member-table{display:block!important;width:100%!important;min-width:0!important;border-collapse:separate!important;border-spacing:0!important}body.authenticated-page .main .page .report-loan-table thead,body.authenticated-page .main .page .report-member-table thead{display:none!important}body.authenticated-page .main .page .report-loan-table tbody,body.authenticated-page .main .page .report-member-table tbody{display:block!important;width:100%!important}body.authenticated-page .main .page .report-loan-table tbody tr,body.authenticated-page .main .page .report-member-table tbody tr{display:block!important;width:100%!important;margin:0 0 8px!important;padding:9px 10px!important;border:1px solid #e1e8f0!important;border-radius:12px!important;background:#fff!important;box-shadow:0 4px 14px rgba(15,40,80,.05)!important}body.authenticated-page .main .page .report-loan-table tbody td,body.authenticated-page .main .page .report-member-table tbody td{display:grid!important;grid-template-columns:94px minmax(0,1fr)!important;gap:8px!important;width:100%!important;box-sizing:border-box!important;padding:6px 0!important;border:0!important;border-bottom:1px solid #edf1f5!important;overflow-wrap:anywhere!important}body.authenticated-page .main .page .report-loan-table tbody td:last-child,body.authenticated-page .main .page .report-member-table tbody td:last-child{border-bottom:0!important}body.authenticated-page .main .page .report-loan-table tbody td::before,body.authenticated-page .main .page .report-member-table tbody td::before{content:attr(data-label)!important;display:block!important;font-size:9px!important;font-weight:800!important;letter-spacing:.04em!important;text-transform:uppercase!important;color:#7b8da1!important}body.authenticated-page .main .page .report-loan-table tbody td[colspan],body.authenticated-page .main .page .report-member-table tbody td[colspan]{display:block!important;text-align:center!important}body.authenticated-page .main .page .report-loan-table tbody td[colspan]::before,body.authenticated-page .main .page .report-member-table tbody td[colspan]::before{display:none!important}}

/* V211: organized Member-wise report list */
.member-report-list{display:grid;gap:10px}
.member-report-row{border:1px solid #e2e9f2;border-radius:15px;padding:12px 14px;background:linear-gradient(120deg,#fff,#f9fbfe);box-shadow:0 5px 18px rgba(15,40,80,.045)}
.member-report-identity{display:flex;align-items:center;gap:10px;min-width:0;padding-bottom:10px;border-bottom:1px solid #edf1f5}
.member-report-avatar{width:38px;height:38px;flex:0 0 38px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#d9f4e7,#bce8d4);color:#08784e;font-size:17px;font-weight:900}
.member-report-identity>div{min-width:0;flex:1}.member-report-identity>div b{display:block;font-size:14px;color:#183154;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.member-report-identity>div small{display:block;margin-top:3px;color:#78879a;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.member-report-identity>.badge{flex:0 0 auto}
.member-report-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding-top:10px}.member-report-stats>div{min-width:0;padding:8px 9px;border-radius:10px;background:#f5f8fc}.member-report-stats small{display:block;color:#75849a;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.member-report-stats b{display:block;margin-top:4px;color:#1a3152;font-size:12px;overflow-wrap:anywhere}.member-report-stats .outstanding{background:#fff3e4}.member-report-stats .outstanding b{color:#a75d00}
/* V211: checkout demo polish */
.pb-checkout{max-width:980px;margin:0 auto}.pb-heading{position:relative}.pb-heading:after{content:'SECURE MEMBER CHECKOUT';display:inline-flex;margin-top:9px;padding:5px 9px;border-radius:99px;background:#e8f7f1;color:#087b66;font-size:9px;font-weight:900;letter-spacing:.08em}.pb-total-card{box-shadow:0 16px 38px rgba(20,72,80,.14);border:1px solid rgba(255,255,255,.35)}.pb-payment-card,.pb-confirm-card{box-shadow:0 8px 24px rgba(20,55,85,.06);border:1px solid #e2e9ee}.pb-method{transition:transform .15s,box-shadow .15s}.pb-method:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(16,105,91,.1)}.pb-trust{border:1px solid #d8eee4}.pb-upi-button,.pb-submit-button{min-height:50px}.pb-qr-details{margin-top:12px}.pb-qr-details summary{cursor:pointer;list-style:none}.pb-qr-details summary::-webkit-details-marker{display:none}
@media(max-width:700px){.member-report-row{padding:10px}.member-report-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.member-report-stats>div{padding:8px}.member-report-stats .outstanding{grid-column:span 2}.member-report-identity{align-items:flex-start}.member-report-identity>.badge{font-size:9px;padding:4px 7px}.member-report-panel .panel-head{align-items:flex-start}.member-report-panel .panel-head>div{min-width:0}.member-report-panel .panel-head .btn{flex:0 0 auto;white-space:nowrap}.pb-checkout{padding-left:0;padding-right:0}.pb-heading h1{font-size:24px}.pb-total-card{border-radius:16px}}
@media(max-width:390px){.member-report-panel .panel-head{display:block}.member-report-panel .panel-head .btn{display:flex;width:100%;margin-top:9px}.member-report-identity>div b{font-size:13px}.member-report-stats small{font-size:8px}.member-report-stats b{font-size:11px}}

/* Member-wise report follows the exact Members list visual language. */
.report-member-directory{margin-top:18px}
.report-member-directory .report-download-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.report-list-note{padding:10px 14px;background:#f7faff;border:1px solid #e4ebf4;border-bottom:0;color:#64758a;font-size:11px;font-weight:700}
.report-member-table-card{overflow:hidden}
.report-member-ml-table{min-width:1120px!important}
.report-member-ml-table th,.report-member-ml-table td{white-space:nowrap}
.report-member-ml-table td:nth-child(n+6){font-size:11px}
.report-member-count{padding:13px 16px;color:#748398;font-size:11px;font-weight:700;border-top:1px solid #edf1f5;background:#fff}
@media(max-width:480px){
  .report-member-directory .ml-header{display:flex;flex-wrap:wrap}
  .report-member-directory .ml-header .report-download-btn{width:100%;margin-top:8px}
  .report-list-note{font-size:10px}
}

/* Member checkout identity and tap-to-expand UPI QR lightbox */
.pb-member-identity{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:12px 14px;border:1px solid #dce9df;border-radius:15px;background:linear-gradient(110deg,#f8fcf8,#fffaf1);box-shadow:0 4px 14px rgba(7,70,37,.06)}
.pb-member-mark{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,#08783e,#e99127);color:#fff;font-weight:900;letter-spacing:-1px}
.pb-member-identity>div{min-width:0;flex:1}.pb-member-identity>div b,.pb-member-identity>div small{display:block}.pb-member-identity>div b{color:#143e2b;font-size:14px}.pb-member-identity>div small{margin-top:3px;color:#66766b;font-size:11px}.pb-demo-tag{padding:5px 8px;border-radius:20px;background:#e9f4eb;color:#08783e;font-size:9px;font-weight:900;letter-spacing:.5px}
.gs-qr-open{cursor:zoom-in;-webkit-appearance:none;appearance:none}.gs-qr-open img{display:block;width:100%;height:100%;object-fit:contain}.pb-qr-frame.gs-qr-open{display:block;text-align:initial}.gs-qr-open-emi{display:block;width:min(100%,260px);margin:auto;padding:8px;border:1px solid #e0e8ed;border-radius:12px;background:#fff}.gs-qr-open-emi img{width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.gs-qr-modal{position:fixed;inset:0;z-index:100000;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(7,25,17,.78);box-sizing:border-box}.gs-qr-modal[aria-hidden="false"]{display:flex}.gs-qr-dialog{position:relative;width:min(92vw,440px);padding:24px 20px 20px;border-radius:20px;background:#fff;text-align:center;box-shadow:0 24px 80px rgba(0,0,0,.3)}.gs-qr-dialog h2{margin:0 38px 14px;color:#075d35;font-size:20px}.gs-qr-dialog>img{display:block;width:min(72vw,340px);height:min(72vw,340px);max-width:100%;max-height:60vh;margin:0 auto;padding:8px;box-sizing:border-box;border:1px solid #e0e8ed;border-radius:14px;background:#fff;object-fit:contain}.gs-qr-dialog p{margin:12px 0 0;color:#62746a;font-size:13px}.gs-qr-close{position:absolute;top:8px;right:9px;width:36px;height:36px;border:0;border-radius:50%;background:#edf4ef;color:#075d35;font-size:26px;line-height:1;cursor:pointer}
@media(max-width:600px){.pb-member-identity{margin-bottom:11px;padding:10px 12px}.pb-member-mark{flex-basis:38px;width:38px;height:38px}.gs-qr-dialog{padding:22px 14px 16px}}
/* Native dialog payment QR lightbox for mobile/browser top-layer reliability */
.gs-qr-native{border:0;margin:auto;max-height:92vh;overflow:auto}.gs-qr-native::backdrop{background:rgba(7,25,17,.78)}

/* Phone-first single-screen contribution checkout: QR stays visible on load */
@media(max-width:600px){
 .pb-checkout{max-width:460px;padding:0 5px 8px;display:flex;flex-direction:column;gap:6px}
 .pb-heading{margin:0 0 2px;gap:6px;min-height:32px;align-items:center}.pb-heading:after{display:none}.pb-heading h1{font-size:17px;line-height:1.12;margin:1px 0}.pb-heading .pb-eyebrow{font-size:7px;letter-spacing:.7px}.pb-heading p{display:none}.pb-lock{padding:4px 7px;font-size:9px}
 .pb-member-identity{margin:0;padding:6px 9px;gap:8px;border-radius:11px}.pb-member-mark{width:30px;height:30px;flex-basis:30px;border-radius:9px;font-size:12px}.pb-member-identity>div b{font-size:11px}.pb-member-identity>div small{font-size:9px;margin-top:1px}.pb-demo-tag{font-size:8px;padding:4px 6px}
 .pb-total-card{display:grid;grid-template-columns:1fr auto;gap:0 8px;margin:0;padding:9px 11px;border-radius:13px;box-shadow:0 6px 16px #173b581c}.pb-total-card:after{display:none}.pb-total-top{grid-column:1/-1}.pb-total-top>span:first-child{font-size:8px;letter-spacing:.9px}.pb-status{font-size:9px}.pb-amount{grid-column:1;margin:1px 0 0;font-size:24px;line-height:1.08;letter-spacing:-.6px}.pb-total-foot{grid-column:2;grid-row:2;align-self:center;display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:8px;text-align:right}.pb-progress,.pb-breakdown{display:none}
 .pb-payment-card,.pb-confirm-card{margin:0;padding:8px 9px;border-radius:12px;box-shadow:none}.pb-section-title{gap:7px;margin:0 0 6px}.pb-step{width:23px;height:23px;flex:0 0 23px;border-radius:7px;font-size:9px}.pb-section-title h2{font-size:11px;line-height:1.2}.pb-section-title p{display:none}
 .pb-method{padding:5px 7px;gap:7px;border-radius:10px}.pb-method-icon{width:26px;height:26px;border-radius:8px;font-size:16px}.pb-method-copy b{font-size:11px}.pb-method-copy small{display:none}.pb-recommended{font-size:7px;padding:4px 5px}
 .pb-pay-actions{margin-top:5px}.pb-upi-button{min-height:34px;padding:6px 10px;border-radius:9px;font-size:11px;box-shadow:none}.pb-upi-button>span,.pb-upi-button b{font-size:15px}.pb-pay-actions>.muted{display:none}.pb-gateway-link{padding:5px;font-size:10px}
 .pb-qr-details{margin-top:5px;border-radius:10px}.pb-qr-details>summary{gap:7px;padding:5px 7px}.pb-qr-summary-icon{width:24px;height:24px;border-radius:7px;font-size:15px}.pb-qr-details>summary b{font-size:10px}.pb-qr-details>summary small{font-size:8px;margin-top:1px}.pb-qr-chevron{font-size:15px}.pb-qr-details .pb-qr-area{flex-direction:row!important;align-items:center!important;gap:8px;margin:0 6px 6px;padding:6px;text-align:left!important;border-radius:9px}.pb-qr-details .pb-qr-frame{flex:0 0 92px;width:92px;height:92px;padding:4px;border-radius:8px}.pb-qr-details .pb-qr-copy{width:auto;min-width:0}.pb-qr-copy b{font-size:10px}.pb-qr-copy p{font-size:8px;line-height:1.25;margin:2px 0 4px}.pb-qr-copy small,.pb-qr-copy small strong{font-size:8px;line-height:1.2}
 .pb-outline-button{padding:7px 9px;border-radius:9px;font-size:10px}.pb-confirm-card .pb-section-title{margin-bottom:5px}.pb-note{margin:6px 0;padding:7px;font-size:9px}.pb-form{gap:5px}.pb-form label{font-size:9px;margin-top:2px}.pb-form input{padding:8px 9px;font-size:12px}.pb-form small{font-size:8px}.pb-submit-button{min-height:36px;padding:6px 9px;font-size:10px;margin-top:3px}.pb-trust{display:none}
}
@media(max-width:600px) and (max-height:740px){.pb-checkout{gap:4px}.pb-total-card{padding:7px 9px}.pb-qr-details .pb-qr-frame{flex-basis:78px;width:78px;height:78px}.pb-payment-card,.pb-confirm-card{padding:6px 8px}.pb-member-identity{padding:5px 8px}}
/* Keep the homepage member carousel touch-scrollable in Android WebViews. */
.home-page .home-members{touch-action:pan-x!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-x:contain!important;}


/* Front-page tablet hero: prevent an oversized artwork-only header area. */
@media screen and (min-width:651px) and (max-width:1100px){
  .home-page .home-hero.home-hero-copy-right,
  .home-page .home-hero.home-hero-copy-left{min-height:250px !important;height:auto !important;}
  .home-page .home-hero .home-login-card{transform:none !important;}
}

/* Mobile: hide the notice title only; keep the notice list visible. */
@media screen and (max-width:650px){
  .home-page .home-notice-panel .home-panel-head{display:none !important;}
}
