/* Dashboard polish: calm monochrome icons, tidy sidebar, neat charts, and a mobile safety net for EVERY section. */

/* ── plain icons: no coloured discs, no decorative tints ── */
.stat-icon, .qa-icon, .list-item-icon, .an-kpi-icon, .rfd-stat-icon, .txn-row-icon, .inv-row-icon, .verify-hero-icon, .pv-icon, .svc-icon {
  background: #f3f3f4 !important; color: #111 !important; box-shadow: none !important; border: 1px solid #e6e6e8 !important;
}
.stat-icon svg, .qa-icon svg, .list-item-icon svg, .an-kpi-icon svg, .rfd-stat-icon svg, .txn-row-icon svg, .inv-row-icon svg, .verify-hero-icon svg { color: #111 !important; }
.stat-icon svg *, .qa-icon svg *, .list-item-icon svg *, .an-kpi-icon svg *, .rfd-stat-icon svg *, .txn-row-icon svg *, .inv-row-icon svg *, .verify-hero-icon svg * { stroke: currentColor !important; }
.rfd-stat-primary .rfd-stat-icon { background: rgba(255,255,255,.14) !important; color: #fff !important; border-color: transparent !important; }

/* ── sidebar: clear groups, readable labels, easy to tap ── */
.sb-section-label { font-size: 10.5px !important; letter-spacing: .14em !important; font-weight: 800 !important; text-transform: uppercase; padding-top: 16px !important; opacity: .7; }
.sb-nav-item { min-height: 42px; }
.sb-nav-item .sb-item-icon svg { width: 18px; height: 18px; stroke-width: 1.9; }
.sb-nav-item .sb-item-label { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.sb-footer .sb-nav-item .sb-item-label { color: inherit !important; }
.sb-item-badge { background: #C8102E !important; color: #fff !important; }

/* ── charts: light grid, no heavy frames ── */
.card canvas, .panel canvas { max-width: 100%; display: block; }
.chart-wrap, .an-chart-wrap, .an-chart { position: relative; width: 100%; min-height: 220px; }

/* ── mobile safety net: every dashboard section fits a phone ── */
.vbe-tscroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vbe-tscroll > table { min-width: 560px; }
@media (max-width: 820px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .main-area, .panel { max-width: 100%; min-width: 0; }
  .panel { padding: 16px 14px 90px !important; }
  .card { padding: 16px !important; border-radius: 16px; }
  .panel [style*="grid-template-columns"]:not([style*="auto-fit"]):not([style*="auto-fill"]) { grid-template-columns: minmax(0, 1fr) !important; }
  .panel img, .panel video, .panel iframe { max-width: 100%; height: auto; }
  .panel input:not([type=checkbox]):not([type=radio]), .panel select, .panel textarea { max-width: 100%; font-size: 16px !important; min-height: 44px; }
  .panel .btn, .panel button { min-height: 40px; }
  .page-title { font-size: 22px !important; line-height: 1.2; }
  .vbe-modal-box { width: calc(100% - 20px) !important; max-width: 100% !important; max-height: 92vh; overflow-y: auto; border-radius: 18px; }
  .stat-grid, .stats-grid, .qa-grid, .an-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .card, .card * { overflow-wrap: break-word; }
  .topbar { padding-left: 10px; padding-right: 10px; }
  .topbar-breadcrumb { min-width: 0; overflow: hidden; }
  .topbar-title, .topbar-section { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 420px) {
  .stat-grid, .stats-grid, .qa-grid, .an-kpi-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
