:root{
  --bg:#f3f7ff;
  --bg-2:#eaf1ff;
  --surface:#ffffff;
  --surface-2:#f8fbff;
  --line:#d9e4f5;
  --text:#12233f;
  --muted:#70819d;
  --primary:#2563eb;
  --primary-dark:#1e40af;
  --primary-soft:#eef4ff;
  --success:#22c55e;
  --shadow:0 18px 45px rgba(15,35,95,.08);
  --radius:22px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:Arial,Helvetica,sans-serif;background:linear-gradient(180deg,var(--bg) 0%,#eef4ff 100%);color:var(--text)}
a{color:inherit}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.small{font-size:13px;color:var(--muted)}
.page-shell{display:grid;grid-template-columns:260px 1fr;min-height:100vh}
.sidebar{background:#fff;border-right:1px solid var(--line);padding:18px 16px;display:grid;grid-template-rows:auto auto 1fr auto auto;gap:12px;position:fixed;top:0;left:0;bottom:0;width:260px;align-self:start;height:100vh;overflow:hidden;z-index:20}
.logo{display:block;width:150px;max-width:100%;height:auto;margin:0 auto 4px}
.nav{display:grid;gap:8px;align-content:start}
.nav a{display:flex;align-items:center;gap:12px;padding:13px 15px;border-radius:16px;text-decoration:none;font-weight:700;color:var(--text)}
.nav a.active{background:var(--primary);color:#fff;box-shadow:0 14px 28px rgba(37,99,235,.2)}
.nav-ic{width:9px;height:9px;border-radius:999px;background:currentColor;opacity:.92}
.side-user{border:1px solid var(--line);background:var(--surface-2);border-radius:18px;padding:12px}
.side-actions{display:grid;gap:8px}
.main{padding:22px 24px 30px;max-width:1460px;width:100%;margin-left:260px}
.topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.topbar h1{margin:4px 0 0;font-size:34px;line-height:1.05}
.top-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 16px;border-radius:14px;border:1px solid var(--line);background:#fff;text-decoration:none;color:var(--text);font-weight:700;cursor:pointer}
.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff}
.btn:hover{filter:brightness(.99)}
.btn.primary:hover{background:var(--primary-dark)}
.pill{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;background:#edfdf3;border:1px solid #c6f2d5;color:#148246;font-weight:700}
.dot{width:8px;height:8px;border-radius:999px;background:#22c55e}
.flash{display:grid;gap:10px;margin-bottom:14px}
.flash-item{padding:13px 15px;border-radius:14px;background:#e8f0ff;border:1px solid #c8daff;color:#1b4bb5;font-weight:700}
.panel{background:rgba(255,255,255,.55);border:1px solid #d7e4fb;border-radius:28px;padding:16px}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:16px}
.stat-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:18px;box-shadow:var(--shadow)}
.stat-label{font-size:13px;color:var(--muted)}
.stat-value{margin-top:8px;font-size:31px;font-weight:800;line-height:1.1}
.stat-sub{margin-top:6px;font-size:13px;color:var(--muted)}
.grid-2{display:grid;grid-template-columns:1.35fr .85fr;gap:16px}
.stack{display:grid;gap:16px}
.card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:18px;box-shadow:var(--shadow)}
.card h3{margin:0 0 6px;font-size:18px}
.card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.search-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.search-box{display:flex;align-items:center;gap:12px;height:50px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:0 14px;min-width:360px}
.search-box input{flex:1;border:0;background:transparent;outline:0;font-size:14px;color:var(--text)}
.table-wrap{background:#fff;border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:var(--shadow)}
table{width:100%;border-collapse:collapse}
th,td{padding:16px 18px;border-bottom:1px solid #edf2fb;text-align:left;font-size:14px}
th{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;background:#fbfdff}
tr.clickable{cursor:pointer}
tr.clickable:hover{background:#f7faff}
tr.selected{background:#f2f7ff}
.status-cell{display:flex;align-items:center;gap:10px}
.live-dot{width:10px;height:10px;border-radius:999px;background:var(--success);box-shadow:0 0 0 4px rgba(34,197,94,.12)}
.empty{padding:28px;color:var(--muted)}
.kpi-list{display:grid;gap:14px}
.kpi-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #eef3fb}
.kpi-row:last-child{border-bottom:0}
.sim-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}
.sim-header h1{font-size:24px;margin:4px 0 0}
.tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:18px}
.tabs a{display:inline-block;padding:0 0 14px;text-decoration:none;color:var(--muted);font-weight:700;border-bottom:2px solid transparent}
.tabs a.active{color:var(--primary);border-bottom-color:var(--primary)}
.detail-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:16px}
.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.info-item{background:var(--surface-2);border:1px solid #e2ebf8;border-radius:18px;padding:15px}
.info-label{font-size:12px;color:var(--muted);margin-bottom:8px}
.info-value{font-size:17px;font-weight:700;word-break:break-word}
.bars{height:250px;display:flex;align-items:flex-end;gap:10px;padding:12px 0 0}
.bar-col{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;flex:1;min-width:16px}
.bar-fill{width:100%;max-width:20px;min-height:0;border-radius:10px 10px 4px 4px;background:linear-gradient(180deg,#6aa9ff 0%,var(--primary) 100%)}
.bar-label{font-size:11px;color:var(--muted)}
.bar-value{font-size:11px;color:#3d4f6c}
.usage-list{display:grid;gap:10px;margin-top:18px}
.usage-row{display:grid;grid-template-columns:92px 1fr auto;align-items:center;gap:12px}
.progress{height:11px;background:#eaf1ff;border-radius:999px;overflow:hidden}
.progress > span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#60a5fa 0%,#2563eb 100%)}
.log-list{display:grid;gap:14px}
.log-item{display:grid;grid-template-columns:18px 1fr;gap:12px}
.log-marker{width:12px;height:12px;border-radius:999px;background:var(--primary);margin-top:6px;box-shadow:0 0 0 5px rgba(37,99,235,.12)}
.log-body{border-left:1px solid #dae5f7;padding-left:16px;padding-bottom:16px}
.log-title{font-weight:800;margin-bottom:4px}
.login-shell{min-height:100vh;display:grid;grid-template-columns:430px 1fr;background:var(--bg)}
.login-left{background:#fff;display:flex;align-items:center;justify-content:center;padding:36px}
.login-card{width:100%;max-width:320px}
.login-logo{display:block;width:190px;max-width:100%;height:auto;margin-bottom:34px}
.login-title{font-size:42px;line-height:1.05;font-weight:800;margin:0 0 12px}
.login-sub{margin:0 0 24px;color:var(--muted);line-height:1.6}
.field{margin-bottom:14px}.field label{display:block;font-size:13px;color:var(--muted);margin-bottom:8px}
.field input{width:100%;height:52px;border-radius:14px;border:1px solid #cfe0ff;padding:0 14px;font-size:15px;outline:0}
.field input:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(37,99,235,.1)}
.login-btn{width:100%;height:54px;border:0;border-radius:14px;background:var(--primary);color:#fff;font-size:16px;font-weight:800;box-shadow:0 16px 35px rgba(37,99,235,.22);cursor:pointer}
.login-btn:hover{background:var(--primary-dark)}
.error{margin:0 0 14px;padding:12px 14px;border-radius:14px;border:1px solid #fecdd3;background:#fff1f2;color:#be123c}
.login-right{background:linear-gradient(180deg,#eef4ff 0%,#dfeaff 100%);display:flex;align-items:center;justify-content:center;padding:30px}
.preview-frame{width:min(1060px,100%);aspect-ratio:1.62/1;background:rgba(255,255,255,.48);border:1px solid #cadcff;border-radius:34px;padding:22px}
.preview-window{height:100%;background:#fff;border:1px solid #dae5f9;border-radius:26px;box-shadow:var(--shadow);padding:18px}
.preview-grid{height:100%;display:grid;grid-template-columns:170px 1fr;gap:16px}
.preview-side,.preview-main{background:#fbfdff;border:1px solid #e4ecfb;border-radius:20px;padding:14px}
.ph{height:10px;border-radius:999px;background:#d6def1}.ph.sm{width:54px}.ph.md{width:88px}.ph.lg{width:126px}.ph.blue{background:#2563eb}.preview-pill{height:30px;border-radius:12px;background:#2563eb;margin:14px 0 18px;display:flex;align-items:center;padding:0 12px}.preview-pill .ph{background:rgba(255,255,255,.92);width:92px}
.preview-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:12px}.preview-card{background:#fff;border:1px solid #e4ecfb;border-radius:18px;padding:12px}.preview-chart{height:112px;border:1px solid #e4ecfb;border-radius:18px;background:linear-gradient(180deg,#f8fbff 0%,#edf4ff 100%);padding:12px;display:flex;align-items:flex-end;gap:8px}.preview-chart span{display:block;flex:1;border-radius:10px 10px 4px 4px;background:linear-gradient(180deg,#60a5fa 0%,#2563eb 100%)}.preview-table{margin-top:12px;border:1px solid #e4ecfb;border-radius:18px;padding:10px}.preview-table .row{display:grid;grid-template-columns:1.2fr .9fr .9fr;gap:10px;padding:8px 0;border-bottom:1px solid #eef3fb}.preview-table .row:last-child{border-bottom:0}
.admin-wrap{max-width:1360px;margin:0 auto;padding:22px}.admin-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}.admin-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:16px}.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}input[type=text],input[type=password],textarea{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#fff}textarea{min-height:140px}.check-line{display:flex;gap:16px;align-items:center;flex-wrap:wrap;padding-top:10px}.table-actions{display:flex;gap:8px;flex-wrap:wrap}.admin-login-shell{min-height:100vh;display:grid;place-items:center;padding:24px}.admin-login-card{width:min(430px,100%);background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:28px}
@media (max-width:1150px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-2,.detail-grid,.admin-grid{grid-template-columns:1fr}.page-shell{grid-template-columns:1fr}.sidebar{position:relative;left:auto;bottom:auto;width:auto;height:auto;overflow:visible}.main{padding:14px;margin-left:0}.search-row{flex-direction:column;align-items:stretch}.search-box{min-width:0}.login-shell{grid-template-columns:1fr}.login-right{display:none}}

.left-usage{font-weight:700;color:var(--primary-dark)}
.inline-actions{margin-top:16px;display:flex;gap:10px;flex-wrap:wrap}
.sim-select-grid{margin-top:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:340px;overflow:auto;padding:4px}
.sim-check{display:flex;align-items:center;gap:10px;padding:10px 12px;background:var(--surface-2);border:1px solid #e2ebf8;border-radius:14px}
.sim-check input{margin:0}
@media (max-width:900px){.sim-select-grid{grid-template-columns:1fr}}

select,input[type=text]{width:100%;padding:12px 14px;border:1px solid #d6e1f3;border-radius:12px;background:#fff;box-sizing:border-box}

.email-box{width:100%;padding:14px 16px;border:1px solid #d6e1f3;border-radius:14px;background:#f8fbff;color:#0f172a;box-sizing:border-box;font:inherit;line-height:1.5}

.admin-wrap{max-width:1440px;margin:0 auto;padding:28px}
.admin-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}
.table-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.btn{white-space:nowrap}
@media (max-width:1100px){.admin-grid{grid-template-columns:1fr}}

.admin-shell{display:block;min-height:100vh;background:#f4f8ff}
.admin-sidebar{width:260px;background:#0f172a;color:#fff;padding:22px 18px;box-sizing:border-box;position:fixed;top:0;left:0;bottom:0;height:100vh;overflow:hidden;z-index:30}
.admin-brand{padding-bottom:24px;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:24px}
.admin-sidebar .logo{max-width:170px;filter:brightness(0) invert(1)}
.admin-nav{display:flex;flex-direction:column;gap:10px}
.admin-nav a{color:#dbe7ff;text-decoration:none;padding:12px 14px;border-radius:14px;font-weight:700}
.admin-nav a.active,.admin-nav a:hover{background:#2563eb;color:#fff}
.admin-main{padding:28px 32px;box-sizing:border-box;margin-left:260px}
.admin-header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:24px}
.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:#2563eb;font-weight:800;margin-bottom:8px}
.admin-main h1{margin:0 0 6px 0;font-size:34px;line-height:1.1}
.cards-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.admin-grid-2{display:grid;grid-template-columns:1.2fr .8fr;gap:20px;margin-top:20px}
.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.quick-card{display:flex;flex-direction:column;gap:6px;padding:18px;border-radius:18px;background:#f8fbff;border:1px solid #dbe7ff;text-decoration:none;color:#0f172a}
.quick-card strong{font-size:15px}
.quick-card span{font-size:13px;color:#5b6474}
.quick-card:hover{border-color:#2563eb;transform:translateY(-1px)}
.clean-table{box-shadow:none;border:1px solid #e5eefb}
@media (max-width: 1100px){
  .admin-shell{display:block}
  .admin-sidebar{width:auto;position:relative;left:auto;bottom:auto;height:auto;overflow:visible}
  .admin-main{margin-left:0}
  .admin-header{flex-direction:column}
  .cards-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-grid-2,.quick-grid{grid-template-columns:1fr}
}
@media (max-width: 700px){
  .cards-4{grid-template-columns:1fr}
  .admin-main{padding:20px}
}


.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.form-section{background:#fff;border:1px solid #e4ecf8;border-radius:20px;padding:22px;box-shadow:0 10px 30px rgba(37,99,235,.06)}
.form-section h3{margin:0 0 8px 0;font-size:20px}
.form-section .small{margin-bottom:12px}
.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:13px;font-weight:700;color:#42506a}
.field input,.field select,.field textarea{width:100%;padding:13px 14px;border:1px solid #d6e1f3;border-radius:14px;background:#fff;box-sizing:border-box;font:inherit}
.field textarea{min-height:140px;resize:vertical}
.check-pills{display:flex;gap:10px;flex-wrap:wrap}
.check-pill{display:flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid #dbe7ff;background:#f8fbff;border-radius:999px}
.assign-box{max-height:340px;overflow:auto;border:1px solid #e4ecf8;border-radius:18px;padding:12px;background:#f8fbff}
.assign-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px}
.assign-item:hover{background:#eef4ff}
.page-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.toolbar-card{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 20px;background:#fff;border:1px solid #e4ecf8;border-radius:20px;margin-bottom:20px}
.filter-grid{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:14px}
.badge-green{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:#edfdf3;border:1px solid #c6f2d5;color:#148246;font-weight:700}
.data-cell{display:flex;flex-direction:column;gap:4px}
.data-main{font-weight:700}
.data-sub{font-size:12px;color:#64748b}
.kpi-mini{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}
@media (max-width: 1000px){
  .form-grid,.field-grid,.filter-grid,.kpi-mini{grid-template-columns:1fr}
}


.btn{padding:10px 16px !important;border-radius:12px !important;font-size:14px !important;line-height:1.2 !important}
.top-actions .btn{padding:10px 16px !important}
.check-pill{padding:8px 12px !important}
.admin-page{display:flex;min-height:100vh;background:#f4f8ff}
.admin-page .admin-sidebar{width:240px;background:#0f172a;color:#fff;padding:24px 18px;box-sizing:border-box;flex:0 0 240px;position:sticky;top:0;align-self:start;height:100vh;overflow-y:auto}
.admin-page .admin-sidebar .logo{max-width:160px;filter:brightness(0) invert(1)}
.admin-page .admin-sidebar nav{display:flex;flex-direction:column;gap:10px;margin-top:22px}
.admin-page .admin-sidebar nav a{color:#dbe7ff;text-decoration:none;padding:11px 14px;border-radius:12px;font-weight:700}
.admin-page .admin-sidebar nav a.active,.admin-page .admin-sidebar nav a:hover{background:#2563eb;color:#fff}
.admin-page .admin-content{flex:1;padding:28px;box-sizing:border-box}
@media (max-width: 1100px){
  .admin-page{display:block}
  .admin-page .admin-sidebar{width:auto;position:relative;height:auto;overflow:visible}
  .admin-page .admin-content{padding:20px}
}


.mini-bars{height:220px;display:flex;align-items:flex-end;gap:10px;padding:12px 4px 0}
.mini-bar-col{flex:1;display:flex;align-items:flex-end;justify-content:center;height:100%}
.mini-bar{display:block;width:100%;max-width:28px;border-radius:10px 10px 0 0;background:linear-gradient(180deg,#60a5fa 0%,#2563eb 100%)}
.status-donut-wrap{display:flex;flex-direction:column;align-items:center;justify-content:center;height:220px}
.status-donut{width:180px;height:180px;border-radius:999px;display:flex;align-items:center;justify-content:center}
.status-donut-inner{width:96px;height:96px;border-radius:999px;background:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;color:#0f172a}
.admin-sidebar nav a,.admin-nav a{font-size:14px;padding:10px 12px !important}
.logo{max-height:42px;width:auto}


.check-pill input,.assign-item input{width:16px !important;height:16px !important;accent-color:#2563eb}
.badge-green,.check-pill{font-size:13px}
.flash{display:block}
.flash-item{background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8;padding:14px 16px;border-radius:14px;font-weight:700}
.table-wrap table th,.table-wrap table td{vertical-align:middle}
.assign-item{padding:8px 10px}


.login-links{display:flex;gap:10px;align-items:center;margin-top:18px;font-size:14px;flex-wrap:wrap}.login-links a{text-decoration:none;font-weight:700}.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}.stack-gap{display:flex;flex-direction:column;gap:20px}.checkbox-row{display:flex;gap:18px;flex-wrap:wrap;margin-top:14px}.sim-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.sim-assign-card{border:1px solid #dbe7ff;border-radius:18px;padding:16px;background:#fff}.sim-check{display:flex;gap:10px;align-items:center;font-weight:700;margin-bottom:12px}.admin-sidebar .admin-nav a.active,.admin-nav a.active{font-weight:800}.table-actions{display:flex;gap:8px;flex-wrap:wrap}.form-section textarea{min-height:96px}.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:12px;font-weight:800;color:#6b7280;margin-bottom:8px}
@media (max-width: 900px){.sim-check-grid,.two-col{grid-template-columns:1fr}}

.hero-card{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:26px 28px;border-radius:28px;background:linear-gradient(135deg,#1385c7 0%,#c3eef2 100%);color:#06233c;margin-bottom:18px;box-shadow:var(--shadow)}
.hero-card h1{margin:8px 0 0;font-size:38px;line-height:1.04}
.hero-greeting{font-size:30px;font-weight:800;letter-spacing:-.02em}
.month-picker{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.month-picker label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#33526d}
.month-picker select{min-width:150px;height:44px;border-radius:14px;border:1px solid rgba(255,255,255,.8);background:rgba(255,255,255,.92)}
.dashboard-layout{display:grid;gap:18px}
.card-hero-chart{padding:20px 22px 16px}
.chart-header-row{align-items:center}
.chart-stat-wrap{display:flex;gap:10px;flex-wrap:wrap}
.chart-stat{min-width:145px;padding:12px 14px;border-radius:16px;background:#f6f9ff;border:1px solid #dbe7ff}
.chart-stat span{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
.chart-stat strong{font-size:22px;line-height:1.1}
.dashboard-split{display:grid;grid-template-columns:1.25fr .75fr;gap:18px}
.chart-shell{display:grid;grid-template-columns:64px 1fr;gap:12px;align-items:stretch;min-height:320px}
.chart-y{display:flex;flex-direction:column;justify-content:space-between;padding:6px 0 28px;color:#6f819b;font-size:12px;font-weight:700;text-align:right}
.chart-main{position:relative;padding-top:6px}
.chart-grid{position:absolute;inset:6px 0 28px 0;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none}
.chart-grid span{display:block;border-top:1px solid #e8eef8}
.bars-axis{position:relative;z-index:1;height:286px;padding:6px 0 0;gap:12px}
.bars-axis .bar-col{justify-content:flex-end;gap:8px}
.bars-axis .bar-fill{max-width:44px;width:100%;border-radius:12px 12px 4px 4px;background:linear-gradient(180deg,#7c8cff 0%,#5d5fee 100%)}
.bar-amount{font-size:10px;color:#7a879c;min-height:14px;visibility:hidden}
.bar-col:hover .bar-amount{visibility:visible}
.cards-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.search-box-wide{min-width:0;width:100%;justify-content:stretch}
.search-box-wide .search-icon{font-size:18px;color:#6b7c95}
.search-box-wide button{margin-left:auto}
.nav-ic{width:18px;height:18px;border-radius:0;background:transparent;opacity:1;display:inline-block;background-repeat:no-repeat;background-position:center;background-size:18px 18px}
.nav-ic-dashboard{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%230f172a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M4 12h4v8H4zm6-8h4v16h-4zm6 5h4v11h-4z'/%3E%3C/svg%3E")}
.nav a.active .nav-ic-dashboard{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M4 12h4v8H4zm6-8h4v16h-4zm6 5h4v11h-4z'/%3E%3C/svg%3E")}
.nav-ic-sim{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%230f172a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M8 3h6l5 5v13H5V3h3zm1 0v5h5'/%3E%3C/svg%3E")}
.nav a.active .nav-ic-sim{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M8 3h6l5 5v13H5V3h3zm1 0v5h5'/%3E%3C/svg%3E")}
.side-avatar{width:78px;height:78px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#dbeafe 0%,#bfdbfe 100%);border:1px solid #cfe0ff;overflow:hidden;margin-bottom:12px}.side-avatar img{width:100%;height:100%;object-fit:cover;display:block}
@media (max-width:1150px){.dashboard-split{grid-template-columns:1fr}.hero-card{align-items:flex-start;flex-direction:column}.hero-card h1{font-size:30px}.hero-greeting{font-size:24px}.cards-3{grid-template-columns:1fr}.chart-shell{grid-template-columns:48px 1fr}.bars-axis .bar-fill{max-width:28px}}

.month-picker-inline{justify-content:flex-end}.month-picker-inline select{min-width:130px;border:1px solid #dbe7ff;background:#fff}@media (max-width:1150px){.month-picker-inline{justify-content:flex-start}}

.nav-ic-sim{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Crect x='4.5' y='3.5' width='15' height='17' rx='2.5' stroke='%230f172a' stroke-width='1.8'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5' stroke='%230f172a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")}
.nav a.active .nav-ic-sim{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Crect x='4.5' y='3.5' width='15' height='17' rx='2.5' stroke='white' stroke-width='1.8'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")}
.nav-ic-lock{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Crect x='5' y='10' width='14' height='10' rx='2.5' stroke='%230f172a' stroke-width='1.8'/%3E%3Cpath d='M8 10V8a4 4 0 118 0v2' stroke='%230f172a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")}
.nav a.active .nav-ic-lock{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Crect x='5' y='10' width='14' height='10' rx='2.5' stroke='white' stroke-width='1.8'/%3E%3Cpath d='M8 10V8a4 4 0 118 0v2' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")}
.info-value-edit{display:flex;align-items:center;justify-content:space-between;gap:12px}
.inline-edit-btn{border:0;background:transparent;color:#7b8aa5;cursor:pointer;font-size:18px;line-height:1;padding:0 2px;opacity:.55}
.inline-edit-btn:hover{opacity:1;color:#2563eb}
.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.38);display:grid;place-items:center;z-index:80;padding:20px}
.modal-backdrop[hidden]{display:none}
.modal-card{width:min(460px,100%);background:#fff;border-radius:24px;border:1px solid #dbe7ff;box-shadow:0 30px 70px rgba(15,23,42,.25);padding:24px;position:relative}
.modal-card h3{margin:0 0 16px;font-size:24px}
.modal-close{position:absolute;right:16px;top:14px;border:0;background:transparent;font-size:28px;cursor:pointer;color:#64748b}
.modal-form .field input{height:48px}
.modal-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.password-hero{background:linear-gradient(135deg,#0f6fb2 0%,#d8effa 100%)}
.password-card{max-width:760px}
.password-form-grid{display:grid;gap:16px}
.password-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px}


.avatar-upload-form{display:inline-block}.avatar-input{display:none}.avatar-button{padding:0;border:0;cursor:pointer;box-shadow:0 8px 24px rgba(37,99,235,.12)}.avatar-button:hover{transform:translateY(-1px)}
.hero-card h1{font-size:30px}.hero-greeting{font-size:32px;font-weight:800;letter-spacing:-.02em}
.cards-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.info-value-edit{display:flex;align-items:center;justify-content:space-between;gap:10px}.inline-edit-btn{width:28px;height:28px;border-radius:999px;border:1px solid #dbe7ff;background:rgba(37,99,235,.06);color:#2563eb;cursor:pointer;font-size:14px;line-height:1;display:inline-flex;align-items:center;justify-content:center}.inline-edit-btn:hover{background:rgba(37,99,235,.12)}
.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.35);display:grid;place-items:center;padding:20px;z-index:1000}.modal-backdrop[hidden]{display:none}.modal-card{width:min(100%,420px);background:#fff;border:1px solid #dbe7ff;border-radius:24px;padding:22px;box-shadow:0 30px 60px rgba(15,23,42,.18);position:relative}.modal-close{position:absolute;right:14px;top:12px;border:0;background:transparent;font-size:28px;line-height:1;cursor:pointer;color:#64748b}.modal-form{display:grid;gap:14px}.modal-actions{display:flex;gap:10px;justify-content:flex-end}
@media (max-width:900px){.cards-2{grid-template-columns:1fr}.hero-card{padding:22px}.hero-card h1{font-size:24px}.hero-greeting{font-size:26px}}


.sim-usage-layout{display:grid;grid-template-columns:minmax(0,1.45fr) 340px;gap:18px;align-items:start}
.sim-usage-card .chart-shell{min-height:280px;grid-template-columns:58px 1fr}
.sim-usage-card .bars-axis{height:240px}
.sim-usage-card .bars-axis .bar-fill{max-width:40px}
.sim-usage-card .chart-stat strong{font-size:18px}
.sim-usage-card .chart-stat{min-width:120px}
.sim-header .top-actions{flex-wrap:wrap;justify-content:flex-end}
.info-value-edit{min-height:32px}
@media (max-width: 1024px){.sim-usage-layout{grid-template-columns:1fr}}

@media (max-width: 900px){
  .hero-card{padding:20px;border-radius:22px}
  .hero-card h1{font-size:30px}
  .hero-greeting{font-size:24px}
  .chart-stat-wrap{width:100%}
  .chart-stat{flex:1;min-width:0}
  .table-wrap{overflow:auto}
}

@media (max-height: 860px){
  .sidebar{padding:14px 14px 12px;gap:10px}
  .logo{max-height:34px;width:auto}
  .nav a{padding:11px 12px;border-radius:14px;font-size:15px}
  .side-user{padding:10px}
  .side-user .small{font-size:12px}
  .side-avatar{width:72px !important;height:72px !important}
  .side-actions{gap:8px}
  .side-actions .btn{height:40px !important}
}

@media (max-height: 860px){
  .admin-sidebar{padding:14px 14px 12px}
  .admin-sidebar .logo{max-height:34px;width:auto}
  .admin-nav{gap:8px}
  .admin-nav a{padding:10px 12px !important}
}


.side-avatar img{width:100%;height:100%;object-fit:cover;border-radius:999px}
.side-avatar{width:76px;height:76px;border-radius:999px;border:0;padding:0;background:transparent;overflow:hidden;cursor:pointer;display:block;margin-bottom:10px}
.avatar-input{display:none}
.side-user .small{font-size:12px}
@media (max-height: 860px){
  .sidebar{padding:14px 14px 12px;gap:10px;grid-template-rows:auto auto 1fr auto auto}
  .logo{width:128px;margin-bottom:2px}
  .nav a{padding:11px 12px;font-size:14px}
  .side-avatar{width:58px;height:58px;margin-bottom:8px}
  .side-user{padding:10px}
  .side-user .small{font-size:11px}
  .side-actions .btn{height:38px;padding:0 12px !important;font-size:13px !important}
}
@media (max-height: 740px){
  .side-user{padding:8px 10px}
  .side-user .small:last-of-type{display:none}
  .side-user div[style*='font-weight:800']{font-size:15px}
}
@media (max-height: 680px){
  .side-user{display:none}
  .side-actions{grid-template-columns:1fr}
}
@media (max-width: 1100px){
  .page-shell{grid-template-columns:1fr}
  .sidebar{position:sticky;top:0;bottom:auto;width:100%;height:auto;grid-template-rows:auto auto auto auto auto;z-index:30}
  .main{margin-left:0;padding:18px}
}


/* V32 sidebar compact and no lower scrolling gap */
.sidebar{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch;
  justify-content:flex-start !important;
  gap:4px !important;
  padding:16px 14px !important;
  overflow:hidden !important;
}
.logo{margin:0 auto 6px !important;max-height:40px;width:auto}
.nav{display:flex !important;flex-direction:column !important;gap:8px !important;align-content:stretch !important}
.nav a{padding:12px 14px !important;min-height:46px}
.side-user{
  margin-top:6px !important;
  padding:10px !important;
  border-radius:16px !important;
}
.side-user .small{font-size:12px !important;line-height:1.2}
.side-user .admin-as-customer{display:none !important}
.side-actions{display:grid !important;gap:8px !important;margin-top:0 !important}
.side-actions .btn{height:42px !important}
.side-avatar{width:64px !important;height:64px !important;margin-bottom:8px !important}
.main{margin-left:260px}
@media (max-height: 820px){
  .sidebar{padding:12px !important;gap:8px !important}
  .logo{max-height:34px !important}
  .nav a{padding:10px 12px !important;min-height:42px;font-size:14px}
  .side-user{padding:8px !important}
  .side-user .small{font-size:11px !important}
  .side-user .user-name{font-size:14px !important}
  .side-avatar{width:54px !important;height:54px !important;margin-bottom:6px !important}
  .side-actions .btn{height:38px !important;font-size:13px !important}
}
@media (max-height: 700px){
  .side-user{display:none !important}
}
@media (max-width:1150px){
  .sidebar{position:sticky !important;top:0 !important;left:auto !important;bottom:auto !important;width:100% !important;height:auto !important;overflow:visible !important}
  .main{margin-left:0 !important}
}


/* V33 compact top sidebar without stretching content */
.sidebar{
  width:230px !important;
  padding:14px 12px !important;
  gap:6px !important;
  justify-content:flex-start !important;
  align-content:flex-start !important;
}
.main{margin-left:230px !important;max-width:none !important;padding:22px 22px 30px !important}
.logo{max-height:38px !important;margin:0 auto 4px !important}
.nav a{min-height:44px !important;padding:11px 14px !important;font-size:15px !important}
.side-user{
  display:grid !important;
  grid-template-columns:56px 1fr !important;
  align-items:center !important;
  gap:6px !important;
  padding:10px !important;
  margin-top:4px !important;
  min-height:0 !important;
}
.side-avatar{width:56px !important;height:56px !important;margin:0 !important}
.side-user .small{margin:0 !important;font-size:11px !important}
.side-user .user-name, .side-user div[style*="font-weight:800"]{margin-top:2px !important;font-size:20px !important;line-height:1.05 !important}
.side-actions{margin-top:0 !important;gap:8px !important}
.side-actions .btn{height:40px !important;padding:0 12px !important}
.avatar-upload-form{margin:0 !important}
@media (max-height:780px){
  .side-user{grid-template-columns:48px 1fr !important;padding:8px !important}
  .side-avatar{width:48px !important;height:48px !important}
  .side-user .small{font-size:10px !important}
  .side-user .user-name, .side-user div[style*="font-weight:800"]{font-size:17px !important}
  .side-actions .btn{height:36px !important;font-size:13px !important}
}
@media (max-width:1150px){
  .sidebar{width:100% !important;position:sticky !important;top:0 !important;height:auto !important;overflow:visible !important}
  .main{margin-left:0 !important;padding:18px !important}
  .side-user{grid-template-columns:48px 1fr !important}
}


/* V34 restore full-width layout and keep login block at bottom */
.page-shell{
  display:block !important;
  min-height:100vh !important;
}
.sidebar{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  bottom:0 !important;
  width:260px !important;
  height:100vh !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  padding:18px 16px !important;
  gap:12px !important;
  overflow:hidden !important;
}
.logo{
  width:150px !important;
  max-width:100% !important;
  max-height:none !important;
  height:auto !important;
  margin:0 auto 6px !important;
}
.nav{
  display:flex !important;
  flex-direction:column !important;
  gap:8px !important;
  align-content:stretch !important;
}
.nav a{
  min-height:46px !important;
  padding:13px 15px !important;
  font-size:15px !important;
}
.side-user{
  margin-top:auto !important;
  display:block !important;
  padding:12px !important;
  border-radius:18px !important;
}
.side-avatar{
  width:72px !important;
  height:72px !important;
  margin:0 0 10px 0 !important;
}
.side-user .user-name,
.side-user div[style*="font-weight:800"]{
  font-size:16px !important;
  line-height:1.15 !important;
  margin-top:4px !important;
}
.side-user .small{
  font-size:12px !important;
  line-height:1.3 !important;
}
.side-user .admin-as-customer{
  display:none !important;
}
.side-actions{
  display:grid !important;
  gap:8px !important;
  margin-top:8px !important;
}
.side-actions .btn{
  height:44px !important;
}
.main{
  margin-left:260px !important;
  width:calc(100% - 260px) !important;
  max-width:none !important;
  padding:22px 24px 30px !important;
}
@media (max-height: 860px){
  .sidebar{padding:14px 14px 12px !important;gap:10px !important}
  .logo{width:132px !important}
  .nav a{min-height:42px !important;padding:11px 12px !important;font-size:14px !important}
  .side-user{padding:10px !important}
  .side-avatar{width:60px !important;height:60px !important;margin-bottom:8px !important}
  .side-actions .btn{height:40px !important;font-size:13px !important}
}
@media (max-height: 760px){
  .side-user .small.admin-as-customer{display:none !important}
  .side-user .small:last-of-type{display:none !important}
}
@media (max-height: 700px){
  .side-user{padding:8px !important}
  .side-avatar{width:52px !important;height:52px !important}
  .side-user .small{font-size:11px !important}
  .side-user .user-name,
  .side-user div[style*="font-weight:800"]{font-size:15px !important}
  .side-actions .btn{height:38px !important}
}
@media (max-width: 1150px){
  .page-shell{display:block !important}
  .sidebar{position:relative !important;top:auto !important;left:auto !important;bottom:auto !important;width:100% !important;height:auto !important;overflow:visible !important}
  .side-user{margin-top:6px !important}
  .main{margin-left:0 !important;width:100% !important;padding:18px !important}
}

/* V35 portal sidebar compact bottom profile without narrowing content */
.page-shell{display:flex !important;min-height:100vh !important}
.sidebar{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  bottom:0 !important;
  width:260px !important;
  height:100vh !important;
  padding:16px 14px !important;
  background:#fff !important;
  border-right:1px solid var(--line) !important;
  display:flex !important;
  flex-direction:column !important;
  gap:12px !important;
  overflow:hidden !important;
  z-index:30 !important;
}
.logo{width:138px !important;margin:0 auto 4px !important}
.nav{display:flex !important;flex-direction:column !important;gap:8px !important;margin:4px 0 auto !important;align-content:stretch !important}
.nav a{min-height:46px !important;padding:12px 14px !important;border-radius:16px !important}
.side-user{
  margin-top:auto !important;
  padding:12px !important;
  border-radius:18px !important;
  display:grid !important;
  grid-template-columns:60px 1fr !important;
  gap:12px !important;
  align-items:center !important;
  background:var(--surface-2) !important;
}
.avatar-upload-form{grid-row:1 / span 2}
.side-avatar,.avatar-button{width:60px !important;height:60px !important;min-width:60px !important;min-height:60px !important;margin:0 !important}
.side-user .small{font-size:12px !important;line-height:1.25 !important}
.side-user .user-name{font-size:16px !important;line-height:1.15 !important}
.admin-as-customer{display:block !important;margin-top:3px !important}
.side-actions{display:grid !important;gap:8px !important;margin-top:8px !important}
.side-actions .btn{height:42px !important;padding:0 14px !important;border-radius:14px !important}
.main{
  margin-left:260px !important;
  width:calc(100% - 260px) !important;
  max-width:none !important;
  flex:1 1 auto !important;
  padding:22px 24px 30px !important;
}
@media (max-height: 820px){
  .sidebar{padding:12px !important;gap:10px !important}
  .logo{width:126px !important}
  .nav a{min-height:42px !important;padding:10px 12px !important;font-size:14px !important}
  .side-user{grid-template-columns:52px 1fr !important;padding:10px !important}
  .side-avatar,.avatar-button{width:52px !important;height:52px !important;min-width:52px !important;min-height:52px !important}
  .side-user .small{font-size:11px !important}
  .side-user .user-name{font-size:15px !important}
  .side-actions .btn{height:38px !important;font-size:13px !important}
}
@media (max-height: 720px){
  .logo{width:118px !important}
  .nav a{min-height:38px !important;padding:9px 11px !important;font-size:13px !important}
  .side-user{padding:8px !important;gap:10px !important}
  .side-avatar,.avatar-button{width:46px !important;height:46px !important;min-width:46px !important;min-height:46px !important}
  .side-user .small{font-size:10px !important}
  .side-user .user-name{font-size:14px !important}
  .side-actions .btn{height:36px !important;font-size:12px !important}
}
@media (max-width: 1150px){
  .page-shell{display:block !important}
  .sidebar{position:relative !important;width:100% !important;height:auto !important;overflow:visible !important}
  .main{margin-left:0 !important;width:100% !important;padding:18px !important}
  .side-user{margin-top:8px !important}
}

.badge-orange{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#fff7ed;border:1px solid #fed7aa;color:#c2410c;font-weight:700;font-size:12px}


.clean-table tbody tr:nth-child(even){background:#fbfdff}
.clean-table tbody tr:hover{background:#f4f8ff}
.clean-table thead th{font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:#52637d}
.sim-header .top-actions .btn + .btn{margin-left:8px}
.month-picker label span,.toolbar-card .small.strong-dark{color:#0f172a}


.hero-card-simdetail{align-items:center}
.top-actions-hero{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.top-actions-hero .btn{background:rgba(255,255,255,.95)}
.login-right{min-height:420px}
@media (max-width:900px){.hero-card-simdetail{align-items:flex-start}.top-actions-hero{justify-content:flex-start}}

.month-picker .btn{display:none;}
.month-picker-top{margin-left:0;}
.month-picker-top label{display:flex;flex-direction:column;gap:6px;}
.sim-usage-layout.single-column{grid-template-columns:1fr;}
.detail-grid{grid-template-columns:1fr;}
@media (min-width:1100px){.detail-grid{grid-template-columns:1fr;}.sim-usage-layout.single-column{grid-template-columns:1fr;}}

.data-main-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.status-badge{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800;line-height:1;white-space:nowrap;border:1px solid transparent}
.status-badge.is-active{background:#edfdf3;border-color:#c7f0d3;color:#148246}
.status-badge.is-inactive{background:#fff7ed;border-color:#fed7aa;color:#c2410c}
.status-badge.is-blocked{background:#fef2f2;border-color:#fecaca;color:#b91c1c}
.status-pill.is-active{background:#edfdf3;border-color:#c7f0d3;color:#148246}
.status-pill.is-active .dot{background:#22c55e}
.status-pill.is-inactive{background:#fff7ed;border-color:#fed7aa;color:#c2410c}
.status-pill.is-inactive .dot{background:#f97316}
.status-pill.is-blocked{background:#fef2f2;border-color:#fecaca;color:#b91c1c}
.status-pill.is-blocked .dot{background:#ef4444}
.extras-split{grid-template-columns:1fr 1fr}
.nav-ic-log{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%230f172a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M8 7V3m8 4V3M5 11h14M7 21h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2Zm1-6h4m-4 4h8'/%3E%3C/svg%3E")}
.inline-edit-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:999px;border:1px solid #dbe7ff;background:#f4f8ff;color:#5d5fee;font-weight:700;cursor:pointer}
.inline-edit-btn:hover{background:#eaf1ff}
.info-value-edit{display:flex;align-items:center;justify-content:space-between;gap:10px}
@media (max-width: 900px){.extras-split{grid-template-columns:1fr}}


/* v55 polish */
.month-picker-inline select{min-width:220px}
.month-picker-inline label,.month-picker-inline span{display:none}
.status-dot-badge{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:#0f172a}.status-dot-badge .dot{width:10px;height:10px;border-radius:999px;display:inline-block;background:#94a3b8}.status-dot-badge.is-active .dot{background:#10b981}.status-dot-badge.is-inactive .dot{background:#f59e0b}.status-dot-badge.is-blocked .dot{background:#ef4444}
.login-sub{margin-bottom:22px}.login-links{display:none!important}.login-card{max-width:430px}.login-shell{background:linear-gradient(135deg,#eaf6ff 0%,#f7fbff 100%)}
.password-page-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:stretch}.password-side-visual{border-radius:28px;background:linear-gradient(135deg,rgba(19,133,199,.18),rgba(195,238,242,.35)),url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=900&q=80') center/cover no-repeat;min-height:100%}.password-hero-image{background:linear-gradient(135deg,#1385c7 0%,#c3eef2 100%)}
@media (max-width: 1000px){.password-page-grid{grid-template-columns:1fr}.password-side-visual{min-height:220px}}
.info-value-edit{display:flex;align-items:center;justify-content:space-between;gap:10px}.inline-edit-btn{border:1px solid #dbe7ff;background:#f5f9ff;color:#3366ff;border-radius:999px;width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}

.status-only-dot{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:999px;border:1px solid #dbe7ff;background:#fff}.status-only-dot .dot{width:10px;height:10px;border-radius:999px;display:inline-block;background:#94a3b8}.status-only-dot.is-active .dot{background:#10b981}.status-only-dot.is-inactive .dot{background:#f59e0b}.status-only-dot.is-blocked .dot{background:#ef4444}

.sim-mini-list{display:grid;gap:12px}.sim-mini-item{border:1px solid #dbe7ff;border-radius:16px;padding:14px;background:#f8fbff}.sim-mini-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.sim-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sim-mini-grid input{width:100%;padding:12px 14px;border-radius:12px;border:1px solid #dbe7ff;background:#fff}@media (max-width:900px){.sim-mini-grid{grid-template-columns:1fr}}

/* v57 admin style polish */
.admin-main,.admin-wrap{max-width:none}
.admin-main .card,.admin-main .table-wrap,.admin-main .stat-card,.admin-main .hero-card,
.admin-wrap .card,.admin-wrap .table-wrap,.admin-wrap .stat-card,.admin-wrap .hero-card{
  box-shadow:0 16px 38px rgba(15,35,95,.06);
}
.admin-main h1,.admin-wrap h1{letter-spacing:-.02em}
.admin-main .card h3,.admin-wrap .card h3{font-size:20px;line-height:1.2;color:#0f172a}
.admin-main .small,.admin-wrap .small{color:#5f7190}
.admin-main .btn,.admin-wrap .btn{height:46px;border-radius:15px}
.admin-main .btn.primary,.admin-wrap .btn.primary{box-shadow:0 14px 28px rgba(37,99,235,.18)}
.admin-main .table-wrap th,.admin-wrap .table-wrap th{font-size:11px;letter-spacing:.08em;color:#6a7a95}
.admin-main .table-wrap td,.admin-wrap .table-wrap td{font-size:14px;color:#12233f}
.admin-sidebar,.admin-page .admin-sidebar{background:linear-gradient(180deg,#0f172a 0%,#14213d 100%)}
.admin-nav a,.admin-page .admin-sidebar nav a{border:1px solid transparent}
.admin-nav a:hover,.admin-page .admin-sidebar nav a:hover{border-color:rgba(255,255,255,.08)}
.login-shell{background:linear-gradient(180deg,#eef4ff 0%,#e8f2ff 100%)}
.login-left{background:rgba(255,255,255,.82);backdrop-filter:blur(10px)}
.login-title{font-size:40px;letter-spacing:-.03em}
.login-sub{max-width:28ch}
.login-right{background:linear-gradient(135deg,#1385c7 0%,#c3eef2 100%)}
.preview-frame{background:rgba(255,255,255,.2);border-color:rgba(255,255,255,.5)}
.preview-window{border-color:rgba(255,255,255,.75)}
@media (max-width:900px){
  .login-shell{grid-template-columns:1fr}
  .login-right{display:none}
}


/* v60 polish */
.admin-nav a,.admin-page .admin-sidebar nav a{display:flex;align-items:center;min-height:46px;box-sizing:border-box;white-space:nowrap}
.status-only-dot{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:999px;background:transparent}
.status-only-dot .dot{display:block;width:10px;height:10px;border-radius:999px;background:#94a3b8}
.status-only-dot.is-active .dot{background:#10b981}
.status-only-dot.is-blocked .dot{background:#ef4444}
.status-only-dot.is-inactive .dot{background:#f59e0b}
.sim-main-with-dot{display:inline-flex;align-items:center;gap:10px}
.password-page-grid{grid-template-columns:minmax(0,1fr)!important}
.password-side-visual{display:none!important}
.auth-page{min-height:100vh;margin:0;background:linear-gradient(135deg,#1385c7 0%,#c3eef2 100%);display:flex;align-items:center;justify-content:center;padding:24px}
.auth-shell{width:100%;max-width:520px}
.auth-card-simple{background:rgba(255,255,255,.92);border:1px solid #dbe7ff;border-radius:28px;padding:36px;box-shadow:0 20px 55px rgba(18,35,71,.10)}
.auth-note{margin-top:16px;color:#5f6f8f;font-size:14px;line-height:1.6}

.admin-nav a,.admin-page .admin-sidebar nav a{width:100%;justify-content:flex-start;line-height:1.2} .table-wrap.clean-table td.mono{white-space:nowrap} .table-wrap.clean-table td,.table-wrap.clean-table th{vertical-align:middle} .admin-main .table-wrap.clean-table td .status-only-dot{margin:0 auto;}

.admin-nav a,.admin-page .admin-sidebar nav a{font-family:inherit!important;font-size:14px!important;font-weight:700!important;line-height:1.2!important;letter-spacing:0!important;text-transform:none!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;}
.admin-sidebar,.admin-nav,.admin-nav a{box-sizing:border-box;}


/* v79 admin/table polish */
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.table-wrap table{width:100%;min-width:100%;table-layout:auto}
.table-wrap.clean-table table{min-width:100%}
.admin-main{max-width:none !important;width:calc(100% - 260px)}
.toolbar-card{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:26px 28px;border-radius:28px;background:linear-gradient(135deg,#1385c7 0%,#c3eef2 100%);color:#06233c;margin-bottom:18px;box-shadow:var(--shadow);border:0}
.toolbar-card h1{margin:8px 0 0;font-size:38px;line-height:1.04;color:#06233c}
.toolbar-card .eyebrow,.toolbar-card .small,.toolbar-card .small.strong-dark{color:#06233c !important}
.toolbar-card .top-actions,.hero-card .top-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.toolbar-card .btn,.hero-card .btn{height:46px;border-radius:15px}
@media (max-width:1150px){.toolbar-card{align-items:flex-start;flex-direction:column}.toolbar-card h1{font-size:30px}}
@media (max-width:900px){.toolbar-card{padding:22px}.toolbar-card h1{font-size:24px}}


/* v85 admin premium spacing */
.admin-shell{align-items:flex-start;gap:0}
.admin-main,.admin-page .admin-content,.admin-wrap{flex:1;min-width:0;max-width:none!important;width:auto!important;box-sizing:border-box}
.admin-main{padding:24px 28px 32px!important}
.admin-main > .hero-card,.admin-main > .toolbar-card{margin-top:8px}
.admin-main > .hero-card:first-child,.admin-main > .toolbar-card:first-child{margin-top:6px}
.admin-main .hero-card,.admin-main .toolbar-card{border-radius:28px}
.admin-main .card{border-radius:24px}
.admin-main .table-wrap{overflow-x:auto;width:100%}
.admin-main .table-wrap table{width:100%;min-width:100%;table-layout:auto}
.admin-main section{width:100%}
.admin-summary-grid,.admin-dashboard-grid{margin-top:18px}
.admin-nav a,.admin-page .admin-sidebar nav a{height:46px;min-height:46px;padding:0 16px;font-size:15px!important}
@media (max-width:1150px){.admin-main{padding:20px!important}}
@media (max-width:900px){.admin-main{padding:16px!important}}


/* v86 admin polish */
.admin-main{padding:32px 32px 36px!important;}
.admin-main > .admin-wrap{padding-top:4px;}
.admin-wrap > .hero-card:first-child, .admin-main > .hero-card:first-child, .admin-main > .toolbar-card:first-child{margin-top:18px!important;}
.admin-wrap section.card:first-of-type, .admin-wrap .form-section:first-of-type{margin-top:0;}
.admin-shell{align-items:stretch;}
.admin-nav{display:flex;flex-direction:column;gap:8px;}
.table-wrap.clean-table table{width:100%;min-width:1100px;}
.clean-table.compact table{min-width:900px;}
#logs-page .table-wrap.clean-table table{min-width:1200px;}
.status-only-dot{min-width:18px;}
.filter-grid{display:grid;grid-template-columns:minmax(260px,1.2fr) minmax(180px,.8fr) auto;gap:14px;align-items:end;}
@media (max-width:900px){.filter-grid{grid-template-columns:1fr;}}


/* v87 consistent admin widths and headers */
.admin-main > form,
.admin-main > section,
.admin-main > .form-section,
.admin-main > .card,
.admin-main > .flash,
.admin-main > .table-wrap,
.admin-main > .admin-header,
.admin-main > .hero-card,
.admin-main > .toolbar-card,
.admin-main > .admin-wrap,
.admin-main > .stack-gap{width:100%;max-width:none!important;box-sizing:border-box;}
.admin-main > .admin-header,
.admin-wrap > .admin-header{
  display:flex;justify-content:space-between;align-items:flex-end;gap:18px;
  padding:26px 28px;border-radius:28px;background:linear-gradient(135deg,#1385c7 0%,#c3eef2 100%);
  color:#06233c;margin:18px 0 18px;box-shadow:var(--shadow);border:0;
}
.admin-main > .admin-header h1,
.admin-wrap > .admin-header h1{margin:8px 0 0;font-size:38px;line-height:1.04;color:#06233c}
.admin-main > .admin-header .eyebrow,
.admin-main > .admin-header .small,
.admin-wrap > .admin-header .eyebrow,
.admin-wrap > .admin-header .small{color:#06233c!important}
.admin-main > .admin-header .top-actions,
.admin-wrap > .admin-header .top-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.admin-main{padding-top:8px!important}
.form-section,.card,.toolbar-card,.hero-card,.admin-header{width:100%;max-width:none!important;box-sizing:border-box}
@media (max-width:1150px){
  .admin-main > .admin-header,.admin-wrap > .admin-header{align-items:flex-start;flex-direction:column}
  .admin-main > .admin-header h1,.admin-wrap > .admin-header h1{font-size:30px}
}
@media (max-width:900px){
  .admin-main > .admin-header,.admin-wrap > .admin-header{padding:22px}
  .admin-main > .admin-header h1,.admin-wrap > .admin-header h1{font-size:24px}
}


/* v113 dashboard/header alignment */
.chart-header-row{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;width:100%}
.chart-header-row > div:first-child{min-width:0;flex:1 1 auto}
.chart-stat-wrap{margin-left:auto;display:flex;justify-content:flex-end;align-items:stretch;gap:10px;flex-wrap:wrap}
.card-hero-chart .chart-stat-wrap{max-width:100%}
.card-hero-chart .chart-stat{min-width:145px}
.hero-card h1,.admin-main > .admin-header h1,.admin-wrap > .admin-header h1,.toolbar-card h1{font-size:36px;line-height:1.05}
.hero-greeting,.admin-main > .admin-header .eyebrow,.admin-wrap > .admin-header .eyebrow{font-size:14px;letter-spacing:.08em;text-transform:none;font-weight:800}
@media (max-width:1150px){
  .chart-header-row{flex-direction:column;align-items:flex-start}
  .chart-stat-wrap{margin-left:0;justify-content:flex-start;width:100%}
}
@media (max-width:900px){
  .hero-card h1,.admin-main > .admin-header h1,.admin-wrap > .admin-header h1,.toolbar-card h1{font-size:28px}
}


/* ===== FINAL INTEGRATED PATCH ===== */
/* Light mode forced everywhere */
html, body, html.dark, body.dark,
[data-theme="dark"], html[data-theme="dark"], body[data-theme="dark"]{
  background:#eef3fb !important;
  color:#0f2a44 !important;
}
.admin-wrap,.admin-main,.admin-content,.content,.page-content,.main-content,
.portal-wrap,.portal-main,.portal-content,.customer-wrap,.main{
  background:transparent !important;
  color:#0f2a44 !important;
}

/* Blue hero banner back */
.hero-card{
  background:linear-gradient(90deg,#2f8fd4 0%, #a7d8e5 100%) !important;
  border:1px solid rgba(47,143,212,.18) !important;
}
.hero-greeting{color:#07294a !important;font-size:36px !important;font-weight:800 !important;letter-spacing:-.02em !important}
.hero-card h1,.hero-card .hero-title{color:#07294a !important}

/* login subtitle one line */
.login-sub{white-space:nowrap !important}

/* Status classes from functions */
.status-green .dot,.status-green.status-only-dot .dot,.status-pill.status-green .dot,.status-badge.status-green .dot{background:#22c55e !important}
.status-red .dot,.status-red.status-only-dot .dot,.status-pill.status-red .dot,.status-badge.status-red .dot{background:#ef4444 !important}
.status-orange .dot,.status-orange.status-only-dot .dot,.status-pill.status-orange .dot,.status-badge.status-orange .dot{background:#f59e0b !important}
.status-pill.status-green,.status-badge.status-green{background:#edfdf3 !important;border-color:#c7f0d3 !important;color:#148246 !important}
.status-pill.status-red,.status-badge.status-red{background:#fef2f2 !important;border-color:#fecaca !important;color:#b91c1c !important}
.status-pill.status-orange,.status-badge.status-orange{background:#fff7ed !important;border-color:#fed7aa !important;color:#c2410c !important}
.status-only-dot .dot,.status-pill .dot,.status-badge .dot{box-shadow:0 0 0 4px #edf4ff !important}

/* Graphs: baseline with labels below */
.chart-shell{display:grid !important;grid-template-columns:68px 1fr !important;gap:12px !important;align-items:stretch !important;overflow:hidden !important}
.chart-y{display:flex !important;flex-direction:column !important;justify-content:space-between !important;padding:6px 0 34px !important;color:#6f819b !important;font-size:12px !important;font-weight:700 !important;text-align:right !important}
.chart-main{position:relative !important;overflow:hidden !important;padding-top:6px !important}
.chart-grid{position:absolute !important;inset:6px 0 34px 0 !important;display:flex !important;flex-direction:column !important;justify-content:space-between !important;pointer-events:none !important}
.chart-grid span{display:block !important;width:100% !important;border-top:1px solid #dbe6f4 !important}
.bars-axis,.bars.bars-axis{position:relative !important;height:286px !important;display:flex !important;align-items:flex-end !important;gap:10px !important;padding:0 6px 34px 0 !important;box-sizing:border-box !important}
.bar-col{flex:1 1 0 !important;min-width:0 !important;height:100% !important;display:flex !important;flex-direction:column !important;justify-content:flex-end !important;align-items:center !important;position:relative !important}
.bar-fill{width:100% !important;max-width:42px !important;margin:0 auto !important;border-radius:12px 12px 0 0 !important;align-self:center !important}
.bar-amount{display:none !important}
.bar-label{position:absolute !important;bottom:0 !important;left:50% !important;transform:translateX(-50%) !important;color:#60759a !important;font-size:11px !important;line-height:1 !important;white-space:nowrap !important}
.card .chart-shell::before,.card .chart-shell::after,.chart-main::before,.chart-main::after,.bars::before,.bars::after{content:none !important;border:none !important;box-shadow:none !important;background:none !important}

/* Dashboard recent login compact */
.admin-dashboard-grid{grid-template-columns:1.3fr .8fr !important}
@media (max-width:1200px){.admin-dashboard-grid{grid-template-columns:1fr !important}}

/* FINAL FORCE FIX */

/* banner blue */
.hero-card,.admin-header.hero-card{background:linear-gradient(90deg,#2f8fd4,#a7d8e5)!important}

/* recent login smaller */
.dashboard-row-secondary,.dashboard-split{display:flex!important;gap:18px!important;align-items:flex-start!important}
.recent-login-card{flex:0 0 420px!important;max-width:420px!important}
.top-sims-card{flex:1 1 auto!important}

/* status colors force */
.status-active,.status-active .dot{color:#16a34a!important}
.status-active .dot{background:#22c55e!important}
.status-blocked,.status-blocked .dot{color:#dc2626!important}
.status-blocked .dot{background:#ef4444!important}

/* charts fix */
.bars-axis{align-items:flex-end!important;padding-bottom:32px!important}
.bar-label{bottom:0!important;position:absolute!important}


/* FINAL precise chart alignment fix */
.chart-shell{overflow:visible!important}
.chart-y{padding:6px 0 52px!important}
.chart-main{padding-top:6px!important;overflow:visible!important}
.chart-grid{inset:6px 0 52px 0!important}
.bars-axis,.bars.bars-axis{
  height:300px!important;
  padding:0 6px 0 0!important;
  align-items:stretch!important;
  gap:10px!important;
}
.bars-axis .bar-col{
  height:100%!important;
  display:grid!important;
  grid-template-rows:1fr 52px!important;
  align-items:stretch!important;
  justify-items:center!important;
}
.bars-axis .bar-col .bar-fill{
  align-self:end!important;
  width:100%!important;
  max-width:36px!important;
  margin:0 auto!important;
  border-radius:12px 12px 0 0!important;
}
.bars-axis .bar-label{
  position:static!important;
  transform:none!important;
  left:auto!important;
  bottom:auto!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:2px!important;
  padding-top:8px!important;
  line-height:1.05!important;
  min-height:52px!important;
  color:#60759a!important;
  white-space:nowrap!important;
}
.bar-day{display:block;font-size:11px;font-weight:700;line-height:1}
.bar-month{display:block;font-size:11px;line-height:1}
.bar-amount{display:none!important}

/* Recent login compact so it fits on one page */
.recent-login-card{display:block!important;flex:0 0 auto!important;max-width:none!important}
.table-wrap.clean-table.compact{max-height:320px;overflow:auto}
.table-wrap.compact td,.table-wrap.compact th{padding:9px 12px!important;font-size:13px!important;line-height:1.25!important}

/* FINAL HARD FIX: greeting normal case + charts on 0-line */
.hero-greeting{
  text-transform:none !important;
  letter-spacing:-0.02em !important;
}

.chart-shell{
  overflow:visible !important;
}
.chart-y{
  padding:6px 0 42px !important;
}
.chart-main{
  position:relative !important;
  overflow:visible !important;
  padding-top:6px !important;
}
.chart-grid{
  inset:6px 0 42px 0 !important;
}
.bars-axis,
.bars.bars-axis{
  height:286px !important;
  display:flex !important;
  align-items:stretch !important;
  gap:6px !important;
  padding:0 6px 0 0 !important;
  box-sizing:border-box !important;
}
.bars-axis .bar-col,
.bars.bars-axis .bar-col{
  flex:1 1 0 !important;
  min-width:0 !important;
  height:100% !important;
  display:grid !important;
  grid-template-rows:minmax(0,1fr) 42px !important;
  align-items:stretch !important;
  justify-items:center !important;
}
.bars-axis .bar-fill,
.bars.bars-axis .bar-fill{
  grid-row:1 !important;
  align-self:end !important;
  width:calc(100% - 2px) !important;
  max-width:none !important;
  min-width:18px !important;
  min-height:0 !important;
  margin:0 auto !important;
  border-radius:12px 12px 0 0 !important;
}
.bars-axis .bar-label,
.bars.bars-axis .bar-label{
  grid-row:2 !important;
  position:static !important;
  left:auto !important;
  bottom:auto !important;
  transform:none !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:2px !important;
  width:100% !important;
  min-height:42px !important;
  padding-top:6px !important;
  line-height:1.05 !important;
  white-space:nowrap !important;
}
.bar-day,
.bar-month{
  display:block !important;
}

.table-wrap.compact td,
.table-wrap.compact th{
  padding:10px 12px !important;
}
.table-wrap.compact{
  max-height:420px !important;
  overflow:auto !important;
}


/* 2026-03-31 final real chart fix */
.hero-greeting,
.admin-main > .admin-header .eyebrow,
.admin-wrap > .admin-header .eyebrow{
  text-transform:none !important;
  letter-spacing:-0.02em !important;
}

.chart-shell{
  display:grid !important;
  grid-template-columns:68px 1fr !important;
  gap:12px !important;
  align-items:stretch !important;
  min-height:320px !important;
  overflow:visible !important;
}
.chart-y{
  display:flex !important;
  flex-direction:column !important;
  justify-content:space-between !important;
  padding:6px 0 42px !important;
  color:#6f819b !important;
  font-size:12px !important;
  font-weight:700 !important;
  text-align:right !important;
}
.chart-main{
  position:relative !important;
  padding-top:6px !important;
  overflow:visible !important;
}
.chart-grid{
  position:absolute !important;
  inset:6px 0 42px 0 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:space-between !important;
  pointer-events:none !important;
}
.chart-grid span{
  display:block !important;
  width:100% !important;
  border-top:1px solid #dbe6f4 !important;
}
.bars-axis,
.bars.bars-axis{
  position:relative !important;
  z-index:1 !important;
  height:286px !important;
  display:flex !important;
  align-items:stretch !important;
  gap:6px !important;
  padding:0 !important;
  box-sizing:border-box !important;
}
.bars-axis .bar-col,
.bars.bars-axis .bar-col{
  flex:1 1 0 !important;
  min-width:0 !important;
  height:100% !important;
  display:grid !important;
  grid-template-rows:minmax(0,1fr) 42px !important;
  align-items:stretch !important;
  justify-items:center !important;
}
.bars-axis .bar-plot,
.bars.bars-axis .bar-plot{
  width:100% !important;
  height:100% !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:center !important;
}
.bars-axis .bar-fill,
.bars.bars-axis .bar-fill{
  width:100% !important;
  max-width:none !important;
  min-width:14px !important;
  min-height:0 !important;
  margin:0 auto !important;
  border-radius:12px 12px 0 0 !important;
}
.bars-axis .bar-label,
.bars.bars-axis .bar-label{
  position:static !important;
  transform:none !important;
  left:auto !important;
  bottom:auto !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:2px !important;
  width:100% !important;
  min-height:42px !important;
  padding-top:6px !important;
  color:#60759a !important;
  font-size:11px !important;
  line-height:1.05 !important;
  white-space:nowrap !important;
}
.bar-day,
.bar-month{
  display:block !important;
  line-height:1 !important;
}
.bar-amount{display:none !important;}

@media (max-width:1150px){
  .chart-shell{grid-template-columns:52px 1fr !important;}
  .bars-axis .bar-fill,.bars.bars-axis .bar-fill{max-width:36px !important;}
}

/* 2026-03-31 definitive clean chart fix */
.hero-greeting,
.admin-main > .admin-header .eyebrow,
.admin-wrap > .admin-header .eyebrow{
  text-transform:none !important;
  letter-spacing:-0.02em !important;
}

.chart-shell{
  --chart-plot-h: 250px;
  --chart-label-h: 44px;
  display:grid !important;
  grid-template-columns:68px 1fr !important;
  gap:12px !important;
  align-items:start !important;
  overflow:visible !important;
}
.chart-y{
  height:calc(var(--chart-plot-h) + var(--chart-label-h)) !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:space-between !important;
  padding:0 0 var(--chart-label-h) 0 !important;
  color:#6f819b !important;
  font-size:12px !important;
  font-weight:700 !important;
  text-align:right !important;
  box-sizing:border-box !important;
}
.chart-main{
  position:relative !important;
  height:calc(var(--chart-plot-h) + var(--chart-label-h)) !important;
  padding:0 !important;
  overflow:visible !important;
}
.chart-grid{
  position:absolute !important;
  left:0 !important;
  right:12px !important;
  top:0 !important;
  bottom:var(--chart-label-h) !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:space-between !important;
  pointer-events:none !important;
}
.chart-grid span{
  display:block !important;
  width:100% !important;
  border-top:1px solid #dbe6f4 !important;
}
.bars-axis,
.bars.bars-axis{
  position:relative !important;
  z-index:1 !important;
  height:calc(var(--chart-plot-h) + var(--chart-label-h)) !important;
  display:flex !important;
  align-items:stretch !important;
  gap:6px !important;
  padding:0 12px 0 0 !important;
  box-sizing:border-box !important;
}
.bars-axis .bar-col,
.bars.bars-axis .bar-col{
  flex:1 1 0 !important;
  min-width:0 !important;
  height:100% !important;
  display:grid !important;
  grid-template-rows:var(--chart-plot-h) var(--chart-label-h) !important;
  align-items:stretch !important;
  justify-items:center !important;
}
.bars-axis .bar-plot,
.bars.bars-axis .bar-plot{
  grid-row:1 !important;
  width:100% !important;
  height:100% !important;
  display:flex !important;
  align-items:flex-end !important;
  justify-content:center !important;
  overflow:hidden !important;
}
.bars-axis .bar-fill,
.bars.bars-axis .bar-fill{
  grid-row:1 !important;
  align-self:end !important;
  width:100% !important;
  max-width:none !important;
  min-width:14px !important;
  margin:0 auto !important;
  border-radius:12px 12px 0 0 !important;
}
.bars-axis .bar-label,
.bars.bars-axis .bar-label{
  grid-row:2 !important;
  position:static !important;
  transform:none !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:2px !important;
  width:100% !important;
  min-height:var(--chart-label-h) !important;
  height:var(--chart-label-h) !important;
  padding-top:6px !important;
  margin:0 !important;
  color:#60759a !important;
  font-size:11px !important;
  line-height:1.05 !important;
  white-space:nowrap !important;
}
.bar-day,.bar-month{
  display:block !important;
  line-height:1 !important;
}
.bar-amount{display:none !important;}

.table-wrap.clean-table.compact{
  max-height:none !important;
  overflow:visible !important;
}
.table-wrap.compact td,
.table-wrap.compact th{
  padding:8px 10px !important;
  font-size:12px !important;
}

@media (max-width:1150px){
  .chart-shell{grid-template-columns:52px 1fr !important;}
  .bars-axis .bar-fill,.bars.bars-axis .bar-fill{max-width:32px !important;}
}


/* Final admin dashboard polish */
.admin-dashboard-grid{
  display:grid !important;
  grid-template-columns:minmax(0,1.45fr) minmax(430px,0.95fr) !important;
  gap:18px !important;
  align-items:start !important;
}
.admin-dashboard-grid > .card{
  align-self:start !important;
}
.admin-dashboard-grid > .card:last-child{
  max-width:760px !important;
  justify-self:end !important;
}
.admin-dashboard-grid > .card:first-child{
  min-width:0 !important;
}
.admin-dashboard-grid .table-wrap.clean-table.compact{
  max-height:none !important;
  overflow:visible !important;
}
.admin-dashboard-grid > .card:last-child table{
  width:100% !important;
  table-layout:auto !important;
}
.admin-dashboard-grid > .card:last-child th,
.admin-dashboard-grid > .card:last-child td{
  padding:9px 12px !important;
  font-size:13px !important;
  white-space:nowrap !important;
}
.admin-dashboard-grid > .card:first-child th,
.admin-dashboard-grid > .card:first-child td{
  padding:9px 12px !important;
}
.recent-login-card{
  display:block !important;
  font-size:inherit !important;
  font-weight:inherit !important;
}
@media (max-width:1280px){
  .admin-dashboard-grid{
    grid-template-columns:1fr !important;
  }
  .admin-dashboard-grid > .card:last-child{
    max-width:none !important;
    justify-self:stretch !important;
  }
}

/* FINAL dashboard table proportion fix */
.admin-dashboard-grid{
  display:grid !important;
  grid-template-columns:minmax(0,1.35fr) minmax(0,0.95fr) !important;
  gap:18px !important;
  align-items:start !important;
}
.admin-dashboard-grid > .card{
  min-width:0 !important;
  width:100% !important;
  max-width:none !important;
  justify-self:stretch !important;
}
.admin-dashboard-grid .table-wrap.clean-table.compact{
  max-height:none !important;
  overflow:visible !important;
  width:100% !important;
}
.admin-dashboard-grid .table-wrap.clean-table.compact table,
.admin-dashboard-grid .clean-table.compact table{
  min-width:0 !important;
  width:100% !important;
  table-layout:fixed !important;
}
.admin-dashboard-grid > .card:first-child table colgroup,
.admin-dashboard-grid > .card:last-child table colgroup{
  display:none !important;
}
.admin-dashboard-grid > .card:first-child th,
.admin-dashboard-grid > .card:first-child td,
.admin-dashboard-grid > .card:last-child th,
.admin-dashboard-grid > .card:last-child td{
  padding:10px 12px !important;
  font-size:13px !important;
  vertical-align:top !important;
}
.admin-dashboard-grid > .card:first-child th,
.admin-dashboard-grid > .card:last-child th{
  white-space:nowrap !important;
}
.admin-dashboard-grid > .card:first-child td,
.admin-dashboard-grid > .card:last-child td{
  white-space:normal !important;
  word-break:break-word !important;
}
/* top sims widths */
.admin-dashboard-grid > .card:first-child th:nth-child(1),
.admin-dashboard-grid > .card:first-child td:nth-child(1){width:60px !important}
.admin-dashboard-grid > .card:first-child th:nth-child(2),
.admin-dashboard-grid > .card:first-child td:nth-child(2){width:155px !important}
.admin-dashboard-grid > .card:first-child th:nth-child(3),
.admin-dashboard-grid > .card:first-child td:nth-child(3){width:240px !important}
.admin-dashboard-grid > .card:first-child th:nth-child(5),
.admin-dashboard-grid > .card:first-child td:nth-child(5){width:120px !important; white-space:nowrap !important}
/* recent login widths */
.admin-dashboard-grid > .card:last-child th:nth-child(1),
.admin-dashboard-grid > .card:last-child td:nth-child(1){width:105px !important; white-space:nowrap !important}
.admin-dashboard-grid > .card:last-child th:nth-child(2),
.admin-dashboard-grid > .card:last-child td:nth-child(2){width:140px !important}
.admin-dashboard-grid > .card:last-child th:nth-child(3),
.admin-dashboard-grid > .card:last-child td:nth-child(3){width:110px !important}
.admin-dashboard-grid > .card:last-child th:nth-child(4),
.admin-dashboard-grid > .card:last-child td:nth-child(4){width:130px !important; white-space:nowrap !important}
@media (max-width:1280px){
  .admin-dashboard-grid{grid-template-columns:1fr !important;}
  .admin-dashboard-grid .table-wrap.clean-table.compact{overflow-x:auto !important;}
  .admin-dashboard-grid .table-wrap.clean-table.compact table{min-width:760px !important; table-layout:auto !important;}
}


/* 2026-03-31 final build: tighter chart ratio + remove header stat */
.chart-shell{--chart-plot-h:248px !important;--chart-label-h:44px !important;}
.chart-main{height:calc(var(--chart-plot-h) + var(--chart-label-h)) !important;}
.chart-y{height:calc(var(--chart-plot-h) + var(--chart-label-h)) !important;}
.chart-header-row{align-items:flex-start !important;}
.chart-header-row .chart-stat-wrap{display:none !important;}


/* 2026-03-31 real final fixes */
.bars-axis,
.bars.bars-axis{
  gap:2px !important;
  padding:0 16px 0 0 !important;
}
.bars-axis .bar-col,
.bars.bars-axis .bar-col{
  min-width:24px !important;
}
.bars-axis .bar-plot,
.bars.bars-axis .bar-plot{
  width:100% !important;
}
.bars-axis .bar-fill,
.bars.bars-axis .bar-fill{
  width:calc(100% - 2px) !important;
  min-width:22px !important;
  max-width:none !important;
}
.chart-grid{right:16px !important;}
@media (max-width:1150px){
  .bars-axis .bar-col,.bars.bars-axis .bar-col{min-width:18px !important;}
  .bars-axis .bar-fill,.bars.bars-axis .bar-fill{min-width:16px !important;}
}


/* 2026-03-31 mobile + recent login spacing tune */
.admin-dashboard-grid{
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr) !important;
  gap:12px !important;
  align-items:start !important;
}
.admin-dashboard-grid > .card{
  margin:0 !important;
}
.admin-dashboard-grid > .card:last-child{
  justify-self:stretch !important;
}
.admin-dashboard-grid > .card:first-child table,
.admin-dashboard-grid > .card:last-child table{
  width:100% !important;
}
.admin-dashboard-grid > .card:first-child th,
.admin-dashboard-grid > .card:first-child td,
.admin-dashboard-grid > .card:last-child th,
.admin-dashboard-grid > .card:last-child td{
  padding:10px 12px !important;
}
.admin-dashboard-grid > .card:first-child th:nth-child(3),
.admin-dashboard-grid > .card:first-child td:nth-child(3){width:220px !important;}
.admin-dashboard-grid > .card:last-child th:nth-child(1),
.admin-dashboard-grid > .card:last-child td:nth-child(1){width:96px !important;}
.admin-dashboard-grid > .card:last-child th:nth-child(2),
.admin-dashboard-grid > .card:last-child td:nth-child(2){width:120px !important;}
.admin-dashboard-grid > .card:last-child th:nth-child(3),
.admin-dashboard-grid > .card:last-child td:nth-child(3){width:95px !important;}
.admin-dashboard-grid > .card:last-child th:nth-child(4),
.admin-dashboard-grid > .card:last-child td:nth-child(4){width:118px !important;}

@media (max-width: 1024px){
  .page-shell{grid-template-columns:1fr !important;}
  .sidebar{position:relative !important;width:auto !important;height:auto !important;overflow:visible !important;border-right:0 !important;border-bottom:1px solid var(--line) !important;}
  .main{margin-left:0 !important;max-width:none !important;padding:18px 16px 24px !important;}
  .topbar,.admin-header,.card-header,.chart-header-row,.search-row,.sim-header{flex-direction:column !important;align-items:flex-start !important;}
  .cards,.grid-2,.detail-grid,.info-grid,.dashboard-split,.row2,.form-grid,.field-grid,.filter-grid,.kpi-mini,.cards-3,.cards-4,.admin-grid,.admin-grid-2,.quick-grid,.two-col,.sim-check-grid,.admin-summary-grid,.admin-dashboard-grid{grid-template-columns:1fr !important;}
  .search-box{min-width:0 !important;width:100% !important;}
  .chart-shell{grid-template-columns:44px 1fr !important;min-height:250px !important;}
  .bars-axis .bar-fill,.bars.bars-axis .bar-fill{max-width:36px !important;}
  .table-wrap,.table-wrap.clean-table.compact{overflow-x:auto !important;-webkit-overflow-scrolling:touch !important;}
  .table-wrap table,.table-wrap.clean-table.compact table{min-width:700px !important;table-layout:auto !important;}
  .admin-page{display:block !important;}
  .admin-page .admin-sidebar,.admin-shell .admin-sidebar,.admin-sidebar{position:relative !important;width:auto !important;height:auto !important;overflow:visible !important;}
  .admin-main,.admin-page .admin-content{margin-left:0 !important;padding:18px 16px 24px !important;}
}

@media (max-width: 640px){
  body{font-size:14px !important;}
  .panel,.card,.stat-card,.form-section,.toolbar-card{border-radius:20px !important;padding:14px !important;}
  .hero-card{padding:18px !important;border-radius:22px !important;}
  .hero-card h1,.topbar h1,.admin-main h1{font-size:26px !important;}
  .hero-greeting{font-size:24px !important;}
  .chart-stat{min-width:0 !important;width:100% !important;}
  .chart-shell{grid-template-columns:36px 1fr !important;gap:8px !important;}
  .chart-y{font-size:10px !important;padding-bottom:24px !important;}
  .bars-axis{gap:8px !important;}
  .bars-axis .bar-fill,.bars.bars-axis .bar-fill{max-width:28px !important;}
  .month-picker{width:100% !important;}
  .month-picker select,.btn,.top-actions .btn{width:100% !important;}
  .login-shell{grid-template-columns:1fr !important;}
  .login-right{display:none !important;}
  .login-left{padding:22px 18px !important;}
  .login-card{max-width:none !important;}
}


/* 2026-03-31 admin 500 + mobile daily usage polish */
@media (max-width: 900px){
  .chart-shell{
    grid-template-columns:40px 1fr !important;
    gap:8px !important;
    min-height:0 !important;
  }
  .chart-y{
    font-size:11px !important;
  }
  .chart-main{
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    padding-bottom:4px !important;
  }
  .chart-main::-webkit-scrollbar{height:6px}
  .bars-axis,
  .bars.bars-axis{
    min-width:720px !important;
    gap:8px !important;
    padding-right:8px !important;
  }
  .bars-axis .bar-fill,
  .bars.bars-axis .bar-fill{
    min-width:16px !important;
  }
  .bars-axis .bar-label,
  .bars.bars-axis .bar-label{
    font-size:10px !important;
    min-height:40px !important;
  }
  .sim-usage-card,
  .card{overflow:hidden}
}

@media (max-width: 640px){
  .chart-shell{grid-template-columns:34px 1fr !important;}
  .bars-axis,
  .bars.bars-axis{min-width:660px !important;gap:7px !important;}
}

.btn.warning{background:linear-gradient(135deg,#f59e0b,#f97316);color:#fff;border-color:transparent;box-shadow:0 14px 28px rgba(249,115,22,.22)}
.btn.warning:hover{transform:translateY(-1px);box-shadow:0 18px 32px rgba(249,115,22,.28)}
.btn.secondary{background:#e2e8f0;color:#0f172a;border-color:transparent;box-shadow:none}
.btn.secondary:hover{background:#cbd5e1;color:#0f172a}

.btn.danger{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;border-color:transparent;box-shadow:0 14px 28px rgba(220,38,38,.22)}
.btn.danger:hover{transform:translateY(-1px);box-shadow:0 18px 32px rgba(220,38,38,.28)}
