/*
 * Parque Serenidad - tema claro operativo
 * Esta capa se carga al final para unificar la aplicacion sin alterar
 * las reglas funcionales ni los colores semanticos de cada modulo.
 */

html[data-theme="light"] {
  color-scheme: light;
  --green: #2f7f43;
  --green-strong: #256a36;
  --green-soft: #eaf4ed;
  --navy: #173f48;
  --navy-soft: #e8f0f1;
  --blue: #0e637c;
  --blue-soft: #e7f1f4;
  --orange: #a84f22;
  --orange-soft: #fbeee7;
  --gold: #8f6117;
  --gold-soft: #f8f0df;
  --brown: #3f321f;
  --bg: #f3f6f4;
  --surface: #ffffff;
  --surface-soft: #f7f9f8;
  --surface-strong: #edf2ef;
  --line: #d7dfda;
  --line-strong: #bdcbc3;
  --muted: #5d6c63;
  --text: #1f2b24;
  --danger: #b5433e;
  --danger-soft: #faeceb;
  --warning: #9b6917;
  --warning-soft: #fbf2df;
  --info: #2f6fa2;
  --info-soft: #eaf1f8;
  --panel-bg: #ffffff;
  --panel-bg-strong: #ffffff;
  --panel: #ffffff;
  --primary: var(--green);
  --accent: var(--green);
  --cyan: #0e637c;
  --cyan-soft: rgba(14, 99, 124, 0.09);
  --cyan-glow: none;
  --focus-ring: 0 0 0 3px rgba(47, 127, 67, 0.18);
  --shadow-sm: 0 1px 2px rgba(29, 55, 41, 0.06);
  --shadow-md: 0 8px 24px rgba(29, 55, 41, 0.08);
  --shadow-float: 0 20px 54px rgba(29, 55, 41, 0.16);
}

html[data-theme="light"],
html[data-theme="light"] body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

