/*
 ==============================================================
 EQUIFAX GENERIC V2
 Basado en el MOCKUP APROBADO
 Aplica a todos los usuarios EQUIFAX excepto Jefatura Comercial
 ============================================================== 
*/

/* === ENTEL V2 — MOCKUP APROBADO === */

body.theme-equifax:not(.theme-francisca) {
  --equifax-v2-blue: #d52342;
  --equifax-v2-deep: #09274b;
  --equifax-v2-deeper: #071d39;
  --equifax-v2-orange: #d52342;
  --equifax-v2-ink: #142f50;
  --equifax-v2-soft: #f7f8fa;
  --equifax-v2-line: #dce3eb;
}

/* ESTRUCTURA GENERAL */
body.theme-equifax:not(.theme-francisca) #app {
  background:
    radial-gradient(circle at 76% 8%, rgba(255,255,255,.96), rgba(255,255,255,0) 34%),
    linear-gradient(135deg,#fafbfd 0%,#f2f6fd 100%);
}

body.theme-equifax:not(.theme-francisca) .workspace {
  grid-template-columns: 270px minmax(0,1fr);
}

body.theme-equifax:not(.theme-francisca) .content {
  padding: 38px 52px 56px;
  min-width: 0;
}

/* SIDEBAR AZUL */
body.theme-equifax:not(.theme-francisca) aside {
  background:
    linear-gradient(180deg,#0d315d 0%,#0a294f 42%,#071f3f 100%);
  border-right: 0;
  color: #fff;
  box-shadow: 12px 0 32px rgba(5,42,118,.16);
}

body.theme-equifax:not(.theme-francisca) .side-nav {
  border-bottom: 0;
}

body.theme-equifax:not(.theme-francisca) .side-nav button,
body.theme-equifax:not(.theme-francisca) aside > button,
body.theme-equifax:not(.theme-francisca) .more-folders button {
  color: rgba(255,255,255,.92);
  background: transparent;
  font-size: 13px;
  border-radius: 11px;
}

body.theme-equifax:not(.theme-francisca) .side-nav button:hover,
body.theme-equifax:not(.theme-francisca) aside > button:hover,
body.theme-equifax:not(.theme-francisca) .more-folders button:hover {
  color: #fff;
  background: rgba(255,255,255,.10);
  transform: none;
}

body.theme-equifax:not(.theme-francisca) .side-nav button.active {
  color: #fff;
  background: linear-gradient(90deg,#1770ef,#1764dd);
  box-shadow: 0 8px 20px rgba(0,27,112,.18);
}

body.theme-equifax:not(.theme-francisca) .side-nav button.active::before {
  background: #fff;
}

body.theme-equifax:not(.theme-francisca) .aside-label {
  color: rgba(255,255,255,.58);
  border-top: 1px solid rgba(255,255,255,.16);
  padding-top: 18px;
}

body.theme-equifax:not(.theme-francisca) aside > button.active {
  color: #e13b55;
  background: rgba(255,255,255,.14);
}

body.theme-equifax:not(.theme-francisca) aside > button.active::before {
  background: var(--equifax-v2-orange);
}

body.theme-equifax:not(.theme-francisca) aside > button span {
  color: #dce8ff;
  background: rgba(255,255,255,.13);
}

body.theme-equifax:not(.theme-francisca) .more-folders button.active {
  color: #e66778;
  background: rgba(255,255,255,.10);
}

/* LOGOS */
body.theme-equifax:not(.theme-francisca) .topbar .brand {
  background:
    linear-gradient(180deg,#0d315d 0%,#09274b 100%);
  box-shadow: none;
}

body.theme-equifax:not(.theme-francisca) .topbar .brand-logo {
  width: 205px;
  height: 54px;
  object-fit: cover;
  object-position: center 53%;
  filter: none;
}

body.theme-equifax:not(.theme-francisca) .entel-sidebar-logo {
  width: 132px;
  max-height: 70px;
  object-fit: contain;
  margin: auto auto 6px 28px;
  padding-top: 46px;
}

/* TOPBAR */
body.theme-equifax:not(.theme-francisca) .topbar {
  height: 86px;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--equifax-v2-line);
  box-shadow: 0 5px 20px rgba(17,48,105,.045);
}

body.theme-equifax:not(.theme-francisca) .entel-header-context {
  font-size: 13px;
}

body.theme-equifax:not(.theme-francisca) #userName {
  color: var(--equifax-v2-ink);
}

body.theme-equifax:not(.theme-francisca) #userRole {
  color: #7180a0;
}

body.theme-equifax:not(.theme-francisca) .profile .ghost {
  border: 1px solid #d8e1f0;
  box-shadow: 0 4px 12px rgba(10,44,107,.05);
}

/* TITULOS */
body.theme-equifax:not(.theme-francisca) .heading {
  margin-bottom: 20px;
}

body.theme-equifax:not(.theme-francisca) .heading p {
  margin-bottom: 7px;
  color: var(--equifax-v2-blue);
  font-size: 10px;
  font-weight: 900;
}

body.theme-equifax:not(.theme-francisca) .heading h1 {
  margin: 0;
  color: var(--equifax-v2-ink);
  font-size: 31px;
  line-height: 1.08;
  letter-spacing: -.02em;
}

/* KPI REPORTES */
body.theme-equifax:not(.theme-francisca) .entel-report-kpis {
  display: none;
}

body.theme-equifax:not(.theme-francisca) .entel-report-kpis {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 18px;
  margin: 10px 0 28px;
}

body.theme-equifax:not(.theme-francisca) .entel-report-kpis article {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 19px 20px;
  border: 1px solid var(--equifax-v2-line);
  border-radius: 16px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 9px 24px rgba(17,51,116,.055);
}

body.theme-equifax:not(.theme-francisca) .entel-report-kpis article > div:last-child {
  min-width: 0;
}

body.theme-equifax:not(.theme-francisca) .entel-report-kpis strong {
  display: block;
  margin-bottom: 5px;
  color: var(--equifax-v2-ink);
  font-size: 25px;
  line-height: 1;
}

body.theme-equifax:not(.theme-francisca) .entel-report-kpis span {
  color: #254273;
  font-size: 12px;
  line-height: 1.45;
}

body.theme-equifax:not(.theme-francisca) .entel-kpi-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--equifax-v2-blue);
  background: #f2f5f8;
  font-size: 24px;
  font-weight: 800;
}

body.theme-equifax:not(.theme-francisca) .entel-kpi-icon.orange {
  color: var(--equifax-v2-orange);
  background: #fff1f3;
}

/* FILTROS */
body.theme-equifax:not(.theme-francisca) .entel-report-controls {
  display: grid;
  grid-template-columns: 180px 205px 240px 270px auto;
  gap: 13px;
  align-items: end;
  margin: 0 0 16px;
  padding: 17px;
  background: #fff;
  border: 1px solid var(--equifax-v2-line);
  border-radius: 15px;
  box-shadow: 0 9px 26px rgba(17,50,113,.05);
}

