/* ==========================================================================
   SISTEMA DE DISEÑO - CONTROL DE PARQUEADERO
   Base neutra (zinc), un único acento funcional (azul) para foco y estados
   activos. Verde y naranja solo con significado: asistencia, domingos, festivos.
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* Superficies y texto */
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --surface-3: #e4e4e7;
  --text: #18181b;
  --text-2: #52525b;
  --text-3: #71717a;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --overlay: rgba(9, 9, 11, 0.4);

  /* Acento único y acciones */
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-ring: rgba(37, 99, 235, 0.35);
  --primary-bg: #18181b;
  --primary-fg: #fafafa;
  --primary-hover: #3f3f46;

  /* Estados con significado */
  --success: #047857;
  --success-strong: #059669;
  --success-soft: #ecfdf5;
  --warning: #b45309;
  --warning-soft: #fffbeb;
  --warning-border: #fde68a;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  /* Domingos y festivos: el color base lo pone la app según el mes (cambia cada mes) */
  --sunday-base: #16a34a;
  --holiday-base: #ea580c;
  --sunday-fg: color-mix(in srgb, var(--sunday-base) 82%, #000);
  --sunday-soft: color-mix(in srgb, var(--sunday-base) 12%, transparent);
  --holiday-fg: color-mix(in srgb, var(--holiday-base) 82%, #000);
  --holiday-soft: color-mix(in srgb, var(--holiday-base) 14%, transparent);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-pop: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 12px 32px -12px rgba(0, 0, 0, 0.18);

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Alias de compatibilidad con estilos antiguos */
  --text-muted: var(--text-3);
  --bg-surface: var(--surface);
  --bg-surface-alt: var(--surface-2);
  --border-light: var(--border);
  --primary: var(--accent);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;
    --surface: #111113;
    --surface-2: #18181b;
    --surface-3: #27272a;
    --text: #fafafa;
    --text-2: #a1a1aa;
    --text-3: #8b8b94;
    --border: #232326;
    --border-strong: #34343a;
    --overlay: rgba(0, 0, 0, 0.6);

    --accent: #60a5fa;
    --accent-soft: rgba(96, 165, 250, 0.1);
    --accent-ring: rgba(96, 165, 250, 0.4);
    --primary-bg: #fafafa;
    --primary-fg: #09090b;
    --primary-hover: #d4d4d8;

    --success: #34d399;
    --success-strong: #10b981;
    --success-soft: rgba(16, 185, 129, 0.12);
    --warning: #fbbf24;
    --warning-soft: rgba(245, 158, 11, 0.1);
    --warning-border: rgba(245, 158, 11, 0.25);
    --danger: #f87171;
    --danger-soft: rgba(239, 68, 68, 0.1);
    --sunday-fg: color-mix(in srgb, var(--sunday-base) 65%, #fff);
    --sunday-soft: color-mix(in srgb, var(--sunday-base) 16%, transparent);
    --holiday-fg: color-mix(in srgb, var(--holiday-base) 65%, #fff);
    --holiday-soft: color-mix(in srgb, var(--holiday-base) 18%, transparent);

    --shadow-sm: none;
    --shadow-pop: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 16px 40px -12px rgba(0, 0, 0, 0.6);
  }
}

/* ==========================================================================
   BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: var(--accent-soft);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 2px solid var(--surface); }
::-webkit-scrollbar-track { background: transparent; }

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.num {
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--text-3);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   ENCABEZADO DE LA APLICACIÓN
   ========================================================================== */
.app-header {
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-bg);
  color: var(--primary-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 700;
  flex-shrink: 0;
}

.brand-titles {
  min-width: 0;
}

.brand-titles h1 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;
}

.brand-titles p {
  margin-top: 1px;
  font-size: 0.8125rem;
  color: var(--text-3);
  white-space: nowrap;
}

.app-version { font-variant-numeric: tabular-nums; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: auto;
}

.nav-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: background 120ms var(--ease), color 120ms var(--ease);
}

.nav-tab-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-tab-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}

.nav-tab-btn .icon,
.cat-btn .icon,
.toolbar-actions .icon,
.header-actions .icon { width: 18px; height: 18px; }