html[data-theme="light"] body {
  background: linear-gradient(180deg, #f8faf9 0, var(--bg) 220px);
}

html[data-theme="light"] body::before {
  display: none;
}

html[data-theme="light"] ::selection {
  color: #17341f;
  background: #cfe8d5;
}

html[data-theme="light"] .shell {
  grid-template-columns: 232px minmax(0, 1fr);
  background: transparent;
}

/* Navegacion */
html[data-theme="light"] .shell > aside {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 100vh;
  overflow-y: auto;
  padding: 18px 12px;
  color: var(--text);
  background: #ffffff;
  border-right: 1px solid var(--line);
  box-shadow: 7px 0 24px rgba(29, 55, 41, 0.06);
  scrollbar-color: #bdcbc3 transparent;
  scrollbar-width: thin;
}

html[data-theme="light"] .shell > aside img {
  display: block;
  width: 136px;
  margin: 0 auto 22px;
  padding: 9px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
}

html[data-theme="light"] nav {
  gap: 3px;
}

html[data-theme="light"] nav details {
  padding-top: 7px;
  border-top: 1px solid #e6ece8;
}

html[data-theme="light"] nav summary {
  padding: 9px 8px 7px;
  color: var(--navy);
  letter-spacing: 0;
}

html[data-theme="light"] nav button {
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  color: #4e6157;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  box-shadow: none;
  line-height: 1.25;
}

html[data-theme="light"] nav details button {
  padding-left: 18px;
}

@media (hover: hover) {
  html[data-theme="light"] nav button:hover {
    color: var(--green-strong);
    background: #f1f7f3;
    border-color: #dce9df;
    box-shadow: none;
  }
}

html[data-theme="light"] nav button.active {
  color: var(--green-strong);
  background: var(--green-soft);
  border-color: #cfe3d4;
  box-shadow: inset 3px 0 0 var(--green);
}

/* Encabezado y contenido */
html[data-theme="light"] main {
  min-width: 0;
  padding: 24px;
  background: transparent;
}

html[data-theme="light"] header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 78px;
  margin: -24px -24px 20px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

html[data-theme="light"] header::before,
html[data-theme="light"] header::after {
  display: none;
}

html[data-theme="light"] header > div:first-child {
  min-width: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  border: 0;
  box-shadow: none;
  clip-path: none;
}

html[data-theme="light"] header span {
  color: var(--green);
  letter-spacing: 0;
}

html[data-theme="light"] header h1,
html[data-theme="light"] .login-card h1 {
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
  text-shadow: none;
}

html[data-theme="light"] header h1 {
  overflow-wrap: anywhere;
  font-size: clamp(22px, 2.2vw, 31px);
  line-height: 1.15;
}

html[data-theme="light"] .session-tools {
  position: static;
  flex-wrap: wrap;
  justify-content: flex-end;
}

html[data-theme="light"] header b {
  padding: 7px 11px;
  color: var(--green-strong);
  background: var(--green-soft);
  border: 1px solid #d5e8da;
}

/* Superficies */
html[data-theme="light"] .login-card,
html[data-theme="light"] .metric,
html[data-theme="light"] .panel,
html[data-theme="light"] .feed-post-card,
html[data-theme="light"] .feed-sidebar,
html[data-theme="light"] .meetings-sidebar,
html[data-theme="light"] .meetings-strip article,
html[data-theme="light"] .meeting-card,
html[data-theme="light"] .meeting-detail-panel,
html[data-theme="light"] .madurez-filters,
html[data-theme="light"] .madurez-kpis article,
html[data-theme="light"] .madurez-breakdown,
html[data-theme="light"] .madurez-ficha-summary article,
html[data-theme="light"] .madurez-ficha-block,
html[data-theme="light"] .unit-board,
html[data-theme="light"] .it-unit-board,
html[data-theme="light"] details.mkt-board-item,
html[data-theme="light"] .guardia-card,
html[data-theme="light"] .guardia-checkin-card,
html[data-theme="light"] .cochera-kpi,
html[data-theme="light"] .cochera-slot-card,
html[data-theme="light"] .fc-kpi,
html[data-theme="light"] .fc-semana-card,
html[data-theme="light"] .fc-vend-row,
html[data-theme="light"] .fc-serv-card,
html[data-theme="light"] .frl-kpi,
html[data-theme="light"] .frl-card {
  color: var(--text);
  background: #ffffff;
  border-color: var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

html[data-theme="light"] .metric::before,
html[data-theme="light"] .panel::before,
html[data-theme="light"] .feed-post-card::before,
html[data-theme="light"] .meeting-card::before,
html[data-theme="light"] .it-unit-board::before {
  display: none;
}

html[data-theme="light"] .metric {
  border-top: 3px solid #d5e5d9;
}

html[data-theme="light"] .metric strong,
html[data-theme="light"] .panel h2,
html[data-theme="light"] .unit-board h3,
html[data-theme="light"] .it-unit-board h3,
html[data-theme="light"] .act-kpi-value,
html[data-theme="light"] .act-bar-value,
html[data-theme="light"] .madurez-kpis strong,
html[data-theme="light"] .frl-kpi strong,
html[data-theme="light"] .frl-card h3 {
  color: var(--brown);
  text-shadow: none;
}

html[data-theme="light"] .metric span,
html[data-theme="light"] label,
html[data-theme="light"] .legend span,
html[data-theme="light"] .act-kpi-label,
html[data-theme="light"] .act-bar-label,
html[data-theme="light"] .frl-kpi span,
html[data-theme="light"] .frl-kpi small,
html[data-theme="light"] .frl-card > p,
html[data-theme="light"] .frl-month small,
html[data-theme="light"] .frl-origin span {
  color: var(--muted);
}

/* Controles */
html[data-theme="light"] button,
html[data-theme="light"] .panel-button,
html[data-theme="light"] .feed-compose-btn {
  color: #ffffff;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 6px;
  box-shadow: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 120ms ease;
}

@media (hover: hover) {
  html[data-theme="light"] button:hover,
  html[data-theme="light"] .panel-button:hover,
  html[data-theme="light"] .feed-compose-btn:hover {
    color: #ffffff;
    background: var(--green-strong);
    border-color: var(--green-strong);
    box-shadow: 0 4px 12px rgba(47, 127, 67, 0.14);
  }
}

html[data-theme="light"] button:active,
html[data-theme="light"] .panel-button:active,
html[data-theme="light"] .feed-compose-btn:active {
  transform: scale(0.97);
}

html[data-theme="light"] button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

html[data-theme="light"] .row-action,
html[data-theme="light"] .feed-menu-btn,
html[data-theme="light"] .feed-react-btn,
html[data-theme="light"] .feed-load-more,
html[data-theme="light"] .close {
  color: var(--green-strong);
  background: #ffffff;
  border-color: var(--line);
  box-shadow: none;
}

@media (hover: hover) {
  html[data-theme="light"] .row-action:hover,
  html[data-theme="light"] .feed-menu-btn:hover,
  html[data-theme="light"] .feed-react-btn:hover,
  html[data-theme="light"] .feed-load-more:hover,
  html[data-theme="light"] .close:hover {
    color: var(--green-strong);
    background: #f1f7f3;
    border-color: #bcd5c3;
    box-shadow: none;
  }
}

html[data-theme="light"] .danger-action,
html[data-theme="light"] .feed-menu-delete {
  color: #ffffff !important;
  background: var(--danger) !important;
  border-color: var(--danger) !important;
}

html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: none;
  box-shadow: none;
}

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: #75827a;
  opacity: 1;
}