body.theme-equifax:not(.theme-francisca) .entel-report-controls .field {
  min-width: 0;
  margin: 0;
}

body.theme-equifax:not(.theme-francisca) .entel-report-controls label {
  color: #294774;
  font-size: 9px;
  font-weight: 900;
}

body.theme-equifax:not(.theme-francisca) .entel-report-controls select,
body.theme-equifax:not(.theme-francisca) .entel-report-controls input {
  min-height: 44px;
  border-color: #d9e1e9;
  border-radius: 9px;
  color: var(--equifax-v2-ink);
  font-weight: 700;
}

body.theme-equifax:not(.theme-francisca) .entel-report-controls .primary {
  min-height: 44px;
  padding-inline: 22px;
}

/* RANGO */
body.theme-equifax:not(.theme-francisca) #reportRange {
  margin: 0 0 12px;
  padding: 8px 10px;
  color: #63789d;
  background: #f5f8fe;
  border-radius: 8px;
  font-size: 10px;
}

/* TABLA */
body.theme-equifax:not(.theme-francisca) .report-table-wrap {
  overflow: hidden;
  border: 1px solid var(--equifax-v2-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 26px rgba(17,50,113,.045);
}

body.theme-equifax:not(.theme-francisca) .report-table {
  font-size: 10px;
}

body.theme-equifax:not(.theme-francisca) .report-table th {
  padding: 13px 11px;
  color: #29445f;
  background: #fff;
  border-bottom: 1px solid #dde4eb;
  font-size: 9px;
  font-weight: 900;
}

body.theme-equifax:not(.theme-francisca) .report-table td {
  padding: 12px 11px;
  color: #25416c;
  border-bottom: 1px solid #e9edf1;
}

body.theme-equifax:not(.theme-francisca) .report-table tfoot th {
  color: #203e61;
  background: #fff;
}

/* EMPTY STATE */
body.theme-equifax:not(.theme-francisca) .entel-empty-row td {
  height: 200px;
  padding: 20px !important;
  text-align: center !important;
}

body.theme-equifax:not(.theme-francisca) .entel-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

body.theme-equifax:not(.theme-francisca) .entel-empty-state img {
  width: 145px;
  height: 92px;
  object-fit: contain;
  margin-bottom: 4px;
}

body.theme-equifax:not(.theme-francisca) .entel-empty-state strong {
  color: #203e61;
  font-size: 14px;
}

body.theme-equifax:not(.theme-francisca) .entel-empty-state span {
  margin-top: 6px;
  color: #7484a4;
  font-size: 11px;
}

/* CHARTS */
body.theme-equifax:not(.theme-francisca) .charts {
  gap: 18px;
  margin-top: 20px;
}

body.theme-equifax:not(.theme-francisca) .chart-card {
  min-height: 145px;
  padding: 22px 24px;
  border: 1px solid var(--equifax-v2-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(17,50,113,.045);
}

body.theme-equifax:not(.theme-francisca) .chart-card h3 {
  margin: 0 0 15px;
  color: var(--equifax-v2-ink);
  font-size: 15px;
}

body.theme-equifax:not(.theme-francisca) .entel-chart-empty {
  margin-top: 28px;
  color: #7282a1;
  font-size: 12px;
}

body.theme-equifax:not(.theme-francisca) .bar-track {
  height: 10px;
  background: #eef2f5;
}

body.theme-equifax:not(.theme-francisca) .bar-fill {
  background: var(--equifax-v2-blue);
}

/* BOTONES */
body.theme-equifax:not(.theme-francisca) .primary {
  background: linear-gradient(180deg,#e13b55,#d52342);
  box-shadow: 0 7px 17px rgba(6,77,244,.20);
}

body.theme-equifax:not(.theme-francisca) .primary:hover {
  filter: brightness(.97);
}

/* RESPONSIVE */
@media (max-width: 1280px) {
  body.theme-equifax:not(.theme-francisca) .entel-report-kpis {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  body.theme-equifax:not(.theme-francisca) .entel-report-controls {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 900px) {
  body.theme-equifax:not(.theme-francisca) .entel-report-kpis {
    grid-template-columns: 1fr 1fr;
  }

  body.theme-equifax:not(.theme-francisca) .content {
    padding: 28px;
  }
}

/* === ENTEL V2.1 — REFINAMIENTO VISUAL === */

body.theme-equifax:not(.theme-francisca) aside {
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
}

/* Sidebar: más aire */
body.theme-equifax:not(.theme-francisca) .side-nav button,
body.theme-equifax:not(.theme-francisca) aside > button,
body.theme-equifax:not(.theme-francisca) .more-folders button {
  min-height: 48px;
  padding: 12px 16px;
}

body.theme-equifax:not(.theme-francisca) .side-nav {
  margin-bottom: 14px;
}

body.theme-equifax:not(.theme-francisca) .aside-label {
  margin-top: 4px;
}

/* Logo Entel siempre visible al fondo */
body.theme-equifax:not(.theme-francisca) .entel-sidebar-logo {
  display: block;
  width: 136px;
  height: auto;
  max-height: 72px;
  object-fit: contain;
  margin: auto auto 8px 22px;
  padding-top: 34px;
  flex: 0 0 auto;
}

/* KPI: proporciones más cercanas al mockup */
body.theme-equifax:not(.theme-francisca) .entel-report-kpis {
  gap: 16px;
  margin-bottom: 24px;
}

body.theme-equifax:not(.theme-francisca) .entel-report-kpis article {
  min-height: 118px;
  padding: 20px 18px;
  border-radius: 16px;
}

body.theme-equifax:not(.theme-francisca) .entel-kpi-icon {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
  font-size: 22px;
}

body.theme-equifax:not(.theme-francisca) .entel-report-kpis strong {
  font-size: 27px;
}

body.theme-equifax:not(.theme-francisca) .entel-report-kpis span {
  font-size: 12px;
  line-height: 1.42;
}

/* Filtros más compactos */
body.theme-equifax:not(.theme-francisca) .entel-report-controls {
  grid-template-columns: 170px 195px 225px 250px max-content;
  gap: 12px;
}

body.theme-equifax:not(.theme-francisca) .entel-report-controls .primary {
  width: auto !important;
  min-width: 145px;
  justify-self: start;
  padding-left: 22px;
  padding-right: 22px;
}

/* Tabla con más respiración */
body.theme-equifax:not(.theme-francisca) .report-table th {
  padding-top: 14px;
  padding-bottom: 14px;
}

body.theme-equifax:not(.theme-francisca) .report-table td {
  padding-top: 13px;
  padding-bottom: 13px;
}

/* Estado vacío más parecido al mockup */
body.theme-equifax:not(.theme-francisca) .entel-empty-row td {
  height: 245px;
}

body.theme-equifax:not(.theme-francisca) .entel-empty-state {
  min-height: 205px;
}

body.theme-equifax:not(.theme-francisca) .entel-empty-state img {
  width: 195px;
  height: 125px;
  margin-bottom: 5px;
}

body.theme-equifax:not(.theme-francisca) .entel-empty-state strong {
  font-size: 15px;
}

body.theme-equifax:not(.theme-francisca) .entel-empty-state span {
  font-size: 11px;
}

/* Tarjetas inferiores */
body.theme-equifax:not(.theme-francisca) .chart-card {
  min-height: 155px;
  padding: 24px 26px;
}

/* Mayor separación general */
body.theme-equifax:not(.theme-francisca) .report-page {
  padding-bottom: 30px;
}

body.theme-equifax:not(.theme-francisca) #reportRange {
  margin-top: 2px;
}

/* Sidebar un poco más elegante */
body.theme-equifax:not(.theme-francisca) aside {
  box-shadow: 10px 0 28px rgba(4,39,112,.13);
}

body.theme-equifax:not(.theme-francisca) .side-nav button.active {
  box-shadow:
    0 8px 18px rgba(1,30,110,.20),
    inset 0 0 0 1px rgba(255,255,255,.10);
}

/* Ajuste en pantallas grandes */
@media (min-width: 1450px) {
  body.theme-equifax:not(.theme-francisca) .content {
    padding-left: 56px;
    padding-right: 56px;
  }
}

/* === ENTEL V2.2 — ACABADO FINAL DASHBOARD === */

/* Sidebar desplazable pero sin scrollbar visible */
body.theme-equifax:not(.theme-francisca) aside {
  overflow-y: auto;
  scrollbar-width: none;
  padding-bottom: 125px;
}

body.theme-equifax:not(.theme-francisca) aside::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Logo Entel siempre visible */
body.theme-equifax:not(.theme-francisca) .entel-sidebar-logo {
  position: fixed;
  left: 27px;
  bottom: 22px;
  z-index: 28;
  width: 132px;
  height: 62px;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: left center;
}

/* Suave fondo detrás del logo para mantener legibilidad */
body.theme-equifax:not(.theme-francisca) aside::after {
  content: "";
  position: fixed;
  left: 0;
  bottom: 0;
  width: 270px;
  height: 105px;
  z-index: 26;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(5,44,128,0) 0%,
      rgba(5,44,128,.92) 35%,
      #071f3f 72%
    );
}

/* Navegación */
body.theme-equifax:not(.theme-francisca) .side-nav button.active {
  background:
    linear-gradient(90deg,#1970ed 0%,#1763d8 100%);
}

body.theme-equifax:not(.theme-francisca) .side-nav button {
  letter-spacing: -.01em;
}

body.theme-equifax:not(.theme-francisca) aside > button.active {
  background:
    linear-gradient(90deg,rgba(255,255,255,.16),rgba(255,255,255,.10));
}

/* Más equilibrio en KPI */
body.theme-equifax:not(.theme-francisca) .entel-report-kpis article {
  box-shadow:
    0 10px 25px rgba(19,51,112,.055),
    inset 0 1px 0 rgba(255,255,255,.85);
}

body.theme-equifax:not(.theme-francisca) .entel-report-kpis strong {
  letter-spacing: -.025em;
}

body.theme-equifax:not(.theme-francisca) .entel-kpi-icon {
  box-shadow: inset 0 0 0 1px rgba(6,77,244,.025);
}

/* Controles */
body.theme-equifax:not(.theme-francisca) .entel-report-controls {
  padding: 18px 16px;
  box-shadow: 0 10px 27px rgba(15,48,109,.055);
}

/* Botón actualizar exactamente tipo mockup */
body.theme-equifax:not(.theme-francisca) #loadReport {
  min-width: 150px;
  height: 44px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .01em;
}

/* Tabla */
body.theme-equifax:not(.theme-francisca) .report-table-wrap {
  box-shadow: 0 11px 28px rgba(15,48,109,.05);
}

body.theme-equifax:not(.theme-francisca) .report-table thead th {
  height: 46px;
}

/* Estado vacío */
body.theme-equifax:not(.theme-francisca) .entel-empty-row td {
  height: 260px;
}

body.theme-equifax:not(.theme-francisca) .entel-empty-state img {
  width: 215px;
  height: 135px;
}

body.theme-equifax:not(.theme-francisca) .entel-empty-state strong {
  margin-top: 3px;
  color: #203e61;
  font-size: 15px;
  font-weight: 900;
}

body.theme-equifax:not(.theme-francisca) .entel-empty-state span {
  color: #7787a7;
}

/* Paneles inferiores */
body.theme-equifax:not(.theme-francisca) .chart-card {
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(15,48,109,.045);
}

body.theme-equifax:not(.theme-francisca) .chart-card h3 {
  font-weight: 900;
  letter-spacing: -.01em;
}

/* Fondo general más suave */
body.theme-equifax:not(.theme-francisca) .content {
  background:
    radial-gradient(circle at 82% 6%,rgba(255,255,255,.85),transparent 32%),
    linear-gradient(135deg,#fafbfd 0%,#f5f7fa 100%);
}


/* ============================================================
   ENTEL — GESTIÓN DE CLIENTES V2
   ============================================================ */

/* Encabezado de Gestión */
body.theme-equifax:not(.theme-francisca) #funnelPage > .heading {
  margin-bottom: 22px;
  align-items: flex-end;
}

body.theme-equifax:not(.theme-francisca) #funnelPage > .heading h1 {
  color: #142f50;
  font-size: 31px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.025em;
}

body.theme-equifax:not(.theme-francisca) #funnelPage > .heading p {
  color: #d52342;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}

/* Botonera superior */
body.theme-equifax:not(.theme-francisca) #funnelPage .heading-actions {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.theme-equifax:not(.theme-francisca) #funnelPage .heading-actions .ghost,
body.theme-equifax:not(.theme-francisca) #funnelPage .heading-actions .primary,
body.theme-equifax:not(.theme-francisca) #funnelPage .heading-actions .danger {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .015em;
}

body.theme-equifax:not(.theme-francisca) #funnelPage #uploadBase {
  background: linear-gradient(180deg,#e13b55,#d52342);
  box-shadow: 0 7px 16px rgba(6,77,244,.18);
}

body.theme-equifax:not(.theme-francisca) #funnelPage #addClient {
  color: #d52342;
  border-color: #bfd1fb;
  background: #fff;
}

