/* ─────────────────────────────────────────────────────────
   LPS Financial Dashboard — Light Cream Design
   Le Petit Sécheron brand identity
───────────────────────────────────────────────────────── */

:root {
  /* ── Base palette ── */
  --bg-base:        #FCF6F1;   /* LPS cream */
  --bg-mid:         #F4EDE5;
  --bg-card:        #FFFFFF;
  --bg-card-hover:  #FDFAF8;
  --bg-card-solid:  #FFFFFF;

  /* ── Borders ── */
  --border-glass:   #E5DDD5;
  --border-subtle:  #EDE7E1;

  /* ── Brand colors ── */
  --green:          #1C5A2A;
  --green-light:    #2D8A4E;
  --orange:         #E5633D;
  --orange-bright:  #FF6B35;
  --blue:           #0170B9;

  /* ── Text ── */
  --text-primary:   #2A2A2A;
  --text-secondary: #5A5A5A;
  --text-tertiary:  #999999;

  /* ── Semantic ── */
  --success:        #2D8A4E;
  --warning:        #D4A017;
  --danger:         #C0392B;

  /* ── Gradients ── */
  --grad-green:     linear-gradient(135deg, #1C5A2A 0%, #2D8A4E 100%);
  --grad-orange:    linear-gradient(135deg, #E5633D 0%, #FF8C6B 100%);
  --grad-hero:      linear-gradient(135deg, #1C5A2A 0%, #3AA860 50%, #E5633D 100%);
  --grad-card-glow-green:  rgba(28, 90, 42, 0.12);
  --grad-card-glow-orange: rgba(229, 99, 61, 0.12);

  /* ── Layout ── */
  --sidebar-w:      230px;
  --topbar-h:       62px;
  --radius-lg:      14px;
  --radius-md:      10px;
  --radius-sm:      7px;

  /* ── Blur (kept for topbar only) ── */
  --blur-glass:     blur(0px);
  --blur-sidebar:   blur(0px);
}

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

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Helvetica Neue", sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-base);
  min-height: 100vh;
}

/* ───────── LAYOUT ───────── */
.layout { display: flex; min-height: 100vh; }

.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ───────── SIDEBAR ───────── */
.sidebar {
  width: var(--sidebar-w);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
  background: #1C5A2A;
  border-right: none;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  padding: 24px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.sidebar-logo img {
  width: 100%;
  max-width: 148px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.sidebar-logo-text {
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  margin-top: 7px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  font-weight: 500;
}

.sidebar-nav { padding: 12px 0 8px; flex: 1; }

.sidebar-section-label {
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  padding: 16px 20px 5px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
  border-radius: 0 10px 10px 0;
  margin-right: 10px;
  position: relative;
}
.sidebar-nav a svg { opacity: 0.7; flex-shrink: 0; }

/* Review-count badge inside sidebar nav */
.nav-badge {
  margin-left: auto;
  background: #E5633D;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
}
.sidebar-nav a:hover {
  background: rgba(255,255,255,0.10);
  color: #fff;
}
.sidebar-nav a:hover svg { opacity: 1; }
.sidebar-nav a.active {
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-weight: 600;
}
.sidebar-nav a.active svg { opacity: 1; }
.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--orange);
  border-radius: 0 3px 3px 0;
}

.badge-count {
  margin-left: auto;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
}

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.35);
  font-size: 11px;
}

/* ───────── TOPBAR ───────── */
.topbar {
  height: var(--topbar-h);
  background: rgba(252, 246, 241, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-date {
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 500;
}

/* ───────── CONTENT ───────── */
.content { padding: 28px 32px; flex: 1; }

/* ───────── CARD ───────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.09);
}
.card-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

/* ───────── KPI CARDS ───────── */
.kpi-grid-8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px 22px 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--kpi-card-min-h, 130px);
}
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
}

/* Green hero card */
.kpi-card.hero-green {
  background: linear-gradient(135deg, rgba(28,90,42,0.7) 0%, rgba(45,138,78,0.6) 100%);
  border-color: rgba(52,199,89,0.25);
  box-shadow: 0 4px 24px rgba(28,90,42,0.3);
}
.kpi-card.hero-green:hover {
  box-shadow: 0 12px 40px rgba(28,90,42,0.4);
}

/* Orange hero card */
.kpi-card.hero-orange {
  background: linear-gradient(135deg, rgba(229,99,61,0.7) 0%, rgba(255,140,107,0.55) 100%);
  border-color: rgba(255,107,53,0.3);
  box-shadow: 0 4px 24px rgba(229,99,61,0.3);
}
.kpi-card.hero-orange:hover {
  box-shadow: 0 12px 40px rgba(229,99,61,0.4);
}

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.35;
  letter-spacing: 0.1px;
}
.kpi-card.hero-green .kpi-label,
.kpi-card.hero-orange .kpi-label { color: rgba(255,255,255,0.75); }

.kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.8px;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.kpi-card.hero-green .kpi-value,
.kpi-card.hero-orange .kpi-value { color: #fff; }

.kpi-change {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.kpi-change.up     { color: var(--success); }
.kpi-change.down   { color: var(--danger); }
.kpi-change.neutral{ color: var(--text-tertiary); }
.kpi-card.hero-green .kpi-change,
.kpi-card.hero-orange .kpi-change { color: rgba(255,255,255,0.85); }

.kpi-vs {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 400;
}
.kpi-card.hero-green .kpi-vs,
.kpi-card.hero-orange .kpi-vs { color: rgba(255,255,255,0.55); }

/* ───────── KPI SECTION HEADER + SLIDER ───────── */
.kpi-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.kpi-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
}
.month-picker {
  display: flex;
  align-items: center;
  gap: 6px;
}
.month-picker select {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 3px 8px;
  cursor: pointer;
  appearance: auto;
  line-height: 1.4;
}
.month-picker select:hover {
  border-color: var(--green);
  color: var(--green);
}
.kpi-size-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
}
.size-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-glass);
  outline: none;
  cursor: pointer;
}
.size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(28,90,42,0.35);
}
.size-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  cursor: pointer;
  border: none;
}

/* ───────── KPI VIEWPORT SECTION ───────── */
.dashboard-kpi-section {
  margin-bottom: 24px;
}

/* ───────── DASHBOARD GRID ───────── */
.dashboard-top {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  align-items: start;
}

/* KPI grid rows — height driven by card min-height, not flex fill */
.kpi-grid-stretch {
  align-items: stretch;
}

/* ───────── DONUT PANEL ───────── */
.donut-main-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 24px 20px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: var(--kpi-card-min-h, 130px);
}
.donut-main-card .donut-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
  margin-bottom: 18px;
}
.donut-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 14px;
}
.donut-center-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}
.donut-center-value {
  font-size: 30px;
  font-weight: 800;
  background: var(--grad-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  letter-spacing: -0.5px;
  line-height: 1;
}
.donut-center-label {
  font-size: 10px;
  color: var(--text-tertiary);
  display: block;
  margin-top: 4px;
  font-weight: 500;
}

.donut-mini-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.donut-mini-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(var(--kpi-card-min-h, 130px) * 0.85);
}
.donut-mini-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.3;
}
.donut-mini-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 10px;
}
.donut-mini-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.donut-mini-value {
  font-size: 20px;
  font-weight: 800;
  background: var(--grad-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
  line-height: 1;
}
.donut-budget-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-tertiary);
  padding: 4px 0;
  border-top: 1px solid var(--border-subtle);
  margin-top: 4px;
}
.donut-budget-row span { font-weight: 600; color: var(--text-secondary); }

/* ───────── LEGEND PILLS (light) ───────── */

/* ───────── CHART SECTION ───────── */
.chart-section {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 16px;
  margin-bottom: 16px;
}
.chart-section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: -0.2px;
}
.chart-container { position: relative; }

/* ───────── LEGEND PILLS ───────── */
.legend-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
  padding-top: 4px;
}
.legend-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.15s;
}
.legend-pill:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.09); }
.legend-pill .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}
.legend-pill .pill-label {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  flex: 1;
}
.legend-pill .pill-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* ───────── ALERTS ───────── */
.alert-panel { display: flex; flex-direction: column; gap: 8px; }
.alert-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 12px;
}
.alert-item.red {
  background: rgba(192,57,43,0.07);
  border: 1px solid rgba(192,57,43,0.20);
  border-left: 3px solid var(--danger);
}
.alert-item.amber {
  background: rgba(212,160,23,0.08);
  border: 1px solid rgba(212,160,23,0.22);
  border-left: 3px solid var(--warning);
}
.alert-item .alert-msg { flex: 1; line-height: 1.45; color: var(--text-secondary); }
.alert-item .dismiss-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-tertiary); font-size: 18px; padding: 0; line-height: 1;
}
.alert-item .dismiss-btn:hover { color: var(--text-primary); }

/* ───────── SUMMARY TABLE ───────── */
.summary-table { width: 100%; border-collapse: collapse; }
.summary-table th {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-tertiary);
  padding: 10px 14px;
  text-align: right;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.summary-table th:first-child { text-align: left; }
