:root{
  --navy-1:#0a0e14; --navy-2:#111722; --panel:#151d2b; --line:#28344a;
  --pink:#2e6fd9; --pink-2:#1b4faf; --cyan:#5b9cf0;
  --text-1:#eef1f8; --text-2:#8d97ab;
  --success:#2ecc71; --danger:#e74c3c; --warning:#f39c12;
}
*{box-sizing:border-box;}
body.admin-body{
  margin:0; font-family:'Segoe UI',Tahoma,sans-serif; background:var(--navy-1); color:var(--text-1);
}
body.admin-body.has-sidebar{ display:flex; min-height:100vh; }

/* หน้าที่ไม่ได้ล็อกอิน (login, สมัครสมาชิก) ใช้แถบบนธรรมดา ไม่มี sidebar */
.admin-topbar-simple{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px;
  background:var(--navy-2); border-bottom:1px solid var(--line); padding:14px 24px;
}
.admin-brand{ font-size:20px; font-weight:800; }
.admin-brand span{ color:var(--pink); }
.admin-user{ font-size:14px; color:var(--text-2); }
.admin-user a{ color:var(--cyan); }

/* Sidebar (หน้าหลังบ้านที่ล็อกอินแล้ว) */
.admin-sidebar{
  width:230px; flex:0 0 230px; background:var(--navy-2); border-right:1px solid var(--line);
  display:flex; flex-direction:column; position:sticky; top:0; height:100vh;
}
.sidebar-brand{ font-size:20px; font-weight:800; padding:22px 20px; border-bottom:1px solid var(--line); }
.sidebar-brand span{ color:var(--pink); }
.sidebar-nav{ flex:1; padding:14px 10px; display:flex; flex-direction:column; gap:2px; overflow-y:auto; }
.sidebar-nav a{
  color:var(--text-2); text-decoration:none; font-weight:600; font-size:14px;
  padding:11px 14px; border-radius:8px; transition:background .15s ease, color .15s ease, transform .1s ease;
  display:flex; align-items:center; gap:10px;
}
.sidebar-nav a i{ width:16px; text-align:center; font-size:13px; opacity:0.85; }
.sidebar-nav a:hover{ background:var(--panel); color:var(--text-1); transform:translateX(2px); }
.sidebar-nav a.active{ background:linear-gradient(90deg, var(--pink-2), var(--pink)); color:#fff; box-shadow:0 4px 14px rgba(255,45,149,0.25); }
.sidebar-nav a.active i{ opacity:1; }
.sidebar-user{ padding:16px 20px; border-top:1px solid var(--line); }
.sidebar-user-name{ font-size:13.5px; font-weight:700; }
.sidebar-user-role{ font-size:12px; color:var(--text-2); margin:2px 0 10px; }
.sidebar-logout{ font-size:13px; color:var(--cyan); text-decoration:none; }

.admin-content-wrap{ flex:1; min-width:0; }
.admin-main{ max-width:1300px; margin:0 auto; padding:32px 24px; }

@media (max-width:860px){
  body.admin-body.has-sidebar{ flex-direction:column; }

  .mobile-topbar{
    display:flex; align-items:center; gap:14px; padding:12px 16px;
    background:var(--navy-2); border-bottom:1px solid var(--line);
    position:sticky; top:0; z-index:60;
  }
  .mobile-menu-btn{
    background:var(--panel); border:1px solid var(--line); color:var(--text-1);
    width:38px; height:38px; border-radius:8px; font-size:16px; cursor:pointer;
  }
  .mobile-topbar-brand{ font-weight:800; font-size:16px; }
  .mobile-topbar-brand span{ color:var(--pink); }

  .admin-sidebar{
    position:fixed; top:0; left:0; height:100vh; width:270px; z-index:80;
    transform:translateX(-100%); transition:transform .22s ease; box-shadow:8px 0 30px rgba(0,0,0,0.4);
  }
  .admin-sidebar.mobile-open{ transform:translateX(0); }
  .sidebar-overlay{
    display:none; position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:70;
  }
  .sidebar-overlay.active{ display:block; }
}
@media (min-width:861px){
  .mobile-topbar{ display:none; }
}

h1{ font-size:26px; margin-bottom:20px; }
h2{ font-size:19px; margin:24px 0 14px; }

.auth-box, .card{
  background:var(--panel); border:1px solid var(--line); border-radius:14px;
  padding:28px; max-width:420px; margin-bottom:20px; box-shadow:0 2px 12px rgba(0,0,0,0.18);
}
.card{ max-width:700px; }
h1{ letter-spacing:-0.01em; }
h2{ letter-spacing:-0.005em; }

body.admin-body:not(.has-sidebar) .admin-main{
  min-height:calc(100vh - 60px); display:flex; align-items:center; justify-content:center;
}
body.admin-body:not(.has-sidebar) .auth-box{
  position:relative; margin-bottom:0; padding-top:32px; box-shadow:0 12px 32px rgba(0,0,0,0.35);
}
body.admin-body:not(.has-sidebar) .auth-box::before{
  content:''; position:absolute; top:0; left:0; right:0; height:4px;
  background:linear-gradient(90deg, var(--cyan), var(--pink)); border-radius:14px 14px 0 0;
}
body.admin-body:not(.has-sidebar) .auth-box h1{ text-align:center; margin-bottom:6px; }

label{ display:block; font-size:13.5px; color:var(--text-2); margin:14px 0 6px; }
input[type=text], input[type=password], input[type=tel], input[type=number], input[type=search], input[type=file], select{
  width:100%; padding:11px 14px; border-radius:8px; border:1px solid var(--line);
  background:var(--navy-2); color:var(--text-1); font-size:14px;
}
.small-input{ width:100px !important; display:inline-block; }
.checkbox-row{ display:block; margin-bottom:8px; font-size:14px; color:var(--text-1); }
.checkbox-row input{ margin-right:8px; }

.btn-primary, .btn-secondary, .btn-danger, .btn-success{
  border:none; padding:11px 22px; border-radius:8px; font-weight:700; cursor:pointer; font-size:14px; margin-top:16px;
}
.btn-primary{ background:linear-gradient(180deg,var(--cyan),var(--pink)); color:#fff; width:100%; }
.btn-secondary{ background:var(--navy-2); border:1px solid var(--line); color:var(--text-1); }
.btn-danger{ background:var(--danger); color:#fff; }
.btn-success{ background:var(--success); color:#fff; }
.btn-small{ padding:6px 14px; font-size:12.5px; margin-top:0; }
.link-danger{ color:var(--danger); font-size:13px; font-weight:normal; margin-left:12px; }

.form-error{ background:rgba(231,76,60,0.12); border:1px solid rgba(231,76,60,0.4); color:#ff9d9d; padding:10px 14px; border-radius:8px; }
.form-success{ background:rgba(46,204,113,0.12); border:1px solid rgba(46,204,113,0.4); color:#7be9a4; padding:10px 14px; border-radius:8px; }
.alert-warning{ background:rgba(243,156,18,0.12); border:1px solid rgba(243,156,18,0.4); color:#ffce7a; padding:12px 16px; border-radius:8px; margin-bottom:20px; }

.stat-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px; margin-bottom:24px; }
.stat-card{ background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:18px; display:flex; flex-direction:column; gap:8px; }
.stat-label{ font-size:12.5px; color:var(--text-2); }
.stat-value{ font-size:26px; font-weight:800; color:var(--cyan); }

.quick-links{ display:flex; gap:12px; flex-wrap:wrap; }
.quick-link{ background:var(--panel); border:1px solid var(--line); padding:14px 24px; border-radius:10px; color:var(--text-1); text-decoration:none; font-weight:700; }
.quick-link:hover{ border-color:var(--pink); }

.search-form{ display:flex; gap:8px; margin-bottom:16px; max-width:400px; }

.data-table{ width:100%; border-collapse:collapse; font-size:13.5px; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.data-table th, .data-table td{ border-bottom:1px solid var(--line); padding:11px 14px; text-align:left; }
.data-table th{ color:var(--text-1); font-weight:700; font-size:12.5px; text-transform:uppercase; letter-spacing:0.03em; background:var(--navy-2); border-bottom:2px solid var(--line); }
.data-table tbody tr:nth-child(even){ background:rgba(255,255,255,0.015); }
.data-table tbody tr:hover{ background:rgba(91,156,240,0.06); }
.data-table tbody tr:last-child td{ border-bottom:none; }
.inline-form{ display:flex; gap:6px; align-items:center; }

.filter-tabs{ display:flex; gap:8px; margin-bottom:18px; }
.filter-tab{ padding:8px 16px; border-radius:20px; background:var(--panel); border:1px solid var(--line); color:var(--text-2); text-decoration:none; font-size:13.5px; font-weight:600; }
.filter-tab.active{ background:var(--pink); color:#fff; border-color:transparent; }

.status-badge{
  display:inline-block; padding:4px 12px; border-radius:20px; font-size:12px; font-weight:700;
}
.status-badge.pending{ background:rgba(243,156,18,0.18); color:#ffce7a; }
.status-badge.approved{ background:rgba(46,204,113,0.18); color:#7be9a4; }
.status-badge.rejected{ background:rgba(231,76,60,0.18); color:#ff9d9d; }
.type-badge{
  display:inline-block; padding:3px 10px; border-radius:6px; font-size:12px; font-weight:700;
}
.type-badge.deposit{ background:rgba(46,204,113,0.15); color:#7be9a4; }
.type-badge.withdraw{ background:rgba(231,76,60,0.15); color:#ff9d9d; }
.channel-badge{
  display:inline-block; padding:3px 10px; border-radius:6px; font-size:12px; font-weight:600;
  background:var(--navy-2); border:1px solid var(--line); color:var(--text-2);
}

.summary-bar{
  display:flex; gap:16px; flex-wrap:wrap; align-items:stretch; margin-bottom:20px;
}
.summary-box{
  flex:1; min-width:200px; border-radius:12px; padding:16px 20px;
  display:flex; flex-direction:column; gap:6px; color:#fff;
}
.summary-deposit{ background:linear-gradient(135deg, #1e8449, #27ae60); }
.summary-withdraw{ background:linear-gradient(135deg, #922b21, #e74c3c); }
.summary-label{ font-size:13px; opacity:0.9; }
.summary-value{ font-size:24px; font-weight:800; }
.summary-range{
  background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:14px 18px;
  display:flex; flex-direction:column; justify-content:center; gap:6px;
}
.summary-range label{ margin:0; }
.summary-range input[type=date]{ width:auto; padding:8px 10px; }

.dash-topbar{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.dash-title h1{ margin:0; font-size:24px; }
.dash-subtitle{ font-size:13.5px; color:var(--text-2); }
.live-badge{
  background:rgba(46,204,113,0.15); color:#7be9a4; font-size:12.5px; font-weight:700;
  padding:5px 14px; border-radius:20px;
}
.notice-banner{
  background:rgba(120,170,255,0.1); border:1px solid rgba(120,170,255,0.3); color:var(--text-1);
  padding:12px 16px; border-radius:10px; font-size:13.5px; margin-bottom:20px;
}
.icon-stat-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; margin-bottom:24px; }
.icon-stat-card{
  display:flex; flex-direction:column; gap:6px; padding:18px 20px; border-radius:12px;
  text-decoration:none; color:#fff; transition:transform .15s ease;
}
.icon-stat-card:hover{ transform:translateY(-2px); }
.icon-stat-blue{ background:linear-gradient(135deg, #1a5fa8, #2e86de); }
.icon-stat-green{ background:linear-gradient(135deg, #1e8449, #27ae60); }
.icon-stat-orange{ background:linear-gradient(135deg, #b9770e, #e67e22); }
.icon-stat-label{ font-size:12.5px; opacity:0.9; }
.icon-stat-value{ font-size:30px; font-weight:800; }
.icon-stat-desc{ font-size:11.5px; opacity:0.8; }

.dash-grid{ display:grid; grid-template-columns:1.5fr 1fr; gap:16px; margin-bottom:20px; align-items:start; }
@media (max-width:900px){ .dash-grid{ grid-template-columns:1fr; } }


.member-funnel-grid{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:14px;margin:0 0 16px}
.funnel-card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:16px;display:flex;gap:12px;align-items:center}
.funnel-card span{display:block;color:var(--text-2);font-size:12.5px}.funnel-card strong{display:block;font-size:25px;margin-top:4px}.funnel-icon{font-size:28px}.funnel-success{border-color:rgba(46,204,113,.45)}.funnel-muted{opacity:.88}
.conversion-card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:24px}.conversion-title,.conversion-legend{display:flex;justify-content:space-between;gap:12px}.conversion-title{margin-bottom:10px}.conversion-legend{margin-top:9px;color:var(--text-2);font-size:12.5px}.conversion-track{height:15px;border-radius:20px;background:rgba(255,255,255,.08);overflow:hidden}.conversion-fill{height:100%;background:linear-gradient(90deg,#1e8449,#2ecc71);border-radius:20px}
.activity-feed{display:flex;flex-direction:column;gap:8px;margin-bottom:26px}.activity-row{display:grid;grid-template-columns:40px minmax(180px,1fr) 70px 140px 90px;align-items:center;gap:12px;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:11px 14px}.activity-deposit{border-left:4px solid var(--success)}.activity-withdraw{border-left:4px solid var(--danger)}.activity-marker{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;font-weight:900}.activity-deposit .activity-marker{background:rgba(46,204,113,.15);color:#7be9a4}.activity-withdraw .activity-marker{background:rgba(231,76,60,.15);color:#ff9d9d}.activity-main{display:flex;flex-direction:column}.activity-main span,.activity-main small{color:var(--text-2);font-size:12px}.activity-type{font-weight:700}.activity-amount{font-size:17px;font-weight:800}.activity-deposit .activity-amount{color:#7be9a4}.activity-withdraw .activity-amount{color:#ff9d9d}.activity-empty{padding:30px;text-align:center;color:var(--text-2);background:var(--panel);border:1px solid var(--line);border-radius:10px}
@media(max-width:900px){.member-funnel-grid{grid-template-columns:repeat(2,1fr)}.activity-row{grid-template-columns:36px 1fr auto}.activity-type{display:none}.activity-row>div:last-child{grid-column:2/4}.activity-amount{text-align:right}}
@media(max-width:520px){.member-funnel-grid{grid-template-columns:1fr}.conversion-title,.conversion-legend{flex-direction:column}.activity-row{grid-template-columns:32px 1fr}.activity-amount{grid-column:2;text-align:left}.activity-row>div:last-child{grid-column:2}}

/* แถบรายการฝาก/ถอนเต็มแถว */
.data-table tbody tr.txn-row.txn-deposit{background:linear-gradient(90deg,rgba(20,115,63,.34),rgba(20,115,63,.12))!important;border-left:5px solid #2ecc71}
.data-table tbody tr.txn-row.txn-withdraw{background:linear-gradient(90deg,rgba(155,35,35,.38),rgba(155,35,35,.13))!important;border-left:5px solid #ef5350}
.data-table tbody tr.txn-row.txn-deposit:hover{background:linear-gradient(90deg,rgba(20,140,72,.48),rgba(20,140,72,.18))!important}
.data-table tbody tr.txn-row.txn-withdraw:hover{background:linear-gradient(90deg,rgba(180,45,45,.52),rgba(180,45,45,.18))!important}
.customer-bank{display:flex;flex-direction:column;gap:3px;white-space:nowrap}.customer-bank strong{font-size:12px}.customer-bank span{font-size:13px;font-weight:800;letter-spacing:.04em}


/* ===== หน้ารายการฝาก-ถอน: จัดระเบียบและอ่านง่าย ===== */
.transactions-table-wrap{width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:#0b1119;box-shadow:0 10px 28px rgba(0,0,0,.18)}
.transactions-table{min-width:1280px;border:0;border-radius:0;table-layout:auto}
.transactions-table th{position:sticky;top:0;z-index:2;white-space:nowrap;padding:13px 12px;background:#121b29;font-size:12px;text-transform:none;letter-spacing:0;color:#dfe9f7}
.transactions-table td{padding:12px;vertical-align:middle;line-height:1.45;color:#edf4ff}
.transactions-table td:nth-child(1),.transactions-table td:nth-child(7){font-weight:800;white-space:nowrap}
.transactions-table td:nth-child(2),.transactions-table td:nth-child(3),.transactions-table td:nth-child(5),.transactions-table td:nth-child(6),.transactions-table td:nth-child(9),.transactions-table td:nth-child(11),.transactions-table td:nth-child(13),.transactions-table td:nth-child(14){white-space:nowrap}
.transactions-table tbody tr.txn-row{transition:filter .15s ease,transform .15s ease}
.transactions-table tbody tr.txn-row:hover{filter:brightness(1.14)}
.transactions-table tbody tr.txn-row.txn-deposit{background:rgba(19,92,57,.42)!important;box-shadow:inset 4px 0 0 #2ecc71}
.transactions-table tbody tr.txn-row.txn-withdraw{background:rgba(117,36,42,.45)!important;box-shadow:inset 4px 0 0 #ff5b62}
.transactions-table tbody tr.txn-row.txn-deposit td{border-bottom-color:rgba(78,201,132,.22)}
.transactions-table tbody tr.txn-row.txn-withdraw td{border-bottom-color:rgba(255,102,109,.22)}
.customer-bank{min-width:150px;padding:8px 10px;border-radius:8px;background:rgba(7,13,21,.34)}
.customer-bank strong{font-size:12px;color:#b9c9dd;font-weight:600}.customer-bank span{font-size:14px;color:#fff;font-weight:800;letter-spacing:.035em}
.type-badge{min-width:58px;text-align:center;padding:5px 10px}
.channel-badge{padding:6px 10px;line-height:1.2;text-align:center}
.status-badge{min-width:66px;text-align:center;padding:6px 10px;line-height:1.2}
.slip-button{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:7px 10px;border-radius:8px;background:#1d6ee8;color:#fff!important;text-decoration:none;font-size:12px;font-weight:800;white-space:nowrap;box-shadow:0 4px 12px rgba(29,110,232,.22)}
.slip-button:hover{background:#3484f6;text-decoration:none}
.summary-bar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) minmax(330px,1fr);gap:14px}
.summary-range>div{flex-wrap:wrap}.summary-range input[type=date]{min-width:130px;background:#fff;color:#111;border-radius:7px}
@media(max-width:1100px){.summary-bar{grid-template-columns:1fr 1fr}.summary-range{grid-column:1/-1}.filter-tabs{overflow-x:auto;padding-bottom:4px}.filter-tab{white-space:nowrap}}
@media(max-width:650px){.summary-bar{grid-template-columns:1fr}.summary-range{grid-column:auto}.summary-range>div{display:grid!important;grid-template-columns:1fr auto 1fr}.summary-range button{grid-column:1/-1;width:100%}.transactions-table-wrap{border-radius:10px}.transactions-table th,.transactions-table td{padding:10px}}


/* ===== Compact transaction list v7 ===== */
.transactions-table-wrap{border-radius:10px!important}
.transactions-table{min-width:1180px!important;font-size:12px!important}
.transactions-table th{padding:9px 8px!important;font-size:11px!important;height:38px!important}
.transactions-table td{padding:7px 8px!important;line-height:1.25!important;height:48px!important;font-size:12px!important}
.transactions-table tbody tr.txn-row{height:48px!important}
.transactions-table tbody tr.txn-row.txn-deposit{background:rgba(20,92,57,.20)!important;box-shadow:inset 3px 0 0 #2ecc71!important}
.transactions-table tbody tr.txn-row.txn-withdraw{background:rgba(125,38,44,.23)!important;box-shadow:inset 3px 0 0 #ff5b62!important}
.transactions-table tbody tr.txn-row:hover{filter:brightness(1.22)!important}
.customer-bank{min-width:128px!important;padding:5px 8px!important;border-radius:6px!important;gap:1px!important}
.customer-bank strong{font-size:10.5px!important;line-height:1.2!important}.customer-bank span{font-size:12.5px!important;line-height:1.2!important}
.channel-badge,.type-badge,.status-badge,.slip-button{padding:5px 8px!important;border-radius:6px!important;font-size:11px!important;line-height:1!important;white-space:nowrap!important}
.transactions-table td:nth-child(10){min-width:110px!important;max-width:130px!important}
.transactions-table td:nth-child(13){white-space:nowrap!important;font-size:11px!important}
.ocr-chip{display:inline-flex;align-items:center;margin:1px 2px 1px 0;padding:2px 5px;border-radius:4px;font-size:10px;font-weight:700;white-space:nowrap}
.ocr-chip.ok{color:#7df0ad;background:rgba(32,160,91,.18)}.ocr-chip.warn{color:#ffd27b;background:rgba(210,142,25,.18)}.ocr-chip.bad{color:#ff9298;background:rgba(220,64,74,.18)}

/* ===== Members: form only after clicking add ===== */
.member-create-toolbar{display:flex;justify-content:flex-end;margin:0 0 14px}
.member-create-panel[hidden]{display:none!important}
.member-create-panel{margin-bottom:18px;border:1px solid #2c4261;animation:memberPanelIn .18s ease-out}
.member-create-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:14px}
.member-create-head h2{margin:0 0 3px}.member-create-head p{margin:0;color:var(--muted);font-size:13px}
.panel-close{border:1px solid var(--line);background:#111a28;color:#dfe9f7;width:34px;height:34px;border-radius:8px;font-size:23px;line-height:1;cursor:pointer}
.member-create-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}
.member-create-grid label{display:flex;flex-direction:column;gap:6px;margin:0}.member-create-grid label span{font-size:12px;color:#b9c9dd;font-weight:700}
.member-create-grid input{margin:0!important}.member-create-actions{grid-column:1/-1;display:flex;justify-content:flex-end;padding-top:4px}
@keyframes memberPanelIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media(max-width:720px){.member-create-grid{grid-template-columns:1fr}.member-create-actions{grid-column:auto}.member-create-toolbar .btn-primary{width:100%}}

/* Announcement / bonus combined navigation */
.content-switcher{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 18px}.content-switcher-item{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);text-decoration:none;transition:.18s ease}.content-switcher-item:hover{border-color:#3b82f6;transform:translateY(-1px)}.content-switcher-item.active{border-color:#3b82f6;background:rgba(59,130,246,.13);box-shadow:0 0 0 1px rgba(59,130,246,.15) inset}.content-switcher-item>i{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:rgba(59,130,246,.14);color:#60a5fa;font-size:17px}.content-switcher-item span{display:flex;flex-direction:column;line-height:1.35}.content-switcher-item strong{font-size:15px}.content-switcher-item small{color:var(--text-2);font-size:12px;margin-top:2px}.nav-sub-label{margin-left:auto;font-size:10px;padding:2px 6px;border-radius:999px;background:rgba(59,130,246,.16);color:#93c5fd}.compact-form-card{max-width:900px}.form-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.form-grid-full{grid-column:1/-1}.announcement-item{padding:16px 18px}.announcement-item-head,.item-actions-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.announcement-item-head h3{margin:0}.item-actions-row{margin-top:14px;padding-top:12px;border-top:1px solid var(--border)}.item-actions-row small{color:var(--text-2)}.status-pill{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:700}.status-active{color:#6ee7a8;background:rgba(16,185,129,.15)}.status-inactive{color:#a7b0bf;background:rgba(148,163,184,.12)}.table-responsive{overflow-x:auto}.table-actions{white-space:nowrap}.empty-state{padding:24px;text-align:center;border:1px dashed var(--border);border-radius:12px;color:var(--text-2);background:var(--surface)}
@media(max-width:720px){.content-switcher,.form-grid-2{grid-template-columns:1fr}.announcement-item-head,.item-actions-row{align-items:flex-start;flex-direction:column}.nav-sub-label{display:none}}


/* ===== Sidebar collapsible menu group ===== */
.sidebar-menu-group{margin:2px 10px;border-radius:8px;overflow:hidden}
.sidebar-menu-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;border:0;background:transparent;color:var(--text-2);font:inherit;font-size:13.5px;font-weight:700;text-align:left;cursor:pointer;border-radius:7px;transition:background .16s ease,color .16s ease}
.sidebar-menu-toggle:hover,.sidebar-menu-group.active>.sidebar-menu-toggle{background:rgba(255,255,255,.055);color:var(--text-1)}
.sidebar-menu-title{display:flex;align-items:center;gap:10px;min-width:0}.sidebar-menu-title>i{width:18px;text-align:center;color:var(--cyan)}
.sidebar-menu-arrow{font-size:10px;transition:transform .18s ease;color:#c8d2df}.sidebar-menu-group.open .sidebar-menu-arrow{transform:rotate(180deg)}
.sidebar-submenu{display:none;margin:0 0 5px 10px;padding:3px 0 3px 10px;border-left:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.018)}
.sidebar-menu-group.open .sidebar-submenu{display:block}
.sidebar-submenu a{display:block!important;margin:0!important;padding:10px 12px!important;border-radius:0!important;background:transparent!important;color:#c8d0dc!important;font-size:12.5px!important;font-weight:600!important;border-left:3px solid transparent}
.sidebar-submenu a:hover{background:rgba(255,255,255,.045)!important;color:#fff!important}
.sidebar-submenu a.active{background:rgba(76,103,255,.12)!important;color:#fff!important;border-left-color:#5b7cff}
@media(max-width:860px){.sidebar-menu-group{width:auto;min-width:180px}.sidebar-submenu{position:relative}}

/* v11: remove yellow glow (ส่วนนี้ยังดีอยู่ เก็บไว้) */
.sidebar-nav a.active,
.sidebar-submenu a.active,
.sidebar-menu-toggle.active,
.filter-tab.active{
  box-shadow:none!important;
  text-shadow:none!important;
}
.status-badge.pending{
  background:rgba(59,130,246,.16)!important;
  color:#9fc5ff!important;
  border:1px solid rgba(96,165,250,.28);
}
.alert-warning,
.ocr-chip.warn{
  background:rgba(59,130,246,.12)!important;
  border-color:rgba(96,165,250,.25)!important;
  color:#a9cbff!important;
  box-shadow:none!important;
}

/* แก้บั๊ก: เดิมพยายามยัดตารางทั้งหมดให้พอดีจอมือถือด้วย table-layout:fixed + คอลัมน์แคบมาก (รวมกันเกิน 100%)
   ทำให้ตัวอักษร/badge ทับกันอ่านไม่ออก — แก้กลับมาให้เลื่อนดูทางขวาได้แทน (ปลอดภัยกว่า อ่านออกแน่นอน) */
.transactions-table-wrap{
  overflow-x:auto!important;
  overflow-y:visible!important;
  -webkit-overflow-scrolling:touch;
}
.transactions-table{
  width:100%;
  min-width:920px;
  font-size:12.5px;
}
.transactions-table th,
.transactions-table td{
  padding:9px 10px;
  white-space:normal; /* แก้บั๊ก: เดิม nowrap ทำให้ chip หลายอันในคอลัมน์ OCR ทับกัน ต้องให้ตัดบรรทัดได้ */
  vertical-align:middle;
}
.transactions-table td:nth-child(1),
.transactions-table td:nth-child(7){ white-space:nowrap; } /* # และจำนวนเงิน ไม่ต้องตัดบรรทัด */
.customer-bank{ padding:8px 10px; }
.customer-bank strong{ font-size:11.5px; line-height:1.3; }
.customer-bank span{ font-size:12px; }
.channel-badge,.type-badge,.status-badge,.ocr-chip,.slip-button{
  font-size:11px!important;
  padding:5px 8px!important;
  box-shadow:none!important;
  display:inline-block;
  margin:2px 2px 2px 0;
}
.inline-form{ display:flex; flex-direction:column; gap:5px; min-width:0; }
.inline-form .btn-small{ width:100%; padding:6px 8px; font-size:11px; white-space:nowrap; }

/* จอเล็กมาก: ซ่อนคอลัมน์ที่ไม่จำเป็นที่สุดในโหมดตาราง (ใช้เฉพาะตอนที่ยังไม่ตัดไปเป็นการ์ด) */
@media(max-width:1200px){
  .transactions-table th:nth-child(8),.transactions-table td:nth-child(8){display:none}
}

/* ===== สลับระหว่างตาราง (คอม) กับการ์ด (มือถือ) — ใช้ HTML แยกกันจริง ไม่ใช่ CSS trick ===== */
.mobile-only{ display:none!important; }
@media(max-width:820px){
  .desktop-only{ display:none!important; }
  .mobile-only{ display:block!important; }
}

.txn-card-list{ display:flex; flex-direction:column; gap:12px; }
.txn-card{
  background:var(--navy-2); border:1px solid var(--line); border-radius:12px;
  padding:14px 16px; box-shadow:0 4px 14px rgba(0,0,0,0.2);
}
.txn-card-deposit{ border-left:4px solid #2ecc71; }
.txn-card-withdraw{ border-left:4px solid #ef5350; }
.txn-card-top{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:6px; }
.txn-card-id{ font-weight:700; color:var(--text-2); font-size:13px; }
.txn-card-amount{ font-size:22px; font-weight:800; margin:6px 0 12px; }
.txn-card-row{
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
  padding:8px 0; border-bottom:1px solid rgba(255,255,255,0.06); font-size:13px;
}
.txn-card-row:last-of-type{ border-bottom:none; }
.txn-card-row > span:first-child{ color:var(--text-2); flex-shrink:0; }
.txn-card-row strong{ text-align:right; }
.txn-card-actions{ display:flex; gap:10px; margin-top:12px; }
.txn-card-actions button{ flex:1; }

/* Profile menu and page */
.sidebar-profile-group{ margin-top:auto; }
.sidebar-user{ flex:0 0 auto; background:var(--navy-2); }
.sidebar-logout{
  display:flex; align-items:center; gap:9px; width:100%; margin-top:10px;
  padding:10px 12px; border:1px solid rgba(231,76,60,.35); border-radius:8px;
  color:#ff9d9d; background:rgba(231,76,60,.08); font-weight:700;
}
.sidebar-logout:hover{ background:rgba(231,76,60,.16); color:#fff; }
.profile-page{ max-width:920px; }
.profile-heading{ display:flex; align-items:center; gap:16px; margin-bottom:22px; }
.profile-heading h1{ margin:0 0 4px; }
.profile-heading p{ margin:0; color:var(--text-2); }
.profile-avatar{
  width:58px; height:58px; border-radius:16px; display:grid; place-items:center;
  background:rgba(91,156,240,.14); border:1px solid rgba(91,156,240,.3); color:var(--cyan); font-size:24px;
}
.profile-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.profile-card{ max-width:none; margin:0; }
.profile-card h2{ margin:0 0 18px; font-size:18px; display:flex; align-items:center; gap:9px; }
.profile-detail-row{ display:flex; justify-content:space-between; gap:18px; padding:13px 0; border-bottom:1px solid var(--line); }
.profile-detail-row:last-child{ border-bottom:0; }
.profile-detail-row span{ color:var(--text-2); }
.profile-status-on{ color:#7be9a4; }
.profile-status-off{ color:#ff9d9d; }
.profile-action{
  display:flex; align-items:center; justify-content:space-between; gap:14px; text-decoration:none;
  color:var(--text-1); padding:14px; border:1px solid var(--line); border-radius:10px; margin-bottom:10px;
  background:var(--navy-2);
}
.profile-action:hover{ border-color:var(--cyan); background:rgba(91,156,240,.07); }
.profile-action span{ display:grid; grid-template-columns:24px 1fr; align-items:center; column-gap:8px; }
.profile-action span>i{ grid-row:1/3; color:var(--cyan); }
.profile-action small{ color:var(--text-2); margin-top:3px; }
@media(max-width:760px){ .profile-grid{ grid-template-columns:1fr; } .sidebar-profile-group{ margin-top:0; } }

/* Bank accounts: selectable banks + compact modal */
.page-heading-row{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.page-heading-row h1{margin-bottom:5px}.page-description{margin:0;color:var(--text-2)}.bank-add-trigger{width:auto!important;min-width:190px;margin:4px 0 0!important}.bank-list-card{padding:0!important;overflow:hidden}.card-title-row{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--border)}.card-title-row h2{margin:0 0 3px}.card-title-row p{margin:0;color:var(--text-2);font-size:12px}.bank-table-wrap{overflow-x:auto}.bank-accounts-table{margin:0!important;border:0!important}.bank-accounts-table th,.bank-accounts-table td{vertical-align:middle;padding:12px 14px}.bank-cell{display:flex;align-items:center;gap:11px;min-width:220px}.bank-cell>div{display:flex;flex-direction:column;gap:2px}.bank-cell strong{font-size:13px}.bank-cell small{font-size:10px;color:var(--text-2);letter-spacing:.06em}.bank-auto-logo{width:42px;height:30px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;background:#1a2740;border:1px solid #2d4267;color:#dbeafe;font-size:10px;font-weight:900;letter-spacing:.03em;flex:0 0 auto}.bank-kbank{background:#083c2f;border-color:#126d55;color:#6ee7b7}.bank-scb{background:#291448;border-color:#5b2f8c;color:#d8b4fe}.bank-ktb{background:#082f49;border-color:#0e7490;color:#7dd3fc}.bank-bbl{background:#10275a;border-color:#1d4ed8;color:#bfdbfe}.bank-bay{background:#3b3105;border-color:#8a6f0a;color:#fde68a}.bank-ttb{background:#12235b;border-color:#3155c6;color:#c7d2fe}.bank-gsb{background:#4a1234;border-color:#9d276d;color:#f9a8d4}.bank-baac{background:#123b1e;border-color:#2e7d46;color:#bbf7d0}.bank-uob{background:#3e1717;border-color:#9f3434;color:#fecaca}.bank-truemoney{background:#4a200b;border-color:#b45416;color:#fed7aa}.account-number{font-weight:800;letter-spacing:.055em;white-space:nowrap}.agent-chip{display:inline-flex;padding:5px 9px;border-radius:999px;background:#182438;color:#bfcee2;font-size:11px}.status-pill{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}.status-active{background:rgba(34,197,94,.14);color:#67e88e}.status-inactive{background:rgba(148,163,184,.12);color:#a9b4c5}.bank-actions{white-space:nowrap}.bank-actions .btn-small{margin-right:8px}.empty-state{text-align:center!important;color:var(--text-2);padding:30px!important}
.cmz-modal{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;padding:18px}.cmz-modal.is-open{display:flex}.cmz-modal-backdrop{position:absolute;inset:0;background:rgba(2,6,12,.76);backdrop-filter:blur(4px)}.cmz-modal-dialog{position:relative;width:min(620px,100%);max-height:calc(100vh - 36px);overflow-y:auto;background:#121d2d;border:1px solid #2a3b55;border-radius:16px;box-shadow:0 28px 80px rgba(0,0,0,.5)}.cmz-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px 22px;border-bottom:1px solid #26364e}.cmz-modal-header h2{margin:0 0 4px}.cmz-modal-header p{margin:0;color:var(--text-2);font-size:12px}.cmz-modal-close{width:34px;height:34px;border:1px solid #33445d;background:#172337;color:#d8e1ee;border-radius:9px;font-size:24px;line-height:1;cursor:pointer}.cmz-modal-form{padding:20px 22px}.cmz-modal-form label{margin-top:12px}.cmz-modal-form label:first-child{margin-top:0}.form-grid-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.cmz-modal-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:22px;padding-top:18px;border-top:1px solid #26364e}.cmz-modal-footer .btn-primary,.cmz-modal-footer .btn-secondary{width:auto!important;margin:0!important;min-width:110px}.modal-open{overflow:hidden}
@media(max-width:760px){.page-heading-row{flex-direction:column}.bank-add-trigger{width:100%!important}.form-grid-two{grid-template-columns:1fr}.cmz-modal{padding:10px}.cmz-modal-dialog{max-height:calc(100vh - 20px)}.bank-accounts-table th,.bank-accounts-table td{padding:10px}.bank-cell{min-width:190px}}

/* Audit Logs แบบละเอียด */
.audit-filter-bar{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 18px}.audit-list{display:flex;flex-direction:column;gap:10px}.audit-item{display:grid;grid-template-columns:185px minmax(0,1fr);background:var(--navy-2);border:1px solid var(--line);border-radius:12px;overflow:hidden}.audit-item.audit-plus{border-left:4px solid #2ecc71}.audit-item.audit-minus{border-left:4px solid #ef5350}.audit-time{padding:15px;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--text-2)}.audit-time strong{color:var(--text-1);font-size:13px}.audit-main{padding:14px 16px;min-width:0}.audit-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.audit-title-row>strong{font-size:15px}.audit-actor{font-size:12px;color:var(--text-2)}.audit-member{font-size:13px;margin-bottom:10px}.audit-member span,.audit-member small{color:var(--text-2);margin-left:8px}.audit-credit-grid{display:grid;grid-template-columns:repeat(4,minmax(100px,1fr));gap:8px}.audit-credit-grid>div{background:rgba(0,0,0,.18);border:1px solid var(--line);border-radius:8px;padding:8px 10px;display:flex;flex-direction:column;gap:3px}.audit-credit-grid span{font-size:11px;color:var(--text-2)}.audit-credit-grid b{font-size:14px}.text-success{color:#53df8a!important}.text-danger{color:#ff7777!important}.audit-note,.audit-raw{margin-top:9px;padding:8px 10px;background:rgba(0,0,0,.14);border-radius:7px;font-size:12.5px;color:var(--text-2);word-break:break-word}.audit-pagination{display:flex;gap:7px;flex-wrap:wrap;margin-top:16px}@media(max-width:800px){.audit-item{grid-template-columns:1fr}.audit-time{border-right:0;border-bottom:1px solid var(--line);padding:10px 13px;flex-direction:row;justify-content:space-between}.audit-credit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.audit-title-row{align-items:flex-start;flex-direction:column;gap:4px}}


/* v16: reports/settings groups + bank table without horizontal scrollbar */
.bank-table-no-scroll{overflow:visible!important;width:100%}
.bank-accounts-table{width:100%!important;table-layout:fixed!important}
.bank-accounts-table th:nth-child(1){width:25%}
.bank-accounts-table th:nth-child(2){width:16%}
.bank-accounts-table th:nth-child(3){width:22%}
.bank-accounts-table th:nth-child(4){width:13%}
.bank-accounts-table th:nth-child(5){width:12%}
.bank-accounts-table th:nth-child(6){width:12%}
.bank-accounts-table th,.bank-accounts-table td{white-space:normal!important;word-break:break-word}
.bank-accounts-table .bank-cell{min-width:0!important;width:100%}
.bank-accounts-table .bank-cell strong{line-height:1.35}
.bank-accounts-table .bank-actions{white-space:normal!important;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.bank-accounts-table .bank-actions .btn-small{margin:0!important}
.bank-list-card{width:100%;max-width:none!important}
@media(max-width:900px){
  .bank-accounts-table{display:block}
  .bank-accounts-table thead{display:none}
  .bank-accounts-table tbody{display:grid;grid-template-columns:1fr;gap:12px;padding:12px}
  .bank-accounts-table tr{display:grid;grid-template-columns:1fr 1fr;background:var(--navy-2);border:1px solid var(--line);border-radius:12px;padding:12px;gap:10px}
  .bank-accounts-table td{display:block!important;padding:0!important;border:0!important}
  .bank-accounts-table td:first-child,.bank-accounts-table td:nth-child(3),.bank-accounts-table td:last-child{grid-column:1/-1}
  .bank-accounts-table td::before{display:block;color:var(--text-2);font-size:10px;margin-bottom:4px}
  .bank-accounts-table td:nth-child(2)::before{content:'เลขบัญชี'}
  .bank-accounts-table td:nth-child(3)::before{content:'ชื่อบัญชี'}
  .bank-accounts-table td:nth-child(4)::before{content:'ตัวแทน'}
  .bank-accounts-table td:nth-child(5)::before{content:'สถานะ'}
  .bank-accounts-table td:nth-child(6)::before{content:'จัดการ'}
  .bank-accounts-table .bank-actions{justify-content:flex-start}
}

/* Telegram settings */
.telegram-settings-card{overflow:hidden}
.telegram-settings-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px}
.telegram-settings-head h2{margin:0 0 5px;font-size:20px}
.telegram-settings-head p{margin:0;color:var(--text-2);font-size:13px;line-height:1.55}
.telegram-master-switch{display:flex;align-items:center;gap:9px;white-space:nowrap;background:rgba(56,189,248,.08);border:1px solid rgba(56,189,248,.22);padding:9px 12px;border-radius:10px;font-size:13px;font-weight:700}
.telegram-master-switch input{width:17px;height:17px;margin:0}
.telegram-token-row{display:grid;grid-template-columns:1fr;gap:14px;margin-bottom:14px}
.telegram-field label{display:block;margin-bottom:7px;font-weight:700;font-size:13px}
.telegram-field small{display:block;color:var(--text-2);font-size:12px;margin-top:6px}
.telegram-channel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.telegram-channel{border:1px solid rgba(148,163,184,.18);background:rgba(15,23,42,.42);border-radius:12px;padding:13px}
.telegram-channel:last-child{grid-column:1/-1}
.telegram-channel-title{display:flex;align-items:flex-start;gap:10px;margin-bottom:10px}
.telegram-channel-title strong{display:block;font-size:14px;line-height:1.3}
.telegram-channel-title small{display:block;color:var(--text-2);font-size:11.5px;line-height:1.45;margin-top:3px}
.telegram-dot{width:9px;height:9px;border-radius:50%;margin-top:5px;background:#64748b;box-shadow:0 0 0 4px rgba(100,116,139,.14)}
.telegram-deposit .telegram-dot{background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.14)}
.telegram-withdraw .telegram-dot{background:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.14)}
.telegram-review .telegram-dot{background:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.14)}
.telegram-system .telegram-dot{background:#a78bfa;box-shadow:0 0 0 4px rgba(167,139,250,.14)}
.telegram-channel input{margin:0;width:100%;height:40px;font-size:13px}
.telegram-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:15px}
.telegram-actions select{width:auto;min-width:170px;height:40px;margin:0}
.telegram-actions button{margin:0}
.telegram-note{margin-top:12px;padding:10px 12px;border-radius:9px;background:rgba(148,163,184,.08);color:var(--text-2);font-size:12px}
@media(max-width:760px){.telegram-settings-head{flex-direction:column}.telegram-channel-grid{grid-template-columns:1fr}.telegram-channel:last-child{grid-column:auto}.telegram-actions>*{width:100%!important}.telegram-master-switch{width:100%;justify-content:center}}

/* Pending transaction visibility */
.icon-stat-card.pending-stat-card{display:flex;text-decoration:none;color:inherit;border:1px solid rgba(255,193,7,.55);background:linear-gradient(135deg,rgba(255,193,7,.13),rgba(255,255,255,.025));transition:.18s ease}
.icon-stat-card.pending-stat-card:hover{transform:translateY(-2px);border-color:#ffc107;box-shadow:0 8px 24px rgba(255,193,7,.12)}
.pending-action-panel{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;padding:16px 18px;border:1px solid rgba(255,193,7,.45);border-radius:14px;background:rgba(255,193,7,.08)}
.pending-action-panel div{display:flex;flex-direction:column;gap:4px}.pending-action-panel span{color:#aeb4c0;font-size:13px}
@media(max-width:640px){.pending-action-panel{align-items:stretch;flex-direction:column}.pending-action-panel .btn-primary{text-align:center}}


/* Sound notification controls: bottom-right so they do not cover LIVE status */
#m3-sound-controls button{white-space:nowrap}
@media(max-width:760px){
  #m3-sound-controls{right:12px!important;bottom:72px!important;top:auto!important;gap:6px!important}
  #m3-sound-controls button{padding:8px 10px!important;font-size:11px!important;max-width:180px}
}

/* Dashboard v23: balanced cards and member deposit funnel */
.dashboard-card-grid{grid-template-columns:repeat(5,minmax(190px,1fr));align-items:stretch}
.dashboard-card-grid .icon-stat-card{position:relative;min-height:142px;padding:18px 20px;border:1px solid rgba(255,255,255,.09);box-shadow:0 8px 24px rgba(0,0,0,.13);overflow:hidden;justify-content:flex-end}
.dashboard-card-grid .icon-stat-card::after{content:"";position:absolute;width:100px;height:100px;border-radius:50%;right:-36px;top:-36px;background:rgba(255,255,255,.08)}
.dashboard-card-grid .stat-icon{position:absolute;top:16px;right:18px;font-size:25px;line-height:1;z-index:1}
.dashboard-card-grid .icon-stat-label,.dashboard-card-grid .icon-stat-value,.dashboard-card-grid .icon-stat-desc{position:relative;z-index:1}
.dashboard-card-grid .icon-stat-card:not(.icon-stat-green):not(.icon-stat-orange):not(.icon-stat-blue):not(.icon-stat-purple):not(.icon-stat-red):not(.icon-stat-cyan):not(.icon-stat-deposit-user):not(.icon-stat-no-deposit):not(.pending-stat-card):not(.icon-stat-slate){background:linear-gradient(135deg,#202938,#151c28)}
.icon-stat-purple{background:linear-gradient(135deg,#6842a8,#8e5bd6)}
.icon-stat-red{background:linear-gradient(135deg,#9f3545,#d54b5d)}
.icon-stat-cyan{background:linear-gradient(135deg,#167b8b,#20a4b8)}
.icon-stat-deposit-user{background:linear-gradient(135deg,#197a55,#26a66f)}
.icon-stat-no-deposit{background:linear-gradient(135deg,#4f596b,#737f93)}
.icon-stat-slate{background:linear-gradient(135deg,#28364b,#3c506d)}
.dashboard-card-grid .pending-stat-card{background:linear-gradient(135deg,#7d6300,#b58e00);border-color:rgba(255,216,76,.55)}
@media(max-width:1350px){.dashboard-card-grid{grid-template-columns:repeat(4,minmax(190px,1fr))}}
@media(max-width:1050px){.dashboard-card-grid{grid-template-columns:repeat(3,minmax(180px,1fr))}}
@media(max-width:760px){.dashboard-card-grid{grid-template-columns:repeat(2,minmax(145px,1fr));gap:10px}.dashboard-card-grid .icon-stat-card{min-height:132px;padding:15px}.dashboard-card-grid .icon-stat-value{font-size:24px}.dashboard-card-grid .stat-icon{top:14px;right:14px;font-size:21px}}
@media(max-width:430px){.dashboard-card-grid{grid-template-columns:1fr}}

/* V17.1: keep bank logos compact inside transaction/member tables. */
.m3-bank-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  max-width:100%;
  vertical-align:middle;
  line-height:1.25;
}
.m3-bank-badge img{
  display:block;
  width:24px !important;
  height:24px !important;
  min-width:24px;
  max-width:24px !important;
  max-height:24px !important;
  object-fit:contain;
  border-radius:50%;
  background:#fff;
  padding:2px;
  box-sizing:border-box;
  flex:0 0 24px;
}
.m3-bank-badge.compact{
  margin-top:4px;
  font-size:10px;
  color:var(--text-2);
  white-space:nowrap;
}
.m3-bank-badge.compact img{
  width:22px !important;
  height:22px !important;
  min-width:22px;
  max-width:22px !important;
  max-height:22px !important;
  flex-basis:22px;
}
.m3-bank-badge .m3-bank-fallback{
  width:22px;
  height:22px;
  min-width:22px;
  flex:0 0 22px;
  border-radius:50%;
  font-size:7px;
}
@media (max-width: 640px){
  .m3-bank-badge.compact img{
    width:20px !important;
    height:20px !important;
    min-width:20px;
    max-width:20px !important;
    max-height:20px !important;
    flex-basis:20px;
  }
}

/* v17.2 — bank logos normalized and member mobile cards without horizontal scrolling */
.m3-bank-badge{display:inline-flex;align-items:center;gap:7px;min-width:0;max-width:100%}
.m3-bank-badge img,.m3-bank-select-preview img,.bank-logo-img{width:24px!important;height:24px!important;max-width:24px!important;max-height:24px!important;object-fit:contain!important;border-radius:6px!important;background:#fff;padding:2px;box-sizing:border-box;flex:0 0 24px}
.m3-bank-badge.compact img{width:20px!important;height:20px!important;max-width:20px!important;max-height:20px!important;flex-basis:20px}
.m3-bank-fallback{width:24px!important;height:24px!important;flex:0 0 24px;font-size:8px!important}
.m3-bank-badge.compact .m3-bank-fallback{width:20px!important;height:20px!important;flex-basis:20px}
.customer-bank-with-logo{display:flex!important;align-items:center;gap:8px}
.customer-bank-with-logo>div{display:flex;flex-direction:column;min-width:0}
.customer-bank-with-logo .m3-bank-badge span:not(.m3-bank-fallback){display:none}
.txn-card-bank-row>strong{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.txn-card-bank-row .m3-bank-badge span:not(.m3-bank-fallback){display:none}
.txn-bank-account{font-style:normal}
.member-mobile-only{display:none}
@media(max-width:820px){
  .member-desktop-only{display:none!important}
  .member-mobile-only{display:flex!important}
  .member-card-list{flex-direction:column;gap:12px;margin-top:14px;width:100%;overflow:visible}
  .member-mobile-card{width:100%;box-sizing:border-box;background:#0f1724;border:1px solid #26364d;border-radius:13px;padding:14px;overflow:hidden}
  .member-mobile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:11px;border-bottom:1px solid #26364d}
  .member-mobile-head>div{display:flex;flex-direction:column;gap:3px;min-width:0}.member-mobile-head small{color:#94a3b8}.member-mobile-head strong{word-break:break-word}
  .member-mobile-balance{color:#5ee49b;white-space:nowrap;font-size:16px}
  .member-mobile-grid{display:grid;grid-template-columns:1fr;gap:0;margin-top:5px}
  .member-mobile-grid>div{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.06)}
  .member-mobile-grid span{color:#94a3b8;flex:0 0 92px}.member-mobile-grid strong{text-align:right;min-width:0;word-break:break-word}
  .member-mobile-bank strong{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.member-mobile-bank .m3-bank-badge span:not(.m3-bank-fallback){display:inline}.member-mobile-bank em{font-style:normal}
  .member-mobile-group-form{margin-top:10px}.member-mobile-group-form label{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#94a3b8}.member-mobile-group-form select{width:55%;margin:0}
  .member-mobile-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.member-mobile-actions>*{width:100%;box-sizing:border-box;text-align:center;margin:0!important}
  .member-mobile-balance-form{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:8px}.member-mobile-balance-form input,.member-mobile-balance-form button{margin:0!important;width:100%;box-sizing:border-box}
  .member-mobile-empty{padding:24px;text-align:center;color:#94a3b8;border:1px dashed #334155;border-radius:12px}
  .search-form{display:grid!important;grid-template-columns:1fr auto;gap:8px}.search-form input,.search-form button{min-width:0;margin:0!important}
}


/* v17.3 targeted bank/logo/layout fixes */
.bank-auto-logo{
  width:36px!important;height:36px!important;max-width:36px!important;max-height:36px!important;
  aspect-ratio:1/1;object-fit:contain!important;box-sizing:border-box;padding:3px;
  border-radius:9px!important;background:#fff!important;flex:0 0 36px!important;
}
.bank-cell{align-items:center!important}
.customer-bank-with-logo{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;min-width:0}
.customer-bank-with-logo>.m3-bank-badge{display:inline-flex!important;flex:0 0 auto!important;align-self:center!important}
.customer-bank-with-logo>div{display:flex!important;flex-direction:column!important;justify-content:center!important;min-width:0!important}
.customer-bank-with-logo>div strong,.customer-bank-with-logo>div span{display:block;line-height:1.25}
.transactions-table td:nth-child(4){vertical-align:middle!important}
.deposit-destination-logo{display:block;width:44px;height:44px;max-width:44px;max-height:44px;aspect-ratio:1/1;object-fit:contain;background:#fff;border-radius:10px;padding:4px;box-sizing:border-box;margin:0 auto 8px}
@media(max-width:820px){
  .bank-auto-logo{width:32px!important;height:32px!important;max-width:32px!important;max-height:32px!important;flex-basis:32px!important}
}


/* V17.4 desktop usability and separated financial channels */
.admin-main{max-width:none;width:100%;padding:26px clamp(16px,2vw,30px)}
button,.btn-primary,.btn-secondary,.btn-danger,.btn-success,.filter-tab,.quick-link{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none}
.btn-primary{width:auto}.member-create-toolbar .btn-primary{min-width:220px}
.member-table-card,.bank-list-card,.transactions-table-wrap{max-width:100%;overflow:hidden}
.member-table-scroll,.bank-table-wrap{overflow:visible!important}
.member-data-table{table-layout:fixed;width:100%;font-size:12px}
.member-data-table th,.member-data-table td{padding:10px 8px;overflow-wrap:anywhere;word-break:normal}
.member-data-table th:nth-child(1){width:9%}.member-data-table th:nth-child(2){width:13%}.member-data-table th:nth-child(3){width:10%}.member-data-table th:nth-child(4){width:9%}.member-data-table th:nth-child(5){width:8%}.member-data-table th:nth-child(6){width:18%}.member-data-table th:nth-child(7){width:12%}.member-data-table th:nth-child(8){width:10%}.member-data-table th:nth-child(9){width:11%}
.member-id-note{display:block;color:var(--text-2);font-size:10px;margin-top:3px}.member-account-cell{display:flex;align-items:center;gap:7px;min-width:0}.member-account-cell strong{font-size:11px;overflow-wrap:anywhere}.member-account-cell .m3-bank-badge{min-width:0}.member-account-cell .m3-bank-badge span:not(.m3-bank-fallback){display:none}
.finance-layout{display:grid;grid-template-columns:minmax(300px,420px) minmax(0,1fr);gap:18px;align-items:start}.finance-form-card,.finance-list-card{max-width:none;margin:0}.finance-channel-list{display:flex;flex-direction:column;gap:10px}.finance-channel-item{display:grid;grid-template-columns:42px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--navy-2)}.finance-channel-icon{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:#182942;color:#7db1ff;font-size:18px}.finance-channel-main{display:flex;flex-direction:column;min-width:0}.finance-channel-main span{font-weight:700;overflow-wrap:anywhere}.finance-channel-main small{color:var(--text-2)}.finance-channel-actions{display:flex;gap:7px}.finance-channel-actions form{margin:0}
@media(max-width:1100px) and (min-width:821px){.admin-sidebar{width:205px;flex-basis:205px}.admin-main{padding:22px 16px}.member-data-table th,.member-data-table td{padding:9px 5px;font-size:11px}.member-data-table .btn-small{padding:5px 6px;font-size:10px}.member-data-table .small-input{max-width:64px}}
@media(max-width:820px){.finance-layout{grid-template-columns:1fr}.finance-channel-item{grid-template-columns:38px minmax(0,1fr) auto}.finance-channel-actions{grid-column:2/4}.member-create-toolbar .btn-primary{width:100%}}

/* ===== V17.5: no horizontal scroll + responsive data layouts ===== */
html,body{max-width:100%;overflow-x:hidden!important}
.admin-content-wrap,.admin-main,.card,.data-table,.table-responsive,.transactions-table-wrap,.bank-table-wrap{max-width:100%;min-width:0}
.table-responsive,.transactions-table-wrap,.bank-table-wrap{overflow-x:visible!important}
.data-table,.transactions-table,.bank-accounts-table,.member-data-table{width:100%!important;min-width:0!important;table-layout:fixed!important}
.data-table th,.data-table td,.transactions-table th,.transactions-table td,.bank-accounts-table th,.bank-accounts-table td,.member-data-table th,.member-data-table td{white-space:normal!important;overflow-wrap:anywhere;word-break:break-word}
.transactions-table th,.transactions-table td{padding:7px 5px!important;font-size:10.5px!important}
.transactions-table .customer-bank{min-width:0!important;width:100%;padding:4px 5px!important}
.transactions-table .customer-bank-with-logo{display:flex!important;flex-direction:row!important;align-items:center!important;gap:6px!important}
.transactions-table .m3-bank-badge.compact{flex:0 0 auto!important;min-width:0!important}
.transactions-table .m3-bank-badge.compact img,.transactions-table .m3-bank-badge.compact .m3-bank-fallback{width:20px!important;height:20px!important;aspect-ratio:1/1!important;object-fit:contain!important;border-radius:50%!important;padding:1px!important}
.transactions-table .customer-bank>div{min-width:0}.transactions-table .customer-bank strong,.transactions-table .customer-bank span{font-size:10px!important;line-height:1.15!important}
.filter-tabs{overflow:visible!important;display:flex;flex-wrap:wrap!important}
.bank-cell{min-width:0!important}.bank-auto-logo{aspect-ratio:1/1!important;width:34px!important;height:34px!important;object-fit:contain!important}
.finance-layout{display:grid;grid-template-columns:minmax(280px,380px) minmax(0,1fr);gap:16px;align-items:start}
.finance-channel-item{display:grid;grid-template-columns:42px minmax(0,1fr) auto auto;gap:12px;align-items:center}
.finance-channel-main{min-width:0}.finance-channel-main span,.finance-channel-main small{overflow-wrap:anywhere}
@media(max-width:1100px){.finance-layout{grid-template-columns:1fr}.transactions-table th,.transactions-table td{font-size:9.5px!important;padding:6px 4px!important}.transactions-table .slip-button,.transactions-table .channel-badge,.transactions-table .type-badge,.transactions-table .status-badge{font-size:9px!important;padding:4px 5px!important}}
@media(max-width:860px){.desktop-only{display:none!important}.mobile-only{display:block!important}.table-responsive,.transactions-table-wrap,.bank-table-wrap{overflow:visible!important}.finance-channel-item{grid-template-columns:38px minmax(0,1fr);}.finance-channel-item>.status-pill,.finance-channel-actions{grid-column:2}.finance-channel-actions{display:flex;flex-wrap:wrap;gap:8px}}
.finance-api-panel{grid-column:1/-1;width:100%;padding:14px;margin-top:8px;border:1px solid var(--line);border-radius:10px;background:#0d1623}.finance-api-form label{display:flex;flex-direction:column;gap:6px}.finance-api-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:12px}.finance-api-actions .btn-primary,.finance-api-actions .btn-secondary{width:auto!important;margin:0!important}

/* ===== V17.6 polished finance forms ===== */
.finance-form-card{padding:0;overflow:hidden;background:linear-gradient(180deg,#141f30 0%,#111a28 100%)}
.finance-card-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px;border-bottom:1px solid #263750;background:rgba(255,255,255,.018)}
.finance-card-heading h2{margin:0 0 5px;font-size:19px}.finance-card-heading p{margin:0;color:var(--text-2);font-size:12.5px;line-height:1.5}
.finance-type-icon{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border-radius:12px;color:#8db9ff;background:#172a45;border:1px solid #2a4265;font-size:18px}
.finance-entry-form{padding:20px 22px 22px}.finance-entry-form .form-grid-two{gap:12px}
.form-field{display:flex;flex-direction:column;gap:7px;min-width:0;margin-bottom:15px}.form-field label{margin:0;color:#dbe7f7;font-size:12.5px;font-weight:700}.form-field label b{color:#ff7588;font-weight:800}.form-field small{color:#7f91aa;font-size:11.5px;line-height:1.45}
.form-field input,.form-field select,.polished-form input,.polished-form select{width:100%;min-width:0;height:44px;box-sizing:border-box;margin:0!important;padding:0 13px;border:1px solid #31445f;border-radius:10px;background:#0e1724;color:#f4f7fb;box-shadow:inset 0 1px 0 rgba(255,255,255,.025);transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
.form-field input::placeholder,.polished-form input::placeholder{color:#63748a}.form-field input:focus,.form-field select:focus,.polished-form input:focus,.polished-form select:focus{outline:none;border-color:#4b8df8;background:#101c2b;box-shadow:0 0 0 3px rgba(75,141,248,.14)}
.finance-submit-row{display:flex;justify-content:flex-end;padding-top:3px}.finance-submit-row .btn-primary{width:auto;min-width:150px;margin:0!important}
.finance-list-card{min-height:260px}.finance-list-card>h2{margin-bottom:16px}.empty-state{min-height:130px;display:grid;place-items:center;color:#7789a1;border:1px dashed #2b3b52;border-radius:12px;background:rgba(0,0,0,.08)}
.cmz-modal-dialog{width:min(680px,calc(100vw - 30px));overflow:hidden}.cmz-modal-header{padding:21px 24px}.cmz-modal-form.polished-form{padding:22px 24px 24px;max-height:calc(100vh - 145px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#3b506d transparent}.polished-form .form-grid-two{gap:14px}.polished-form .form-field{margin-bottom:14px}.polished-form .cmz-modal-footer{position:sticky;bottom:-24px;margin:20px -24px -24px;padding:16px 24px;background:#121d2d;border-top:1px solid #26364e;box-shadow:0 -10px 25px rgba(4,9,16,.22)}
.polished-form .cmz-modal-footer .btn-primary,.polished-form .cmz-modal-footer .btn-secondary{height:40px;min-width:120px;margin:0!important;width:auto!important}
@media(max-width:820px){.finance-card-heading,.finance-entry-form{padding-left:16px;padding-right:16px}.finance-card-heading{align-items:flex-start}.finance-entry-form .form-grid-two,.polished-form .form-grid-two{grid-template-columns:1fr}.finance-submit-row .btn-primary{width:100%}.cmz-modal{padding:10px}.cmz-modal-dialog{width:100%;max-height:calc(100vh - 20px)}.cmz-modal-header{padding:17px 18px}.cmz-modal-form.polished-form{padding:18px;max-height:calc(100vh - 112px)}.polished-form .cmz-modal-footer{bottom:-18px;margin:18px -18px -18px;padding:14px 18px;display:grid;grid-template-columns:1fr 1fr}.polished-form .cmz-modal-footer .btn-primary,.polished-form .cmz-modal-footer .btn-secondary{width:100%!important;min-width:0}}

/* ===== V17.7 urgent transaction table fit ===== */
.transactions-table-wrap{overflow:hidden!important}
.transactions-table{width:100%!important;min-width:0!important;table-layout:fixed!important}
.transactions-table th,.transactions-table td{padding:8px 6px!important;font-size:11px!important;line-height:1.25!important;vertical-align:middle!important}
.transactions-table th:nth-child(1){width:4%}
.transactions-table th:nth-child(2){width:10%}
.transactions-table th:nth-child(3){width:16%}
.transactions-table th:nth-child(4){width:11%}
.transactions-table th:nth-child(5){width:7%}
.transactions-table th:nth-child(6){width:11%}
.transactions-table th:nth-child(7){width:8%}
.transactions-table th:nth-child(8){width:13%}
.transactions-table th:nth-child(9){width:10%}
.transactions-table th:nth-child(10){width:7%}
.transactions-table th:nth-child(11){width:8%}
.transactions-table td{overflow:hidden}
.transactions-table .txn-member-cell strong,.transactions-table .txn-member-cell small,.transactions-table .txn-status-cell small{display:block;white-space:normal;overflow-wrap:anywhere}
.transactions-table .txn-member-cell small,.transactions-table .txn-status-cell small{margin-top:3px;color:var(--text-2);font-size:9.5px}
.transactions-table .txn-kind-cell{display:table-cell}
.transactions-table .txn-kind-cell .channel-badge,.transactions-table .txn-kind-cell .type-badge{display:inline-flex;margin:2px 2px 2px 0}
.transactions-table .customer-bank{background:rgba(4,11,18,.34)!important;border-radius:8px!important}
.transactions-table .customer-bank-with-logo{gap:5px!important}
.transactions-table .customer-bank strong{white-space:normal!important;font-size:9.5px!important}
.transactions-table .customer-bank span{white-space:normal!important;font-size:10px!important;font-weight:800}
.transactions-table .ocr-chip{display:inline-flex!important;margin:2px 2px 2px 0!important;padding:3px 5px!important;font-size:9px!important;white-space:nowrap!important}
.transactions-table .slip-button,.transactions-table .channel-badge,.transactions-table .type-badge,.transactions-table .status-badge{font-size:9.5px!important;padding:4px 6px!important;white-space:nowrap!important}
.transactions-table .inline-form{display:flex!important;flex-direction:column!important;gap:4px!important}
.transactions-table .inline-form .btn-small{width:100%!important;min-height:28px!important;padding:4px!important;font-size:9px!important}
@media(max-width:1180px) and (min-width:861px){
 .admin-main{padding-left:12px!important;padding-right:12px!important}
 .transactions-table th,.transactions-table td{font-size:9.5px!important;padding:6px 4px!important}
 .transactions-table th:nth-child(6),.transactions-table td:nth-child(6){display:none!important}
 .transactions-table th:nth-child(3){width:18%}.transactions-table th:nth-child(8){width:15%}
}


/* ===== CMZPAY layout/UI hardening v4 ===== */
input[type=url], input[type=email], input[type=date], input[type=datetime-local], textarea{
  width:100%; min-width:0; padding:11px 14px; border-radius:8px; border:1px solid var(--line);
  background:var(--navy-2); color:var(--text-1); font-size:14px; box-sizing:border-box;
}
input[type=url]:focus, input[type=email]:focus, input[type=date]:focus, input[type=datetime-local]:focus, textarea:focus{
  outline:none; border-color:var(--cyan); box-shadow:0 0 0 3px rgba(91,156,240,.14);
}
@media (min-width:861px){
  body.admin-body.has-sidebar{display:block;min-height:100vh;}
  .admin-sidebar{position:fixed!important;left:0;top:0;bottom:0;height:100vh!important;width:230px;z-index:100;}
  .admin-content-wrap{margin-left:230px;min-height:100vh;width:calc(100% - 230px);}
  .admin-main{padding-top:88px!important;}
}
.admin-desktop-topbar{
  position:fixed;top:0;right:0;left:230px;height:64px;z-index:90;
  display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:0 24px;
  background:rgba(10,14,20,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(10px);
}
.admin-top-action{position:relative;width:42px;height:42px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:17px;margin:0;}
.admin-top-action:hover{border-color:var(--cyan);background:#1a2638;}
.admin-top-badge{position:absolute;top:-5px;right:-5px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#e74c3c;color:#fff;font-size:10px;font-weight:800;display:none;align-items:center;justify-content:center;border:2px solid var(--navy-1);}
.admin-top-badge.show{display:flex;}
.admin-top-status{font-size:12px;color:var(--text-2);margin-right:6px;}
.txn-toolbar-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.txn-refresh-btn{display:inline-flex;align-items:center;gap:7px;margin:0!important;white-space:nowrap;}
.txn-auto-refresh{display:inline-flex;align-items:center;gap:7px;color:var(--text-2);font-size:13px;}
.txn-refresh-dot{width:8px;height:8px;border-radius:50%;background:var(--success);box-shadow:0 0 0 4px rgba(46,204,113,.12);}
@media (max-width:860px){
  .admin-desktop-topbar{position:fixed;left:auto;right:8px;top:7px;height:auto;padding:0;background:transparent;border:0;z-index:95;}
  .admin-top-status{display:none}.admin-top-action{width:38px;height:38px;background:var(--panel)}
  .admin-main{padding-top:24px!important;}
}

/* v6: consistent URL/API controls across all modules */
input[type="url"],.cmz-url-input,.finance-api-form input:not([type="checkbox"]),.finance-api-form select{width:100%!important;min-width:0!important;height:44px!important;box-sizing:border-box!important;margin:0 0 12px!important;padding:0 13px!important;border:1px solid #31445f!important;border-radius:10px!important;background:#0e1724!important;color:#f4f7fb!important;font:inherit!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important}
input[type="url"]:focus,.cmz-url-input:focus,.finance-api-form input:not([type="checkbox"]):focus,.finance-api-form select:focus{outline:none!important;border-color:#3b82f6!important;box-shadow:0 0 0 3px rgba(59,130,246,.14)!important}
.finance-api-form>label{display:block;margin:4px 0 7px;color:var(--text-2);font-size:13px}.finance-api-panel{grid-column:1/-1;width:100%;margin-top:14px;padding:18px;border:1px solid #2b3d56;border-radius:12px;background:#101a29}.finance-api-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}
@media(max-width:720px){.finance-api-panel{padding:14px}.finance-api-actions>*{flex:1}}


/* ===== V28: Downline page stable external styles ===== */
.network-owner-card,.commission-overview-card{margin-bottom:16px;padding:16px}.network-owner-title,.commission-overview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.network-owner-title strong,.commission-overview-head strong{display:block;font-size:16px}.network-owner-title span,.commission-overview-head span{display:block;color:#94a3b8;font-size:12px;margin-top:4px}.network-status{display:inline-flex!important;margin:0!important;padding:7px 10px;border-radius:999px;border:1px solid #334155;background:#142235;color:#b8c8dc!important;font-weight:800}.network-status.connected{border-color:#216e54;background:#0d3429;color:#63e6ad!important}.network-status.root{border-color:#315a84;background:#152642;color:#7dd3fc!important}.network-owner-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.network-owner-grid>div,.commission-overview-grid>div{padding:12px;border:1px solid #2d3d54;border-radius:11px;background:#0e1726}.network-owner-grid small,.commission-overview-grid small{display:block;color:#94a3b8;font-size:12px;margin-bottom:6px}.network-owner-grid strong,.commission-overview-grid strong{display:block;color:#f8fafc;font-size:16px;overflow-wrap:anywhere}.network-owner-grid em{font-style:normal;color:#7dd3fc;font-size:12px}.commission-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.commission-overview-grid .is-available strong{color:#5ee49b}.commission-overview-grid .is-claimed strong{color:#7dd3fc}.commission-overview-card>p{margin:11px 0 0;color:#94a3b8;font-size:12px;line-height:1.55}.downline-empty strong,.downline-empty span{display:block}.downline-empty strong{font-size:17px;color:#e5edf8;margin-bottom:7px}.downline-empty span{line-height:1.6}
.downline-page-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-end;margin-bottom:18px}.downline-page-head h1{margin:7px 0 5px}.downline-page-head p{margin:0;color:#94a3b8}.downline-back{color:#7dd3fc;text-decoration:none;font-weight:700}.downline-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.downline-summary-card{padding:16px;border:1px solid #2d4059;border-radius:14px;background:linear-gradient(145deg,#111d2d,#0c1522);box-shadow:0 10px 28px rgba(0,0,0,.16)}.downline-summary-card span{display:block;color:#94a3b8;font-size:12px;margin-bottom:8px}.downline-summary-card strong{font-size:21px;color:#f8fafc}.downline-filter-card{padding:15px;margin-bottom:16px}.downline-filter-form{display:grid;grid-template-columns:minmax(220px,2fr) minmax(120px,.7fr) minmax(140px,.7fr) auto auto;gap:10px;align-items:end}.downline-filter-form label span{display:block;margin-bottom:6px;color:#b9c7d8;font-size:12px}.downline-filter-form input,.downline-filter-form select{width:100%}.downline-table-card{overflow:hidden;padding:0}.downline-table-head{display:flex;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid #2a3b52}.downline-table-head span{color:#94a3b8}.downline-table td strong,.downline-table td small{display:block}.downline-table td small{margin-top:4px;color:#8fa1b7}.level-badge{display:inline-flex;min-width:38px;justify-content:center;padding:6px 8px;border:1px solid #216e54;border-radius:999px;background:#0d3429;color:#63e6ad;font-weight:800}.downline-actions{display:flex;gap:7px;flex-wrap:wrap}.downline-empty{padding:54px 18px;text-align:center;color:#94a3b8}.downline-pagination{display:flex;justify-content:center;align-items:center;gap:12px;padding:15px;border-top:1px solid #2a3b52}.downline-pagination .is-disabled{pointer-events:none;opacity:.4}

.downline-list-card{overflow:hidden;padding:0}.downline-member-list{display:grid;gap:10px;padding:14px}.downline-member-card{border:1px solid #2a3b52;border-radius:14px;background:linear-gradient(145deg,#101b2a,#0c1522);overflow:hidden}.downline-member-main{display:grid;grid-template-columns:60px minmax(140px,1.15fr) minmax(170px,1.4fr) minmax(100px,.8fr) minmax(100px,.8fr) minmax(110px,.8fr);gap:12px;align-items:center;padding:15px}.downline-member-identity strong,.downline-member-name strong,.downline-member-stat strong{display:block;color:#f8fafc}.downline-member-identity span,.downline-member-name small,.downline-member-stat small{display:block;color:#8fa1b7;font-size:12px;margin-bottom:4px}.downline-member-extra{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:10px 15px;border-top:1px solid #223249;background:rgba(255,255,255,.015);color:#9fb0c5;font-size:12px}.downline-member-extra .downline-actions{margin-left:auto}
@media(max-width:900px){.network-owner-grid{grid-template-columns:1fr 1fr}.commission-overview-grid{grid-template-columns:1fr 1fr}.downline-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.downline-filter-form{grid-template-columns:1fr 1fr}.downline-filter-form label:first-child{grid-column:1/-1}.downline-page-head{align-items:flex-start;flex-direction:column}.downline-page-head>.btn-primary{width:100%;text-align:center}}
@media(max-width:780px){.downline-member-main{grid-template-columns:52px 1fr 1fr}.downline-member-name{grid-column:2/4}.downline-member-extra{align-items:flex-start}.downline-member-extra .downline-actions{width:100%;margin-left:0}}
@media(max-width:640px){.network-owner-title,.commission-overview-head{align-items:flex-start;flex-direction:column}.network-owner-grid,.commission-overview-grid{grid-template-columns:1fr}.network-status{width:100%;box-sizing:border-box;justify-content:center}.downline-summary-grid{grid-template-columns:1fr 1fr;gap:8px}.downline-summary-card{padding:13px}.downline-summary-card strong{font-size:17px}.downline-filter-form{grid-template-columns:1fr}.downline-filter-form label:first-child{grid-column:auto}.downline-filter-form .btn-primary,.downline-filter-form .btn-secondary{width:100%;text-align:center}.downline-table-card{background:transparent;border:0;box-shadow:none}.downline-table-head{border:1px solid #2a3b52;border-radius:12px;margin-bottom:9px;background:#111d2d}.downline-table,.downline-table tbody,.downline-table tr,.downline-table td{display:block;width:100%}.downline-table thead{display:none}.downline-table tr{margin-bottom:10px;border:1px solid #2a3b52;border-radius:13px;background:#0f1928;padding:11px}.downline-table td{display:grid;grid-template-columns:105px minmax(0,1fr);gap:10px;padding:7px 0!important;border:0!important}.downline-table td:before{color:#8fa1b7;font-size:12px}.downline-table td:nth-child(1):before{content:'ระดับ'}.downline-table td:nth-child(2):before{content:'สมาชิก'}.downline-table td:nth-child(3):before{content:'ชื่อ–นามสกุล'}.downline-table td:nth-child(4):before{content:'Upline'}.downline-table td:nth-child(5):before{content:'เบอร์โทร'}.downline-table td:nth-child(6):before{content:'เครดิต'}.downline-table td:nth-child(7):before{content:'ชั้นแรก'}.downline-table td:nth-child(8):before{content:'วันที่สมัคร'}.downline-table td:nth-child(9):before{content:'จัดการ'}.downline-actions{display:grid;grid-template-columns:1fr 1fr}.downline-actions a{text-align:center}.downline-pagination{border:1px solid #2a3b52;border-radius:12px;background:#111d2d}.downline-member-list{padding:9px}.downline-member-main{grid-template-columns:46px 1fr;gap:9px;padding:12px}.downline-member-name,.downline-member-stat{grid-column:1/3;display:grid;grid-template-columns:115px 1fr;gap:8px;align-items:center;padding-top:7px;border-top:1px solid #223249}.downline-member-name small,.downline-member-stat small{margin:0}.downline-member-extra{display:grid;grid-template-columns:1fr;padding:10px 12px}.downline-actions{grid-template-columns:1fr 1fr}.downline-actions a{text-align:center}}

/* ===== CMZPAY Admin Theme 2026: compact light/dark backoffice ===== */
:root,html[data-theme="light"]{
  --navy-1:#eef2f8; --navy-2:#ffffff; --panel:#ffffff; --line:#dfe5ee;
  --pink:#f5a623; --pink-2:#e58e0b; --cyan:#f6b93b;
  --text-1:#263445; --text-2:#718096;
  --success:#18a66a; --danger:#e34b55; --warning:#f0a020;
  --cmz-sidebar:#24313f; --cmz-sidebar-2:#1f2b37; --cmz-top:#ffffff;
  color-scheme:light;
}
html[data-theme="dark"]{
  --navy-1:#0f141b; --navy-2:#171e28; --panel:#1c2531; --line:#303c4d;
  --pink:#f5a623; --pink-2:#d98708; --cyan:#ffc04d;
  --text-1:#eef3f8; --text-2:#9ca9b8;
  --success:#2ecc71; --danger:#ff626d; --warning:#f5aa2b;
  --cmz-sidebar:#171f29; --cmz-sidebar-2:#121922; --cmz-top:#171e28;
  color-scheme:dark;
}
body.admin-body{background:var(--navy-1);color:var(--text-1);transition:background .18s ease,color .18s ease}
.admin-sidebar{width:210px;flex-basis:210px;background:var(--cmz-sidebar);border-right:1px solid rgba(255,255,255,.06);box-shadow:2px 0 8px rgba(25,35,48,.08)}
.sidebar-brand{background:var(--cmz-sidebar-2);color:#fff;padding:17px 18px;border-bottom:1px solid rgba(255,255,255,.07);letter-spacing:.4px}.sidebar-brand span{color:#f5a623}
.sidebar-nav{padding:8px 0;gap:0}.sidebar-nav a,.sidebar-menu-toggle{border-radius:0!important;min-height:42px;padding:10px 16px!important;color:#c9d2dc!important}.sidebar-nav a:hover,.sidebar-menu-toggle:hover{background:rgba(255,255,255,.055)!important;color:#fff!important;transform:none!important}.sidebar-nav a.active{background:#314256!important;color:#fff!important;box-shadow:inset 3px 0 0 #f5a623!important}.sidebar-menu-group.active>.sidebar-menu-toggle{background:rgba(255,255,255,.04)}.sidebar-submenu a{padding-left:43px!important;font-size:13px!important}.sidebar-user{background:var(--cmz-sidebar-2);border-color:rgba(255,255,255,.07);color:#fff}.sidebar-user-role{color:#93a3b4}
.admin-content-wrap{background:var(--navy-1)}
.admin-desktop-topbar{background:var(--cmz-top)!important;border-bottom:1px solid var(--line)!important;box-shadow:0 1px 5px rgba(30,45,60,.06)!important;min-height:54px!important;padding:8px 18px!important}
.admin-main{max-width:none!important;margin:0!important;padding:18px 20px!important}
.admin-top-action{background:var(--panel)!important;border:1px solid var(--line)!important;color:var(--text-2)!important;border-radius:7px!important}.admin-top-action:hover{color:#f5a623!important;border-color:#f5a623!important}.theme-toggle{margin-left:auto}.theme-toggle i{color:#f5a623}
.dash-topbar{margin-bottom:12px}.dash-title h1,h1{font-size:20px!important}.dash-subtitle{font-size:12px}.live-badge{border-radius:4px!important}
.notice-banner,.alert-warning{border-radius:4px!important}
.card,.auth-box,.icon-stat-card,.stat-card,.summary-range,.quick-link{border-radius:5px!important;box-shadow:0 1px 5px rgba(30,45,60,.07)!important}
.icon-stat-grid{grid-template-columns:repeat(auto-fit,minmax(185px,1fr))!important;gap:10px!important}.icon-stat-card{padding:13px!important;min-height:105px!important;background:var(--panel)!important}.icon-stat-value{font-size:21px!important}.stat-icon{filter:none!important}
.data-table{background:var(--panel);border-radius:3px!important}.data-table th{background:color-mix(in srgb,var(--navy-1) 70%,var(--panel));text-transform:none!important;letter-spacing:0!important;color:var(--text-1)}.data-table td{color:var(--text-1)}.data-table tbody tr:nth-child(even){background:color-mix(in srgb,var(--navy-1) 35%,transparent)}
input[type=text],input[type=password],input[type=tel],input[type=number],input[type=search],input[type=file],input[type=date],select,textarea{background:var(--panel)!important;color:var(--text-1)!important;border-color:var(--line)!important;border-radius:4px!important}
.btn-primary,.btn-secondary,.btn-danger,.btn-success{border-radius:4px!important}.btn-primary{background:#f5a623!important;color:#fff!important}
html[data-theme="light"] .form-error{color:#b4232c}html[data-theme="light"] .form-success{color:#137a50}html[data-theme="light"] .status-badge.pending{color:#9a6400}html[data-theme="light"] .status-badge.approved{color:#087a49}html[data-theme="light"] .status-badge.rejected{color:#b4232c}
@media(max-width:860px){.admin-sidebar{width:270px}.mobile-topbar{background:var(--cmz-sidebar)!important;color:#fff}.admin-main{padding:14px 12px!important}}

/* ===== V29: refined CMZPAY blue/white workspace + cleaner dark mode ===== */
:root,html[data-theme="light"]{
  --navy-1:#f3f6fb;
  --navy-2:#ffffff;
  --panel:#ffffff;
  --line:#d9e2ef;
  --pink:#2563eb;
  --pink-2:#1d4ed8;
  --cyan:#3b82f6;
  --text-1:#17243a;
  --text-2:#6b7b91;
  --success:#16a36a;
  --danger:#dc4c58;
  --warning:#e99a16;
  --cmz-sidebar:#172a40;
  --cmz-sidebar-2:#122236;
  --cmz-top:#ffffff;
  --cmz-soft-blue:#edf5ff;
  --cmz-blue-border:#cddff8;
  --cmz-shadow:0 5px 18px rgba(31,55,86,.07);
}
html[data-theme="dark"]{
  --navy-1:#0d1520;
  --navy-2:#121e2b;
  --panel:#162536;
  --line:#2a3d52;
  --pink:#4f8df7;
  --pink-2:#3676e6;
  --cyan:#6ba3ff;
  --text-1:#eef5ff;
  --text-2:#9baec3;
  --cmz-sidebar:#0f1c2b;
  --cmz-sidebar-2:#0b1622;
  --cmz-top:#121e2b;
  --cmz-soft-blue:#142b45;
  --cmz-blue-border:#294c73;
  --cmz-shadow:0 8px 24px rgba(0,0,0,.18);
}
.admin-sidebar{width:220px;flex-basis:220px;background:var(--cmz-sidebar);box-shadow:none;border-right:1px solid rgba(255,255,255,.06)}
.sidebar-brand{padding:18px 18px;background:var(--cmz-sidebar-2);font-size:19px}
.sidebar-brand span{color:#f5a623}.sidebar-brand>i{color:#fff}
.sidebar-nav{padding:10px 8px;gap:3px}.sidebar-nav a,.sidebar-menu-toggle{border-radius:7px!important;min-height:40px;padding:9px 12px!important;color:#c5d1df!important;font-size:13px!important}
.sidebar-nav a:hover,.sidebar-menu-toggle:hover{background:rgba(255,255,255,.07)!important}
.sidebar-nav a.active{background:#24517d!important;box-shadow:inset 3px 0 0 #63a6ff!important;color:#fff!important}
.sidebar-menu-group.active>.sidebar-menu-toggle{background:rgba(71,125,180,.13)!important}.sidebar-submenu a{padding-left:38px!important}
.admin-content-wrap{background:var(--navy-1)}
.admin-desktop-topbar{min-height:58px!important;background:var(--cmz-top)!important;border-bottom:1px solid var(--line)!important;box-shadow:0 1px 4px rgba(36,60,90,.05)!important}
.admin-top-action{border-radius:8px!important;width:40px!important;height:40px!important;background:var(--panel)!important}.admin-top-action:hover{color:var(--cyan)!important;border-color:var(--cyan)!important}.theme-toggle i{color:#f5a623!important}
.admin-main{padding:22px 24px!important;max-width:1500px!important;margin:0 auto!important;width:100%}
.dash-topbar{padding:2px 0 5px;margin-bottom:14px}.dash-title h1,h1{font-size:21px!important;color:var(--text-1)}.dash-subtitle{font-size:12.5px!important}
.card,.auth-box,.stat-card,.summary-range,.quick-link{border:1px solid var(--line)!important;border-radius:10px!important;background:var(--panel)!important;box-shadow:var(--cmz-shadow)!important}
.notice-banner{background:var(--cmz-soft-blue)!important;border:1px solid var(--cmz-blue-border)!important;color:var(--text-1)!important;border-radius:8px!important}
.icon-stat-grid{gap:12px!important}.dashboard-card-grid .icon-stat-card,.icon-stat-card{border:1px solid var(--line)!important;border-radius:10px!important;box-shadow:0 3px 12px rgba(31,55,86,.055)!important;background:var(--panel)!important}
.dashboard-card-grid .icon-stat-card::after{opacity:.45}.icon-stat-card:hover{transform:translateY(-1px)!important;box-shadow:0 7px 18px rgba(31,55,86,.09)!important}
.icon-stat-label{color:var(--text-2)!important}.icon-stat-desc{color:var(--text-2)!important}.icon-stat-value{color:var(--text-1)!important}
/* keep dashboard card meaning through a slim colored rail instead of full colored blocks */
.dashboard-card-grid .icon-stat-card{border-left-width:4px!important}.dashboard-card-grid .icon-stat-green{border-left-color:#19a974!important}.dashboard-card-grid .icon-stat-orange{border-left-color:#f59e0b!important}.dashboard-card-grid .icon-stat-blue{border-left-color:#3b82f6!important}.dashboard-card-grid .icon-stat-purple{border-left-color:#8b5cf6!important}.dashboard-card-grid .icon-stat-red{border-left-color:#ef5965!important}.dashboard-card-grid .icon-stat-cyan{border-left-color:#06b6d4!important}.dashboard-card-grid .icon-stat-deposit-user{border-left-color:#22c55e!important}.dashboard-card-grid .icon-stat-no-deposit{border-left-color:#64748b!important}.dashboard-card-grid .pending-stat-card{border-left-color:#f59e0b!important}.dashboard-card-grid .icon-stat-slate{border-left-color:#64748b!important}
.data-table{border:1px solid var(--line)!important;border-radius:9px!important;background:var(--panel)!important;overflow:hidden!important}
.data-table th{background:var(--cmz-soft-blue)!important;color:#294b72!important;border-bottom:1px solid var(--cmz-blue-border)!important;font-size:12px!important;padding:11px 12px!important}
html[data-theme="dark"] .data-table th{color:#cde2ff!important}
.data-table td{padding:11px 12px!important;border-bottom:1px solid var(--line)!important}.data-table tbody tr:nth-child(even){background:rgba(85,135,190,.035)!important}.data-table tbody tr:hover{background:rgba(59,130,246,.07)!important}
input[type=text],input[type=password],input[type=tel],input[type=number],input[type=search],input[type=file],input[type=date],input[type=url],select,textarea{min-height:40px!important;background:var(--panel)!important;color:var(--text-1)!important;border:1px solid var(--line)!important;border-radius:7px!important;box-shadow:none!important}
input:focus,select:focus,textarea:focus{outline:none!important;border-color:#75a9ef!important;box-shadow:0 0 0 3px rgba(59,130,246,.10)!important}
.btn-primary{background:#2563eb!important;color:#fff!important;border-radius:7px!important}.btn-primary:hover{background:#1d4ed8!important}.btn-secondary{border-radius:7px!important;background:var(--panel)!important}.btn-success,.btn-danger{border-radius:7px!important}
.filter-tab{border-radius:7px!important}.filter-tab.active{background:#2563eb!important}
/* members / action-heavy pages: less visual noise */
.members-toolbar,.table-toolbar{background:transparent!important}.inline-form{gap:7px!important}.link-danger{font-weight:600!important}
/* dashboard chart date controls */
.chart-card-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:12px}
.chart-card-head h2{margin:0!important}.chart-range-form{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}.chart-range-field{display:flex;flex-direction:column;gap:4px}.chart-range-field label{margin:0!important;font-size:11px!important;color:var(--text-2)!important}.chart-range-field input{width:142px!important;min-height:36px!important;height:36px!important;padding:6px 9px!important}.chart-range-form .btn-secondary{height:36px!important;padding:7px 13px!important;margin:0!important}.chart-range-caption{font-size:12px;color:var(--text-2);margin:-4px 0 12px}
@media(max-width:860px){.admin-sidebar{width:270px}.admin-main{padding:15px 12px!important}.chart-range-form{width:100%}.chart-range-field{flex:1;min-width:120px}.chart-range-field input{width:100%!important}.chart-range-form .btn-secondary{width:100%}}
/* CMZPAY v3.2.1 — original white/blue logo + manual connector */
.sidebar-brand .cmz-logo-cmz,.mobile-topbar-brand .cmz-logo-cmz,.admin-brand .cmz-logo-cmz{color:#fff!important}
.sidebar-brand .cmz-logo-pay,.mobile-topbar-brand .cmz-logo-pay,.admin-brand .cmz-logo-pay{color:#38bdf8!important}
.provider-manual-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:16px}.provider-manual-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:18px;box-shadow:var(--shadow-sm)}.provider-manual-card h2{margin:0 0 6px;font-size:16px}.provider-manual-card p{color:var(--text-2);margin:0 0 14px}.provider-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.provider-field label{display:block;font-size:12px;font-weight:700;color:var(--text-2);margin-bottom:6px}.provider-field input,.provider-field select,.provider-field textarea{width:100%;box-sizing:border-box}.provider-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.provider-step{display:flex;gap:10px;padding:11px 0;border-bottom:1px solid var(--border)}.provider-step:last-child{border-bottom:0}.provider-step-num{width:26px;height:26px;border-radius:50%;background:#e0f2fe;color:#0369a1;display:flex;align-items:center;justify-content:center;font-weight:900;flex:0 0 26px}.provider-warning{padding:11px 13px;border-radius:9px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-size:12px;margin-bottom:14px}.provider-ref{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.provider-status{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#fef3c7;color:#92400e;font-weight:800;font-size:11px}@media(max-width:850px){.provider-manual-grid,.provider-fields{grid-template-columns:1fr}}
[data-theme="dark"] .provider-warning{background:#431407;border-color:#7c2d12;color:#fed7aa}[data-theme="dark"] .provider-step-num{background:#0c4a6e;color:#bae6fd}


/* ===== CMZPAY UI Refresh v13 ===== */
:root{
  --cmz-bg:#f4f7fb;--cmz-panel:#ffffff;--cmz-text:#152033;--cmz-muted:#6b778c;
  --cmz-line:#e5eaf1;--cmz-primary:#2563eb;--cmz-primary-soft:#eff6ff;
  --cmz-success:#16a34a;--cmz-danger:#dc2626;--cmz-radius:16px;
}
body{background:var(--cmz-bg)!important;color:var(--cmz-text)!important;font-family:Inter,"Noto Sans Thai",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
.main,.content,.content-wrap,.page-content{background:transparent!important}
.card,.panel,.box,.summary-card,.widget,.settings-card,.form-card{background:var(--cmz-panel)!important;border:1px solid var(--cmz-line)!important;border-radius:var(--cmz-radius)!important;box-shadow:0 10px 30px rgba(15,23,42,.06)!important}
input,select,textarea{background:#fff!important;color:var(--cmz-text)!important;border:1px solid #d8e0ea!important;border-radius:11px!important;min-height:42px!important;box-shadow:none!important}
input:focus,select:focus,textarea:focus{border-color:#93b4ff!important;box-shadow:0 0 0 4px rgba(37,99,235,.10)!important;outline:0!important}
button,.btn,a.btn{border-radius:11px!important;font-weight:700!important;transition:transform .15s ease,box-shadow .15s ease,background .15s ease!important}
button:hover,.btn:hover,a.btn:hover{transform:translateY(-1px)}
.btn-primary,button.primary{background:var(--cmz-primary)!important;border-color:var(--cmz-primary)!important;color:#fff!important;box-shadow:0 8px 18px rgba(37,99,235,.20)!important}
table{background:#fff!important;border:1px solid var(--cmz-line)!important;border-radius:14px!important;overflow:hidden!important}
thead th{background:#f8fafc!important;color:#475569!important;border-bottom:1px solid var(--cmz-line)!important;font-size:12px!important;font-weight:800!important}
tbody td{color:#1e293b!important;border-bottom-color:#eef2f7!important}
tbody tr:hover{background:#f8fbff!important}
.sidebar,.admin-sidebar{background:#0f172a!important;border-right:0!important;box-shadow:6px 0 24px rgba(15,23,42,.12)!important}
.sidebar a,.admin-sidebar a{border-radius:10px!important;margin:3px 8px!important}
.sidebar a:hover,.sidebar a.active,.admin-sidebar a:hover,.admin-sidebar a.active{background:rgba(255,255,255,.10)!important;color:#fff!important}
.transactions-table-wrap{background:#fff!important;border-color:var(--cmz-line)!important;box-shadow:0 10px 30px rgba(15,23,42,.06)!important}
.transactions-table th{background:#f8fafc!important;color:#475569!important}
.transactions-table td{color:#1e293b!important}
.transactions-table tbody tr.txn-row.txn-deposit{background:#f0fdf4!important;box-shadow:inset 3px 0 0 var(--cmz-success)!important}
.transactions-table tbody tr.txn-row.txn-withdraw{background:#fef2f2!important;box-shadow:inset 3px 0 0 var(--cmz-danger)!important}
.customer-bank{background:#f8fafc!important}.customer-bank strong{color:#64748b!important}.customer-bank span{color:#0f172a!important}
.status-badge,.type-badge,.channel-badge{border-radius:999px!important;font-weight:800!important}
@media(max-width:768px){.card,.panel,.box,.summary-card,.widget,.settings-card,.form-card{border-radius:13px!important}.content,.content-wrap,.page-content{padding-left:12px!important;padding-right:12px!important}}

/* =========================================================
   V27 — CMZPAY compact backoffice UI inspired by provider panel
   ========================================================= */
.prodxs-admin-ui[data-theme="light"], html[data-theme="light"] .prodxs-admin-ui{
  --navy-1:#eef2f8;--navy-2:#232e3b;--panel:#ffffff;--line:#dfe5ee;
  --pink:#2563eb;--pink-2:#1d4ed8;--cyan:#f5a623;--text-1:#172033;--text-2:#6d7787;
  background:#eef2f8;color:#172033;
}
.prodxs-admin-ui.has-sidebar{background:#eef2f8}
.prodxs-admin-ui .admin-sidebar{width:142px;flex-basis:142px;background:#232e3b;border-right:0;color:#fff;box-shadow:none}
.prodxs-admin-ui .sidebar-brand{height:48px;padding:12px 14px;border-bottom:1px solid rgba(255,255,255,.07);font-size:16px;background:#202a36;display:flex;align-items:center;gap:5px}
.prodxs-admin-ui .sidebar-brand>i{color:#f5a623}.prodxs-admin-ui .cmz-logo-cmz{color:#fff!important}.prodxs-admin-ui .cmz-logo-pay{color:#f5a623!important}
.prodxs-admin-ui .sidebar-nav{padding:7px 0;gap:0}
.prodxs-admin-ui .sidebar-nav>a,.prodxs-admin-ui .sidebar-menu-toggle{border-radius:0;margin:0;width:100%;padding:10px 11px;font-size:11.5px;font-weight:600;color:#c7d0da;background:transparent;transform:none!important}
.prodxs-admin-ui .sidebar-nav>a i,.prodxs-admin-ui .sidebar-menu-title>i{color:#5d83aa;width:16px;font-size:12px}
.prodxs-admin-ui .sidebar-nav>a:hover,.prodxs-admin-ui .sidebar-menu-toggle:hover{background:#293746;color:#fff}
.prodxs-admin-ui .sidebar-nav>a.active,.prodxs-admin-ui .sidebar-menu-group.active>.sidebar-menu-toggle{background:#314156!important;color:#fff!important;border-left:3px solid #f5a623;box-shadow:none!important}
.prodxs-admin-ui .sidebar-nav>a.active i,.prodxs-admin-ui .sidebar-menu-group.active>.sidebar-menu-toggle i{color:#f5a623}
.prodxs-admin-ui .sidebar-menu-group{margin:0;border-radius:0}.prodxs-admin-ui .sidebar-submenu{margin:0;padding:0 0 3px 0;border:0;background:#1f2935}
.prodxs-admin-ui .sidebar-submenu a{padding:8px 10px 8px 30px!important;font-size:10.5px!important;color:#aeb9c6!important;border:0!important}
.prodxs-admin-ui .sidebar-submenu a.active{background:#2c3b4d!important;color:#fff!important;border-left:3px solid #f5a623!important}
.prodxs-admin-ui .sidebar-user{padding:10px;border-color:rgba(255,255,255,.07);font-size:11px}.prodxs-admin-ui .sidebar-user-name{font-size:11px}.prodxs-admin-ui .sidebar-user-role{font-size:10px}.prodxs-admin-ui .sidebar-logout{font-size:10px;color:#f7b84b}
.prodxs-admin-ui .admin-content-wrap{background:#eef2f8;min-height:100vh}
.prodxs-admin-ui .admin-desktop-topbar{height:39px;min-height:39px;padding:0 13px;background:#fff;border-bottom:1px solid #e0e5ed;box-shadow:0 1px 3px rgba(15,23,42,.05);display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:30}
.prodxs-topbar-links,.prodxs-topbar-tools{display:flex;align-items:center;gap:13px}.prodxs-topbar-links a{font-size:10.5px;color:#5c6572;text-decoration:none;font-weight:600;white-space:nowrap}.prodxs-topbar-links a i{color:#f5a623;margin-right:4px}
.prodxs-admin-ui .admin-top-status{font-size:9.5px;color:#9aa3af}.prodxs-admin-ui .admin-top-action{width:25px;height:25px;border:0;background:transparent;color:#6c7685;padding:0;margin:0;border-radius:50%}.prodxs-admin-ui .admin-top-action:hover{background:#f1f5f9}.prodxs-admin-ui .admin-top-badge{background:#ef4444;font-size:8px;min-width:13px;height:13px;line-height:13px}
.prodxs-admin-user{display:flex;align-items:center;gap:5px;text-decoration:none;color:#738091;font-size:10px}.prodxs-admin-user>i:first-child{font-size:18px;color:#9aa3af}.prodxs-admin-user>i:last-child{font-size:7px}
.prodxs-admin-ui .admin-main{max-width:none;margin:0;padding:12px 13px 40px}
.prodxs-admin-ui h1{font-size:13px;margin:0 0 10px;padding:8px 10px;background:#fff;border:1px solid #e2e7ee;border-radius:2px;color:#172033;font-weight:700}.prodxs-admin-ui h1:before{content:'●';color:#f5a623;font-size:10px;margin-right:6px}
.prodxs-admin-ui h2{font-size:13px;color:#263446}
.prodxs-admin-ui .card{background:#fff;border:1px solid #e1e6ee;border-radius:3px;box-shadow:none;color:#172033}
.prodxs-admin-ui input[type=text],.prodxs-admin-ui input[type=password],.prodxs-admin-ui input[type=tel],.prodxs-admin-ui input[type=number],.prodxs-admin-ui input[type=search],.prodxs-admin-ui input[type=date],.prodxs-admin-ui select{background:#f1f4fa;color:#334155;border:1px solid #e2e7ef;border-radius:2px;padding:7px 9px;font-size:10.5px;min-height:31px}
.prodxs-admin-ui input:focus,.prodxs-admin-ui select:focus{outline:0;border-color:#f5a623;box-shadow:0 0 0 2px rgba(245,166,35,.12)}
.prodxs-admin-ui label{font-size:10px;color:#6b7280}
.prodxs-admin-ui .btn-primary,.prodxs-admin-ui .btn-secondary,.prodxs-admin-ui .btn-success,.prodxs-admin-ui .btn-danger{border-radius:3px;padding:7px 11px;font-size:10px;min-height:30px;margin-top:0;width:auto;box-shadow:none}
.prodxs-admin-ui .btn-primary{background:#f5a623;color:#fff}.prodxs-admin-ui .btn-primary:hover{background:#e59612}.prodxs-admin-ui .btn-secondary{background:#fff;border:1px solid #d5dce6;color:#475569}.prodxs-admin-ui .btn-success{background:#0f9d58}.prodxs-admin-ui .btn-danger{background:#dc3545}
.prodxs-admin-ui .form-success{font-size:10.5px;background:#eaf8f0;color:#178447;border-color:#bfe8ce;border-radius:3px;padding:8px 10px}
.prodxs-admin-ui .form-error{font-size:10.5px;background:#fff0f0;color:#c63a3a;border-color:#f3c4c4;border-radius:3px}
.prodxs-admin-ui .search-form{max-width:none;display:grid;grid-template-columns:minmax(220px,320px) 66px;gap:8px;margin:0 0 8px;background:#fff;padding:9px 10px;border:1px solid #e1e6ee;border-bottom:0}
.prodxs-admin-ui .filter-tabs{margin:0 0 0;background:#fff;padding:0 10px 9px;border:1px solid #e1e6ee;border-top:0;gap:6px}.prodxs-admin-ui .filter-tab{background:#fff;border:1px solid #d7dee8;border-radius:3px;color:#536174;padding:6px 13px;font-size:9.5px}.prodxs-admin-ui .filter-tab.active{background:#2563eb;color:#fff;border-color:#2563eb}
.prodxs-admin-ui .member-create-toolbar{margin:-43px 7px 13px 0;position:relative;z-index:2}.prodxs-admin-ui .member-create-toolbar .btn-primary{background:#f5a623;color:#fff;font-size:10px}
.prodxs-admin-ui .member-create-panel{border-radius:3px;border-color:#e1e6ee;padding:15px;max-width:none}.prodxs-admin-ui .member-create-head h2{font-size:13px}.prodxs-admin-ui .member-create-head p{font-size:10px;color:#8993a1}
.prodxs-admin-ui .member-create-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 10px}.prodxs-admin-ui .member-create-grid label span{font-size:9.5px;color:#617083}.prodxs-admin-ui .member-create-actions{grid-column:1/-1}
.prodxs-admin-ui .member-table-card{margin-top:0;border:1px solid #dbe2eb;border-radius:2px;background:#fff;box-shadow:none;overflow:hidden}.prodxs-admin-ui .member-table-scroll{overflow-x:auto}.prodxs-admin-ui .member-data-table{min-width:1050px;table-layout:auto;border:0;color:#29384c}.prodxs-admin-ui .member-data-table thead th{position:static;background:#edf2f8;color:#304155;font-size:9px;text-transform:none;letter-spacing:0;padding:8px 7px;border-bottom:1px solid #d8e0ea;white-space:nowrap;text-align:center}.prodxs-admin-ui .member-data-table tbody td{font-size:9.5px;padding:7px;border-bottom:1px solid #e5e9ef;color:#314158;text-align:center;white-space:nowrap;overflow:visible}.prodxs-admin-ui .member-data-table tbody tr:nth-child(even){background:#f6f6f6}.prodxs-admin-ui .member-data-table tbody tr:hover{background:#fff9ea}.prodxs-admin-ui .member-id-note{display:block;color:#768599;font-size:8px;margin-top:2px}.prodxs-admin-ui .member-data-table td:nth-child(5) strong{color:#172033!important;font-size:10px}.prodxs-admin-ui .member-data-table td:nth-child(6) strong{color:#21b66f!important;font-size:10px}.prodxs-admin-ui .m3-bank-badge{min-width:0;justify-content:flex-start}.prodxs-admin-ui .m3-bank-badge img{width:18px;height:18px;padding:1px;border-radius:50%}.prodxs-admin-ui .m3-bank-badge span:last-child{display:none}.prodxs-admin-ui .member-account-cell{display:flex!important;align-items:center;justify-content:center;gap:5px}.prodxs-admin-ui .member-network-badge{padding:4px 6px;border-radius:2px;font-size:8.5px;background:#f1f5f9;border-color:#dce3ec;color:#64748b}.prodxs-admin-ui .member-network-badge.has-downline{background:#e9f8f0;color:#15915a;border-color:#bee8cf}.prodxs-admin-ui .edit-member-btn{background:#2563eb!important;color:#fff!important;padding:5px 7px!important;font-size:8.5px!important}.prodxs-admin-ui .member-data-table select{padding:4px 6px!important;min-height:25px;font-size:9px!important;background:#fff}.prodxs-admin-ui .member-data-table .btn-small{padding:4px 6px;font-size:8.5px}.prodxs-admin-ui .small-input{max-width:70px!important;padding:4px!important;min-height:25px!important;font-size:9px!important}
.prodxs-admin-ui .data-table:not(.member-data-table){background:#fff;color:#314158}.prodxs-admin-ui .data-table:not(.member-data-table) th{background:#edf2f8;color:#304155;font-size:9.5px;text-transform:none}.prodxs-admin-ui .data-table:not(.member-data-table) td{font-size:10px;color:#334155}.prodxs-admin-ui .data-table tbody tr:nth-child(even){background:#f7f7f7}
.prodxs-admin-ui .member-edit-dialog{background:#fff;color:#172033;border:1px solid #dce3eb}.prodxs-admin-ui .member-edit-dialog input,.prodxs-admin-ui .member-edit-dialog select{background:#f4f6fa;color:#334155}.prodxs-admin-ui .member-credit-section,.prodxs-admin-ui .member-network-section,.prodxs-admin-ui .member-password-section,.prodxs-admin-ui .member-commission-section{background:#f7f9fc!important;border-color:#dce3ec!important}.prodxs-admin-ui .member-credit-current,.prodxs-admin-ui .member-network-count,.prodxs-admin-ui .member-downline-action,.prodxs-admin-ui .member-commission-grid>div{background:#fff!important;border-color:#dde4ec!important}.prodxs-admin-ui .member-credit-current strong{color:#2563eb}
@media(max-width:1000px){.prodxs-admin-ui .member-create-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.prodxs-topbar-links{display:none}}
@media(max-width:860px){.prodxs-admin-ui .admin-sidebar{width:230px}.prodxs-admin-ui .admin-main{padding:10px}.prodxs-admin-ui .member-create-toolbar{margin:0 0 10px}.prodxs-admin-ui .search-form{grid-template-columns:1fr auto}}
@media(max-width:600px){.prodxs-admin-ui .member-create-grid{grid-template-columns:1fr}.prodxs-admin-ui .prodxs-topbar-tools .admin-top-status,.prodxs-admin-ui .prodxs-admin-user span{display:none}}

/* =========================================================
   V31 CMZPAY WHITE / BLUE READABILITY UI
   UI-only override. Keeps application/API logic untouched.
   ========================================================= */
body.admin-body.prodxs-admin-ui{
  --cmz-blue:#1769e0;
  --cmz-blue-2:#0f56c4;
  --cmz-blue-soft:#eaf3ff;
  --cmz-blue-soft-2:#f4f8ff;
  --cmz-ink:#17243a;
  --cmz-muted:#66758a;
  --cmz-line:#d8e3f0;
  --cmz-bg:#f2f6fb;
  --cmz-white:#ffffff;
  background:var(--cmz-bg)!important;
  color:var(--cmz-ink)!important;
  font-size:14px;
}

/* Sidebar: CMZPAY blue, high contrast */
.prodxs-admin-ui .admin-sidebar{
  width:218px!important; flex-basis:218px!important;
  background:linear-gradient(180deg,#0d5bc8 0%,#0a4da8 100%)!important;
  border-right:0!important;
  box-shadow:4px 0 18px rgba(25,75,140,.12)!important;
}
.prodxs-admin-ui .sidebar-brand{
  height:64px!important; padding:0 20px!important;
  background:#fff!important; border-bottom:1px solid #dce7f3!important;
  color:#145fc9!important; font-size:20px!important;
}
.prodxs-admin-ui .sidebar-brand>i{color:#1769e0!important}
.prodxs-admin-ui .sidebar-brand .cmz-logo-cmz{color:#17385f!important}
.prodxs-admin-ui .sidebar-brand .cmz-logo-pay{color:#1769e0!important}
.prodxs-admin-ui .sidebar-nav{padding:12px 10px!important;gap:4px!important}
.prodxs-admin-ui .sidebar-nav>a,
.prodxs-admin-ui .sidebar-menu-toggle{
  min-height:42px!important; padding:10px 12px!important; margin:0!important;
  border-radius:8px!important; color:#eaf3ff!important; font-size:13px!important;
  font-weight:650!important; background:transparent!important;
}
.prodxs-admin-ui .sidebar-nav>a i,
.prodxs-admin-ui .sidebar-menu-title>i{color:#b9d8ff!important;font-size:13px!important;width:19px!important}
.prodxs-admin-ui .sidebar-nav>a:hover,
.prodxs-admin-ui .sidebar-menu-toggle:hover{background:rgba(255,255,255,.11)!important;color:#fff!important}
.prodxs-admin-ui .sidebar-nav>a.active,
.prodxs-admin-ui .sidebar-menu-group.active>.sidebar-menu-toggle{
  background:#fff!important;color:#145fc9!important;border-left:0!important;
  box-shadow:0 5px 14px rgba(0,37,93,.18)!important;
}
.prodxs-admin-ui .sidebar-nav>a.active i,
.prodxs-admin-ui .sidebar-menu-group.active>.sidebar-menu-toggle i{color:#1769e0!important}
.prodxs-admin-ui .sidebar-menu-group{border-radius:8px!important;overflow:hidden}
.prodxs-admin-ui .sidebar-submenu{background:rgba(4,48,109,.24)!important;padding:5px 5px 7px!important}
.prodxs-admin-ui .sidebar-submenu a{
  color:#dbeaff!important;font-size:12px!important;padding:9px 10px 9px 35px!important;
  border-radius:6px!important;
}
.prodxs-admin-ui .sidebar-submenu a:hover{background:rgba(255,255,255,.10)!important;color:#fff!important}
.prodxs-admin-ui .sidebar-submenu a.active{background:#eaf3ff!important;color:#135fc9!important;border-left:0!important;font-weight:700!important}
.prodxs-admin-ui .sidebar-user{background:rgba(3,40,90,.28)!important;border-top:1px solid rgba(255,255,255,.16)!important;color:#fff!important;padding:14px 16px!important}
.prodxs-admin-ui .sidebar-user-name{font-size:13px!important;color:#fff!important}.prodxs-admin-ui .sidebar-user-role{font-size:11px!important;color:#cce1ff!important}.prodxs-admin-ui .sidebar-logout{font-size:12px!important;color:#fff!important}

/* Main / topbar */
.prodxs-admin-ui .admin-content-wrap{background:var(--cmz-bg)!important}
.prodxs-admin-ui .admin-desktop-topbar{
  height:58px!important; min-height:58px!important; padding:0 22px!important;
  background:#fff!important; border-bottom:1px solid var(--cmz-line)!important;
  box-shadow:0 2px 8px rgba(31,72,125,.06)!important;
}
.prodxs-topbar-links,.prodxs-topbar-tools{gap:16px!important}
.prodxs-topbar-links a{font-size:12px!important;color:#516278!important;font-weight:700!important}
.prodxs-topbar-links a i{color:#1769e0!important;font-size:13px!important}
.prodxs-admin-ui .admin-top-status{font-size:11px!important;color:#7c8999!important}
.prodxs-admin-ui .admin-top-action{width:34px!important;height:34px!important;color:#3f5d7c!important;border:1px solid #dce6f1!important;background:#fff!important}
.prodxs-admin-ui .admin-top-action:hover{background:#edf5ff!important;color:#1769e0!important;border-color:#bcd6f7!important}
.prodxs-admin-user{font-size:12px!important;color:#40536a!important;font-weight:650!important}
.prodxs-admin-user>i:first-child{font-size:21px!important;color:#1769e0!important}
.prodxs-admin-ui .admin-main{padding:22px 24px 48px!important;max-width:none!important}

/* Page headings */
.prodxs-admin-ui h1{
  font-size:21px!important;line-height:1.35!important;margin:0 0 18px!important;padding:0!important;
  background:transparent!important;border:0!important;color:#17243a!important;font-weight:800!important;
}
.prodxs-admin-ui h1:before{content:''!important;margin:0!important}
.prodxs-admin-ui h2{font-size:17px!important;color:#1e3150!important;font-weight:750!important}
.prodxs-admin-ui h3{color:#263b5a!important}
.prodxs-admin-ui p,.prodxs-admin-ui .page-description{color:#68788e!important;line-height:1.6!important}

/* Cards */
.prodxs-admin-ui .card,
.prodxs-admin-ui .member-table-card,
.prodxs-admin-ui .member-create-panel,
.prodxs-admin-ui .summary-range,
.prodxs-admin-ui .stat-card{
  background:#fff!important;border:1px solid var(--cmz-line)!important;border-radius:12px!important;
  box-shadow:0 3px 14px rgba(39,76,119,.06)!important;color:var(--cmz-ink)!important;
}
.prodxs-admin-ui .card{max-width:none}
.prodxs-admin-ui .stat-label{font-size:12px!important;color:#718096!important}.prodxs-admin-ui .stat-value{color:#1769e0!important}

/* Forms: larger and readable */
.prodxs-admin-ui label{font-size:12.5px!important;color:#42546b!important;font-weight:650!important}
.prodxs-admin-ui input[type=text],.prodxs-admin-ui input[type=password],.prodxs-admin-ui input[type=tel],
.prodxs-admin-ui input[type=number],.prodxs-admin-ui input[type=search],.prodxs-admin-ui input[type=date],
.prodxs-admin-ui input[type=file],.prodxs-admin-ui select,.prodxs-admin-ui textarea{
  background:#fff!important;color:#17243a!important;border:1px solid #cfdbea!important;border-radius:8px!important;
  padding:10px 12px!important;font-size:13px!important;min-height:40px!important;box-shadow:inset 0 1px 2px rgba(16,50,90,.025)!important;
}
.prodxs-admin-ui input::placeholder,.prodxs-admin-ui textarea::placeholder{color:#9aa8b9!important}
.prodxs-admin-ui input:focus,.prodxs-admin-ui select:focus,.prodxs-admin-ui textarea:focus{
  border-color:#4b93ee!important;box-shadow:0 0 0 3px rgba(23,105,224,.12)!important;outline:0!important;
}

/* Buttons */
.prodxs-admin-ui .btn-primary,.prodxs-admin-ui .btn-secondary,.prodxs-admin-ui .btn-success,.prodxs-admin-ui .btn-danger{
  border-radius:8px!important;padding:9px 14px!important;font-size:12.5px!important;min-height:38px!important;font-weight:750!important;
}
.prodxs-admin-ui .btn-primary{background:#1769e0!important;color:#fff!important;border:1px solid #1769e0!important}
.prodxs-admin-ui .btn-primary:hover{background:#0f59c5!important}
.prodxs-admin-ui .btn-secondary{background:#fff!important;border:1px solid #cbd8e8!important;color:#40536b!important}
.prodxs-admin-ui .btn-secondary:hover{background:#f1f6fc!important;border-color:#9fbce0!important}
.prodxs-admin-ui .btn-success{background:#16a05d!important}.prodxs-admin-ui .btn-danger{background:#df4652!important}
.prodxs-admin-ui .btn-small{min-height:30px!important;padding:6px 9px!important;font-size:11.5px!important}

/* Search / filter */
.prodxs-admin-ui .search-form{display:flex!important;max-width:620px!important;grid-template-columns:none!important;gap:8px!important;margin:0 0 12px!important;background:transparent!important;padding:0!important;border:0!important}
.prodxs-admin-ui .search-form input{flex:1!important}
.prodxs-admin-ui .filter-tabs{background:transparent!important;border:0!important;padding:0!important;margin:0 0 14px!important;gap:7px!important}
.prodxs-admin-ui .filter-tab{font-size:12px!important;padding:8px 14px!important;border-radius:7px!important;background:#fff!important;border:1px solid #cfdaea!important;color:#53657c!important}
.prodxs-admin-ui .filter-tab.active{background:#1769e0!important;color:#fff!important;border-color:#1769e0!important}
.prodxs-admin-ui .member-create-toolbar{margin:0 0 14px!important;display:flex!important;justify-content:flex-end!important}
.prodxs-admin-ui .member-create-toolbar .btn-primary{background:#1769e0!important}

/* General tables */
.prodxs-admin-ui .table-responsive,.prodxs-admin-ui .member-table-scroll,.prodxs-admin-ui .transactions-table-wrap{background:#fff!important;border-radius:10px!important}
.prodxs-admin-ui .data-table,.prodxs-admin-ui .member-data-table,.prodxs-admin-ui .transactions-table{
  background:#fff!important;color:#243750!important;border-color:#d9e3ee!important;font-size:12.5px!important;
}
.prodxs-admin-ui .data-table th,.prodxs-admin-ui .member-data-table thead th,.prodxs-admin-ui .transactions-table th{
  background:#eaf3ff!important;color:#25496f!important;border-bottom:1px solid #cddceb!important;
  font-size:11.5px!important;font-weight:800!important;padding:11px 10px!important;text-transform:none!important;letter-spacing:0!important;
}
.prodxs-admin-ui .data-table td,.prodxs-admin-ui .member-data-table tbody td,.prodxs-admin-ui .transactions-table td{
  color:#2d415c!important;border-bottom:1px solid #e6edf5!important;padding:10px!important;font-size:12px!important;line-height:1.45!important;
}
.prodxs-admin-ui .data-table tbody tr:nth-child(even),.prodxs-admin-ui .member-data-table tbody tr:nth-child(even){background:#f8fbff!important}
.prodxs-admin-ui .data-table tbody tr:hover,.prodxs-admin-ui .member-data-table tbody tr:hover{background:#edf6ff!important}
.prodxs-admin-ui .member-data-table td:nth-child(5) strong{color:#223955!important;font-size:12px!important}
.prodxs-admin-ui .member-data-table td:nth-child(6) strong{color:#0f9f5d!important;font-size:12px!important}
.prodxs-admin-ui .member-id-note{font-size:10px!important;color:#7c8da3!important}
.prodxs-admin-ui .member-data-table select{min-height:32px!important;font-size:11px!important;padding:5px 8px!important}
.prodxs-admin-ui .small-input{max-width:105px!important;min-height:32px!important;font-size:11px!important;padding:6px 8px!important}
.prodxs-admin-ui .edit-member-btn{background:#1769e0!important;font-size:11px!important;padding:6px 9px!important}

/* Transactions keep deposit/withdraw semantics, but readable on white UI */
.prodxs-admin-ui .transactions-table-wrap{border:1px solid #d9e3ee!important;box-shadow:0 3px 14px rgba(39,76,119,.05)!important}
.prodxs-admin-ui .transactions-table tbody tr.txn-row.txn-deposit{background:#effbf5!important;box-shadow:inset 4px 0 0 #19a665!important}
.prodxs-admin-ui .transactions-table tbody tr.txn-row.txn-withdraw{background:#fff3f3!important;box-shadow:inset 4px 0 0 #e1545f!important}
.prodxs-admin-ui .transactions-table tbody tr.txn-row.txn-deposit td,.prodxs-admin-ui .transactions-table tbody tr.txn-row.txn-withdraw td{color:#2d415c!important;border-bottom-color:#e4ebf3!important}
.prodxs-admin-ui .transactions-table tbody tr.txn-row:hover{filter:none!important;background:#eaf4ff!important}

/* Statuses */
.prodxs-admin-ui .form-success{font-size:12.5px!important;background:#eefbf4!important;color:#157c4b!important;border-color:#bde8d0!important;border-radius:8px!important;padding:11px 13px!important}
.prodxs-admin-ui .form-error{font-size:12.5px!important;background:#fff2f2!important;color:#bd3540!important;border-color:#f0c4c8!important;border-radius:8px!important;padding:11px 13px!important}
.prodxs-admin-ui .alert-warning{background:#fff8e8!important;color:#8b650d!important;border-color:#efd999!important}
.prodxs-admin-ui .status-active{background:#eaf9f1!important;color:#12824c!important}.prodxs-admin-ui .status-inactive{background:#eef2f6!important;color:#68778a!important}
.prodxs-admin-ui .status-badge.pending{background:#fff5dc!important;color:#9a6900!important}.prodxs-admin-ui .status-badge.approved{background:#e9f9f0!important;color:#14834c!important}.prodxs-admin-ui .status-badge.rejected{background:#fff0f1!important;color:#c23945!important}

/* Dialogs / internal sections */
.prodxs-admin-ui .member-edit-dialog{background:#fff!important;color:#17243a!important;border:1px solid #d7e2ee!important;box-shadow:0 18px 50px rgba(26,55,90,.18)!important}
.prodxs-admin-ui .member-credit-section,.prodxs-admin-ui .member-network-section,.prodxs-admin-ui .member-password-section,.prodxs-admin-ui .member-commission-section{background:#f5f9ff!important;border-color:#d8e5f2!important}
.prodxs-admin-ui .member-credit-current,.prodxs-admin-ui .member-network-count,.prodxs-admin-ui .member-downline-action,.prodxs-admin-ui .member-commission-grid>div{background:#fff!important;border-color:#d8e3ef!important;color:#2e425e!important}
.prodxs-admin-ui .member-credit-current strong{color:#1769e0!important}

/* Bank chips adjusted for white theme */
.prodxs-admin-ui .bank-auto-logo{background:#edf4fc!important;border-color:#d0dfee!important;color:#315271!important}
.prodxs-admin-ui .agent-chip,.prodxs-admin-ui .member-network-badge{background:#edf4fb!important;border-color:#d2dfec!important;color:#536b84!important}

/* Mobile */
@media(max-width:860px){
  .prodxs-admin-ui .admin-sidebar{width:270px!important}
  .prodxs-admin-ui .mobile-topbar{background:#fff!important;border-bottom:1px solid #d8e3ef!important;color:#17385f!important;box-shadow:0 2px 8px rgba(31,72,125,.08)!important}
  .prodxs-admin-ui .mobile-menu-btn{background:#edf5ff!important;border-color:#cfe0f2!important;color:#1769e0!important}
  .prodxs-admin-ui .mobile-topbar-brand .cmz-logo-cmz{color:#17385f!important}.prodxs-admin-ui .mobile-topbar-brand .cmz-logo-pay{color:#1769e0!important}
  .prodxs-admin-ui .admin-main{padding:16px 12px 36px!important}
}

/* =========================================================
   V33 CMZPAY DEEP NAVY + TRUE DARK MODE + PRODXS MEMBER GRID
   ========================================================= */
body.admin-body.prodxs-admin-ui{
  --cmz-navy:#0b2b55;--cmz-navy-2:#071e3e;--cmz-blue:#174f9f;--cmz-accent:#2f73d9;
  --cmz-bg:#f2f5f9;--cmz-panel:#ffffff;--cmz-panel-2:#f7f9fc;--cmz-ink:#162235;--cmz-muted:#66758a;--cmz-line:#d7e0eb;
  background:var(--cmz-bg)!important;color:var(--cmz-ink)!important;
}
.prodxs-admin-ui .admin-sidebar{background:linear-gradient(180deg,#0b2f5f 0%,#08254b 55%,#061d3c 100%)!important;box-shadow:3px 0 18px rgba(8,37,75,.14)!important}
.prodxs-admin-ui .sidebar-brand{background:#fff!important;color:#0b2f5f!important}
.prodxs-admin-ui .sidebar-brand .cmz-logo-cmz{color:#0b2f5f!important}.prodxs-admin-ui .sidebar-brand .cmz-logo-pay{color:#2f73d9!important}
.prodxs-admin-ui .sidebar-nav>a,.prodxs-admin-ui .sidebar-menu-toggle{color:#d8e7fa!important}
.prodxs-admin-ui .sidebar-nav>a:hover,.prodxs-admin-ui .sidebar-menu-toggle:hover{background:rgba(255,255,255,.075)!important;color:#fff!important}
.prodxs-admin-ui .sidebar-nav>a.active,.prodxs-admin-ui .sidebar-submenu a.active{background:#154e91!important;color:#fff!important;border-left-color:#67a7ff!important;box-shadow:none!important}
.prodxs-admin-ui .sidebar-submenu{background:rgba(0,0,0,.10)!important}.prodxs-admin-ui .sidebar-submenu a{color:#bcd0e9!important}.prodxs-admin-ui .sidebar-submenu a:hover{background:rgba(255,255,255,.06)!important;color:#fff!important}
.prodxs-admin-ui .sidebar-user{background:rgba(0,0,0,.10)!important;color:#fff!important}.prodxs-admin-ui .sidebar-user-role{color:#a9bed8!important}
.prodxs-admin-ui .admin-content-wrap{background:var(--cmz-bg)!important}.prodxs-admin-ui .admin-desktop-topbar{background:var(--cmz-panel)!important;border-color:var(--cmz-line)!important}
.prodxs-admin-ui .admin-main{background:var(--cmz-bg)!important}.prodxs-admin-ui h1{background:transparent!important;border:0!important;padding:8px 0!important;font-size:20px!important;color:var(--cmz-ink)!important}.prodxs-admin-ui h1:before{display:none!important}
.prodxs-admin-ui .card,.prodxs-admin-ui .member-table-card,.prodxs-admin-ui .search-form,.prodxs-admin-ui .filter-tabs{background:var(--cmz-panel)!important;border-color:var(--cmz-line)!important;color:var(--cmz-ink)!important}
.prodxs-admin-ui .btn-primary{background:#1759a9!important}.prodxs-admin-ui .filter-tab.active{background:#1759a9!important;border-color:#1759a9!important}
.prodxs-admin-ui input[type=text],.prodxs-admin-ui input[type=password],.prodxs-admin-ui input[type=tel],.prodxs-admin-ui input[type=number],.prodxs-admin-ui input[type=search],.prodxs-admin-ui input[type=date],.prodxs-admin-ui select{background:var(--cmz-panel)!important;color:var(--cmz-ink)!important;border-color:var(--cmz-line)!important}
.cmz-theme-toggle{border:1px solid var(--cmz-line)!important;background:var(--cmz-panel-2)!important;color:#23476f!important}

/* PRODXS-like member grid */
.prodxs-admin-ui .prodxs-member-list{border-radius:5px!important;overflow:hidden!important;box-shadow:0 4px 16px rgba(15,35,60,.06)!important}
.prodxs-admin-ui .prodxs-member-table{min-width:1320px!important;width:100%!important;table-layout:auto!important;border-collapse:collapse!important}
.prodxs-admin-ui .prodxs-member-table thead th{background:#dfe4ea!important;color:#26374c!important;font-size:10.5px!important;font-weight:700!important;padding:9px 7px!important;border-bottom:1px solid #cbd3dc!important;text-align:center!important;white-space:nowrap!important}
.prodxs-admin-ui .prodxs-member-table tbody td{background:#fff!important;color:#26374c!important;font-size:10.5px!important;padding:8px 7px!important;border-bottom:1px solid #e1e5ea!important;text-align:center!important;white-space:nowrap!important}
.prodxs-admin-ui .prodxs-member-table tbody tr:nth-child(even) td{background:#f2f3f5!important}.prodxs-admin-ui .prodxs-member-table tbody tr:hover td{background:#eaf2fc!important}
.prodxs-admin-ui .px-group-badge{font-weight:700;color:#334155}.prodxs-admin-ui .cell-user strong{display:block;color:#1f3b61!important;font-size:11px}.prodxs-admin-ui .cell-user small{display:block;color:#8a97a6;font-size:8.5px;margin-top:2px}.prodxs-admin-ui .cell-credit strong{color:#d18a00!important}.prodxs-admin-ui .cell-money,.prodxs-admin-ui .cell-number{font-variant-numeric:tabular-nums}.prodxs-admin-ui .member-status-active{color:#10a35a;font-weight:700;font-size:9.5px}.prodxs-admin-ui .member-status-active i{font-size:8px;margin-right:3px}
.prodxs-admin-ui .cell-bank .member-account-cell{justify-content:flex-start!important;text-align:left!important;min-width:120px}.prodxs-admin-ui .cell-bank .m3-bank-badge img{width:20px!important;height:20px!important}.prodxs-admin-ui .cell-bank .m3-bank-badge span:last-child{display:none!important}.prodxs-admin-ui .cell-bank .member-account-cell>span{font-size:9.5px;color:#536174}
.prodxs-admin-ui .member-note{display:inline-flex;border-radius:999px;padding:3px 7px;font-size:8.5px;font-weight:700}.prodxs-admin-ui .member-note.vip{background:#fff4d8;color:#8a6200}.prodxs-admin-ui .member-note.watch{background:#ffeded;color:#b4232c}
.prodxs-admin-ui .member-actions-compact{min-width:142px!important}.prodxs-admin-ui .icon-action{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border:0;background:transparent;color:#233a59!important;text-decoration:none!important;border-radius:4px;padding:0!important;margin:0 1px!important;cursor:pointer;font-size:11px!important;vertical-align:middle}.prodxs-admin-ui .icon-action:hover{background:#dbe9fa!important;color:#0c4d96!important}.prodxs-admin-ui .icon-action.money{color:#19a66a!important}.prodxs-admin-ui .icon-action.network{color:#4a91d9!important}.prodxs-admin-ui .icon-action.history{color:#7d8fa5!important}.prodxs-admin-ui .icon-action.danger{color:#d64545!important}

/* True dark mode */
html[data-theme="dark"] body.admin-body.prodxs-admin-ui{--cmz-bg:#0b111a;--cmz-panel:#111a26;--cmz-panel-2:#162130;--cmz-ink:#e8eef7;--cmz-muted:#93a4b8;--cmz-line:#26364a;background:#0b111a!important;color:#e8eef7!important}
html[data-theme="dark"] .prodxs-admin-ui .sidebar-brand{background:#0c1622!important;border-color:#223248!important}.prodxs-admin-ui .sidebar-brand .cmz-logo-cmz{color:#dbe9fb!important} html[data-theme="dark"] .prodxs-admin-ui .sidebar-brand .cmz-logo-pay{color:#68a8ff!important}
html[data-theme="dark"] .prodxs-admin-ui .admin-content-wrap,html[data-theme="dark"] .prodxs-admin-ui .admin-main{background:#0b111a!important}
html[data-theme="dark"] .prodxs-admin-ui .admin-desktop-topbar,html[data-theme="dark"] .prodxs-admin-ui .card,html[data-theme="dark"] .prodxs-admin-ui .member-table-card,html[data-theme="dark"] .prodxs-admin-ui .search-form,html[data-theme="dark"] .prodxs-admin-ui .filter-tabs{background:#111a26!important;border-color:#26364a!important;color:#e8eef7!important}
html[data-theme="dark"] .prodxs-admin-ui h1,html[data-theme="dark"] .prodxs-admin-ui h2,html[data-theme="dark"] .prodxs-admin-ui label{color:#e8eef7!important}
html[data-theme="dark"] .prodxs-admin-ui input[type=text],html[data-theme="dark"] .prodxs-admin-ui input[type=password],html[data-theme="dark"] .prodxs-admin-ui input[type=tel],html[data-theme="dark"] .prodxs-admin-ui input[type=number],html[data-theme="dark"] .prodxs-admin-ui input[type=search],html[data-theme="dark"] .prodxs-admin-ui input[type=date],html[data-theme="dark"] .prodxs-admin-ui select{background:#0e1722!important;color:#e8eef7!important;border-color:#2d4058!important}
html[data-theme="dark"] .prodxs-admin-ui .filter-tab{background:#121d2a!important;color:#b9c8da!important;border-color:#30435a!important}html[data-theme="dark"] .prodxs-admin-ui .filter-tab.active{background:#245d9f!important;color:#fff!important}
html[data-theme="dark"] .prodxs-admin-ui .prodxs-member-table thead th{background:#1a2635!important;color:#cfe0f4!important;border-color:#304158!important}
html[data-theme="dark"] .prodxs-admin-ui .prodxs-member-table tbody td{background:#111a26!important;color:#cbd6e5!important;border-color:#223247!important}html[data-theme="dark"] .prodxs-admin-ui .prodxs-member-table tbody tr:nth-child(even) td{background:#0e1722!important}html[data-theme="dark"] .prodxs-admin-ui .prodxs-member-table tbody tr:hover td{background:#17283b!important}
html[data-theme="dark"] .prodxs-admin-ui .cell-user strong{color:#83baff!important}html[data-theme="dark"] .prodxs-admin-ui .px-group-badge{color:#b7c9df}html[data-theme="dark"] .prodxs-admin-ui .cell-bank .member-account-cell>span{color:#9fb1c6}html[data-theme="dark"] .prodxs-admin-ui .cell-credit strong{color:#f6b84f!important}
html[data-theme="dark"] .prodxs-admin-ui .icon-action{color:#bcd0e7!important}html[data-theme="dark"] .prodxs-admin-ui .icon-action:hover{background:#24374e!important;color:#fff!important}.cmz-theme-toggle{transition:.15s ease}


/* === V36: responsive member table + neutral action controls === */
@media (min-width:861px){
  body.admin-body.prodxs-admin-ui{--cmz-sidebar-w:218px}
  .prodxs-admin-ui .admin-sidebar{width:var(--cmz-sidebar-w)!important;flex-basis:var(--cmz-sidebar-w)!important}
  .prodxs-admin-ui .admin-content-wrap{margin-left:var(--cmz-sidebar-w)!important;width:calc(100% - var(--cmz-sidebar-w))!important;min-width:0!important}
  .prodxs-admin-ui .admin-desktop-topbar{left:var(--cmz-sidebar-w)!important}
}
.prodxs-admin-ui .admin-main{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
.prodxs-admin-ui .member-table-card{width:100%!important;max-width:100%!important;overflow:hidden!important}
.prodxs-admin-ui .member-table-scroll{width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch}
.prodxs-admin-ui .prodxs-member-table{width:100%!important;min-width:1080px!important;table-layout:auto!important}
.prodxs-admin-ui .prodxs-member-table th,.prodxs-admin-ui .prodxs-member-table td{padding-left:clamp(4px,.45vw,8px)!important;padding-right:clamp(4px,.45vw,8px)!important;font-size:clamp(9px,.72vw,11px)!important}
.prodxs-admin-ui .member-actions-compact{min-width:126px!important;white-space:nowrap!important}
.prodxs-admin-ui button.icon-action.edit-member-btn,.prodxs-admin-ui .icon-action.edit-member-btn{background:transparent!important;background-image:none!important;color:#334b68!important;border:0!important;box-shadow:none!important;width:24px!important;height:24px!important;padding:0!important}
.prodxs-admin-ui button.icon-action.edit-member-btn:hover,.prodxs-admin-ui .icon-action.edit-member-btn:hover{background:#e7eef6!important;color:#123f73!important;box-shadow:none!important}
.prodxs-admin-ui .icon-action{box-shadow:none!important}
html[data-theme="dark"] .prodxs-admin-ui button.icon-action.edit-member-btn,html[data-theme="dark"] .prodxs-admin-ui .icon-action.edit-member-btn{background:transparent!important;color:#b9cbe0!important}
html[data-theme="dark"] .prodxs-admin-ui button.icon-action.edit-member-btn:hover,html[data-theme="dark"] .prodxs-admin-ui .icon-action.edit-member-btn:hover{background:#24374e!important;color:#fff!important}
@media (max-width:1300px) and (min-width:861px){
  body.admin-body.prodxs-admin-ui{--cmz-sidebar-w:198px}
  .prodxs-admin-ui .prodxs-member-table{min-width:1000px!important}
  .prodxs-admin-ui .prodxs-member-table th,.prodxs-admin-ui .prodxs-member-table td{font-size:9px!important;padding:6px 4px!important}
  .prodxs-admin-ui .member-actions-compact{min-width:118px!important}
}
@media (max-width:1080px) and (min-width:861px){
  body.admin-body.prodxs-admin-ui{--cmz-sidebar-w:180px}
  .prodxs-admin-ui .prodxs-member-table{min-width:930px!important}
  .prodxs-admin-ui .prodxs-member-table th:nth-child(13),.prodxs-admin-ui .prodxs-member-table td:nth-child(13){display:none!important}
}

/* === V59: sidebar must SCROLL instead of shrinking/clipping when viewport is short === */
.prodxs-admin-ui .admin-sidebar{
  display:flex!important;
  flex-direction:column!important;
  height:100dvh!important;
  max-height:100dvh!important;
  min-height:0!important;
  overflow:hidden!important;
}
.prodxs-admin-ui .sidebar-brand,
.prodxs-admin-ui .sidebar-user{
  flex:0 0 auto!important;
  min-height:max-content!important;
}
.prodxs-admin-ui .sidebar-nav{
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
  scrollbar-gutter:stable!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(255,255,255,.38) rgba(255,255,255,.06)!important;
}
.prodxs-admin-ui .sidebar-nav::-webkit-scrollbar{width:8px!important}
.prodxs-admin-ui .sidebar-nav::-webkit-scrollbar-track{background:rgba(255,255,255,.05)!important}
.prodxs-admin-ui .sidebar-nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.34)!important;border-radius:10px!important}
.prodxs-admin-ui .sidebar-nav>a,
.prodxs-admin-ui .sidebar-menu-toggle,
.prodxs-admin-ui .sidebar-submenu a{
  flex:0 0 auto!important;
  min-height:44px!important;
  line-height:1.35!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.prodxs-admin-ui .sidebar-submenu{max-height:none!important;overflow:visible!important}
@media(max-height:760px){
  .prodxs-admin-ui .sidebar-brand{padding-top:12px!important;padding-bottom:12px!important}
  .prodxs-admin-ui .sidebar-user{padding-top:10px!important;padding-bottom:10px!important}
}


/* === V60: fixed left sidebar, only menu area scrolls === */
@media (min-width:861px){
  .prodxs-admin-ui .admin-sidebar{
    position:fixed!important;left:0!important;top:0!important;bottom:0!important;
    height:100vh!important;height:100dvh!important;max-height:none!important;
    overflow:hidden!important;z-index:1100!important;
  }
  .prodxs-admin-ui .sidebar-nav{overflow-y:auto!important;overflow-x:hidden!important;min-height:0!important;flex:1 1 0!important;}
  .prodxs-admin-ui .sidebar-brand,.prodxs-admin-ui .sidebar-user{position:relative!important;flex:0 0 auto!important;}
}

/* === V61: TRUE SIDEBAR SCROLL LOCK (brand/footer locked, nav only scrolls) === */
.prodxs-admin-ui .admin-sidebar{
  overflow:hidden!important;
}
.prodxs-admin-ui .sidebar-brand{
  flex:0 0 64px!important;
  min-height:64px!important;
  height:64px!important;
}
.prodxs-admin-ui .sidebar-user{
  flex:0 0 auto!important;
  flex-shrink:0!important;
}
.prodxs-admin-ui .sidebar-nav{
  flex:1 1 0!important;
  min-height:0!important;
  height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  scrollbar-gutter:stable!important;
  overscroll-behavior-y:contain!important;
}
.prodxs-admin-ui .sidebar-nav>a,
.prodxs-admin-ui .sidebar-menu-group,
.prodxs-admin-ui .sidebar-menu-toggle,
.prodxs-admin-ui .sidebar-submenu,
.prodxs-admin-ui .sidebar-submenu>a{
  flex-shrink:0!important;
}
.prodxs-admin-ui .sidebar-menu-group{
  min-height:0!important;
  height:auto!important;
  width:auto!important;
}
.prodxs-admin-ui .sidebar-menu-toggle{
  width:100%!important;
  min-height:44px!important;
  height:auto!important;
}
.prodxs-admin-ui .sidebar-nav>a{
  min-height:44px!important;
  height:auto!important;
}
.prodxs-admin-ui .sidebar-submenu{
  height:auto!important;
}
.prodxs-admin-ui .sidebar-submenu>a{
  min-height:38px!important;
  height:auto!important;
}
@media (min-width:861px){
  body.admin-body.prodxs-admin-ui{overflow-x:hidden!important;}
  .prodxs-admin-ui .admin-sidebar{
    position:fixed!important;
    inset:0 auto 0 0!important;
    height:100vh!important;
    height:100dvh!important;
    max-height:100dvh!important;
  }
}
@media (max-width:860px){
  .prodxs-admin-ui .admin-sidebar{
    height:100vh!important;
    height:100dvh!important;
    max-height:100dvh!important;
  }
  .prodxs-admin-ui .sidebar-nav{height:0!important;}
}


/* === V63: HIGH-CONTRAST TRANSACTION TABLES + OWN STATEMENT + SLIP LOG === */
.prodxs-admin-ui .page-subtitle{margin:-6px 0 14px;color:#52657a!important;font-size:13px}
.prodxs-admin-ui .transactions-table-wrap,
.prodxs-admin-ui .statement-table-wrap{background:#fff!important;border:1px solid #cbd5e1!important;border-radius:10px!important;box-shadow:0 4px 16px rgba(15,23,42,.06)!important}
.prodxs-admin-ui .transactions-table,
.prodxs-admin-ui .cmz-readable-table{background:#fff!important;color:#111827!important}
.prodxs-admin-ui .transactions-table thead th,
.prodxs-admin-ui .cmz-readable-table thead th{background:#e8f0fb!important;color:#10233f!important;border-bottom:1px solid #b9c8dc!important;font-weight:800!important}
.prodxs-admin-ui .transactions-table tbody td,
.prodxs-admin-ui .cmz-readable-table tbody td{background:#fff!important;color:#172033!important;border-bottom:1px solid #dce3ec!important}
.prodxs-admin-ui .transactions-table tbody tr:nth-child(even) td,
.prodxs-admin-ui .cmz-readable-table tbody tr:nth-child(even) td{background:#f7f9fc!important}
.prodxs-admin-ui .transactions-table tbody tr.txn-row.txn-deposit td{background:#f2fbf6!important;color:#14231b!important}
.prodxs-admin-ui .transactions-table tbody tr.txn-row.txn-withdraw td{background:#fff5f5!important;color:#2b1717!important}
.prodxs-admin-ui .transactions-table tbody tr:hover td,
.prodxs-admin-ui .cmz-readable-table tbody tr:hover td{background:#edf5ff!important;filter:none!important}
.prodxs-admin-ui .transactions-table td strong,
.prodxs-admin-ui .cmz-readable-table td strong{color:#111827!important}
.prodxs-admin-ui .transactions-table td small,
.prodxs-admin-ui .cmz-readable-table td small{display:block;margin-top:3px;color:#64748b!important;font-size:10px;line-height:1.35}
.prodxs-admin-ui .transactions-table .customer-bank{background:#e9edf2!important;border:1px solid #c7d0da!important;color:#111827!important}
.prodxs-admin-ui .transactions-table .customer-bank strong,.prodxs-admin-ui .transactions-table .customer-bank span{color:#111827!important}
.prodxs-admin-ui .statement-filter-card{max-width:none!important;display:flex!important;gap:10px!important;align-items:end!important;flex-wrap:wrap!important}
.prodxs-admin-ui .statement-filter-card>div{min-width:155px;flex:0 1 auto}.prodxs-admin-ui .statement-filter-card>div:has(input[type=text]){min-width:220px}.prodxs-admin-ui .statement-filter-card .btn-primary{width:auto!important;margin:0!important;padding:10px 22px!important}
.prodxs-admin-ui .statement-table{min-width:1180px!important;table-layout:auto!important}.prodxs-admin-ui .slip-log-table{min-width:1380px!important;table-layout:auto!important}
.prodxs-admin-ui .statement-table-wrap{overflow-x:auto!important}
.prodxs-admin-ui .ledger-row.ledger-deposit td:first-child{box-shadow:inset 4px 0 #16a34a}.prodxs-admin-ui .ledger-row.ledger-withdraw td:first-child{box-shadow:inset 4px 0 #dc2626}
.prodxs-admin-ui .amount.plus{color:#087a35!important}.prodxs-admin-ui .amount.minus{color:#c42828!important}
.prodxs-admin-ui .ledger-type,.prodxs-admin-ui .log-chip{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800;white-space:nowrap;border:1px solid transparent}
.prodxs-admin-ui .ledger-type.deposit,.prodxs-admin-ui .log-chip.ok{background:#dcfce7!important;color:#116530!important;border-color:#a7e8bb!important}.prodxs-admin-ui .ledger-type.withdraw,.prodxs-admin-ui .log-chip.bad{background:#fee2e2!important;color:#9f1c1c!important;border-color:#f7b7b7!important}.prodxs-admin-ui .log-chip.warn{background:#fff3cd!important;color:#7a4a00!important;border-color:#f0d78a!important}.prodxs-admin-ui .log-chip.neutral{background:#eef2f7!important;color:#435268!important;border-color:#d3dbe5!important}
.prodxs-admin-ui .empty-cell{text-align:center!important;color:#64748b!important;padding:28px!important}
.prodxs-admin-ui .auto-status-chip{display:inline-flex!important;background:#fff1bf!important;color:#6d4b00!important;border:1px solid #f0d475!important;border-radius:999px!important;padding:3px 7px!important;font-size:10px!important;font-weight:900!important}
html[data-theme="dark"] .prodxs-admin-ui .transactions-table-wrap,html[data-theme="dark"] .prodxs-admin-ui .statement-table-wrap{background:#111a26!important;border-color:#314156!important}
html[data-theme="dark"] .prodxs-admin-ui .transactions-table thead th,html[data-theme="dark"] .prodxs-admin-ui .cmz-readable-table thead th{background:#1b2b3f!important;color:#e8f2ff!important;border-color:#3a4b61!important}
html[data-theme="dark"] .prodxs-admin-ui .transactions-table tbody td,html[data-theme="dark"] .prodxs-admin-ui .cmz-readable-table tbody td{background:#111a26!important;color:#e5edf7!important;border-color:#28384d!important}
html[data-theme="dark"] .prodxs-admin-ui .transactions-table tbody tr:nth-child(even) td,html[data-theme="dark"] .prodxs-admin-ui .cmz-readable-table tbody tr:nth-child(even) td{background:#0e1722!important}
html[data-theme="dark"] .prodxs-admin-ui .transactions-table tbody tr.txn-row.txn-deposit td{background:#10251d!important;color:#e5edf7!important}html[data-theme="dark"] .prodxs-admin-ui .transactions-table tbody tr.txn-row.txn-withdraw td{background:#2a1719!important;color:#e5edf7!important}
html[data-theme="dark"] .prodxs-admin-ui .transactions-table td strong,html[data-theme="dark"] .prodxs-admin-ui .cmz-readable-table td strong{color:#f2f6fb!important}


/* === V63.2: TRANSACTIONS READABILITY + TRUSTED SOURCE CHECK === */
.prodxs-admin-ui .transactions-table-wrap{overflow-x:auto!important;overflow-y:visible!important;border:1px solid #aebed0!important;border-radius:12px!important;background:#fff!important}
.prodxs-admin-ui .transactions-table{width:100%!important;min-width:1120px!important;table-layout:auto!important;border-collapse:separate!important;border-spacing:0!important}
.prodxs-admin-ui .transactions-table th{background:#dce8f6!important;color:#0b1f36!important;font-size:12.5px!important;line-height:1.35!important;font-weight:900!important;padding:11px 10px!important;border-bottom:1px solid #9fb2c9!important;white-space:nowrap!important}
.prodxs-admin-ui .transactions-table td{font-size:13px!important;line-height:1.45!important;padding:11px 10px!important;color:#101828!important;border-bottom:1px solid #cfd9e5!important;overflow:visible!important}
.prodxs-admin-ui .transactions-table td strong{font-size:13.5px!important;font-weight:900!important;color:#0b1728!important}
.prodxs-admin-ui .transactions-table td small{font-size:11.5px!important;line-height:1.45!important;color:#475569!important}
.prodxs-admin-ui .transactions-table tbody tr.txn-row.txn-deposit td{background:#f2fbf6!important;color:#10231a!important}
.prodxs-admin-ui .transactions-table tbody tr.txn-row.txn-withdraw td{background:#fff3f3!important;color:#2b1515!important}
.prodxs-admin-ui .transactions-table .customer-bank{min-width:180px!important;padding:8px 10px!important;background:#e9eef5!important;border:1px solid #b9c6d6!important}
.prodxs-admin-ui .transactions-table .customer-bank strong{font-size:11.5px!important}.prodxs-admin-ui .transactions-table .customer-bank span{font-size:12.5px!important}
.prodxs-admin-ui .transactions-table .slip-button,.prodxs-admin-ui .transactions-table .channel-badge,.prodxs-admin-ui .transactions-table .type-badge,.prodxs-admin-ui .transactions-table .status-badge{font-size:11.5px!important;line-height:1.2!important;padding:6px 8px!important;font-weight:900!important}
.prodxs-admin-ui .transactions-table .inline-form{min-width:88px!important;gap:6px!important}.prodxs-admin-ui .transactions-table .inline-form .btn-small{font-size:11.5px!important;min-height:34px!important}
.prodxs-admin-ui .auto-status-chip{font-size:11px!important;padding:4px 8px!important;margin-top:5px!important}
.prodxs-admin-ui .source-check-chip{display:inline-flex!important;align-items:center!important;width:max-content!important;margin-top:5px!important;padding:4px 7px!important;border-radius:999px!important;font-size:10.5px!important;font-weight:900!important;white-space:nowrap!important}
.prodxs-admin-ui .source-check-chip.ok{background:#d8f8e5!important;color:#075d31!important;border:1px solid #8ed9ad!important}
@media (max-width:860px){
  .prodxs-admin-ui .transactions-table-wrap.desktop-only{display:none!important}
  .prodxs-admin-ui .txn-card{background:#fff!important;border:1px solid #b8c6d6!important;border-radius:14px!important;box-shadow:0 4px 14px rgba(15,23,42,.07)!important;padding:14px!important}
  .prodxs-admin-ui .txn-card-row{padding:9px 0!important;border-bottom:1px solid #e0e7ef!important;gap:12px!important}
  .prodxs-admin-ui .txn-card-row>span:first-child{font-size:12px!important;font-weight:800!important;color:#526175!important}
  .prodxs-admin-ui .txn-card-row strong,.prodxs-admin-ui .txn-card-row>a{font-size:14px!important;line-height:1.45!important;color:#111827!important}
  .prodxs-admin-ui .txn-card .slip-button,.prodxs-admin-ui .txn-card .status-badge,.prodxs-admin-ui .txn-card .type-badge{font-size:12.5px!important;padding:7px 10px!important}
  .prodxs-admin-ui .txn-card-actions .btn-small{min-height:42px!important;font-size:14px!important}
}
html[data-theme="dark"] .prodxs-admin-ui .transactions-table th{background:#20344c!important;color:#f4f8ff!important;border-color:#52677f!important}
html[data-theme="dark"] .prodxs-admin-ui .transactions-table td{color:#f0f5fb!important;border-color:#34475d!important}
html[data-theme="dark"] .prodxs-admin-ui .transactions-table .customer-bank{background:#1d2b3b!important;border-color:#4d6178!important}
html[data-theme="dark"] .prodxs-admin-ui .transactions-table .customer-bank strong,html[data-theme="dark"] .prodxs-admin-ui .transactions-table .customer-bank span{color:#f1f5f9!important}
html[data-theme="dark"] .prodxs-admin-ui .txn-card{background:#121d2a!important;border-color:#3b5068!important}
html[data-theme="dark"] .prodxs-admin-ui .txn-card-row{border-color:#2e4054!important}
html[data-theme="dark"] .prodxs-admin-ui .txn-card-row>span:first-child{color:#aebed0!important}
html[data-theme="dark"] .prodxs-admin-ui .txn-card-row strong,html[data-theme="dark"] .prodxs-admin-ui .txn-card-row>a{color:#f3f6fa!important}

/* V63 notify badge fix: visible red numeric badge on topbar ฝาก/ถอน */
.prodxs-topbar-links .prodxs-notify-link{position:relative!important;display:inline-flex!important;align-items:center!important;gap:5px!important;overflow:visible!important;padding-right:8px!important}
.prodxs-menu-badge{display:none!important}
.prodxs-menu-badge.show,#m3-deposit-count.show,#m3-withdraw-count.show{display:inline-flex!important;position:absolute!important;top:-10px!important;right:-9px!important;align-items:center!important;justify-content:center!important;min-width:20px!important;height:20px!important;padding:0 5px!important;margin:0!important;border-radius:999px!important;background:#ef1b2d!important;color:#fff!important;border:2px solid #fff!important;box-shadow:0 2px 8px rgba(239,27,45,.58)!important;font-size:10px!important;font-weight:900!important;line-height:16px!important;z-index:999!important;animation:m3TopNotifyPulse .85s ease-in-out infinite!important;transform-origin:center!important}
@keyframes m3TopNotifyPulse{0%,100%{transform:translateY(0) scale(1);opacity:1}35%{transform:translateY(-4px) scale(1.18);opacity:.75}60%{transform:translateY(0) scale(1.07);opacity:1}}
@media(max-width:700px){.prodxs-menu-badge.show,#m3-deposit-count.show,#m3-withdraw-count.show{top:-9px!important;right:-7px!important;min-width:19px!important;height:19px!important;font-size:10px!important}}
@media(prefers-reduced-motion:reduce){.prodxs-menu-badge.show{animation:none!important}}

/* Audit Logs — high contrast/readable UI */
.audit-filter-bar{margin:14px 0 18px}
.audit-filter-bar .filter-tab{background:#fff;color:#17324d;border:1px solid #cbd8e6;font-weight:700;box-shadow:0 1px 2px rgba(15,35,55,.04)}
.audit-filter-bar .filter-tab.active{background:#1769d2;color:#fff;border-color:#1769d2}
.audit-list{gap:14px}
.audit-item{background:#fff!important;border:1px solid #cbd8e6!important;border-radius:12px;box-shadow:0 2px 8px rgba(15,35,55,.06);color:#14283b!important;overflow:hidden}
.audit-item.audit-plus{border-left:5px solid #16a765!important}
.audit-item.audit-minus{border-left:5px solid #e34242!important}
.audit-time{background:#f4f8fc;border-right:1px solid #d7e2ed!important;color:#52677c!important;padding:16px}
.audit-time strong{color:#16324a!important;font-size:14px;font-weight:800}
.audit-time span{color:#647b91!important;font-size:12px}
.audit-main{padding:16px 18px;background:#fff;color:#14283b}
.audit-title-row{padding-bottom:9px;border-bottom:1px solid #e5edf5;margin-bottom:10px}
.audit-title-row>strong{color:#102b43!important;font-size:16px;font-weight:800}
.audit-actor{color:#536c83!important;font-size:13px;font-weight:600}
.audit-member{color:#28445e!important;font-size:13.5px;margin-bottom:12px}
.audit-member b{color:#0c5faf!important;font-size:14px}
.audit-member span,.audit-member small{color:#657d92!important}
.audit-credit-grid{gap:10px}
.audit-credit-grid>div{background:#f7f9fc!important;border:1px solid #cfdbe7!important;border-radius:9px;padding:10px 12px;min-height:58px;justify-content:center}
.audit-credit-grid span{font-size:12px;color:#597087!important;font-weight:700;margin-bottom:2px}
.audit-credit-grid b{font-size:15px;color:#152f46!important;font-weight:800}
.audit-credit-grid .text-success{color:#008f4c!important}
.audit-credit-grid .text-danger{color:#d3202f!important}
.audit-note{margin-top:10px;padding:10px 12px;background:#fff8df!important;border:1px solid #f1d47b;color:#614d11!important;border-radius:8px;font-size:13px;font-weight:600}
.audit-raw{margin-top:10px;padding:10px 12px;background:#f2f6fa!important;border:1px solid #d7e2ec;color:#3d566d!important;border-radius:8px;font-size:12.5px;line-height:1.55;word-break:break-word}
.audit-pagination .filter-tab{background:#fff;color:#17324d;border:1px solid #cbd8e6;font-weight:700}
.audit-pagination .filter-tab.active{background:#1769d2;color:#fff;border-color:#1769d2}
@media(max-width:800px){
  .audit-item{grid-template-columns:1fr!important}
  .audit-time{border-right:0!important;border-bottom:1px solid #d7e2ed!important;padding:11px 13px;flex-direction:row;gap:10px;justify-content:space-between}
  .audit-main{padding:13px}
  .audit-title-row{gap:5px}
  .audit-credit-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .audit-credit-grid>div{min-height:62px;padding:9px 10px}
  .audit-credit-grid b{font-size:14px}
}
@media(max-width:430px){
  .audit-filter-bar{gap:6px}
  .audit-filter-bar .filter-tab{padding:8px 10px;font-size:13px}
  .audit-credit-grid{grid-template-columns:1fr 1fr}
  .audit-time{font-size:11.5px}
  .audit-title-row>strong{font-size:15px}
  .audit-actor{font-size:12px}
}

/* Dashboard date filter: one range controls all summary cards, chart and Top 10 */
.dashboard-range-toolbar{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:0 0 16px;padding:14px 16px;background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:0 3px 12px rgba(31,55,86,.055)}
.dashboard-range-title{display:flex;flex-direction:column;gap:3px;margin-right:auto;min-width:220px}.dashboard-range-title strong{font-size:14px;color:var(--text)}.dashboard-range-title span{font-size:11px;color:var(--text-2)}
.dashboard-range-toolbar .chart-range-field label{font-size:11px!important}.dashboard-range-toolbar .chart-range-field input{width:150px!important;min-height:38px!important;height:38px!important}.dashboard-range-toolbar .btn-primary{height:38px!important;padding:7px 16px!important;margin:0!important;white-space:nowrap}
.dashboard-range-current{width:100%;font-size:12px;color:var(--text-2);padding-top:2px}.dashboard-range-current strong{color:var(--text)}
@media(max-width:760px){.dashboard-range-toolbar{align-items:stretch;padding:12px}.dashboard-range-title{width:100%;margin-right:0}.dashboard-range-toolbar .chart-range-field{flex:1;min-width:135px}.dashboard-range-toolbar .chart-range-field input{width:100%!important}.dashboard-range-toolbar .btn-primary{width:100%}}

/* === CMZPAY Members: mobile readability/UI refresh (2026-08-15) === */
@media (max-width: 640px) {
  .prodxs-admin-ui .admin-main h1 {
    font-size: 20px !important;
    line-height: 1.3 !important;
    margin: 8px 0 16px !important;
    color: #111827 !important;
  }

  .prodxs-admin-ui .member-create-toolbar {
    margin: 0 0 12px !important;
  }
  .prodxs-admin-ui .member-create-toolbar .btn-primary {
    width: 100% !important;
    min-height: 44px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    box-shadow: 0 5px 14px rgba(37,99,235,.18) !important;
  }

  .prodxs-admin-ui .search-form {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) 68px !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 10px !important;
  }
  .prodxs-admin-ui .search-form input {
    width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    color: #172033 !important;
    background: #fff !important;
    border: 1px solid #d7dee8 !important;
    border-radius: 9px !important;
  }
  .prodxs-admin-ui .search-form button {
    height: 42px !important;
    padding: 0 10px !important;
    border-radius: 9px !important;
    font-weight: 700 !important;
  }

  .prodxs-admin-ui .filter-tabs {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .prodxs-admin-ui .filter-tab {
    min-width: 0 !important;
    padding: 8px 4px !important;
    text-align: center !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
  }

  .prodxs-admin-ui .member-card-list {
    gap: 10px !important;
    margin-top: 0 !important;
  }
  .prodxs-admin-ui .member-mobile-card {
    background: #ffffff !important;
    color: #172033 !important;
    border: 1px solid #dbe3ed !important;
    border-radius: 14px !important;
    padding: 0 !important;
    box-shadow: 0 4px 16px rgba(15,23,42,.07) !important;
    overflow: hidden !important;
  }
  .prodxs-admin-ui .member-mobile-head {
    align-items: center !important;
    padding: 13px 14px !important;
    border-bottom: 1px solid #e7edf4 !important;
    background: #f7faff !important;
  }
  .prodxs-admin-ui .member-mobile-head > div {
    gap: 2px !important;
  }
  .prodxs-admin-ui .member-mobile-head small {
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
  }
  .prodxs-admin-ui .member-mobile-head > div > strong {
    color: #1d4ed8 !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
  }
  .prodxs-admin-ui .member-mobile-balance {
    color: #059669 !important;
    font-size: 16px !important;
    white-space: nowrap !important;
  }

  .prodxs-admin-ui .member-mobile-grid {
    margin: 0 !important;
    padding: 4px 14px !important;
  }
  .prodxs-admin-ui .member-mobile-grid > div {
    min-height: 36px !important;
    align-items: center !important;
    padding: 9px 0 !important;
    border-bottom: 1px solid #edf1f5 !important;
  }
  .prodxs-admin-ui .member-mobile-grid > div:last-child {
    border-bottom: 0 !important;
  }
  .prodxs-admin-ui .member-mobile-grid span {
    flex: 0 0 86px !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }
  .prodxs-admin-ui .member-mobile-grid strong {
    color: #172033 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
  }
  .prodxs-admin-ui .member-mobile-bank strong {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 7px !important;
    flex-wrap: wrap !important;
  }
  .prodxs-admin-ui .member-mobile-bank .m3-bank-badge {
    min-width: 0 !important;
    gap: 5px !important;
  }
  .prodxs-admin-ui .member-mobile-bank .m3-bank-badge img {
    width: 24px !important;
    height: 24px !important;
  }
  .prodxs-admin-ui .member-mobile-bank em {
    color: #172033 !important;
    font-style: normal !important;
    font-weight: 700 !important;
  }

  .prodxs-admin-ui .member-mobile-group-form {
    margin: 0 !important;
    padding: 10px 14px 4px !important;
    border-top: 1px solid #edf1f5 !important;
  }
  .prodxs-admin-ui .member-mobile-group-form label {
    display: grid !important;
    grid-template-columns: 86px minmax(0,1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 600 !important;
  }
  .prodxs-admin-ui .member-mobile-group-form select {
    width: 100% !important;
    height: 40px !important;
    margin: 0 !important;
    color: #172033 !important;
    background: #fff !important;
    border: 1px solid #cfd8e4 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
  }

  .prodxs-admin-ui .member-mobile-actions {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 10px 14px 4px !important;
  }
  .prodxs-admin-ui .member-mobile-actions .btn-small {
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
  }

  .prodxs-admin-ui .member-mobile-balance-form {
    grid-template-columns: minmax(0,1fr) 92px !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 6px 14px 14px !important;
  }
  .prodxs-admin-ui .member-mobile-balance-form input {
    height: 40px !important;
    min-width: 0 !important;
    color: #172033 !important;
    background: #fff !important;
    border: 1px solid #cfd8e4 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
  }
  .prodxs-admin-ui .member-mobile-balance-form button {
    min-height: 40px !important;
    border-radius: 8px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
  }

  html[data-theme="dark"] .prodxs-admin-ui .member-mobile-card {
    background: #111a26 !important;
    color: #e8eef7 !important;
    border-color: #2b3b50 !important;
  }
  html[data-theme="dark"] .prodxs-admin-ui .member-mobile-head {
    background: #152133 !important;
    border-color: #2b3b50 !important;
  }
  html[data-theme="dark"] .prodxs-admin-ui .member-mobile-head > div > strong,
  html[data-theme="dark"] .prodxs-admin-ui .member-mobile-grid strong,
  html[data-theme="dark"] .prodxs-admin-ui .member-mobile-bank em {
    color: #f1f5f9 !important;
  }
  html[data-theme="dark"] .prodxs-admin-ui .member-mobile-grid > div,
  html[data-theme="dark"] .prodxs-admin-ui .member-mobile-group-form {
    border-color: #26364a !important;
  }
}


/* v63M mobile deposit/withdraw notify UI */
.mobile-topbar-notify{display:none}
@media(max-width:700px){
  .mobile-topbar{gap:9px}
  .mobile-topbar-brand{margin-right:auto}
  .mobile-topbar-notify{display:flex;align-items:center;gap:7px;margin-left:auto}
  .mobile-notify-link{position:relative;display:flex;align-items:center;justify-content:center;gap:5px;min-height:38px;padding:0 10px;border:1px solid #cfe0f5;border-radius:10px;background:#fff;color:#184f8f;text-decoration:none;font-size:12px;font-weight:800;box-shadow:0 2px 7px rgba(15,23,42,.05)}
  .mobile-notify-link i{font-size:14px}
  .mobile-notify-link .prodxs-menu-badge{position:absolute}
}
@media(max-width:390px){
  .mobile-notify-link{min-width:38px;padding:0 8px}
  .mobile-notify-link span{display:none}
}

/* === v63M final mobile UI refinements (2026-08-15) === */
@media (max-width:860px){
  /* Lock the complete mobile admin header while scrolling. */
  .prodxs-admin-ui .mobile-topbar{
    position:fixed!important;top:0!important;left:0!important;right:0!important;z-index:120!important;
    min-height:64px!important;padding:10px 14px!important;background:#fff!important;border-bottom:1px solid #d8e3ef!important;
    box-shadow:0 2px 8px rgba(31,72,125,.08)!important;
  }
  .prodxs-admin-ui .admin-desktop-topbar{
    position:fixed!important;top:64px!important;left:0!important;right:0!important;z-index:115!important;
    min-height:52px!important;height:52px!important;padding:7px 14px!important;background:#fff!important;border:0!important;border-bottom:1px solid #d8e3ef!important;
    box-shadow:0 2px 8px rgba(31,72,125,.06)!important;justify-content:flex-start!important;
  }
  .prodxs-admin-ui .prodxs-topbar-links{display:none!important}
  .prodxs-admin-ui .prodxs-topbar-tools{display:flex!important;gap:8px!important}
  .prodxs-admin-ui .admin-content-wrap{padding-top:116px!important}
  .prodxs-admin-ui .admin-main{padding-top:18px!important}
  .prodxs-admin-ui .admin-sidebar{z-index:150!important}
  .prodxs-admin-ui .sidebar-overlay{z-index:140!important}

  /* Better native date controls on phones. */
  .prodxs-admin-ui input[type="date"]{
    min-width:0!important;width:100%!important;height:46px!important;min-height:46px!important;
    padding:0 10px!important;font-size:14px!important;line-height:46px!important;border-radius:10px!important;
    background:#fff!important;color:#0f172a!important;border:1px solid #cbd8e6!important;
  }

  /* Dashboard header + date range: compact, balanced and readable. */
  .prodxs-admin-ui .dash-topbar{margin:0 0 10px!important;min-height:40px!important;gap:10px!important}
  .prodxs-admin-ui .dash-title h1{font-size:21px!important;margin:0 0 2px!important;line-height:1.2!important}
  .prodxs-admin-ui .dash-subtitle{font-size:12px!important;line-height:1.3!important}
  .prodxs-admin-ui .live-badge{margin-left:auto!important;padding:6px 9px!important;font-size:11px!important;white-space:nowrap!important}
  .prodxs-admin-ui .dashboard-range-toolbar{
    display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;padding:12px!important;border-radius:12px!important;
  }
  .prodxs-admin-ui .dashboard-range-title{grid-column:1/-1!important;width:auto!important;min-width:0!important;margin:0 0 2px!important}
  .prodxs-admin-ui .dashboard-range-title strong{font-size:14px!important}
  .prodxs-admin-ui .dashboard-range-title span{font-size:11px!important}
  .prodxs-admin-ui .dashboard-range-toolbar .chart-range-field{min-width:0!important;width:100%!important}
  .prodxs-admin-ui .dashboard-range-toolbar .chart-range-field label{margin:0 0 5px!important;font-size:11px!important}
  .prodxs-admin-ui .dashboard-range-toolbar .chart-range-field input{width:100%!important;height:46px!important;min-height:46px!important}
  .prodxs-admin-ui .dashboard-range-toolbar .btn-primary{grid-column:1/-1!important;width:100%!important;height:43px!important;margin:0!important}
  .prodxs-admin-ui .dashboard-range-current{grid-column:1/-1!important;padding-top:0!important;font-size:11px!important}

  /* Member mobile cards: no editable 0.00 field under each member. */
  .prodxs-admin-ui .member-mobile-balance-form{display:none!important}
}

@media (max-width:700px){
  /* Wallet: four proportional summary cards instead of one oversized row. */
  .wallet-page .wallet-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .wallet-page .wallet-stat,.wallet-page .wallet-stat.wallet-flow{grid-column:auto!important;min-height:96px!important;padding:13px 12px!important}
  .wallet-page .wallet-stat .stat-label{font-size:11px!important;line-height:1.35!important}
  .wallet-page .wallet-stat .stat-value{font-size:20px!important;line-height:1.15!important}
  .wallet-page .wallet-stat.wallet-flow .stat-value{font-size:16px!important;white-space:nowrap!important}
  .wallet-page .wallet-filter{grid-template-columns:minmax(0,1fr) 116px!important;gap:8px!important}
  .wallet-page .wallet-filter input{grid-column:1/-1!important}
  .wallet-page .wallet-filter select{min-width:0!important}
  .wallet-page .wallet-filter .btn-primary{min-width:0!important;padding-left:10px!important;padding-right:10px!important}
}
@media (max-width:390px){
  .wallet-page .wallet-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .wallet-page .wallet-stat,.wallet-page .wallet-stat.wallet-flow{grid-column:auto!important;min-height:90px!important}
  .wallet-page .wallet-stat.wallet-flow .stat-value{font-size:14px!important}
}

/* === v63M mobile UI polish: dates + transaction toolbar (2026-08-15) === */
@media (max-width: 700px){
  /* Consistent date/date-time controls across admin mobile pages. */
  .prodxs-admin-ui input[type="date"],
  .prodxs-admin-ui input[type="datetime-local"]{
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:44px!important;
    min-height:44px!important;
    padding:0 10px!important;
    margin:0!important;
    border:1px solid #cbd8e6!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#0f172a!important;
    font-size:13px!important;
    line-height:42px!important;
    text-align:center!important;
    box-shadow:none!important;
  }
  .prodxs-admin-ui input[type="date"]::-webkit-date-and-time-value,
  .prodxs-admin-ui input[type="datetime-local"]::-webkit-date-and-time-value{
    text-align:center!important;
    min-height:1.2em!important;
  }
  .prodxs-admin-ui input[type="date"]::-webkit-calendar-picker-indicator,
  .prodxs-admin-ui input[type="datetime-local"]::-webkit-calendar-picker-indicator{
    margin-left:4px!important;
    opacity:.68!important;
  }

  /* Dashboard range stays fully inside the phone width. */
  .prodxs-admin-ui .dashboard-range-toolbar{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    overflow:hidden!important;
  }
  .prodxs-admin-ui .dashboard-range-toolbar .chart-range-field{
    min-width:0!important;
    max-width:100%!important;
  }
  .prodxs-admin-ui .dashboard-range-toolbar .chart-range-field input{
    min-width:0!important;
    max-width:100%!important;
  }

  /* Slip-log and statement filters: balanced two-column date row. */
  .prodxs-admin-ui .statement-filter-card{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:10px!important;
    align-items:end!important;
    overflow:hidden!important;
  }
  .prodxs-admin-ui .statement-filter-card>div{
    min-width:0!important;
    width:100%!important;
  }
  .prodxs-admin-ui .statement-filter-card>div label{
    display:block!important;
    margin:0 0 5px!important;
    font-size:11px!important;
  }
  .prodxs-admin-ui .statement-filter-card>div:nth-child(n+3),
  .prodxs-admin-ui .statement-filter-card>button{
    grid-column:auto!important;
  }
  .prodxs-admin-ui .statement-filter-card .btn-primary{
    min-height:42px!important;
    width:100%!important;
  }
}
@media (max-width: 390px){
  .prodxs-admin-ui input[type="date"],
  .prodxs-admin-ui input[type="datetime-local"]{
    padding:0 7px!important;
    font-size:12px!important;
  }
}

/* === Dashboard mobile date-range proportion fix (2026-08-15) === */
@media (max-width:700px){
  .prodxs-admin-ui .dashboard-range-toolbar{
    box-sizing:border-box!important;
    width:100%!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    column-gap:8px!important;
    row-gap:8px!important;
    padding:10px!important;
  }
  .prodxs-admin-ui .dashboard-range-toolbar .chart-range-field{
    box-sizing:border-box!important;
    min-width:0!important;
    width:100%!important;
    overflow:hidden!important;
  }
  .prodxs-admin-ui .dashboard-range-toolbar .chart-range-field label{
    margin:0 0 4px!important;
    font-size:10.5px!important;
    line-height:1.2!important;
  }
  .prodxs-admin-ui .dashboard-range-toolbar .chart-range-field input[type="date"]{
    -webkit-appearance:none!important;
    appearance:none!important;
    box-sizing:border-box!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:42px!important;
    min-height:42px!important;
    padding:0 8px!important;
    border-radius:9px!important;
    font-size:12.5px!important;
    line-height:40px!important;
    text-align:center!important;
  }
  .prodxs-admin-ui .dashboard-range-toolbar .btn-primary{
    height:40px!important;
    min-height:40px!important;
    border-radius:9px!important;
  }
  .prodxs-admin-ui .dashboard-range-current{
    margin-top:0!important;
    font-size:10.5px!important;
    line-height:1.25!important;
  }
}

/* === Transactions mobile control zone refinement (2026-08-15) === */
@media (max-width:700px){
  body.prodxs-admin-ui .summary-bar{
    gap:10px!important;
  }
  body.prodxs-admin-ui .summary-range{
    box-sizing:border-box!important;
    width:100%!important;
    padding:14px!important;
    border:1px solid #d9e3ef!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:0 4px 14px rgba(15,23,42,.045)!important;
    overflow:hidden!important;
  }
  body.prodxs-admin-ui .summary-range>label{
    display:block!important;
    margin:0 0 9px!important;
    color:#52667d!important;
    font-size:12px!important;
    font-weight:800!important;
  }
  body.prodxs-admin-ui .summary-range>div{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr)!important;
    gap:8px!important;
    align-items:center!important;
    width:100%!important;
  }
  body.prodxs-admin-ui .summary-range input[type="date"]{
    -webkit-appearance:none!important;
    appearance:none!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:44px!important;
    min-height:44px!important;
    padding:0 7px!important;
    border:1px solid #cbd8e6!important;
    border-radius:10px!important;
    background:#fff!important;
    font-size:12.5px!important;
    text-align:center!important;
  }
  body.prodxs-admin-ui .summary-range>div>span:first-of-type{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    color:#52667d!important;
    font-size:11px!important;
    font-weight:800!important;
  }
  body.prodxs-admin-ui .summary-range .btn-secondary{
    grid-column:1/-1!important;
    width:100%!important;
    height:40px!important;
    min-height:40px!important;
    margin:2px 0 0!important;
    border-radius:10px!important;
    font-size:12px!important;
    font-weight:800!important;
  }
  body.prodxs-admin-ui .summary-range label[style]{
    grid-column:1/2!important;
    margin:4px 0 0!important;
    color:#52667d!important;
    font-size:11px!important;
    font-weight:800!important;
  }
  body.prodxs-admin-ui .summary-range select{
    grid-column:2/3!important;
    width:96px!important;
    height:40px!important;
    min-height:40px!important;
    margin:4px 0 0!important;
    justify-self:center!important;
    border-radius:10px!important;
    text-align:center!important;
  }
  body.prodxs-admin-ui .summary-range select+span{
    grid-column:3/4!important;
    margin-top:4px!important;
    color:#52667d!important;
    font-size:11px!important;
    font-weight:700!important;
  }

  body.prodxs-admin-ui .filter-tabs{
    display:block!important;
    width:100%!important;
    box-sizing:border-box!important;
    margin:12px 0 14px!important;
    padding:12px!important;
    border:1px solid #d9e3ef!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:0 4px 14px rgba(15,23,42,.045)!important;
    overflow:hidden!important;
  }
  body.prodxs-admin-ui .filter-tabs>div:first-child{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:6px!important;
    width:100%!important;
  }
  body.prodxs-admin-ui .filter-tabs .filter-tab{
    display:flex!important;
    min-width:0!important;
    min-height:40px!important;
    padding:7px 3px!important;
    align-items:center!important;
    justify-content:center!important;
    border:1px solid #cfdbea!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#38506a!important;
    font-size:10px!important;
    line-height:1.15!important;
    font-weight:800!important;
    white-space:normal!important;
    text-align:center!important;
    word-break:normal!important;
  }
  body.prodxs-admin-ui .filter-tabs .filter-tab.active{
    border-color:#1769d2!important;
    background:#1769d2!important;
    color:#fff!important;
    box-shadow:0 5px 12px rgba(23,105,210,.18)!important;
  }
  body.prodxs-admin-ui .txn-toolbar-actions{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:7px!important;
    width:100%!important;
    margin-top:9px!important;
    align-items:stretch!important;
  }
  body.prodxs-admin-ui .txn-toolbar-actions .txn-refresh-btn,
  body.prodxs-admin-ui .txn-toolbar-actions #toggleTopupBtn{
    display:flex!important;
    min-width:0!important;
    width:100%!important;
    min-height:40px!important;
    margin:0!important;
    padding:7px 6px!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    border-radius:10px!important;
    font-size:10.5px!important;
    line-height:1.15!important;
    font-weight:800!important;
    white-space:normal!important;
    text-align:center!important;
  }
  body.prodxs-admin-ui .txn-auto-refresh{
    grid-column:1/-1!important;
    display:flex!important;
    width:100%!important;
    min-height:36px!important;
    box-sizing:border-box!important;
    margin:0!important;
    padding:7px 9px!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    border:1px solid #d9e3ef!important;
    border-radius:10px!important;
    background:#f7fafc!important;
    color:#64748b!important;
    font-size:10px!important;
    line-height:1.2!important;
    font-weight:700!important;
    text-align:center!important;
    white-space:normal!important;
  }
  body.prodxs-admin-ui .txn-refresh-dot{
    flex:0 0 auto!important;
    width:7px!important;
    height:7px!important;
  }
}
@media (max-width:390px){
  body.prodxs-admin-ui .summary-range{padding:11px!important}
  body.prodxs-admin-ui .summary-range input[type="date"]{font-size:11.5px!important;padding:0 4px!important}
  body.prodxs-admin-ui .filter-tabs{padding:10px!important}
  body.prodxs-admin-ui .filter-tabs .filter-tab{font-size:9.4px!important;padding-left:2px!important;padding-right:2px!important}
}


/* ===== 2026-08-15 UI refinement: dates / sound active / dark mode / mobile txn toolbar ===== */
/* Sound button: make enabled state unmistakably active on both desktop and mobile. */
.prodxs-admin-ui #m3-sound-toggle[aria-pressed="true"]{
  background:#e8f3ff!important;
  border-color:#8ec5ff!important;
  color:#0b6fd8!important;
  box-shadow:0 0 0 3px rgba(11,111,216,.08)!important;
}
.prodxs-admin-ui #m3-sound-toggle[aria-pressed="false"]{
  background:var(--panel,#fff)!important;
  color:#7f8fa3!important;
  opacity:.78;
}

/* Better, consistent date controls in admin filters. */
.prodxs-admin-ui input[type="date"]{
  min-height:42px;
  border-radius:10px;
  border:1px solid #cbd8e6;
  background:#fff;
  color:#17324d;
  font-weight:650;
  padding:0 12px;
  box-sizing:border-box;
}
.prodxs-admin-ui input[type="date"]::-webkit-calendar-picker-indicator{opacity:.68;cursor:pointer}

/* Refined dark theme: softer navy surfaces, readable cards, controls and tables on PC + mobile. */
html[data-theme="dark"] body.prodxs-admin-ui{
  --bg:#08111d!important;
  --panel:#101b2a!important;
  --panel-2:#162438!important;
  --text:#edf5ff!important;
  --text-2:#9eb0c4!important;
  --line:#2a3e56!important;
  --primary:#2d80e8!important;
  --success:#31c77a!important;
  --danger:#ff6262!important;
  background:linear-gradient(180deg,#08111d 0%,#0b1522 100%)!important;
  color:#edf5ff!important;
}
html[data-theme="dark"] .prodxs-admin-ui .admin-content-wrap,
html[data-theme="dark"] .prodxs-admin-ui .admin-main{background:transparent!important;color:#edf5ff!important}
html[data-theme="dark"] .prodxs-admin-ui .admin-desktop-topbar{
  background:#0d1826!important;border-color:#253950!important;box-shadow:0 2px 10px rgba(0,0,0,.2)!important;
}
html[data-theme="dark"] .prodxs-admin-ui .admin-top-action,
html[data-theme="dark"] .prodxs-admin-ui .prodxs-notify-link,
html[data-theme="dark"] .prodxs-admin-ui .prodxs-admin-user{
  background:#132237!important;border-color:#314a65!important;color:#dbeaff!important;
}
html[data-theme="dark"] .prodxs-admin-ui #m3-sound-toggle[aria-pressed="true"]{
  background:#12345a!important;border-color:#2e83df!important;color:#73b8ff!important;box-shadow:0 0 0 3px rgba(46,131,223,.12)!important;
}
html[data-theme="dark"] .prodxs-admin-ui .card,
html[data-theme="dark"] .prodxs-admin-ui .summary-range,
html[data-theme="dark"] .prodxs-admin-ui .filter-tabs,
html[data-theme="dark"] .prodxs-admin-ui .search-form,
html[data-theme="dark"] .prodxs-admin-ui .member-table-card,
html[data-theme="dark"] .prodxs-admin-ui .statement-filter,
html[data-theme="dark"] .prodxs-admin-ui .log-filter-card,
html[data-theme="dark"] .prodxs-admin-ui .provider-statement-card{
  background:#101b2a!important;border-color:#2a3e56!important;color:#edf5ff!important;box-shadow:0 8px 24px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .prodxs-admin-ui h1,
html[data-theme="dark"] .prodxs-admin-ui h2,
html[data-theme="dark"] .prodxs-admin-ui h3,
html[data-theme="dark"] .prodxs-admin-ui label,
html[data-theme="dark"] .prodxs-admin-ui strong{color:#edf5ff}
html[data-theme="dark"] .prodxs-admin-ui p,
html[data-theme="dark"] .prodxs-admin-ui small,
html[data-theme="dark"] .prodxs-admin-ui .text-muted{color:#9eb0c4!important}
html[data-theme="dark"] .prodxs-admin-ui input,
html[data-theme="dark"] .prodxs-admin-ui select,
html[data-theme="dark"] .prodxs-admin-ui textarea,
html[data-theme="dark"] .prodxs-admin-ui input[type="date"]{
  background:#0b1624!important;border-color:#344c67!important;color:#edf5ff!important;box-shadow:none!important;
}
html[data-theme="dark"] .prodxs-admin-ui input::placeholder,
html[data-theme="dark"] .prodxs-admin-ui textarea::placeholder{color:#71859b!important;opacity:1}
html[data-theme="dark"] .prodxs-admin-ui input[type="date"]::-webkit-calendar-picker-indicator{filter:invert(1) brightness(1.8);opacity:.8}
html[data-theme="dark"] .prodxs-admin-ui .btn-secondary{
  background:#15253a!important;border-color:#36506d!important;color:#dceaff!important;
}
html[data-theme="dark"] .prodxs-admin-ui .btn-secondary:hover{background:#1b3150!important;border-color:#4b6c91!important}
html[data-theme="dark"] .prodxs-admin-ui .filter-tabs .filter-tab{
  background:#132238!important;border-color:#304a66!important;color:#c7d7e9!important;
}
html[data-theme="dark"] .prodxs-admin-ui .filter-tabs .filter-tab.active{
  background:#2374d2!important;border-color:#3388e7!important;color:#fff!important;box-shadow:0 6px 16px rgba(35,116,210,.22)!important;
}
html[data-theme="dark"] .prodxs-admin-ui .txn-auto-refresh{
  background:#0e2031!important;border-color:#2f4b66!important;color:#b7c9da!important;
}
html[data-theme="dark"] .prodxs-admin-ui .txn-refresh-dot{box-shadow:0 0 0 4px rgba(49,199,122,.1)!important}
html[data-theme="dark"] .prodxs-admin-ui .txn-card,
html[data-theme="dark"] .prodxs-admin-ui .log-mobile-card,
html[data-theme="dark"] .prodxs-admin-ui .statement-mobile-card{
  background:#111f30!important;border-color:#30465f!important;color:#eaf2fb!important;box-shadow:0 7px 20px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .prodxs-admin-ui .txn-card-row,
html[data-theme="dark"] .prodxs-admin-ui .log-mobile-card>*{border-color:#2a4058!important}
html[data-theme="dark"] .prodxs-admin-ui .data-table,
html[data-theme="dark"] .prodxs-admin-ui .transactions-table-wrap,
html[data-theme="dark"] .prodxs-admin-ui .statement-table-wrap{background:#101b2a!important;border-color:#2a3f58!important}
html[data-theme="dark"] .prodxs-admin-ui .data-table th{background:#17283d!important;color:#eaf3ff!important;border-color:#344c67!important}
html[data-theme="dark"] .prodxs-admin-ui .data-table td{background:#101b2a!important;color:#dce7f4!important;border-color:#263b52!important}

@media (max-width:700px){
  /* Date range: two balanced fields, connector centered, actions below. */
  body.prodxs-admin-ui .summary-range{
    padding:14px!important;border-radius:15px!important;overflow:hidden!important;
  }
  body.prodxs-admin-ui .summary-range>label:first-child{
    display:block!important;margin:0 0 10px!important;font-size:12px!important;font-weight:800!important;color:#53687f!important;
  }
  body.prodxs-admin-ui .summary-range>div{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr)!important;
    gap:8px!important;align-items:center!important;width:100%!important;
  }
  body.prodxs-admin-ui .summary-range input[type="date"]{
    width:100%!important;min-width:0!important;height:46px!important;min-height:46px!important;
    padding:0 8px!important;border-radius:11px!important;font-size:12px!important;text-align:center!important;
  }
  body.prodxs-admin-ui .summary-range input[type="date"]+span{
    margin:0!important;text-align:center!important;font-size:11px!important;font-weight:800!important;color:#5e7186!important;
  }
  body.prodxs-admin-ui .summary-range button[type="submit"]{
    grid-column:1/-1!important;width:100%!important;min-height:42px!important;margin:2px 0 0!important;border-radius:10px!important;
  }
  body.prodxs-admin-ui .summary-range button[type="submit"]+label{
    grid-column:1/2!important;margin:6px 0 0!important;align-self:center!important;font-size:11px!important;
  }
  body.prodxs-admin-ui .summary-range select{
    grid-column:2/3!important;width:100%!important;min-width:0!important;height:40px!important;margin:6px 0 0!important;
  }
  body.prodxs-admin-ui .summary-range select+span{
    grid-column:3/4!important;margin:6px 0 0!important;align-self:center!important;font-size:11px!important;
  }

  /* Transaction toolbar: credit button beside refresh; auto refresh spans the row underneath. */
  body.prodxs-admin-ui .txn-toolbar-actions{
    display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;width:100%!important;
  }
  body.prodxs-admin-ui .txn-toolbar-actions .txn-refresh-btn{grid-column:1!important;grid-row:1!important;order:1!important}
  body.prodxs-admin-ui .txn-toolbar-actions #toggleTopupBtn{grid-column:2!important;grid-row:1!important;order:2!important}
  body.prodxs-admin-ui .txn-toolbar-actions .txn-auto-refresh{grid-column:1/-1!important;grid-row:2!important;order:3!important}
  body.prodxs-admin-ui .txn-toolbar-actions .txn-refresh-btn,
  body.prodxs-admin-ui .txn-toolbar-actions #toggleTopupBtn{
    min-height:42px!important;font-size:11px!important;border-radius:10px!important;padding:8px 6px!important;
  }

  html[data-theme="dark"] .prodxs-admin-ui .summary-range,
  html[data-theme="dark"] .prodxs-admin-ui .filter-tabs{
    background:#101b2a!important;border-color:#2e435b!important;box-shadow:0 7px 18px rgba(0,0,0,.16)!important;
  }
  html[data-theme="dark"] .prodxs-admin-ui .summary-range>label:first-child,
  html[data-theme="dark"] .prodxs-admin-ui .summary-range input[type="date"]+span,
  html[data-theme="dark"] .prodxs-admin-ui .summary-range button[type="submit"]+label,
  html[data-theme="dark"] .prodxs-admin-ui .summary-range select+span{color:#afc0d2!important}
}

@media (max-width:390px){
  body.prodxs-admin-ui .summary-range{padding:12px!important}
  body.prodxs-admin-ui .summary-range>div{grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr)!important;gap:5px!important}
  body.prodxs-admin-ui .summary-range input[type="date"]{font-size:11px!important;padding:0 4px!important}
}

/* CMZPAY SIDEBAR READABILITY ONLY — 2026-08-21
   Scope: desktop/admin sidebar visual readability only. No page/business logic changes. */
@media (min-width:861px){
  .prodxs-admin-ui .admin-sidebar{
    width:190px!important;
    flex-basis:190px!important;
  }
  .prodxs-admin-ui .sidebar-brand{
    min-height:52px!important;
    padding:13px 15px!important;
    font-size:18px!important;
    line-height:1.2!important;
  }
  .prodxs-admin-ui .sidebar-nav{
    padding:10px 8px!important;
    gap:3px!important;
  }
  .prodxs-admin-ui .sidebar-nav>a,
  .prodxs-admin-ui .sidebar-menu-toggle{
    min-height:44px!important;
    padding:10px 12px!important;
    font-size:13.5px!important;
    line-height:1.35!important;
    font-weight:700!important;
    letter-spacing:0!important;
    color:#e7f0fb!important;
    white-space:normal!important;
  }
  .prodxs-admin-ui .sidebar-menu-title{
    gap:10px!important;
    line-height:1.35!important;
  }
  .prodxs-admin-ui .sidebar-nav>a i,
  .prodxs-admin-ui .sidebar-menu-title>i{
    width:19px!important;
    min-width:19px!important;
    font-size:14px!important;
    color:#9bc8ff!important;
  }
  .prodxs-admin-ui .sidebar-menu-arrow{
    font-size:11px!important;
    color:#c9def7!important;
    opacity:1!important;
  }
  .prodxs-admin-ui .sidebar-nav>a:hover,
  .prodxs-admin-ui .sidebar-menu-toggle:hover{
    color:#fff!important;
  }
  .prodxs-admin-ui .sidebar-nav>a.active,
  .prodxs-admin-ui .sidebar-menu-group.active>.sidebar-menu-toggle{
    color:#fff!important;
    font-weight:800!important;
  }
  .prodxs-admin-ui .sidebar-submenu{
    padding:4px 5px 6px!important;
  }
  .prodxs-admin-ui .sidebar-submenu a{
    min-height:36px!important;
    padding:9px 10px 9px 34px!important;
    font-size:12.5px!important;
    line-height:1.35!important;
    font-weight:650!important;
    color:#d2e1f3!important;
    white-space:normal!important;
  }
}

/* CMZPAY DASHBOARD DARK MODE READABILITY ONLY — 2026-08-21
   Scope: Dashboard-only visual overrides in dark mode. No business logic/API/layout changes. */
html[data-theme="dark"] .prodxs-admin-ui .dash-topbar .dash-title h1,
html[data-theme="dark"] .prodxs-admin-ui .dash-topbar .dash-title,
html[data-theme="dark"] .prodxs-admin-ui .dashboard-range-title strong{
  color:#f4f8ff!important;
}
html[data-theme="dark"] .prodxs-admin-ui .dash-subtitle,
html[data-theme="dark"] .prodxs-admin-ui .dashboard-range-title span,
html[data-theme="dark"] .prodxs-admin-ui .dashboard-range-current,
html[data-theme="dark"] .prodxs-admin-ui .dashboard-range-current strong{
  color:#aebfd2!important;
}
html[data-theme="dark"] .prodxs-admin-ui .dashboard-range-toolbar{
  background:#111c2a!important;
  border-color:#2b4058!important;
  box-shadow:0 8px 24px rgba(0,0,0,.18)!important;
}
html[data-theme="dark"] .prodxs-admin-ui .dashboard-range-toolbar .chart-range-field label{
  color:#c4d3e4!important;
}
html[data-theme="dark"] .prodxs-admin-ui .dashboard-range-toolbar input[type="date"]{
  background:#0d1723!important;
  color:#f2f7fd!important;
  border-color:#314861!important;
}
html[data-theme="dark"] .prodxs-admin-ui .dashboard-card-grid .icon-stat-card{
  background:#121e2c!important;
  border-top-color:#2b3e53!important;
  border-right-color:#2b3e53!important;
  border-bottom-color:#2b3e53!important;
  box-shadow:0 5px 16px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .prodxs-admin-ui .dashboard-card-grid .icon-stat-card::after{
  background:rgba(255,255,255,.045)!important;
  opacity:1!important;
}
html[data-theme="dark"] .prodxs-admin-ui .dashboard-card-grid .icon-stat-label{
  color:#aebed0!important;
}
html[data-theme="dark"] .prodxs-admin-ui .dashboard-card-grid .icon-stat-value{
  color:#f7fbff!important;
  text-shadow:none!important;
}
html[data-theme="dark"] .prodxs-admin-ui .dashboard-card-grid .icon-stat-desc{
  color:#93a7bc!important;
}
html[data-theme="dark"] .prodxs-admin-ui .dashboard-card-grid .stat-icon{
  filter:none!important;
}
html[data-theme="dark"] .prodxs-admin-ui .dash-grid .prodxs-balance-card{
  background:#111c2a!important;
  border-color:#2b4058!important;
  color:#eef5ff!important;
  box-shadow:0 8px 24px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .prodxs-admin-ui .prodxs-balance-head{
  color:#eef5ff!important;
  border-color:#2b4058!important;
}
html[data-theme="dark"] .prodxs-admin-ui .prodxs-balance-range{
  color:#aebfd2!important;
}
html[data-theme="dark"] .prodxs-admin-ui .prodxs-balance-wrap{
  background:#0f1925!important;
  border-color:#293d53!important;
}
html[data-theme="dark"] .prodxs-admin-ui .prodxs-balance-table{
  background:#0f1925!important;
  color:#eaf2fb!important;
}
html[data-theme="dark"] .prodxs-admin-ui .prodxs-balance-table thead th{
  background:#1a2a3d!important;
  color:#dceaff!important;
  border-color:#334a63!important;
}
html[data-theme="dark"] .prodxs-admin-ui .prodxs-balance-table tbody td{
  background:#111c2a!important;
  color:#e6eef8!important;
  border-color:#26394e!important;
}
html[data-theme="dark"] .prodxs-admin-ui .prodxs-balance-table tbody tr:nth-child(even) td{
  background:#0d1723!important;
}
html[data-theme="dark"] .prodxs-admin-ui .prodxs-balance-table tbody tr:hover td{
  background:#17283b!important;
}
html[data-theme="dark"] .prodxs-admin-ui .prodxs-product span{
  color:#edf5ff!important;
}
html[data-theme="dark"] .prodxs-admin-ui .prodxs-total-row td{
  background:#19283a!important;
  color:#ffffff!important;
  border-top-color:#3c536d!important;
  font-weight:800!important;
}
html[data-theme="dark"] .prodxs-admin-ui .prodxs-winloss.neg{color:#ff6b75!important}
html[data-theme="dark"] .prodxs-admin-ui .prodxs-winloss.pos{color:#43d38b!important}
html[data-theme="dark"] .prodxs-admin-ui .pending-action-panel{
  background:#111c2a!important;
  border-color:#2b4058!important;
  color:#eaf2fb!important;
}

/* =========================================================
   CMZPAY DARK UI READABILITY + MOBILE + SIDEBAR ACTIVE FIX ONLY
   2026-08-21
   Visual CSS only. No API / PHP / business logic changes.
   ========================================================= */
html[data-theme="dark"] body.prodxs-admin-ui{
  --cmz-dark-bg:#09131f;
  --cmz-dark-panel:#101d2b;
  --cmz-dark-panel-2:#132235;
  --cmz-dark-line:#29415b;
  --cmz-dark-text:#eef6ff;
  --cmz-dark-muted:#9db0c5;
  --cmz-dark-blue:#1f6fd1;
  --cmz-dark-blue-soft:#174c83;
  background:var(--cmz-dark-bg)!important;
  color:var(--cmz-dark-text)!important;
}
html[data-theme="dark"] .prodxs-admin-ui .admin-content-wrap,
html[data-theme="dark"] .prodxs-admin-ui .admin-main{
  background:var(--cmz-dark-bg)!important;
  color:var(--cmz-dark-text)!important;
}
html[data-theme="dark"] .prodxs-admin-ui .admin-main{
  padding-top:14px!important;
}
html[data-theme="dark"] .prodxs-admin-ui h1,
html[data-theme="dark"] .prodxs-admin-ui h2,
html[data-theme="dark"] .prodxs-admin-ui h3,
html[data-theme="dark"] .prodxs-admin-ui strong{
  color:var(--cmz-dark-text)!important;
}
html[data-theme="dark"] .prodxs-admin-ui p,
html[data-theme="dark"] .prodxs-admin-ui .page-description,
html[data-theme="dark"] .prodxs-admin-ui small{
  color:var(--cmz-dark-muted)!important;
}

/* Keep the top working area close to the top navigation bar. */
html[data-theme="dark"] .prodxs-admin-ui .page-heading-row{
  margin-top:0!important;
  margin-bottom:12px!important;
}
html[data-theme="dark"] .prodxs-admin-ui .admin-desktop-topbar{
  background:#0d1825!important;
  border-bottom-color:#263c53!important;
  box-shadow:0 2px 10px rgba(0,0,0,.22)!important;
}
html[data-theme="dark"] .prodxs-admin-ui .prodxs-topbar-links a,
html[data-theme="dark"] .prodxs-admin-ui .prodxs-admin-user,
html[data-theme="dark"] .prodxs-admin-ui .admin-top-status{
  color:#c2d2e4!important;
}
html[data-theme="dark"] .prodxs-admin-ui .admin-top-action{
  background:#122236!important;
  color:#dbeafe!important;
  border-color:#31506f!important;
}
html[data-theme="dark"] .prodxs-admin-ui .admin-top-action:hover{
  background:#173250!important;
  border-color:#4f83b8!important;
}

/* Sidebar: no white selected rows in dark mode. */
html[data-theme="dark"] .prodxs-admin-ui .admin-sidebar{
  background:linear-gradient(180deg,#0b315f 0%,#0a294f 100%)!important;
  border-right:1px solid #1f4772!important;
}
html[data-theme="dark"] .prodxs-admin-ui .sidebar-brand{
  background:#0a2039!important;
  border-bottom-color:#24486d!important;
  color:#fff!important;
}
html[data-theme="dark"] .prodxs-admin-ui .sidebar-brand .cmz-logo-cmz,
html[data-theme="dark"] .prodxs-admin-ui .sidebar-brand .cmz-logo-pay{
  color:#fff!important;
}
html[data-theme="dark"] .prodxs-admin-ui .sidebar-nav>a,
html[data-theme="dark"] .prodxs-admin-ui .sidebar-menu-toggle{
  color:#d8e7f7!important;
}
html[data-theme="dark"] .prodxs-admin-ui .sidebar-nav>a:hover,
html[data-theme="dark"] .prodxs-admin-ui .sidebar-menu-toggle:hover{
  background:#154473!important;
  color:#fff!important;
}
html[data-theme="dark"] .prodxs-admin-ui .sidebar-nav>a.active,
html[data-theme="dark"] .prodxs-admin-ui .sidebar-menu-group.active>.sidebar-menu-toggle,
html[data-theme="dark"] .prodxs-admin-ui .sidebar-menu-toggle.active{
  background:#1b5fa6!important;
  color:#fff!important;
  border-left:0!important;
  box-shadow:inset 3px 0 0 #7cc3ff!important;
}
html[data-theme="dark"] .prodxs-admin-ui .sidebar-nav>a.active i,
html[data-theme="dark"] .prodxs-admin-ui .sidebar-menu-group.active>.sidebar-menu-toggle i{
  color:#dff2ff!important;
}
html[data-theme="dark"] .prodxs-admin-ui .sidebar-submenu{
  background:rgba(5,30,58,.52)!important;
}
html[data-theme="dark"] .prodxs-admin-ui .sidebar-submenu a{
  color:#c9daeb!important;
  background:transparent!important;
}
html[data-theme="dark"] .prodxs-admin-ui .sidebar-submenu a:hover{
  background:#123e69!important;
  color:#fff!important;
}
html[data-theme="dark"] .prodxs-admin-ui .sidebar-submenu a.active{
  background:#174e85!important;
  color:#fff!important;
  border-left:3px solid #79bfff!important;
  font-weight:800!important;
}

/* Cards / filters / forms in dark mode. */
html[data-theme="dark"] .prodxs-admin-ui .card,
html[data-theme="dark"] .prodxs-admin-ui .member-table-card,
html[data-theme="dark"] .prodxs-admin-ui .member-create-panel,
html[data-theme="dark"] .prodxs-admin-ui .summary-range,
html[data-theme="dark"] .prodxs-admin-ui .stat-card,
html[data-theme="dark"] .prodxs-admin-ui .member-edit-dialog{
  background:var(--cmz-dark-panel)!important;
  border-color:var(--cmz-dark-line)!important;
  color:var(--cmz-dark-text)!important;
  box-shadow:0 5px 18px rgba(0,0,0,.16)!important;
}
html[data-theme="dark"] .prodxs-admin-ui label{
  color:#c9d8e8!important;
}
html[data-theme="dark"] .prodxs-admin-ui input[type=text],
html[data-theme="dark"] .prodxs-admin-ui input[type=password],
html[data-theme="dark"] .prodxs-admin-ui input[type=tel],
html[data-theme="dark"] .prodxs-admin-ui input[type=number],
html[data-theme="dark"] .prodxs-admin-ui input[type=search],
html[data-theme="dark"] .prodxs-admin-ui input[type=date],
html[data-theme="dark"] .prodxs-admin-ui input[type=file],
html[data-theme="dark"] .prodxs-admin-ui select,
html[data-theme="dark"] .prodxs-admin-ui textarea{
  background:#0b1724!important;
  color:#eef6ff!important;
  border-color:#31506d!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .prodxs-admin-ui input::placeholder,
html[data-theme="dark"] .prodxs-admin-ui textarea::placeholder{
  color:#7890aa!important;
}
html[data-theme="dark"] .prodxs-admin-ui select option{
  background:#101d2b!important;
  color:#eef6ff!important;
}
html[data-theme="dark"] .prodxs-admin-ui .btn-secondary{
  background:#13243a!important;
  border-color:#355473!important;
  color:#e6f1ff!important;
}
html[data-theme="dark"] .prodxs-admin-ui .btn-secondary:hover{
  background:#193352!important;
}
html[data-theme="dark"] .prodxs-admin-ui .filter-tabs,
html[data-theme="dark"] .prodxs-admin-ui .search-form{
  background:transparent!important;
}
html[data-theme="dark"] .prodxs-admin-ui .filter-tab{
  background:#13243a!important;
  border-color:#34516f!important;
  color:#c8d8e9!important;
}
html[data-theme="dark"] .prodxs-admin-ui .filter-tab.active{
  background:#1f6fd1!important;
  border-color:#3d8ae5!important;
  color:#fff!important;
}

/* Tables: readable dark rows and headers. */
html[data-theme="dark"] .prodxs-admin-ui .table-responsive,
html[data-theme="dark"] .prodxs-admin-ui .member-table-scroll,
html[data-theme="dark"] .prodxs-admin-ui .transactions-table-wrap{
  background:var(--cmz-dark-panel)!important;
}
html[data-theme="dark"] .prodxs-admin-ui .data-table,
html[data-theme="dark"] .prodxs-admin-ui .member-data-table,
html[data-theme="dark"] .prodxs-admin-ui .transactions-table{
  background:var(--cmz-dark-panel)!important;
  color:#e8f2fc!important;
  border-color:#2d455f!important;
}
html[data-theme="dark"] .prodxs-admin-ui .data-table th,
html[data-theme="dark"] .prodxs-admin-ui .member-data-table thead th,
html[data-theme="dark"] .prodxs-admin-ui .transactions-table th{
  background:#18304a!important;
  color:#dcecff!important;
  border-bottom-color:#3a5875!important;
}
html[data-theme="dark"] .prodxs-admin-ui .data-table td,
html[data-theme="dark"] .prodxs-admin-ui .member-data-table tbody td,
html[data-theme="dark"] .prodxs-admin-ui .transactions-table td{
  color:#dbe8f6!important;
  border-bottom-color:#263c52!important;
}
html[data-theme="dark"] .prodxs-admin-ui .data-table tbody tr:nth-child(even),
html[data-theme="dark"] .prodxs-admin-ui .member-data-table tbody tr:nth-child(even){
  background:#0d1926!important;
}
html[data-theme="dark"] .prodxs-admin-ui .data-table tbody tr:hover,
html[data-theme="dark"] .prodxs-admin-ui .member-data-table tbody tr:hover{
  background:#17314c!important;
}
html[data-theme="dark"] .prodxs-admin-ui .member-id-note{color:#8fa7bf!important}
html[data-theme="dark"] .prodxs-admin-ui .member-data-table td:nth-child(5) strong{color:#dfeeff!important}

/* Mobile dark mode: readable, compact, no white selected sidebar. */
@media(max-width:860px){
  html[data-theme="dark"] .prodxs-admin-ui .mobile-topbar{
    background:#0a2039!important;
    color:#fff!important;
    border-bottom:1px solid #24486d!important;
  }
  html[data-theme="dark"] .prodxs-admin-ui .admin-sidebar{
    width:272px!important;
    background:linear-gradient(180deg,#0b315f 0%,#09274a 100%)!important;
  }
  html[data-theme="dark"] .prodxs-admin-ui .admin-main{
    padding:10px 10px 28px!important;
  }
  html[data-theme="dark"] .prodxs-admin-ui h1{
    font-size:19px!important;
    margin-bottom:12px!important;
  }
  html[data-theme="dark"] .prodxs-admin-ui .card,
  html[data-theme="dark"] .prodxs-admin-ui .member-table-card,
  html[data-theme="dark"] .prodxs-admin-ui .member-create-panel{
    border-radius:10px!important;
  }
  html[data-theme="dark"] .prodxs-admin-ui .filter-tabs{
    gap:6px!important;
    overflow-x:auto!important;
    flex-wrap:nowrap!important;
    padding-bottom:3px!important;
  }
  html[data-theme="dark"] .prodxs-admin-ui .filter-tab{
    flex:0 0 auto!important;
    white-space:nowrap!important;
  }
  html[data-theme="dark"] .prodxs-admin-ui .search-form{
    max-width:none!important;
    width:100%!important;
  }
  html[data-theme="dark"] .prodxs-admin-ui .member-table-scroll,
  html[data-theme="dark"] .prodxs-admin-ui .table-responsive{
    border:1px solid #29415b!important;
    border-radius:9px!important;
  }
}

/* =========================================================
   CMZPAY SIDEBAR EXTEND + DASHBOARD DARK TABLE FIX ONLY
   2026-08-21
   CSS/UI only. No PHP, API or business logic changes.
   ========================================================= */
@media (min-width:861px){
  body.admin-body.prodxs-admin-ui{--cmz-sidebar-w:240px!important;}
  .prodxs-admin-ui .admin-sidebar{
    width:var(--cmz-sidebar-w)!important;
    flex-basis:var(--cmz-sidebar-w)!important;
  }
  .prodxs-admin-ui .admin-content-wrap{
    margin-left:var(--cmz-sidebar-w)!important;
    width:calc(100% - var(--cmz-sidebar-w))!important;
  }
  .prodxs-admin-ui .admin-desktop-topbar{
    left:var(--cmz-sidebar-w)!important;
  }
}

/* Dashboard gameplay summary: remove the white strip in dark mode. */
html[data-theme="dark"] body.prodxs-admin-ui .prodxs-balance-card{
  background:#101d2b!important;
  border-color:#29415b!important;
  color:#eef6ff!important;
}
html[data-theme="dark"] body.prodxs-admin-ui .prodxs-balance-head{
  background:#101d2b!important;
  color:#eef6ff!important;
  border-bottom:1px solid #29415b!important;
}
html[data-theme="dark"] body.prodxs-admin-ui .prodxs-balance-head>span:first-child{
  color:#eef6ff!important;
}
html[data-theme="dark"] body.prodxs-admin-ui .prodxs-balance-range{
  color:#9db0c5!important;
}
html[data-theme="dark"] body.prodxs-admin-ui .prodxs-balance-wrap{
  background:#101d2b!important;
}
html[data-theme="dark"] body.prodxs-admin-ui .prodxs-balance-table{
  background:#101d2b!important;
  color:#e8f2fc!important;
}
html[data-theme="dark"] body.prodxs-admin-ui .prodxs-balance-table th{
  background:#18304a!important;
  color:#dcecff!important;
  border-bottom:1px solid #3a5875!important;
}
html[data-theme="dark"] body.prodxs-admin-ui .prodxs-balance-table td{
  color:#dbe8f6!important;
  border-bottom:1px solid #263c52!important;
}
html[data-theme="dark"] body.prodxs-admin-ui .prodxs-balance-table tbody tr:nth-child(even),
html[data-theme="dark"] body.prodxs-admin-ui .prodxs-total-row{
  background:#0d1926!important;
}
html[data-theme="dark"] body.prodxs-admin-ui .prodxs-product-icon{
  background:#17283b!important;
}

/* === CMZPAY mobile gameplay summary UI ONLY === */
@media (max-width: 640px){
  body.prodxs-admin-ui .prodxs-balance-card{
    width:100%!important;
    max-width:100%!important;
    overflow:hidden!important;
    border-radius:14px!important;
  }
  body.prodxs-admin-ui .prodxs-balance-head{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:4px!important;
    padding:12px 13px 10px!important;
    align-items:start!important;
  }
  body.prodxs-admin-ui .prodxs-balance-head>span:first-child{
    font-size:14px!important;
    font-weight:800!important;
    line-height:1.3!important;
  }
  body.prodxs-admin-ui .prodxs-balance-range{
    justify-self:start!important;
    font-size:11px!important;
    line-height:1.25!important;
    white-space:normal!important;
  }
  body.prodxs-admin-ui .prodxs-balance-wrap{
    width:100%!important;
    overflow:visible!important;
    padding:0 9px 10px!important;
    box-sizing:border-box!important;
  }
  body.prodxs-admin-ui .prodxs-balance-table,
  body.prodxs-admin-ui .prodxs-balance-table tbody{
    display:block!important;
    width:100%!important;
    min-width:0!important;
  }
  body.prodxs-admin-ui .prodxs-balance-table thead{
    display:none!important;
  }
  body.prodxs-admin-ui .prodxs-balance-table tr{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:0!important;
    width:100%!important;
    margin:0 0 8px!important;
    padding:10px 11px!important;
    box-sizing:border-box!important;
    border:1px solid #dbe3ee!important;
    border-radius:11px!important;
    background:#fff!important;
  }
  body.prodxs-admin-ui .prodxs-balance-table td{
    display:flex!important;
    flex-direction:column!important;
    min-width:0!important;
    padding:7px 5px!important;
    border:0!important;
    background:transparent!important;
    text-align:left!important;
    font-size:12px!important;
    line-height:1.25!important;
  }
  body.prodxs-admin-ui .prodxs-balance-table td:first-child{
    grid-column:1/-1!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:8px!important;
    padding:2px 5px 9px!important;
    margin-bottom:3px!important;
    border-bottom:1px solid #edf1f6!important;
    font-size:13px!important;
    font-weight:800!important;
  }
  body.prodxs-admin-ui .prodxs-balance-table td:nth-child(2)::before{content:'ยอดเล่น';}
  body.prodxs-admin-ui .prodxs-balance-table td:nth-child(3)::before{content:'ยอดเทิร์น';}
  body.prodxs-admin-ui .prodxs-balance-table td:nth-child(4)::before{content:'ยอดค้าง';}
  body.prodxs-admin-ui .prodxs-balance-table td:nth-child(5)::before{content:'ได้/เสีย';}
  body.prodxs-admin-ui .prodxs-balance-table td:nth-child(n+2)::before{
    display:block!important;
    margin-bottom:3px!important;
    color:#7a8798!important;
    font-size:10px!important;
    font-weight:600!important;
  }
  body.prodxs-admin-ui .prodxs-product-icon{
    width:24px!important;
    height:24px!important;
    flex:0 0 24px!important;
    object-fit:contain!important;
  }
  body.prodxs-admin-ui .prodxs-total-row{
    border-width:2px!important;
    font-weight:800!important;
  }
  body.prodxs-admin-ui .prodxs-total-row td:first-child{
    border-bottom:1px solid #dfe7f0!important;
  }
}

@media (max-width: 640px){
  html[data-theme="dark"] body.prodxs-admin-ui .prodxs-balance-table tr{
    background:#101b2a!important;
    border-color:#29405a!important;
  }
  html[data-theme="dark"] body.prodxs-admin-ui .prodxs-balance-table td:first-child{
    border-bottom-color:#24384f!important;
    color:#f4f8fc!important;
  }
  html[data-theme="dark"] body.prodxs-admin-ui .prodxs-balance-table td:nth-child(n+2)::before{
    color:#8fa7bf!important;
  }
  html[data-theme="dark"] body.prodxs-admin-ui .prodxs-total-row{
    background:#13243a!important;
    border-color:#3a5b7e!important;
  }
}

/* CMZPAY SIDEBAR CONTRAST + MENU SEPARATORS ONLY — 2026-08-21
   Scope: sidebar colors and separators only. No menu routes, permissions, HTML structure or business logic changes. */
.prodxs-admin-ui .admin-sidebar{
  background:linear-gradient(180deg,#0a315f 0%,#08284f 58%,#061f3f 100%)!important;
  border-right:1px solid rgba(255,255,255,.12)!important;
}
.prodxs-admin-ui .sidebar-nav{
  padding-left:8px!important;
  padding-right:8px!important;
}
.prodxs-admin-ui .sidebar-nav>a,
.prodxs-admin-ui .sidebar-menu-toggle{
  color:#f2f7ff!important;
  text-shadow:0 1px 0 rgba(0,0,0,.12)!important;
}
.prodxs-admin-ui .sidebar-nav>a i,
.prodxs-admin-ui .sidebar-menu-title>i{
  color:#8fc6ff!important;
  opacity:1!important;
}
.prodxs-admin-ui .sidebar-menu-arrow{
  color:#dcecff!important;
}
.prodxs-admin-ui .sidebar-nav>a:hover,
.prodxs-admin-ui .sidebar-menu-toggle:hover{
  background:rgba(255,255,255,.095)!important;
  color:#fff!important;
}
.prodxs-admin-ui .sidebar-nav>a.active,
.prodxs-admin-ui .sidebar-menu-group.active>.sidebar-menu-toggle{
  background:#1760ad!important;
  color:#fff!important;
  box-shadow:inset 3px 0 0 #7fc0ff!important;
}
.prodxs-admin-ui .sidebar-menu-group,
.prodxs-admin-ui .sidebar-nav>a{
  position:relative!important;
}
.prodxs-admin-ui .sidebar-menu-group::after,
.prodxs-admin-ui .sidebar-nav>a::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  left:10px!important;
  right:10px!important;
  bottom:-2px!important;
  height:1px!important;
  background:rgba(206,227,251,.16)!important;
  pointer-events:none!important;
}
.prodxs-admin-ui .sidebar-submenu{
  background:rgba(0,19,45,.22)!important;
}
.prodxs-admin-ui .sidebar-submenu a{
  color:#d8e7f8!important;
  text-shadow:none!important;
}
.prodxs-admin-ui .sidebar-submenu a:hover{
  background:rgba(255,255,255,.075)!important;
  color:#fff!important;
}
.prodxs-admin-ui .sidebar-submenu a.active{
  background:#eaf4ff!important;
  color:#0d5eb8!important;
  font-weight:800!important;
}
.prodxs-admin-ui .sidebar-user{
  border-top:1px solid rgba(210,230,252,.22)!important;
}

/* CMZPAY SIDEBAR FULL-WIDTH ROW SEPARATORS ONLY — 2026-08-21
   Scope: separator appearance only. Keeps existing colors, icons, routes, permissions and menu behavior unchanged. */
.prodxs-admin-ui .sidebar-menu-group::after,
.prodxs-admin-ui .sidebar-nav>a::after{
  display:none!important;
  content:none!important;
}
.prodxs-admin-ui .sidebar-nav>a,
.prodxs-admin-ui .sidebar-menu-toggle{
  border-bottom:1px solid rgba(196,216,239,.20)!important;
}
.prodxs-admin-ui .sidebar-menu-group{
  border-bottom:0!important;
}
.prodxs-admin-ui .sidebar-submenu a{
  border-bottom:1px solid rgba(196,216,239,.13)!important;
}
.prodxs-admin-ui .sidebar-submenu a:last-child{
  border-bottom:0!important;
}

/* CMZPAY EYE-COMFORT LIGHT UI TONE ONLY — 2026-08-21
   Scope: visual colors/contrast only. No layout, routes, permissions, JS or business logic changes. */
html:not([data-theme="dark"]) body.prodxs-admin-ui{
  background:#edf1f5!important;
  color:#263548!important;
}
html:not([data-theme="dark"]) body.prodxs-admin-ui .admin-main,
html:not([data-theme="dark"]) body.prodxs-admin-ui .admin-content,
html:not([data-theme="dark"]) body.prodxs-admin-ui main{
  background:#edf1f5!important;
}
html:not([data-theme="dark"]) body.prodxs-admin-ui .admin-topbar{
  background:#f7f9fb!important;
  border-bottom:1px solid #d7dee7!important;
  box-shadow:0 1px 4px rgba(32,48,68,.05)!important;
}
html:not([data-theme="dark"]) body.prodxs-admin-ui .card,
html:not([data-theme="dark"]) body.prodxs-admin-ui .panel,
html:not([data-theme="dark"]) body.prodxs-admin-ui .dashboard-card,
html:not([data-theme="dark"]) body.prodxs-admin-ui .prodxs-balance-card{
  background:#f8fafc!important;
  border-color:#d7dee7!important;
  box-shadow:0 2px 7px rgba(32,48,68,.045)!important;
}
html:not([data-theme="dark"]) body.prodxs-admin-ui table thead th{
  background:#e6ebf1!important;
  color:#304054!important;
  border-color:#d4dce6!important;
}
html:not([data-theme="dark"]) body.prodxs-admin-ui table tbody td{
  border-color:#dbe2ea!important;
}
html:not([data-theme="dark"]) body.prodxs-admin-ui table tbody tr:nth-child(even){
  background:#f3f6f9!important;
}
html:not([data-theme="dark"]) body.prodxs-admin-ui input,
html:not([data-theme="dark"]) body.prodxs-admin-ui select,
html:not([data-theme="dark"]) body.prodxs-admin-ui textarea{
  background:#f9fbfc!important;
  border-color:#cfd8e3!important;
  color:#2d3b4e!important;
}
html:not([data-theme="dark"]) body.prodxs-admin-ui .text-muted,
html:not([data-theme="dark"]) body.prodxs-admin-ui small{
  color:#708096!important;
}

/* darker, calmer sidebar for long work sessions */
.prodxs-admin-ui .admin-sidebar{
  background:linear-gradient(180deg,#102d4f 0%,#0d2847 55%,#0a223d 100%)!important;
  border-right:1px solid rgba(255,255,255,.08)!important;
}
.prodxs-admin-ui .sidebar-nav>a,
.prodxs-admin-ui .sidebar-menu-toggle{
  color:#dce6f1!important;
  text-shadow:none!important;
}
.prodxs-admin-ui .sidebar-nav>a i,
.prodxs-admin-ui .sidebar-menu-title>i{
  color:#79a9d4!important;
}
.prodxs-admin-ui .sidebar-menu-arrow{
  color:#a9bfd3!important;
}
.prodxs-admin-ui .sidebar-nav>a:hover,
.prodxs-admin-ui .sidebar-menu-toggle:hover{
  background:rgba(255,255,255,.055)!important;
  color:#f7fbff!important;
}
.prodxs-admin-ui .sidebar-nav>a.active,
.prodxs-admin-ui .sidebar-menu-group.active>.sidebar-menu-toggle{
  background:#1b4d7c!important;
  color:#fff!important;
  box-shadow:inset 3px 0 0 #6fa9db!important;
}
.prodxs-admin-ui .sidebar-submenu{
  background:rgba(3,15,30,.20)!important;
}
.prodxs-admin-ui .sidebar-submenu a{
  color:#c3d2e0!important;
}
.prodxs-admin-ui .sidebar-submenu a:hover{
  background:rgba(255,255,255,.045)!important;
  color:#f7fbff!important;
}
.prodxs-admin-ui .sidebar-submenu a.active{
  background:#173f67!important;
  color:#eef6ff!important;
  font-weight:800!important;
}
.prodxs-admin-ui .sidebar-nav>a,
.prodxs-admin-ui .sidebar-menu-toggle{
  border-bottom-color:rgba(179,201,224,.13)!important;
}
.prodxs-admin-ui .sidebar-submenu a{
  border-bottom-color:rgba(179,201,224,.09)!important;
}
.prodxs-admin-ui .sidebar-user{
  border-top-color:rgba(179,201,224,.15)!important;
}