/* ============================================================
   KPI DE GESTIÓN
   ============================================================ */

body.theme-equifax:not(.theme-francisca) #funnelPage .metrics {
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 16px;
  margin: 0 0 24px;
}

body.theme-equifax:not(.theme-francisca) #funnelPage .metrics article {
  position: relative;
  min-height: 112px;
  padding: 19px 18px 18px 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  overflow: hidden;

  background: #fff;
  border: 1px solid #dce3eb;
  border-radius: 16px;
  box-shadow:
    0 10px 25px rgba(19,51,112,.05),
    inset 0 1px 0 rgba(255,255,255,.9);
}

body.theme-equifax:not(.theme-francisca) #funnelPage .metrics article::before {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-radius: 50%;

  color: #d52342;
  background: #f2f5f8;

  font-size: 20px;
  font-weight: 900;
}

/* iconos ligeros, sin librerías */
body.theme-equifax:not(.theme-francisca) #funnelPage .metrics article:nth-child(1)::before {
  content: "◎";
}

body.theme-equifax:not(.theme-francisca) #funnelPage .metrics article:nth-child(2)::before {
  content: "☎";
}

body.theme-equifax:not(.theme-francisca) #funnelPage .metrics article:nth-child(3)::before {
  content: "↻";
}

body.theme-equifax:not(.theme-francisca) #funnelPage .metrics article:nth-child(4)::before {
  content: "✓";
  color: #d52342;
  background: #fff1f3;
}