html[data-theme="light"] input:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] textarea:focus,
html[data-theme="light"] button:focus-visible,
html[data-theme="light"] summary:focus-visible,
html[data-theme="light"] a:focus-visible {
  border-color: var(--green);
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Tablas y filtros */
html[data-theme="light"] .table-wrap,
html[data-theme="light"] .gantt-wrap {
  background: #ffffff;
  border-color: var(--line);
  border-radius: 8px;
}

html[data-theme="light"] table {
  background: #ffffff;
}

html[data-theme="light"] th {
  color: var(--navy) !important;
  background: #e8f0ed !important;
  border-color: var(--line) !important;
  border-bottom: 1px solid var(--line-strong) !important;
  text-shadow: none !important;
}

html[data-theme="light"] td,
html[data-theme="light"] .fch-items-table td {
  color: var(--text) !important;
  background-color: transparent;
  border-color: var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
}

@media (hover: hover) {
  html[data-theme="light"] tbody tr:hover,
  html[data-theme="light"] .unit-work-table tbody tr:hover,
  html[data-theme="light"] .it-work-table tbody tr:hover,
  html[data-theme="light"] .madurez-table tbody tr:hover {
    background: #f5faf7;
  }
}

html[data-theme="light"] .digital-filters,
html[data-theme="light"] .it-filters,
html[data-theme="light"] .meetings-sidebar,
html[data-theme="light"] .feed-sidebar,
html[data-theme="light"] .madurez-filters {
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

/* Barras, matrices y estados */
html[data-theme="light"] .bar,
html[data-theme="light"] .act-bar-track,
html[data-theme="light"] .frl-bar,
html[data-theme="light"] .vd-proj-track {
  background: #e8ede9;
  border-color: #dde5e0;
  box-shadow: none;
}

html[data-theme="light"] .bar i,
html[data-theme="light"] .act-bar {
  background: var(--green);
  box-shadow: none;
}

html[data-theme="light"] .Listo,
html[data-theme="light"] .meeting-status-Realizada,
html[data-theme="light"] .meeting-status-Cumplida,
html[data-theme="light"] .priority-Baja,
html[data-theme="light"] .act-imp-alto,
html[data-theme="light"] .madurez-riesgo-Bajo {
  color: var(--green-strong);
  background: var(--green-soft);
  border-color: #c9e0cf;
}

html[data-theme="light"] .Pendiente,
html[data-theme="light"] .priority-Media,
html[data-theme="light"] .meeting-status-Reprogramada,
html[data-theme="light"] .act-imp-medio {
  color: var(--warning);
  background: var(--warning-soft);
  border-color: #ead7aa;
}

html[data-theme="light"] .En-progreso,
html[data-theme="light"] .meeting-status-Agendada,
html[data-theme="light"] .priority-Alta {
  color: var(--info);
  background: var(--info-soft);
  border-color: #caddec;
}

html[data-theme="light"] .Stand-By,
html[data-theme="light"] .priority-Sin-prioridad {
  color: #5f6963;
  background: #eef1ef;
  border-color: #d6ded9;
}

html[data-theme="light"] .matrix .title,
html[data-theme="light"] .unit-head,
html[data-theme="light"] .total-head,
html[data-theme="light"] .stage-head,
html[data-theme="light"] .gantt-unit-header {
  color: #ffffff;
  background: var(--navy);
  box-shadow: none;
}

html[data-theme="light"] .unit,
html[data-theme="light"] .cell,
html[data-theme="light"] .total,
html[data-theme="light"] .gantt-header,
html[data-theme="light"] .gantt-lcol,
html[data-theme="light"] .gantt-tcol,
html[data-theme="light"] .gantt-proj-header,
html[data-theme="light"] .proj-head,
html[data-theme="light"] .it-proj-head,
html[data-theme="light"] .meeting-detail-meta span,
html[data-theme="light"] .feed-adj-chip,
html[data-theme="light"] .feed-preview-item,
html[data-theme="light"] .madurez-new-panel,
html[data-theme="light"] .meeting-participant-box {
  color: var(--text);
  background: var(--surface-soft);
  border-color: var(--line);
}

html[data-theme="light"] .td-title {
  color: var(--brown);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--blue);
  box-shadow: none;
  clip-path: none;
  text-shadow: none;
}

html[data-theme="light"] .td-metrics,
html[data-theme="light"] .mkt-group-summary .td-metric {
  color: var(--text);
  background: #ffffff;
  border-color: var(--line);
}

html[data-theme="light"] .td-metric strong,
html[data-theme="light"] .mkt-group-summary .td-metric strong {
  color: var(--text);
  background: var(--surface-soft);
  border-color: var(--line);
}

/* Dialogos, menus y chat */
html[data-theme="light"] dialog {
  background: transparent;
}

html[data-theme="light"] dialog::backdrop {
  background: rgba(18, 31, 24, 0.34);
  backdrop-filter: blur(2px);
}

html[data-theme="light"] .dialog,
html[data-theme="light"] .feed-menu-dropdown,
html[data-theme="light"] .ai-chat-box {
  color: var(--text);
  background: #ffffff;
  border-color: var(--line);
  box-shadow: var(--shadow-float);
}

html[data-theme="light"] .feed-menu-dropdown button {
  color: var(--text);
  background: #ffffff;
  border-color: var(--line);
}

html[data-theme="light"] .ai-chat-head,
html[data-theme="light"] .ai-form {
  background: var(--surface-soft);
  border-color: var(--line);
}

html[data-theme="light"] .ai-messages {
  background: #fbfcfb;
}

html[data-theme="light"] .ai-message {
  color: var(--text);
  background: #ffffff;
  border-color: var(--line);
}

html[data-theme="light"] .ai-message.user {
  background: var(--green-soft);
  border-color: #c9e0cf;
}

html[data-theme="light"] .ai-chat-head strong,
html[data-theme="light"] .ai-message p {
  color: var(--text);
}

html[data-theme="light"] .ai-message strong {
  color: var(--green-strong);
}

/* Login */
html[data-theme="light"] .login {
  background: linear-gradient(145deg, #e9f2ec 0%, #f8faf9 52%, #edf2ef 100%);
}

html[data-theme="light"] .login-card {
  width: min(430px, 100%);
  border-top: 4px solid var(--green);
  box-shadow: 0 22px 56px rgba(29, 55, 41, 0.14);
}

/* Modulos con superficies oscuras heredadas */
html[data-theme="light"] .ranking-position {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #bdd5dd;
}

html[data-theme="light"] .ranking-money {
  color: var(--brown);
}

html[data-theme="light"] .ranking-verde {
  color: var(--green-strong);
  background: var(--green-soft);
  border-color: #b9d8c1;
}

html[data-theme="light"] .ranking-amarillo {
  color: var(--warning);
  background: var(--warning-soft);
  border-color: #e2c98d;
}

html[data-theme="light"] .ranking-rojo {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #e0aaa6;
}

html[data-theme="light"] .ranking-gris {
  color: #56635b;
  background: #eef1ef;
  border-color: #d4ddd7;
}

html[data-theme="light"] .ranking-note {
  color: #486154;
  background: #f1f7f3;
  border-color: #cfe1d4;
}

html[data-theme="light"] .ranking-light {
  box-shadow: none;
}

@media (hover: hover) {
  html[data-theme="light"] .ranking-table tbody tr:hover {
    background: #f5faf7;
  }
}

html[data-theme="light"] .service-chart-card,
html[data-theme="light"] .service-card {
  color: var(--text);
  background: #ffffff;
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

html[data-theme="light"] .service-card h3,
html[data-theme="light"] .service-chart-card h3,
html[data-theme="light"] .service-donut span,
html[data-theme="light"] .service-leaders b {
  color: var(--brown);
}

html[data-theme="light"] .service-card strong {
  color: var(--blue);
}

html[data-theme="light"] .service-card small,
html[data-theme="light"] .service-legend span,
html[data-theme="light"] .service-leaders li {
  color: var(--muted);
}

html[data-theme="light"] .service-leaders li {
  border-color: var(--line);
}

html[data-theme="light"] .service-donut {
  box-shadow: inset 0 0 0 1px var(--line);
}

html[data-theme="light"] .lp-heading,
html[data-theme="light"] .vd-matrix th:first-child,
html[data-theme="light"] .vd-matrix td:first-child,
html[data-theme="light"] .vd-proj-card span,
html[data-theme="light"] .vd-proj-steps strong,
html[data-theme="light"] .vd-proj-formula span {
  color: var(--blue);
}

html[data-theme="light"] .lp-paragraph,
html[data-theme="light"] .vd-view-desc,
html[data-theme="light"] .vd-proj-progress-head,
html[data-theme="light"] .vd-proj-steps p,
html[data-theme="light"] .vd-proj-note,
html[data-theme="light"] .vd-proj-formula code {
  color: var(--muted);
}

html[data-theme="light"] .lp-edit-text,
html[data-theme="light"] .lp-table input,
html[data-theme="light"] .vd-line-chart,
html[data-theme="light"] .vd-matrix th:first-child,
html[data-theme="light"] .vd-matrix td:first-child,
html[data-theme="light"] .rv-panel-dark,
html[data-theme="light"] .vd-proj-card,
html[data-theme="light"] .vd-proj-progress,
html[data-theme="light"] .vd-proj-steps > div,
html[data-theme="light"] .vd-proj-formula {
  color: var(--text) !important;
  background: #ffffff !important;
  border-color: var(--line) !important;
  box-shadow: var(--shadow-sm) !important;
}

html[data-theme="light"] .vd-chart-tooltip,
html[data-theme="light"] .vd-proj-chart-tooltip {
  color: var(--text);
  background: #ffffff;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

html[data-theme="light"] .vd-chart-tooltip strong,
html[data-theme="light"] .vd-proj-chart-tooltip strong {
  color: var(--brown);
}

html[data-theme="light"] .vd-general-edit th input,
html[data-theme="light"] .lp-table th input {
  color: var(--text);
  background: #ffffff;
  border-color: var(--line-strong);
}

html[data-theme="light"] .vd-good,
html[data-theme="light"] .vd-pct-positive {
  color: var(--green-strong) !important;
}

html[data-theme="light"] .vd-bad,
html[data-theme="light"] .vd-pct-negative {
  color: var(--danger) !important;
}

html[data-theme="light"] .vd-pct-neutral {
  color: var(--warning) !important;
}

html[data-theme="light"] .vd-proj-card strong,
html[data-theme="light"] .rv-panel-dark h3 {
  color: var(--brown) !important;
}

html[data-theme="light"] .vd-risk-ok {
  background: var(--green-soft) !important;
  border-color: #9dcca8 !important;
}

html[data-theme="light"] .vd-risk-ok strong {
  color: var(--green-strong) !important;
}

html[data-theme="light"] .vd-risk-medium {
  background: var(--warning-soft) !important;
  border-color: #d7bc78 !important;
}

html[data-theme="light"] .vd-risk-medium strong {
  color: var(--warning) !important;
}

html[data-theme="light"] .vd-risk-high,
html[data-theme="light"] .vd-risk-critical {
  background: var(--danger-soft) !important;
  border-color: #d69b97 !important;
}

html[data-theme="light"] .vd-risk-high strong,
html[data-theme="light"] .vd-risk-critical strong {
  color: var(--danger) !important;
}

/* Resumen e informe de vendedores: conserva sus metricas en una carcasa clara. */
html[data-theme="light"] .rv-dash {
  color: var(--text);
  background: #f2f5f3;
  border: 1px solid var(--line);
  border-radius: 8px;
}

html[data-theme="light"] .rv-dash .rv-sidebar {
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

html[data-theme="light"] .rv-dash .rv-sidebar button {
  color: var(--navy);
  background: var(--surface-soft);
  border-color: var(--line);
}

html[data-theme="light"] .rv-dash .rv-sidebar button.active {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

/* Resumen de Leads */
html[data-theme="light"] .frl-kpi,
html[data-theme="light"] .frl-card {
  background: #ffffff;
}

html[data-theme="light"] .frl-dist-row > div:first-child,
html[data-theme="light"] .frl-month,
html[data-theme="light"] .frl-card h3 {
  color: var(--text);
}

html[data-theme="light"] .frl-origin {
  border-color: var(--line);
}

/* Analisis Comercial: color solo donde aporta lectura de KPI o categoria. */
html[data-theme="light"] #analisisComercial .ac-intro-text,
html[data-theme="light"] #analisisComercial .ac-block-help {
  color: #4f5f56;
}

html[data-theme="light"] #analisisComercial .ac-block {
  background: #ffffff;
}

html[data-theme="light"] #analisisComercial .ac-divider {
  background: var(--line);
  opacity: 1;
}

html[data-theme="light"] #analisisComercial .ac-rk-card-verde strong,
html[data-theme="light"] #analisisComercial .ac-grp-pct-verde {
  color: var(--green-strong);
}

html[data-theme="light"] #analisisComercial .ac-rk-card-amarillo strong,
html[data-theme="light"] #analisisComercial .ac-grp-pct-amarillo {
  color: var(--warning);
}

html[data-theme="light"] #analisisComercial .ac-rk-card-rojo strong,
html[data-theme="light"] #analisisComercial .ac-grp-pct-rojo {
  color: var(--danger);
}

