/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --primary: #6366f1;
  --primary-light: #eef2ff;
  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

html { font-size: 15px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ========== LOGIN PAGE ========== */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-hero {
  background: linear-gradient(135deg, #312e81 0%, #4338ca 50%, #6366f1 100%);
  color: white;
  padding: 3rem 2rem 2.5rem;
  text-align: center;
}

.login-hero-content {
  max-width: 680px;
  margin: 0 auto;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
}

.logo-mark.small {
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
  border-radius: 8px;
  background: var(--primary);
  color: white;
}

.login-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.login-subtitle {
  font-size: 1.05rem;
  opacity: 0.85;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.login-stats-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.login-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.login-stat strong {
  font-size: 1.6rem;
  font-weight: 800;
}

.login-stat span {
  font-size: 0.8rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ========== PERSONA SELECTION ========== */
.login-personas {
  flex: 1;
  padding: 2.5rem 2rem;
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
}

.login-personas h2 {
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.35rem;
}

.persona-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.persona-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.persona-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  font: inherit;
  color: var(--text);
  width: 100%;
}

.persona-card:hover {
  border-color: var(--persona-color, var(--primary));
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.persona-card:disabled {
  opacity: 0.6;
  cursor: wait;
}

.persona-avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.persona-info {
  flex: 1;
  min-width: 0;
}

.persona-info strong {
  font-size: 1.05rem;
  display: block;
}

.persona-title {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: block;
}

.persona-email {
  color: var(--text-dim);
  font-size: 0.8rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  display: block;
  margin: 0.15rem 0;
}

.persona-caps {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  line-height: 1.4;
}

.persona-arrow {
  font-size: 1.4rem;
  color: var(--text-dim);
  transition: transform 0.2s;
}

.persona-card:hover .persona-arrow {
  transform: translateX(4px);
  color: var(--persona-color, var(--primary));
}

/* ========== DASHBOARD LAYOUT ========== */
.dashboard {
  min-height: 100vh;
  padding-bottom: 3rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar h1 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.topbar-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ========== TABS ========== */
.tab-nav {
  display: flex;
  gap: 0;
  padding: 0 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.tab-btn {
  padding: 0.75rem 1.25rem;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
}

.tab-badge.warning {
  background: var(--danger);
}

/* ========== SHELL ========== */
.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

/* ========== BUTTONS ========== */
.btn-secondary {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text);
  transition: all 0.15s;
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--text-dim);
}

.btn-action {
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-action:hover:not(:disabled) {
  background: var(--primary);
  color: white;
}

.btn-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ========== QUICK ACTIONS ========== */
.quick-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}

/* ========== KPI CARDS ========== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding-top: 0.5rem;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.kpi-color-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.kpi-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 0.25rem;
}

.kpi-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
}

.kpi-trend {
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.kpi-trend.up { background: var(--success-light); color: #047857; }
.kpi-trend.down { background: var(--warning-light); color: #b45309; }

/* ========== PANELS ========== */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  overflow: hidden;
}

.panel-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-header h2 {
  font-size: 1rem;
  font-weight: 700;
}

.panel-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.panel-body {
  padding: 0.5rem 0;
  max-height: 600px;
  overflow-y: auto;
}

/* ========== ROW CARDS ========== */
.row-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid var(--bg);
  transition: background 0.1s;
}

.row-card:last-child { border-bottom: none; }
.row-card:hover { background: var(--bg); }

.row-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--danger-light);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.row-card-content {
  flex: 1;
  min-width: 0;
}

.row-card-content strong {
  font-size: 0.9rem;
  font-weight: 600;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-card-content p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.row-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
}

.amount {
  font-weight: 700;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

/* ========== STATUS BADGES ========== */
.status {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-draft { background: #f1f5f9; color: #475569; }
.status-submitted { background: #dbeafe; color: #1d4ed8; }
.status-in_review { background: #fef3c7; color: #92400e; }
.status-approved { background: var(--success-light); color: #047857; }
.status-reimbursed { background: #d1fae5; color: #065f46; }
.status-rejected { background: var(--danger-light); color: #b91c1c; }
.status-exported { background: #ede9fe; color: #6d28d9; }
.status-closed { background: #f1f5f9; color: #475569; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-paid { background: var(--success-light); color: #047857; }
.status-settled { background: var(--success-light); color: #047857; }
.status-processing { background: #dbeafe; color: #1d4ed8; }
.status-scheduled { background: #fef3c7; color: #92400e; }
.status-waived { background: #f1f5f9; color: #475569; }
.status-booked { background: #dbeafe; color: #1d4ed8; }
.status-completed { background: var(--success-light); color: #047857; }
.status-cancelled { background: var(--danger-light); color: #b91c1c; }

/* ========== SEVERITY ========== */
.severity {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.severity-low { background: #f1f5f9; color: #475569; }
.severity-medium { background: var(--warning-light); color: #92400e; }
.severity-high { background: #fed7aa; color: #c2410c; }
.severity-critical { background: var(--danger-light); color: #b91c1c; }

.severity-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.severity-dot.severity-low { background: #94a3b8; }
.severity-dot.severity-medium { background: var(--warning); }
.severity-dot.severity-high { background: #f97316; }
.severity-dot.severity-critical { background: var(--danger); }

/* ========== BADGES ========== */
.badge, .role-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.violation-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 11px;
  background: var(--danger);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ========== TWO COLUMN ========== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.col { min-width: 0; }

/* ========== CATEGORY BARS ========== */
.category-bars {
  padding: 0.5rem 1.25rem;
}

.category-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
}

.category-label {
  width: 140px;
  font-size: 0.85rem;
  font-weight: 500;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-bar-track {
  flex: 1;
  height: 22px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}

.category-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #818cf8 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
  min-width: 4px;
}

.category-amount {
  width: 90px;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* ========== ANOMALY GRID ========== */
.anomaly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
}

.anomaly-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: var(--bg);
}

.anomaly-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.anomaly-type {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
  flex: 1;
}

.anomaly-summary {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 0.35rem;
}

.anomaly-action {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ========== BUDGET GRID ========== */
.budget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
}

.budget-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: var(--bg);
}

.budget-card.over { border-color: var(--danger); background: var(--danger-light); }
.budget-card.near { border-color: var(--warning); background: var(--warning-light); }

.budget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.budget-header strong { font-size: 0.95rem; }

.budget-pct {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
}

.budget-pct.ok { background: var(--success-light); color: #047857; }
.budget-pct.warning { background: var(--warning-light); color: #92400e; }
.budget-pct.danger { background: var(--danger-light); color: #b91c1c; }

.budget-bar-track {
  height: 8px;
  background: rgba(0,0,0,0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.budget-bar-fill {
  height: 100%;
  background: var(--success);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.budget-bar-fill.warning { background: var(--warning); }
.budget-bar-fill.danger { background: var(--danger); }

.budget-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.budget-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: capitalize;
}

/* ========== DATA TABLE ========== */
.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th {
  padding: 0.6rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
}

.data-table td {
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--bg);
  vertical-align: middle;
}

.data-table tbody tr:hover { background: var(--bg); }
.data-table .row-violation { background: #fef2f2; }
.data-table .row-violation:hover { background: #fee2e2; }
.data-table .amount-cell { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }

/* ========== REPORT STATUS SUMMARY ========== */
.report-status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.report-status-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  background: var(--bg);
  font-size: 0.8rem;
}

.report-status-pill strong { font-weight: 700; }

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot.status-draft { background: #94a3b8; }
.status-dot.status-submitted { background: #3b82f6; }
.status-dot.status-in_review { background: var(--warning); }
.status-dot.status-approved { background: var(--success); }
.status-dot.status-reimbursed { background: #059669; }
.status-dot.status-rejected { background: var(--danger); }
.status-dot.status-exported { background: #7c3aed; }
.status-dot.status-closed { background: #64748b; }

/* ========== ERROR & LOADING ========== */
.error-banner {
  background: var(--danger-light);
  color: #b91c1c;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  border: 1px solid #fecaca;
  text-align: center;
  margin-top: 1rem;
}

.loading-indicator {
  text-align: center;
  color: var(--text-muted);
  padding: 1rem;
  font-size: 0.9rem;
}

/* ========== CLICKABLE ROWS ========== */
.row-card.clickable, .clickable-row { cursor: pointer; }
.row-card.clickable:hover { background: var(--primary-light); }
.clickable-row:hover { background: var(--primary-light) !important; }

/* ========== BACK BUTTON ========== */
.btn-back {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--primary);
  font-weight: 600;
  transition: all 0.15s;
}
.btn-back:hover { background: var(--primary-light); }

/* ========== PERSONA BADGE (topbar) ========== */
.persona-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
}

/* ========== RECEIPT PLACEHOLDER ========== */
.receipt-placeholder { padding: 1rem 1.25rem; }
.receipt-image {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-height: 200px;
  justify-content: center;
}
.receipt-icon { color: var(--text-dim); margin-bottom: 0.5rem; }
.receipt-merchant { font-weight: 700; font-size: 1.1rem; }
.receipt-amount { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.receipt-date { font-size: 0.85rem; color: var(--text-muted); }
.receipt-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-top: 0.5rem;
  padding: 0.2rem 0.6rem;
  background: rgba(0,0,0,0.04);
  border-radius: 4px;
}

/* ========== DETAIL GRID ========== */
.detail-grid { padding: 0.5rem 1.25rem; }
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--bg);
}
.detail-row:last-child { border-bottom: none; }
.detail-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.detail-value {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
}
.detail-value.highlight {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 800;
}
.detail-value.mono {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== APPROVAL CHAIN ========== */
.approval-chain {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.approval-step {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
  position: relative;
}
.approval-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 17px;
  top: 42px;
  bottom: -8px;
  width: 2px;
  background: var(--border);
}
.approval-step.completed:not(:last-child)::after { background: var(--success); }
.approval-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  background: var(--bg);
  color: var(--text-dim);
  border: 2px solid var(--border);
  z-index: 1;
}
.approval-step-icon.done {
  background: var(--success);
  color: white;
  border-color: var(--success);
}
.approval-step-icon.active {
  background: var(--warning-light);
  color: var(--warning);
  border-color: var(--warning);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}
.approval-step-content { flex: 1; }
.approval-step-content strong { font-size: 0.9rem; display: block; }
.approval-step-content p { font-size: 0.8rem; color: var(--text-muted); }
.approval-date {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: block;
  margin-top: 0.15rem;
}

/* ========== COMPLIANCE LIST ========== */
.compliance-list { padding: 0.5rem 1.25rem; }
.compliance-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bg);
}
.compliance-item:last-child { border-bottom: none; }
.compliance-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.compliance-icon.pass-icon {
  background: var(--success-light);
  color: var(--success);
}
.severity-bg-low { background: #f1f5f9; color: #475569; }
.severity-bg-medium { background: var(--warning-light); color: #92400e; }
.severity-bg-high { background: #fed7aa; color: #c2410c; }
.severity-bg-critical { background: var(--danger-light); color: #b91c1c; }
.compliance-content { flex: 1; }
.compliance-content strong { font-size: 0.9rem; text-transform: capitalize; display: block; }
.compliance-content p { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.15rem; }
.compliance-meta {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
  align-items: center;
}
.compliance-meta span { font-size: 0.75rem; color: var(--text-dim); }

/* ========== CURRENCY SUMMARY ========== */
.currency-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
}
.currency-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 90px;
}
.currency-pill strong { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.currency-pill span { font-size: 0.75rem; color: var(--text-muted); }

/* ========== CURRENCY TAG ========== */
.currency-tag {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  letter-spacing: 0.03em;
}

/* ========== SPENDER BAR FILL ========== */
.spender-fill {
  background: linear-gradient(90deg, #059669 0%, #34d399 100%);
}

/* ========== ANOMALY LIST (compact) ========== */
.anomaly-list {
  padding: 0.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.anomaly-card.compact {
  padding: 0.75rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .login-stats-row { flex-wrap: wrap; gap: 1rem; }
  .login-hero h1 { font-size: 1.5rem; }
  .topbar { padding: 0.75rem 1rem; }
  .shell { padding: 0.75rem 1rem; }
  .tab-nav { padding: 0 1rem; }
  .category-label { width: 100px; }
  .anomaly-grid { grid-template-columns: 1fr; }
  .budget-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .quick-actions { flex-direction: column; }
  .persona-card { flex-direction: column; text-align: center; }
  .persona-arrow { display: none; }
}