.nav-tab-btn.active .icon {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-actions .btn { height: 40px; padding: 0 14px; font-size: 0.9375rem; }

/* ==========================================================================
   BARRA DE HERRAMIENTAS (CATEGORÍA Y MES)
   ========================================================================== */
.toolbar-bar {
  height: 62px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.category-toggle {
  display: inline-flex;
  padding: 3px;
  gap: 3px;
  background: var(--surface-2);
  border-radius: 10px;
}

.toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toolbar-actions .btn { height: 38px; padding: 0 14px; font-size: 0.875rem; }

.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 120ms var(--ease), color 120ms var(--ease);
}

.cat-btn:hover {
  color: var(--text);
}

.cat-btn.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--border), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cat-btn.active .icon { color: var(--accent); }

.badge-count {
  min-width: 26px;
  padding: 1px 7px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--text-3);
  background: var(--surface-3);
  border-radius: 999px;
}

.cat-btn.active .badge-count { color: var(--accent); background: var(--accent-soft); }

/* Leyenda de colores del mes (barra de categoría y mes) */
.day-legend {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--text-2);
}

.day-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.day-legend i {
  width: 13px;
  height: 13px;
  border-radius: 4px;
}

.day-legend .dot-sunday { background: var(--sunday-fg); }
.day-legend .dot-holiday { background: var(--holiday-fg); }

/* Excel, PDF e Imprimir se refieren a la planilla en pantalla: solo se muestran en esa pestaña */
body:not(.vista-planilla) .solo-planilla { display: none; }

.month-picker-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.month-picker-group .icon-btn-sm {
  width: 38px;
  height: 38px;
  border-color: var(--border-strong);
  background: var(--surface);
}

.month-picker-group .icon-btn-sm .icon { width: 18px; height: 18px; }
.month-picker-group .btn-sm { height: 38px; padding: 0 16px; font-size: 0.875rem; }

.month-label-btn {
  min-width: 200px;
  height: 38px;
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  background: transparent;
  border: none;
  cursor: default;
}

.icon-btn-sm {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  cursor: pointer;
  transition: background 120ms var(--ease), color 120ms var(--ease);
}

.icon-btn-sm:hover {
  background: var(--surface-2);
  color: var(--text);
}

.icon-btn-sm:active {
  transform: scale(0.96);
}

/* ==========================================================================
   CONTENEDOR PRINCIPAL Y PÁGINAS
   ========================================================================== */
.main-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.tab-pane {
  display: none;
  flex: 1;
  min-height: 0;
  overflow: auto;
  flex-direction: column;
}

.tab-pane.active {
  display: flex;
}

.page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-narrow {
  max-width: 960px;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.page-desc {
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--text-3);
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Contenedor con borde (un solo nivel, sin tarjetas anidadas) */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.panel-head {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.panel-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.panel-desc {
  font-size: 0.75rem;
  color: var(--text-3);
}

.panel-body {
  padding: 16px;
}

.panel-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

/* ==========================================================================
   PLANILLA MENSUAL (CUADRÍCULA)
   ========================================================================== */
.matrix-wrapper {
  flex: 1;
  overflow: auto;
  background: var(--surface);
}

.matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.matrix-table thead {
  position: sticky;
  top: 0;
  z-index: 30;
}

.matrix-table th {
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  padding: 6px 4px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  user-select: none;
  white-space: nowrap;
}

.matrix-table thead tr:nth-child(2) th {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--text-3);
  padding: 2px 4px 5px;
}

.matrix-table th.th-weekend {
  color: var(--text-3);
}

.matrix-table th.th-sunday,
.matrix-table thead tr:nth-child(2) th.th-sunday {
  color: var(--sunday-fg);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--sunday-fg);
}

.matrix-table thead tr:nth-child(2) th.th-sunday {
  box-shadow: none;
}

.matrix-table th.th-holiday,
.matrix-table thead tr:nth-child(2) th.th-holiday {
  color: var(--holiday-fg);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--holiday-fg);
}

.matrix-table thead tr:nth-child(2) th.th-holiday {
  box-shadow: none;
}

/* Columnas fijas a la izquierda */
.col-sticky-1, .col-sticky-2, .col-sticky-3, .col-sticky-4 {
  position: sticky;
  z-index: 20;
  background: var(--surface);
}

.col-sticky-1 { left: 0; min-width: 44px; max-width: 48px; }
.col-sticky-2 { left: 44px; min-width: 90px; max-width: 100px; }
.col-sticky-3 { left: 134px; min-width: 190px; max-width: 230px; }
.col-sticky-4 {
  left: 324px;
  min-width: 96px;
  max-width: 110px;
  box-shadow: inset -1px 0 0 var(--border-strong);
}

.matrix-table thead .col-sticky-1,
.matrix-table thead .col-sticky-2,
.matrix-table thead .col-sticky-3,
.matrix-table thead .col-sticky-4 {
  z-index: 35;
  background: var(--surface-2);
}

