/* MoneyAngel admin — minimal overrides on Kanakku v2.1.3 (keep layout/colors/fonts from style.css) */

/* Hide Kanakku demo horizontal mega-menu — MoneyAngel uses sidebar only */
.sidebar-horizontal#horizontal-menu {
  display: none !important;
}

/* Hide Kanakku demo upgrade promo in sidebar */
.sidebar-footer .trial-item {
  display: none !important;
}

/* Hide demo invoice shortcuts in header */
.header-user .nav-list > .me-auto .dropdown:first-child {
  display: none !important;
}

/* ── Mini sidebar icon strip ── */
.two-col-sidebar .twocol-mini.ma-mini-sidebar {
  width: 56px !important;
  background: #1e293b !important;
  border-right: 1px solid #334155 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 16px 0 !important;
  justify-content: flex-start !important;
  height: 100vh;
  max-height: 100vh;
  overflow: visible;
}

.ma-mini-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-bottom: 20px;
  flex-shrink: 0;
  padding: 4px;
}

.ma-mini-logo img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.ma-mini-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.ma-mini-nav-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.ma-mini-nav-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-bottom: 8px;
}

.ma-mini-divider {
  width: 32px;
  height: 1px;
  background: #334155;
  margin: 8px auto;
}

.ma-mini-nav-item {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.ma-mini-nav-item i {
  font-size: 20px;
  width: 20px;
  height: 20px;
  stroke-width: 1.6;
  line-height: 1;
}

.ma-mini-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.ma-mini-nav-item.active {
  background: rgba(26, 158, 122, 0.25);
  color: #10b981;
  border-color: rgba(26, 158, 122, 0.4);
}

.ma-mini-tooltip {
  position: absolute;
  left: 52px;
  top: 50%;
  transform: translateY(-50%);
  background: #1e293b;
  color: #fff;
  font-family: var(--ma-font);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid #334155;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 1100;
}

.ma-mini-tooltip::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px 5px 5px 0;
  border-style: solid;
  border-color: transparent #334155 transparent transparent;
}

.ma-mini-nav-item:hover .ma-mini-tooltip {
  opacity: 1;
}

/* Collapsed sidebar — icon strip only */
body.mini-sidebar .two-col-sidebar .sidebar#sidebar-two {
  display: none !important;
}

body.mini-sidebar .two-col-sidebar .twocol-mini.ma-mini-sidebar {
  display: flex !important;
}

body.mini-sidebar.expand-menu .two-col-sidebar .sidebar#sidebar-two {
  display: block !important;
}

/* ── Sidebar toggle controls (collapse + expand) ── */
.ma-header-sidebar-toggle,
.ma-sidebar-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #1e293b;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  overflow: visible;
}

.ma-header-sidebar-toggle {
  margin-right: 4px;
  display: none !important;
}

/* Show header expand control only after sidebar is collapsed (desktop) */
@media (min-width: 992px) {
  body.mini-sidebar #header_toggle_btn.ma-header-sidebar-toggle {
    display: inline-flex !important;
  }
}

.ma-header-sidebar-toggle:hover,
.ma-sidebar-toggle-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Override Kanakku .header .bar-icon (margin-top + float breaks our icon) */
.header .ma-header-sidebar-toggle .bar-icon,
.header .ma-sidebar-toggle-btn .bar-icon,
.sidebar .ma-sidebar-toggle-btn .bar-icon {
  display: inline-flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 5px !important;
  width: 20px !important;
  height: 16px !important;
  margin: 0 !important;
  margin-top: 0 !important;
  float: none !important;
}

.header .ma-header-sidebar-toggle .bar-icon span,
.header .ma-sidebar-toggle-btn .bar-icon span,
.sidebar .ma-sidebar-toggle-btn .bar-icon span {
  display: block !important;
  float: none !important;
  width: 100% !important;
  height: 3px !important;
  min-height: 3px !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  border-radius: 2px !important;
  background-color: #1e293b !important;
  opacity: 1 !important;
  transform: none !important;
  position: static !important;
}

.ma-header-sidebar-toggle:hover .bar-icon span,
.ma-sidebar-toggle-btn:hover .bar-icon span {
  background-color: var(--ma-primary, #1a9e7a) !important;
}

.sidebar-logo .ma-sidebar-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.sidebar-logo {
  position: relative;
  min-height: 64px;
}

.ma-mini-expand-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ma-mini-expand-btn i {
  font-size: 20px;
  line-height: 1;
}

.ma-mini-expand-btn:hover {
  background: rgba(26, 158, 122, 0.2);
  border-color: rgba(26, 158, 122, 0.45);
  color: #34d399;
}

body.mini-sidebar .ma-mini-expand-btn {
  display: inline-flex;
}

@media (max-width: 991.98px) {
  #header_toggle_btn.ma-header-sidebar-toggle {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .header .header-user .nav-list > .me-auto {
    align-items: center;
  }
}


/* MoneyAngel logo sizing in Kanakku sidebar slots */
.sidebar-logo .logo-normal img,
.sidebar-logo .dark-logo img {
  max-height: 40px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sidebar-logo .logo-small img,
.sidebar-logo .dark-small img {
  max-height: 28px;
  max-width: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.header-left .logo img,
.header-left .dark-logo img {
  max-height: 40px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ── MoneyAngel brand (do not edit Kanakku style.css) ── */
:root {
  --ma-primary: #1a9e7a;
  --ma-primary-dark: #157a60;
  --ma-slate: #2c3e50;
  --ma-angel-plus: #f4a261;
  --ma-waitlist-grey: #94a3b8;
  --ma-font: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ma-text: #334155;
  --ma-text-heading: #1e293b;
  --ma-text-accent: #047857;
  --ma-text-secondary: #065f46;
}

/* ── Global typography — all admin pages match dashboard ── */
body,
.page-wrapper,
.content,
.content-two,
.sidebar-menu,
.card,
.card-body,
.card-header,
.card-title,
.form-control,
.form-select,
.form-label,
.btn,
.table,
.modal-content,
.dropdown-menu,
.breadcrumb,
.breadcrumb-item,
.offcanvas,
.nav-tabs,
.alert,
h1,
h2,
h3,
h4,
h5,
h6,
p,
label,
.dataTables_wrapper,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate,
.select2-container,
.select2-container .select2-selection,
.select2-results,
.main-wrapper.auth-bg {
  font-family: var(--ma-font) !important;
}

body {
  color: var(--ma-text) !important;
}

.page-wrapper .content-two {
  background: #f1f5f9;
}

/* Replace Bootstrap / Kanakku grey text utilities */
body .text-muted,
body .text-secondary {
  color: var(--ma-text-accent) !important;
}

body .text-body {
  color: var(--ma-text-heading) !important;
}

/* Shared page typography */
.ma-page-title {
  font-family: var(--ma-font);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ma-text-heading);
}

.ma-page-subtitle {
  font-family: var(--ma-font);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ma-text-secondary);
  margin-bottom: 0;
}

.ma-detail-label {
  color: var(--ma-text-secondary);
  font-weight: 600;
}

.ma-hint-text {
  font-family: var(--ma-font);
  font-size: 0.8125rem;
  color: var(--ma-text-accent);
}

.ma-empty-state {
  font-family: var(--ma-font);
  font-size: 0.875rem;
  color: var(--ma-text-secondary);
  text-align: center;
}

.ma-coming-soon-card h5 {
  color: var(--ma-text-heading);
  font-weight: 700;
}

.ma-coming-soon-card .ma-page-subtitle,
.ma-coming-soon-card p {
  color: var(--ma-text-secondary) !important;
}

.breadcrumb-item,
.breadcrumb-item a {
  color: var(--ma-text-accent) !important;
  font-family: var(--ma-font);
}

.breadcrumb-item.active {
  color: var(--ma-text-heading) !important;
  font-weight: 600;
}

/* ── Pill tab navigation (Staff & Roles, Settings) ── */
.ma-nav-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: var(--ma-font);
}

