/* Solo usado por pages/b2b_cic_analytics2.py (/cica2-...) -- pestañas tipo
   "pill" copiando la forma de Geti. La clase es unica a esta pagina, no
   afecta al resto del sitio aunque Dash carga assets/ de forma global.

   OJO 2026-10-01: dbc.Tabs aplica className DIRECTO al <ul class="nav
   nav-tabs">, no a un div contenedor -- por eso los selectores de abajo usan
   ".g2-pills" solo (mismo elemento), nunca ".g2-pills .nav-tabs" (eso busca
   un hijo, que no existe, y el estilo nunca se aplica). */
.g2-pills.nav-tabs {
  border-bottom: none;
  gap: 8px;
  flex-wrap: wrap;
}
.g2-pills .nav-link {
  border: none !important;
  border-radius: 20px;
  padding: 8px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  color: #00205B;
  background: transparent;
  transition: background .15s;
}
.g2-pills .nav-link.active {
  background: #00205B !important;
  color: #fff !important;
}
.g2-pills .nav-link:hover:not(.active) {
  background: #E6E9EF;
}

/* Nivel 1 (riel vertical) controla cual seccion se ve -- su propia fila de
   pestañas (arriba de cada seccion) queda oculta porque es redundante con
   el riel. Nivel 2 (.g2-pills-sub, dentro de cada seccion) SI se ve: son
   las sub-pestañas propias de esa seccion, mas chicas que un nav principal. */
.g2-outer-tabs {
  display: none !important;
}
.g2-pills-sub .nav-link {
  padding: 6px 14px;
  font-size: 11.5px;
}

/* Fila "Filtros" + rango de fechas, copiada de Geti (Pricing/Reviews/etc):
   boton outline + pildora celeste con icono de calendario. 2026-10-01. */
.g2-filtros-btn {
  display: flex;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #00205B;
  border: 1px solid #DDDDDD;
  border-radius: 20px;
  padding: 7px 16px;
  cursor: pointer;
  background: #fff;
  user-select: none;
}
.g2-filtros-btn:hover {
  background: #F4F6F8;
}

/* dcc.DatePickerRange (react-dates) no acepta className en su input interno
   -- se estiliza el contenedor que SI recibe la clase. */
.g2-date-pill {
  display: inline-flex;
}
.g2-date-pill .DateRangePickerInput {
  display: flex;
  align-items: center;
  background: #E6E9EF;
  border: none;
  border-radius: 20px;
  padding: 4px 14px;
  gap: 4px;
}
.g2-date-pill .DateInput {
  background: transparent;
  width: 84px;
}
.g2-date-pill .DateInput_input {
  background: transparent;
  border: none;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #00205B;
  padding: 2px 0;
  text-align: center;
}
.g2-date-pill .DateRangePickerInput_arrow {
  color: #00205B;
}
.g2-date-pill .DateRangePicker_picker {
  z-index: 50;
}
.g2-date-pill .SingleDatePicker_picker {
  z-index: 50;
}

.g2-buscar-input {
  border: 1px solid #DDDDDD;
  border-radius: 20px;
  padding: 7px 16px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 12px;
  color: #333333;
  min-width: 180px;
}
.g2-buscar-input:focus {
  outline: none;
  border-color: #FF5722;
}