.matrix-table td {
  height: 34px;
  padding: 0 4px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}

.matrix-table tbody tr:hover td,
.matrix-table tbody tr:hover .col-sticky-1,
.matrix-table tbody tr:hover .col-sticky-2,
.matrix-table tbody tr:hover .col-sticky-3,
.matrix-table tbody tr:hover .col-sticky-4 {
  background-color: var(--surface-2);
}

.td-order {
  color: var(--text-3);
  font-size: 0.75rem;
}

.td-plate {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
}

.td-name {
  text-align: left !important;
  padding-left: 10px !important;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Placa y nombre abren el calendario de marcación */
.cal-open {
  cursor: pointer;
  transition: color 120ms var(--ease);
}

.cal-open:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Celdas de asistencia */
.cell-attendance {
  width: 30px;
  min-width: 28px;
  cursor: pointer;
  user-select: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: transparent;
  transition: background-color 100ms var(--ease);
}

.cell-attendance.sunday { background-color: var(--sunday-soft); }
.cell-attendance.holiday { background-color: var(--holiday-soft); }

.matrix-table tbody tr:hover .cell-attendance.sunday { background-color: var(--sunday-soft); }
.matrix-table tbody tr:hover .cell-attendance.holiday { background-color: var(--holiday-soft); }

.matrix-table tbody tr .cell-attendance:hover {
  background-color: var(--accent-soft);
}

.matrix-table tbody tr .cell-attendance.is-present {
  background-color: var(--success-soft);
  color: var(--success);
}

.cell-attendance:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.td-tot-days {
  min-width: 56px;
  font-weight: 600;
}

.td-tot-charge {
  min-width: 104px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-align: right !important;
  padding-right: 12px !important;
}

.matrix-table tfoot {
  position: sticky;
  bottom: 0;
  z-index: 30;
}

.matrix-table tfoot td,
.matrix-table tfoot .col-sticky-1,
.matrix-table tfoot .col-sticky-2,
.matrix-table tfoot .col-sticky-3,
.matrix-table tfoot .col-sticky-4 {
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 500;
  border-top: 1px solid var(--border-strong);
}

.matrix-table tfoot .col-sticky-1,
.matrix-table tfoot .col-sticky-2,
.matrix-table tfoot .col-sticky-3,
.matrix-table tfoot .col-sticky-4 {
  z-index: 35;
}

/* Fila de carga (skeleton) en la planilla */
.matrix-table .skeleton-row td {
  padding: 0 10px;
}

/* ==========================================================================
   INSIGNIAS DE COBRO
   ========================================================================== */
.badge-modalidad {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 7px;
  font-size: 0.6875rem;
  font-weight: 500;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--text-2);
}

.badge-modalidad::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge-modalidad.mensual {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge-modalidad.pordia {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge-modalidad.sinuso {
  background: transparent;
  color: var(--text-3);
  box-shadow: inset 0 0 0 1px var(--border);
}

.type-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 5px;
}

/* ==========================================================================
   TABLAS DE DATOS (VEHÍCULOS Y LIQUIDACIÓN)
   ========================================================================== */
.vehicles-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.vehicles-table th {
  padding: 8px 16px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
  text-align: left;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.vehicles-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.vehicles-table tbody tr:last-child td {
  border-bottom: none;
}

.vehicles-table tbody tr {
  transition: background 100ms var(--ease);
}

.vehicles-table tbody tr:hover {
  background: var(--surface-2);
}

.vehicles-table .ta-right { text-align: right; }
.vehicles-table .mono { white-space: nowrap; }
.vehicles-table .ta-center { text-align: center; }

.cell-strong {
  font-weight: 500;
}

.row-actions {
  display: inline-flex;
  gap: 2px;
  opacity: 0.6;
  transition: opacity 120ms var(--ease);
}

.vehicles-table tr:hover .row-actions,
.row-actions:focus-within {
  opacity: 1;
}

/* Búsqueda */
.search-input-wrapper {
  position: relative;
  width: 300px;
  max-width: 100%;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
  display: inline-flex;
}

.search-input {
  width: 100%;
  height: 32px;
  padding: 0 10px 0 32px;
  font-size: 0.8125rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  outline: none;
  transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease);
}

.search-input:hover {
  border-color: var(--text-3);
}

.search-input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

/* ==========================================================================
   LIQUIDACIÓN: FRANJA DE TOTALES
   ========================================================================== */
.financial-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kpi-card {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.kpi-card + .kpi-card {
  border-left: 1px solid var(--border);
}

.kpi-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
}

.kpi-amount {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.kpi-total .kpi-amount {
  color: var(--text);
}

.kpi-breakdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-3);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.breakdown-row strong {
  font-weight: 500;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.billing-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.billing-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-3);
}