.ma-nav-tabs .nav-item {
  margin: 0;
}

.ma-nav-tabs .nav-link {
  border: none !important;
  border-radius: 8px !important;
  padding: 0.5rem 1.25rem;
  font-family: var(--ma-font) !important;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ma-text-secondary) !important;
  background: transparent !important;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.4;
}

.ma-nav-tabs .nav-link:hover,
.ma-nav-tabs .nav-link:focus {
  color: var(--ma-text-heading) !important;
  background: rgba(255, 255, 255, 0.75) !important;
}

.ma-nav-tabs .nav-link.active {
  color: #fff !important;
  background: var(--ma-primary) !important;
  box-shadow: 0 2px 8px rgba(26, 158, 122, 0.28);
}

/* ── Rounded list panels (tables on all admin pages) ── */
.ma-list-panel {
  background: var(--white, #fff);
  border: 1px solid var(--border-color, #e9ecef);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
  overflow: hidden;
}

.ma-list-panel .table-responsive {
  border-radius: 12px;
}

.ma-role-card {
  border-radius: 12px;
  border: 1px solid var(--border-color, #e9ecef);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.ma-form-card {
  border-radius: 12px;
  border: 1px solid var(--border-color, #e9ecef);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
  overflow: hidden;
}

.ma-form-card .card-footer {
  border-radius: 0 0 12px 12px;
}

.ma-form-card .form-control[readonly] {
  background-color: #f8fafc;
  color: var(--ma-text);
}

.ma-user-detail-summary {
  border-radius: 12px;
  border: 1px solid var(--border-color, #e9ecef);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.ma-user-detail-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary, #1a9e7a);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ma-font);
  font-size: 1.125rem;
  font-weight: 700;
  flex-shrink: 0;
}

#staff-role-ids + .select2-container {
  font-family: var(--ma-font);
}

.ma-role-card:hover {
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
}

table.ma-admin-table > thead > tr > th {
  font-family: var(--ma-font);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ma-text-secondary);
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color, #e9ecef);
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

table.ma-admin-table > tbody > tr > td {
  font-family: var(--ma-font);
  color: var(--ma-text);
  padding: 0.875rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color, #e9ecef);
  font-size: 0.875rem;
}

table.ma-admin-table > tbody > tr:last-child > td {
  border-bottom: none;
}

table.ma-admin-table > tbody > tr:hover > td {
  background: rgba(26, 158, 122, 0.04);
}

table.ma-admin-table code {
  font-size: 0.8125rem;
  color: var(--ma-text-secondary);
  background: #f1f5f9;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.card-header .card-title {
  color: var(--ma-text-heading);
  font-weight: 700;
}

.form-label {
  color: var(--ma-text-secondary);
  font-weight: 600;
  font-size: 0.8125rem;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_paginate .paginate_button {
  color: var(--ma-text-accent) !important;
  font-family: var(--ma-font);
}

small,
.small {
  font-family: var(--ma-font);
}

.btn-primary,
.bg-primary {
  background-color: var(--ma-primary) !important;
  border-color: var(--ma-primary) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--ma-primary-dark) !important;
  border-color: var(--ma-primary-dark) !important;
}

.btn-outline-primary {
  color: var(--ma-primary) !important;
  border-color: var(--ma-primary) !important;
}

.btn-outline-primary:hover {
  background-color: var(--ma-primary) !important;
  border-color: var(--ma-primary) !important;
}

.text-primary:not(.badge) {
  color: var(--ma-primary) !important;
}

.bg-primary-subtle {
  background-color: rgba(26, 158, 122, 0.12) !important;
}

.link-primary,
.ma-link-teal {
  color: var(--ma-primary) !important;
}

.ma-link-teal:hover {
  color: var(--ma-primary-dark) !important;
}

.bg-primary-gradient-200,
.bg-primary-gradient {
  background: linear-gradient(135deg, var(--ma-primary) 0%, var(--ma-primary-dark) 100%) !important;
}

.paginate_button.page-item.active .page-link {
  border-color: var(--ma-primary) !important;
  color: var(--ma-primary) !important;
}

/* ── Dashboard (scoped via :has) ── */
.content-two:has(#ma-dashboard-updated) {
  background: #f1f5f9;
  padding-bottom: 1.5rem;
}

.content-two:has(#ma-dashboard-updated) .ma-page-title {
  color: var(--ma-slate);
  font-weight: 700;
}

.content-two:has(#ma-dashboard-updated) #ma-dashboard-updated {
  color: var(--ma-text-secondary);
  font-size: 0.78rem;
  font-family: var(--ma-font);
}

/* KPI stat cards — refined white cards with accent borders */
.content-two:has(#ma-dashboard-updated) .ma-kpi-card {
  background: #fff !important;
  border: 1px solid #f1f5f9 !important;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  bottom: -20px;
  right: -20px;
  opacity: 0.06;
  pointer-events: none;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card .card-body {
  padding: 24px 28px;
  color: #1e293b;
  position: relative;
  z-index: 1;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card .ma-kpi-value {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card .ma-kpi-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
  opacity: 1;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card .ma-kpi-sub,
.content-two:has(#ma-dashboard-updated) .ma-kpi-card .ma-kpi-sub--dim,
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--paid .ma-kpi-breakdown {
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 1;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--paid .ma-kpi-breakdown {
  margin-top: 0.35rem;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-icon i {
  font-size: 24px;
  width: 24px;
  height: 24px;
  line-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Card 1 — Total Registered Users */
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--users {
  border-left: 4px solid #10b981 !important;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--users::after {
  background: #10b981;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--users .ma-kpi-icon {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--users .ma-kpi-label {
  color: #2f9e5a;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--users .ma-kpi-sub,
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--users .ma-kpi-sub--dim {
  color: #3cb371;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--users .ma-kpi-value {
  color: #1f7a3f;
}

/* Card 2 — Paid Subscribers */
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--paid {
  border-left: 4px solid #1a9e7a !important;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--paid::after {
  background: #1a9e7a;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--paid .ma-kpi-icon,
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--paid .ma-kpi-icon--gold {
  background: linear-gradient(135deg, #fef9c3, #fde68a);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.22);
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--paid .ma-kpi-icon--gold i {
  color: #b45309;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--paid .ma-kpi-label {
  color: #d97706;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--paid .ma-kpi-value {
  color: #b45309;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--paid .ma-kpi-sub,
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--paid .ma-kpi-breakdown {
  color: #ea9a0f;
}

/* Card 3 — Waitlist */
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--waitlist {
  border-left: 4px solid #0ea5e9 !important;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--waitlist::after {
  background: #0ea5e9;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--waitlist .ma-kpi-icon {
  background: linear-gradient(135deg, #e0f2fe, #7dd3fc);
  color: #0369a1;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.28);
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--waitlist .ma-kpi-label {
  color: #2563eb;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--waitlist .ma-kpi-value {
  color: #1d4ed8;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--waitlist .ma-kpi-sub,
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--waitlist .ma-kpi-sub--dim {
  color: #3b82f6;
}

/* Card 4 — Revenue (MRR) */
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--revenue {
  border-left: 4px solid #059669 !important;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--revenue::after {
  background: #059669;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--revenue .ma-kpi-icon {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #047857;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.28);
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--revenue .ma-kpi-label {
  color: #059669;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--revenue .ma-kpi-value {
  color: #047857;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--revenue .ma-kpi-sub,
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--revenue .ma-kpi-sub--dim {
  color: #10b981;
}

/* Card 4 (legacy) — Extraction Queue — kept for extraction-queue page if reused */
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--queue {
  border-left: 4px solid #8b5cf6 !important;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--queue::after {
  background: #8b5cf6;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--queue .ma-kpi-icon {
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #7c3aed;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.22);
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--queue .ma-kpi-label {
  color: #1e3a5f;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--queue .ma-kpi-sub {
  color: #334e68;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--queue .ma-kpi-value {
  color: #0f2744;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card .ma-kpi-trend {
  background: rgba(26, 158, 122, 0.1) !important;
  color: #1a9e7a !important;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card .placeholder {
  background-color: #f1f5f9;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--queue.ma-kpi-card--queue-warn {
  border-left-color: #f59e0b !important;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--queue.ma-kpi-card--queue-warn .ma-kpi-value {
  color: #d97706;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--queue.ma-kpi-card--queue-danger {
  border-left-color: #ef4444 !important;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--queue.ma-kpi-card--queue-danger .ma-kpi-value {
  color: #e11d48;
}

/* Section panels */
.content-two:has(#ma-dashboard-updated) .ma-dashboard-panel {
  background: #fff;
  border-radius: 16px !important;
  border: 1px solid #f1f5f9 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.content-two:has(#ma-dashboard-updated) .ma-dashboard-panel > .card-body {
  padding: 0;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* Chart panels — tinted headers */
.content-two:has(#ma-dashboard-updated) .ma-panel-signups {
  border-left: 4px solid #10b981 !important;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-signups > .card-body > div:first-child {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  padding: 16px 24px;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid #d1fae5;
  margin-bottom: 0 !important;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-signups .ma-panel-title {
  color: #065f46;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-signups #ma-signups-chart {
  background: #fff;
  padding: 20px 24px 16px;
  min-height: 280px;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-plan {
  border-left: 4px solid #8b5cf6 !important;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-plan > .card-body > div:first-child {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  padding: 16px 24px;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid #ddd6fe;
  margin-bottom: 0 !important;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-plan .ma-panel-title {
  color: #4c1d95;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-plan #ma-plan-donut-chart {
  background: #fff;
  padding: 12px 24px 0;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-plan #ma-plan-legend {
  background: #fff;
  padding: 8px 24px 20px;
  margin-top: 0 !important;
}

.content-two:has(#ma-dashboard-updated) .ma-chart-skeleton {
  display: block;
  height: 260px;
  border-radius: 8px;
  background-color: #f1f5f9;
}

.content-two:has(#ma-dashboard-updated) .ma-donut-host {
  min-height: 260px;
}

/* Donut centre labels (ApexCharts) */
.content-two:has(#ma-dashboard-updated) .ma-panel-plan .apexcharts-datalabel-label {
  font-size: 11px !important;
  font-weight: 600 !important;
  fill: #334155 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-plan .apexcharts-datalabel-value {
  font-size: 28px !important;
  font-weight: 700 !important;
  fill: #1e293b !important;
}

.content-two:has(#ma-dashboard-updated) .ma-plan-legend {
  font-size: 0.8125rem;
}

.content-two:has(#ma-dashboard-updated) .ma-plan-legend-label {
  color: #334155;
  font-weight: 600;
}

.content-two:has(#ma-dashboard-updated) .ma-plan-legend-count {
  color: #1e293b;
  font-weight: 700;
}

/* Force chart colours — override Kanakku theme defaults */
.content-two:has(#ma-dashboard-updated) #ma-signups-chart .apexcharts-bar-series .apexcharts-series:nth-child(1) path {
  fill: #3b82f6 !important;
  stroke: #3b82f6 !important;
}

.content-two:has(#ma-dashboard-updated) #ma-signups-chart .apexcharts-bar-series .apexcharts-series:nth-child(2) path {
  fill: #10b981 !important;
  stroke: #10b981 !important;
}

.content-two:has(#ma-dashboard-updated) #ma-signups-chart .apexcharts-bar-series .apexcharts-series:nth-child(3) path {
  fill: #f59e0b !important;
  stroke: #f59e0b !important;
}

.content-two:has(#ma-dashboard-updated) #ma-signups-chart .apexcharts-legend-series:nth-child(1) .apexcharts-legend-marker {
  background: #3b82f6 !important;
}

.content-two:has(#ma-dashboard-updated) #ma-signups-chart .apexcharts-legend-series:nth-child(2) .apexcharts-legend-marker {
  background: #10b981 !important;
}

.content-two:has(#ma-dashboard-updated) #ma-signups-chart .apexcharts-legend-series:nth-child(3) .apexcharts-legend-marker {
  background: #f59e0b !important;
}

.content-two:has(#ma-dashboard-updated) #ma-signups-chart .apexcharts-legend-text {
  color: #334155 !important;
  font-weight: 600 !important;
}

.content-two:has(#ma-dashboard-updated) #ma-plan-donut-chart .apexcharts-pie-series path {
  stroke: #fff !important;
  stroke-width: 2px !important;
}

.content-two:has(#ma-dashboard-updated) #ma-plan-donut-chart .apexcharts-datalabel-label {
  fill: #334155 !important;
}

.content-two:has(#ma-dashboard-updated) #ma-plan-donut-chart .apexcharts-datalabel-value {
  fill: #1e293b !important;
}

.content-two:has(#ma-dashboard-updated) #ma-dashboard-updated {
  color: var(--ma-text-secondary);
}

/* Extraction panel */
.content-two:has(#ma-dashboard-updated) .ma-panel-extraction {
  border-left: 4px solid #8b5cf6 !important;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-extraction > .card-body > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  padding: 16px 24px;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid #ddd6fe;
  margin-bottom: 0 !important;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-extraction > .card-body > .ma-dash-panel-head {
  flex-wrap: nowrap;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-extraction .ma-panel-title {
  color: #4c1d95;
}

.content-two:has(#ma-dashboard-updated) .ma-extraction-refresh-badge {
  display: inline-block;
  background: #fff;
  color: #7c3aed;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #ddd6fe;
}

.content-two:has(#ma-dashboard-updated) #ma-extraction-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px 24px;
  margin-bottom: 0 !important;
}

.content-two:has(#ma-dashboard-updated) .ma-extraction-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  border-radius: 12px;
  padding: 16px 20px 16px 36px;
  position: relative;
  border: 1px solid transparent !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.content-two:has(#ma-dashboard-updated) .ma-extraction-row::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.content-two:has(#ma-dashboard-updated) .ma-extraction-row .ma-status-dot,
.content-two:has(#ma-dashboard-updated) .ma-extraction-row .ma-pulse-dot {
  display: none !important;
}

.content-two:has(#ma-dashboard-updated) .ma-extraction-row > span:first-child {
  width: 100%;
}

.content-two:has(#ma-dashboard-updated) .ma-extraction-row > span:first-child .fs-13 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.content-two:has(#ma-dashboard-updated) .ma-extraction-count {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.content-two:has(#ma-dashboard-updated) #ma-extraction-rows .ma-extraction-row:nth-child(1) {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-color: #bbf7d0 !important;
}

.content-two:has(#ma-dashboard-updated) #ma-extraction-rows .ma-extraction-row:nth-child(1)::before {
  background: #10b981;
}

.content-two:has(#ma-dashboard-updated) #ma-extraction-rows .ma-extraction-row:nth-child(1) .fs-13 {
  color: #065f46;
}

.content-two:has(#ma-dashboard-updated) #ma-extraction-rows .ma-extraction-row:nth-child(1) .ma-extraction-count {
  color: #059669;
}

.content-two:has(#ma-dashboard-updated) #ma-extraction-rows .ma-extraction-row:nth-child(2) {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #bfdbfe !important;
}

.content-two:has(#ma-dashboard-updated) #ma-extraction-rows .ma-extraction-row:nth-child(2)::before {
  background: #3b82f6;
  animation: ma-pulse-opacity 1.2s ease-in-out infinite;
}

.content-two:has(#ma-dashboard-updated) #ma-extraction-rows .ma-extraction-row:nth-child(2) .fs-13 {
  color: #1e3a5f;
}

.content-two:has(#ma-dashboard-updated) #ma-extraction-rows .ma-extraction-row:nth-child(2) .ma-extraction-count {
  color: #2563eb;
}

.content-two:has(#ma-dashboard-updated) #ma-extraction-rows .ma-extraction-row:nth-child(3) {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-color: #fde68a !important;
}

.content-two:has(#ma-dashboard-updated) #ma-extraction-rows .ma-extraction-row:nth-child(3)::before {
  background: #f59e0b;
}

.content-two:has(#ma-dashboard-updated) #ma-extraction-rows .ma-extraction-row:nth-child(3) .fs-13 {
  color: #78350f;
}

.content-two:has(#ma-dashboard-updated) #ma-extraction-rows .ma-extraction-row:nth-child(3) .ma-extraction-count {
  color: #d97706;
}

.content-two:has(#ma-dashboard-updated) #ma-extraction-rows .ma-extraction-row:nth-child(4) {
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  border-color: #fecdd3 !important;
}

.content-two:has(#ma-dashboard-updated) #ma-extraction-rows .ma-extraction-row:nth-child(4)::before {
  background: #f43f5e;
}

.content-two:has(#ma-dashboard-updated) #ma-extraction-rows .ma-extraction-row:nth-child(4) .fs-13 {
  color: #881337;
}

.content-two:has(#ma-dashboard-updated) #ma-extraction-rows .ma-extraction-row:nth-child(4) .ma-extraction-count {
  color: #e11d48;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-two:has(#ma-dashboard-updated) .ma-extraction-failed-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.12);
}

.content-two:has(#ma-dashboard-updated) .ma-extraction-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px 20px;
  margin: 0 24px 20px;
  font-size: 0.82rem;
  color: var(--ma-text-accent);
}

.content-two:has(#ma-dashboard-updated) .ma-extraction-footer-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.content-two:has(#ma-dashboard-updated) .ma-extraction-footer-label {
  color: var(--ma-text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
}

.content-two:has(#ma-dashboard-updated) .ma-extraction-footer-value {
  color: #1e293b;
  font-weight: 700;
  font-size: 0.9rem;
}

.content-two:has(#ma-dashboard-updated) .ma-extraction-footer-value--high {
  color: #059669;
}

.content-two:has(#ma-dashboard-updated) .ma-extraction-footer-divider {
  width: 1px;
  align-self: stretch;
  background: #e2e8f0;
  flex-shrink: 0;
}

/* Recent activity panel */
.content-two:has(#ma-dashboard-updated) .ma-panel-activity {
  border-left: 4px solid #f59e0b !important;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-activity > .card-body > div:first-child {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  padding: 16px 24px;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid #fde68a;
  margin-bottom: 0 !important;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-activity .ma-panel-title {
  color: #78350f;
}

.content-two:has(#ma-dashboard-updated) #ma-audit-list {
  background: #fff;
  flex-grow: 1;
}

.content-two:has(#ma-dashboard-updated) .ma-audit-feed-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid #f8fafc;
  transition: background 0.15s ease;
}

.content-two:has(#ma-dashboard-updated) .ma-audit-feed-item:last-child {
  border-bottom: none;
}

.content-two:has(#ma-dashboard-updated) .ma-audit-feed-item:hover {
  background: #fafafa;
}

.content-two:has(#ma-dashboard-updated) .ma-audit-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.content-two:has(#ma-dashboard-updated) .ma-audit-avatar--staff {
  background: #ede9fe;
  color: #7c3aed;
}

.content-two:has(#ma-dashboard-updated) .ma-audit-avatar--waitlist {
  background: #fef3c7;
  color: #d97706;
}

.content-two:has(#ma-dashboard-updated) .ma-audit-avatar--user {
  background: #d1fae5;
  color: #059669;
}

.content-two:has(#ma-dashboard-updated) .ma-audit-body {
  flex: 1;
  min-width: 0;
  margin: 0;
  line-height: 1.45;
}

.content-two:has(#ma-dashboard-updated) .ma-audit-email {
  color: #1a9e7a;
  font-weight: 600;
  font-size: 0.83rem;
  display: block;
}

.content-two:has(#ma-dashboard-updated) .ma-audit-action {
  color: var(--ma-text);
  font-size: 0.83rem;
  display: block;
}

.content-two:has(#ma-dashboard-updated) .ma-audit-ref {
  background: #f1f5f9;
  color: var(--ma-text-accent);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.content-two:has(#ma-dashboard-updated) .ma-audit-time {
  color: var(--ma-text-secondary);
  font-size: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.content-two:has(#ma-dashboard-updated) .ma-audit-log-link {
  color: #1a9e7a;
  font-weight: 600;
  font-size: 0.83rem;
  margin-top: 0;
  padding: 14px 24px;
  display: block;
  text-decoration: none;
  border-top: 1px solid #f1f5f9;
  background: #fff;
}

.content-two:has(#ma-dashboard-updated) .ma-activity-body .ma-audit-log-link {
  margin-top: 10px;
  padding: 10px 0 2px;
  border-top: 1px solid #e2e8f0;
  background: transparent;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  width: 100%;
}

.content-two:has(#ma-dashboard-updated) .ma-audit-log-link:hover {
  color: #13755c;
  background: #fafafa;
}

/* AI API usage panel */
.content-two:has(#ma-dashboard-updated) .ma-panel-api-usage {
  border-left: 4px solid #1a9e7a !important;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-api-usage > .card-body > .ma-api-usage-header {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  padding: 18px 24px;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid #d1fae5;
  margin: 0;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-api-usage .ma-panel-title {
  color: #065f46;
  line-height: 1.35;
  padding-top: 1px;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-api-usage > .card-body > .row {
  padding: 20px 24px 0;
  margin: 0;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-api-usage > .card-body > #ma-api-usage-updated,
.content-two:has(#ma-dashboard-updated) .ma-panel-api-usage > .card-body > .ma-api-usage-updated {
  padding: 12px 24px 20px;
  margin: 0;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-refresh-badge {
  display: inline-block;
  background: #fff;
  color: #059669;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #a7f3d0;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-settings-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #059669;
  text-decoration: none;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-settings-link:hover {
  color: #047857;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-hero {
  background: linear-gradient(135deg, #f0fdf4, #fff);
  border: 1px solid #d1fae5;
  border-radius: 12px;
  padding: 1.25rem;
  height: 100%;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-hero-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a9e7a, #10b981);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(26, 158, 122, 0.28);
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #047857;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-hero-value {
  font-size: 2rem;
  font-weight: 700;
  color: #065f46;
  letter-spacing: -0.02em;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-hero-meta {
  font-size: 0.875rem;
  color: #334155;
  font-weight: 500;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-totals {
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-total-row + .ma-api-usage-total-row {
  border-top: 1px solid #e2e8f0;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-total-label {
  font-size: 0.8125rem;
  color: #047857;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-total-value {
  font-size: 0.875rem;
  color: #1e293b;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-provider-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 3px solid var(--ma-provider-color, #94a3b8);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  height: 100%;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-provider-card--ai {
  background: linear-gradient(135deg, #f0fdf4, #fff);
  border-color: #a7f3d0;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-provider-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e293b;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-provider-cost {
  font-size: 0.875rem;
  color: #065f46;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-provider-meta {
  font-size: 0.75rem;
  color: #047857;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-chart-host {
  min-height: 200px;
}

.content-two:has(#ma-dashboard-updated) #ma-api-usage-chart .apexcharts-bar-series path {
  stroke-width: 0;
}

/* Quick actions */
.content-two:has(#ma-dashboard-updated) .ma-quick-actions {
  border-left: 4px solid #10b981 !important;
  background: #fff;
}

.content-two:has(#ma-dashboard-updated) .ma-quick-actions > .card-body {
  padding: 0;
}

.content-two:has(#ma-dashboard-updated) .ma-quick-actions-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #065f46;
  margin-bottom: 0;
  text-align: left;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  padding: 16px 24px;
  border-bottom: 1px solid #d1fae5;
}

.content-two:has(#ma-dashboard-updated) .ma-quick-actions .d-flex.gap-3 {
  padding: 20px 24px;
  justify-content: center !important;
}

.content-two:has(#ma-dashboard-updated) .ma-quick-action-btn {
  background: linear-gradient(135deg, #1a9e7a, #13755c) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 12px 28px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(26, 158, 122, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-two:has(#ma-dashboard-updated) .ma-quick-action-btn i {
  font-size: 18px;
  vertical-align: -2px;
}

.content-two:has(#ma-dashboard-updated) .ma-quick-action-btn:hover,
.content-two:has(#ma-dashboard-updated) .ma-quick-action-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 158, 122, 0.4) !important;
  background: linear-gradient(135deg, #1a9e7a, #13755c) !important;
  color: #fff !important;
}

@keyframes ma-pulse-opacity {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* ── Sidebar — minimal nav (no full-width button blocks) ── */
.two-col-sidebar .sidebar-inner {
  background: #fff;
}

.sidebar-menu .menu-title {
  margin: 16px 0 6px 14px;
  padding: 0;
}

.sidebar-menu .menu-title span {
  font-size: 0.7rem;
  font-weight: 700;
  color: #1a9e7a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Default nav links */
.sidebar-menu > ul > li > ul > li > a,
.sidebar-menu > ul > li > ul > li.submenu > ul > li > a {
  background: transparent !important;
  border-radius: 8px;
  color: #374151;
  font-weight: 500;
  font-size: 0.875rem;
  border: none !important;
  box-shadow: none !important;
  transition: all 0.15s ease;
}

/* Top-level items (Users, Subscriptions, etc.) */
.sidebar-menu > ul > li > ul > li:not(.submenu) > a {
  padding: 9px 14px;
}

/* Submenu parent (Dashboard toggle) */
.sidebar-menu > ul > li > ul > li.submenu > a.subdrop,
.sidebar-menu > ul > li > ul > li.submenu > a {
  padding: 9px 14px;
  background: transparent !important;
  color: var(--ma-text-secondary) !important;
  border-left: none !important;
  font-weight: 500;
}

.sidebar-menu > ul > li > ul > li.submenu > a.subdrop.active,
.sidebar-menu > ul > li > ul > li.submenu > a.active {
  background: transparent !important;
  color: var(--ma-text-secondary) !important;
  border-left: none !important;
  padding-left: 14px !important;
}

/* Sub-menu children (Administration) */
.sidebar-menu > ul > li > ul > li.submenu > ul > li > a {
  padding: 9px 14px 9px 40px;
  font-size: 0.82rem;
  color: #374151;
}

/* Hover */
.sidebar-menu > ul > li > ul > li:not(.submenu) > a:hover,
.sidebar-menu > ul > li > ul > li.submenu > a:hover,
.sidebar-menu > ul > li > ul > li.submenu > ul > li > a:hover {
  background: #f8fafc !important;
  color: #111827 !important;
}

.sidebar-menu > ul > li > ul > li.submenu > ul > li > a.active:hover {
  background: #f0fdf4 !important;
  color: #059669 !important;
}

/* Active — top-level leaf items only */
.sidebar-menu > ul > li > ul > li:not(.submenu) > a.active {
  background: #f0fdf4 !important;
  color: #059669 !important;
  font-weight: 600;
  border-left: 3px solid #10b981 !important;
  padding-left: 11px !important;
  border-radius: 8px;
}

/* Active — administration submenu children */
.sidebar-menu > ul > li > ul > li.submenu > ul > li > a.active {
  background: #f0fdf4 !important;
  color: #059669 !important;
  font-weight: 600;
  border-left: 3px solid #10b981 !important;
  padding-left: 37px !important;
  border-radius: 8px;
}

/* Nav icons */
.sidebar-menu a i {
  width: 18px;
  height: 18px;
  font-size: 18px;
  color: inherit;
}

/* Logo area */
.sidebar-logo .logo-small,
.sidebar-logo .dark-small {
  background: #1a9e7a;
  border-radius: 10px;
  padding: 6px;
}

.sidebar-logo .logo-small img,
.sidebar-logo .dark-small img {
  filter: none;
}

.sidebar-logo .logo-normal img,
.sidebar-logo .dark-logo img {
  max-height: 28px;
}

/* Sidebar collapse toggle */
#toggle_btn.ma-sidebar-toggle-btn {
  color: #1e293b;
}

#mobile_btn .bar-icon {
  display: inline-flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 5px !important;
  width: 22px !important;
  margin-top: 0 !important;
}

#mobile_btn .bar-icon span {
  display: block !important;
  float: none !important;
  height: 3px !important;
  width: 100% !important;
  margin: 0 !important;
  border-radius: 2px;
  background-color: #1e293b !important;
}

#mobile_btn:hover .bar-icon span {
  background: var(--ma-primary);
}

@media (max-width: 991.98px) {
  .header .mobile_btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
  }
}

.ma-chart-host {
  min-height: 280px;
}

.ma-chart-skeleton {
  display: block;
  height: 260px;
  border-radius: 8px;
}

.ma-donut-host {
  min-height: 280px;
}

.ma-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.ma-extraction-failed-link:hover {
  background: rgba(220, 53, 69, 0.06);
}

.ma-quick-actions {
  border-radius: 16px;
}

/* Staff & roles */
.staff-role-card .card-title,
.ma-role-card .card-title {
  font-family: var(--ma-font);
  color: var(--ma-text-heading);
  font-weight: 700;
  font-size: 0.9375rem;
}

#permissions-table .ma-hint-text {
  font-family: var(--ma-font);
}

/* Settings API usage panel */
#api-usage-panel,
#api-usage-panel .ma-hint-text {
  font-family: var(--ma-font);
  color: var(--ma-text);
}

#settings-form .form-text {
  color: var(--ma-text-accent) !important;
}

.ma-settings-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ma-text-secondary);
}

.ma-settings-active-provider .ma-active-provider-select {
  max-width: 320px;
  font-weight: 600;
}

.ma-provider-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.ma-provider-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-color, #e9ecef);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ma-provider-card:hover {
  border-color: #a7f3d0;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.08);
}

.ma-provider-card--active {
  border-color: #059669;
  box-shadow: 0 0 0 1px #059669, 0 4px 12px rgba(5, 150, 105, 0.12);
}

.ma-provider-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  font-size: 0.9rem;
}

.ma-provider-card-meta {
  font-size: 0.75rem;
}

.ma-provider-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ma-provider-tab {
  border: 1px solid var(--border-color, #e9ecef);
  background: #f8fafc;
  color: var(--ma-text-secondary);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.ma-provider-tab.active {
  background: #ecfdf5;
  border-color: #059669;
  color: #047857;
}

.ma-settings-provider-config .ma-provider-panel {
  padding: 0.25rem 0;
}

/* Login page */
.main-wrapper.auth-bg .card-body p,
.main-wrapper.auth-bg label {
  font-family: var(--ma-font);
}

.main-wrapper.auth-bg h5 {
  color: var(--ma-text-heading);
  font-weight: 700;
  font-family: var(--ma-font);
}

.header .theme-item,
#dark-mode-toggle,
#light-mode-toggle {
  display: none !important;
}

/* Hide Kanakku theme customizer floating button */
.toggle-theme {
  display: none !important;
}

/* Users list — Kanakku customers-style table toolbar */
#users-table_wrapper .dataTables_length {
  margin-bottom: 0;
}

#users-table_wrapper .dataTables_filter {
  margin-bottom: 0;
}

#users-dt-search .dataTables_filter input {
  min-width: 200px;
}

#users-filter-canvas .select2-container {
  width: 100% !important;
}

/* DataTables pagination row — prevent length select text overlapping caret */
.dataTables_wrapper .dataTables_length label {
  flex-wrap: nowrap;
  gap: 0.35rem;
  white-space: nowrap;
}

.dataTables_wrapper .dataTables_length label .form-select,
div.dataTables_wrapper div.dataTables_length select {
  min-width: 4.75rem;
  width: auto !important;
  padding: 6px 2rem 6px 0.65rem;
  background-position: right 0.5rem center;
  text-align: left;
}

#users-table_wrapper > .row:last-child {
  align-items: center;
  margin-top: 1.25rem;
}

#users-table_wrapper .dataTables_paginate {
  margin-top: 0 !important;
}

#users-table_wrapper .dataTables_length {
  padding-top: 0;
}

/* Page footer */
.ma-page-footer {
  margin-top: auto;
}

.ma-page-footer p {
  letter-spacing: 0.01em;
  color: var(--ma-text-accent) !important;
  font-family: var(--ma-font);
}

.ma-footer-text {
  color: var(--ma-text-accent) !important;
  font-family: var(--ma-font);
}

/* ── Users list — professional admin table ── */
.ma-stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white, #fff);
  border: 1px solid var(--border-color, #e9ecef);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  height: 100%;
}

.ma-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.ma-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ma-text-secondary);
  margin: 0;
}

.ma-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ma-text-heading);
  line-height: 1.2;
}

.ma-stat-card--revenue {
  border-left: 4px solid #059669;
}

.ma-stat-icon--revenue {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #047857;
}

.ma-stat-value--revenue {
  color: #047857;
  font-variant-numeric: tabular-nums;
}

.ma-revenue-mrr-cell {
  color: #047857;
}

.ma-revenue-panel {
  border: 1px solid var(--border-color, #e9ecef);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.ma-revenue-panel .card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ma-text-heading);
}

.content-two:has(#ma-revenue-updated) #ma-revenue-signups-chart {
  min-height: 280px;
}

.content-two:has(#ma-revenue-updated) .ma-kpi-card-link:hover .ma-kpi-card--revenue {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.12);
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card-link {
  color: inherit;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card-link:hover .ma-kpi-card {
  transform: translateY(-1px);
}

.ma-users-panel {
  background: var(--white, #fff);
  border: 1px solid var(--border-color, #e9ecef);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
  padding: 1.25rem 1.25rem 0.5rem;
}

.ma-users-toolbar {
  padding-bottom: 0.25rem;
}

.ma-users-table-wrap.custom-table .table-responsive {
  border: none;
  border-radius: 0;
}

table.ma-users-table > thead > tr > th {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ma-text-secondary);
  background: var(--light, #f8f9fb);
  border-bottom: 1px solid var(--border-color, #e9ecef);
  padding: 0.75rem 1rem;
  font-family: var(--ma-font);
}

table.ma-users-table > tbody > tr > td {
  padding: 0.875rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color, #e9ecef);
  color: var(--ma-text);
  font-family: var(--ma-font);
}

table.ma-users-table > tbody > tr:hover > td {
  background: rgba(26, 158, 122, 0.04);
}

.ma-cell-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ma-text-heading);
  letter-spacing: -0.01em;
}

.ma-cell-email {
  font-size: 0.8125rem;
  color: var(--ma-text);
  font-weight: 400;
}

.ma-cell-muted {
  font-size: 0.8125rem;
  color: var(--ma-text-accent);
  font-variant-numeric: tabular-nums;
}

.ma-cell-count {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ma-text-heading);
  font-variant-numeric: tabular-nums;
}

.ma-plan-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.35em 0.65em;
}

#users-table_wrapper {
  padding: 0 0.25rem 0.75rem;
}

#users-table_wrapper .paginate_button.page-item .page-link {
  border-radius: 6px;
}

/* ── All admin pages — table & detail typography ── */
#audit-log-table thead th,
#permissions-table thead th,
table.ma-admin-table thead th,
table.table thead th {
  font-family: var(--ma-font);
  color: var(--ma-text-secondary);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#audit-log-table tbody td,
#permissions-table tbody td,
table.ma-admin-table tbody td,
table.table tbody td,
dl.row dt.ma-detail-label,
dl.row dd {
  font-family: var(--ma-font);
  color: var(--ma-text);
}

.card-body code {
  color: var(--ma-text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ── Login page — split-panel staff sign-in ── */
.ma-login-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ma-font);
  background: #f8fafc;
}

.ma-login-shell {
  display: flex;
  min-height: 100vh;
}

.ma-login-brand {
  position: relative;
  display: none;
  flex: 0 0 44%;
  max-width: 520px;
  padding: 3rem 3.5rem;
  color: #fff;
  background: linear-gradient(145deg, #157a60 0%, #0f5c49 42%, #1a3d4a 100%);
  overflow: hidden;
}

@media (min-width: 992px) {
  .ma-login-brand {
    display: flex;
    align-items: center;
  }
}

.ma-login-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 380px;
}

.ma-login-brand-logo img {
  display: block;
  max-height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
}

.ma-login-brand-eyebrow {
  margin: 2rem 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.ma-login-brand-title {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.ma-login-brand-lead {
  margin: 0 0 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.ma-login-brand-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ma-login-brand-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.ma-login-brand-features .isax {
  font-size: 1.15rem;
  opacity: 0.9;
}

.ma-login-brand-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(26, 158, 122, 0.35) 0%, transparent 50%);
  pointer-events: none;
}

.ma-login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.ma-login-main-inner {
  width: 100%;
  max-width: 420px;
}

.ma-login-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem 2rem 1.75rem;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 40px rgba(15, 23, 42, 0.08);
}

.ma-login-card-header {
  margin-bottom: 1.75rem;
}

.ma-login-title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ma-text-heading);
  letter-spacing: -0.02em;
}

.ma-login-subtitle {
  margin: 0;
  font-size: 0.925rem;
  color: var(--ma-text-secondary);
}

.ma-login-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ma-text-heading);
  margin-bottom: 0.4rem;
}

.ma-login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ma-login-input-icon {
  position: absolute;
  left: 0.875rem;
  z-index: 2;
  color: #94a3b8;
  font-size: 1.1rem;
  pointer-events: none;
}

.ma-login-input {
  height: 48px;
  padding-left: 2.65rem !important;
  padding-right: 2.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9375rem;
  background: #f8fafc;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ma-login-input:focus {
  background: #fff;
  border-color: var(--ma-primary);
  box-shadow: 0 0 0 3px rgba(26, 158, 122, 0.15);
}

.ma-login-password-toggle {
  position: absolute;
  right: 0.75rem;
  z-index: 2;
  border: 0;
  background: transparent;
  padding: 0.25rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
}

.ma-login-password-toggle:hover {
  color: var(--ma-primary);
}

.ma-login-submit {
  height: 48px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(26, 158, 122, 0.28);
}

.ma-login-submit .isax {
  font-size: 1.1rem;
  transition: transform 0.15s ease;
}

.ma-login-submit:hover .isax {
  transform: translateX(2px);
}

.ma-login-footer {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.ma-totp-input {
  letter-spacing: 0.35em;
  font-variant-numeric: tabular-nums;
}

.ma-header-avatar {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a9e7a, #157a60) !important;
  color: #fff !important;
  font-family: var(--ma-font);
  font-weight: 700;
  font-size: 0.875rem;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.ma-header-avatar-lg {
  width: 48px;
  height: 48px;
  font-size: 1.125rem;
  border-radius: 50%;
}

#ma-header-avatar-sm,
#ma-header-avatar-mobile {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.profile-dropdown .avatar.ma-header-avatar img {
  display: none;
}

/* ── Dashboard compact layout (density + rearranged sections) ── */
.content-two:has(#ma-dashboard-updated) {
  padding-bottom: 1rem;
}

.content-two:has(#ma-dashboard-updated) .ma-dash-panel-head {
  padding: 10px 16px;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid transparent;
  margin-bottom: 0 !important;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-signups .ma-dash-panel-head {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-bottom-color: #d1fae5;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-plan .ma-dash-panel-head {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border-bottom-color: #ddd6fe;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-extraction .ma-dash-panel-head {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border-bottom-color: #ddd6fe;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-activity .ma-dash-panel-head {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-bottom-color: #fde68a;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-modules .ma-dash-panel-head {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border-bottom-color: #d1fae5;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-modules {
  border-left: 4px solid #10b981 !important;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-modules .ma-panel-title {
  color: #065f46;
}

/* Operations row — equal-height panel headers */
.content-two:has(#ma-dashboard-updated) .ma-panel-extraction .ma-dash-panel-head,
.content-two:has(#ma-dashboard-updated) .ma-panel-activity .ma-dash-panel-head,
.content-two:has(#ma-dashboard-updated) .ma-panel-modules .ma-dash-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  min-height: 44px;
  height: 44px;
  padding: 0 16px !important;
  box-sizing: border-box;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-activity .ma-dash-panel-head,
.content-two:has(#ma-dashboard-updated) .ma-panel-modules .ma-dash-panel-head {
  justify-content: flex-start;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-extraction > .card-body > .ma-dash-panel-head,
.content-two:has(#ma-dashboard-updated) .ma-panel-activity > .card-body > .ma-dash-panel-head {
  padding: 0 16px !important;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-api-usage .ma-dash-panel-head,
.content-two:has(#ma-dashboard-updated) .ma-panel-api-usage > .card-body > .ma-api-usage-header {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border-bottom: 1px solid #d1fae5;
  padding: 10px 16px;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-title {
  font-size: 0.9rem;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card .card-body,
.content-two:has(#ma-dashboard-updated) .ma-kpi-card-body {
  padding: 12px 14px !important;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card .ma-kpi-value,
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--paid .ma-kpi-value,
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--waitlist .ma-kpi-value {
  font-size: 1.55rem;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-icon i {
  font-size: 18px;
  width: 18px;
  height: 18px;
  line-height: 18px;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card .ma-kpi-label {
  font-size: 0.68rem;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card .ma-kpi-sub,
.content-two:has(#ma-dashboard-updated) .ma-kpi-card .ma-kpi-sub--dim,
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--paid .ma-kpi-breakdown {
  font-size: 0.75rem;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card:hover {
  transform: translateY(-1px);
}

/* Total Users vs Paid Subscribers — distinct figure typography (same palette) */
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--users .ma-kpi-label {
  font-weight: 600;
  letter-spacing: 0.07em;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--users .ma-kpi-value {
  font-size: 1.48rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: proportional-nums;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--users .ma-kpi-sub,
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--users .ma-kpi-sub--dim {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--paid .ma-kpi-label {
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 0.62rem;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--paid .ma-kpi-value {
  font-size: 1.82rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--paid .ma-kpi-sub,
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--paid .ma-kpi-breakdown {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--revenue .ma-kpi-label {
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.62rem;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--revenue .ma-kpi-value {
  font-size: 1.82rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--revenue .ma-kpi-sub,
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--revenue .ma-kpi-sub--dim {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* KPI font colors — reference palette (income=blue, net worth=green, budget=amber, goals=navy) */
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--users .ma-kpi-label { color: #2f9e5a; }
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--users .ma-kpi-value { color: #1f7a3f; }
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--users .ma-kpi-sub,
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--users .ma-kpi-sub--dim { color: #3cb371; }

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--paid .ma-kpi-label { color: #d97706; }
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--paid .ma-kpi-value { color: #b45309; }
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--paid .ma-kpi-sub,
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--paid .ma-kpi-breakdown { color: #ea9a0f; }

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--waitlist .ma-kpi-label { color: #2563eb; }
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--waitlist .ma-kpi-value { color: #1d4ed8; }
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--waitlist .ma-kpi-sub,
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--waitlist .ma-kpi-sub--dim { color: #3b82f6; }

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--revenue .ma-kpi-label { color: #059669; }
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--revenue .ma-kpi-value { color: #047857; }
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--revenue .ma-kpi-sub,
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--revenue .ma-kpi-sub--dim { color: #10b981; }

.content-two:has(#ma-dashboard-updated) .ma-kpi-card--queue .ma-kpi-label { color: #1e3a5f; }
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--queue .ma-kpi-value { color: #0f2744; }
.content-two:has(#ma-dashboard-updated) .ma-kpi-card--queue .ma-kpi-sub { color: #334e68; }

.content-two:has(#ma-dashboard-updated) .ma-panel-signups #ma-signups-chart {
  min-height: 210px;
  padding: 10px 14px 12px;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-plan #ma-plan-donut-chart {
  padding: 6px 14px 0;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-plan #ma-plan-legend {
  padding: 4px 14px 12px;
}

.content-two:has(#ma-dashboard-updated) .ma-donut-host {
  min-height: 185px;
}

.content-two:has(#ma-dashboard-updated) .ma-chart-skeleton {
  height: 190px;
}

.content-two:has(#ma-dashboard-updated) .ma-chart-skeleton--donut {
  height: 160px;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-plan .apexcharts-datalabel-value {
  font-size: 22px !important;
}

.content-two:has(#ma-dashboard-updated) .ma-extraction-body {
  padding: 12px 14px 14px;
}

.content-two:has(#ma-dashboard-updated) #ma-extraction-rows {
  gap: 8px;
  padding: 0;
  margin-bottom: 10px !important;
}

.content-two:has(#ma-dashboard-updated) .ma-extraction-row {
  padding: 10px 12px 10px 28px;
  border-radius: 10px;
  gap: 4px;
}

.content-two:has(#ma-dashboard-updated) .ma-extraction-row::before {
  left: 12px;
  top: 16px;
  width: 7px;
  height: 7px;
}

.content-two:has(#ma-dashboard-updated) .ma-extraction-count {
  font-size: 1.25rem;
}

.content-two:has(#ma-dashboard-updated) .ma-extraction-footer {
  padding: 0;
  margin: 0;
  font-size: 0.75rem;
}

.content-two:has(#ma-dashboard-updated) .ma-activity-body {
  padding: 0 14px 12px;
}

.content-two:has(#ma-dashboard-updated) .ma-audit-list-scroll {
  max-height: 200px;
  overflow-y: hidden;
  margin-bottom: 0;
  scrollbar-width: none;
}

.content-two:has(#ma-dashboard-updated) .ma-audit-list-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-activity:hover .ma-audit-list-scroll {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-activity:hover .ma-audit-list-scroll::-webkit-scrollbar {
  width: 6px;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-activity:hover .ma-audit-list-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-activity:hover .ma-audit-list-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.content-two:has(#ma-dashboard-updated) .ma-audit-feed-item {
  padding: 8px 0;
}

.content-two:has(#ma-dashboard-updated) .ma-audit-avatar {
  width: 30px;
  height: 30px;
  font-size: 0.65rem;
}

.content-two:has(#ma-dashboard-updated) .ma-audit-email {
  font-size: 0.78rem;
}

.content-two:has(#ma-dashboard-updated) .ma-audit-action {
  font-size: 0.72rem;
}

.content-two:has(#ma-dashboard-updated) .ma-audit-time {
  font-size: 0.68rem;
}

.content-two:has(#ma-dashboard-updated) .ma-activity-body .ma-audit-log-link:hover {
  color: #13755c;
  background: transparent;
}

.content-two:has(#ma-dashboard-updated) .ma-dash-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 14px 14px;
}

.content-two:has(#ma-dashboard-updated) .ma-dash-module-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.content-two:has(#ma-dashboard-updated) .ma-dash-module-link i {
  font-size: 1rem;
  color: #059669;
}

.content-two:has(#ma-dashboard-updated) .ma-dash-module-link:hover {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #065f46;
  transform: translateY(-1px);
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-body {
  padding: 12px 14px 0;
  margin: 0;
}

.content-two:has(#ma-dashboard-updated) .ma-panel-api-usage > .card-body > #ma-api-usage-updated,
.content-two:has(#ma-dashboard-updated) .ma-panel-api-usage > .card-body > .ma-api-usage-updated {
  padding: 8px 14px 12px;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-hero {
  padding: 0.875rem;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-hero-icon {
  width: 32px;
  height: 32px;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-hero-value {
  font-size: 1.45rem;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-hero-meta,
.content-two:has(#ma-dashboard-updated) .ma-api-usage-hero-period {
  font-size: 0.75rem;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-totals {
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem !important;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-provider-card {
  padding: 0.5rem 0.65rem;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-provider-name {
  font-size: 0.75rem;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-provider-cost {
  font-size: 0.8125rem;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-provider-meta {
  font-size: 0.7rem;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-chart-host {
  min-height: 150px;
}

.content-two:has(#ma-dashboard-updated) .ma-extraction-refresh-badge,
.content-two:has(#ma-dashboard-updated) .ma-api-usage-refresh-badge {
  font-size: 0.68rem;
  padding: 1px 8px;
}

/* AI API Usage — compact unified layout */
.content-two:has(#ma-dashboard-updated) .ma-api-usage-body {
  padding: 10px 14px 0;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: linear-gradient(135deg, #f0fdf4, #fff);
  border: 1px solid #d1fae5;
  border-radius: 10px;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 120px;
  padding-right: 12px;
  border-right: 1px solid #d1fae5;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-stat:last-child {
  border-right: 0;
  padding-right: 0;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #047857;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: #065f46;
  line-height: 1.2;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-stat-value--sm {
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-stat--period {
  flex: 1.4 1 180px;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-provider-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-provider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-provider-row--ai {
  background: linear-gradient(135deg, #f0fdf4, #fff);
  border-color: #bbf7d0;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-provider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ma-provider-color, #94a3b8);
  flex-shrink: 0;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-provider-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-provider-row .ma-api-usage-provider-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.2;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-provider-row .ma-api-usage-provider-meta {
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.2;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-provider-row .ma-api-usage-provider-cost {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #065f46;
  flex-shrink: 0;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-chart-wrap {
  height: 100%;
  padding: 6px 8px 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-chart-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #047857;
}

.content-two:has(#ma-dashboard-updated) .ma-api-usage-chart-host {
  min-height: 0;
}
