/* ─────────────────────────────────────────────────────────────
   VerifyDocs — Modern Fintech Design System v3.0
   ───────────────────────────────────────────────────────────── */

/* ── Design Tokens ── */
:root {
  --sidebar-bg:        #0C1628;
  --sidebar-hover:     rgba(255,255,255,0.07);
  --sidebar-active-bg: rgba(59,130,246,0.18);
  --sidebar-indicator: #3B82F6;
  --sidebar-text:      rgba(255,255,255,0.62);
  --sidebar-icon:      rgba(255,255,255,0.5);
  --sidebar-text-h:    rgba(255,255,255,0.9);
  --sidebar-width:     252px;

  --color-primary:       #1E3A5F;
  --color-primary-light: #2D5986;
  --color-accent:        #0EA5E9;
  --color-accent-dark:   #0284C7;

  --color-success:      #10B981;
  --color-success-bg:   #D1FAE5;
  --color-warning:      #F59E0B;
  --color-warning-bg:   #FEF3C7;
  --color-danger:       #EF4444;
  --color-danger-bg:    #FEE2E2;
  --color-info:         #6366F1;
  --color-info-bg:      #EEF2FF;
  --color-purple:       #8B5CF6;
  --color-purple-bg:    #EDE9FE;
  --color-teal:         #14B8A6;
  --color-teal-bg:      #CCFBF1;

  --color-surface:      #FFFFFF;
  --color-bg:           #F0F4F8;
  --color-border:       #E2E8F0;
  --color-border-focus: #0EA5E9;

  --color-text-primary:   #0F172A;
  --color-text-secondary: #64748B;
  --color-text-muted:     #94A3B8;

  --radius-card:  12px;
  --radius-btn:   8px;
  --radius-badge: 20px;
  --radius-input: 8px;

  --topnav-height: 62px;

  --shadow-sm:    0 1px 2px rgba(0,0,0,0.05);
  --shadow-card:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-lg:    0 4px 20px rgba(0,0,0,0.10);
  --shadow-modal: 0 20px 60px rgba(0,0,0,0.22);

  --font-brand: "Bungee", system-ui, sans-serif;
  --font-mono:  "Chakra Petch", ui-monospace, monospace;
  --font-body:  system-ui, -apple-system, "Segoe UI", sans-serif;

  --transition: 0.18s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-primary);
  background: var(--color-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ═══════════════════════════════════════════════
   AUTH LAYOUT
═══════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #0C1628 0%, #1E3A5F 50%, #0C1628 100%);
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

.auth-page::after {
  content: "";
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 430px;
  background: var(--color-surface);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: var(--shadow-modal);
  position: relative;
  z-index: 1;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.auth-logo-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #1E3A5F, #0EA5E9);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 14px rgba(14,165,233,0.35);
}

.auth-brand {
  font-family: var(--font-brand);
  font-size: 26px;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #1E3A5F, #0EA5E9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 4px;
}

.auth-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 28px;
}

.auth-heading {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: var(--color-text-primary);
}

/* ═══════════════════════════════════════════════
   FORMS & INPUTS
═══════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-input);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  background: var(--color-surface);
  color: var(--color-text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:hover { border-color: #CBD5E1; }
.form-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}

select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 80px; }

.form-input::placeholder { color: var(--color-text-muted); }

.password-wrap { position: relative; }
.password-wrap .form-input { padding-right: 72px; }

.btn-ghost-inline {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
}
.btn-ghost-inline:hover { color: var(--color-text-primary); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .full { grid-column: 1 / -1; }

.form-hint { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; }

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  margin-bottom: 16px;
}
.inline-form .form-input { width: auto; min-width: 120px; }
.inline-form .form-group { margin-bottom: 0; }

/* ── Toggle (checkbox switch) ── */
.toggle {
  appearance: none;
  width: 40px; height: 22px;
  border-radius: 11px;
  background: #CBD5E1;
  position: relative;
  cursor: pointer;
  border: 0;
  transition: background var(--transition);
  flex-shrink: 0;
}
.toggle::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 2px; left: 2px;
  transition: left 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle:checked { background: var(--color-success); }
.toggle:checked::after { left: 20px; }

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn i { font-size: 16px; }

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #1E3A5F 0%, #0EA5E9 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 12px rgba(14,165,233,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #2D5986 0%, #0284C7 100%);
  box-shadow: 0 4px 16px rgba(14,165,233,0.4);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-inline   { width: auto; }