.inline-field .form-input {
  width: auto;
  height: 32px;
}

.divider-v {
  width: 1px;
  height: 20px;
  background: var(--border);
}

.docs-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.settings-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.year-nav {
  display: inline-flex;
  gap: 4px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  font-size: 0.6875rem;
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.tag-custom {
  color: var(--holiday-fg);
  border-color: var(--holiday-fg);
}

/* ==========================================================================
   LISTAS (CUENTAS, ENVÍOS, RESPALDOS, CIERRES)
   ========================================================================== */
.list {
  display: flex;
  flex-direction: column;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
}

.list-row:first-child { padding-top: 0; }
.list-row:last-child { border-bottom: none; padding-bottom: 0; }

.list-title {
  font-weight: 500;
}

.list-meta {
  font-size: 0.75rem;
  color: var(--text-3);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  font-size: 0.75rem;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums;
}

.chip-warn {
  color: var(--warning);
  background: var(--warning-soft);
  border-color: var(--warning-border);
}

.chip strong {
  color: var(--text);
  font-weight: 500;
}

/* Liquidación: estado del mes (cuenta y correo) e historial plegable */
.doc-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.doc-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text);
}

.doc-status-row > .icon { color: var(--text-3); }
.doc-status-row .chip { margin-left: 6px; }

.doc-historial { margin-top: 14px; }

.doc-historial summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.doc-historial summary::-webkit-details-marker { display: none; }
.doc-historial summary::before { content: "▸"; transition: transform 120ms var(--ease); }
.doc-historial[open] summary::before { transform: rotate(90deg); }

.doc-historial-body {
  margin-top: 10px;
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.doc-historial-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.doc-historial-table th {
  position: sticky;
  top: 0;
  padding: 8px 12px;
  text-align: left;
  font-weight: 500;
  color: var(--text-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.doc-historial-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.doc-historial-table tr:last-child td { border-bottom: none; }
.doc-historial-table tr.is-current td { background: var(--accent-soft); }
.doc-historial-table .num-right { text-align: right; font-variant-numeric: tabular-nums; }

.activity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-3);
}

.activity-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

/* ==========================================================================
   CONFIGURACIÓN: SECCIONES ETIQUETA / FORMULARIO
   ========================================================================== */
.settings-section {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.settings-section:first-of-type {
  border-top: none;
  padding-top: 4px;
}

.settings-section-head h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.settings-section-head p {
  margin-top: 4px;
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--text-3);
}

.settings-section-head code,
.form-hint code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--surface-2);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}

.cc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0 12px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ==========================================================================
   FORMULARIOS
   ========================================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
}

.form-input,
.form-select {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  font-size: 0.8125rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  outline: none;
  transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease);
}

textarea.form-input {
  height: auto;
  padding: 8px 10px;
  line-height: 1.55;
  resize: vertical;
}

.form-input:hover,
.form-select:hover {
  border-color: var(--text-3);
}

.form-input:focus-visible,
.form-select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

.form-input:disabled {
  background: var(--surface-2);
  color: var(--text-3);
  cursor: not-allowed;
}

.form-input::placeholder {
  color: var(--text-3);
  opacity: 0.8;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-3);
  line-height: 1.5;
}

.plate-input {
  font-family: var(--font-mono);
  font-weight: 500;
}

.upper-input { text-transform: uppercase; }

/* hidden siempre gana (los .btn tienen display propio) */
[hidden] { display: none !important; }

.firma-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 12px;
  background: #fff;                 /* la firma es tinta oscura: siempre sobre blanco, también en modo oscuro */
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

.firma-box img { max-height: 110px; max-width: 100%; }
.firma-box .form-hint { color: #71717a; text-align: center; }

.firma-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.attach-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}

.attach-row + .attach-row { border-top: 1px solid var(--border); }

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-2);
  cursor: pointer;
}

.check-row input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 120ms var(--ease), border-color 120ms var(--ease),
              color 120ms var(--ease), opacity 120ms var(--ease), transform 80ms var(--ease);
}

.btn:active:not(:disabled) {
  transform: scale(0.99);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary,
.btn-emerald {
  background: var(--primary-bg);
  color: var(--primary-fg);
}

.btn-primary:hover:not(:disabled),
.btn-emerald:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--surface-2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--text);
}