body.theme-equifax:not(.theme-francisca) #funnelPage .metrics article:nth-child(5)::before {
  content: "UF";
  color: #d52342;
  background: #fff1f3;
  font-size: 12px;
}

body.theme-equifax:not(.theme-francisca) #funnelPage .metrics span {
  order: 2;
  color: #35527d;
  font-size: 10px;
  font-weight: 800;
}

body.theme-equifax:not(.theme-francisca) #funnelPage .metrics strong {
  order: 1;
  margin-bottom: 2px;
  color: #142f50;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -.025em;
}

body.theme-equifax:not(.theme-francisca) #funnelPage .metrics small {
  order: 3;
  color: #7b8aa7;
  font-size: 9px;
  line-height: 1.3;
}

/* Quitar tratamiento antiguo de tarjeta naranja completa */
body.theme-equifax:not(.theme-francisca) #funnelPage .metrics .accent {
  color: inherit;
  background: #fff;
  border-color: #dce3eb;
}

body.theme-equifax:not(.theme-francisca) #funnelPage .metrics .accent span,
body.theme-equifax:not(.theme-francisca) #funnelPage .metrics .accent small {
  color: #35527d;
}

/* ============================================================
   BUSCADOR + FILTROS
   ============================================================ */

body.theme-equifax:not(.theme-francisca) #funnelPage > .controls {
  grid-template-columns: minmax(300px,1fr) 230px 250px;
  gap: 12px;
  padding: 16px;

  background: #fff;
  border: 1px solid #dce3eb;
  border-radius: 15px;
  box-shadow: 0 10px 27px rgba(15,48,109,.05);
}

body.theme-equifax:not(.theme-francisca) #funnelPage > .controls input,
body.theme-equifax:not(.theme-francisca) #funnelPage > .controls select {
  min-height: 44px;
  padding: 0 13px;

  color: #142f50;
  background: #fff;
  border: 1px solid #d9e1e9;
  border-radius: 9px;

  font-size: 11px;
  font-weight: 800;
}

body.theme-equifax:not(.theme-francisca) #funnelPage > .controls input::placeholder {
  color: #8290aa;
  font-weight: 700;
}

/* ============================================================
   SUBCARPETAS BASE COMPLETA
   ============================================================ */

body.theme-equifax:not(.theme-francisca) #baseSubfolders {
  margin-top: 13px;
  padding: 12px;

  background: #fff;
  border: 1px solid #dce3eb;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15,48,109,.035);
}

body.theme-equifax:not(.theme-francisca) #baseSubfolders .ghost {
  color: #36527d;
  background: #fafbfc;
  border-color: #e1e8f4;
}

body.theme-equifax:not(.theme-francisca) #baseSubfolders .ghost:hover {
  color: #d52342;
  background: #f2f5f8;
}

/* ============================================================
   REASIGNACIÓN
   ============================================================ */

body.theme-equifax:not(.theme-francisca) .reassign-zone {
  margin: 15px 0;
  padding: 16px;

  background: #f4f6f8;
  border: 1px solid #cdddf9;
  border-radius: 14px;
}

body.theme-equifax:not(.theme-francisca) .reassign-zone > strong {
  color: #294f79;
  font-size: 10px;
  letter-spacing: .04em;
}

body.theme-equifax:not(.theme-francisca) .executive-drop {
  color: #365f8b;
  background: #fff;
  border: 1px dashed #88aef3;
  border-radius: 9px;
}

body.theme-equifax:not(.theme-francisca) .executive-drop:hover,
body.theme-equifax:not(.theme-francisca) .executive-drop.drag-over {
  color: #fff;
  background: #d52342;
  border-color: #d52342;
}

/* ============================================================
   TÍTULO DE CARPETA
   ============================================================ */

body.theme-equifax:not(.theme-francisca) #funnelPage .section-title {
  margin: 27px 2px 13px;
  align-items: flex-end;
}

body.theme-equifax:not(.theme-francisca) #funnelPage .section-title p {
  color: #6780ac;
  font-size: 9px;
}

body.theme-equifax:not(.theme-francisca) #funnelPage .section-title h2 {
  color: #142f50;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.02em;
}

body.theme-equifax:not(.theme-francisca) #resultCount {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;

  color: #3c5a87;
  background: #f2f5f8;
  border-radius: 999px;

  font-size: 9px;
  font-weight: 900;
}

/* ============================================================
   TARJETAS DE CLIENTES
   ============================================================ */

body.theme-equifax:not(.theme-francisca) #clients.client-list {
  gap: 11px;
}

body.theme-equifax:not(.theme-francisca) .client {
  position: relative;
  min-height: 104px;
  padding: 17px 19px;

  background: rgba(255,255,255,.98);
  border: 1px solid #dce3eb;
  border-radius: 15px;

  box-shadow: 0 7px 20px rgba(18,50,108,.035);

  transition:
    transform .15s ease,
    border-color .15s ease,
    box-shadow .15s ease;
}

body.theme-equifax:not(.theme-francisca) .client:hover {
  transform: translateY(-1px);
  border-color: #a9c3f5;
  box-shadow: 0 11px 26px rgba(18,50,108,.07);
}

body.theme-equifax:not(.theme-francisca) .client.selected {
  border-color: #5d8ff2;
  box-shadow:
    0 0 0 2px rgba(6,77,244,.10),
    0 11px 25px rgba(18,50,108,.07);
}

body.theme-equifax:not(.theme-francisca) .client.bulk-selected {
  border-color: #d52342;
  background: #f7faff;
  box-shadow: 0 0 0 2px rgba(6,77,244,.10);
}

body.theme-equifax:not(.theme-francisca) .client-main {
  align-items: flex-start;
  gap: 14px;
}

