.sm-wrap{max-width:1200px}.sm-cards{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:15px;margin:20px 0}.sm-card{background:#fff;border:1px solid #dcdcde;border-radius:10px;padding:18px;box-shadow:0 1px 2px rgba(0,0,0,.04)}.sm-card h3{margin:0 0 10px}.sm-card strong{font-size:26px}.sm-form{background:#fff;border:1px solid #dcdcde;border-radius:10px;padding:15px;margin:15px 0;display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:10px}.sm-form input,.sm-form select,.sm-form textarea{width:100%;max-width:100%}.sm-form textarea{grid-column:1/-1;min-height:70px}.sm-receipt{background:#fff;width:380px;border:1px dashed #333;padding:20px;margin:20px 0;text-align:left}.sm-receipt h2,.sm-receipt h3{text-align:center;margin:4px 0}@media print{#adminmenumain,#wpadminbar,.notice,.button,form{display:none!important}.sm-wrap{margin:0}.sm-receipt{border:1px solid #000;width:360px}}

.sm-month-grid{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:8px 14px;background:#fff;border:1px solid #ccd0d4;padding:12px;border-radius:8px;grid-column:1/-1}.sm-month-grid label{display:block;padding:6px 8px;background:#f6f7f7;border-radius:6px}.sm-form label{display:flex;flex-direction:column;gap:5px;font-weight:600}
@media(max-width:782px){.sm-month-grid{grid-template-columns:repeat(2,minmax(120px,1fr));}}

.sm-month-tools{grid-column:1/-1;display:flex;gap:8px;align-items:center}.sm-month-grid{grid-template-columns:repeat(12,minmax(58px,1fr));gap:5px;padding:8px}.sm-month-grid label{padding:4px 5px;text-align:center;font-size:12px}.sm-month-grid input{width:auto!important;vertical-align:middle}.sm-settlement{grid-column:1/-1;background:#fff8e5;border:1px solid #dba617;border-radius:8px;padding:10px}.sm-settlement label{display:block;margin-top:8px}
@media(max-width:1100px){.sm-month-grid{grid-template-columns:repeat(6,minmax(58px,1fr));}}
@media(max-width:782px){.sm-month-grid{grid-template-columns:repeat(3,minmax(58px,1fr));}}

.sm-modal{display:none;position:fixed;z-index:100000;inset:0;background:rgba(0,0,0,.45);align-items:flex-start;justify-content:center;overflow:auto;padding:45px 15px}.sm-modal.sm-modal-open{display:flex}.sm-modal-box{background:#fff;width:min(900px,96vw);border-radius:12px;box-shadow:0 15px 45px rgba(0,0,0,.25);padding:20px;position:relative}.sm-modal-close{position:absolute;right:12px;top:10px;border:0;background:#f0f0f1;border-radius:50%;width:32px;height:32px;font-size:22px;line-height:28px;cursor:pointer}.sm-form-modal{margin-top:10px}.sm-danger-box{background:#fff;border:1px solid #d63638;border-left:5px solid #d63638;border-radius:8px;padding:15px;max-width:760px}.sm-danger-box input{margin:8px 0;max-width:220px}.sm-danger-button{border-color:#d63638!important;color:#d63638!important}

.sm-member-toolbar{display:flex;align-items:center;gap:14px;justify-content:space-between;margin:12px 0}.sm-member-toolbar form{flex:1}.sm-search{width:350px;max-width:100%;padding:9px 13px;border-radius:6px}.sm-users-table th,.sm-users-table td{vertical-align:middle}.sm-users-table .button-primary{background:#4f46e5;border-color:#4f46e5;border-radius:7px;font-weight:700}.sm-profile-modal{background:#f8fbff;border-radius:14px}.sm-profile-head{display:flex;gap:14px;align-items:center;background:#eef3ff;border:1px solid #d9e3ff;border-radius:12px;padding:12px 16px;margin-bottom:10px}.sm-profile-head h2{margin:0}.sm-profile-head span{background:#fff;border:1px solid #dbe3f0;border-radius:20px;padding:3px 10px;font-size:12px;font-weight:700}.sm-avatar{width:48px;height:48px;border-radius:50%;background:#615cf6;color:#fff;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:800;box-shadow:0 5px 15px rgba(79,70,229,.35)}.sm-tabs{display:flex;gap:14px;border-bottom:1px solid #dbe3f0;margin-bottom:18px}.sm-tab{border:0;background:transparent;padding:13px 18px;cursor:pointer;font-weight:700;color:#52647e}.sm-tab.active{background:#4f46e5;color:#fff;border-radius:7px;box-shadow:0 8px 16px rgba(79,70,229,.25)}.sm-tab-panel{display:none}.sm-tab-panel.active{display:block}.sm-mini-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:10px 0 16px}.sm-mini-cards>div{background:#fff;border:1px solid #dfe7f2;border-radius:10px;text-align:center;padding:14px}.sm-mini-cards b{display:block;font-size:22px;color:#111827}.sm-mini-cards small{font-size:11px;font-weight:800;color:#60708a}.sm-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sm-info-card,.sm-withdraw,.sm-action-row{background:#fff;border:1px solid #dfe7f2;border-radius:12px;padding:16px}.sm-info-card h3{margin:0 0 10px;color:#35445b}.sm-info-card p{display:flex;justify-content:space-between;border-bottom:1px solid #eef2f7;padding:8px 0;margin:0;gap:15px}.sm-info-card p span{text-align:right}.sm-action-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.sm-withdraw{border-top:4px solid #15c48b}.sm-danger-button{background:#ef4444!important;color:#fff!important;border-color:#ef4444!important}.sm-help code{font-weight:700}.sm-front-dashboard{max-width:900px;margin:20px auto;font-family:Arial,sans-serif}.sm-front-dashboard .sm-profile-head,.sm-front-dashboard .sm-info-card,.sm-front-dashboard .sm-mini-cards>div{background:#fff}
@media(max-width:782px){.sm-mini-cards,.sm-profile-grid{grid-template-columns:1fr}.sm-member-toolbar{display:block}.sm-search{width:100%;margin-bottom:10px}.sm-tabs{overflow:auto}.sm-tab{white-space:nowrap}}

/* v2.4 Frontend Member Portal */
.sm-portal{box-sizing:border-box;font-family:Inter,Arial,sans-serif;color:#1f2937}.sm-portal *{box-sizing:border-box}.sm-auth-page{max-width:1120px;margin:28px auto;padding:0 16px}.sm-auth-hero{background:linear-gradient(135deg,#eef2ff,#f8fafc);border:1px solid #dbe4ff;border-radius:18px;padding:26px 30px;margin-bottom:18px}.sm-auth-hero h2{font-size:32px;margin:0 0 6px;font-weight:800}.sm-auth-hero p{margin:0;color:#64748b}.sm-front-notice{max-width:1120px;margin:12px auto;padding:12px 16px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:10px;color:#1d4ed8}.sm-auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.sm-auth-card{background:#fff;border:1px solid #dfe7f3;border-radius:16px;box-shadow:0 10px 28px rgba(30,41,59,.06);padding:22px}.sm-auth-card h3{margin:0 0 16px;font-size:22px}.sm-auth-form{display:grid;grid-template-columns:1fr;gap:13px}.sm-auth-form label,.sm-edit-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700;color:#475569}.sm-auth-form input,.sm-edit-form input,.sm-edit-form textarea{width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:11px 12px;font-size:14px;background:#fff}.sm-auth-form button,.sm-edit-form button{border:0;border-radius:10px;background:#4f46e5;color:#fff;font-weight:800;padding:12px 16px;cursor:pointer;box-shadow:0 8px 18px rgba(79,70,229,.22)}.sm-user-dash{max-width:1120px;margin:20px auto;display:grid;grid-template-columns:220px 1fr;gap:18px;padding:0 16px}.sm-dash-sidebar{background:#fff;border:1px solid #dfe7f3;border-radius:16px;padding:20px 16px;box-shadow:0 10px 28px rgba(30,41,59,.06);min-height:520px;text-align:center}.sm-big-avatar{width:76px;height:76px;margin:0 auto 10px;border-radius:999px;background:#5b55f3;color:#fff;display:flex;align-items:center;justify-content:center;font-size:34px;font-weight:900;box-shadow:0 12px 25px rgba(79,70,229,.28)}.sm-dash-sidebar h3{margin:4px 0 6px}.sm-member-badge{display:inline-block;border:1px solid #dbe4ff;background:#f8fbff;border-radius:8px;padding:4px 8px;font-size:11px;font-weight:800;color:#475569}.sm-dash-sidebar nav{border-top:1px dashed #cbd5e1;margin:18px 0;padding-top:16px;text-align:left}.sm-dash-sidebar nav a{display:block;text-decoration:none;padding:12px 13px;border-radius:9px;color:#475569;font-weight:700;margin-bottom:7px}.sm-dash-sidebar nav a.active,.sm-dash-sidebar nav a:hover{background:#5b55f3;color:#fff}.sm-logout{border:0;background:#ef4444;color:#fff;border-radius:9px;padding:11px 14px;width:100%;font-weight:800;cursor:pointer}.sm-dash-main{background:#fff;border:1px solid #dfe7f3;border-radius:16px;padding:20px;box-shadow:0 10px 28px rgba(30,41,59,.06);min-height:520px}.sm-dash-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.sm-dash-title h2{margin:0;font-size:24px}.sm-dash-title span{border-radius:999px;background:#eef2ff;color:#4f46e5;padding:7px 14px;font-weight:800}.sm-front-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:14px}.sm-front-cards>div{border:1px solid #e2e8f0;border-bottom:3px solid #5b55f3;border-radius:12px;padding:18px;background:#fff}.sm-front-cards small{display:block;color:#64748b;font-size:11px;font-weight:900;margin-bottom:9px}.sm-front-cards b{font-size:26px;color:#1f2937}.sm-front-panel{border:1px solid #e2e8f0;border-radius:14px;padding:18px;margin-top:20px}.sm-front-panel h3{margin:0 0 14px}.sm-edit-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.sm-edit-form label:has(textarea){grid-column:1/-1}.sm-edit-form textarea{min-height:80px}.sm-edit-form button{grid-column:1/-1;max-width:220px}
@media(max-width:900px){.sm-auth-grid,.sm-user-dash{grid-template-columns:1fr}.sm-dash-sidebar{min-height:auto}.sm-front-cards,.sm-edit-form{grid-template-columns:1fr}.sm-auth-hero h2{font-size:26px}}

/* v2.5 Responsive Window UI for frontend member dashboard */
.sm-user-window{max-width:1180px;margin:24px auto;padding:0 14px;font-family:Inter,Arial,sans-serif;color:#14213d;box-sizing:border-box}.sm-user-window *{box-sizing:border-box}.sm-user-window .sm-front-notice{margin:0 0 14px;padding:12px 16px;border-radius:12px;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8}.sm-window-shell{width:100%;background:#fff;border:1px solid #dbe5f5;border-radius:18px;box-shadow:0 18px 45px rgba(15,23,42,.08);overflow:hidden}.sm-window-top{height:46px;background:linear-gradient(135deg,#f7faff,#eef4ff);border-bottom:1px solid #dbe5f5;display:flex;align-items:center;gap:8px;padding:0 18px}.sm-window-top span{width:12px;height:12px;border-radius:50%;background:#ef4444}.sm-window-top span:nth-child(2){background:#f59e0b}.sm-window-top span:nth-child(3){background:#22c55e}.sm-window-top strong{margin-left:10px;font-size:14px;color:#51627a}.sm-window-body{display:grid;grid-template-columns:245px minmax(0,1fr);gap:0;align-items:stretch}.sm-window-body .sm-dash-sidebar{border:0;border-right:1px solid #e2e8f0;border-radius:0;box-shadow:none;min-height:640px;background:#fbfdff}.sm-window-body .sm-dash-main{border:0;border-radius:0;box-shadow:none;min-width:0;min-height:640px;background:#fff;padding:24px}.sm-window-body .sm-front-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin-bottom:0}.sm-window-body .sm-front-cards>div{min-width:0;overflow:hidden;border-radius:14px;background:linear-gradient(180deg,#fff,#fbfdff);box-shadow:0 8px 20px rgba(15,23,42,.04)}.sm-window-body .sm-front-cards b{display:block;font-size:clamp(20px,2.5vw,30px);white-space:normal;word-break:break-word;line-height:1.15}.sm-window-body .sm-dash-title{border-bottom:1px dashed #d8e2f0;padding-bottom:14px}.sm-window-body .sm-front-panel{background:#fbfdff}.sm-window-body .sm-edit-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.sm-window-body .sm-edit-form label{min-width:0}.sm-window-body .sm-edit-form input,.sm-window-body .sm-edit-form textarea{min-width:0;max-width:100%}.sm-window-body .sm-edit-form label:has(textarea){grid-column:1/-1}
@media(max-width:900px){.sm-user-window{padding:0 10px}.sm-window-body{grid-template-columns:1fr}.sm-window-body .sm-dash-sidebar{min-height:auto;border-right:0;border-bottom:1px solid #e2e8f0}.sm-window-body .sm-dash-sidebar nav{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.sm-window-body .sm-dash-sidebar nav a{text-align:center;margin:0}.sm-window-body .sm-dash-main{min-height:auto;padding:18px}.sm-window-body .sm-front-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.sm-window-body .sm-edit-form{grid-template-columns:1fr}}
@media(max-width:560px){.sm-window-top strong{font-size:12px}.sm-window-body .sm-front-cards{grid-template-columns:1fr}.sm-window-body .sm-dash-sidebar nav{grid-template-columns:1fr}.sm-window-body .sm-dash-title{display:block}.sm-window-body .sm-dash-title span{display:inline-block;margin-top:8px}.sm-window-body .sm-dash-main{padding:14px}.sm-window-body .sm-front-panel{padding:14px}}

/* v2.6 frontend member app */
.sm-member-app{max-width:1180px;margin:0 auto;font-family:Inter,Arial,sans-serif;color:#172033}.sm-member-app *{box-sizing:border-box}.sm-app-shell{display:grid;grid-template-columns:260px 1fr;gap:18px;background:#f8fbff;border:1px solid #d7e2f2;border-radius:16px;padding:18px;box-shadow:0 16px 35px rgba(30,60,120,.08)}.sm-app-sidebar{background:#fff;border:1px solid #dce6f5;border-radius:16px;padding:18px;min-height:560px;display:flex;flex-direction:column;gap:16px}.sm-app-profile{text-align:center;border-bottom:1px dashed #cbd8ec;padding-bottom:16px}.sm-app-profile img{width:82px;height:82px;border-radius:50%;object-fit:cover;border:4px solid #fff;box-shadow:0 10px 22px rgba(87,77,235,.25)}.sm-app-profile h3{margin:10px 0 5px;font-size:18px}.sm-tab-nav{display:flex;flex-direction:column;gap:8px}.sm-tab-nav button{border:0;border-radius:10px;background:transparent;color:#51627d;font-weight:700;text-align:left;padding:12px 14px;cursor:pointer}.sm-tab-nav button.active,.sm-tab-nav button:hover{background:#5a4df3;color:#fff;box-shadow:0 8px 18px rgba(90,77,243,.22)}.sm-app-content{background:#fff;border:1px solid #dce6f5;border-radius:16px;padding:22px;min-height:560px}.sm-tab-panel{display:none}.sm-tab-panel.active{display:block;animation:smfade .18s ease}.sm-dash-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.sm-dash-title h2{margin:0;font-size:24px}.sm-dash-title span{background:#edeaff;color:#5a4df3;border-radius:999px;padding:6px 12px;font-weight:800}.sm-front-cards{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:14px}.sm-front-cards>div{background:linear-gradient(180deg,#fff,#fbfdff);border:1px solid #dde7f6;border-bottom:3px solid #5a4df3;border-radius:12px;padding:18px;min-height:92px}.sm-front-cards small{display:block;color:#637391;font-weight:800;font-size:11px;margin-bottom:10px}.sm-front-cards b{font-size:24px}.sm-edit-form{margin:0}.sm-form-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:14px}.sm-form-grid label,.sm-edit-form label{font-weight:700;color:#41516b}.sm-form-grid input,.sm-form-grid textarea,.sm-edit-form input,.sm-edit-form textarea{width:100%;margin-top:6px;border:1px solid #cfdbee;border-radius:9px;padding:10px;background:#fff}.sm-form-grid .wide{grid-column:1/-1}.sm-edit-form button,.sm-auth-form button{background:#5a4df3;color:#fff;border:0;border-radius:10px;padding:12px 18px;font-weight:800;margin-top:16px;cursor:pointer}.sm-logout{margin-top:auto;background:#ef4444!important;color:#fff!important;border:0;border-radius:10px;padding:12px 14px;font-weight:800;cursor:pointer}.sm-front-notice{max-width:1180px;margin:0 auto 12px;padding:12px 16px;background:#eaf2ff;border:1px solid #b9d2ff;border-radius:10px;color:#174ea6}.sm-auth-grid{display:grid!important;grid-template-columns:repeat(2,minmax(280px,1fr));gap:16px}.sm-reset-card{grid-column:1/-1}.sm-auth-form input{width:100%;padding:10px;border:1px solid #cfdbee;border-radius:9px;margin:6px 0 10px}@keyframes smfade{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:none}}@media(max-width:850px){.sm-app-shell{grid-template-columns:1fr;padding:10px}.sm-app-sidebar{min-height:auto}.sm-tab-nav{display:grid;grid-template-columns:repeat(2,1fr)}.sm-app-content{padding:14px;min-height:auto}.sm-front-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.sm-form-grid{grid-template-columns:1fr}.sm-auth-grid{grid-template-columns:1fr!important}}@media(max-width:480px){.sm-tab-nav{grid-template-columns:1fr}.sm-front-cards{grid-template-columns:1fr}.sm-dash-title{align-items:flex-start;gap:8px;flex-direction:column}.sm-app-shell{border-radius:10px}.sm-app-sidebar,.sm-app-content{border-radius:10px}}

/* v2.9 Media / Member folder UI */
.sm-media-filter{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid #dcdcde;border-radius:10px;padding:12px;margin:14px 0;max-width:900px}.sm-media-filter input{min-width:260px}.sm-media-filter select{min-width:240px}.sm-table td{vertical-align:middle}.sm-edit-form small{display:block;color:#64748b;margin:3px 0 6px;font-weight:600}.sm-danger-button{background:#ef4444!important;color:#fff!important;border-color:#ef4444!important}
@media(max-width:782px){.sm-media-filter{display:grid;grid-template-columns:1fr}.sm-media-filter input,.sm-media-filter select{width:100%;min-width:0}}

/* v3.0 Frontend profile polish */
.sm-profile-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;background:linear-gradient(135deg,#f5f7ff,#eef6ff);border:1px solid #dce6f5;border-radius:14px;padding:16px 18px}.sm-profile-title h3{margin:0;font-size:24px;color:#172033}.sm-profile-title p{margin:4px 0 0;color:#64748b}.sm-profile-title span{background:#5a4df3;color:#fff;border-radius:999px;padding:7px 12px;font-weight:900;letter-spacing:.5px}.sm-profile-modern{display:grid;grid-template-columns:180px 180px 1fr;gap:16px;align-items:start}.sm-doc-card{background:#fbfdff;border:1px solid #dce6f5;border-radius:16px;padding:14px;text-align:center;box-shadow:0 10px 22px rgba(30,60,120,.06)}.sm-doc-preview{height:130px;border-radius:14px;background:#f1f5ff;border:1px dashed #c7d5ee;display:flex;align-items:center;justify-content:center;overflow:hidden;margin-bottom:12px}.sm-doc-preview img{width:100%;height:100%;object-fit:cover}.sm-doc-preview a{font-weight:900;text-decoration:none;background:#fff;color:#5a4df3;border:1px solid #d9ddff;border-radius:10px;padding:10px 14px}.sm-doc-icon{font-size:44px}.sm-file-button{display:block;background:#5a4df3!important;color:#fff!important;border-radius:10px;padding:11px 12px;font-weight:900;cursor:pointer;text-align:center}.sm-file-button input{display:none!important}.sm-profile-fields{background:#fff;border:1px solid #dce6f5;border-radius:16px;padding:16px}.sm-profile-fields .sm-form-grid{gap:12px}.sm-profile-fields textarea{min-height:92px}.sm-edit-form .sm-profile-modern + button{float:right;margin-top:16px;min-width:180px}.sm-edit-form .sm-profile-modern:after{content:"";display:block;clear:both}@media(max-width:980px){.sm-profile-modern{grid-template-columns:1fr 1fr}.sm-profile-fields{grid-column:1/-1}}@media(max-width:560px){.sm-profile-title{align-items:flex-start;flex-direction:column}.sm-profile-modern{grid-template-columns:1fr}.sm-doc-preview{height:170px}.sm-edit-form .sm-profile-modern + button{float:none;width:100%}}

/* v3.2 Pro Payment UI */
.sm-pay-wrap .sm-pay-cards{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:14px;margin:16px 0}.sm-payment-window{display:grid;grid-template-columns:minmax(360px,1.05fr) minmax(320px,.95fr);gap:18px;align-items:start}.sm-payment-panel,.sm-payment-preview,.sm-history-box{background:#fff;border:1px solid #dbe5f2;border-radius:16px;box-shadow:0 12px 30px rgba(15,23,42,.06);padding:20px;margin:0 0 18px}.sm-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #edf2f7;padding-bottom:12px;margin-bottom:16px}.sm-section-head h2{margin:0;font-size:22px}.sm-section-head span{background:#eef2ff;color:#5145cd;border-radius:999px;padding:6px 10px;font-weight:800;font-size:12px}.sm-payment-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.sm-payment-form label{font-weight:800;color:#334155}.sm-payment-form input,.sm-payment-form select,.sm-payment-form textarea{width:100%;margin-top:6px;border:1px solid #cbd5e1;border-radius:10px;padding:10px 12px;background:#fff}.sm-payment-form textarea{min-height:82px}.sm-payment-form .wide{grid-column:1/-1}.sm-pay-submit{grid-column:1/-1;min-height:42px;border-radius:10px!important;font-weight:900!important;background:#4f46e5!important;border-color:#4f46e5!important}.sm-balance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sm-balance-grid>div{background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid #dfe7f2;border-radius:14px;padding:16px}.sm-balance-grid small{display:block;color:#64748b;font-weight:900;text-transform:uppercase;font-size:11px;margin-bottom:8px}.sm-balance-grid b{font-size:26px;line-height:1.15;color:#111827}.sm-pay-note{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:12px;padding:12px 14px;margin:14px 0}.sm-balance-summary{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:12px}.sm-balance-summary p{display:flex;justify-content:space-between;gap:12px;margin:0;padding:8px 0;border-bottom:1px dashed #cbd5e1}.sm-balance-summary p:last-child{border-bottom:0}.sm-status{display:inline-block;border-radius:999px;padding:4px 10px;font-weight:900;font-size:12px}.sm-status-paid{background:#dcfce7;color:#166534}.sm-status-due{background:#fee2e2;color:#991b1b}.sm-status-advance{background:#dbeafe;color:#1d4ed8}.sm-print-area{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:16px;padding:16px;margin:16px 0}.sm-history-box{overflow:auto}.sm-history-box table{min-width:900px}.sm-pay-wrap .sm-card{min-height:104px}.sm-pay-wrap .sm-card h3{font-size:14px;color:#64748b}.sm-pay-wrap .sm-card strong{font-size:23px;word-break:break-word}@media(max-width:1050px){.sm-payment-window,.sm-pay-wrap .sm-pay-cards{grid-template-columns:1fr 1fr}}@media(max-width:782px){.sm-payment-window,.sm-pay-wrap .sm-pay-cards,.sm-payment-form,.sm-balance-grid{grid-template-columns:1fr}.sm-section-head{align-items:flex-start;flex-direction:column}.sm-payment-panel,.sm-payment-preview,.sm-history-box{padding:14px}.sm-balance-grid b{font-size:22px}}

/* v3.4 Transactions + Pro Receipt */
.sm-status-pending{background:#fef3c7;color:#92400e}.sm-status-approved{background:#dcfce7;color:#166534}.sm-status-rejected{background:#fee2e2;color:#991b1b}.sm-filter{background:#fff;border:1px solid #dcdcde;border-radius:10px;padding:12px;margin:12px 0;display:flex;gap:10px;align-items:center}.sm-receipt-pro{width:720px;max-width:100%;border:1px solid #111827;border-radius:14px;padding:0;overflow:hidden;background:#fff;color:#111827}.sm-r-head{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#f8fafc;border-bottom:2px solid #111827;padding:18px 20px}.sm-r-head h2{font-size:24px;margin:0;text-align:left}.sm-r-head h3{font-size:18px;margin:4px 0 0;text-align:left;text-transform:uppercase;letter-spacing:1px}.sm-r-qr{width:96px;height:96px;border:1px solid #d1d5db;background:#fff;padding:4px}.sm-r-meta{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #e5e7eb}.sm-r-meta span{padding:12px 18px;border-right:1px solid #e5e7eb}.sm-r-meta span:last-child{border-right:0}.sm-r-meta b,.sm-r-summary span{display:block;color:#64748b;font-size:11px;text-transform:uppercase;letter-spacing:.5px}.sm-r-member{padding:14px 18px;border-bottom:1px solid #e5e7eb}.sm-r-member p{margin:5px 0}.sm-r-table{width:calc(100% - 36px);margin:16px 18px;border-collapse:collapse}.sm-r-table th,.sm-r-table td{border:1px solid #d1d5db;padding:10px;text-align:left}.sm-r-table th{background:#f1f5f9}.sm-r-table td:last-child{text-align:right;font-weight:800}.sm-r-paid td{background:#ecfdf5;font-size:16px}.sm-r-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:0 18px 16px}.sm-r-summary p{border:1px solid #e5e7eb;border-radius:10px;padding:10px;margin:0;background:#fbfdff}.sm-r-summary b{font-size:15px}.sm-r-note{margin:0 18px 16px;background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;padding:10px}.sm-r-footer{display:flex;justify-content:space-between;gap:20px;padding:34px 22px 14px}.sm-r-footer span{border-top:1px solid #111827;padding-top:8px;min-width:180px;text-align:center}.sm-r-thanks{text-align:center;background:#f8fafc;margin:0;padding:12px;font-weight:800}.sm-modal-box form + form{margin-top:14px;border-top:1px dashed #cbd5e1;padding-top:14px}@media(max-width:782px){.sm-r-summary{grid-template-columns:1fr 1fr}.sm-r-meta{grid-template-columns:1fr}.sm-r-meta span{border-right:0;border-bottom:1px solid #e5e7eb}.sm-r-head{align-items:flex-start;flex-direction:column}.sm-receipt-pro{width:100%}}@media print{.sm-receipt-pro{width:100%!important;border:1px solid #000!important;border-radius:0}.sm-r-qr{display:block!important}body{background:#fff!important}}
/* Somiti Manager v4.2 PRO FINAL - frontend layout fix
   Old PHP/database/admin code preserved. This file only fixes frontend dashboard/payment layout. */

.sm-portal, .sm-portal * { box-sizing: border-box; }
.sm-portal { font-family: Inter, Arial, sans-serif; color:#06183a; }

/* Main member app layout */
.sm-member-app.sm-user-window { max-width: 1180px; margin: 24px auto; padding: 0 14px; }
.sm-member-app .sm-app-shell {
    display: grid !important;
    grid-template-columns: 230px minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: stretch !important;
    width: 100% !important;
    min-height: 560px;
    background: #f4f7fc;
    border: 1px solid #d9e6f7;
    border-radius: 14px;
    padding: 14px;
    overflow: visible !important;
}
.sm-member-app .sm-app-sidebar {
    width: 100% !important;
    min-width: 0 !important;
    position: static !important;
    background:#fff;
    border:1px solid #d8e5f6;
    border-radius:12px;
    padding:18px 12px;
    display:flex;
    flex-direction:column;
    box-shadow:0 12px 26px rgba(15,23,42,.05);
}
.sm-member-app .sm-app-content {
    min-width: 0 !important;
    width: 100% !important;
    background:#fff;
    border:1px solid #d8e5f6;
    border-radius:12px;
    padding:20px;
    box-shadow:0 12px 26px rgba(15,23,42,.05);
    overflow: hidden;
}

/* Profile/sidebar */
.sm-member-app .sm-app-profile { text-align:center; padding-bottom:16px; border-bottom:1px dashed #cbd5e1; margin-bottom:14px; }
.sm-member-app .sm-app-profile img, .sm-member-app .sm-big-avatar { width:72px !important; height:72px !important; border-radius:50%; object-fit:cover; margin:0 auto 10px; display:flex; align-items:center; justify-content:center; }
.sm-member-app .sm-app-profile h3 { font-size:14px; margin:7px 0 7px; color:#06183a; font-weight:700; }
.sm-member-app .sm-member-badge { display:inline-block; font-size:10px; color:#0f2a5f; background:#f8fbff; border:1px solid #cfe0ff; border-radius:7px; padding:4px 8px; font-weight:800; }
.sm-member-app .sm-tab-nav { display:flex !important; flex-direction:column !important; gap:8px; margin:0 0 14px; }
.sm-member-app .sm-tab-nav button {
    width:100% !important; text-align:left; border:0; border-radius:8px; padding:11px 12px;
    color:#0f2a5f; background:transparent; font-size:13px; font-weight:800; cursor:pointer;
}
.sm-member-app .sm-tab-nav button.active, .sm-member-app .sm-tab-nav button:hover { background:linear-gradient(135deg,#5b55f3,#7c3aed); color:#fff; box-shadow:0 8px 18px rgba(91,85,243,.22); }
.sm-member-app .sm-logout { width:100%; margin-top:auto; border:0; border-radius:9px; padding:11px 12px; background:#ef4444!important; color:#fff!important; font-weight:900; cursor:pointer; }

/* Tabs */
.sm-member-app .sm-tab-panel { display:none !important; width:100% !important; min-width:0 !important; }
.sm-member-app .sm-tab-panel.active { display:block !important; }
.sm-member-app .sm-dash-title, .sm-member-app .sm-profile-title { display:flex; align-items:center; justify-content:space-between; gap:14px; margin:0 0 16px; }
.sm-member-app .sm-dash-title h2, .sm-member-app .sm-profile-title h3 { margin:0; font-size:24px; line-height:1.25; }
.sm-member-app .sm-dash-title span, .sm-member-app .sm-profile-title span { background:#673de6; color:#fff; border-radius:999px; padding:8px 13px; font-weight:900; }

/* Dashboard cards - prevents overlapping */
.sm-member-app .sm-front-cards {
    display:grid !important;
    grid-template-columns: repeat(4, minmax(150px, 1fr)) !important;
    gap:14px !important;
    width:100% !important;
    margin:0 !important;
    align-items:stretch !important;
}
.sm-member-app .sm-front-cards > div {
    width:auto !important; min-width:0 !important; max-width:none !important;
    position:static !important; float:none !important; clear:none !important;
    background:#fff; border:1px solid #dfe8f6; border-radius:12px; padding:18px 16px;
    box-shadow:0 10px 24px rgba(15,23,42,.06); overflow:hidden;
}
.sm-member-app .sm-front-cards small { display:block; color:#65758f; font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.35px; margin-bottom:9px; white-space:normal; }
.sm-member-app .sm-front-cards b { display:block; color:#06183a; font-size:22px; line-height:1.25; word-break:break-word; white-space:normal; }

/* Payment page */
.sm-member-app .sm-payment-window { display:grid !important; grid-template-columns:minmax(280px, .9fr) minmax(0, 1.1fr) !important; gap:16px !important; align-items:start !important; }
.sm-member-app .sm-payment-form { display:grid !important; grid-template-columns:1fr 1fr !important; gap:12px !important; background:#fff; }
.sm-member-app .sm-payment-form label { display:flex; flex-direction:column; gap:6px; font-weight:800; color:#172033; }
.sm-member-app .sm-payment-form input,
.sm-member-app .sm-payment-form select,
.sm-member-app .sm-payment-form textarea { width:100%; max-width:100%; border:1px solid #cbd5e1; border-radius:10px; padding:10px 12px; background:#fff; }
.sm-member-app .sm-payment-form textarea { min-height:78px; }
.sm-member-app .sm-payment-form button { grid-column:1/-1; border:0; border-radius:10px; padding:11px 15px; background:#4f46e5; color:#fff; font-weight:900; cursor:pointer; }
.sm-member-app .sm-payment-preview { min-width:0; overflow-x:auto; background:#fff; border:1px solid #dfe8f6; border-radius:14px; padding:16px; }
.sm-member-app .sm-payment-preview table { width:100%; min-width:660px; border-collapse:collapse; }
.sm-member-app .sm-payment-preview th,
.sm-member-app .sm-payment-preview td { padding:10px; border-bottom:1px solid #e5e7eb; text-align:left; vertical-align:middle; }
.sm-member-app .sm-payment-preview th { background:#f8fafc; font-weight:900; }
.sm-member-app .button { display:inline-block; border-radius:8px; padding:7px 10px; background:#eef2ff; color:#4338ca; text-decoration:none; font-weight:800; border:1px solid #c7d2fe; }

/* Status badges */
.sm-status { display:inline-block; border-radius:999px; padding:5px 9px; font-size:11px; font-weight:900; }
.sm-status-approved { background:#dcfce7; color:#166534; }
.sm-status-pending { background:#fef3c7; color:#92400e; }
.sm-status-rejected { background:#fee2e2; color:#991b1b; }

/* Receipt print popup/page */
.sm-receipt-pro { margin:16px auto; }
.sm-print-receipt-btn { display:inline-block; margin:10px 0; border:0; border-radius:9px; padding:10px 14px; background:#111827; color:#fff; font-weight:900; cursor:pointer; }

@media (max-width: 1050px) {
    .sm-member-app .sm-front-cards { grid-template-columns: repeat(2, minmax(150px, 1fr)) !important; }
    .sm-member-app .sm-payment-window { grid-template-columns:1fr !important; }
}
@media (max-width: 760px) {
    .sm-member-app .sm-app-shell { grid-template-columns:1fr !important; }
    .sm-member-app .sm-app-content { padding:14px; }
    .sm-member-app .sm-payment-form { grid-template-columns:1fr !important; }
}
@media (max-width: 480px) {
    .sm-member-app .sm-front-cards { grid-template-columns:1fr !important; }
    .sm-member-app .sm-dash-title, .sm-member-app .sm-profile-title { align-items:flex-start; flex-direction:column; }
}


/* v4.8 Accounting tabs */
.sm-accounting-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 16px;}
.sm-accounting-tabs .button{border-radius:999px;padding:6px 18px;font-weight:700;}
.sm-acc-section{display:none;}
.sm-acc-section.active{display:block;}
.sm-accounting-ledger{margin-top:18px;}
.sm-accounting-ledger .sm-status-approved{background:#e7f8ed;color:#166534;}
.sm-accounting-ledger .sm-status-rejected{background:#fff0f0;color:#991b1b;}

/* v4.9 Accounting form visibility fix */
.sm-accounting-tabs a.button{ text-decoration:none; display:inline-flex; align-items:center; min-height:34px; }
.sm-acc-section.active{ display:block !important; }
.sm-accounting-form{ display:grid !important; grid-template-columns:1fr 1fr; gap:14px; }
.sm-accounting-form .wide{ grid-column:1/-1; }
.sm-accounting-form input,.sm-accounting-form select,.sm-accounting-form textarea{ min-height:42px; }
.sm-accounting-form textarea{ min-height:96px; }
@media(max-width:782px){ .sm-accounting-form{ grid-template-columns:1fr !important; } }


/* v5.0 Accounting tab visibility + form final fix */
.sm-accounting-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 18px!important;}
.sm-accounting-tabs .button{border-radius:999px!important;padding:7px 20px!important;font-weight:800!important;text-decoration:none!important;}
.sm-acc-section{display:none!important;margin-top:12px!important;}
.sm-acc-section.active{display:block!important;}
#smExpenses.active,#smIncome.active,#smCollectPayment.active{display:block!important;}
#smExpenses .sm-payment-panel,#smIncome .sm-payment-panel{display:block!important;max-width:980px!important;}
.sm-accounting-form{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important;}
.sm-accounting-form label{display:flex!important;flex-direction:column!important;gap:7px!important;font-weight:800!important;color:#1f2a44!important;}
.sm-accounting-form input,.sm-accounting-form select,.sm-accounting-form textarea{
    display:block!important;width:100%!important;min-height:44px!important;border:1px solid #cbd5e1!important;border-radius:10px!important;padding:10px 12px!important;background:#fff!important;
}
.sm-accounting-form textarea{min-height:100px!important;}
.sm-accounting-form .wide{grid-column:1/-1!important;}
.sm-accounting-form .sm-pay-submit{grid-column:1/-1!important;}
@media(max-width:782px){.sm-accounting-form{grid-template-columns:1fr!important;}}

/* v5.1 unified transactions */
.sm-transactions-table th,.sm-transactions-table td{font-size:12px;vertical-align:top;}
.sm-transactions-table td:nth-child(8),.sm-transactions-table td:nth-child(9){max-width:180px;white-space:normal;}
.sm-status-pending{background:#fff3cd;color:#8a5a00;}
.sm-status-approved{background:#d1fae5;color:#065f46;}
.sm-status-rejected{background:#fee2e2;color:#991b1b;}
.sm-action-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px;align-items:flex-start;}
.sm-action-row form{background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;padding:10px;min-width:210px;}
.sm-action-row textarea{width:100%;min-height:60px;margin-bottom:8px;}


/* v5.2 Investment tab + dashboard accounting cards */
#smInvestment.active{display:block!important;}
.sm-acc-section.active{display:block!important;}
.sm-accounting-tabs .button.active{background:#0b69a8!important;color:#fff!important;border-color:#0b69a8!important;}


/* v5.3 fund source cards/columns */
.sm-source-balance{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:14px;margin:14px 0;}
.sm-source-balance .sm-card{margin:0!important;}
@media(max-width:782px){.sm-source-balance{grid-template-columns:1fr;}}


/* v5.4 Professional Backend Dashboard */
.sm-dashboard-pro{
    max-width: 1280px;
}
.sm-dashboard-pro .sm-dash-hero{
    margin: 18px 0 22px;
    padding: 26px 28px;
    border-radius: 22px;
    background: linear-gradient(135deg,#0f172a 0%,#1d4ed8 52%,#7c3aed 100%);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 22px 50px rgba(15,23,42,.18);
    overflow: hidden;
    position: relative;
}
.sm-dashboard-pro .sm-dash-hero:after{
    content:"";
    position:absolute;
    right:-80px;
    top:-80px;
    width:260px;
    height:260px;
    border-radius:50%;
    background: rgba(255,255,255,.12);
}
.sm-dashboard-pro .sm-dash-kicker{
    display:inline-flex;
    padding:6px 12px;
    border-radius:999px;
    background:rgba(255,255,255,.14);
    font-size:12px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    margin-bottom:10px;
}
.sm-dashboard-pro .sm-dash-hero h1{
    color:#fff;
    margin:0;
    font-size:34px;
    font-weight:900;
    line-height:1.15;
}
.sm-dashboard-pro .sm-dash-hero p{
    margin:8px 0 0;
    color:rgba(255,255,255,.82);
    font-size:14px;
}
.sm-dashboard-pro .sm-dash-date{
    position:relative;
    z-index:1;
    background:rgba(255,255,255,.16);
    border:1px solid rgba(255,255,255,.25);
    border-radius:16px;
    padding:14px 18px;
    font-weight:800;
    white-space:nowrap;
}
.sm-dashboard-pro .sm-dash-cards,
.sm-dashboard-pro .sm-cards{
    display:grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap:18px !important;
    align-items:stretch;
}
.sm-dashboard-pro .sm-pro-card,
.sm-dashboard-pro .sm-card{
    background:#fff !important;
    border:1px solid #e5edf7 !important;
    border-radius:18px !important;
    padding:20px 20px 18px !important;
    box-shadow:0 12px 30px rgba(15,23,42,.07) !important;
    min-height:118px;
    transition:.18s ease;
    position:relative;
    overflow:hidden;
}
.sm-dashboard-pro .sm-pro-card:hover{
    transform:translateY(-3px);
    box-shadow:0 18px 38px rgba(15,23,42,.11) !important;
}
.sm-dashboard-pro .sm-pro-card:before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:4px;
    background:linear-gradient(90deg,#2563eb,#7c3aed);
}
.sm-dashboard-pro .sm-card-top{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:14px;
}
.sm-dashboard-pro .sm-card-icon{
    width:34px;
    height:34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    background:#eef2ff;
    color:#3730a3;
    font-weight:900;
    font-size:15px;
    flex:0 0 auto;
}
.sm-dashboard-pro .sm-card h3{
    margin:0 !important;
    color:#475569 !important;
    font-size:14px !important;
    font-weight:800 !important;
    line-height:1.35;
}
.sm-dashboard-pro .sm-card strong{
    display:block;
    color:#0f172a !important;
    font-size:28px !important;
    font-weight:900 !important;
    letter-spacing:-.02em;
    line-height:1.1;
    word-break:break-word;
}
.sm-dashboard-pro .sm-dash-note{
    margin-top:20px;
    padding:16px 18px;
    border-radius:16px;
    background:#fff7ed;
    border:1px solid #fed7aa;
    color:#7c2d12;
    font-size:13px;
    line-height:1.7;
    box-shadow:0 10px 24px rgba(251,146,60,.08);
}
@media (max-width: 1200px){
    .sm-dashboard-pro .sm-dash-cards,
    .sm-dashboard-pro .sm-cards{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width: 900px){
    .sm-dashboard-pro .sm-dash-cards,
    .sm-dashboard-pro .sm-cards{grid-template-columns:repeat(2,minmax(0,1fr));}
    .sm-dashboard-pro .sm-dash-hero{align-items:flex-start;flex-direction:column;gap:14px;}
}
@media (max-width: 600px){
    .sm-dashboard-pro .sm-dash-cards,
    .sm-dashboard-pro .sm-cards{grid-template-columns:1fr;}
    .sm-dashboard-pro .sm-dash-hero{padding:22px 20px;}
    .sm-dashboard-pro .sm-dash-hero h1{font-size:28px;}
    .sm-dashboard-pro .sm-card strong{font-size:24px!important;}
}


/* v5.5 grouped dashboard cards */
.sm-dashboard-pro .sm-card-joining:before{background:linear-gradient(90deg,#16a34a,#22c55e)!important;}
.sm-dashboard-pro .sm-card-accounting:before{background:linear-gradient(90deg,#2563eb,#06b6d4)!important;}
.sm-dashboard-pro .sm-card-chada:before{background:linear-gradient(90deg,#7c3aed,#a855f7)!important;}
.sm-dashboard-pro .sm-card-joining .sm-card-icon{background:#dcfce7!important;color:#166534!important;}
.sm-dashboard-pro .sm-card-accounting .sm-card-icon{background:#dbeafe!important;color:#1d4ed8!important;}
.sm-dashboard-pro .sm-card-chada .sm-card-icon{background:#f3e8ff!important;color:#7e22ce!important;}


/* v5.6 fund report + validation */
.sm-report-filter{
    margin:20px 0;
    padding:16px;
    background:#fff;
    border:1px solid #e5edf7;
    border-radius:16px;
    display:flex;
    gap:14px;
    align-items:end;
    flex-wrap:wrap;
    box-shadow:0 10px 26px rgba(15,23,42,.06);
}
.sm-report-filter label{
    display:flex;
    flex-direction:column;
    gap:6px;
    font-weight:800;
    color:#475569;
}
.sm-report-filter input,.sm-report-filter select{
    min-width:180px;
    min-height:38px;
    border-radius:10px;
    border:1px solid #cbd5e1;
}


/* v6.0 all upgrades: reports, alerts, print, mobile */
.sm-alert-panel{
    margin:20px 0;
    background:#fff7ed;
    border:1px solid #fdba74;
    color:#7c2d12;
    padding:18px 20px;
    border-radius:18px;
    box-shadow:0 14px 30px rgba(251,146,60,.10);
}
.sm-alert-panel h2{margin:0 0 10px;font-size:18px;font-weight:900;color:#9a3412;}
.sm-alert-panel ul{margin:0;padding-left:20px;}
.sm-alert-panel li{font-weight:700;margin:6px 0;}
.sm-report-page .sm-history-box,.sm-fund-report .sm-history-box{
    background:#fff;
    border-radius:18px;
    border:1px solid #e5edf7;
    padding:18px;
    box-shadow:0 12px 30px rgba(15,23,42,.07);
    margin-top:18px;
    overflow:auto;
}
@media(max-width:782px){
    .sm-wrap{padding-right:10px!important;}
    .sm-dashboard-pro .sm-dash-hero{border-radius:18px!important;margin-right:10px;}
    .sm-report-filter{display:grid!important;grid-template-columns:1fr!important;}
    .sm-report-filter input,.sm-report-filter select{width:100%!important;min-width:0!important;}
    .sm-table{font-size:12px!important;}
    .sm-table th,.sm-table td{padding:7px 8px!important;white-space:nowrap;}
    .sm-accounting-tabs{position:sticky;top:32px;background:#f0f0f1;z-index:10;padding:10px 0;}
}
@media print{
    #adminmenumain,#wpadminbar,#screen-meta-links,.notice,.sm-dash-hero,.sm-report-filter,.sm-dash-note,.sm-alert-panel{display:none!important;}
    #wpcontent,#wpbody-content{margin:0!important;padding:0!important;}
    .wrap{margin:0!important;}
    .sm-card,.sm-history-box{box-shadow:none!important;border:1px solid #ddd!important;}
    .sm-dashboard-pro .sm-cards{grid-template-columns:repeat(3,1fr)!important;}
    body{background:#fff!important;}
}


/* v6.1 Member custom role/permission system */
.sm-permission-box{background:#f8fafc;border:1px solid #dbe4ef;border-radius:14px;padding:14px;margin:8px 0;}
.sm-permission-grid{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:8px;margin-top:10px;}
.sm-permission-grid label{background:#fff;border:1px solid #e5edf7;border-radius:10px;padding:8px 10px;font-weight:700!important;}
.sm-role-chip-box{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;}
.sm-role-chip-box span{background:#eef2ff;color:#3730a3;border-radius:999px;padding:6px 10px;font-weight:800;font-size:12px;}
.sm-member-ops-form{background:#fff;border:1px solid #e5edf7;border-radius:18px;padding:18px;margin-bottom:18px;}
.sm-member-ops-form .wide{grid-column:1/-1;}
.sm-inline-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;}
.sm-inline-actions input{min-width:120px;max-width:180px;}
.sm-inline-actions button{border:0;border-radius:8px;padding:7px 10px;font-weight:800;cursor:pointer;background:#0f766e;color:#fff;}
.sm-inline-actions button[value="reject"]{background:#b91c1c;}
@media(max-width:782px){.sm-permission-grid{grid-template-columns:1fr}.sm-inline-actions{display:grid;grid-template-columns:1fr}.sm-inline-actions input{max-width:100%;width:100%;}}


/* v6.3 grouped fund card design */
.sm-dashboard-pro .sm-group-card .sm-card-top{margin-bottom:10px!important;}
.sm-dashboard-pro .sm-group-card .sm-group-lines{display:grid;gap:8px;margin-top:8px;}
.sm-dashboard-pro .sm-group-card .sm-group-lines p{
    display:flex;justify-content:space-between;gap:12px;align-items:center;
    margin:0;padding:8px 10px;border-radius:12px;background:#f8fafc;border:1px solid #edf2f7;
}
.sm-dashboard-pro .sm-group-card .sm-group-lines span{font-size:12px;font-weight:900;color:#64748b;}
.sm-dashboard-pro .sm-group-card .sm-group-lines b{font-size:16px;font-weight:950;color:#0f172a;}
.sm-dashboard-pro .sm-group-card strong{display:none!important;}


/* v6.4 amount input global unlock */
input[name="amount"],
input.sm-money-input,
.sm-payment-form input[name="amount"],
.sm-accounting-form input[name="amount"],
.sm-member-ops-form input[name="amount"],
.sm-form input[name="amount"],
.sm-form-modal input[name="amount"]{
    pointer-events:auto!important;
    user-select:text!important;
    -webkit-user-select:text!important;
    cursor:text!important;
    position:relative!important;
    z-index:9999!important;
    background:#fff!important;
    color:#0f172a!important;
    caret-color:#0f172a!important;
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
    filter:none!important;
}
label:has(input[name="amount"]):before,
label:has(input[name="amount"]):after{
    display:none!important;
    pointer-events:none!important;
    content:none!important;
}
.sm-front-accounting-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.sm-front-group-card{background:#fff;border:1px solid #d8e4f4;border-radius:16px;padding:18px;box-shadow:0 10px 26px rgba(15,23,42,.06);}
.sm-front-group-card h3{margin:0 0 12px;font-size:18px;color:#0f172a;}
.sm-front-group-card p{display:flex;justify-content:space-between;gap:12px;margin:8px 0;padding:9px 10px;border-radius:12px;background:#f8fafc;}
.sm-front-group-card span{font-weight:800;color:#64748b;}
.sm-front-group-card b{font-weight:900;color:#0f172a;}
@media(max-width:768px){.sm-front-accounting-groups{grid-template-columns:1fr;}}


/* v7.2 clean ledger + PDF print */
.sm-ledger-page .sm-history-box{
    background:#fff;
    border:1px solid #e5edf7;
    border-radius:18px;
    padding:18px;
    box-shadow:0 12px 30px rgba(15,23,42,.07);
    margin-top:18px;
    overflow:auto;
}
@media print{
    #adminmenumain,#wpadminbar,#screen-meta-links,.notice,.sm-dash-hero,.sm-report-filter,.update-nag{display:none!important;}
    #wpcontent,#wpbody-content{margin:0!important;padding:0!important;}
    .wrap{margin:0!important;}
    .sm-history-box,.sm-card{box-shadow:none!important;border:1px solid #ddd!important;}
    body{background:#fff!important;}
}


/* v7.3 member temporary login */
.sm-temp-login-note{
    grid-column:1/-1;
    background:#eef2ff;
    border:1px solid #c7d2fe;
    color:#1e1b4b;
    border-radius:12px;
    padding:12px 14px;
    font-weight:800;
}


/* v7.7 Settings category/fund source manager */
.sm-settings-form textarea{
    width:100%!important;
    min-height:140px!important;
    border-radius:12px!important;
    border:1px solid #cbd5e1!important;
    padding:10px 12px!important;
    font-family:monospace!important;
    background:#fff!important;
}
.sm-settings-form .wide{
    grid-column:1/-1!important;
}
.sm-settings-form small{
    display:block;
    margin-top:6px;
    color:#64748b;
    font-weight:700;
}

/* v7.8.1 frontend member profile refinements */
.sm-member-app .sm-app-profile h3:after{content:none!important;display:none!important;}
.sm-member-app .sm-active-icon{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:16px!important;height:16px!important;margin-right:6px!important;border-radius:50%!important;background:#16a34a!important;color:#fff!important;font-size:10px!important;font-weight:900!important;vertical-align:middle!important;}
.sm-member-app .sm-member-role-line{margin-top:3px!important;color:#64748b!important;font-size:13px!important;font-weight:800!important;line-height:1.2!important;text-transform:capitalize!important;}

/* v7.8.3 dashboard fund detail popups */
.sm-dashboard-pro .sm-group-card .sm-group-lines p.sm-fund-click{cursor:pointer;transition:.18s ease;border-color:#dbeafe!important;background:#f8fbff!important;}
.sm-dashboard-pro .sm-group-card .sm-group-lines p.sm-fund-click:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(15,23,42,.08);background:#eef6ff!important;}
.sm-fund-modal .sm-fund-modal-content{max-width:980px;width:94%;max-height:86vh;overflow:auto;}
.sm-fund-modal h2{margin:0 0 16px;font-size:22px;font-weight:900;color:#0f172a;}
.sm-table-scroll{overflow:auto;border:1px solid #e5e7eb;border-radius:14px;}
.sm-table-scroll table{margin:0!important;}
.sm-table-scroll th{white-space:nowrap;}
.sm-table-scroll td{vertical-align:top;}
.sm-modal-content{background:#fff;border-radius:18px;box-shadow:0 20px 60px rgba(15,23,42,.28);padding:22px;position:relative;}

/* v7.8.5 due status active icon colors */
.sm-member-app .sm-active-icon.sm-active-green{background:#16a34a!important;color:#fff!important;}
.sm-member-app .sm-active-icon.sm-active-yellow{background:#f59e0b!important;color:#fff!important;}
.sm-member-app .sm-active-icon.sm-active-red{background:#dc2626!important;color:#fff!important;}

/* v7.8.6 backend accounting bulk upload */
.sm-bulk-upload-panel{margin:14px 0 18px 0;border-left:4px solid #2563eb}
.sm-bulk-upload-panel .sm-help{font-size:12px;color:#64748b;line-height:1.5}

/* v7.8.9 professional transactions + settings backup restore */
.sm-transactions-pro .sm-page-hero{display:flex;justify-content:space-between;align-items:center;gap:18px;background:linear-gradient(135deg,#0f172a,#1d4ed8);color:#fff;border-radius:18px;padding:22px 24px;margin:14px 0 18px;box-shadow:0 16px 38px rgba(15,23,42,.18)}
.sm-transactions-pro .sm-page-hero h1{color:#fff!important;margin:0 0 6px;font-size:28px;font-weight:900}.sm-transactions-pro .sm-page-hero p{margin:0;color:#dbeafe;font-weight:600}.sm-page-badge{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.25);border-radius:999px;padding:10px 16px;font-weight:900;white-space:nowrap}.sm-transactions-filter{display:grid!important;grid-template-columns:minmax(280px,1fr) 150px 220px auto;gap:12px;align-items:center;background:#fff;border:1px solid #dbe4f0;border-radius:16px;padding:14px!important;box-shadow:0 8px 25px rgba(15,23,42,.06)}.sm-tx-search{width:100%;border:1px solid #cbd5e1;border-radius:12px;padding:9px 12px;min-height:38px}.sm-bulk-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;background:#f8fafc;border:1px solid #dbe4f0;border-radius:16px;padding:12px 14px;margin:14px 0}.sm-selected-counter{margin-left:auto;font-weight:900;color:#334155;background:#e2e8f0;border-radius:999px;padding:7px 12px}.sm-table-card{background:#fff;border:1px solid #dbe4f0;border-radius:18px;overflow:auto;box-shadow:0 10px 28px rgba(15,23,42,.07)}.sm-transactions-table{border:0!important;margin:0!important}.sm-transactions-table thead th{background:#f8fafc!important;color:#334155!important;font-weight:900!important;padding:13px 10px!important;border-bottom:1px solid #dbe4f0!important}.sm-transactions-table td,.sm-transactions-table th{vertical-align:middle!important}.sm-transactions-table tbody tr:hover{background:#eff6ff!important}.sm-row-actions{display:flex;gap:6px;align-items:center;flex-wrap:nowrap}.sm-row-actions .button{border-radius:8px!important;font-weight:800!important}.sm-tx-modal-box{max-width:980px!important;border-radius:22px!important;padding:0!important;overflow:hidden!important}.sm-modal-titlebar{background:linear-gradient(135deg,#f8fafc,#e0f2fe);border-bottom:1px solid #dbe4f0;padding:22px 26px}.sm-modal-titlebar h2{margin:0!important;font-size:24px!important;font-weight:900!important;color:#0f172a!important}.sm-modal-titlebar span{display:block;margin-top:4px;color:#64748b;font-weight:700}.sm-modal-meta{margin:18px 26px 0!important;color:#334155}.sm-tx-modal-box .sm-form-modal{margin:18px 26px!important;background:#fff!important;border:1px solid #e2e8f0!important;border-radius:18px!important;padding:18px!important;box-shadow:0 8px 25px rgba(15,23,42,.05)}.sm-tx-modal-box .sm-action-row{margin:16px 26px 24px!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.sm-tx-modal-box .sm-action-row form{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:14px}.sm-tx-modal-box .sm-modal-close{top:16px!important;right:18px!important;background:#fff!important;border-radius:50%!important;box-shadow:0 8px 20px rgba(15,23,42,.16)!important}.sm-settings-tools{margin-top:24px;background:#fff;border:1px solid #dbe4f0;border-radius:18px;padding:20px;box-shadow:0 10px 28px rgba(15,23,42,.06)}.sm-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.sm-tool-card{border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc;padding:18px}.sm-tool-card h3{margin:0 0 8px;font-size:18px;font-weight:900;color:#0f172a}.sm-tool-card p{color:#64748b;font-weight:700}.sm-tool-card input[type=file]{display:block;margin:8px 0 12px;padding:10px;background:#fff;border:1px dashed #94a3b8;border-radius:12px;width:100%}@media(max-width:900px){.sm-transactions-filter{grid-template-columns:1fr}.sm-settings-grid,.sm-tx-modal-box .sm-action-row{grid-template-columns:1fr}.sm-selected-counter{margin-left:0}.sm-transactions-pro .sm-page-hero{display:block}.sm-page-badge{display:inline-block;margin-top:12px}}

/* v7.9.1 Accounting toolbar and popup cleanup */
.sm-acc-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:18px 0 16px}
.sm-acc-toolbar .sm-accounting-tabs{margin:0!important}
.sm-acc-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-left:auto}
.sm-acc-actions .button{border-radius:999px!important;padding:7px 18px!important;font-weight:800!important;text-decoration:none!important}
@media(max-width:782px){.sm-acc-toolbar{align-items:stretch}.sm-acc-actions{margin-left:0;width:100%}.sm-acc-actions .button{flex:1;text-align:center}}
@media print{.sm-acc-toolbar,.sm-pay-cards,.sm-payment-window,.sm-accounting-tabs,.sm-acc-actions,.sm-modal-close,.sm-modal-titlebar+div .button{display:none!important}.sm-modal.sm-modal-open{display:block!important;position:static!important;background:#fff!important;padding:0!important}.sm-modal-box{box-shadow:none!important;width:100%!important;border-radius:0!important}.sm-history-box{margin:0!important;border:0!important;box-shadow:none!important}.sm-history-box table{min-width:0!important;width:100%!important} @page{size:A4;margin:12mm}}

/* v8.1.2 Analytics Dashboard */
.sm-analytics-hero{display:flex;justify-content:space-between;gap:18px;align-items:center;background:linear-gradient(135deg,#111827,#2563eb);color:#fff;border-radius:22px;padding:24px;margin:18px 0;box-shadow:0 14px 35px rgba(15,23,42,.18)}
.sm-analytics-hero span{text-transform:uppercase;letter-spacing:.12em;font-size:12px;opacity:.85}.sm-analytics-hero h1{margin:4px 0 6px;color:#fff;font-size:30px}.sm-analytics-hero p{margin:0;opacity:.9}.sm-analytics-filter{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;background:#fff;border-radius:18px;padding:16px;margin-bottom:16px;box-shadow:0 10px 28px rgba(15,23,42,.08)}.sm-analytics-filter input,.sm-analytics-filter select{min-width:170px}.sm-analytics-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin:16px 0}.sm-analytics-cards>div{background:#fff;border-radius:18px;padding:16px;box-shadow:0 10px 24px rgba(15,23,42,.08);border:1px solid #eef2f7}.sm-analytics-cards span{display:block;color:#64748b;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.sm-analytics-cards strong{font-size:22px;color:#0f172a}.sm-analytics-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}.sm-chart-card{background:#fff;border-radius:20px;padding:18px;box-shadow:0 12px 30px rgba(15,23,42,.08);border:1px solid #eef2f7;margin-bottom:16px}.sm-chart-card.wide{grid-column:1/-1}.sm-chart-card h2{margin-top:0}.sm-chart-bars{height:250px;display:flex;gap:10px;align-items:flex-end;border-bottom:1px solid #e5e7eb;padding:20px 10px 4px;overflow-x:auto}.sm-bar-col{min-width:56px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:220px}.sm-bar{width:34px;background:linear-gradient(180deg,#2563eb,#60a5fa);border-radius:12px 12px 4px 4px;box-shadow:0 8px 16px rgba(37,99,235,.22)}.sm-invest-bars .sm-bar{background:linear-gradient(180deg,#059669,#34d399)}.sm-bar-value{font-size:10px;writing-mode:vertical-rl;transform:rotate(180deg);color:#475569;margin-bottom:6px;max-height:80px}.sm-bar-col small{font-size:11px;color:#64748b;margin-top:8px;white-space:nowrap}.sm-hbars{display:flex;flex-direction:column;gap:12px}.sm-hbar-row{display:grid;grid-template-columns:130px 1fr 90px;gap:10px;align-items:center}.sm-hbar-row span{font-size:12px;color:#334155;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sm-hbar-row div{height:12px;background:#e5e7eb;border-radius:999px;overflow:hidden}.sm-hbar-row b{display:block;height:100%;background:linear-gradient(90deg,#6366f1,#22c55e);border-radius:999px}.sm-due-bars .sm-hbar-row b{background:linear-gradient(90deg,#f97316,#ef4444)}.sm-hbar-row em{font-style:normal;font-weight:700;color:#0f172a;font-size:12px;text-align:right}@media(max-width:1200px){.sm-analytics-cards{grid-template-columns:repeat(3,1fr)}.sm-analytics-grid{grid-template-columns:1fr}}@media(max-width:700px){.sm-analytics-hero{display:block}.sm-analytics-cards{grid-template-columns:repeat(2,1fr)}.sm-hbar-row{grid-template-columns:1fr}.sm-hbar-row em{text-align:left}}@media print{#adminmenumain,#wpadminbar,.notice,.sm-analytics-filter{display:none!important}.sm-analytics-hero{background:#fff!important;color:#000!important;border:1px solid #ddd}.sm-analytics-hero h1{color:#000}.sm-chart-card,.sm-analytics-cards>div{box-shadow:none}.wrap{margin:0!important}}


/* v8.1.6 Premium UI + Professional PDF/Print Polish */
:root{--sm-navy:#0f172a;--sm-blue:#2563eb;--sm-soft:#f8fafc;--sm-border:#dbe4f0;--sm-text:#0f172a;--sm-muted:#64748b;--sm-green:#16a34a;--sm-red:#dc2626;--sm-orange:#f97316;}
.sm-wrap{max-width:1440px}.sm-wrap h1,.sm-wrap h2,.sm-wrap h3{letter-spacing:-.025em;color:var(--sm-text)}
.sm-card,.sm-dashboard-pro .sm-group-card,.sm-history-box,.sm-payment-window,.sm-tool-card,.sm-chart-card,.sm-statement-paper,.sm-report-table-wrap,.sm-report-card{border:1px solid var(--sm-border)!important;border-radius:22px!important;box-shadow:0 12px 34px rgba(15,23,42,.075)!important;background:#fff!important;overflow:hidden;}
.sm-card:hover,.sm-dashboard-pro .sm-group-card:hover,.sm-chart-card:hover{transform:translateY(-2px);box-shadow:0 18px 44px rgba(15,23,42,.10)!important;transition:.18s ease;}
.sm-wrap .button,.sm-wrap .button-primary,.sm-modal .button{border-radius:999px!important;font-weight:900!important;min-height:36px!important;padding:6px 16px!important;border-color:#bfdbfe!important;box-shadow:none!important;}
.sm-wrap .button-primary{background:linear-gradient(135deg,#2563eb,#4f46e5)!important;border-color:#2563eb!important;color:#fff!important;}
.sm-danger-button,.button.sm-danger-button{background:#ef4444!important;border-color:#ef4444!important;color:#fff!important;}
.sm-form input,.sm-form select,.sm-form textarea,.sm-report-filter input,.sm-report-filter select,.sm-statement-filter input,.sm-statement-filter select,.sm-analytics-filter input,.sm-analytics-filter select{border-radius:14px!important;border:1px solid #cbd5e1!important;background:#fff!important;box-shadow:0 1px 2px rgba(15,23,42,.03)!important;}
.sm-form input:focus,.sm-form select:focus,.sm-form textarea:focus{border-color:#2563eb!important;box-shadow:0 0 0 3px rgba(37,99,235,.14)!important;outline:none!important;}
.sm-table,.widefat.sm-table,.sm-transactions-table,.sm-report-table,.sm-statement-table{border-collapse:separate!important;border-spacing:0!important;border:0!important;background:#fff!important;}
.sm-table thead th,.widefat.sm-table thead th,.sm-transactions-table thead th,.sm-report-table th,.sm-statement-table th{background:#f1f5f9!important;color:#334155!important;font-size:12px!important;text-transform:uppercase!important;letter-spacing:.05em!important;font-weight:900!important;border-bottom:1px solid #dbe4f0!important;}
.sm-table tbody tr:nth-child(even),.widefat.sm-table tbody tr:nth-child(even),.sm-transactions-table tbody tr:nth-child(even),.sm-report-table tbody tr:nth-child(even),.sm-statement-table tbody tr:nth-child(even){background:#f8fafc!important;}
.sm-table tbody tr:hover,.widefat.sm-table tbody tr:hover,.sm-transactions-table tbody tr:hover,.sm-report-table tbody tr:hover,.sm-statement-table tbody tr:hover{background:#eef6ff!important;}
.sm-status,.sm-pill{font-weight:900!important;border-radius:999px!important;padding:6px 12px!important;display:inline-flex!important;align-items:center!important;gap:6px!important;}
.sm-status:before,.sm-pill:before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block;}
.sm-modal{backdrop-filter:blur(5px)}.sm-modal-box,.sm-modal-content{border-radius:26px!important;border:1px solid rgba(226,232,240,.9)!important;box-shadow:0 28px 80px rgba(15,23,42,.28)!important;}.sm-modal-close{font-size:22px!important;line-height:1!important;}
.sm-receipt-pro{max-width:794px;margin:18px auto;background:#fff;border:1px solid #0f172a!important;border-radius:0!important;color:#111827;font-family:Arial,'Noto Sans Bengali',sans-serif;box-shadow:0 14px 34px rgba(15,23,42,.12)}
.sm-r-head{background:linear-gradient(135deg,#0f172a,#1d4ed8)!important;color:#fff!important;border-bottom:0!important;padding:24px 26px!important}.sm-r-head h2,.sm-r-head h3{color:#fff!important;margin:0}.sm-r-head h2{font-size:26px!important;font-weight:900!important}.sm-r-head h3{font-size:16px!important;opacity:.9;margin-top:5px!important;text-transform:uppercase;letter-spacing:.12em}.sm-r-qr{background:#fff;border-radius:12px;padding:6px;width:96px!important;height:96px!important}.sm-r-meta{display:grid;grid-template-columns:1fr 1fr;background:#f8fafc;border-bottom:1px solid #dbe4f0}.sm-r-meta span{padding:14px 20px}.sm-r-meta b{display:block;color:#64748b;font-size:11px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:4px}.sm-r-member{padding:18px 22px;border-bottom:1px solid #e5e7eb}.sm-r-member p{margin:6px 0}.sm-r-table{width:calc(100% - 44px)!important;margin:20px 22px!important;border-collapse:collapse!important}.sm-r-table th{background:#f1f5f9;color:#0f172a;text-transform:uppercase;letter-spacing:.05em}.sm-r-table th,.sm-r-table td{border:1px solid #cbd5e1!important;padding:12px!important}.sm-r-table td:last-child{text-align:right;font-weight:900}.sm-r-paid td{background:#ecfdf5!important;color:#065f46!important;font-size:16px}.sm-r-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:0 22px 20px}.sm-r-summary p{border:1px solid #dbe4f0;border-radius:14px;padding:12px;margin:0;background:#f8fafc}.sm-r-summary span{display:block;color:#64748b;font-size:11px;text-transform:uppercase;font-weight:900}.sm-r-summary b{display:block;margin-top:5px;font-size:15px;color:#0f172a}.sm-r-note{margin:0 22px 18px;padding:12px 14px;border-left:4px solid #2563eb;background:#eff6ff;border-radius:12px}.sm-r-footer{display:flex;justify-content:space-between;padding:46px 28px 20px}.sm-r-footer span{border-top:1px solid #111827;padding-top:8px;min-width:200px;text-align:center;font-weight:800}.sm-r-thanks{text-align:center;background:#f8fafc;margin:0;padding:14px;font-weight:900;border-top:1px solid #e5e7eb}.sm-print-btn-row{text-align:center;margin:14px 0}.sm-a4-watermark{position:relative}.sm-a4-watermark:after{content:'Computer Generated';position:absolute;right:24px;bottom:70px;color:rgba(15,23,42,.08);font-size:30px;font-weight:900;transform:rotate(-18deg);pointer-events:none}
@page{size:A4;margin:12mm}.sm-pdf-letterhead{display:none}
@media print{body{background:#fff!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}.sm-no-print,.sm-print-btn-row,.button,.notice,#adminmenumain,#wpadminbar,#screen-meta-links,.update-nag{display:none!important}#wpcontent,#wpbody-content,.wrap{margin:0!important;padding:0!important}.sm-receipt-pro,.sm-statement-paper,.sm-report-table-wrap{box-shadow:none!important;border:1px solid #111827!important;border-radius:0!important;page-break-inside:avoid}.sm-r-head{background:#0f172a!important;color:#fff!important}.sm-statement-hero,.sm-report-hero,.sm-analytics-hero{background:#fff!important;color:#000!important;border:1px solid #111827!important;box-shadow:none!important}.sm-statement-hero h1,.sm-report-hero h1,.sm-analytics-hero h1{color:#000!important}.sm-statement-filter,.sm-report-filter,.sm-analytics-filter,.sm-report-tabs{display:none!important}.sm-card,.sm-chart-card,.sm-report-card,.sm-statement-card{box-shadow:none!important}.widefat td,.widefat th{font-size:11px!important;padding:6px!important}.sm-r-summary{grid-template-columns:repeat(2,1fr)!important}.sm-a4-watermark:after{display:block!important}}
@media(max-width:782px){.sm-card,.sm-dashboard-pro .sm-group-card,.sm-history-box,.sm-payment-window,.sm-chart-card{border-radius:18px!important}.sm-r-summary{grid-template-columns:1fr}.sm-r-meta{grid-template-columns:1fr}.sm-r-footer{gap:30px;flex-direction:column}.sm-r-footer span{min-width:0}.sm-wrap .button{width:auto!important}.sm-table-card,.sm-history-box{overflow-x:auto!important}}


/* v8.1.13 Professional receipt: QR verification + digital signature */
.sm-r-sub{margin:6px 0 0!important;color:rgba(255,255,255,.82)!important;font-size:12px!important;font-weight:700!important;letter-spacing:.08em;text-transform:uppercase;}
.sm-r-qrbox{display:flex;flex-direction:column;align-items:center;gap:6px;background:#fff;border-radius:16px;padding:8px;min-width:112px;color:#0f172a;}
.sm-r-qrbox small{font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:#334155;}
.sm-r-verify{margin:0 22px 18px;padding:12px 14px;border:1px dashed #93c5fd;border-radius:14px;background:#eff6ff;display:grid;grid-template-columns:1fr;gap:7px;}
.sm-r-verify b{display:block;color:#1e3a8a;font-size:12px;text-transform:uppercase;letter-spacing:.07em;}
.sm-r-verify span{display:block;color:#334155;font-size:12px;margin-top:3px;}
.sm-r-verify code{display:block;white-space:normal;word-break:break-all;background:#fff;border:1px solid #dbeafe;border-radius:10px;padding:8px;font-size:10px;color:#1d4ed8;}
.sm-r-footer-pro{align-items:flex-end!important;}
.sm-r-footer-pro .sm-digital-sign{border:1px solid #bbf7d0!important;background:#f0fdf4!important;border-radius:14px!important;padding:12px 18px!important;min-width:190px!important;text-align:center!important;color:#166534!important;box-shadow:inset 0 0 0 1px rgba(22,101,52,.05);}
.sm-r-footer-pro .sm-digital-sign strong{display:block;font-size:15px;font-weight:950;color:#166534;}
.sm-r-footer-pro .sm-digital-sign em{display:block;margin-top:3px;font-size:11px;font-style:normal;color:#15803d;}
@media print{
  @page{size:A4;margin:10mm;}
  .sm-receipt-pro{max-width:190mm!important;transform:none!important;page-break-inside:avoid!important;}
  .sm-r-head{padding:16px 20px!important;}
  .sm-r-member{padding:12px 18px!important;}
  .sm-r-table{margin:12px 18px!important;width:calc(100% - 36px)!important;}
  .sm-r-table th,.sm-r-table td{padding:8px!important;font-size:11px!important;}
  .sm-r-summary{padding:0 18px 12px!important;gap:8px!important;grid-template-columns:repeat(4,1fr)!important;}
  .sm-r-summary p{padding:8px!important;}
  .sm-r-note,.sm-r-verify{margin:0 18px 10px!important;padding:8px 10px!important;}
  .sm-r-footer{padding:28px 22px 12px!important;}
  .sm-r-thanks{padding:9px!important;}
}

/* v8.1.14 Receipt print layout update */
.sm-r-head-new{display:grid!important;grid-template-columns:1fr 118px!important;align-items:start!important;gap:18px!important;background:#fff!important;color:#0f172a!important;border-bottom:2px solid #0f172a!important;padding:18px 22px!important;}
.sm-r-head-new h2{color:#0f172a!important;text-align:left!important;font-size:23px!important;margin:0 0 6px!important;font-weight:900!important;}
.sm-r-head-new h3{color:#0f172a!important;text-align:left!important;font-size:17px!important;margin:10px 0 0!important;letter-spacing:.08em;text-transform:uppercase;}
.sm-r-head-new p{margin:3px 0!important;color:#334155!important;font-size:12px!important;line-height:1.45;}
.sm-r-head-new .sm-r-qrbox{text-align:center;}
.sm-r-head-new .sm-r-qr{width:94px!important;height:94px!important;border:1px solid #cbd5e1!important;border-radius:8px!important;padding:4px!important;background:#fff!important;}
.sm-r-head-new small{display:block;color:#475569;font-size:10px;margin-top:4px;font-weight:700;}
.sm-r-info-row{display:grid;grid-template-columns:1.5fr .8fr;border-bottom:1px solid #e5e7eb;gap:0;}
.sm-r-member-compact{padding:12px 18px!important;border-bottom:0!important;border-right:1px solid #e5e7eb;}
.sm-r-member-compact p{margin:4px 0!important;font-size:13px!important;}
.sm-r-meta-side{display:grid!important;grid-template-columns:1fr!important;border-bottom:0!important;background:#fff!important;}
.sm-r-meta-side span{border-right:0!important;border-bottom:1px solid #e5e7eb!important;padding:11px 16px!important;}
.sm-r-meta-side span:last-child{border-bottom:0!important;}
.sm-r-verify{display:none!important;}
@media(max-width:782px){.sm-r-head-new,.sm-r-info-row{grid-template-columns:1fr!important}.sm-r-member-compact{border-right:0!important;border-bottom:1px solid #e5e7eb!important}.sm-r-head-new .sm-r-qrbox{text-align:left}}
@media print{
  @page{size:A4 portrait;margin:8mm;}
  body.sm-receipt-letter-print{ }
  .sm-receipt-pro{max-width:190mm!important;width:190mm!important;margin:0 auto!important;}
  .sm-r-head-new{background:#fff!important;color:#000!important;padding:12px 16px!important;grid-template-columns:1fr 96px!important;}
  .sm-r-head-new h2{color:#000!important;font-size:20px!important;}
  .sm-r-head-new h3{color:#000!important;font-size:14px!important;margin-top:6px!important;}
  .sm-r-head-new p{font-size:10px!important;}
  .sm-r-head-new .sm-r-qr{width:78px!important;height:78px!important;}
  .sm-r-member-compact p{font-size:11px!important;margin:2px 0!important;}
  .sm-r-meta-side span{padding:8px 12px!important;font-size:11px!important;}
  .sm-r-table{margin:10px 18px!important;width:calc(100% - 36px)!important;}
  .sm-r-table th,.sm-r-table td{padding:7px!important;font-size:11px!important;}
  .sm-r-summary{padding:0 18px 10px!important;gap:6px!important;grid-template-columns:repeat(4,1fr)!important;}
  .sm-r-summary p{padding:7px!important;border-radius:8px!important;}
  .sm-r-summary span{font-size:9px!important;}.sm-r-summary b{font-size:11px!important;}
  .sm-r-note{font-size:11px!important;margin:0 18px 8px!important;padding:7px 9px!important;}
  .sm-r-footer{padding:30px 22px 10px!important;}
  .sm-r-footer span{min-width:150px!important;font-size:10px!important;padding-top:5px!important;}
  .sm-r-thanks{padding:8px!important;font-size:11px!important;}
}


/* v8.2.0 Approval Workflow + Professional Receipt */
.sm-approval-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0 10px}.sm-approval-tabs a{text-decoration:none;background:#fff;border:1px solid #dbe4f0;border-radius:18px;padding:14px 16px;color:#334155;font-weight:900;box-shadow:0 8px 22px rgba(15,23,42,.06);display:flex;justify-content:space-between;align-items:center}.sm-approval-tabs a.active{background:#0f172a;color:#fff;border-color:#0f172a}.sm-approval-tabs b{background:#e2e8f0;color:#0f172a;border-radius:999px;padding:5px 10px}.sm-approval-tabs a.active b{background:#fff;color:#0f172a}.sm-r-stamp-row{margin:12px 18px 0;display:flex;justify-content:space-between;gap:10px}.sm-r-stamp-row span{border:1px dashed #2563eb;color:#1d4ed8;background:#eff6ff;border-radius:999px;padding:7px 12px;font-weight:900;font-size:12px}.sm-r-verify-line{margin:0 18px 10px;padding:8px 10px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;font-size:11px;word-break:break-all;color:#475569}.sm-transactions-pro .sm-page-hero{background:linear-gradient(135deg,#0f172a,#1d4ed8)!important}.sm-tx-modal-box textarea[name="admin_note"]{min-height:76px}.sm-tx-modal-box .sm-action-row form:nth-child(1){border-color:#bbf7d0;background:#f0fdf4}.sm-tx-modal-box .sm-action-row form:nth-child(2){border-color:#fecaca;background:#fef2f2}@media(max-width:782px){.sm-approval-tabs{grid-template-columns:1fr 1fr}.sm-r-stamp-row{flex-direction:column}.sm-r-stamp-row span{text-align:center}}
@media print{.sm-r-verify-line{display:block!important}.sm-r-stamp-row span{border:1px dashed #111827!important;color:#111827!important;background:#fff!important}}

/* v8.2.1 Backend top tab navigation */
.sm-admin-tabs-wrap{margin:16px 20px 12px 2px;background:#fff;border:1px solid #dbe4f0;border-radius:18px;box-shadow:0 10px 28px rgba(15,23,42,.07);overflow:hidden}.sm-admin-tabs-head{padding:14px 16px;border-bottom:1px solid #e5e7eb;background:linear-gradient(135deg,#f8fafc,#eef6ff)}.sm-admin-tabs-head strong{display:block;font-size:16px;color:#0f172a;font-weight:900}.sm-admin-tabs-head span{display:block;margin-top:3px;color:#64748b;font-size:12px}.sm-admin-top-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:12px 14px}.sm-admin-tab{display:inline-flex;align-items:center;justify-content:center;text-decoration:none!important;border:1px solid #dbe4f0;background:#f8fafc;color:#334155;border-radius:999px;padding:8px 13px;font-weight:800;font-size:12px;line-height:1;transition:all .16s ease}.sm-admin-tab:hover{background:#eaf2ff;color:#1d4ed8;border-color:#bfdbfe;transform:translateY(-1px)}.sm-admin-tab.active{background:#0f172a;color:#fff;border-color:#0f172a;box-shadow:0 8px 18px rgba(15,23,42,.18)}#adminmenu .wp-submenu a[href*="somiti-manager-"]{display:none!important}@media(max-width:782px){.sm-admin-tabs-wrap{margin:12px 10px}.sm-admin-top-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:14px}.sm-admin-tab{white-space:nowrap;flex:0 0 auto}}


/* v8.2.2 Backend UI Polish - clean SaaS style */
body.wp-admin.toplevel_page_somiti-manager,
body.wp-admin[class*="somiti-manager"]{background:#f5f7fb;}
.toplevel_page_somiti-manager #wpcontent,
[class*="somiti-manager_page_somiti-manager"] #wpcontent{background:#f5f7fb;}
.sm-wrap{max-width:1280px!important;margin-right:20px!important;color:#172033!important;font-size:13px!important;line-height:1.55!important;}
.sm-wrap h1{font-size:22px!important;line-height:1.25!important;font-weight:700!important;margin:18px 0 12px!important;color:#0f172a!important;}
.sm-wrap h2{font-size:18px!important;font-weight:700!important;color:#172033!important;}
.sm-wrap h3{font-size:15px!important;font-weight:700!important;color:#1f2937!important;}
.sm-wrap p,.sm-wrap td,.sm-wrap th,.sm-wrap label,.sm-wrap input,.sm-wrap select,.sm-wrap textarea{font-size:13px!important;}
.sm-admin-tabs-wrap{margin:14px 20px 14px 2px!important;border-radius:16px!important;border:1px solid #dbe4f0!important;box-shadow:0 8px 24px rgba(15,23,42,.06)!important;}
.sm-admin-tabs-head{padding:13px 16px!important;background:#fff!important;border-bottom:1px solid #e8eef7!important;}
.sm-admin-tabs-head strong{font-size:15px!important;font-weight:700!important;color:#0f172a!important;}
.sm-admin-tabs-head span{font-size:12px!important;color:#64748b!important;}
.sm-admin-top-tabs{gap:7px!important;padding:11px 14px!important;background:#fbfdff!important;}
.sm-admin-tab{border-radius:10px!important;padding:8px 12px!important;font-size:12px!important;font-weight:650!important;background:#fff!important;border-color:#d9e3f0!important;color:#334155!important;box-shadow:0 1px 2px rgba(15,23,42,.04)!important;}
.sm-admin-tab:hover{background:#eff6ff!important;color:#1d4ed8!important;border-color:#bfdbfe!important;transform:none!important;}
.sm-admin-tab.active{background:#2563eb!important;color:#fff!important;border-color:#2563eb!important;box-shadow:0 8px 18px rgba(37,99,235,.22)!important;}
.sm-cards,.sm-analytics-cards,.sm-source-balance,.sm-pay-cards{gap:12px!important;}
.sm-cards{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))!important;margin:14px 0 18px!important;}
.sm-card,.sm-mini-cards>div,.sm-chart-card,.sm-table-card,.sm-form,.sm-settings-tools,.sm-tool-card,.sm-payment-panel,.sm-history-box{border-radius:14px!important;border:1px solid #dbe4f0!important;box-shadow:0 8px 22px rgba(15,23,42,.05)!important;background:#fff!important;}
.sm-card{padding:15px!important;min-height:86px!important;}
.sm-card h3{font-size:13px!important;font-weight:650!important;margin:0 0 8px!important;color:#64748b!important;}
.sm-card strong{font-size:21px!important;font-weight:700!important;color:#0f172a!important;line-height:1.25!important;}
.sm-form{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;gap:12px!important;padding:15px!important;margin:14px 0!important;}
.sm-form label,.sm-accounting-form label{font-weight:650!important;color:#334155!important;}
.sm-form input,.sm-form select,.sm-form textarea,.sm-accounting-form input,.sm-accounting-form select,.sm-accounting-form textarea,.sm-tx-search{border:1px solid #cbd5e1!important;border-radius:9px!important;min-height:38px!important;padding:8px 10px!important;box-shadow:none!important;background:#fff!important;color:#111827!important;}
.sm-form input:focus,.sm-form select:focus,.sm-form textarea:focus,.sm-accounting-form input:focus,.sm-accounting-form select:focus,.sm-accounting-form textarea:focus{border-color:#2563eb!important;box-shadow:0 0 0 2px rgba(37,99,235,.12)!important;outline:none!important;}
.wp-core-ui .sm-wrap .button,.wp-core-ui .sm-admin-tabs-wrap .button,.sm-wrap .button{border-radius:9px!important;font-weight:650!important;min-height:34px!important;box-shadow:none!important;}
.wp-core-ui .sm-wrap .button-primary{background:#2563eb!important;border-color:#2563eb!important;color:#fff!important;}
.wp-core-ui .sm-wrap .button-primary:hover{background:#1d4ed8!important;border-color:#1d4ed8!important;}
.sm-table-card{overflow:auto!important;margin-top:14px!important;}
.sm-wrap table.wp-list-table{border:0!important;border-radius:14px!important;overflow:hidden!important;box-shadow:0 8px 22px rgba(15,23,42,.05)!important;}
.sm-wrap .wp-list-table th{background:#f8fafc!important;color:#334155!important;font-weight:700!important;padding:10px!important;white-space:nowrap!important;}
.sm-wrap .wp-list-table td{padding:10px!important;color:#334155!important;vertical-align:middle!important;}
.sm-wrap .wp-list-table tbody tr:hover{background:#f8fbff!important;}
.sm-status{border-radius:999px!important;font-size:11px!important;font-weight:700!important;padding:5px 9px!important;white-space:nowrap!important;}
.sm-modal-box,.sm-modal-content{border-radius:18px!important;box-shadow:0 18px 50px rgba(15,23,42,.24)!important;}
.sm-transactions-pro .sm-page-hero,.sm-analytics-hero{border-radius:18px!important;padding:20px!important;box-shadow:0 12px 30px rgba(15,23,42,.14)!important;}
.sm-transactions-pro .sm-page-hero h1,.sm-analytics-hero h1{font-size:24px!important;font-weight:700!important;}
.sm-accounting-tabs{gap:8px!important;}
.sm-accounting-tabs .button{border-radius:10px!important;padding:6px 14px!important;font-weight:650!important;}
.sm-accounting-tabs .button.active{background:#2563eb!important;border-color:#2563eb!important;color:#fff!important;}
.sm-approval-tabs{gap:10px!important;}
.sm-approval-tabs a{border-radius:14px!important;padding:12px 14px!important;font-weight:700!important;box-shadow:0 6px 18px rgba(15,23,42,.05)!important;}
.sm-approval-tabs a.active{background:#2563eb!important;border-color:#2563eb!important;color:#fff!important;}
/* Dark mode/color contrast fix */
.admin-color-modern .sm-wrap,.admin-color-midnight .sm-wrap,.admin-color-blue .sm-wrap{color:#172033!important;}
@media(max-width:782px){
  .sm-wrap{margin-right:10px!important;font-size:12px!important;}
  .sm-admin-tabs-wrap{margin:10px 10px 12px 0!important;border-radius:14px!important;}
  .sm-admin-top-tabs{flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:thin;padding:10px 12px 12px!important;}
  .sm-admin-tab{white-space:nowrap!important;flex:0 0 auto!important;font-size:12px!important;padding:8px 11px!important;}
  .sm-cards,.sm-analytics-cards,.sm-source-balance,.sm-pay-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  .sm-card{padding:12px!important;min-height:78px!important;}
  .sm-card strong{font-size:18px!important;}
  .sm-form,.sm-accounting-form,.sm-transactions-filter{grid-template-columns:1fr!important;}
  .sm-wrap .wp-list-table{min-width:680px!important;}
  .sm-table-card,.sm-payment-preview,.sm-table-scroll{overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;}
}
@media(max-width:480px){.sm-cards,.sm-analytics-cards,.sm-source-balance,.sm-pay-cards{grid-template-columns:1fr!important;}}


/* v8.2.4 Professional Backend Header + Smart Dashboard */
.sm-admin-tabs-wrap{position:sticky!important;top:32px!important;z-index:999!important;background:#fff!important;backdrop-filter:blur(10px)!important;}
.sm-admin-tabs-head{display:flex!important;align-items:center!important;justify-content:space-between!important;}
.sm-admin-tabs-head strong:before{content:"☰";display:inline-flex;margin-right:8px;background:#2563eb;color:#fff;width:24px;height:24px;border-radius:8px;align-items:center;justify-content:center;font-size:12px;vertical-align:middle;}
.sm-dash-hero-v824{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;background:linear-gradient(135deg,#0f172a 0%,#1d4ed8 58%,#06b6d4 100%)!important;border-radius:22px!important;color:#fff!important;padding:24px!important;box-shadow:0 18px 45px rgba(37,99,235,.24)!important;overflow:hidden!important;position:relative!important;}
.sm-dash-hero-v824:after{content:"";position:absolute;right:-70px;top:-70px;width:220px;height:220px;border-radius:999px;background:rgba(255,255,255,.12);}
.sm-dash-hero-v824 h1,.sm-dash-hero-v824 p,.sm-dash-hero-v824 span{color:#fff!important;position:relative;z-index:1;}
.sm-dash-hero-v824 h1{font-size:28px!important;font-weight:800!important;margin:6px 0!important;}
.sm-dash-hero-v824 p{opacity:.9!important;margin:0!important;font-size:13px!important;}
.sm-dash-profile{min-width:210px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);border-radius:18px;padding:14px 16px;position:relative;z-index:1;text-align:right;box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}
.sm-dash-profile span,.sm-dash-profile em{display:block;font-size:12px;color:#e0f2fe!important;font-style:normal}.sm-dash-profile strong{display:block;color:#fff!important;font-size:17px;margin:4px 0;font-weight:800}.sm-dash-profile em{opacity:.86}
.sm-quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0 4px;}
.sm-quick-actions a{display:flex;align-items:center;justify-content:center;min-height:42px;border-radius:14px;text-decoration:none!important;background:#fff;border:1px solid #dbe4f0;color:#1e3a8a;font-weight:800;box-shadow:0 8px 22px rgba(15,23,42,.06);transition:all .15s ease;}
.sm-quick-actions a:hover{transform:translateY(-1px);background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8;box-shadow:0 12px 26px rgba(37,99,235,.14);}
.sm-dashboard-pro .sm-dash-cards .sm-pro-card{border:0!important;background:linear-gradient(180deg,#ffffff,#f8fbff)!important;box-shadow:0 12px 28px rgba(15,23,42,.08)!important;transition:transform .15s ease,box-shadow .15s ease!important;}
.sm-dashboard-pro .sm-dash-cards .sm-pro-card:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(15,23,42,.12)!important;}
.sm-dashboard-pro .sm-card-icon{background:#eff6ff!important;color:#2563eb!important;border-radius:12px!important;min-width:34px!important;height:34px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:15px!important;}
.sm-dashboard-pro .sm-group-card .sm-group-lines p{background:#f8fafc!important;border-radius:10px!important;padding:8px 10px!important;margin:7px 0!important;}
.sm-alert-panel{border-radius:18px!important;background:#fff7ed!important;border:1px solid #fed7aa!important;padding:16px!important;margin:16px 0!important;box-shadow:0 8px 22px rgba(234,88,12,.07)!important;}
.sm-alert-panel h2{margin-top:0!important;color:#9a3412!important;}
.sm-alert-panel li{color:#7c2d12!important;font-weight:650!important;}
@media(max-width:960px){.sm-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr));}.sm-dash-hero-v824{align-items:flex-start!important;flex-direction:column!important}.sm-dash-profile{text-align:left;width:100%;box-sizing:border-box;}}
@media(max-width:782px){.sm-admin-tabs-wrap{top:46px!important}.sm-quick-actions{grid-template-columns:1fr 1fr;gap:10px}.sm-quick-actions a{font-size:12px;min-height:38px}.sm-dash-hero-v824{padding:18px!important;border-radius:18px!important}.sm-dash-hero-v824 h1{font-size:22px!important}}
@media(max-width:480px){.sm-quick-actions{grid-template-columns:1fr}.sm-dash-profile{min-width:0}}


/* v8.2.5 Smart Tables & Filters */
.sm-smart-table-card{background:#fff;border:1px solid #dbe4f0;border-radius:18px;box-shadow:0 10px 28px rgba(15,23,42,.06);padding:0;margin:14px 0 22px;overflow:hidden;}
.sm-smart-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px;background:linear-gradient(180deg,#ffffff,#f8fafc);border-bottom:1px solid #e5edf6;}
.sm-smart-left,.sm-smart-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.sm-smart-search,.sm-smart-date{height:34px!important;min-width:180px;border:1px solid #cbd5e1!important;border-radius:10px!important;background:#fff!important;color:#0f172a!important;box-shadow:none!important;font-size:13px!important;}
.sm-smart-date{min-width:140px;}
.sm-smart-count{display:inline-flex;align-items:center;min-height:32px;padding:0 10px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:800;}
.sm-smart-export,.sm-smart-reset{height:34px!important;border-radius:10px!important;font-weight:750!important;}
.sm-smart-table-scroll{overflow:auto;-webkit-overflow-scrolling:touch;}
.sm-smart-table-card table{margin:0!important;min-width:720px;box-shadow:none!important;border-radius:0!important;}
.sm-smart-table-card thead th{position:sticky!important;top:0;z-index:2;cursor:pointer;user-select:none;}
.sm-smart-table-card thead th:hover{background:#eef6ff!important;color:#1d4ed8!important;}
.sm-smart-hidden{display:none!important;}
.sm-smart-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:10px 14px;background:#fff;border-top:1px solid #e5edf6;}
.sm-smart-pager button{border:1px solid #cbd5e1;background:#fff;border-radius:9px;padding:6px 10px;cursor:pointer;font-weight:700;color:#334155;}
.sm-smart-pager button:disabled{opacity:.45;cursor:not-allowed;}
.sm-smart-page-info{font-size:12px;font-weight:750;color:#475569;}
.sm-bulk-bar{display:none;align-items:center;gap:8px;padding:10px 14px;background:#fff7ed;border-bottom:1px solid #fed7aa;color:#9a3412;font-weight:800;}
.sm-bulk-bar.sm-show{display:flex;}
.sm-smart-table-card tbody tr:hover{background:#f8fbff!important;}
@media(max-width:782px){.sm-smart-toolbar{align-items:stretch}.sm-smart-left,.sm-smart-right{width:100%;}.sm-smart-search,.sm-smart-date{min-width:0;width:100%;}.sm-smart-right .button,.sm-smart-export,.sm-smart-reset{flex:1}.sm-smart-pager{justify-content:center}.sm-smart-table-card table{min-width:760px;}.sm-smart-count{width:100%;justify-content:center;}}

/* v8.2.6 Member Profile Pro */
.sm-profile-pro-modal{max-width:1120px!important;width:94vw!important;max-height:92vh!important;overflow:auto!important;padding:0!important;background:#f8fafc!important;}
.sm-profile-pro-head{display:grid;grid-template-columns:420px 1fr;gap:18px;padding:22px;background:linear-gradient(135deg,#0f172a,#1d4ed8);color:#fff;border-radius:18px 18px 0 0;}
.sm-member-id-card{background:#fff;color:#0f172a;border-radius:20px;overflow:hidden;box-shadow:0 20px 45px rgba(15,23,42,.22);border:1px solid rgba(255,255,255,.45);}
.sm-card-top{display:flex;justify-content:space-between;gap:10px;background:#0f172a;color:#fff;padding:12px 14px;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;}
.sm-card-body{display:grid;grid-template-columns:76px 1fr 92px;gap:14px;align-items:center;padding:18px 16px;}
.sm-card-avatar{width:74px;height:74px;border-radius:22px;background:linear-gradient(135deg,#dbeafe,#eff6ff);display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:900;color:#1d4ed8;border:1px solid #bfdbfe;}
.sm-card-body h2{margin:0!important;font-size:20px!important;color:#0f172a!important;font-weight:900!important;}
.sm-card-body p{margin:4px 0 8px;color:#475569;font-weight:800;}
.sm-member-qr{width:86px;height:86px;border:1px solid #e2e8f0;border-radius:14px;padding:5px;background:#fff;}
.sm-card-foot{display:flex;justify-content:space-between;gap:10px;padding:10px 14px;background:#f8fafc;border-top:1px solid #e2e8f0;color:#475569;font-size:12px;font-weight:800;}
.sm-profile-pro-summary{align-self:center;position:relative;z-index:1;}
.sm-profile-pro-summary h2{margin:0 0 8px!important;color:#fff!important;font-size:28px!important;font-weight:900!important;}
.sm-profile-pro-summary p{color:#dbeafe!important;margin:0 0 16px!important;font-size:14px;}
.sm-profile-actions{display:flex;gap:10px;flex-wrap:wrap}.sm-profile-actions .button{border-radius:12px!important;font-weight:800!important;}
.sm-profile-tabs{padding:14px 18px 0;background:#fff;border-bottom:1px solid #e5edf6;display:flex;gap:8px;overflow:auto;}
.sm-profile-tabs .sm-tab{border:1px solid #dbe4f0!important;border-radius:999px!important;background:#fff!important;padding:9px 14px!important;font-weight:800!important;color:#334155!important;white-space:nowrap;}
.sm-profile-tabs .sm-tab.active{background:#2563eb!important;color:#fff!important;border-color:#2563eb!important;}
.sm-profile-pro-modal .sm-tab-panel{padding:18px!important;background:#fff!important;}
.sm-profile-metrics{grid-template-columns:repeat(4,minmax(0,1fr))!important;margin-bottom:16px!important;}
.sm-profile-metrics div{background:linear-gradient(180deg,#fff,#f8fbff)!important;border:1px solid #dbe4f0!important;border-radius:16px!important;box-shadow:0 8px 22px rgba(15,23,42,.05)!important;}
.sm-profile-pro-modal .sm-info-card{border-radius:18px!important;border:1px solid #dbe4f0!important;box-shadow:0 8px 22px rgba(15,23,42,.05)!important;background:#fff!important;}
.sm-profile-pro-modal .widefat{border-radius:14px!important;overflow:hidden!important;}
@media(max-width:960px){.sm-profile-pro-head{grid-template-columns:1fr}.sm-profile-pro-summary h2{font-size:22px!important}.sm-card-body{grid-template-columns:66px 1fr 78px}.sm-member-qr{width:72px;height:72px}.sm-profile-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:520px){.sm-profile-pro-head{padding:14px}.sm-card-body{grid-template-columns:1fr;text-align:center}.sm-card-avatar{margin:auto}.sm-member-qr{margin:auto}.sm-card-foot{display:block;text-align:center}.sm-profile-metrics{grid-template-columns:1fr!important}.sm-profile-actions .button{width:100%;text-align:center;}}
@media print{.sm-member-id-card{box-shadow:none!important;border:1px solid #111827!important}.sm-card-top{background:#111827!important;color:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact;}}


/* v8.2.8 Loan & Savings Plan Pro */
.sm-plans-wrap .sm-page-hero{display:flex;justify-content:space-between;gap:16px;align-items:center;background:linear-gradient(135deg,#ffffff,#eef5ff);border:1px solid #dbe7ff;border-radius:18px;padding:22px;margin:12px 0 18px;box-shadow:0 10px 30px rgba(15,23,42,.06)}
.sm-plans-wrap .sm-page-hero span{display:inline-block;font-size:12px;font-weight:700;background:#0f172a;color:#fff;border-radius:99px;padding:5px 10px;margin-bottom:8px}.sm-plans-wrap .sm-page-hero h1{margin:0 0 4px;font-size:26px}.sm-plans-wrap .sm-page-hero p{margin:0;color:#64748b}.sm-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.sm-inline-form{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.sm-plans-wrap .sm-card{border-radius:16px;box-shadow:0 8px 24px rgba(15,23,42,.06)}@media(max-width:900px){.sm-grid-2{grid-template-columns:1fr}.sm-plans-wrap .sm-page-hero{align-items:flex-start;flex-direction:column}.sm-inline-form input{max-width:110px}}


/* v8.2.9 Collection & Due Management Pro */
.sm-collection-due-wrap .sm-page-hero{background:linear-gradient(135deg,#103b5c,#1f7a8c);color:#fff;border-radius:18px;padding:22px;margin:18px 0;display:flex;align-items:center;justify-content:space-between;gap:16px;box-shadow:0 12px 32px rgba(16,59,92,.18)}
.sm-collection-due-wrap .sm-page-hero h1{color:#fff;margin:2px 0 5px;font-size:25px;font-weight:600}.sm-collection-due-wrap .sm-page-hero p,.sm-collection-due-wrap .sm-page-hero span{color:rgba(255,255,255,.86)}
.sm-collection-filter{display:flex;align-items:end;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:14px;margin-bottom:14px}.sm-collection-filter input{min-height:36px}.sm-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:15px 0}.sm-kpi-grid>div{background:#fff;border:1px solid #e6edf5;border-radius:16px;padding:16px;box-shadow:0 8px 24px rgba(15,23,42,.06)}.sm-kpi-grid span{display:block;color:#64748b;font-size:12px}.sm-kpi-grid strong{display:block;font-size:22px;margin-top:6px;color:#0f172a}.sm-overdue-row td{background:#fff7ed!important}.sm-badge{display:inline-flex;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:600}.sm-badge-danger{background:#fee2e2;color:#991b1b}.sm-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.sm-card{background:#fff;border:1px solid #e6edf5;border-radius:16px;padding:16px;margin-bottom:16px;box-shadow:0 8px 24px rgba(15,23,42,.05)}.sm-card h2{margin-top:0;font-size:18px}.sm-table th{font-weight:600}.dark-mode .sm-card,.dark-mode .sm-collection-filter,.dark-mode .sm-kpi-grid>div{background:#111827;border-color:#374151;color:#e5e7eb}.dark-mode .sm-kpi-grid strong{color:#fff}.dark-mode .sm-kpi-grid span{color:#cbd5e1}.dark-mode .sm-overdue-row td{background:#3b1f12!important;color:#fff}
@media(max-width:900px){.sm-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sm-grid-2{grid-template-columns:1fr}.sm-collection-due-wrap .sm-page-hero{display:block}.sm-collection-filter{display:block}.sm-collection-filter label,.sm-collection-filter .button{display:block;margin:8px 0;width:100%}}


/* v8.3.1 PDF / Excel Export Pro */
.sm-export-grid{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:16px;margin:18px 0}.sm-export-card,.sm-export-tips{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:18px;box-shadow:0 10px 26px rgba(15,23,42,.07)}.sm-export-card h2{margin:0 0 8px;font-size:18px;color:#0f172a}.sm-export-card p,.sm-export-tips p{color:#64748b}.sm-export-filter{margin-top:16px}.sm-report-module:before,.sm-statement-pro:before{content:'Somiti Manager Report';display:none}.sm-print-brand{display:none}@media(max-width:1000px){.sm-export-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:640px){.sm-export-grid{grid-template-columns:1fr}}@media print{.sm-admin-tabs-wrap,.sm-export-filter,.sm-export-center .button,.sm-smart-toolbar,.sm-smart-pager,.sm-bulk-bar,.sm-no-print{display:none!important}.sm-report-module,.sm-statement-pro{background:#fff!important}.sm-report-module:before,.sm-statement-pro:before{display:block;text-align:center;font-size:22px;font-weight:900;color:#111827;margin-bottom:6px}.sm-report-module:after,.sm-statement-pro:after{content:'Generated: ' attr(data-print-date);display:block;text-align:center;font-size:11px;color:#64748b;margin-bottom:14px}.sm-report-hero,.sm-dash-hero{background:#fff!important;color:#111827!important;border:1px solid #e5e7eb!important;box-shadow:none!important}.sm-report-hero h1,.sm-dash-hero h1{color:#111827!important}.sm-report-table-wrap,.sm-report-card,.sm-history-box,.sm-analytics-panel{box-shadow:none!important;border:1px solid #e5e7eb!important}table{page-break-inside:auto}tr{page-break-inside:avoid;page-break-after:auto}thead{display:table-header-group}}

/* v8.3.3 SMTP Connect / Disconnect Status */
.sm-smtp-status{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;font-size:12px;font-weight:700;margin-left:8px;vertical-align:middle}
.sm-smtp-status:before{content:'';width:8px;height:8px;border-radius:50%;display:inline-block;background:currentColor}
.sm-smtp-connected{background:#dcfce7;color:#166534;border:1px solid #86efac}
.sm-smtp-disconnected{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}
.sm-smtp-last{display:block;margin-top:8px;color:#64748b;font-size:12px;font-weight:500}
.sm-smtp-status-box{padding:12px;border:1px solid #e5e7eb;border-radius:14px;background:#f8fafc;margin:10px 0 14px}
body.sm-dark .sm-smtp-status-box{background:#111827;border-color:#374151}
body.sm-dark .sm-smtp-connected{background:#052e16;color:#bbf7d0;border-color:#166534}
body.sm-dark .sm-smtp-disconnected{background:#450a0a;color:#fecaca;border-color:#991b1b}

/* v8.4.1 SMTP Stability Hotfix */
.sm-smtp-error{display:block;margin-top:8px;color:#b91c1c;font-size:12px;font-weight:600;line-height:1.45}
body.sm-dark .sm-smtp-error{color:#fecaca}


/* v8.4.9 transaction receipt popup */
.sm-receipt-popup{display:none;position:fixed;inset:0;background:rgba(15,23,42,.62);z-index:999999;align-items:center;justify-content:center;padding:20px}.sm-receipt-popup.active{display:flex}.sm-receipt-popup-box{background:#fff;border-radius:18px;width:min(980px,96vw);height:min(820px,92vh);box-shadow:0 25px 80px rgba(15,23,42,.35);position:relative;padding:54px 14px 14px}.sm-receipt-popup-close{position:absolute;right:16px;top:14px}.sm-receipt-popup iframe{width:100%;height:100%;border:1px solid #e5e7eb;border-radius:12px;background:#fff}.sm-tx-print-preview{margin-left:6px;vertical-align:middle}

/* v8.6.6 Dashboard 4-card responsive grid + color fix */
.sm-dashboard-pro .sm-dash-cards,
.sm-dashboard-pro .sm-cards{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:16px!important;
    align-items:stretch!important;
    max-width:100%!important;
}
.sm-dashboard-pro .sm-dash-cards > .sm-card,
.sm-dashboard-pro .sm-cards > .sm-card,
.sm-dashboard-pro .sm-dash-cards > .sm-pro-card,
.sm-dashboard-pro .sm-cards > .sm-pro-card{
    min-width:0!important;
    width:auto!important;
    box-sizing:border-box!important;
    min-height:150px!important;
    padding:18px!important;
    border-radius:18px!important;
    border:1px solid #dbeafe!important;
    background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%)!important;
    color:#0f172a!important;
    overflow:hidden!important;
}
.sm-dashboard-pro .sm-card-top{
    background:transparent!important;
    color:#0f172a!important;
    padding:0!important;
    margin:0 0 14px!important;
    border:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:10px!important;
    text-transform:none!important;
    letter-spacing:0!important;
}
.sm-dashboard-pro .sm-card-top h3{
    color:#334155!important;
    font-size:13px!important;
    line-height:1.25!important;
    font-weight:800!important;
    margin:0!important;
    text-transform:none!important;
    word-break:normal!important;
}
.sm-dashboard-pro .sm-card-icon{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    border-radius:13px!important;
    background:#eff6ff!important;
    color:#2563eb!important;
    font-size:16px!important;
}
.sm-dashboard-pro .sm-card strong{
    color:#0f172a!important;
    font-size:26px!important;
    line-height:1.15!important;
    font-weight:900!important;
    word-break:break-word!important;
    overflow-wrap:anywhere!important;
}
.sm-dashboard-pro .sm-group-card .sm-group-lines p{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    background:#f8fafc!important;
    border:1px solid #e5edf7!important;
    border-radius:10px!important;
    color:#334155!important;
    padding:8px 10px!important;
    margin:8px 0!important;
    font-size:12px!important;
}
.sm-dashboard-pro .sm-group-card .sm-group-lines strong,
.sm-dashboard-pro .sm-group-card .sm-group-lines b{
    color:#0f172a!important;
    font-size:14px!important;
    white-space:nowrap!important;
}
.sm-dashboard-pro .sm-card-joining:before{background:linear-gradient(90deg,#16a34a,#22c55e)!important;}
.sm-dashboard-pro .sm-card-accounting:before{background:linear-gradient(90deg,#2563eb,#06b6d4)!important;}
.sm-dashboard-pro .sm-card-chada:before{background:linear-gradient(90deg,#7c3aed,#a855f7)!important;}
.sm-dashboard-pro .sm-alert-panel{
    min-height:150px!important;
    box-sizing:border-box!important;
}
@media(max-width:1200px){
    .sm-dashboard-pro .sm-dash-cards,
    .sm-dashboard-pro .sm-cards{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
    .sm-dashboard-pro .sm-card strong{font-size:23px!important;}
}
@media(max-width:960px){
    .sm-dashboard-pro .sm-dash-cards,
    .sm-dashboard-pro .sm-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:560px){
    .sm-dashboard-pro .sm-dash-cards,
    .sm-dashboard-pro .sm-cards{grid-template-columns:1fr!important;}
    .sm-dashboard-pro .sm-card strong{font-size:22px!important;}
}

/* v8.6.8 Clean popup based Settings page */
.sm-settings-clean .sm-setting-button-grid{display:grid;grid-template-columns:repeat(3,minmax(220px,1fr));gap:18px;margin:22px 0}.sm-setting-tile{background:#fff;border:1px solid #cfe0f5;border-radius:16px;box-shadow:0 10px 24px rgba(15,23,42,.06);padding:22px;text-align:left;cursor:pointer;min-height:132px;transition:.18s ease}.sm-setting-tile:hover{transform:translateY(-2px);border-color:#2f6af0;box-shadow:0 14px 34px rgba(47,106,240,.14)}.sm-setting-tile span{display:inline-flex;width:44px;height:44px;border-radius:14px;align-items:center;justify-content:center;background:#eef5ff;margin-bottom:12px;font-size:22px}.sm-setting-tile strong{display:block;font-size:16px;color:#0f172a;margin-bottom:6px}.sm-setting-tile small{display:block;color:#64748b;line-height:1.45}.sm-setting-danger span{background:#fff1f2}.sm-settings-modal{display:none;position:fixed;z-index:100000;inset:0;background:rgba(15,23,42,.58);padding:40px 22px;overflow:auto}.sm-settings-modal.active{display:block}.sm-modal-panel{background:#f8fbff;border-radius:18px;border:1px solid #d8e4f5;box-shadow:0 24px 80px rgba(0,0,0,.28);max-width:760px;margin:0 auto;padding:26px;position:relative}.sm-modal-wide{max-width:1120px}.sm-modal-close{position:absolute;right:16px;top:14px;border:0;background:#eef2f7;color:#0f172a;border-radius:50%;width:36px;height:36px;font-size:24px;line-height:32px;cursor:pointer}.sm-modal-close:hover{background:#ef4444;color:#fff}.sm-sub-setting-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 20px}.sm-sub-setting-tabs button{border:1px solid #bdd5f6;background:#fff;border-radius:12px;padding:10px 14px;font-weight:700;color:#1557b0;cursor:pointer}.sm-sub-setting-tabs button.active{background:#2f6af0;color:#fff;border-color:#2f6af0}.sm-sub-panel{display:none}.sm-sub-panel.active{display:block}.sm-settings-clean .sm-form textarea{width:100%;min-height:220px}.sm-settings-clean .sm-tab-settings{width:100%;overflow:auto}.sm-settings-clean .sm-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:18px}.sm-settings-clean .sm-tool-card{background:#fff;border:1px solid #d8e4f5;border-radius:16px;padding:18px}@media(max-width:900px){.sm-settings-clean .sm-setting-button-grid,.sm-settings-clean .sm-settings-grid{grid-template-columns:1fr}.sm-settings-modal{padding:16px 8px}.sm-modal-panel{padding:20px 14px}}
