/**
 * Cuadro de mando de KPIs y métricas de negocio
 * Estilos canónicos, paleta Midnight Slate, micrográficos y vista de impresión
 * Fijate Tools • fijate.com
 */

:root {
  --bg-primary: #0b0f17;
  --bg-secondary: #111827;
  --bg-card: #151e2e;
  --bg-card-hover: #1a2538;
  --bg-input: #0f172a;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.18);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-amber: #f59e0b;
  --accent-amber-glow: rgba(245, 158, 11, 0.25);
  --accent-rose: #ef4444;
  --accent-rose-glow: rgba(239, 68, 68, 0.25);
  --accent-indigo: #6366f1;
  --accent-indigo-glow: rgba(99, 102, 241, 0.25);
  --accent-cyan: #06b6d4;

  --font-titles: 'Outfit', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.45);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #fcfcfd;
  --bg-input: #ffffff;
  --border-color: #e2e8f0;
  --border-color-hover: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
}

/* Reset canónico y layout */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-titles);
  color: var(--text-main);
  margin-top: 0;
}

.mono {
  font-family: var(--font-mono);
}

.tool-layout {
  max-width: 1200px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
  width: 100%;
}

.tool-with-sidebar {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.tool-main-content {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* -----------------------------------------------------------
   Barra de controles superiores (Toolbar)
----------------------------------------------------------- */
.dashboard-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-card);
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  flex: 1 1 auto;
}

.toolbar-preset-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 240px;
}

.toolbar-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Inputs y Selects canónicos */
.input-styled, .select-styled {
  width: 100%;
  min-height: 42px;
  padding: 0.6rem 0.9rem;
  background-color: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
}

.select-styled {
  max-width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.select-styled option, .select-styled optgroup {
  background-color: var(--bg-secondary);
  color: var(--text-main);
}

.input-styled:focus, .select-styled:focus {
  outline: none;
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px var(--accent-indigo-glow);
}

/* Botones */
.btn-primary, .btn-secondary, .btn-outline, .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

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

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

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color-hover);
}

.btn-danger {
  background: var(--accent-rose);
  color: #ffffff;
}

.btn-danger:hover {
  background: #dc2626;
}

/* -----------------------------------------------------------
   Meta-Deck: Resumen Ejecutivo Superior
----------------------------------------------------------- */
.executive-summary-deck {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.6rem;
  transition: var(--transition);
}

.summary-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
}

.summary-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.summary-card-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.summary-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.summary-main-val {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.summary-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.summary-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
}

.status-pills-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.status-pill-count {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-pill-green .pill-dot { background-color: var(--accent-emerald); }
.status-pill-green .pill-num { color: var(--accent-emerald); font-family: var(--font-mono); }
.status-pill-yellow .pill-dot { background-color: var(--accent-amber); }
.status-pill-yellow .pill-num { color: var(--accent-amber); font-family: var(--font-mono); }
.status-pill-red .pill-dot { background-color: var(--accent-rose); }
.status-pill-red .pill-num { color: var(--accent-rose); font-family: var(--font-mono); }

.summary-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.tag-green { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.tag-red { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

.highlight-kpi-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.highlight-kpi-meta {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.highlight-kpi-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
}

.highlight-kpi-pct {
  font-size: 0.78rem;
  font-weight: 600;
}

/* -----------------------------------------------------------
   Barra de Filtros y Búsqueda (Sin scrollbox forzado)
----------------------------------------------------------- */
.filter-search-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.category-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap; /* Lección 247: sin scroll horizontal */
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.category-pill:hover {
  border-color: var(--border-color-hover);
  color: var(--text-main);
}

.category-pill.is-active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-indigo);
  color: #818cf8;
}

.category-pill-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
}

.search-and-status-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.search-box-wrapper {
  position: relative;
  min-width: 220px;
}

.search-box-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
}

.search-input-field {
  padding-left: 36px;
  min-height: 38px;
}

/* -----------------------------------------------------------
   Parrilla de Tarjetas KPI
----------------------------------------------------------- */
.kpi-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.kpi-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.kpi-card-alert {
  border-color: rgba(239, 68, 68, 0.35);
}

.kpi-card-alert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-rose);
}

.kpi-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.kpi-meta-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.kpi-category-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-indigo);
}

.kpi-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-actions-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  opacity: 0.6;
  transition: var(--transition);
}

.kpi-card:hover .kpi-actions-menu {
  opacity: 1;
}

