/* ============================================================
   ASESO Design System — Unified Component Classes
   ============================================================
   Single source of truth for shared UI components.
   Page-specific CSS should extend these, not redefine them.
   ============================================================ */

/* ── 1. KPI Cards ── */
.kpi-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.kpi-row .kpi-card {
  flex: 1 1 180px;
  min-width: 0;
}

.kpi-card {
  background: #fff;
  border: 1.5px solid #e3ecfa;
  border-radius: 10px;
  padding: 1.25rem;
  border-left: 4px solid #0d47a1;
}

.kpi-card.green  { border-left-color: #2e7d32; }
.kpi-card.gold   { border-left-color: #c4a050; }
.kpi-card.red    { border-left-color: #c62828; }
.kpi-card.orange { border-left-color: #ef6c00; }

.kpi-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 0.3rem;
}

.kpi-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0d47a1;
}

.kpi-sub {
  font-size: 0.78rem;
  color: #888;
  margin-top: 0.2rem;
}

/* ── 2. Page Header ── */
.page-header {
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 0.25rem 0;
}

.page-header p {
  color: #777;
  font-size: 0.9rem;
  margin: 0;
}

.page-header .header-actions {
  float: right;
  margin-top: -2.5rem;
}

/* ── 3. Tables ── */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  border-bottom: 2px solid #e0e0e0;
  letter-spacing: 0.02em;
}

.data-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.88rem;
}

.data-table tbody tr:hover {
  background: #f8fafd;
}

.data-table .total-row td {
  font-weight: 700;
  border-top: 2px solid #e0e0e0;
}

/* ── 4. Empty State ── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #999;
}

.empty-state svg {
  width: 48px;
  height: 48px;
  stroke: #ccc;
  margin-bottom: 0.75rem;
}

.empty-state p {
  font-size: 0.95rem;
  margin: 0.5rem 0;
}

.empty-state .btn-new {
  margin-top: 1rem;
}

/* ── 5. Cards ── */
.card {
  background: #fff;
  border: 1.5px solid #e3ecfa;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

/* ── 6. Badges ── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-active,
.badge-betaald   { background: #e8f5e9; color: #2e7d32; }

.badge-inactive,
.badge-nietig    { background: #fafafa; color: #999; }

.badge-warning,
.badge-open      { background: #fff3e0; color: #ef6c00; }

.badge-danger,
.badge-overdue   { background: #fce4ec; color: #c62828; }

.badge-info,
.badge-ingediend { background: #e3f2fd; color: #1565c0; }

/* ── 7. Buttons ── */
.btn-new {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #0d47a1;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-new:hover {
  background: #1565c0;
}

.btn-new svg {
  width: 16px;
  height: 16px;
}

/* ── 8. Status Tabs ── */
.status-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 1rem;
}

.status-tab {
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: #777;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.status-tab.active {
  color: #0d47a1;
  border-bottom-color: #0d47a1;
  font-weight: 600;
}

.status-tab:hover {
  color: #333;
}