.btn-danger {
  background: transparent;
  color: var(--danger);
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger-soft);
}

.btn-icon {
  width: 32px;
  padding: 0;
}

.btn-sm {
  height: 28px;
  padding: 0 10px;
  font-size: 0.75rem;
}

.btn-sm.btn-icon {
  width: 28px;
  padding: 0;
}

/* ==========================================================================
   ESTADOS: VACÍO, CARGA (SKELETON), AVISOS
   ========================================================================== */
.empty-state {
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.empty-state-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-3);
}

.empty-state-title {
  font-size: 0.8125rem;
  font-weight: 500;
}

.empty-state-desc {
  font-size: 0.75rem;
  color: var(--text-3);
  max-width: 340px;
}

.empty-inline {
  font-size: 0.75rem;
  color: var(--text-3);
}

.skeleton {
  display: block;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  font-size: 0.75rem;
  line-height: 1.5;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
}

.callout .icon {
  margin-top: 1px;
}

.email-warning {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 12px;
  font-size: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--warning-border);
  background: var(--warning-soft);
  color: var(--warning);
}

.error-text {
  color: var(--danger);
  font-size: 0.75rem;
}

/* ==========================================================================
   CALENDARIO DE MARCACIÓN
   ========================================================================== */
.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-weekdays span {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-3);
  padding-bottom: 4px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  user-select: none;
  transition: background 90ms var(--ease), border-color 90ms var(--ease), color 90ms var(--ease);
}

.cal-day:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.cal-day:active {
  transform: scale(0.97);
}

.cal-day.sunday { background: var(--sunday-soft); color: var(--sunday-fg); }
.cal-day.holiday { background: var(--holiday-soft); color: var(--holiday-fg); }

.cal-day.selected {
  background: var(--success-strong);
  border-color: var(--success-strong);
  color: #ffffff;
}

.cal-tools {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}

.cal-summary {
  margin-top: 14px;
  padding: 10px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-variant-numeric: tabular-nums;
}

.cal-legend {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.6875rem;
  color: var(--text-3);
}

.cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cal-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

/* ==========================================================================
   MODALES
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--overlay);
  backdrop-filter: blur(2px);
  animation: fadeIn 150ms var(--ease);
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  animation: popIn 160ms var(--ease);
}

.modal-card > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.modal-sm { max-width: 440px; }
.modal-lg { max-width: 680px; }

.modal-header {
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.modal-subtitle {
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--text-3);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
}

.modal-footer {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

/* ==========================================================================
   NOTIFICACIONES (TOASTS)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 280px;
  max-width: 420px;
  padding: 10px 14px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  animation: toastIn 200ms var(--ease);
}

.toast .icon {
  margin-top: 1px;
  color: var(--text-3);
}

.toast.success .icon { color: var(--success-strong); }
.toast.warning .icon { color: var(--warning); }
.toast.error .icon { color: var(--danger); }

/* ==========================================================================
   ANIMACIONES
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(6px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1280px) {
  .toolbar-actions .btn-label { display: none; }
  .toolbar-actions .btn { width: 38px; padding: 0; }
}

@media (max-width: 1100px) {
  .brand-titles p { display: none; }
  .nav-label { display: none; }
}

@media (max-width: 860px) {
  .settings-section { grid-template-columns: 1fr; gap: 12px; }
  .financial-kpi-grid { grid-template-columns: 1fr; }
  .kpi-card + .kpi-card { border-left: none; border-top: 1px solid var(--border); }
  .form-grid-2 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ROL EMPLEADO: sin liquidación, configuración, exportes ni valores en dinero
   ========================================================================== */
body.rol-empleado .solo-admin,
body.rol-empleado .col-money,
body.rol-empleado .matrix-table .col-sticky-4 {
  display: none !important;
}

/* En "Marcar" la fecha se elige dentro de la vista */
body.vista-marcar .month-picker-group {
  display: none;
}

/* ==========================================================================
   VISTA MARCAR (pensada para celular y tablet)
   ========================================================================== */
.mark-page {
  max-width: 720px;
  gap: 12px;
}