body.theme-equifax:not(.theme-francisca) .client h3 {
  margin-bottom: 6px;
  color: #142f50;
  font-size: 14px;
  font-weight: 900;
}

body.theme-equifax:not(.theme-francisca) .client p {
  color: #65789d;
  font-size: 11px;
  line-height: 1.5;
}

/* Estados */
body.theme-equifax:not(.theme-francisca) .status-dot {
  width: 9px;
  height: 9px;
  margin-top: 6px;
  box-shadow: 0 0 0 5px rgba(122,142,173,.10);
}

body.theme-equifax:not(.theme-francisca) .status-dot.SIN {
  background: #8292ad;
}

body.theme-equifax:not(.theme-francisca) .status-dot.NO {
  background: #8c9ab1;
}

body.theme-equifax:not(.theme-francisca) .status-dot.VOLVER {
  background: #d98b37;
  box-shadow: 0 0 0 5px rgba(255,157,46,.12);
}

body.theme-equifax:not(.theme-francisca) .status-dot.AGENDADO {
  background: #d52342;
  box-shadow: 0 0 0 5px rgba(6,77,244,.10);
}

body.theme-equifax:not(.theme-francisca) .status-dot.VENTA {
  background: #18a66b;
  box-shadow: 0 0 0 5px rgba(24,166,107,.11);
}

body.theme-equifax:not(.theme-francisca) .status-dot.NOTINTERESTED {
  background: #7d8799;
}

/* Tags */
body.theme-equifax:not(.theme-francisca) .tags {
  margin-top: 11px;
  gap: 6px;
}

body.theme-equifax:not(.theme-francisca) .tags span {
  padding: 5px 8px;

  color: #39567f;
  background: #f1f5fb;
  border: 1px solid #e4eaf4;
  border-radius: 7px;

  font-size: 8px;
  font-weight: 900;
}

body.theme-equifax:not(.theme-francisca) .tags .quote {
  color: #c64317;
  background: #fff1f3;
  border-color: #f6d3da;
}

/* Ejecutivo */
body.theme-equifax:not(.theme-francisca) .client-side {
  min-width: 150px;
  padding-left: 18px;
  border-left: 1px solid #edf1f7;
}

body.theme-equifax:not(.theme-francisca) .client-side small {
  color: #7c8ba7;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}

body.theme-equifax:not(.theme-francisca) .client-side strong {
  color: #203e61;
  font-size: 11px;
  font-weight: 900;
}

body.theme-equifax:not(.theme-francisca) .client-side .ghost {
  margin-top: 4px;
  padding: 7px 11px;
  color: #d52342;
  background: #f7f8fa;
  border-color: #d7e2f7;
  font-size: 9px;
}

/* checkbox selección */
body.theme-equifax:not(.theme-francisca) .client-select {
  width: 19px;
  height: 19px;
  accent-color: #d52342;
}

/* ============================================================
   ESTADO VACÍO
   ============================================================ */

body.theme-equifax:not(.theme-francisca) #clients .empty {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  color: #7182a3;
  background: #fff;
  border: 1px solid #dce3eb;
  border-radius: 16px;
  box-shadow: 0 9px 24px rgba(17,50,113,.04);

  font-size: 11px;
  font-weight: 800;
}

body.theme-equifax:not(.theme-francisca) #clients .empty::before {
  content: "";
  width: 190px;
  height: 125px;
  margin-bottom: 10px;

  background:
    none
    center / contain
    no-repeat;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1250px) {
  body.theme-equifax:not(.theme-francisca) #funnelPage .metrics {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  body.theme-equifax:not(.theme-francisca) #funnelPage > .controls {
    grid-template-columns: 1fr 1fr;
  }
}


/* ============================================================
   ENTEL — EQUIPOS Y USUARIOS V2
   ============================================================ */

/* Página */
body.theme-equifax:not(.theme-francisca) #userAdminPage {
  width: 100%;
}

/* Encabezado */
body.theme-equifax:not(.theme-francisca) #userAdminPage > .heading {
  margin-bottom: 24px;
  align-items: flex-end;
  gap: 12px;
}

body.theme-equifax:not(.theme-francisca) #userAdminPage > .heading > div:first-child {
  margin-right: auto;
}

body.theme-equifax:not(.theme-francisca) #userAdminPage > .heading p {
  margin: 0 0 6px;
  color: #d52342;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}

body.theme-equifax:not(.theme-francisca) #userAdminPage > .heading h1 {
  margin: 0;
  color: #142f50;
  font-size: 31px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.025em;
}

/* Botones superiores */
body.theme-equifax:not(.theme-francisca) #userAdminPage > .heading > button {
  min-height: 41px;
  padding: 0 15px;

  color: #174078;
  background: #fff;
  border: 1px solid #d5e0f1;
  border-radius: 9px;

  font-size: 10px;
  font-weight: 900;
  letter-spacing: .01em;

  box-shadow: 0 5px 13px rgba(16,48,105,.035);
}

body.theme-equifax:not(.theme-francisca) #userAdminPage > .heading > button:hover {
  color: #d52342;
  border-color: #b8cdf5;
  background: #fafbfc;
}

body.theme-equifax:not(.theme-francisca) #userAdminPage #addUser {
  color: #fff;
  background: linear-gradient(180deg,#e13b55,#d52342);
  border-color: #d52342;

  box-shadow: 0 7px 17px rgba(6,77,244,.18);
}

body.theme-equifax:not(.theme-francisca) #userAdminPage #addUser:hover {
  color: #fff;
  background: #d52342;
}

/* Error */
body.theme-equifax:not(.theme-francisca) #managedUsersError {
  margin-bottom: 12px;
}

/* ============================================================
   TABLA PRINCIPAL
   ============================================================ */

body.theme-equifax:not(.theme-francisca) #userAdminPage .table-wrap {
  overflow: hidden;

  background: #fff;
  border: 1px solid #dce3eb;
  border-radius: 16px;

  box-shadow:
    0 11px 28px rgba(15,48,109,.05),
    inset 0 1px 0 rgba(255,255,255,.9);
}

body.theme-equifax:not(.theme-francisca) #userAdminPage table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;

  color: #263f69;
  background: #fff;
}

/* Header */
body.theme-equifax:not(.theme-francisca) #userAdminPage thead th {
  height: 49px;
  padding: 0 16px;

  color: #17386d;
  background: #fafbfc;
  border-bottom: 1px solid #e2e7ec;

  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Filas */
body.theme-equifax:not(.theme-francisca) #userAdminPage tbody td {
  padding: 17px 16px;

  color: #40577e;
  background: #fff;
  border-bottom: 1px solid #edf0f3;

  font-size: 11px;
  line-height: 1.45;
  vertical-align: middle;
}

body.theme-equifax:not(.theme-francisca) #userAdminPage tbody tr:last-child td {
  border-bottom: 0;
}