.btn-icon-action {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon-action:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.btn-delete-kpi:hover {
  color: var(--accent-rose);
  background: rgba(239, 68, 68, 0.12);
}

.kpi-values-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.kpi-main-metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.kpi-current-val {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
}

.kpi-target-val {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.kpi-target-val strong {
  font-family: var(--font-mono);
  color: var(--text-main);
}

.kpi-direction-hint {
  font-size: 0.72rem;
  color: var(--text-subtle);
}

.kpi-sparkline-box {
  width: 120px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-sparkline-canvas {
  width: 120px;
  height: 38px;
}

/* Barra de progreso de consecución */
.kpi-progress-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.kpi-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.kpi-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-green {
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  box-shadow: 0 0 8px var(--accent-emerald-glow);
}

.progress-yellow {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
  box-shadow: 0 0 8px var(--accent-amber-glow);
}

.progress-red {
  background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
  box-shadow: 0 0 8px var(--accent-rose-glow);
}

.kpi-progress-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kpi-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.badge-green { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.badge-green .status-dot { background-color: #10b981; }
.badge-yellow { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.badge-yellow .status-dot { background-color: #f59e0b; }
.badge-red { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.badge-red .status-dot { background-color: #ef4444; }

.kpi-compliance-num {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
}

.kpi-compliance-num.green { color: var(--accent-emerald); }
.kpi-compliance-num.yellow { color: var(--accent-amber); }
.kpi-compliance-num.red { color: var(--accent-rose); }

.kpi-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.78rem;
}

.kpi-desc {
  margin: 0;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}

.kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.trend-positive { color: var(--accent-emerald); }
.trend-negative { color: var(--accent-rose); }
.trend-sub { font-size: 0.68rem; opacity: 0.7; font-family: var(--font-body); font-weight: 500; }

/* -----------------------------------------------------------
   Empty State
----------------------------------------------------------- */
.empty-state-box {
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.empty-state-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.empty-state-msg {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 420px;
  margin: 0;
}

/* -----------------------------------------------------------
   Modales Canónicos (Cero window.alert)
----------------------------------------------------------- */
.app-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 23, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.app-modal.is-open {
  display: flex;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-subtle);
  line-height: 1.35;
}

/* Toast Notificación */
.app-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--accent-indigo);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  z-index: 10001;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.app-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* -----------------------------------------------------------
   Adaptación Móvil y Responsiva
----------------------------------------------------------- */
@media (max-width: 900px) {
  .executive-summary-deck {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tool-layout {
    margin: 1rem auto 2rem;
    padding: 0 0.75rem;
  }

  .dashboard-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
  }

  .toolbar-left, .toolbar-preset-selector {
    width: 100%;
    min-width: 0;
  }

  .toolbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .toolbar-actions .btn-primary,
  .toolbar-actions .btn-secondary,
  .toolbar-actions .btn-outline {
    width: 100%;
  }

  .executive-summary-deck {
    grid-template-columns: 1fr;
  }

  .kpi-cards-grid {
    grid-template-columns: 1fr;
  }

  .filter-search-container {
    flex-direction: column;
    align-items: stretch;
  }

  .search-and-status-controls {
    flex-direction: column;
    width: 100%;
  }

  .search-box-wrapper, .search-and-status-controls .select-styled {
    width: 100%;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .modal-footer {
    flex-direction: column-reverse;
  }

  .modal-footer button {
    width: 100%;
  }

  .app-toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    text-align: center;
  }
}

/* -----------------------------------------------------------
   Estilos de Impresión (@media print) para Informe Ejecutivo PDF
----------------------------------------------------------- */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .app-header,
  .fijate-footer,
  .tools-ad-banner-section,
  .tool-ad-sidebar,
  .dashboard-toolbar,
  .filter-search-container,
  .kpi-actions-menu,
  .app-modal,
  .app-toast,
  .seo-guide-section {
    display: none !important;
  }

  .tool-layout {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .tool-main-content {
    gap: 1.5rem !important;
  }

  /* Cabecera de informe para impresión */
  .print-report-header {
    display: block !important;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
  }

  .executive-summary-deck {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.75rem !important;
  }

  .summary-card, .kpi-card {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    break-inside: avoid;
  }

  .summary-card-title, .kpi-category-tag, .kpi-target-val, .summary-subtext {
    color: #475569 !important;
  }

  .kpi-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  .kpi-progress-bar {
    background: #e2e8f0 !important;
    border: 1px solid #cbd5e1 !important;
  }
}

.print-report-header {
  display: none;
}