html[data-theme="light"] #analisisComercial .ac-rk-card-gris strong,
html[data-theme="light"] #analisisComercial .ac-grp-pct-gris {
  color: var(--muted);
}

/* Pautas, Activaciones e Historicos */
html[data-theme="light"] #pautasActivaciones,
html[data-theme="light"] #pautasThinkchatHistorico,
html[data-theme="light"] #pautasThinkchatHistoricoBusquedas,
html[data-theme="light"] #pautasResumenLeadsHistoricos {
  --pa-surface: #ffffff;
  --pa-strong: var(--text);
  --pa-soft: var(--surface-soft);
  --pa-line: var(--line);
  --pa-track: #e6ece8;
  --ph-surface: #ffffff;
  --ph-soft: var(--surface-soft);
  --ph-ink: var(--text);
  --ph-muted: var(--muted);
  --ph-line: var(--line);
}

/* Impresion y PDF */
@media print {
  html[data-theme="light"],
  html[data-theme="light"] body {
    color: #17231c !important;
    background: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  html[data-theme="light"] body::before,
  html[data-theme="light"] .shell > aside,
  html[data-theme="light"] header,
  html[data-theme="light"] .ai-floating,
  html[data-theme="light"] button:not(.keep-print) {
    display: none !important;
  }

  html[data-theme="light"] .shell {
    display: block;
  }

  html[data-theme="light"] main {
    padding: 0;
  }

  html[data-theme="light"] .panel,
  html[data-theme="light"] .metric,
  html[data-theme="light"] .rv-dash,
  html[data-theme="light"] .rv-dash .rv-panel {
    color: #17231c !important;
    background: #ffffff !important;
    border-color: #cfd8d2 !important;
    box-shadow: none !important;
  }

  html[data-theme="light"] th {
    color: #173f48 !important;
    background: #e8f0ed !important;
  }
}

@media (max-width: 1100px) {
  html[data-theme="light"] .shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  html[data-theme="light"] .shell > aside {
    padding-inline: 9px;
  }
}

@media (max-width: 900px) {
  html[data-theme="light"] .shell {
    grid-template-columns: 1fr;
  }

  html[data-theme="light"] main {
    padding: 14px;
  }

  html[data-theme="light"] header {
    display: grid;
    gap: 12px;
    margin: -14px -14px 16px;
    padding: 14px;
  }

  html[data-theme="light"] .session-tools {
    justify-content: space-between;
  }

  html[data-theme="light"] header b {
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 620px) {
  html[data-theme="light"] header h1 {
    font-size: 22px;
  }

  html[data-theme="light"] .login-card {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="light"] *,
  html[data-theme="light"] *::before,
  html[data-theme="light"] *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