body.theme-equifax:not(.theme-francisca) #userAdminPage tbody tr {
  transition:
    background .14s ease,
    box-shadow .14s ease;
}

body.theme-equifax:not(.theme-francisca) #userAdminPage tbody tr:hover td {
  background: #fbfcff;
}

/* Primera columna: usuario */
body.theme-equifax:not(.theme-francisca) #userAdminPage tbody td:first-child {
  color: #142f50;
  font-weight: 800;
}

/* ============================================================
   SELECTORES ROL / EQUIPO
   ============================================================ */

body.theme-equifax:not(.theme-francisca) #userAdminPage select {
  width: 100%;
  max-width: 215px;
  min-height: 38px;
  padding: 0 10px;

  color: #163b75;
  background: #fff;
  border: 1px solid #d9e1e9;
  border-radius: 8px;

  font-size: 10px;
  font-weight: 800;
}

body.theme-equifax:not(.theme-francisca) #userAdminPage select:focus {
  outline: 0;
  border-color: #82a9f5;
  box-shadow: 0 0 0 3px rgba(6,77,244,.08);
}

/* ============================================================
   PERMISOS
   ============================================================ */

body.theme-equifax:not(.theme-francisca) #userAdminPage .permission-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(120px,1fr));
  gap: 7px 11px;
  min-width: 280px;
}

body.theme-equifax:not(.theme-francisca) #userAdminPage .permission-grid label {
  display: flex;
  align-items: center;
  gap: 7px;

  min-height: 28px;
  padding: 4px 7px;

  color: #4b6083;
  background: #fafbfc;
  border: 1px solid #edf1f7;
  border-radius: 7px;

  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
}

body.theme-equifax:not(.theme-francisca) #userAdminPage .permission-grid input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  accent-color: #d52342;
}

/* ============================================================
   BOTONES DENTRO DE FILAS
   ============================================================ */

body.theme-equifax:not(.theme-francisca) #userAdminPage tbody button {
  min-height: 34px;
  padding: 0 11px;

  color: #174078;
  background: #f7faff;
  border: 1px solid #d7e2f4;
  border-radius: 8px;

  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

body.theme-equifax:not(.theme-francisca) #userAdminPage tbody button:hover {
  color: #d52342;
  background: #f2f5f8;
  border-color: #b9cff7;
}

/* Botón destructivo si existe */
body.theme-equifax:not(.theme-francisca) #userAdminPage tbody .danger {
  color: #c33939;
  background: #fff5f5;
  border-color: #f2d4d4;
}

/* ============================================================
   ESTADOS / BADGES
   ============================================================ */

body.theme-equifax:not(.theme-francisca) #userAdminPage tbody td:nth-child(4) {
  color: #334f79;
  font-weight: 800;
}

/* Que textos tipo ACTIVO / INACTIVO se vean contenidos */
body.theme-equifax:not(.theme-francisca) #userAdminPage tbody td:nth-child(4) > span,
body.theme-equifax:not(.theme-francisca) #userAdminPage tbody td:nth-child(4) > strong {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 9px;

  background: #eff8f4;
  border: 1px solid #d7eee4;
  border-radius: 999px;

  color: #167352;
  font-size: 9px;
  font-weight: 900;
}

/* ============================================================
   ESTADO VACÍO
   ============================================================ */

body.theme-equifax:not(.theme-francisca) #userAdminPage tbody:empty::after {
  content: "AÚN NO HAY USUARIOS EN ESTE EQUIPO.";
  display: table-cell;
  height: 220px;
  vertical-align: middle;
  text-align: center;

  color: #7283a2;
  font-size: 11px;
  font-weight: 800;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {
  body.theme-equifax:not(.theme-francisca) #userAdminPage .table-wrap {
    overflow-x: auto;
  }

  body.theme-equifax:not(.theme-francisca) #userAdminPage table {
    min-width: 1000px;
  }
}


/* ============================================================
   ENTEL — BASE COMPLETA V2
   ============================================================ */

/* Contenedor de vistas de base */
body.theme-equifax:not(.theme-francisca) #baseSubfolders {
  position: relative;
  margin-top: 14px;
  padding: 11px 12px;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;

  background: #fff;
  border: 1px solid #dce3eb;
  border-radius: 15px;

  box-shadow:
    0 9px 24px rgba(15,48,109,.045),
    inset 0 1px 0 rgba(255,255,255,.9);
}

/* Botones de vistas */
body.theme-equifax:not(.theme-francisca) #baseSubfolders button[data-base-view] {
  min-height: 38px;
  padding: 0 14px;

  color: #445e85;
  background: #fafbfc;
  border: 1px solid #e1e8f4;
  border-radius: 9px;

  font-size: 9px;
  font-weight: 900;
  letter-spacing: .01em;

  box-shadow: none;

  transition:
    color .15s ease,
    background .15s ease,
    border-color .15s ease,
    box-shadow .15s ease;
}

body.theme-equifax:not(.theme-francisca) #baseSubfolders button[data-base-view]:hover {
  color: #d52342;
  background: #f1f5ff;
  border-color: #c5d7f7;
}

/* Vista activa */
body.theme-equifax:not(.theme-francisca) #baseSubfolders button[data-base-view].active {
  color: #d52342;
  background: #f3f5f8;
  border-color: #9bbbf5;

  box-shadow:
    inset 0 0 0 1px rgba(6,77,244,.05),
    0 5px 12px rgba(6,77,244,.08);
}

/* Acción principal */
body.theme-equifax:not(.theme-francisca) #assignQuantity {
  min-height: 38px;
  padding: 0 17px;

  color: #fff;
  background: linear-gradient(180deg,#e13b55,#d52342);
  border: 1px solid #d52342;
  border-radius: 9px;

  font-size: 9px;
  font-weight: 900;
  letter-spacing: .01em;

  box-shadow: 0 7px 16px rgba(6,77,244,.18);
}

body.theme-equifax:not(.theme-francisca) #assignQuantity:hover {
  background: #d52342;
  box-shadow: 0 8px 19px rgba(6,77,244,.24);
}

/* Encabezado de carpeta */
body.theme-equifax:not(.theme-francisca) #funnelPage .section-title {
  position: relative;
  margin-top: 27px;
  padding-left: 2px;
}

body.theme-equifax:not(.theme-francisca) #funnelPage .section-title p {
  color: #6d82aa;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .15em;
}

body.theme-equifax:not(.theme-francisca) #funnelPage .section-title h2 {
  color: #142f50;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -.025em;
}

/* Resultados */
body.theme-equifax:not(.theme-francisca) #resultCount {
  min-height: 30px;
  padding: 0 12px;

  color: #345789;
  background: #f2f5f8;
  border: 1px solid #e0e9f8;

  font-size: 9px;
  font-weight: 900;
}