.summary-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-size: 13px;
  white-space: nowrap;
  color: var(--text-secondary);
}
.summary-table td:first-child {
  text-align: left;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
}
.summary-table tr:hover td { background: #FAF5F0; }
.summary-table tr.total-row td {
  font-weight: 800;
  border-top: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 14px;
}
.summary-table tr.section-header td {
  background: #F7F0EA;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
  padding: 7px 14px;
}
.amount { font-weight: 600; }
.amount.positive { color: var(--success); }
.amount.negative { color: var(--danger); }

/* ───────── DATA TABLE ───────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-tertiary);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  vertical-align: middle;
  color: var(--text-secondary);
}
.data-table tr:hover td { background: #FAF5F0; }
.data-table td.amount {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

/* ───────── BADGES ───────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-green  { background: rgba(45,138,78,0.10);  color: var(--success);  border: 1px solid rgba(45,138,78,0.22); }
.badge-red    { background: rgba(192,57,43,0.10);  color: var(--danger);   border: 1px solid rgba(192,57,43,0.22); }
.badge-amber  { background: rgba(212,160,23,0.12); color: #9A7010;         border: 1px solid rgba(212,160,23,0.30); }
.badge-blue   { background: rgba(1,112,185,0.10);  color: var(--blue);     border: 1px solid rgba(1,112,185,0.22); }
.badge-gray   { background: #F0EAE4; color: var(--text-secondary); border: 1px solid var(--border-glass); }

.pillar-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
}

/* ───────── BUTTONS ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.12s, box-shadow 0.15s;
  letter-spacing: 0.1px;
  font-family: inherit;
  white-space: nowrap;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #1C5A2A, #2D8A4E);
  color: white;
  box-shadow: 0 4px 16px rgba(28,90,42,0.4);
}
.btn-accent {
  background: linear-gradient(135deg, #E5633D, #FF8C6B);
  color: white;
  box-shadow: 0 4px 16px rgba(229,99,61,0.4);
}
.btn-outline {
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}
.btn-outline:hover { background: #F7F0EA; }
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 8px; }
.btn-danger {
  background: rgba(192,57,43,0.08);
  color: var(--danger);
  border: 1px solid rgba(192,57,43,0.22);
}

/* ───────── FORMS ───────── */
.form-control {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-primary);
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.form-control:focus {
  border-color: rgba(28,90,42,0.5);
  box-shadow: 0 0 0 3px rgba(28,90,42,0.12);
}
.form-control option { background: #FFFFFF; color: var(--text-primary); }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ───────── FILTER BAR ───────── */
.filter-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filter-bar select, .filter-bar input {
  padding: 8px 12px;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  font-size: 13px;
  background: #FFFFFF;
  color: var(--text-primary);
  font-family: inherit;
}

/* ───────── GRID HELPERS ───────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-main-side { display: grid; grid-template-columns: 1fr 340px; gap: 16px; }

/* ───────── FLASH MESSAGES ───────── */
.flash-messages { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.flash-msg {
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: var(--blur-glass);
}
.flash-msg.success { background: rgba(45,138,78,0.08);  color: var(--success); border: 1px solid rgba(45,138,78,0.22); }
.flash-msg.danger  { background: rgba(192,57,43,0.08);  color: var(--danger);  border: 1px solid rgba(192,57,43,0.22); }
.flash-msg.warning { background: rgba(212,160,23,0.10); color: #9A7010;        border: 1px solid rgba(212,160,23,0.28); }

/* ───────── MODAL ───────── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #FFFFFF;
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 32px;
  width: 500px;
  max-width: 95vw;
  box-shadow: 0 16px 60px rgba(0,0,0,0.18);
}
.modal-title { font-size: 18px; font-weight: 800; margin-bottom: 22px; color: var(--text-primary); }

/* ───────── PROGRESS BAR ───────── */
.progress-bar { height: 6px; background: #EDE7E1; border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; transition: width 0.5s; }

/* ───────── PAGINATION ───────── */
.pagination { display: flex; gap: 6px; align-items: center; margin-top: 18px; }
.pagination a, .pagination span {
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  background: #FFFFFF;
}
.pagination a:hover { background: #F7F0EA; color: var(--text-primary); }
.pagination .active { background: var(--green); color: white; border-color: transparent; }

/* ───────── UPLOAD ZONE ───────── */
.upload-zone {
  border: 2px dashed var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: rgba(28,90,42,0.45);
  background: rgba(28,90,42,0.04);
}
.upload-zone p { color: var(--text-tertiary); margin-top: 8px; font-size: 13px; }

/* ───────── PRINT ───────── */
@media print {
  body { background: white; color: black; }
  .sidebar, .topbar, .btn, .no-print { display: none !important; }
  .main { margin-left: 0; }
  .content { padding: 0; }
  .card {
    background: white;
    border: 1px solid #ddd;
    box-shadow: none;
    border-radius: 6px;
    page-break-inside: avoid;
  }
  .summary-table th, .summary-table td { color: black; border-color: #ddd; }
  .kpi-value, .text-primary { color: black !important; }
  .text-secondary { color: #555 !important; }
}