.mark-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mark-date {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mark-date .form-input {
  flex: 1;
  height: 40px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.mark-date .icon-btn-sm {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
}

.mark-date .btn {
  height: 40px;
}

.mark-day-label {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.mark-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.mark-tag.holiday { background: var(--holiday-soft); color: var(--holiday-fg); }
.mark-tag.sunday { background: var(--sunday-soft); color: var(--sunday-fg); }

.mark-search {
  width: 100%;
}

.mark-search .search-input {
  height: 44px;
  font-size: 1rem;  /* 16px: el celular no hace zoom al escribir */
}

.mark-summary {
  font-size: 0.8125rem;
  color: var(--text-3);
}

.mark-summary strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.mark-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.mark-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 4px;
  border-bottom: 1px solid var(--border);
  transition: background 120ms var(--ease);
}

.mark-row:last-child {
  border-bottom: none;
}

.mark-row.is-present {
  background: var(--success-soft);
}

.mark-info {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "plate name" "plate meta";
  column-gap: 12px;
  align-items: center;
  padding: 6px 8px;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}

.mark-info:hover {
  background: var(--surface-2);
}

.mark-plate {
  grid-area: plate;
  font-size: 0.9375rem;
  font-weight: 600;
  min-width: 76px;
}

.mark-name {
  grid-area: name;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mark-meta {
  grid-area: meta;
  font-size: 0.75rem;
  color: var(--text-3);
}

.mark-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 112px;
  height: 44px;              /* objetivo táctil cómodo */
  padding: 0 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 120ms var(--ease), color 120ms var(--ease), border-color 120ms var(--ease), transform 80ms var(--ease);
}

.mark-toggle .icon {
  opacity: 0.35;
}

.mark-toggle:active {
  transform: scale(0.97);
}

.mark-row.is-present .mark-toggle {
  background: var(--success-strong);
  border-color: var(--success-strong);
  color: #ffffff;
}

.mark-row.is-present .mark-toggle .icon {
  opacity: 1;
}

.mark-skeleton {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 16px;
}

/* ==========================================================================
   CELULAR Y TABLET
   ========================================================================== */
@media (max-width: 720px) {
  .app-header {
    height: auto;
    min-height: 52px;
    padding: 6px 10px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .brand-titles { display: none; }
  .main-nav { margin-right: auto; }
  .nav-tab-btn { height: 38px; padding: 0 10px; }
  .header-actions .btn { height: 38px; }

  .toolbar-bar {
    height: auto;
    padding: 6px 10px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .cat-btn { height: 34px; }

  .page { padding: 14px 12px 32px; gap: 14px; }
  .page-header { align-items: stretch; }
  .page-actions, .search-input-wrapper { width: 100%; }
  .page-actions .btn { flex: 1; }
  .hide-sm { display: none; }

  .panel { overflow-x: auto; }
  .vehicles-table th, .vehicles-table td { padding: 10px 10px; }
  .row-actions { opacity: 1; }

  .billing-buttons { width: 100%; }

  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal-card { max-width: 100% !important; max-height: 92vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .modal-body { padding: 16px; }
  .modal-footer .btn { flex: 1; height: 40px; }
  .form-input, .form-select { height: 40px; font-size: 1rem; }

  /* Planilla: columnas fijas más angostas */
  .col-sticky-1 { min-width: 34px; max-width: 34px; }
  .col-sticky-2 { left: 34px; min-width: 76px; max-width: 76px; }
  .col-sticky-3 { left: 110px; min-width: 120px; max-width: 120px; }
  .col-sticky-4 { left: 230px; }
  .td-name { font-size: 0.75rem; }

  .toast-container { left: 10px; right: 10px; bottom: 10px; }
  .toast { min-width: 0; max-width: none; }
}

@media (max-width: 400px) {
  .day-legend { display: none; }
  .mark-toggle { min-width: 96px; padding: 0 10px; }
  .mark-plate { min-width: 68px; }
}

/* ==========================================================================
   IMPRESIÓN DE LA PLANILLA (@media print)
   ========================================================================== */
@media print {
  @page {
    size: letter landscape;
    margin: 8mm;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    height: auto !important;
    overflow: visible !important;
  }

  .app-header,
  .toolbar-bar,
  .btn,
  .toast-container,
  .modal-backdrop {
    display: none !important;
  }

  .main-content, .tab-pane, .matrix-wrapper {
    overflow: visible !important;
  }

  .matrix-table {
    font-size: 7.5pt !important;
    width: 100% !important;
    border-collapse: collapse !important;
  }

  .matrix-table th {
    background: #f4f4f5 !important;
    color: #000000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .col-sticky-1, .col-sticky-2, .col-sticky-3, .col-sticky-4 {
    position: static !important;
  }

  .cell-attendance.is-present {
    background: #e4e4e7 !important;
    color: #000000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