/* Un poco más de presencia al listado cuando estamos en Base Completa */
body.theme-equifax:not(.theme-francisca) #baseSubfolders:not(.hidden) ~ .section-title + #clients {
  position: relative;
}

/* Estado vacío */
body.theme-equifax:not(.theme-francisca) #baseSubfolders:not(.hidden) ~ .section-title + #clients .empty {
  min-height: 300px;
}

/* Responsive */
@media (max-width: 1300px) {
  body.theme-equifax:not(.theme-francisca) #baseSubfolders {
    justify-content: flex-start;
  }

  body.theme-equifax:not(.theme-francisca) #baseSubfolders button[data-base-view] {
    flex: 0 0 auto;
  }
}


/* ============================================================
   ENTEL — CHAT MINIMIZABLE V2
   ============================================================ */

body.theme-equifax:not(.theme-francisca) .chat-window-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

body.theme-equifax:not(.theme-francisca) .chat-window-actions button {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;

  color: #174078;
  background: #fff;
  border: 1px solid #d8e3f3;
  border-radius: 9px;

  font-size: 18px;
  font-weight: 900;
}

body.theme-equifax:not(.theme-francisca) .chat-window-actions button:hover {
  color: #d52342;
  background: #f4f7ff;
  border-color: #b9cdf4;
}

/* Estado minimizado */
body.theme-equifax:not(.theme-francisca) .chat-page.chat-floating.chat-minimized {
  width: 310px;
  height: 68px;
  min-height: 68px;
  max-height: 68px;
  padding: 10px 12px;
  overflow: hidden;

  border-radius: 14px;
  box-shadow: 0 15px 38px rgba(7,36,92,.22);
}

body.theme-equifax:not(.theme-francisca) .chat-page.chat-minimized > .heading {
  height: 46px;
  margin: 0;
  align-items: center;
}

body.theme-equifax:not(.theme-francisca) .chat-page.chat-minimized > .heading p {
  display: none;
}

body.theme-equifax:not(.theme-francisca) .chat-page.chat-minimized > .heading h1 {
  margin: 0;
  font-size: 15px;
}

/* Ocultar contenido, conservar encabezado */
body.theme-equifax:not(.theme-francisca) .chat-page.chat-minimized .chat-tools,
body.theme-equifax:not(.theme-francisca) .chat-page.chat-minimized #chatError,
body.theme-equifax:not(.theme-francisca) .chat-page.chat-minimized .chat-box,
body.theme-equifax:not(.theme-francisca) .chat-page.chat-minimized .chat-form {
  display: none !important;
}


/* ============================================================
   ENTEL — CHAT FLOTANTE LAUNCHER V3
   ============================================================ */

/* El chat ya no forma parte visual del menú principal */
body.theme-equifax:not(.theme-francisca) #sideChat {
  display: none !important;
}

/* Botón flotante */
body.theme-equifax:not(.theme-francisca) .floating-chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 79;

  width: 54px;
  height: 54px;
  padding: 0;

  display: grid;
  place-items: center;

  color: #fff;
  background: linear-gradient(180deg,#e13b55,#d52342);

  border: 0;
  border-radius: 16px;

  cursor: pointer;

  box-shadow:
    0 13px 30px rgba(6,77,244,.28),
    inset 0 1px 0 rgba(255,255,255,.20);

  transition:
    transform .15s ease,
    box-shadow .15s ease;
}

body.theme-equifax:not(.theme-francisca) .floating-chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 34px rgba(6,77,244,.34),
    inset 0 1px 0 rgba(255,255,255,.22);
}

body.theme-equifax:not(.theme-francisca) .floating-chat-launcher.hidden {
  display: none !important;
}

/* Ícono de burbuja */
body.theme-equifax:not(.theme-francisca) .floating-chat-icon {
  position: relative;

  width: 24px;
  height: 19px;

  border: 2px solid #fff;
  border-radius: 7px;

  box-sizing: border-box;
}

body.theme-equifax:not(.theme-francisca) .floating-chat-icon::before {
  content: "";

  position: absolute;
  left: 4px;
  top: 5px;

  width: 3px;
  height: 3px;

  background: #fff;
  border-radius: 50%;

  box-shadow:
    6px 0 0 #fff,
    12px 0 0 #fff;
}

body.theme-equifax:not(.theme-francisca) .floating-chat-icon::after {
  content: "";

  position: absolute;
  left: 3px;
  bottom: -6px;

  width: 7px;
  height: 7px;

  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;

  transform: skewY(-28deg);
}

/* Panel abierto nace desde la misma esquina */
body.theme-equifax:not(.theme-francisca) .chat-page.chat-floating {
  right: 24px;
  bottom: 24px;
}

/* Ya no usamos el panel pequeño minimizado */
body.theme-equifax:not(.theme-francisca) .chat-page.chat-floating.chat-minimized {
  width: min(390px,calc(100vw - 48px));
  height: 560px;
  max-height: 75vh;
  padding: 14px;
}

/* En pantallas pequeñas */
@media (max-width: 600px) {
  body.theme-equifax:not(.theme-francisca) .floating-chat-launcher {
    right: 16px;
    bottom: 16px;
  }

  body.theme-equifax:not(.theme-francisca) .chat-page.chat-floating {
    right: 12px;
    bottom: 12px;
  }
}


/* ============================================================
   ENTEL — BADGE NOTIFICACIONES CHAT V4
   ============================================================ */

body.theme-equifax:not(.theme-francisca) .floating-chat-launcher {
  overflow: visible;
}

body.theme-equifax:not(.theme-francisca) .chat-unread-badge {
  position: absolute;
  top: -5px;
  right: -5px;

  min-width: 19px;
  height: 19px;
  padding: 0 5px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  background: #e52435;
  border: 2px solid #fff;
  border-radius: 999px;

  font-size: 9px;
  line-height: 1;
  font-weight: 900;

  box-sizing: border-box;

  box-shadow: 0 4px 10px rgba(190,20,40,.28);

  pointer-events: none;
}

body.theme-equifax:not(.theme-francisca) .chat-unread-badge.hidden {
  display: none !important;
}