/* Selector de periodo del historico (RadioItems) como pildoras, estilo Geti. */
.g2-seg { display: flex; gap: 6px; }
.g2-seg label {
  margin: 0;
  padding: 5px 12px;
  border-radius: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: #00205B;
  cursor: pointer;
  background: #fff;
  border: 1px solid #DDDDDD;
}
.g2-seg label:has(input:checked) { background: #00205B; color: #fff; border-color: #00205B; }
.g2-seg input { display: none; }

/* Alertas por dia: tarjeta plegable (<details>), estilo Geti. */
.g2-alerta-dia {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 21px rgba(22,22,22,.05);
  padding: 16px 20px;
  margin-bottom: 14px;
}
.g2-alerta-resumen { list-style: none; display: flex; align-items: center; cursor: pointer; }
.g2-alerta-resumen::-webkit-details-marker { display: none; }
.g2-alerta-dia[open] .g2-chevron { transform: rotate(180deg); }

/* Tablas cuyo filtro lo maneja un dropdown propio: se oculta la fila de filtros por columna. */
.g2-hide-filter .dash-filter { display: none !important; }
.g2-hide-filter tr:has(.dash-filter) { display: none !important; }

/* Globito rojo de la campana (cantidad de alertas pendientes hoy). */
.g2-campana-n {
  position: absolute; top: -7px; right: -9px;
  min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 8px; background: #C62828; color: #fff;
  font-family: 'Montserrat', Arial, sans-serif; font-weight: 700; font-size: 9px;
  line-height: 15px; text-align: center;
}
.g2-campana-n:empty { display: none; }

/* ---------- Panel lateral de filtros (estilo Geti) ---------- */
.g2-offcanvas .offcanvas-header { border-bottom: 1px solid #E6E9EF; padding: 14px 20px; }
.g2-offcanvas .offcanvas-title { font-family: 'Montserrat', Arial, sans-serif; font-weight: 700; font-size: 15px; color: #00205B; }
.g2-offcanvas .offcanvas-body { padding: 0; display: flex; flex-direction: column; }
.g2-fd { flex: 1; overflow-y: auto; padding: 4px 20px 16px; }
.g2-fsec { border-bottom: 1px solid #F0F2F5; font-family: 'Open Sans', Arial, sans-serif; font-size: 13px; color: #333; }
.g2-fsec > summary { list-style: none; cursor: pointer; padding: 12px 0; display: flex; align-items: center; gap: 8px; }
.g2-fsec > summary::-webkit-details-marker { display: none; }
.g2-fsec > summary::after { content: "\F282"; font-family: "bootstrap-icons"; margin-left: auto; font-size: 11px; color: #888; transition: transform .15s; }
.g2-fsec[open] > summary::after { transform: rotate(180deg); }
.g2-fsec-off { padding: 12px 0; color: #BBB; }
.g2-fsec-body { padding: 0 0 12px; }
.g2-fbadge { background: #FF5722; color: #fff; border-radius: 999px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.g2-fbadge:empty { display: none; }
.g2-f-q { width: 100%; margin-bottom: 6px; border-radius: 6px; }
.g2-f-scroll { max-height: 220px; overflow-y: auto; border: 1px solid #F0F2F5; border-radius: 6px; padding: 4px 8px; }
.g2-f-check .form-check { margin: 4px 0; }
.g2-f-check .form-check-label { font-size: 12.5px; cursor: pointer; }
.g2-f-check .form-check-input:checked { background-color: #FF5722; border-color: #FF5722; }
.g2-f-all { padding: 0 8px; border-bottom: 1px solid #F0F2F5; margin-bottom: 2px; }
.g2-f-lbl { font-size: 11.5px; color: #555; margin: 8px 0 4px; font-weight: 600; }
.g2-fd-foot { display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid #E6E9EF; background: #fff; }
.g2-fd-foot .btn { flex: 1; font-family: 'Montserrat', Arial, sans-serif; font-weight: 600; font-size: 13px; border-radius: 8px; }
.g2-f-aplicar { background: #00205B !important; border-color: #00205B !important; color: #fff !important; }
.g2-f-limpiar { border: 1px solid #DDD !important; color: #555 !important; }
.g2-fd-res .fonly-sub { display: none; }
.g2-fd-sub .fonly-res { display: none; }
.g2-atajos-btn { font-family: 'Open Sans', Arial, sans-serif; font-size: 12px !important; border: 1px solid #DDD !important; background: #fff !important; color: #555 !important; border-radius: 8px !important; height: 36px; }
.g2-filtros-btn .g2-fbadge { vertical-align: middle; }
.g2-offcanvas label, .g2-f-check .form-check-label { color: #333 !important; font-family: 'Open Sans', Arial, sans-serif; }
.g2-f-all .form-check-label { font-weight: 600; color: #555 !important; }
.g2-f-lbl { color: #555 !important; }