.btn-sm       { padding: 6px 12px; font-size: 12px; }
.btn-xs       { padding: 4px 8px; font-size: 11px; }

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  text-decoration: none;
  color: var(--color-primary);
}

.btn-success {
  background: var(--color-success);
  color: #fff;
  border-color: var(--color-success);
}
.btn-success:hover { background: #0D9F76; }

.btn-danger {
  background: var(--color-danger);
  color: #fff;
  border-color: var(--color-danger);
}
.btn-danger:hover { background: #DC2626; }

.btn-warning {
  background: var(--color-warning);
  color: #fff;
  border-color: var(--color-warning);
}
.btn-warning:hover { background: #D97706; }

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: transparent;
}
.btn-ghost:hover { background: #F1F5F9; color: var(--color-text-primary); }

.btn-icon {
  width: 34px; height: 34px;
  padding: 0;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #F1F5F9;
  color: var(--color-text-secondary);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-icon:hover { background: #E2E8F0; color: var(--color-text-primary); }
.btn-icon i { font-size: 16px; }

.link-btn {
  background: none;
  border: 0;
  color: var(--color-accent);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  padding: 0;
  font-weight: 500;
}
.link-btn:hover { text-decoration: underline; }

/* ── Spinner ── */
.spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Alert ── */
.alert-error {
  border: 1.5px solid var(--color-danger);
  color: #991B1B;
  background: var(--color-danger-bg);
  border-radius: var(--radius-input);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-banner {
  background: #FFF7ED;
  border: 1.5px solid #FDBA74;
  color: #92400E;
  border-radius: var(--radius-card);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ═══════════════════════════════════════════════
   MAIN APP SHELL
═══════════════════════════════════════════════ */
.admin-shell {
  display: flex;
  min-height: 100vh;
  background: var(--color-bg);
}

/* ── Sidebar Overlay (mobile) ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 199;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.visible { display: block; }

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  min-height: 100vh;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
  overflow: hidden;
}

.sidebar-header {
  padding: 20px 20px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.sidebar-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #1E3A5F, #0EA5E9);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(14,165,233,0.35);
}

.sidebar-brand {
  font-family: var(--font-brand);
  font-size: 18px;
  letter-spacing: 0.5px;
  color: #fff;
  line-height: 1;
}

.sidebar-role-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(14,165,233,0.9);
  background: rgba(14,165,233,0.12);
  border: 1px solid rgba(14,165,233,0.25);
  border-radius: 4px;
  padding: 2px 6px;
  margin-top: 2px;
  display: block;
}

.sidebar-close-btn {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 0;
  color: var(--sidebar-text);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.sidebar-nav-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.sidebar-nav-wrap::-webkit-scrollbar { display: none; }

.nav-section-label {
  padding: 10px 20px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0 10px;
}

.sidebar-nav li { margin-bottom: 2px; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--sidebar-text);
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 9px;
  transition: all var(--transition);
  position: relative;
  border: 1px solid transparent;
}

.sidebar-nav a i {
  font-size: 17px;
  color: var(--sidebar-icon);
  transition: color var(--transition);
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.sidebar-nav a:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text-h);
  text-decoration: none;
}
.sidebar-nav a:hover i { color: rgba(255,255,255,0.8); }

.sidebar-nav a.active {
  background: var(--sidebar-active-bg);
  color: #fff;
  border-color: rgba(59,130,246,0.25);
}
.sidebar-nav a.active i { color: #60A5FA; }
.sidebar-nav a.active::before {
  content: "";
  position: absolute;
  left: -10px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 22px;
  background: var(--sidebar-indicator);
  border-radius: 0 3px 3px 0;
}

/* Merchant name in sidebar */
.sidebar-merchant-info {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 4px;
}
.sidebar-merchant-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-merchant-label {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.45);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}
.sidebar-footer a:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.sidebar-footer a i { font-size: 16px; }

/* ── Main Content Wrapper ── */
.main-wrap {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ── Topnav ── */
.topnav {
  height: var(--topnav-height);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.topnav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topnav-hamburger {
  display: none;
  width: 38px; height: 38px;
  background: #F1F5F9;
  border: 1.5px solid var(--color-border);
  border-radius: 9px;
  align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--color-text-secondary);
  font-size: 20px;
  transition: all var(--transition);
}
.topnav-hamburger:hover { background: #E2E8F0; color: var(--color-text-primary); }

.page-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.page-subtitle {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 1px;
}

.topnav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topnav-badge-time {
  font-size: 12px;
  color: var(--color-text-secondary);
  background: #F8FAFC;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.topnav-badge-time i { font-size: 14px; }

.topnav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  padding: 5px 12px 5px 6px;
  cursor: pointer;
}
.topnav-avatar {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, #1E3A5F, #0EA5E9);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.topnav-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}

/* ── Content ── */
.content {
  padding: 24px;
  flex: 1;
}

/* ─────────────────────────────────────────────
   STAT CARDS
───────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.stat-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

/* Colored stat card variants */
.stat-navy   { background: linear-gradient(135deg, #1E3A5F, #2D5986); color: #fff; border: none; }
.stat-blue   { background: linear-gradient(135deg, #0EA5E9, #0284C7); color: #fff; border: none; }
.stat-green  { background: linear-gradient(135deg, #10B981, #059669); color: #fff; border: none; }
.stat-orange { background: linear-gradient(135deg, #F59E0B, #D97706); color: #fff; border: none; }
.stat-red    { background: linear-gradient(135deg, #EF4444, #DC2626); color: #fff; border: none; }
.stat-purple { background: linear-gradient(135deg, #8B5CF6, #7C3AED); color: #fff; border: none; }
.stat-teal   { background: linear-gradient(135deg, #14B8A6, #0F9688); color: #fff; border: none; }
.stat-indigo { background: linear-gradient(135deg, #6366F1, #4F46E5); color: #fff; border: none; }

.stat-navy .stat-label,
.stat-blue .stat-label,
.stat-green .stat-label,
.stat-orange .stat-label,
.stat-red .stat-label,
.stat-purple .stat-label,
.stat-teal .stat-label,
.stat-indigo .stat-label {
  color: rgba(255,255,255,0.75);
}

.stat-navy .stat-value,
.stat-blue .stat-value,
.stat-green .stat-value,
.stat-orange .stat-value,
.stat-red .stat-value,
.stat-purple .stat-value,
.stat-teal .stat-value,
.stat-indigo .stat-value {
  color: #fff;
}

.stat-navy .stat-card-icon   { background: rgba(255,255,255,0.15); color: #fff; }
.stat-blue .stat-card-icon   { background: rgba(255,255,255,0.18); color: #fff; }
.stat-green .stat-card-icon  { background: rgba(255,255,255,0.18); color: #fff; }
.stat-orange .stat-card-icon { background: rgba(255,255,255,0.18); color: #fff; }
.stat-red .stat-card-icon    { background: rgba(255,255,255,0.18); color: #fff; }
.stat-purple .stat-card-icon { background: rgba(255,255,255,0.18); color: #fff; }
.stat-teal .stat-card-icon   { background: rgba(255,255,255,0.18); color: #fff; }
.stat-indigo .stat-card-icon { background: rgba(255,255,255,0.18); color: #fff; }

.stat-card::after {
  content: "";
  position: absolute;
  right: -20px; bottom: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  pointer-events: none;
}

.stat-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.1;
}

.stat-change {
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.stat-change.up   { color: rgba(255,255,255,0.8); }
.stat-change.down { color: rgba(255,255,255,0.8); }
.stat-card:not([class*="stat-"]) .stat-change.up   { color: var(--color-success); }
.stat-card:not([class*="stat-"]) .stat-change.down { color: var(--color-danger); }

/* ─────────────────────────────────────────────
   PANEL / SECTION CARDS
───────────────────────────────────────────── */
.panel,
.section-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.panel-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-title i { font-size: 18px; color: var(--color-accent); }

/* ─────────────────────────────────────────────
   CHARTS GRID
───────────────────────────────────────────── */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.chart-box {
  position: relative;
  height: 260px;
}

/* ─────────────────────────────────────────────
   TABLES
───────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: 8px; }

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.table thead tr th {
  text-align: left;
  padding: 10px 14px;
  background: #F8FAFC;
  color: var(--color-text-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.table thead tr th:first-child { border-radius: 8px 0 0 0; }
.table thead tr th:last-child  { border-radius: 0 8px 0 0; }

.table tbody tr td {
  padding: 12px 14px;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
  color: var(--color-text-primary);
}

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

.table tbody tr:hover td {
  background: #F8FAFC;
}

/* Cell helpers */
.td-mono  { font-family: var(--font-mono); font-size: 12px; }
.td-muted { color: var(--color-text-secondary); font-size: 12px; }

/* ─────────────────────────────────────────────
   BADGES / STATUS PILLS
───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-badge);
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.badge-active,
.badge-healthy  { background: var(--color-success-bg); color: #065F46; }
.badge-pending  { background: var(--color-warning-bg); color: #92400E; }
.badge-suspended,
.badge-degraded { background: var(--color-warning-bg); color: #92400E; }
.badge-banned,
.badge-unhealthy,
.badge-danger   { background: var(--color-danger-bg); color: #991B1B; }
.badge-unknown  { background: #F1F5F9; color: var(--color-text-secondary); }
.badge-info     { background: var(--color-info-bg); color: #3730A3; }
.badge-credit   { background: var(--color-success-bg); color: #065F46; }
.badge-debit    { background: var(--color-danger-bg); color: #991B1B; }

/* Dot prefix for status badges */
.badge-active::before,
.badge-healthy::before  { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-success); }
.badge-pending::before  { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-warning); }
.badge-banned::before,
.badge-unhealthy::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-danger); }
.badge-suspended::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-warning); }

/* Provider health badges */
.badge-healthy  { background: var(--color-success-bg); color: #065F46; border: none; }
.badge-degraded { background: var(--color-warning-bg); color: #92400E; border: none; }
.badge-unhealthy{ background: var(--color-danger-bg); color: #991B1B; border: none; }

/* ─────────────────────────────────────────────
   TOOLBAR & FILTERS
───────────────────────────────────────────── */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.toolbar-left, .toolbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  align-items: flex-end;
}
.filters-row .form-input  { width: auto; min-width: 140px; flex: 1 1 140px; }
.filters-row .search-input{ min-width: 220px; flex: 2 1 220px; position: relative; }

/* ─────────────────────────────────────────────
   PAGINATION
───────────────────────────────────────────── */
.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
  font-size: 13px;
  color: var(--color-text-secondary);
}
.pagination-pages { display: flex; gap: 4px; flex-wrap: wrap; }
.page-btn {
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 7px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all var(--transition);
  font-family: inherit;
}
.page-btn:hover { background: #F1F5F9; border-color: #CBD5E1; }
.page-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─────────────────────────────────────────────
   TABS
───────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  background: #F1F5F9;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
  width: fit-content;
  max-width: 100%;
}

.tab-btn {
  border: 0;
  background: transparent;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  border-radius: 7px;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tab-btn i { font-size: 15px; }
.tab-btn:hover { color: var(--color-text-primary); background: rgba(255,255,255,0.6); }
.tab-btn.active {
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ─────────────────────────────────────────────
   MODALS
───────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(4px);
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal-backdrop[hidden] { display: none !important; }

.modal {
  background: var(--color-surface);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow: auto;
  padding: 24px;
  box-shadow: var(--shadow-modal);
  animation: modalIn 0.22s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-lg { max-width: 720px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}
.modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-primary);
}
.modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 0;
  background: #F1F5F9;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: all var(--transition);
  font-family: inherit;
}
.modal-close:hover { background: #E2E8F0; color: var(--color-text-primary); }

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

/* ─────────────────────────────────────────────
   TOAST NOTIFICATIONS
───────────────────────────────────────────── */
.toast-stack {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 1100;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  max-width: 340px;
}

.toast {
  background: var(--color-surface);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.25s ease;
  border-left: 3px solid var(--color-border);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.toast-error   { border-left-color: var(--color-danger); color: #991B1B; }
.toast-success { border-left-color: var(--color-success); color: #065F46; }
.toast-info    { border-left-color: var(--color-accent); color: var(--color-primary); }

/* ─────────────────────────────────────────────
   SKELETON LOADERS
───────────────────────────────────────────── */
.skeleton-line {
  height: 12px;
  background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
  margin-bottom: 10px;
}
.skeleton-line.tall { height: 28px; width: 55%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─────────────────────────────────────────────
   BREADCRUMB
───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--color-text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb-sep { color: #CBD5E1; font-size: 16px; }
.breadcrumb span { color: var(--color-text-primary); font-weight: 600; }

/* ─────────────────────────────────────────────
   DETAIL HEADER
───────────────────────────────────────────── */
.detail-header {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.detail-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.detail-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────────
   KV / DETAIL GRID
───────────────────────────────────────────── */
.kv-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 16px;
  font-size: 13px;
}
.kv-grid dt {
  color: var(--color-text-secondary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding-top: 2px;
}
.kv-grid dd {
  margin: 0;
  font-weight: 500;
  color: var(--color-text-primary);
}
.kv-grid dd.mono { font-family: var(--font-mono); font-size: 12px; }

/* ─────────────────────────────────────────────
   CREDENTIAL / API KEYS
───────────────────────────────────────────── */
.cred-box {
  background: #0F172A;
  border-radius: 10px;
  padding: 16px;
  margin-top: 8px;
}

.cred-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.cred-row:last-child { border-bottom: none; padding-bottom: 0; }
.cred-row:first-child { padding-top: 0; }

.cred-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.4);
  min-width: 100px;
}
.cred-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #E2E8F0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cred-copy {
  background: rgba(255,255,255,0.08);
  border: 0;
  color: rgba(255,255,255,0.55);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  flex-shrink: 0;
}
.cred-copy:hover { background: rgba(255,255,255,0.14); color: #fff; }

.api-card {
  background: #0F172A;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 0;
}
.api-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.api-card-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
}

/* ─────────────────────────────────────────────
   PROVIDER HEALTH
───────────────────────────────────────────── */
.provider-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

/* ─────────────────────────────────────────────
   SORTABLE COLUMNS
───────────────────────────────────────────── */
.sortable { cursor: pointer; user-select: none; }
.sortable::after { content: " ↕"; opacity: 0.35; font-size: 10px; }
.sortable.asc::after  { content: " ↑"; opacity: 1; color: var(--color-accent); }
.sortable.desc::after { content: " ↓"; opacity: 1; color: var(--color-accent); }

/* ─────────────────────────────────────────────
   UTILITY
───────────────────────────────────────────── */
.mono        { font-family: var(--font-mono); font-size: 12.5px; }
.muted       { color: var(--color-text-muted); font-size: 12px; }
.warning-text{ color: var(--color-warning); font-size: 13px; margin: 8px 0; }
.text-success{ color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-muted  { color: var(--color-text-secondary); font-size: 12px; }
.text-sm     { font-size: 12px; }
.fw-bold     { font-weight: 700; }
.nav-disabled{ opacity: 0.4; pointer-events: none; }
.break-all   { word-break: break-all; }

/* Divider */
.divider {
  height: 1px;
  background: var(--color-border);
  margin: 16px 0;
}

/* Section label */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* Empty state */
.empty-state {
  text-align: center;
  color: var(--color-text-secondary);
  padding: 40px 16px;
  font-size: 13px;
}
.empty-state i { font-size: 40px; color: #CBD5E1; display: block; margin-bottom: 10px; }
.empty-state p { margin: 0; }

/* ─────────────────────────────────────────────
   WALLET / FINTECH SPECIFIC
───────────────────────────────────────────── */
.wallet-balance-card {
  background: linear-gradient(135deg, #0C1628 0%, #1E3A5F 60%, #0EA5E9 100%);
  border-radius: 16px;
  padding: 28px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.wallet-balance-card::before {
  content: "";
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  right: -40px; top: -60px;
}
.wallet-balance-card::after {
  content: "";
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  right: 60px; bottom: -50px;
}
.wallet-balance-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}
.wallet-balance-amount {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.wallet-balance-actions { display: flex; gap: 10px; position: relative; z-index: 1; }
.wallet-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.wallet-action-btn:hover { background: rgba(255,255,255,0.25); }

.txn-type-credit { color: var(--color-success); font-weight: 600; }
.txn-type-debit  { color: var(--color-danger); font-weight: 600; }

/* ─────────────────────────────────────────────
   INTEGRATION / API PAGE
───────────────────────────────────────────── */
.integration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.ip-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F1F5F9;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 3px;
}
.ip-chip button {
  background: transparent;
  border: 0;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
  transition: color var(--transition);
}
.ip-chip button:hover { color: var(--color-danger); }

/* ─────────────────────────────────────────────
   WORKFLOW BUILDER
───────────────────────────────────────────── */
.workflow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F8FAFC;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 8px;
  transition: all var(--transition);
}
.workflow-step:hover { border-color: var(--color-accent); background: #F0F9FF; }
.workflow-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.workflow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  color: var(--color-text-muted);
  font-size: 20px;
}

/* ─────────────────────────────────────────────
   INFO / METRIC ROWS
───────────────────────────────────────────── */
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
  gap: 12px;
}
.metric-row:last-child { border-bottom: none; }
.metric-row-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 7px;
}
.metric-row-label i { font-size: 15px; color: var(--color-text-muted); }
.metric-row-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  font-family: var(--font-mono);
}

/* ─────────────────────────────────────────────
   REPORTS NAV
───────────────────────────────────────────── */
.report-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  background: #F1F5F9;
  border-radius: 10px;
  padding: 5px;
  width: fit-content;
  max-width: 100%;
}
.report-tab-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all var(--transition);
}
.report-tab-link i { font-size: 15px; }
.report-tab-link:hover { background: rgba(255,255,255,0.7); color: var(--color-text-primary); text-decoration: none; }
.report-tab-link.active {
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-decoration: none;
}

/* ─────────────────────────────────────────────
   SETTINGS PAGE
───────────────────────────────────────────── */
.settings-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.settings-section-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  background: #FAFBFC;
  display: flex;
  align-items: center;
  gap: 10px;
}
.settings-section-header h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: var(--color-text-primary);
}
.settings-section-header i { font-size: 18px; color: var(--color-accent); }
.settings-section-body { padding: 20px; }
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #F1F5F9;
  gap: 16px;
}
.settings-row:last-child { border-bottom: none; }
.settings-row-info h4 { font-size: 13.5px; font-weight: 600; margin: 0 0 2px; }
.settings-row-info p  { font-size: 12px; color: var(--color-text-secondary); margin: 0; }

/* ─────────────────────────────────────────────
   RESPONSIVE — TABLET
───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .charts-grid   { grid-template-columns: 1fr; }
  .integration-grid { grid-template-columns: 1fr; }
  .form-grid     { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — MOBILE
───────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --sidebar-width: 260px; --topnav-height: 56px; }

  .sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-modal);
  }
  .sidebar.open { transform: translateX(0); }

  .sidebar-close-btn  { display: flex; align-items: center; justify-content: center; }
  .topnav-hamburger   { display: flex; }
  .topnav-badge-time  { display: none; }

  .main-wrap { margin-left: 0; }

  .content { padding: 16px; }

  .stats-grid    { grid-template-columns: 1fr 1fr; gap: 12px; }
  .charts-grid   { grid-template-columns: 1fr; }
  .form-grid     { grid-template-columns: 1fr; }
  .kv-grid       { grid-template-columns: 1fr; }
  .integration-grid { grid-template-columns: 1fr; }

  .tabs { width: 100%; }
  .tab-btn { font-size: 12px; padding: 7px 10px; }

  .detail-header { flex-direction: column; align-items: flex-start; }
  .detail-header h2 { font-size: 18px; }

  .table th, .table td { padding: 10px 10px; }

  .modal { padding: 16px; border-radius: 12px; }

  .topnav-user-name { display: none; }
  .topnav { padding: 0 14px; }

  .wallet-balance-amount { font-size: 28px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-right { justify-content: flex-end; }
  .filters-row .form-input { flex: 1 1 100%; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
}

/* ─────────────────────────────────────────────
   PRINT
───────────────────────────────────────────── */
@media print {
  .sidebar, .topnav, .toast-stack, .modal-backdrop { display: none !important; }
  .main-wrap { margin-left: 0; }
  .content { padding: 0; }
}

/* ---------------------------------------------
   LEGACY CLASS ALIASES (backward compat)
--------------------------------------------- */
.form-control { }
.form-control,
input.form-control,
select.form-control,
textarea.form-control {
  width: 100%;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-input);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  background: var(--color-surface);
  color: var(--color-text-primary);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  outline: none;
}
.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}

.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.data-table thead tr th {
  text-align: left; padding: 10px 14px;
  background: #F8FAFC; color: var(--color-text-secondary);
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; border-bottom: 1px solid var(--color-border); white-space: nowrap;
}
.data-table tbody tr td { padding: 12px 14px; border-bottom: 1px solid #F1F5F9; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #F8FAFC; }

.section-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow-card); }

.badge-success { background: var(--color-success-bg); color: #065F46; border-radius: 20px; padding: 3px 10px; font-size: 11.5px; font-weight: 600; }
.badge-warning { background: var(--color-warning-bg); color: #92400E; border-radius: 20px; padding: 3px 10px; font-size: 11.5px; font-weight: 600; }
.badge-danger  { background: var(--color-danger-bg); color: #991B1B; border-radius: 20px; padding: 3px 10px; font-size: 11.5px; font-weight: 600; }
.badge-info    { background: var(--color-info-bg); color: #3730A3; border-radius: 20px; padding: 3px 10px; font-size: 11.5px; font-weight: 600; }

.modal-body { padding: 4px 0; }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--color-border); }

.alert-success { background: #D1FAE5; border: 1.5px solid #6EE7B7; color: #065F46; border-radius: var(--radius-card); padding: 12px 16px; font-size: 13px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }

/* panel-toolbar alias */
.panel-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