/* pequeño pulso únicamente cuando aparece */
@keyframes entel-chat-badge-in {
  0%   { transform: scale(.65); opacity: 0; }
  70%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

body.theme-equifax:not(.theme-francisca) .chat-unread-badge:not(.hidden) {
  animation: entel-chat-badge-in .22s ease-out;
}



/* ============================================================
   EQUIFAX V2 — IDENTIDAD FINAL DEL MOCKUP
   ============================================================ */

body.theme-equifax:not(.theme-francisca) {
  --equifax-v2-red:#d52342;
  --equifax-v2-red-strong:#bb1733;
  --equifax-v2-navy:#0a294f;
  --equifax-v2-navy-dark:#071f3f;
  --equifax-v2-ink:#142f50;
}

/* Sidebar completamente navy */
body.theme-equifax:not(.theme-francisca) aside {
  background:
    linear-gradient(
      180deg,
      #0d315d 0%,
      #0a294f 50%,
      #071f3f 100%
    ) !important;
}

/* Quitar cualquier degradado azul heredado inferior */
body.theme-equifax:not(.theme-francisca) aside::after {
  background:
    linear-gradient(
      180deg,
      rgba(7,31,63,0) 0%,
      rgba(7,31,63,.94) 34%,
      #071f3f 72%
    ) !important;
}

/* AVEMCO arriba */
body.theme-equifax:not(.theme-francisca) .topbar .brand {
  background:
    linear-gradient(
      180deg,
      #0d315d 0%,
      #09274b 100%
    ) !important;
}

body.theme-equifax:not(.theme-francisca) .topbar .brand-logo {
  width: 205px !important;
  height: 62px !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: none !important;
}

/* Navegación estilo mockup */
body.theme-equifax:not(.theme-francisca) .side-nav button.active {
  color: #d52342 !important;
  background: #fff !important;
  box-shadow:
    0 8px 20px rgba(3,19,43,.18),
    inset 0 0 0 1px rgba(255,255,255,.12) !important;
}

body.theme-equifax:not(.theme-francisca) .side-nav button.active::before {
  background: #d52342 !important;
}

body.theme-equifax:not(.theme-francisca) aside > button.active {
  color: #fff !important;
  background: rgba(255,255,255,.12) !important;
}

body.theme-equifax:not(.theme-francisca) aside > button.active::before {
  background: #d52342 !important;
}

/* Logo EQUIFAX fijo abajo */
body.theme-equifax:not(.theme-francisca) .entel-sidebar-logo {
  position: fixed !important;
  left: 27px !important;
  bottom: 19px !important;

  width: 172px !important;
  height: 58px !important;
  max-height: 58px !important;

  margin: 0 !important;
  padding: 0 !important;

  object-fit: contain !important;
  object-position: left center !important;

  filter: none !important;
  opacity: 1 !important;

  z-index: 28 !important;
}

/* Títulos / acentos */
body.theme-equifax:not(.theme-francisca) .heading p,
body.theme-equifax:not(.theme-francisca) .section-title p {
  color: #d52342 !important;
}

body.theme-equifax:not(.theme-francisca) .heading h1,
body.theme-equifax:not(.theme-francisca) .section-title h1,
body.theme-equifax:not(.theme-francisca) .section-title h2 {
  color: #142f50 !important;
}

/* Acciones principales */
body.theme-equifax:not(.theme-francisca) .primary,
body.theme-equifax:not(.theme-francisca) #loadReport,
body.theme-equifax:not(.theme-francisca) #uploadBase,
body.theme-equifax:not(.theme-francisca) #assignQuantity {
  color: #fff !important;
  background:
    linear-gradient(
      180deg,
      #e13b55,
      #d52342
    ) !important;

  border-color: #d52342 !important;

  box-shadow:
    0 7px 17px rgba(213,35,66,.20) !important;
}

/* KPIs */
body.theme-equifax:not(.theme-francisca) .entel-kpi-icon {
  color: #d52342 !important;
  background: #fff0f3 !important;
}

body.theme-equifax:not(.theme-francisca) .entel-kpi-icon.orange {
  color: #9d5c3b !important;
  background: #fff3ed !important;
}

/* Barras */
body.theme-equifax:not(.theme-francisca) .bar-fill {
  background:
    linear-gradient(
      90deg,
      #d52342,
      #e66778
    ) !important;
}

/* Chat flotante */
body.theme-equifax:not(.theme-francisca) #sideChat {
  display: none !important;
}

body.theme-equifax:not(.theme-francisca) .floating-chat-launcher {
  background:
    linear-gradient(
      180deg,
      #e13b55,
      #d52342
    ) !important;

  box-shadow:
    0 13px 30px rgba(180,28,55,.28),
    inset 0 1px 0 rgba(255,255,255,.20) !important;
}

body.theme-equifax:not(.theme-francisca) .floating-chat-launcher:hover {
  box-shadow:
    0 16px 34px rgba(180,28,55,.34),
    inset 0 1px 0 rgba(255,255,255,.22) !important;
}

body.theme-equifax:not(.theme-francisca) .chat-unread-badge {
  background:#e52435 !important;
}

/* Evitar que theme-alain modifique el mockup EQUIFAX */
body.theme-equifax.theme-alain:not(.theme-francisca) aside {
  background:
    linear-gradient(
      180deg,
      #0d315d 0%,
      #0a294f 50%,
      #071f3f 100%
    ) !important;
}

body.theme-equifax.theme-alain:not(.theme-francisca) .content {
  background:
    radial-gradient(
      circle at 82% 6%,
      rgba(255,255,255,.85),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      #fafbfd 0%,
      #f5f7fa 100%
    ) !important;
}


/* LOGO AVEMCO BLANCO — SIDEBAR EQUIFAX GENÉRICO */
body.theme-equifax:not(.theme-francisca) .entel-sidebar-logo {
  width: 205px !important;
  height: 72px !important;
  max-height: 72px !important;
  left: 25px !important;
  bottom: 18px !important;
  object-fit: contain !important;
  object-position: left center !important;
  filter: none !important;
  opacity: 1 !important;
}



/* SWAP FINAL LOGOS EQUIFAX GENÉRICO */

/* Logo superior: AVEMCO blanco */
body.theme-equifax:not(.theme-francisca) .topbar .brand-logo {
  width: 205px !important;
  height: 64px !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: none !important;
  opacity: 1 !important;
}

/* Caja superior del sidebar */
body.theme-equifax:not(.theme-francisca) .topbar .brand {
  padding: 0 24px !important;
}

/* Logo inferior: EQUIFAX */
body.theme-equifax:not(.theme-francisca) .entel-sidebar-logo {
  width: 185px !important;
  height: 56px !important;
  max-height: 56px !important;
  left: 22px !important;
  bottom: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: left center !important;
  filter:
    drop-shadow(0 0 1px rgba(255,255,255,.95))
    drop-shadow(0 0 2px rgba(255,255,255,.85))
    drop-shadow(0 0 4px rgba(255,255,255,.55)) !important;
  opacity: 1 !important;
}

/* Un poco más de espacio para que el logo inferior respire */
body.theme-equifax:not(.theme-francisca) aside {
  padding-bottom: 96px !important;
}


/* AJUSTE FINAL LOGO EQUIFAX INFERIOR */
body.theme-equifax:not(.theme-francisca) .entel-sidebar-logo {
  width: 162px !important;
  height: auto !important;
  max-height: 54px !important;
  left: 26px !important;
  bottom: 18px !important;
  object-fit: contain !important;
  object-position: left center !important;
  opacity: 1 !important;
  filter: brightness(0) invert(1) !important;
}
