/* Estilo de la app, tomado del lienzo aprobado. */
:root {
  --tinta: #000022;
  --tinta-suave: #3b3e52;
  --gris: #8a8d99;
  --fondo: #f3f5f5;
  --blanco: #ffffff;
  --menu: #000022;
  --menu-texto: #d8dae2;
  --menu-activo: #12123a;
  --acento: #37b39c;
  --verde-texto: #00806c;
  --oscuro: #002d37;
  --oscuro-borde: #1d4a54;
  --tot: #f4f5f5;
  --mb: #e9ebeb;
  --mc: #e2f3ee;
  --cabecera: #b8e3d9;
  --borde: #e6e9e9;
  --bien: #2e7d32;
  --mal: #c62828;
  --bien-oscuro: #8fe0a8;
  --mal-oscuro: #ff9e94;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--fondo); color: var(--tinta);
  font-family: "IBM Plex Sans", "Segoe UI", Arial, sans-serif; font-variant-numeric: tabular-nums; font-size: 13px;
}
a { color: var(--tinta); }
a:hover { color: var(--verde-texto); }
.marco { display: flex; min-height: 100vh; }

/* Menú lateral (igual que el lienzo) */
nav.menu {
  position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow-y: auto; flex: 0 0 216px;
  background: var(--menu); color: #e2e2e2; display: flex; flex-direction: column; font-size: 13px;
}
.menu .logo { padding: 22px 20px 20px; border-bottom: 1px solid #1d1d3d; }
.menu .logo img { display: block; width: 150px; height: auto; filter: brightness(0) invert(1); }
.menu .seccion { padding: 14px 10px 6px; display: flex; flex-direction: column; gap: 1px; }
.menu .titulo { padding: 0 10px 6px; font-size: 10px; letter-spacing: .1em; color: #8a8da2; }
.menu a, .menu .pronto {
  display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; color: var(--menu-texto);
  text-decoration: none; border-left: 2px solid transparent;
}
.menu svg { flex: 0 0 auto; }
.menu .txt { flex: 1; }
.menu a:hover { background: #0d0d33; color: #fff; }
.menu a.activo { background: var(--menu-activo); border-left-color: var(--acento); color: #fff; font-weight: 500; }
.menu .pronto { opacity: .5; cursor: default; }
.menu .fuente { margin-top: auto; padding: 16px 20px; border-top: 1px solid #1d1d3d; font-size: 11px; line-height: 1.5; color: #9a9db0; }
.menu .fuente .claro { color: #d8dae2; }
.menu .usuario { padding: 12px 16px 16px; border-top: 1px solid #1d1d3d; display: flex; align-items: center; gap: 10px; }
.menu .iniciales { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--acento); color: var(--tinta);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.menu .quien { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.menu .quien .nombre { font-size: 12.5px; color: #fff; font-weight: 500; }
.menu .quien .rol { font-size: 11px; color: #9a9db0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu .salir { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 8px;
  border: 1px solid #3a3a5c; border-radius: 3px; color: #d8dae2; font-size: 11.5px; opacity: .6; cursor: default; }

/* Campana de avisos (arriba a la derecha) */
.campana { position: fixed; top: 14px; right: 18px; z-index: 300; }
.campana-boton { position: relative; width: 32px; height: 32px; padding: 0; border: 0; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--tinta); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 34, .25); cursor: pointer; }
.campana-panel { position: absolute; top: 42px; right: 0; width: 360px; max-height: 70vh; overflow-y: auto; background: #fff; color: var(--tinta);
  border: 1px solid #c9cccc; box-shadow: 0 10px 28px rgba(0, 0, 34, .25); border-radius: 4px; font-size: 13px; }
.campana-panel .cab { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid #d5d8d8; }
.campana-panel .cab strong { font-weight: 600; }
.campana-panel .cab span { font-size: 11px; color: var(--gris); }
.campana-panel .vacio { padding: 16px 14px; font-size: 12.5px; color: #55586a; }
.campana-panel .ir { display: block; padding: 10px 14px; font-size: 12px; color: var(--verde-texto); border-top: 1px solid #eceeee; }

/* Contenido: cabecera blanca con título, perímetro y franja gris de filtros */
main { flex: 1 1 auto; min-width: 0; padding: 0 0 48px; }
.barra {
  background: #fff; border-bottom: 1px solid #d5d8d8; padding: 18px 76px 18px 28px; display: flex; flex-direction: column; gap: 14px;
}
.barra .fila1 { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.barra .fila1 > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.barra h1 { font-size: 20px; font-weight: 600; margin: 0; }
.barra .sub { color: #55586a; font-size: 12px; margin-top: 0; }
.chip { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #e6f3f0; color: var(--verde-texto); margin-left: 8px; vertical-align: middle; font-weight: 500; }
.estado-mes { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: 3px; font-size: 12px; font-weight: 600;
  background: #fff3d6; border: 1px solid #f0c36d; color: #7a4f00; }
.estado-mes::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e8a317; }
.estado-mes.cerrado { background: #e6f3f0; border-color: #9fd2c6; color: var(--oscuro); }
.estado-mes.cerrado::before { background: var(--verde-texto); }
.filtros {
  margin: 0; background: #f4f6f6; border: 1px solid #e2e5e5; border-radius: 4px; padding: 10px 14px;
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 12px; color: #55586a;
}
.filtros label { color: #55586a; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.filtros select, .filtros input[type=text], .filtros input[type=number], .filtros input[type=date] {
  font: inherit; font-size: 12px; min-height: 36px; padding: 0 10px; border: 1px solid #c9cccc; border-radius: 3px; background: #fff; color: var(--tinta);
}
/* Desplegable con el aspecto del lienzo: «Mes: Septiembre 2026 ▾» (lo monta app.js a partir de cada select) */
.dd { position: relative; display: inline-block; }
.dd-boton { min-height: 36px; padding: 0 12px; border: 1px solid #c9cccc; background: #fff; border-radius: 3px; font: inherit; font-size: 12px; color: var(--tinta); cursor: pointer; white-space: nowrap; }
.dd-boton strong { font-weight: 600; }
.dd-boton:hover { border-color: #8a8d99; }
.dd-panel { position: absolute; left: 0; top: 42px; z-index: 40; min-width: 190px; max-height: 420px; overflow-y: auto; background: #fff; border: 1px solid #c9cccc;
  box-shadow: 0 6px 18px rgba(0, 0, 34, .12); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.dd.derecha .dd-panel { left: auto; right: 0; min-width: 300px; }
.dd-panel button { text-align: left; font: inherit; font-size: 13px; border: 0; background: #fff; color: var(--tinta); padding: 7px 10px; border-radius: 3px; cursor: pointer; white-space: nowrap; }
.dd-panel button:hover { background: #f3f5f5; }
.dd-panel button.on { background: #e6f3f0; color: var(--oscuro); font-weight: 600; }
.dd-panel button.n1 { padding-left: 24px; }
/* Botones en grupo (Nivel 1-4, BGT/FC…): cuadrados con el activo en verde claro, como el lienzo */
.grupo-botones { display: inline-flex; gap: 4px; }
.grupo-botones a, .grupo-botones button {
  font: inherit; font-size: 12px; min-width: 30px; height: 32px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--oscuro); background: #fff; border: 1px solid #c4c7cc; border-radius: 3px; cursor: pointer;
}
.grupo-botones a:hover, .grupo-botones button:hover { border-color: var(--verde-texto); }
.grupo-botones .on { background: #e6f3f0; border-color: var(--verde-texto); color: var(--oscuro); font-weight: 600; }
.acciones { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; font-size: 13px; }
.boton {
  font: inherit; font-size: 13px; min-height: 36px; padding: 0 12px; border: 1px solid #c9cccc; border-radius: 3px; background: #fff; color: var(--tinta);
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.boton:hover { border-color: #8a8d99; }
.boton.principal { background: var(--tinta); color: #fff; border-color: var(--tinta); font-weight: 500; padding: 0 16px; }
.boton.secundario { border-color: var(--oscuro); color: var(--oscuro); font-weight: 500; }
.caja-tit .boton { min-height: 32px; font-size: 12px; }
.boton[disabled] { opacity: .45; cursor: not-allowed; }
.contenido { padding: 22px 28px 0; display: flex; flex-direction: column; gap: 24px; }
.contenido > .notas { margin-top: -16px; }
.contenido > .aviso { margin-bottom: 0; }

/* Tarjetas KPI: una franja blanca con raya verde arriba */
.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); background: #fff; border: 1px solid #d5d8d8; border-top: 3px solid var(--acento); }
.tarjeta { padding: 14px 18px; border-right: 1px solid #e6e8e8; display: flex; flex-direction: column; gap: 4px; }
.tarjeta:last-child { border-right: 0; }
.tarjeta .et { font-size: 11px; letter-spacing: .05em; color: #55586a; text-transform: uppercase; }
.tarjeta .val { font-size: 22px; font-weight: 500; margin: 0; }
.tarjeta .cmp { font-size: 12px; color: #55586a; }

/* Tablas de P&L */
.caja { background: #fff; border: 1px solid #d5d8d8; overflow-x: auto; }
.caja-tit { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid #d5d8d8; gap: 12px; flex-wrap: wrap; }
.caja-tit .herramientas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 12px; color: #33364a; }
.caja-tit .herramientas label { display: inline-flex; align-items: center; gap: 6px; }
.caja-tit .herramientas .et { color: #55586a; }
.caja-tit input[type=checkbox] { accent-color: var(--verde-texto); width: 15px; height: 15px; margin: 0; }
.caja-tit h2 { font-size: 14px; margin: 0; font-weight: 600; }
table.pl { border-collapse: collapse; width: 100%; font-size: 12px; }
table.pl th, table.pl td { padding: 5px 6px; white-space: nowrap; }
table.pl thead th { text-align: right; font-weight: 600; background: var(--cabecera); color: var(--oscuro); font-size: 11px; padding: 6px; }
table.pl thead tr.grupos th { text-align: center; background: var(--oscuro); color: #fff; font-weight: 500; letter-spacing: .04em; padding: 7px; }
table.pl thead tr.grupos th.sep { border-left-color: var(--oscuro-borde); }
table.pl thead tr.grupos th.vacio, table.pl thead tr.grupos th.desc { background: var(--oscuro); text-align: left; padding-left: 12px; }
table.pl thead th.sep { border-left: 1px solid #9fd2c6; }
table.pl th.hueco, table.pl td.hueco { width: 12px; min-width: 12px; padding: 0 !important; background: var(--fondo) !important; border: 0 !important; }
table.pl th.desc, table.pl td.desc { text-align: left; min-width: 260px; position: sticky; left: 0; background: inherit; z-index: 1; padding-left: 4px; }
table.pl thead th.desc { padding-left: 12px; }
table.pl td { text-align: right; border-bottom: 1px solid #f0f1f1; }
table.pl td.sep, table.pl th.sep { border-left: 1px solid var(--borde); }
table.pl tr { background: #fff; }
table.pl tr.n1 td.desc { padding-left: 24px; color: var(--tinta-suave); }
table.pl tr.n2 td.desc { padding-left: 42px; color: var(--tinta-suave); }
table.pl tr.n3 td.desc { padding-left: 60px; color: var(--tinta-suave); }
table.pl tr.n4 td.desc { padding-left: 78px; color: var(--tinta-suave); }
table.pl tr.n1 td, table.pl tr.n2 td, table.pl tr.n3 td, table.pl tr.n4 td { color: var(--tinta-suave); }
table.pl tr.k td { font-weight: 600; border-bottom-color: #dcdfdf; }
table.pl tr.p td { font-size: 11px; color: var(--verde-texto); border-bottom-color: #fff; }
table.pl tr.tot { background: var(--tot); }
table.pl tr.mb { background: var(--mb); }
table.pl tr.mc { background: var(--mc); }
table.pl tr.oscuro { background: var(--oscuro); }
table.pl tr.oscuro td { color: #fff; border-bottom-color: var(--oscuro); }
table.pl tr.oscuro td.sep { border-left-color: var(--oscuro-borde); }
table.pl td.bien { color: var(--bien); }
table.pl td.mal { color: var(--mal); }
table.pl td.neutro { color: var(--gris); }
table.pl tr.oscuro td.bien { color: var(--bien-oscuro); }
table.pl tr.oscuro td.mal { color: var(--mal-oscuro); }
table.pl tr.oscuro td.neutro { color: #9fb3b8; }
table.pl td.fc, table.pl th.fc { background-color: rgba(55, 179, 156, .08); font-style: italic; }
table.pl tr.oscuro td.fc { background-color: #0a3a45; }
table.pl td.total, table.pl th.total { font-weight: 600; }
.plegar { border: 0; background: transparent; width: 22px; height: 22px; padding: 0; cursor: pointer; color: inherit; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.plegar svg { display: block; transition: transform 120ms; transform: rotate(90deg); }
.plegar.cerrado svg { transform: rotate(0deg); }
.sin-plegar { display: inline-block; width: 22px; }
tr.oculta { display: none; }

.notas { font-size: 11px; color: var(--gris); margin: 10px 2px; line-height: 1.5; }
.aviso { padding: 10px 12px; margin-bottom: 14px; border-left: 3px solid var(--acento); background: #fff; }
.aviso.error { border-left-color: var(--mal); }

/* Selector de perímetro con casillas (P&L mensual) */
details.desplegable { position: relative; }
details.desplegable > summary { list-style: none; cursor: pointer; border: 1px solid #c9cfcf; background: #fff; padding: 4px 8px; font-size: 12px; }
details.desplegable > summary::-webkit-details-marker { display: none; }
details.desplegable .panel {
  position: absolute; z-index: 20; background: #fff; border: 1px solid #c9cfcf; padding: 8px 10px; min-width: 260px; box-shadow: 0 6px 18px rgba(0,0,34,.12);
}
details.desplegable .panel label { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
details.desplegable .panel .n1 { padding-left: 16px; }

/* Pantalla completa */
body.completa nav.menu, body.completa .barra, body.completa .campana, body.completa .tarjetas { display: none; }

/* Formularios (ajustes) */
.form-ajuste { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 10px 16px; padding: 12px; }
.form-ajuste label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--tinta-suave); }
.form-ajuste input, .form-ajuste select { font: inherit; padding: 5px 6px; border: 1px solid #c9cfcf; }
.form-ajuste .ancho { grid-column: 1 / -1; }
.form-ajuste .ayuda { font-size: 11px; color: var(--gris); }
.pestanas { display: flex; gap: 0; margin-bottom: 12px; flex-wrap: wrap; }
.pestanas a { padding: 6px 14px; text-decoration: none; border: 1px solid #c9cfcf; margin-right: -1px; background: #fff; font-size: 12px; }
.pestanas a.on { background: #e6f3f0; color: var(--oscuro); border-color: var(--verde-texto); font-weight: 600; position: relative; z-index: 1; }

@media (max-width: 900px) {
  nav.menu { display: none; }
  .tarjetas { grid-template-columns: repeat(2, 1fr); }
  .form-ajuste { grid-template-columns: 1fr; }
}

/* Detalle de ajustes y comentarios del Excel */
details.detalle-aj > summary { cursor: pointer; color: var(--verde-texto); font-size: 11px; margin-top: 3px; }
table.detalle { border-collapse: collapse; font-size: 11px; margin: 6px 0; background: #fafbfb; }
table.detalle th, table.detalle td { padding: 3px 6px; text-align: right; border-bottom: 1px solid #eef0f0; white-space: nowrap; }
table.detalle th { color: var(--tinta-suave); font-weight: 500; }
.etiqueta { font-size: 10px; background: #eef0f0; padding: 1px 5px; border-radius: 8px; color: var(--tinta-suave); }
ul.comentarios { list-style: none; margin: 6px 0; padding: 0; }
ul.comentarios li { display: flex; gap: 8px; padding: 6px 8px; margin-bottom: 4px; background: #fff8e6; border-left: 3px solid #e3b341; }
ul.comentarios .burbuja { font-size: 13px; }
ul.comentarios .cabecera-com { font-size: 11px; color: var(--tinta-suave); }
ul.comentarios .texto-com { white-space: pre-line; font-size: 12px; color: var(--tinta); margin-top: 2px; }

/* Gráficas */
svg.grafico { width: 100%; height: auto; display: block; }
svg.grafico .eje { font-size: 11px; fill: #55586a; }
svg.grafico .leyenda { font-size: 12px; fill: #33364a; }

/* Calendario laboral */
.meses-cal { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 12px; }
.mes-cal { background: #fff; border: 1px solid var(--borde); padding: 8px; }
.mes-cal .tit-cal { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.mes-cal table { border-collapse: collapse; width: 100%; font-size: 11px; text-align: center; }
.mes-cal th { color: var(--gris); font-weight: 500; }
.mes-cal td { padding: 2px 0; }
.mes-cal td.finde { color: #b0b3bd; }
.mes-cal td.fest { background: #fbe3e3; color: var(--mal); font-weight: 600; cursor: help; }
@media (max-width: 900px) { .meses-cal { grid-template-columns: repeat(2, 1fr); } }

[hidden] { display: none !important; }

.bien-t { color: var(--bien); } .mal-t { color: var(--mal); } .neutro-t { color: var(--gris); }
details.desplegable > summary.dd-boton { display: inline-flex; align-items: center; gap: 4px; padding: 0 12px; border: 1px solid #c9cccc; border-radius: 3px; }
details.desplegable .panel { top: 42px; border-color: #c9cccc; }
table.pl thead tr.grupos th.comparado { background: #33364a; }

/* Igual que el lienzo: cabecera con logo, tabla de P&L a medida y bloque de ajustes */
.titulo-logo { display: flex; align-items: center; gap: 20px; }
.titulo-logo > div:last-child { display: flex; flex-direction: column; gap: 2px; }
.logo-co { display: block; height: 30px; width: auto; }
.separador { width: 1px; height: 36px; background: #d5d8d8; }
table.pl.fija { table-layout: fixed; width: 0; }
table.pl.fija thead th.bloque { white-space: normal; line-height: 1.25; }
table.pl.fija td, table.pl.fija th { overflow: hidden; text-overflow: ellipsis; }
table.pl td.desc { font-weight: 700; color: var(--tinta); }
table.pl tr.n0 td.desc { padding-left: 20px; }
table.pl tr.n1 td.desc { padding-left: 36px; color: var(--tinta-suave); }
table.pl tr.n2 td.desc { padding-left: 52px; color: var(--tinta-suave); }
table.pl tr.n3 td.desc { padding-left: 68px; color: var(--tinta-suave); }
table.pl tr.n4 td.desc { padding-left: 84px; color: var(--tinta-suave); }
table.pl tr.k td.desc, table.pl tr.p td.desc { padding-left: 4px; }
table.pl tr.k td.desc { font-weight: 600; }
table.pl tr.p td.desc { color: var(--verde-texto); }
table.pl tr.oscuro td.desc { color: #fff; }
table.pl tr.k td { font-weight: 600; }
table.pl td.desc .plegar, table.pl td.desc .sin-plegar { margin-right: 2px; }
table.pl td { padding: 5px 6px; }
.pie-caja { margin: 0 !important; padding: 10px 16px 12px; border-top: 1px solid #e6e8e8; }
.caja-tit.sin-borde { border-bottom: 0; }
.sub-caja { font-size: 12px; color: #55586a; }
.enlace-verde { font-size: 12px; color: var(--verde-texto); }
table.ajustes { border-collapse: collapse; width: 100%; min-width: 588px; font-size: 12px; }
table.ajustes thead tr { background: var(--cabecera); color: var(--oscuro); font-size: 11px; }
table.ajustes thead th { text-align: left; padding: 7px 8px; font-weight: 600; }
table.ajustes thead th:first-child { padding-left: 12px; }
table.ajustes th.num, table.ajustes td.num { text-align: right; white-space: nowrap; }
table.ajustes tbody tr { border-top: 1px solid #eceeee; }
table.ajustes tbody th { text-align: left; padding: 6px 12px; font-weight: 400; color: var(--tinta); }
table.ajustes tbody td { padding: 6px 8px; }
table.ajustes .sub-aj { font-size: 11px; color: #55586a; }
table.ajustes .sin-motivo { color: #9a6400; font-style: italic; }
table.ajustes td.total-aj { font-weight: 600; background: rgba(55, 179, 156, .10); }
.tag-aj { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 3px; }
.tag-aj.mc { color: #00664f; background: #e2f3ee; }
.tag-aj.bajo { color: #55586a; background: #eef0f0; }
.barra .fila1 > div.titulo-logo { flex-direction: row; align-items: center; gap: 20px; }
table.pl td.desc { padding-top: 2px; padding-bottom: 2px; }

/* Botones segmentados del lienzo (Ejercicio, Periodo…): el elegido en oscuro */
.et-filtro { font-size: 12px; color: #55586a; margin-right: -10px; }
.segmentado { display: flex; border: 1px solid #c9cccc; border-radius: 3px; overflow: hidden; background: #fff; }
.segmentado a, .segmentado button { min-height: 34px; padding: 0 12px; border: 0; background: #fff; color: var(--tinta); font: inherit; font-size: 13px;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.segmentado a.on, .segmentado button.on { background: var(--tinta); color: #fff; }
.sel-tabla { min-height: 32px; padding: 0 8px; border: 1px solid #c4c7cc; border-radius: 3px; background: #fff; color: var(--oscuro); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.sel-tabla.activo { border-color: var(--verde-texto); background: #e6f3f0; }
.caja-tit .herramientas label.et { color: #55586a; gap: 8px; }
.caja-tit .herramientas h2 { margin-right: 4px; }
details.desplegable.derecha .panel { right: 0; left: auto; }
.barra > .acciones { margin-top: -4px; }

/* P&L agregada: bloques por compañía como el lienzo */
table.pl.agregada thead tr.grupos th.bloque { text-align: center; }
table.pl.agregada thead tr.grupos th.det-centro { background: #24505a; text-align: center; }
table.pl.agregada thead tr.grupos th.det-total { background: #0b3a45; text-align: center; }
table.pl thead tr.grupos th.comparado { background: #3b3f6b; text-align: center; }
table.pl thead th.real-total { background: #a3d8cb; }
table.pl.agregada tr.tras-estructura { background: #aadfd2; }
table.pl.agregada tr.tras-estructura td { color: var(--tinta); }
table.pl.agregada tr.tras-estructura td.bien { color: var(--bien); }
table.pl.agregada tr.tras-estructura td.mal { color: var(--mal); }
table.pl.agregada td.real-total { font-weight: 600; }
.mas { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 6px; border: 1px solid rgba(255,255,255,.5);
  border-radius: 2px; color: #fff; text-decoration: none; font-size: 12px; line-height: 1; }
.mas:hover { background: rgba(255,255,255,.15); color: #fff; }
.segmentado.pequeno a { min-height: 30px; padding: 0 10px; font-size: 12px; }
.barra > .acciones .et { font-size: 12px; color: #55586a; }
.boton.mini { min-height: 28px; padding: 0 10px; font-size: 12px; }
.buscar-div { width: 100%; min-height: 34px; padding: 0 10px; border: 1px solid #c9cccc; border-radius: 3px; font: inherit; font-size: 13px; }
details.desplegable .panel label.div { display: flex; justify-content: space-between; }

/* Integramente: pestañas Analítica/Mensual bajo el título y filtros en la misma línea, sin franja gris */
.pestanas-mini { display: inline-flex; gap: 4px; margin: 2px 0; }
.pestanas-mini a { font-size: 11px; padding: 2px 8px; border: 1px solid #c4c7cc; border-radius: 3px; text-decoration: none; color: var(--oscuro); background: #fff; }
.pestanas-mini a.on { background: #e6f3f0; border-color: var(--verde-texto); font-weight: 600; }
.barra.integramente { flex-direction: row; flex-wrap: wrap; align-items: center; }
.barra.integramente .fila1 { flex: 1 1 auto; }
.barra.integramente .filtros { background: transparent; border: 0; padding: 0; flex: 0 1 auto; }
.barra.integramente > .acciones { margin: 0; }
.dd-boton.fijo { display: inline-flex; align-items: center; gap: 4px; cursor: default; }

/* Seguimiento semanal (lienzo) */
.cabecera-derecha { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-left: auto; }
.cabecera-derecha .linea { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.filtros.sin-marco { background: transparent; border: 0; padding: 0; }
.pastillas { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pastilla { min-height: 32px; padding: 0 10px; border: 1px solid #c4c7cc; background: #fff; color: var(--oscuro); font-size: 12px; border-radius: 3px;
  text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; white-space: nowrap; }
.pastilla:hover { border-color: var(--verde-texto); color: var(--oscuro); }
.pastilla.on { border-color: var(--verde-texto); background: #e6f3f0; font-weight: 600; }
.pastilla.anio { color: #55586a; }
.sep-pastillas { width: 1px; height: 22px; background: #d5d8d8; margin: 0 4px; }
.tarjetas.seis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.tarjeta .cmp { line-height: 1.35; }
.tarjeta .cmp.gris { color: #8a8d99; }
.tarjeta.lfl { background: #f2faf8; }
.barra-ver { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 10px 16px; border-bottom: 1px solid #eceeee; font-size: 12px; }
.barra-ver .et { color: #55586a; margin-right: 6px; }
.barra-ver .explica { margin-left: 10px; color: #55586a; }
table.seg { border-collapse: collapse; font-size: 12px; width: max-content; min-width: 100%; }
table.seg thead tr.g1 { background: var(--oscuro); color: #fff; font-size: 11px; }
table.seg thead tr.g1 th { padding: 7px; font-weight: 500; letter-spacing: .04em; text-align: center; white-space: nowrap; }
table.seg thead tr.g1 th.fijo { text-align: left; padding-left: 12px; }
table.seg thead tr.g1 th.fuerte, table.seg thead tr.g1 th.comparado { font-weight: 600; }
table.seg thead tr.g1 th.comparado { background: #3b3f6b; }
table.seg thead tr.g1 th .mas { border-color: #5d8b94; width: 20px; height: 20px; font-size: 13px; }
table.seg thead tr.g2, table.seg thead tr.g3 { background: var(--cabecera); color: var(--oscuro); font-size: 11px; }
table.seg thead tr.g2 th, table.seg thead tr.g3 th { padding: 6px 8px; font-weight: 600; text-align: right; white-space: nowrap; }
table.seg thead tr.g2 th.fijo, table.seg thead tr.g2 th.izq { text-align: left; padding-left: 12px; }
table.seg thead th.det { background: #cfeee6; }
table.seg .normal { font-weight: 400; }
table.seg th.fijo { position: sticky; left: 0; z-index: 2; background: inherit; min-width: 120px; }
table.seg .hueco { width: 10px; min-width: 10px; padding: 0 !important; background: var(--fondo) !important; border: 0 !important; }
table.seg .hueco.blanco { width: 14px; min-width: 14px; background: #fff !important; }
table.seg tbody tr { border-top: 1px solid #eceeee; background: #fff; }
table.seg tbody th.fijo { text-align: left; padding: 6px 12px; font-weight: 400; white-space: nowrap; background: #fff; }
table.seg tbody td { padding: 6px 8px; white-space: nowrap; }
table.seg td.num { text-align: right; color: var(--tinta); }
table.seg td.semana { color: #55586a; }
table.seg td.suave { color: #33364a; }
table.seg td.total { font-weight: 600; background: rgba(55, 179, 156, .10); }
table.seg td.fuerte { font-weight: 600; }
table.seg tbody tr.elegida, table.seg tbody tr.elegida th.fijo { background: #fff4dc; }
table.seg tbody tr.elegida th.fijo, table.seg tbody tr.elegida td.num { font-weight: 600; }
table.seg tbody tr.estimado, table.seg tbody tr.estimado th.fijo { background: #e6f3f0; }
table.seg tbody tr.estimado { border-top: 1px solid var(--verde-texto); }
table.seg tbody tr.estimado th.fijo, table.seg tbody tr.estimado td.num { font-style: italic; font-weight: 600; }
.leyenda-html { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11px; color: #33364a; align-items: center; }
.leyenda-html span { display: inline-flex; align-items: center; gap: 6px; }
.leyenda-html i.l { display: inline-block; width: 18px; border-top: 2px solid; }
.leyenda-html i.l.discontinua { border-top-style: dashed; }
.leyenda-html i.c { display: inline-block; width: 10px; height: 10px; }
.leyenda-html i.punto-hueco { display: inline-block; width: 8px; height: 8px; border: 2px solid #00806c; border-radius: 50%; background: #fff; }
.pie-caja.sin-raya { border-top: 0; }
.caja-tit .herramientas h2 { white-space: nowrap; }

/* Histórico de ventas (lienzo) */
table.seg thead tr.g1b { background: #0b3a45; color: #fff; font-size: 11px; }
table.seg thead tr.g1b th { padding: 6px 8px; font-weight: 600; text-align: right; white-space: nowrap; }
table.seg thead tr.g1b th .mas { margin: 0 6px 0 0; width: 16px; height: 16px; border-color: #5d8b94; }
table.seg thead tr.g1b th.det { background: #24505a; }
table.seg thead tr.g2 th.tot { background: #a3d8cb; }
table.seg td.tot { font-weight: 600; background: rgba(55, 179, 156, .10); }
table.seg tbody tr.futuro th.fijo, table.seg tbody tr.futuro td.num { color: #a0a3ad; }
table.seg tbody tr.pie, table.seg tbody tr.pie th.fijo { background: #eef0f0; border-top: 2px solid #000022; }
table.seg tbody tr.pie th.fijo, table.seg tbody tr.pie td.num { font-weight: 600; }
table.seg tbody tr.pie-anio, table.seg tbody tr.pie-anio th.fijo { background: #e6f3f0; border-top: 1px solid #9fd2c6; }
table.seg.hist th.fijo { min-width: 160px; }
.comparar-con { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 0 16px 8px; font-size: 11.5px; color: #55586a; }
.casilla { display: inline-flex; align-items: center; gap: 6px; color: #33364a; text-decoration: none; }
.casilla .caja-check { width: 14px; height: 14px; border: 1px solid #8a8d99; border-radius: 2px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; color: #fff; background: #fff; }
.casilla.on .caja-check { background: var(--verde-texto); border-color: var(--verde-texto); }
.casilla i.l { display: inline-block; width: 18px; border-top: 2px solid; }
.casilla i.l.discontinua { border-top-style: dashed; }

/* LFL (lienzo) */
.titulo-bloque { font-size: 14px; font-weight: 600; margin: 0; }
.titulo-caja { font-size: 14px; font-weight: 600; margin: 6px 0 2px; }
table.seg.lfl tbody tr.pie, table.seg.lfl tbody tr.pie th.fijo { border-top: 2px solid #000022; }
.puente { padding: 18px 16px 14px; border-top: 1px solid #e6e8e8; margin-top: 10px; }
.caja-gris { background: #f4f6f6; border: 1px solid #e2e5e5; border-radius: 4px; padding: 10px 12px; margin: 10px 0 12px; display: flex; flex-direction: column; gap: 8px; }
.fila-periodo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12px; color: #55586a; }
.fila-periodo strong { color: var(--tinta); font-weight: 600; }
.fila-periodo label { display: inline-flex; align-items: center; gap: 6px; }
.mini-tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.mini-tarjetas > div { border: 1px solid #e6e8e8; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.mini-tarjetas .et { font-size: 10.5px; letter-spacing: .05em; color: #55586a; }
.mini-tarjetas .val { font-size: 18px; font-weight: 500; }
.mini-tarjetas .cmp { font-size: 11px; color: #55586a; }
.lista-reglas { list-style: none; margin: 0; padding: 4px 16px 8px; }
.lista-reglas li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #eceeee; font-size: 12px; }
.lista-reglas li strong { font-weight: 600; }
.lista-reglas .texto { color: #55586a; margin-top: 2px; }
.tag-regla { flex: 0 0 auto; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 3px; background: #e6f3f0; color: #00664f; margin-top: 1px; }
.tag-regla.apertura { background: #fff3d6; color: #7a4f00; }
.tag-regla.traspaso { background: #e7e8f3; color: #3b3f6b; }
.tag-regla.normalizacion { background: #eef0f0; color: #33364a; }
.tag-regla.excepcion, .tag-regla.efecto { background: #fbe3e3; color: #a32020; }

/* Histórico agregado (lienzo) */
.aviso.aviso-ambar { background: #fff3d6; border: 1px solid #f0c36d; border-left-width: 1px; color: #7a4f00; border-radius: 3px; font-size: 12px; }
.casilla-cab { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #33364a; }
.casilla-cab input { accent-color: var(--verde-texto); }
table.seg tbody tr.fila-fc th.fijo, table.seg tbody tr.fila-fc td.num { font-style: italic; color: #55586a; }
table.seg tbody tr.fila-fc { background: #fbfaf5; }

/* Ajustes analíticos (lienzo) */
.tarjetas.en-caja { border-left: 0; border-right: 0; border-bottom: 0; }
table.seg.conciliacion { width: 100%; }
table.seg.conciliacion thead tr.g1 th { text-align: right; }
table.seg.conciliacion thead tr.g1 th.fijo { text-align: left; }
table.seg.conciliacion th.fijo { min-width: 420px; max-width: 520px; white-space: normal; }
table.seg.conciliacion tr.clave, table.seg.conciliacion tr.clave th.fijo { background: #eef0f0; }
table.seg.conciliacion tr.clave th.fijo, table.seg.conciliacion tr.clave td { font-weight: 600; }
table.seg.conciliacion tr.banda th.fijo { background: #f4f6f6; font-size: 10.5px; letter-spacing: .06em; color: #55586a; font-weight: 600; padding: 6px 12px; }
table.seg.conciliacion tr.segun, table.seg.conciliacion tr.segun th.fijo { background: #e6f3f0; }
table.seg.conciliacion tr.segun th.fijo, table.seg.conciliacion tr.segun td { font-weight: 600; }
table.seg.conciliacion tr.ajustado, table.seg.conciliacion tr.ajustado th.fijo { background: var(--oscuro); color: #fff; }
table.seg.conciliacion tr.ajustado th.fijo, table.seg.conciliacion tr.ajustado td { font-weight: 600; color: #fff; }
table.seg.conciliacion tr.ajustado td.tot { background: #0b3a45; }
table.seg.conciliacion tr.aj th.fijo { padding-left: 24px; font-weight: 400; }
table.seg.conciliacion th.vacio { padding-left: 24px; color: #8a8d99; font-weight: 400; }
.desc-aj { display: flex; flex-direction: column; gap: 2px; }
.desc-aj .sub-aj { font-size: 11px; color: #55586a; }
.desc-aj .sub-aj.ambar { color: #9a6400; }

/* Perímetro LFL (lienzo) */
.regla-general { font-size: 12px; color: #33364a; display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.caja-num { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 30px; border: 1px solid #c9cccc; border-radius: 3px; background: #fff; font-weight: 600; }
.pestanas-co { display: flex; gap: 0; border-bottom: 1px solid #d5d8d8; margin: 0 -28px -18px; padding: 0 28px; }
.pestanas-co a { padding: 10px 18px; text-decoration: none; color: #55586a; font-size: 13px; border-bottom: 2px solid transparent; }
.pestanas-co a.on { color: var(--tinta); font-weight: 600; border-bottom-color: var(--verde-texto); }
.pestanas-co .mini { font-size: 10px; padding: 1px 6px; border-radius: 3px; background: #eef0f0; color: #55586a; margin-left: 4px; font-weight: 500; }
.niveles { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 10px; padding: 12px 16px 16px; }
.nivel { border: 1px solid #d5d8d8; border-radius: 3px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.nivel.activo { border-color: var(--verde-texto); background: #f2faf8; }
.nivel.apagado { color: #a0a3ad; }
.nivel .cab { display: flex; align-items: center; gap: 8px; }
.nivel .radio { width: 12px; height: 12px; border: 1px solid #8a8d99; border-radius: 50%; display: inline-block; }
.nivel .radio.on { border: 4px solid var(--verde-texto); }
.nivel .txt { color: #55586a; font-size: 11.5px; }
.nivel.apagado .txt { color: #a0a3ad; }
.tag-nivel { align-self: flex-start; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 3px; background: #eef0f0; color: #33364a; }
.tag-nivel.activo { background: var(--verde-texto); color: #fff; }
.tag-nivel.no { background: #fff3d6; color: #7a4f00; }
table.seg.ancho-total { width: 100%; }
table.seg.ancho-total td, table.seg.ancho-total th { text-align: left; }
.pildora { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 3px; }
.pildora.si { background: #e6f3f0; color: #00664f; }
.pildora.no { background: #fbe3e3; color: #a32020; }
.interruptor { list-style: none; cursor: pointer; display: inline-block; width: 30px; height: 16px; border-radius: 8px; background: #c4c7cc; position: relative; }
.interruptor::-webkit-details-marker { display: none; }
.interruptor span { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: left .15s; }
.interruptor.on { background: var(--verde-texto); }
.interruptor.on span { left: 16px; }
.banda-lista { font-size: 10.5px; letter-spacing: .06em; color: #55586a; font-weight: 600; padding: 8px 16px; background: #f4f6f6; border-top: 1px solid #eceeee; }
.reglas-num { margin: 0; padding: 4px 16px 8px 40px; font-size: 12px; }
.reglas-num li { padding: 6px 0; border-bottom: 1px solid #eceeee; }
.reglas-num li div { color: #55586a; margin-top: 2px; }
td.suave, li.suave { color: #8a8d99; }
details.desplegable > summary.interruptor { background: #c4c7cc; border: 0; padding: 0; width: 30px; height: 16px; border-radius: 8px; }
details.desplegable > summary.interruptor.on { background: var(--verde-texto); }

/* Calendario laboral (lienzo) */
.chip-cal { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 12px; background: #e6f3f0; border-radius: 3px; font-size: 12px; color: var(--oscuro); }
.cal-columnas { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.cal-izq { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cal-der { display: flex; flex-direction: column; gap: 18px; }
.mes-grande { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 12px 16px 4px; }
.mes-grande .dia-sem { text-align: center; font-size: 11px; color: #55586a; padding-bottom: 4px; }
.mes-grande .dia { min-height: 54px; border: 1px solid #d5d8d8; border-radius: 3px; padding: 4px 6px; font-size: 12px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; background: #fff; }
.mes-grande .dia:hover { border-color: var(--verde-texto); }
.mes-grande .dia .num { font-weight: 600; }
.mes-grande .dia .nom { font-size: 9.5px; color: #7a4f00; line-height: 1.2; }
.mes-grande .dia.finde { background: #eef0f0; color: #a0a3ad; cursor: default; border-color: #e2e5e5; }
.mes-grande .dia.finde .nom { color: #a0a3ad; }
.mes-grande .dia.fest { background: #fff3d6; border-color: #f0c36d; }
.mes-grande .dia.vacio { border: 0; cursor: default; background: transparent; }
.lista-festivos { list-style: none; margin: 0; padding: 4px 0; font-size: 11.5px; }
.lista-festivos li { display: grid; grid-template-columns: 76px 1fr 20px; gap: 8px; padding: 6px 14px; border-bottom: 1px solid #eceeee; align-items: center; }
.lista-festivos .fecha { color: var(--tinta); }
.lista-festivos .nombre { color: #55586a; }
.lista-festivos li.local .nombre { color: #9a6400; }
.lista-festivos .quitar { border: 0; background: transparent; color: #a0a3ad; cursor: pointer; font-size: 14px; padding: 0; }
.lista-festivos .quitar:hover { color: var(--mal); }
.form-mini { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px 14px; }
.form-mini input, .form-mini select { font: inherit; font-size: 12px; min-height: 30px; padding: 0 8px; border: 1px solid #c9cccc; border-radius: 3px; }
.caja.donde { padding: 12px 14px; font-size: 12px; }
.caja.donde .et { font-size: 10.5px; letter-spacing: .06em; color: #55586a; font-weight: 600; margin-bottom: 6px; }
.caja.donde ul { margin: 0; padding-left: 16px; color: #33364a; }
.caja.donde li { margin: 4px 0; }
@media (max-width: 1100px) { .cal-columnas { grid-template-columns: 1fr; } }

/* KPIs asistenciales (lienzo) */
table.seg.kpi { width: 100%; }
table.seg.kpi th.fijo { min-width: 220px; }
table.seg.kpi .medida { font-size: 10.5px; color: #8a8d99; font-weight: 400; }
.chip-gap { display: inline-block; min-width: 46px; padding: 2px 8px; border-radius: 3px; font-weight: 600; text-align: right; }
.chip-gap.lejos { background: #fde8e6; color: #c62828; }
.chip-gap.cerca { background: #fff3d6; color: #9a6400; }
.chip-gap.ok { background: #e6f3f0; color: #2e7d32; }
.kpi-columnas { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.kpi-der { display: flex; flex-direction: column; gap: 18px; }
.escala { display: inline-flex; align-items: center; gap: 2px; font-size: 10.5px; color: #55586a; }
.escala i { display: inline-block; width: 14px; height: 10px; }
.escala span { margin: 0 4px; }
.c1 { background: #f2f6f6; } .c2 { background: #d3ede7; } .c3 { background: #9fd8ca; } .c4 { background: #4fb9a2; color: #fff; } .c5 { background: #00806c; color: #fff; }
table.mapa-calor { border-collapse: separate; border-spacing: 3px; width: 100%; font-size: 11.5px; padding: 6px 10px 10px; }
table.mapa-calor th { font-weight: 600; color: #55586a; font-size: 11px; text-align: center; }
table.mapa-calor th.izq { text-align: left; color: var(--tinta); white-space: nowrap; padding-right: 8px; }
table.mapa-calor td { text-align: center; padding: 5px 4px; border-radius: 2px; color: var(--oscuro); }
table.mapa-calor td.c4, table.mapa-calor td.c5 { color: #fff; }
table.mapa-calor td.elegido { outline: 2px solid #000022; outline-offset: -2px; font-weight: 700; }
table.mapa-calor tr.total th, table.mapa-calor tr.total td { font-weight: 700; }
table.adm { width: 100%; border-collapse: collapse; font-size: 12px; }
table.adm th { text-align: left; font-weight: 400; padding: 7px 14px; border-bottom: 1px solid #eceeee; }
table.adm td { padding: 7px 8px; border-bottom: 1px solid #eceeee; white-space: nowrap; }
table.adm td.num { text-align: right; font-weight: 600; }
table.adm td.suave { color: #8a8d99; font-size: 11px; }
.lista-revisar { list-style: none; margin: 0; padding: 4px 14px 10px; font-size: 12px; }
.lista-revisar li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid #eceeee; }
.lista-revisar li div div { color: #55586a; margin-top: 2px; }
.tag-revisar { flex: 0 0 auto; font-size: 10.5px; font-weight: 700; color: #c2611f; letter-spacing: .04em; }
@media (max-width: 1200px) { .kpi-columnas { grid-template-columns: 1fr; } }
table.seg td.num.mal-t { color: var(--mal); } table.seg td.num.bien-t { color: var(--bien); } table.seg td.num.neutro-t { color: var(--gris); }
table.seg.kpi thead tr.g2 th { white-space: normal; vertical-align: bottom; }
table.seg.kpi th.fijo { min-width: 190px; }

/* Capacidad por área (lienzo) */
table.seg.capacidad td.num, table.seg.capacidad th { text-align: right; }
table.seg.capacidad th.izq, table.seg.capacidad th.fijo { text-align: left; }
.celda-num { width: 70px; min-height: 30px; text-align: center; font: inherit; font-size: 12px; border: 1px solid #c9cccc; border-radius: 3px; }
.celda-num.corta { width: 46px; }
.pie-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 12px 16px; border-top: 1px solid #eceeee; font-size: 12px; color: #55586a; }
.pie-form label { display: flex; flex-direction: column; gap: 4px; }
.pie-form input, .pie-form select { font: inherit; min-height: 34px; padding: 0 8px; border: 1px solid #c9cccc; border-radius: 3px; }
.tag-ajcap { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 3px; }
.tag-ajcap.obras { background: #fff3d6; color: #7a4f00; }
.tag-ajcap.cambio-de-uso { background: #e2f3ee; color: #00664f; }
.tag-ajcap.cierre-puntual { background: #fdecea; color: #a12a22; }
table.seg tr.anulado td { color: #a0a3ad; text-decoration: line-through; }

/* Bloque de KPIs en las P&L */
table.pl.kpis-pl thead th { background: var(--cabecera); }
table.pl.kpis-pl td.desc { font-weight: 400; padding-left: 4px; }
table.pl.kpis-pl tr.kpi-dest td { color: var(--verde-texto); font-weight: 600; }
table.pl.kpis-pl tr.kpi-dest td.desc { color: var(--tinta); }
table.pl.kpis-pl tr.kpi-hijo td.desc { padding-left: 26px; color: var(--tinta-suave); }
table.pl.kpis-pl td.suave { color: #8a8d99; }

/* Acceso (lienzo) */
body.pagina-acceso { background: #000022; min-height: 100vh; }
.acceso { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 24px 16px; }
.logo-acceso { width: 190px; filter: brightness(0) invert(1); }
.tarjeta-acceso { background: #fff; border-radius: 6px; padding: 26px 28px; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.tarjeta-acceso h1 { font-size: 18px; margin: 0; }
.tarjeta-acceso .sub { color: #55586a; font-size: 12px; margin-bottom: 8px; }
.tarjeta-acceso form { display: flex; flex-direction: column; gap: 12px; }
.tarjeta-acceso label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: #33364a; font-weight: 600; }
.tarjeta-acceso input[type=email], .tarjeta-acceso input[type=password], .tarjeta-acceso input[type=text], .tarjeta-acceso input:not([type]) {
  font: inherit; font-weight: 400; font-size: 13px; min-height: 40px; padding: 0 12px; border: 1px solid #c9cccc; border-radius: 4px; width: 100%; }
.campo-clave { position: relative; display: block; }
.campo-clave .mostrar { position: absolute; right: 6px; top: 6px; border: 0; background: transparent; color: var(--verde-texto); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; padding: 6px; }
.fila-acceso { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-size: 12px; }
.fila-acceso .recordar { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }
.fila-acceso .recordar input { accent-color: var(--verde-texto); }
.olvido summary { color: var(--verde-texto); cursor: pointer; list-style: none; }
.olvido div { font-size: 11.5px; color: #55586a; margin-top: 4px; max-width: 180px; }
.boton-acceso { display: block; text-align: center; min-height: 42px; line-height: 42px; border: 0; border-radius: 4px; background: var(--verde-texto); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; margin-top: 4px; }
.boton-acceso:hover { background: #006b5a; color: #fff; }
.nota-acceso { font-size: 11px; color: #8a8d99; text-align: center; margin: 10px 0 0; }
.aviso-acceso { font-size: 12px; padding: 8px 10px; border-radius: 4px; background: #e6f3f0; color: #00664f; }
.aviso-acceso.error { background: #fde8e6; color: #a32020; }
.pie-acceso { font-size: 11px; color: #8a8da2; }
.menu a.salir.activo-salir { opacity: 1; cursor: pointer; text-decoration: none; }
.menu a.salir.activo-salir:hover { border-color: #8a8da2; color: #fff; }
/* Usuarios */
.pildora-permiso { display: inline-block; min-width: 54px; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 3px; }
.pildora-permiso.editar { background: #e6f3f0; color: #00664f; }
.pildora-permiso.ver { background: #eef0f0; color: #33364a; }
.pildora-estado { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 3px; }
.pildora-estado.activo { background: #e6f3f0; color: #00664f; }
.pildora-estado.por-invitar { background: #fff3d6; color: #7a4f00; }
.pildora-estado.desactivado { background: #eef0f0; color: #8a8d99; }
.perimetro-inv { display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 400; color: #33364a; margin-top: 4px; }
.perimetro-inv label { flex-direction: row !important; align-items: center; gap: 4px !important; }
.enlace-invitacion { display: flex; flex-direction: column; gap: 6px; }
.enlace-invitacion .copiar { display: flex; gap: 6px; }
.enlace-invitacion .copiar input { flex: 1; font: inherit; font-size: 12px; min-height: 32px; padding: 0 8px; border: 1px solid #f0c36d; border-radius: 3px; }

/* Portal de reporte (lienzo) */
.menu.portal .sub-logo { font-size: 10px; letter-spacing: .12em; color: #8a8da2; margin-top: 8px; }
.menu .contador { font-size: 11px; color: #e8a317; font-weight: 700; }
.portal-contenido { max-width: 1120px; }
.tarjeta-pendiente { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-left: 4px solid #e8a317; }
.tarjeta-pendiente.enviado { border-left-color: var(--verde-texto); }
.tarjeta-pendiente h2 { margin: 2px 0; font-size: 18px; }
.et-pend { font-size: 10.5px; letter-spacing: .08em; font-weight: 700; color: #9a6400; }
.tarjeta-pendiente.enviado .et-pend { color: var(--verde-texto); }
.boton-verde { display: inline-flex; align-items: center; min-height: 40px; padding: 0 20px; background: var(--verde-texto); color: #fff; border-radius: 3px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.boton-verde:hover { background: #006b5a; color: #fff; }
.cifras-portal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 4px 16px 12px; }
.cifras-portal .et { display: block; font-size: 12px; color: #55586a; }
.cifras-portal .val { display: block; font-size: 24px; font-weight: 600; }
.barra-avance { position: relative; height: 10px; margin: 4px 16px 10px; background: #e6e8e8; border-radius: 5px; }
.barra-avance .relleno, .mini-avance .relleno { position: absolute; left: 0; top: 0; bottom: 0; background: var(--acento); border-radius: 5px; }
.barra-avance .marca, .mini-avance .marca { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #000022; }
.mini-avance { position: relative; height: 10px; width: 100%; min-width: 140px; background: #eef0f0; }
.mini-avance .relleno { background: #00806c; border-radius: 0; }
.mini-avance .marca { top: -3px; bottom: -3px; }
table.seg.reportar td.indent { padding-left: 24px; }
table.seg.reportar tr.subtotal th, table.seg.reportar tr.subtotal td { background: #f4f6f6; font-weight: 600; }
.celda-importe { width: 110px; min-height: 32px; text-align: right; font: inherit; font-size: 12.5px; border: 1px solid #c9cccc; border-radius: 3px; padding: 0 8px; }
.desglose { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 10px 16px; padding: 10px 14px; background: #f2faf8; border: 1px dashed #9fd2c6; border-radius: 3px; font-size: 12px; }
.desglose > div { flex: 1 1 320px; }
.desglose .sub { color: #55586a; }
.desglose label { display: inline-flex; align-items: center; gap: 8px; color: #55586a; }
.pie-reporte { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; padding: 10px 16px 14px; border-top: 1px solid #eceeee; }
.pie-reporte .comentario { flex: 1 1 360px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #55586a; }
.pie-reporte textarea { font: inherit; font-size: 12.5px; border: 1px solid #c9cccc; border-radius: 3px; padding: 6px 8px; }
.acciones-reporte { display: flex; align-items: center; gap: 10px; }
.et-informadas { font-size: 11.5px; font-weight: 600; }
.ambar-t { color: #9a6400; }
.confirmacion { text-align: center; padding: 26px 20px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.confirmacion .check { width: 46px; height: 46px; border-radius: 50%; background: #e6f3f0; color: var(--verde-texto); font-size: 24px; display: flex; align-items: center; justify-content: center; }
.confirmacion .cifras-portal { width: 100%; max-width: 640px; }
.pildora-estado.validado { background: #e6f3f0; color: #00664f; }
.pildora-estado.pendiente { background: #fff3d6; color: #7a4f00; }
.pildora-estado.borrador { background: #eef0f0; color: #33364a; }
.pildora-estado.devuelto, .pildora-estado.correccion { background: #fde8e6; color: #a32020; }

/* Portal de KPIs */
.ancho-kpis { max-width: none; }
.etiqueta-estado { font-size: 11.5px; font-weight: 600; padding: 6px 12px; border-radius: 3px; background: #fff3d6; color: #7a4f00; border: 1px solid #f0d9a0; }
.etiqueta-estado.pendiente, .etiqueta-estado.validado { background: #e6f3f0; color: #00664f; border-color: #b8e3d9; }
.et-pend.gris { color: #55586a; letter-spacing: .05em; font-size: 11px; }
.boton.alto { min-height: 40px; }
.seccion-et { font-size: 12px; font-weight: 600; color: #55586a; letter-spacing: .04em; margin: 4px 0 -8px; }
.tarjeta .cmp.fuerte { font-weight: 600; font-size: 11.5px; }
.rejilla-kpi-inicio { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .rejilla-kpi-inicio { grid-template-columns: 1fr; } }
.barras-ocup { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; align-items: end; height: 180px; margin: 18px 18px 0; }
.barras-ocup .col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.barras-ocup .v { font-size: 10.5px; font-weight: 600; color: #33364a; }
.barras-ocup .b { width: 62%; background: #37b39c; min-height: 2px; }
.barras-ocup .b.sel { background: #00806c; outline: 2px solid #000022; }
.barras-ocup .b.pend { background: #a8dccf; }
.barras-ocup .linea-obj { position: absolute; left: 0; right: 0; border-top: 2px dashed #002d37; z-index: 1; pointer-events: none; }
.barras-ocup .linea-obj span { position: absolute; right: 0; top: -17px; font-size: 10.5px; font-weight: 600; color: #002d37; }
.ejes-ocup { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin: 6px 18px 14px; font-size: 11px; color: #55586a; text-align: center; }
.ejes-ocup .fuerte { font-weight: 600; color: #000022; }
.focos { padding-bottom: 10px; }
.foco { margin: 0 18px 8px; padding: 10px 12px; border-left: 3px solid #d5d8d8; background: #f6f7f7; display: flex; flex-direction: column; gap: 3px; }
.foco .cab { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.foco .cab strong { font-weight: 600; }
.foco .cab span { font-weight: 600; font-size: 14px; }
.foco .sub { font-size: 12px; color: #55586a; }
.foco.rojo { border-left-color: #c62828; background: #fdf1f0; }
.foco.verde { border-left-color: #2e7d32; background: #eef7f0; }
.foco.ambar { border-left-color: #e8a317; background: #fff8e8; }
.foco.gris { border-left-color: #37b39c; background: #f2faf8; }
.areas-ocup { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 24px; padding: 4px 18px 16px; }
.areas-ocup .area { display: grid; grid-template-columns: 140px minmax(0, 1fr) 54px 74px; align-items: center; gap: 8px; font-size: 12.5px; }
.areas-ocup .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.areas-ocup .pista { position: relative; height: 12px; background: #eef0f0; border-radius: 2px; }
.areas-ocup .relleno { position: absolute; left: 0; top: 0; bottom: 0; background: #e57373; border-radius: 2px; }
.areas-ocup .relleno.ok { background: #37b39c; }
.areas-ocup .marca { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #000022; }
.areas-ocup .v { text-align: right; font-weight: 600; }
.areas-ocup .d { font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.tabla-desliza { overflow-x: auto; }
table.kpis-mes { border-collapse: collapse; width: 100%; min-width: 1350px; font-size: 12px; }
table.kpis-mes thead th { background: #002d37; color: #fff; font-size: 11.5px; font-weight: 600; text-align: right; padding: 8px 6px; white-space: nowrap; }
table.kpis-mes thead th.actual { background: #00806c; }
table.kpis-mes thead th.fijo { position: sticky; left: 0; z-index: 2; text-align: left; padding: 8px 14px; min-width: 290px; }
table.kpis-mes thead th.obj, table.kpis-mes td.obj { text-align: right; padding-right: 14px; }
table.kpis-mes tbody tr { border-top: 1px solid #e6e8e8; }
table.kpis-mes tbody th.fijo { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; padding: 5px 14px 5px 22px; font-weight: 400; color: #33364a; }
table.kpis-mes tbody th.fijo.fuerte { font-weight: 600; }
table.kpis-mes tr.sec th, table.kpis-mes tr.sec td { background: #b8e3d9; color: #002d37; font-weight: 600; font-size: 11.5px; letter-spacing: .03em; padding: 6px 14px; }
table.kpis-mes tr.sec { border-top: 1px solid #9fd2c6; }
table.kpis-mes td { text-align: right; padding: 3px 6px; white-space: nowrap; height: 30px; }
table.kpis-mes td.calc { background: #f4f5f5; color: #33364a; }
table.kpis-mes tr.porcentaje td.calc { font-weight: 600; }
table.kpis-mes td.futuro { background: #fafafa; }
table.kpis-mes td.actual-in { background: #f2faf8; }
table.kpis-mes td.obj { color: #55586a; }
.celda-kpi { width: 74px; min-height: 30px; padding: 0 6px; border: 1px solid #9fd2c6; background: #fff; border-radius: 3px; font: inherit; font-size: 12px; text-align: right; box-sizing: border-box; }
.celda-kpi.vacia { border-color: #c9cccc; }
.leyenda-kpis { display: flex; flex-wrap: wrap; gap: 16px; padding: 10px 14px; border-top: 1px solid #e6e8e8; font-size: 11.5px; color: #55586a; }
.leyenda-kpis > span { display: inline-flex; align-items: center; gap: 6px; }
.leyenda-kpis .mu { width: 14px; height: 12px; border: 1px solid #d5d8d8; }
.leyenda-kpis .mu.blanco { background: #fff; border-color: #9fd2c6; }
.leyenda-kpis .mu.gris { background: #f4f5f5; }
.pie-reporte.suelto { border-top: 0; padding: 0; }

/* Campana con avisos */
.campana-n { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 8px; background: #e8a317; color: #000022; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.aviso-campana { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #eceeee; text-decoration: none; color: #000022; }
.aviso-campana:hover { background: #f6f7f7; }
.aviso-campana .punto { flex: 0 0 auto; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #e8a317; }
.aviso-campana > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.aviso-campana strong { font-size: 12.5px; font-weight: 600; }
.aviso-campana .d { font-size: 11.5px; color: #55586a; line-height: 1.4; }

/* Bandeja de validación */
.pestanas-bandeja { display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; margin-top: 14px; }
.pestanas-bandeja .pb { min-height: 34px; padding: 0 14px; border: 1px solid #c4c7cc; background: #fff; color: #002d37; border-radius: 3px; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.pestanas-bandeja .pb.on { border-color: #00806c; background: #e6f3f0; font-weight: 600; }
.pestanas-bandeja .cnt { min-width: 18px; padding: 0 6px; border-radius: 9px; font-size: 11px; font-weight: 600; background: #e2e4e4; color: #55586a; text-align: center; }
.pestanas-bandeja .cnt.alerta { background: #e8a317; color: #fff; }
.rejilla-bandeja { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .rejilla-bandeja { grid-template-columns: 1fr; } }
.lista-bandeja { display: flex; flex-direction: column; max-height: calc(100vh - 190px); overflow-y: auto; }
.lista-bandeja .nada { margin: 0; padding: 18px; font-size: 13px; color: #8a8d99; }
.item-b { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; border-bottom: 1px solid #eceeee; border-left: 3px solid transparent; background: #fff; color: #000022; font-size: 13px; text-decoration: none; }
.item-b:hover { background: #f8faf9; }
.item-b.on { border-left-color: #00806c; background: #f2faf8; }
.item-b .fila-it { display: flex; justify-content: space-between; gap: 8px; width: 100%; }
.item-b strong { font-weight: 600; }
.item-b .que { font-size: 12px; color: #33364a; }
.item-b .cuando { font-size: 11px; color: #8a8d99; }
.item-b .fuerte { font-weight: 600; }
.tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 3px; white-space: nowrap; }
.tag.pend { color: #7a4f00; background: #fff3d6; }
.tag.val { color: #00664f; background: #e2f3ee; }
.tag.dev { color: #a32020; background: #fde8e6; }
.col-detalle { display: flex; flex-direction: column; gap: 16px; }
.detalle-b { border-top: 3px solid #37b39c; display: flex; flex-direction: column; overflow: visible; }
.cab-b { padding: 14px 20px; border-bottom: 1px solid #e6e8e8; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.cab-b .titulo-logo { display: flex; align-items: center; gap: 14px; }
.cab-b .logo-b { display: block; height: 26px; width: auto; }
.cab-b .tit { display: block; font-size: 15px; font-weight: 600; }
.cab-b .sub, .botones-b .sub { display: block; font-size: 12px; color: #55586a; }
.bks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid #e6e8e8; }
.bk { padding: 12px 20px; border-right: 1px solid #eceeee; display: flex; flex-direction: column; gap: 2px; }
.bk:last-child { border-right: 0; }
.bk .et { font-size: 11px; letter-spacing: .05em; color: #55586a; }
.bk .v { font-size: 18px; font-weight: 500; }
.bk .d { font-size: 11.5px; color: #55586a; }
.avisos-b { padding: 12px 20px; border-bottom: 1px solid #e6e8e8; display: flex; flex-direction: column; gap: 6px; }
.avisos-b .et, .tit-tabla-b .et, .corregir-b .et { font-size: 11px; letter-spacing: .05em; color: #55586a; }
.avisos-b .w { font-size: 12.5px; padding: 6px 10px; border-left: 3px solid; }
.avisos-b .w strong { font-weight: 600; }
.avisos-b .w.r { border-color: #c62828; background: #fde8e6; color: #a32020; }
.avisos-b .w.a { border-color: #e8a317; background: #fff8e6; color: #7a4f00; }
.avisos-b .w.ok { border-color: #37b39c; background: #e6f3f0; color: #00664f; }
.tit-tabla-b { padding: 10px 20px 4px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.boton.peq { min-height: 28px; padding: 0 10px; font-size: 12px; }
table.tabla-b { border-collapse: collapse; width: 100%; font-size: 12px; }
table.tabla-b thead tr.g1 th { background: #002d37; color: #fff; font-size: 11px; padding: 6px 8px; font-weight: 600; text-align: right; white-space: nowrap; }
table.tabla-b thead tr.g1 th.grupo { text-align: left; border-left: 1px solid #1d4a54; letter-spacing: .03em; }
table.tabla-b thead tr.g1 th.fijo { font-weight: 500; text-align: left; padding: 6px 12px; width: 190px; }
table.tabla-b thead tr.g2 th { background: #b8e3d9; color: #002d37; font-size: 11px; padding: 6px 8px; font-weight: 600; text-align: right; white-space: nowrap; }
table.tabla-b thead tr.g2 th.tot2 { background: #a3d8cb; padding: 6px 12px; }
table.tabla-b th.hueco, table.tabla-b td.hueco { width: 8px; min-width: 8px; padding: 0 !important; background: #f3f5f5 !important; border-top: hidden; border-bottom: hidden; }
table.tabla-b th.fijo { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; padding: 6px 12px; font-weight: 400; white-space: nowrap; }
table.tabla-b thead th.fijo { z-index: 2; }
table.tabla-b thead tr.g1 th.fijo { background: #002d37; }
table.tabla-b thead tr.g2 th.fijo { background: #b8e3d9; }
table.tabla-b tbody tr { border-top: 1px solid #eceeee; }
table.tabla-b td { padding: 6px 8px; text-align: right; white-space: nowrap; }
table.tabla-b td.fuerte, table.tabla-b td.tot { font-weight: 600; }
table.tabla-b td.tot { background: #eef7f5; padding-right: 12px; }
table.tabla-b tr.sec th, table.tabla-b tr.sec td { background: #f4f5f5; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; color: #55586a; padding: 5px 12px; }
table.tabla-b tr.actual th, table.tabla-b tr.actual td:not(.hueco) { background: #fdf3dc; font-weight: 600; }
table.tabla-b tr.fc { border-top: 1px solid #000022; }
table.tabla-b tr.fc th, table.tabla-b tr.fc td { color: #55586a; }
table.tabla-b tr.pfc th, table.tabla-b tr.pfc td { font-weight: 600; }
table.tabla-b .det { display: none; }
table.tabla-b .det.visible { display: table-cell; }
table.tabla-b td.aviso { background: #fff1c9 !important; }
table.tabla-b .mas { width: 18px; height: 18px; margin-right: 6px; padding: 0; border: 1px solid #5d8a93; background: transparent; color: #fff; border-radius: 3px; font: inherit; font-size: 12px; line-height: 1; cursor: pointer; }
table.tabla-b.kpi-b thead tr.g1 th:not(.fijo) { text-align: right; }
table.tabla-b tr.sep { border-top: 1px solid #000022; }
.pie-b { padding: 8px 20px 12px; margin: 0; font-size: 11px; }
.acciones-b { padding: 14px 20px; border-top: 1px solid #d5d8d8; display: flex; flex-direction: column; gap: 10px; background: #fbfcfc; }
.acciones-b .com, .corregir-b .com { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #55586a; }
.acciones-b textarea, .corregir-b input[name=motivo] { font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid #c9cccc; border-radius: 3px; resize: vertical; }
.botones-b { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.botones-b .sub { flex: 1 1 260px; }
.plazo-b { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.hecho-b { padding: 12px 20px; border-top: 1px solid #d5d8d8; font-size: 12.5px; color: #33364a; background: #f6fbfa; }
.historial-b { padding: 8px 20px 12px; border-top: 1px solid #eceeee; font-size: 12px; color: #55586a; }
.historial-b summary { cursor: pointer; }
.historial-b ul { margin: 6px 0 0; padding-left: 18px; }
.corregir-b { padding: 14px 20px; border-top: 1px solid #e8a317; background: #fffaf0; display: flex; flex-direction: column; gap: 10px; }
.rejilla-corr { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 18px; }
.rejilla-corr label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; }
.cuerpo-b { padding: 12px 20px; }
.cuerpo-b .motivo { margin: 0 0 8px; font-size: 13px; }
.menu:not(.portal) .contador { margin-left: auto; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #e8a317; color: #000022; font-size: 10.5px; font-weight: 700; text-align: center; }

/* Inicio (gris, como el lienzo HOME2) */
body.pagina-inicio, body.pagina-inicio main { background: #f3f5f5; }
body.pagina-inicio nav.menu { position: static; height: auto; min-height: 100vh; overflow: hidden; align-self: stretch; width: 216px; max-width: 216px; }
.inicio { min-height: 100vh; color: #000022; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.cab-inicio { padding: 26px 36px 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 16px; }
.logo-inicio { display: block; height: 55px; width: auto; justify-self: center; }
.cab-inicio .der { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.pildora-usuario { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border: 1px solid #c9cccc; background: #fff; color: #000022; text-decoration: none; font-size: 12.5px; }
.pildora-usuario .ini { width: 22px; height: 22px; border-radius: 50%; background: #002d37; color: #fff; font-size: 10px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.per-inicio { display: flex; border: 1px solid #c9cccc; background: #fff; font-size: 12px; }
.per-inicio a { min-height: 30px; padding: 0 12px; display: inline-flex; align-items: center; color: #000022; text-decoration: none; }
.per-inicio a.on { background: #002d37; color: #fff; }
.cuerpo-inicio { flex: 1 1 auto; padding: 6px 36px 28px; display: flex; flex-direction: column; gap: 20px; max-width: 1280px; width: 100%; box-sizing: border-box; margin: 0 auto; }
.bienvenida { text-align: center; }
.bienvenida h1 { margin: 0; font-family: 'IBM Plex Serif', Georgia, serif; font-size: 48px; line-height: 1.1; font-weight: 400; color: #002d37; }
.accesos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.accesos .sq { min-height: 180px; background: #fff; border: 1px solid #d5d8d8; padding: 16px 16px 12px; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; }
.accesos .cab { display: flex; flex-direction: column; gap: 8px; color: #002d37; text-decoration: none; }
.accesos .ico { width: 46px; height: 46px; background: #e6f3f0; display: flex; align-items: center; justify-content: center; color: #00806c; }
.accesos .n { font-size: 15px; font-weight: 600; }
.accesos .enlaces { border-top: 1px solid #e6e8e8; padding-top: 6px; display: flex; flex-direction: column; }
.accesos .lk { display: block; padding: 2px 0; color: #33364a; text-decoration: none; font-size: 12px; line-height: 1.35; }
.accesos .lk:hover { color: #00806c; text-decoration: underline; }
.inicio h2.lema { margin: 6px 0 -6px; text-align: center; font-size: 13px; color: #00806c; font-weight: 600; letter-spacing: .12em; }
.kps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kp { background: #fff; border: 1px solid #d5d8d8; border-top: 3px solid #00806c; padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 6px; color: #000022; text-decoration: none; }
.kp .t { font-size: 11px; letter-spacing: .08em; color: #55586a; font-weight: 600; }
.kp .fila { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.kp .v { font-family: 'IBM Plex Serif', Georgia, serif; font-size: 30px; line-height: 1; }
.kp .fila .pos, .kp .fila .neg { font-size: 12.5px; font-weight: 600; }
.kp .fila .pos { color: #2e7d32; } .kp .fila .neg { color: #c62828; }
.kp .avance { position: relative; height: 6px; background: #eceeee; }
.kp .avance .b { position: absolute; left: 0; top: 0; bottom: 0; background: #00806c; }
.kp .avance .b.neg { background: #d88b84; }
.kp .avance .m { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #000022; }
.kp .pie { font-size: 11.5px; color: #55586a; }
.graficas { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.graficas .panel { background: #fff; border: 1px solid #d5d8d8; padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 10px; }
.graficas .panel > strong, .graficas .cab strong { font-size: 13px; font-weight: 600; }
.graficas .cab { display: flex; justify-content: space-between; align-items: baseline; }
.graficas .ley { display: flex; gap: 12px; font-size: 11px; color: #55586a; }
.graficas .ley i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; }
.graficas .ley i.c26 { background: #002d37; } .graficas .ley i.c25 { background: #b8e3d9; }
.graficas .ley i.cbgt { width: 14px; height: 0; border-top: 2px dashed #e8a317; vertical-align: middle; }
.fila-mc { display: flex; flex-direction: column; gap: 3px; }
.fila-mc .txt { display: flex; justify-content: space-between; font-size: 12px; }
.fila-mc .txt .pos { font-weight: 600; color: #2e7d32; } .fila-mc .txt .neg { font-weight: 600; color: #c62828; }
.fila-mc .pista { position: relative; height: 14px; background: #f4f5f5; }
.fila-mc .bgt { position: absolute; top: 0; bottom: 0; border: 1px solid #8a8d99; box-sizing: border-box; }
.fila-mc .b { position: absolute; top: 3px; bottom: 3px; background: #00806c; }
.fila-mc .b.neg { background: #d88b84; }
.graficas .nota { font-size: 11px; color: #55586a; margin-top: auto; }
.anillos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 8px; }
.anillo { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #000022; text-decoration: none; }
.anillo .n { font-size: 11.5px; font-weight: 500; }
.anillo .o { font-size: 10.5px; color: #55586a; }
.pie-inicio { padding: 12px 36px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 11.5px; color: #55586a; border-top: 1px solid #d5d8d8; }
.pie-inicio strong { color: #000022; font-weight: 500; }
@media (max-width: 1100px) { .accesos { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .graficas { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .cab-inicio, .cuerpo-inicio, .pie-inicio { padding-left: 16px; padding-right: 16px; } .cab-inicio { grid-template-columns: 1fr; } .logo-inicio { justify-self: start; height: 44px; } .accesos, .kps { grid-template-columns: 1fr; } .accesos .sq { aspect-ratio: auto; } .bienvenida h1 { font-size: 34px; } }

/* Fuentes y sincronización */
.boton.oscuro { background: #000022; border-color: #000022; color: #fff; }
table.plan-fuentes td { padding: 2px; }
table.plan-fuentes th.fijo { font-weight: 400; }
table.plan-fuentes th.fijo strong { display: block; font-weight: 600; }
table.plan-fuentes th.fijo .sub { display: block; font-size: 11px; color: #55586a; }
.sist { margin: 2px; padding: 6px 8px; border-radius: 3px; display: flex; flex-direction: column; gap: 1px; text-align: center; font-size: 12px; }
.sist strong { font-weight: 600; }
.sist span { font-size: 11px; }
.s-A { background: #e8eef7; color: #1f3d6b; border-color: #1f3d6b; }
.s-S { background: #f3ece2; color: #6b4a1f; border-color: #6b4a1f; }
.s-B { background: #e2f3ee; color: #00664f; border-color: #00664f; }
.s-P { background: #f4f5f5; color: #8a8d99; border-color: #8a8d99; }
.s-G { background: #f1eef6; color: #4b3f72; border-color: #4b3f72; }
.s-N { background: #fafafa; color: #b0b3bb; border-color: #b0b3bb; }
.s-X { background: #00806c; color: #fff; border-color: #00806c; }
.leyenda-fuentes { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 16px; font-size: 11.5px; color: #55586a; }
.leyenda-fuentes > span { display: inline-flex; align-items: center; gap: 6px; }
.leyenda-fuentes .mu { width: 12px; height: 12px; border-radius: 2px; border: 1px solid; }
table.cierre-historico td { vertical-align: top; padding: 10px 8px; }
table.cierre-historico .sub { font-size: 12px; color: #55586a; margin: 4px 0 6px; }
.tag-hist { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 3px; }
.tag-hist.abierto { background: #fff3d6; color: #7a4f00; }
.tag-hist.curso { background: #eef0f0; color: #55586a; }
.tag-hist.bloq { background: #002d37; color: #fff; }
.tag-hist.na { background: #eef0f0; color: #8a8d99; }
.boton.verde-borde { border-color: #00806c; color: #00806c; }
.confirma-bloqueo { background: #fff8e6; border: 1px solid #e8a317; padding: 8px 10px; border-radius: 3px; font-size: 12px; }
.confirma-bloqueo p { margin: 0 0 8px; }
table.plan-fuentes { table-layout: fixed; }
table.plan-fuentes th:first-child { width: 28%; }
table.cierre-historico { table-layout: fixed; }
table.cierre-historico th:first-child { width: 16%; }
.peq-enlace { font-size: 12px; }
table.plan-fuentes, table.cierre-historico { min-width: 0; width: 100%; }
table.plan-fuentes td, table.plan-fuentes th, table.cierre-historico td { white-space: normal; }
.sist, .sist * { white-space: normal !important; overflow-wrap: anywhere; }
table.plan-fuentes thead th.centro { text-align: center; }
.caja:has(table.plan-fuentes) { overflow-x: visible; }

/* Mapping de cuentas */
.buscar-mapping { width: 280px; min-height: 36px; padding: 0 10px; border: 1px solid #c9cccc; border-radius: 3px; font: inherit; font-size: 13px; }
.filtros-mapping { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; margin-top: 10px; }
.filtros-mapping .et { color: #55586a; margin-right: 6px; }
.fb { min-height: 32px; padding: 0 10px; border: 1px solid #c4c7cc; background: #fff; color: #002d37; border-radius: 3px; font-size: 12px; display: inline-flex; align-items: center; text-decoration: none; }
.fb.on { border-color: #00806c; background: #e6f3f0; font-weight: 600; }
.rejilla-mapping { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .rejilla-mapping { grid-template-columns: 1fr; } }
.col-mapping { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.resumen-mapping { border-top: 3px solid #37b39c; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 13px; }
.resumen-mapping strong { font-weight: 600; }
table.tabla-mapping { border-collapse: collapse; width: 100%; min-width: 1000px; font-size: 12.5px; }
table.tabla-mapping thead tr { background: #b8e3d9; color: #002d37; font-size: 11px; }
table.tabla-mapping th, table.tabla-mapping td { padding: 7px 8px; text-align: right; vertical-align: top; }
table.tabla-mapping .izq, table.tabla-mapping td:nth-child(2), table.tabla-mapping td:nth-child(3), table.tabla-mapping td:nth-child(4) { text-align: left; }
table.tabla-mapping tbody th { font-weight: 500; padding-left: 16px; }
table.tabla-mapping tbody tr { border-top: 1px solid #eceeee; }
table.tabla-mapping tbody tr.sel { background: #f2faf8; }
table.tabla-mapping td.acc { white-space: nowrap; padding-right: 16px; }
table.tabla-mapping td.acc form { display: inline; }
.nota-m { font-size: 11px; margin-top: 2px; }
.nota-m.rev { color: #9a6400; }
.nota-m.ok { color: #00664f; }
.sis { font-size: 11px; font-weight: 600; }
.sis.sapl { color: #1f3d6b; } .sis.ssage { color: #6b4a1f; } .sis.sbc { color: #00664f; } .sis.sges { color: #4b3f72; }
.boton-texto { border: 0; background: transparent; color: #00664f; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.panel-mapping { position: sticky; top: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; }
.panel-mapping p { margin: 0; color: #55586a; }
.panel-mapping .cab { display: flex; justify-content: space-between; gap: 8px; }
.panel-mapping .cab a { text-decoration: none; font-size: 16px; color: #000022; }
.buscar-linea { width: 100%; min-height: 32px; padding: 0 8px; border: 1px solid #c9cccc; border-radius: 3px; font: inherit; font-size: 12.5px; box-sizing: border-box; margin-bottom: 6px; }
.destinos { display: flex; flex-wrap: wrap; gap: 4px; }
.destinos .fb { min-height: 28px; padding: 0 8px; font-size: 11.5px; }
.impacto { background: #fff8e6; border-left: 3px solid #e8a317; padding: 8px 10px; font-size: 12px; color: #33364a; }

/* Registro de cargas */
.panel-registro { display: flex; flex-direction: column; gap: 16px; }
table.tabla-registro { min-width: 760px; }
table.tabla-registro .fich, .panel-mapping .fich { display: block; font-weight: 600; word-break: break-all; }
table.tabla-registro .sub { display: block; font-size: 11px; color: #8a8d99; font-weight: 400; }
.tipo-carga { display: inline-block; font-size: 11px; padding: 3px 8px; border-radius: 3px; background: #e6f3f0; color: #002d37; }
.est-carga { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 3px; }
.est-carga.ok { background: #e2f3ee; color: #00664f; }
.est-carga.mal { background: #fde8e6; color: #a32020; }
.est-carga.gris { background: #eef0f0; color: #55586a; }
.et-panel { font-size: 11px; letter-spacing: .05em; color: #55586a; }
.detalle-carga { display: grid; grid-template-columns: 110px 1fr; gap: 4px 10px; margin: 0; font-size: 12px; }
.detalle-carga dt { color: #55586a; }
.detalle-carga dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.detalle-carga.datos dd { text-align: left; font-size: 11px; }
.version { display: flex; justify-content: space-between; font-size: 12px; }
.panel-mapping code { font-size: 11px; background: #f4f5f5; padding: 1px 4px; }

/* Revisión del cierre */
.punto-amb { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e8a317; margin-left: 4px; }
.pasos-cierre { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-bottom: 1px solid #d5d8d8; }
.pasos-cierre .paso { display: flex; gap: 10px; align-items: center; padding: 12px 20px; border-bottom: 3px solid transparent; font-size: 12px; }
.pasos-cierre .paso strong { display: block; font-size: 13px; font-weight: 600; }
.pasos-cierre .paso span { color: #55586a; }
.pasos-cierre .paso .n { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #eef0f0; color: #55586a; font-weight: 600; }
.pasos-cierre .paso.hecho .n { background: #00806c; color: #fff; }
.pasos-cierre .paso.actual { background: #fff8e6; border-bottom-color: #e8a317; }
.pasos-cierre .paso.actual .n { background: #e8a317; color: #fff; }
.grupo-rev .caja-tit h2 { font-size: 13px; }
.punto-rev { display: grid; grid-template-columns: 90px minmax(0, 1fr) 90px auto; gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid #eceeee; font-size: 12.5px; }
.punto-rev .txt strong { display: block; font-weight: 600; }
.punto-rev .txt span { color: #55586a; font-size: 12px; }
.punto-rev .val { text-align: right; font-weight: 600; }
.punto-rev .acc { display: flex; gap: 6px; justify-content: flex-end; }
.tag-rev { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 6px; border-radius: 3px; text-align: center; }
.tag-rev.ok { background: #e2f3ee; color: #00664f; }
.tag-rev.revisar { background: #fde8e6; color: #a32020; }
.tag-rev.pendiente { background: #fff3d6; color: #7a4f00; }
.tag-rev.revisado { background: #eef0f0; color: #33364a; }
.estado-rev .grande { font-size: 28px; font-weight: 600; }
.barra-rev { height: 6px; background: #eef0f0; }
.barra-rev span { display: block; height: 100%; background: #00806c; }
.paralelo-form { display: flex; gap: 6px; align-items: center; font-size: 12px; }
.paralelo-form input[type=file] { flex: 1 1 auto; min-width: 0; font-size: 11.5px; }
table.tabla-paralelo { width: 100%; border-collapse: collapse; font-size: 11.5px; }
table.tabla-paralelo th, table.tabla-paralelo td { padding: 3px 4px; text-align: right; border-top: 1px solid #eceeee; }
table.tabla-paralelo .izq { text-align: left; }
table.tabla-paralelo tr.exp td { color: #8a8d99; }

/* Presupuestos y FC */
.carga-bgt { display: flex; gap: 6px; align-items: center; font-size: 12px; }
.carga-bgt input[name=version] { min-height: 32px; padding: 0 8px; border: 1px solid #c9cccc; border-radius: 3px; font: inherit; font-size: 12px; width: 200px; }
table.tabla-bgt { width: 100%; min-width: 1200px; font-size: 12px; }
table.tabla-bgt thead th { background: #b8e3d9; color: #002d37; padding: 6px; text-align: right; font-size: 11px; }
table.tabla-bgt th.izq { text-align: left; padding-left: 14px; min-width: 210px; }
table.tabla-bgt td { padding: 5px 6px; text-align: right; white-space: nowrap; }
table.tabla-bgt tbody tr { border-top: 1px solid #eceeee; }
table.tabla-bgt tbody th { font-weight: 400; padding: 5px 14px; }
table.tabla-bgt:not(.mensual) tr.k th, table.tabla-bgt:not(.mensual) tr.k td { font-weight: 600; background: #f4f5f5; }
table.tabla-bgt:not(.mensual) tr.p th, table.tabla-bgt:not(.mensual) tr.p td { color: #00806c; font-size: 11.5px; font-style: italic; }
table.tabla-bgt .hueco { width: 10px; background: #f3f5f5; padding: 0; }
table.seg tr.sel { background: #f2faf8; }
.carga-bgt { flex-wrap: nowrap; flex-direction: row; }
.carga-bgt input[type=file] { max-width: 230px; font-size: 11.5px; }


/* Cargas de ventas */
.tarjetas-reporta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; padding: 12px 16px; }
.reporta { border: 1px solid #e6e8e8; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.reporta p { margin: 0; color: #55586a; }
.form-subir { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; padding: 12px 16px; font-size: 12.5px; }
.form-subir label { display: flex; flex-direction: column; gap: 4px; color: #55586a; }
.form-subir input:not([type=file]), .form-subir select { min-height: 32px; padding: 0 8px; border: 1px solid #c9cccc; border-radius: 3px; font: inherit; }
.resultado-carga { margin: 0 16px 14px; padding: 10px 12px; border-left: 3px solid #37b39c; background: #f2faf8; font-size: 12.5px; }
.resultado-carga.aviso { border-color: #e8a317; background: #fff8e6; }
.resultado-carga.mal { border-color: #c62828; background: #fde8e6; }
.resultado-carga ul { margin: 6px 0; padding-left: 18px; }


/* Perímetros y negocios */
.estructura { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; padding: 12px 16px; }
.bloque-co { border: 1px solid #e6e8e8; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.bloque-co .co { font-size: 14px; }
.bloque-co .soc { border-left: 3px solid #b8e3d9; padding-left: 10px; display: flex; flex-direction: column; gap: 2px; }
.bloque-co .sub { font-size: 11.5px; color: #55586a; }
table.tabla-centros tr.sec th { background: #f4f5f5; font-weight: 600; padding: 6px 12px; }
table.tabla-centros td, table.tabla-centros th { vertical-align: top; }
.form-subir label.check { flex-direction: row; align-items: center; gap: 6px; }
button.tag-nivel.elegir-nivel { border: 1px solid var(--verde-texto); background: #fff; color: var(--verde-texto); cursor: pointer; font-family: inherit; }
button.tag-nivel.elegir-nivel:hover { background: var(--verde-texto); color: #fff; }

/* KPIs: mismas medidas que el lienzo (columnas fijas, letra 12,5 y filas de 32 px) */
table.seg.kpi { table-layout: fixed; width: 100%; font-size: 12.5px; }
table.seg.kpi th.fijo { min-width: 0; }
table.seg.kpi thead tr.g2 th { padding: 6px 4px; line-height: 1.3; }
table.seg.kpi thead tr.g2 th.fijo { padding-left: 12px; }
table.seg.kpi tbody th.fijo { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
table.seg tbody th.fijo.medio { font-weight: 500; }
/* Filas de las tablas con la altura del lienzo (26 px; KPIs 32 px) */
table.seg tbody td { padding-top: 5px; padding-bottom: 5px; }
table.seg tbody th.fijo { padding-top: 5px; padding-bottom: 5px; }
table.seg.kpi tbody td, table.seg.kpi tbody th.fijo { padding-top: 6px; padding-bottom: 6px; }
/* Histórico y LFL de ventas como el lienzo: mes en negrita, total de compañía con fondo suave, total en verde */
table.seg.hist tbody th.fijo { font-weight: 700; }
table.seg.hist td.num.grupo { font-weight: 600; background: rgba(0, 45, 55, .05); }
table.seg.hist td.num.tot { font-weight: 700; background: rgba(55, 179, 156, .14); }
table.seg.hist tbody tr.futuro th.fijo { font-weight: 400; }
table.seg td.num.neutro-t { color: #55586a; }
table.seg.hist tbody tr.pie th.fijo { font-weight: 700; }
table.seg.lfl tbody td.num { font-weight: 600; }
table.seg.lfl td.num.tot { font-weight: 600; background: rgba(55, 179, 156, .10); }
table.seg.lfl td.num.tot.primero { font-weight: 700; }
/* Histórico agregado como el lienzo */
table.seg.agg tbody th.fijo { font-weight: 500; }
table.seg.agg tbody tr.pie th.fijo { font-weight: 600; }
table.seg.agg tbody tr.pie-anio, table.seg.agg tbody tr.pie-anio th.fijo { background: #eef0f0; }
table.seg.agg td.num.tot { font-weight: 600; background: rgba(55, 179, 156, .10); }
table.seg.agg tbody td, table.seg.agg tbody th.fijo { padding-top: 6px; padding-bottom: 6px; }
/* Portal de ventas del centro como el lienzo: letra 13 y filas de 34 px */
table.seg.por-negocio { font-size: 13px; }
table.seg.por-negocio tbody td, table.seg.por-negocio tbody th.fijo { padding-top: 8px; padding-bottom: 8px; }
table.seg.por-negocio tbody th.fijo { font-weight: 500; }
table.seg.por-negocio td.suave { color: #55586a; }
/* Revisión del cierre: contadores con los colores del lienzo */
.detalle-carga dt.rv-ok { color: #00664f; } .detalle-carga dt.rv-rev { color: #a12a22; } .detalle-carga dt.rv-pen { color: #7a4f00; }
/* Presupuestos como el lienzo */
table.pl.tabla-bgt { font-size: 11.5px; }
table.pl.tabla-bgt td.desc { font-weight: 700; }
table.seg.versiones { font-size: 13px; }
table.seg.versiones tbody th.fijo, table.seg.versiones tbody td:first-child { font-weight: 600; }
table.seg.versiones tbody td, table.seg.versiones tbody th { padding-top: 9px; padding-bottom: 9px; }
table.seg.tabla-centros { font-size: 12.5px; }
table.seg.tabla-centros tbody td, table.seg.tabla-centros tbody th { padding-top: 7px; padding-bottom: 7px; }
/* Capacidad y Perímetro LFL como el lienzo */
table.seg.capacidad { font-size: 12.5px; }
table.seg.capacidad tbody td:first-child, table.seg.capacidad tbody th:first-child { font-weight: 500; }
table.seg.capacidad tbody td, table.seg.capacidad tbody th { padding-top: 7px; padding-bottom: 7px; }
table.seg.unidades-lfl { font-size: 13px; }
table.seg.unidades-lfl tbody th:first-child, table.seg.unidades-lfl tbody td:first-child { font-weight: 500; }
table.seg.unidades-lfl tbody td:nth-child(2), table.seg.unidades-lfl tbody td:nth-child(3) { color: #33364a; }
table.seg.unidades-lfl tbody td, table.seg.unidades-lfl tbody th { padding-top: 9px; padding-bottom: 9px; }
/* P&L mensual: letra 11,5 como el lienzo */
table.pl.mensual { font-size: 11.5px; }
table.pl.mensual tr.p td { font-size: 10.58px; }
table.pl tr.rec { background: #aadfd2; }
/* P&L agregada como el lienzo: total grupo con fondo verde suave (negrita solo en totales) y «-» de estructura en gris */
table.pl.agregada td.real-total { font-weight: 400; background-color: rgba(55, 179, 156, .10); }
table.pl.agregada tr.k td.real-total { font-weight: 600; }
table.pl.agregada tr.oscuro td.real-total { background-color: #0b3a45; }
table.pl.agregada td.vacio { color: #b0b3bb; }
table.pl.agregada tr.tras-estructura td.real-total { background-color: rgba(55, 179, 156, .10); }
/* Tablas de configuración como el lienzo: letra 13, primera columna en seminegrita y filas holgadas */
table.seg.tabla-config { font-size: 13px; }
table.seg.tabla-config tbody th:first-child, table.seg.tabla-config tbody td:first-child { font-weight: 500; }
table.seg.tabla-config tbody td, table.seg.tabla-config tbody th { padding-top: 10px; padding-bottom: 10px; }
table.seg.tabla-config td.gris-t { color: #55586a; }
/* Portal de KPIs como el lienzo */
.tarjetas.portal-k .val { font-size: 24px; }
.tarjetas.portal-k .cmp.fuerte { font-size: 12px; }
.foco .cab span { font-size: 16px; font-weight: 600; }

/* Cargas de ventas · apartados del lienzo */
section.caja.verde{border-top:3px solid #37b39c}
.guia-carga{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px;padding:14px 16px}
.guia-carga .g{background:#fff;border:1px solid #d5d8d8;border-top:3px solid #37b39c;display:flex;flex-direction:column}
.guia-carga .g-cab{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid #eceeee}
.guia-carga .g-cab .n{font-size:15px;font-weight:600}
.tag-forma{font-size:11px;font-weight:600;padding:3px 9px;border-radius:3px;background:#e2f3ee;color:#002d37}
.guia-carga .g-cuerpo{padding:12px 16px;display:flex;flex-direction:column;gap:6px;border-bottom:1px solid #eceeee;flex:1}
.guia-carga .v{font-size:13px;color:#33364a;line-height:1.45}
.guia-carga .vd,.guia-carga .g-pie{font-size:12px;color:#55586a;line-height:1.45}
.guia-carga .g-pie{padding:10px 16px}
.que-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));border-bottom:1px solid #d5d8d8}
.que-kpis>div{padding:14px 16px;display:flex;flex-direction:column;gap:6px;border-right:1px solid #eceeee;font-size:13px;color:#33364a;line-height:1.5}
.que-kpis>div:last-child{border-right:0}
.que-kpis .et{font-size:11px;font-weight:600;letter-spacing:.06em;color:#00806c}
table.formas{min-width:980px}
table.formas td.centro,table.formas th.centro{text-align:center}
table.formas form{margin:0;display:inline}
.desplaza{overflow-x:auto}
.interruptor{position:relative;width:40px;height:22px;padding:0;border:0;border-radius:11px;background:#c9cccc;cursor:pointer;vertical-align:middle}
.interruptor span{position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:left .15s}
.interruptor.on{background:#00806c}
.interruptor.on span{left:21px}
.interruptor:disabled{opacity:.45;cursor:not-allowed}
.interruptor:focus-visible{outline:2px solid #002d37;outline-offset:2px}
table.estado-corte th.fijo{width:220px}
.est-envio{display:inline-block;font-size:11px;font-weight:600;padding:3px 9px;border-radius:3px}
.est-envio.pend{background:#fff3d6;color:#7a4f00}
.est-envio.borr{background:#eef0f0;color:#33364a}
.est-envio.env{background:#e2f3ee;color:#002d37}
.est-envio.ok{background:#00806c;color:#fff}

/* Presupuestos · objetivos de KPIs y versión por pantalla */
table.kpi-obj tr.obj th,table.kpi-obj tr.obj td{font-weight:600;color:#00806c}
table.usos th.fijo{width:260px}
table.usos td.acc{text-align:right;white-space:nowrap}
.opcion-uso{min-height:30px;padding:0 10px;margin-left:4px;border:1px solid #e2e4e4;background:#fff;color:#002d37;border-radius:3px;font:inherit;font-size:12px;cursor:pointer}
.opcion-uso.on{border-color:#00806c;background:#e6f3f0;font-weight:600}
.opcion-uso:disabled{color:#8a8d99;cursor:not-allowed}

/* Perímetros · agrupaciones guardadas */
table.agrupaciones th.fijo{width:260px;font-weight:600}
table.agrupaciones td.acc{text-align:right;white-space:nowrap}
.nueva-agrupacion{padding:10px 16px;border-top:1px solid #e6e8e8}
.nueva-agrupacion>summary{display:inline-flex;list-style:none;cursor:pointer}
.nueva-agrupacion>summary::-webkit-details-marker{display:none}
.centros-agrupacion{border:1px solid #e2e5e5;padding:8px 12px;display:flex;flex-wrap:wrap;gap:8px 24px;font-size:12px;flex-basis:100%}
.centros-agrupacion>div{display:flex;flex-direction:column;gap:2px}
table.agrupaciones td{white-space:normal}table.agrupaciones{table-layout:auto}

/* Presupuestos como el lienzo: compañías segmentadas, panel de carga en 3 pasos, barra de la tabla */
.segmentado{display:inline-flex;border:1px solid #c9cccc;border-radius:3px;overflow:hidden;background:#fff}
.segmentado a{min-height:30px;padding:0 12px;display:inline-flex;align-items:center;font-size:12px;color:#000022;text-decoration:none;border-right:1px solid #e2e4e4}
.segmentado a:last-child{border-right:0}
.segmentado a.on{background:#000022;color:#fff}
.panel-carga>summary{list-style:none;cursor:pointer}
.panel-carga>summary::-webkit-details-marker{display:none}
.panel-carga:not([open]){display:none}
.pasos-carga{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.pasos-carga .paso{padding:14px 16px;border-right:1px solid #eceeee;display:flex;flex-direction:column;gap:8px;font-size:13px;color:#33364a}
.pasos-carga .paso:last-child{border-right:0}
.pasos-carga .paso p{margin:0;line-height:1.45}
.pasos-carga label{display:flex;flex-direction:column;gap:3px;font-size:12px;color:#55586a}
.pasos-carga input:not([type=file]){min-height:32px;padding:0 8px;border:1px solid #c9cccc;border-radius:3px;font:inherit;font-size:13px}
.et-paso{font-size:11px;font-weight:600;letter-spacing:.06em;color:#00806c}
.caja-tit .tit-linea{display:flex;flex-wrap:wrap;align-items:baseline;gap:12px}
.barra-tabla{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:10px 16px;border-bottom:1px solid #e6e8e8;font-size:12px}
.barra-tabla .selector-centro{margin-left:auto;display:inline-flex;align-items:center;gap:6px}
table.tabla-bgt th.anio{background:#a3d8cb}
table.tabla-bgt td.anio{background:rgba(55,179,156,.10)}
.registrar-aprob>summary{list-style:none;display:inline-flex}
.registrar-aprob>summary::-webkit-details-marker{display:none}
.form-aprob{display:flex;flex-direction:column;gap:6px;padding:8px 0;font-size:12px}
.form-aprob label{display:flex;flex-direction:column;gap:2px}
.form-aprob input{min-height:28px;padding:0 6px;border:1px solid #c9cccc;border-radius:3px;font:inherit}
table.versiones td{vertical-align:top}
table.pl.tabla-bgt.mensual td.total{background-color:rgba(55,179,156,.10)}
table.pl.tabla-bgt.mensual tr.oscuro td.total{background-color:#0b3a45}
.repo .form-repo{display:flex;flex-direction:column;gap:8px;width:260px;padding:12px;font-size:12px}
.repo .form-repo label{display:flex;flex-direction:column;gap:3px;color:#55586a}
.repo .form-repo select{min-height:32px;border:1px solid #c9cccc;border-radius:3px;font:inherit;font-size:13px;padding:0 6px}
.repo .form-repo .notas{margin:0}

/* Desplegable de año (10 años vista) */
select.sel-anio{min-height:30px;padding:0 28px 0 10px;border:1px solid #c9cccc;border-radius:3px;background:#fff;font:inherit;font-size:12px;font-weight:600;color:#000022;cursor:pointer}
select.sel-anio:focus-visible{outline:2px solid #00806c;outline-offset:1px}
.form-plantilla-ventas{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.form-plantilla-ventas select{min-height:32px;border:1px solid #c9cccc;border-radius:3px;font:inherit;font-size:12px;padding:0 6px}
.form-plantilla-ventas .casilla{flex-direction:row;align-items:center;gap:4px;font-size:12px}

/* P&L: ajustes analíticos plegados en la propia pantalla */
details.plegable-aj > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.plegable-aj > summary::-webkit-details-marker { display: none; }
details.plegable-aj > summary:hover h2 { color: #00806c; }
details.plegable-aj > summary:focus-visible { outline: 2px solid #00806c; outline-offset: 2px; }
details.plegable-aj .flecha-aj { font-size: 14px; color: #55586a; transition: transform .15s; }
details.plegable-aj[open] .flecha-aj { transform: rotate(180deg); }
details.plegable-aj .cuenta-aj { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: #e2f3ee; color: #002d37; font-size: 11px; font-weight: 600; vertical-align: middle; }

/* Inicio: accesos centrados dentro de cada recuadro */
.accesos .sq { align-items: center; text-align: center; }
.accesos .cab { align-items: center; }
.accesos .enlaces { align-self: stretch; align-items: center; }

/* P&L mensual: ajustes con las mismas columnas que el P&L de arriba */
table.ajustes-mes td.desc { white-space: normal; vertical-align: top; }
table.ajustes-mes .desc-aj { display: flex; flex-direction: column; gap: 3px; padding: 2px 0; }
table.ajustes-mes .n-aj { font-weight: 600; line-height: 1.3; }
table.ajustes-mes .sub-aj { font-size: 10.5px; color: #55586a; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
table.ajustes-mes .tag-aj { align-self: flex-start; }
table.ajustes-mes tr.sigue td { border-top: 0; }
table.ajustes-mes tr.fila-aj td { vertical-align: top; }
table.ajustes-mes .ver-detalle-aj { align-self: flex-start; border: 0; background: none; padding: 0; color: #00806c; font: inherit; font-size: 11px; cursor: pointer; }
table.ajustes-mes .ver-detalle-aj:hover { text-decoration: underline; }
table.ajustes-mes tr.detalle-aj-fila td { background: #f8f9f9; padding: 8px 12px; text-align: left; }
table.ajustes-mes .detalle-aj-caja { overflow-x: auto; max-width: 100%; }

/* Ajustes analíticos: lista compacta con detalle desplegable */
table.aj-compacta { width: 100%; border-collapse: collapse; font-size: 12px; }
table.aj-compacta thead th { background: #b8e3d9; color: #002d37; font-size: 11px; font-weight: 600; padding: 5px 10px; text-align: right; white-space: nowrap; }
table.aj-compacta thead tr.grupo th { border-bottom: 1px solid #fff; }
table.aj-compacta thead th.izq { text-align: left; }
table.aj-compacta th.c-mc, table.aj-compacta td.c-mc { width: 96px; }
table.aj-compacta th.c-bajo, table.aj-compacta td.c-bajo { width: 96px; color: #55586a; }
table.aj-compacta thead th.c-bajo { background: #e2eceb; }
table.aj-compacta td { padding: 5px 10px; border-top: 1px solid #eceeee; white-space: nowrap; }
table.aj-compacta td.num { text-align: right; }
table.aj-compacta td.n { max-width: 0; width: 100%; }
table.aj-compacta td.n .txt { display: inline-block; max-width: calc(100% - 18px); overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
table.aj-compacta td.co { color: #55586a; width: 120px; }
table.aj-compacta .chev { display: inline-block; width: 14px; color: #00806c; transition: transform .15s; }
table.aj-compacta tr.aj-fila { cursor: pointer; }
table.aj-compacta tr.aj-fila:hover td { background: #f4f8f7; }
table.aj-compacta tr.aj-fila:focus-visible { outline: 2px solid #00806c; outline-offset: -2px; }
table.aj-compacta tr.aj-fila.abierta .chev { transform: rotate(90deg); }
table.aj-compacta tr.aj-fila.abierta td { background: #eef6f4; font-weight: 600; }
table.aj-compacta tr.aj-det td { background: #f8f9f9; padding: 8px 12px 10px 28px; white-space: normal; border-top: 0; }
table.aj-compacta .aj-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 11.5px; color: #33364a; margin-bottom: 6px; }
table.aj-compacta .aj-det-caja { overflow-x: auto; }
table.aj-compacta tfoot th { padding: 6px 10px; border-top: 1px solid #000022; text-align: right; font-weight: 600; background: #f4f5f5; }
table.aj-compacta tfoot th.izq { text-align: left; }

/* P&L mensual: ajustes en una línea, alineados con los meses */
table.ajustes-mes tr.aj-fila-m, table.ajustes-mes tr.aj-sub-m { height: auto; }
table.ajustes-mes tr.aj-fila-m td, table.ajustes-mes tr.aj-sub-m td { vertical-align: middle; white-space: nowrap; }
table.ajustes-mes tr.aj-fila-m td.desc, table.ajustes-mes tr.aj-sub-m td.desc { white-space: nowrap; overflow: hidden; }
table.ajustes-mes td.desc .txt { display: inline-block; max-width: calc(100% - 18px); overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
table.ajustes-mes td.desc .txt.sub { padding-left: 16px; color: #55586a; font-size: 11px; }
table.ajustes-mes .mini-bajo { margin-left: 4px; font-size: 10px; color: #55586a; }
table.ajustes-mes .chev { display: inline-block; width: 14px; color: #00806c; transition: transform .15s; }
table.ajustes-mes tr.aj-fila-m { cursor: pointer; }
table.ajustes-mes tr.aj-fila-m:hover td { background: #f4f8f7; }
table.ajustes-mes tr.aj-fila-m.abierta .chev { transform: rotate(90deg); }
table.ajustes-mes tr.aj-fila-m.abierta td { background: #eef6f4; font-weight: 600; }
table.ajustes-mes tr.aj-sub-m td { border-top: 0; color: #55586a; }
table.ajustes-mes .aj-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 11.5px; color: #33364a; margin-bottom: 6px; }

/* Mapping: la P&L entera para elegir epígrafe */
.arbol-pl { max-height: 460px; overflow-y: auto; border: 1px solid #e3e5e8; border-radius: 3px; padding: 4px 0; font-size: 12px; }
.arbol-pl > * { display: block; padding: 3px 10px; line-height: 1.35; }
.arbol-pl .n1 { padding-left: 22px; } .arbol-pl .n2 { padding-left: 34px; } .arbol-pl .n3 { padding-left: 46px; }
.arbol-pl .ap-l { color: #002d37; text-decoration: none; }
.arbol-pl a.ap-l:hover { background: #eef6f4; }
.arbol-pl .ap-l.on { background: #e6f3f0; font-weight: 600; box-shadow: inset 3px 0 0 #00806c; }
.arbol-pl .ap-l.actual { color: #6b7278; } .arbol-pl .ap-l.actual em { font-style: normal; font-size: 11px; }
.arbol-pl .ap-s { font-weight: 600; color: #002d37; background: #f4f5f5; margin-top: 2px; }
.arbol-pl .ap-k { font-weight: 700; color: #fff; background: #002d37; margin: 4px 0; text-transform: none; }

.form-quitar { display: flex; gap: 6px; align-items: center; }
.form-quitar input[name=motivo] { min-height: 28px; padding: 0 8px; border: 1px solid #c4c7cc; border-radius: 3px; font-size: 12px; width: 220px; }
.cambiar-fecha-b { padding: 8px 20px 12px; border-top: 1px solid #eceeee; font-size: 12px; color: #55586a; }
.cambiar-fecha-b summary { cursor: pointer; }
.cambiar-fecha-b form { margin-top: 8px; }
.cambiar-fecha-b input[name=motivo] { min-width: 260px; }

/* Revisión del cierre: P&L de 12 meses con avisos */
.tendencia { margin: 0 0 16px; }
.leyenda-tend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 0 16px 10px; font-size: 12px; color: #55586a; }
.leyenda-tend i.m { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 5px; vertical-align: -2px; }
.leyenda-tend .solo-avisos { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.m.falta { background: #fde2a6 !important; box-shadow: inset 0 0 0 1px #e8a317; }
.m.alto { background: #f9cfcb !important; box-shadow: inset 0 0 0 1px #d0453a; }
.m.bajo { background: #d3e4f7 !important; box-shadow: inset 0 0 0 1px #3d7cc9; }
.m.inusual { background: #e4d7f5 !important; box-shadow: inset 0 0 0 1px #7b52b9; }
table.tabla-tend td.m { font-weight: 700; color: #000022 !important; }
table.tabla-tend th.en-revision { background: #002d37 !important; color: #fff !important; }
table.tabla-tend td.en-revision { border-left: 2px solid #002d37; }
table.tabla-tend.solo tbody tr:not(.con-aviso):not(.oscuro):not(.mb):not(.tot) { display: none; }
.lista-tend { list-style: none; margin: 0 16px 12px; padding: 0; font-size: 12.5px; display: grid; gap: 4px; }
.lista-tend .m-tag { display: inline-block; min-width: 58px; text-align: center; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 3px; margin-right: 8px; }
.m-tag.falta { background: #fde2a6; color: #7a4f00; } .m-tag.alto { background: #f9cfcb; color: #8f1d14; }
.m-tag.bajo { background: #d3e4f7; color: #1d4f8f; } .m-tag.inusual { background: #e4d7f5; color: #4b2a85; }

.niveles-tend { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.niveles-tend + .solo-avisos { margin-left: 12px; }
.m.dentro.falta { background: #fef1d3 !important; box-shadow: inset 0 0 0 1px #f0c36d; }
.m.dentro.alto { background: #fce7e5 !important; box-shadow: inset 0 0 0 1px #eb9d97; }
.m.dentro.bajo { background: #e9f1fb !important; box-shadow: inset 0 0 0 1px #9dbde4; }
.m.dentro.inusual { background: #f1ebfa !important; box-shadow: inset 0 0 0 1px #bda8dc; }

.centros-tend { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 16px 10px; }
.centros-tend .n-av { display: inline-block; min-width: 16px; padding: 0 4px; margin-left: 5px; border-radius: 8px; background: #e8a317; color: #fff; font-size: 10.5px; font-weight: 700; text-align: center; line-height: 16px; }

.aviso-mapping { margin: 10px 0 0; }

.plataformas-ag { align-self: center; }
table.pl td.subtotal-pla { background: #eef6f4; font-weight: 700; }

/* Desplegables con apartados plegables (plataformas, compañías con centros) */
.dd-fila { display: flex; align-items: center; gap: 2px; }
.dd-fila > button:not(.dd-plegar), .dd-fila > .dd-grupo { flex: 1; }
.dd-panel button.dd-plegar { width: 24px; padding: 7px 0; text-align: center; color: #5a5d6b; flex: none; }
.dd-grupo { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #5a5d6b; padding: 7px 4px; cursor: pointer; }
.dd-apartado { border-top: 1px solid #eceeee; margin-top: 2px; padding-top: 2px; }
.dd-dentro { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; }
.dd-dentro[hidden] { display: none; }
.dd-compania .dd-dentro { padding-left: 26px; }
.dd-compania .dd-dentro button.n1 { padding-left: 10px; }
details.desplegable .panel details.grupo-per { border-top: 1px solid #eceeee; }
details.desplegable .panel details.grupo-per > summary { cursor: pointer; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #5a5d6b; padding: 5px 0; }
details.desplegable .panel details.grupo-per > label { padding-left: 12px; }
details.desplegable .panel details.grupo-per > label.n1 { padding-left: 28px; }
.dd-dentro > button { padding-left: 36px; }
.dd-compania .dd-dentro > button.n1 { padding-left: 10px; }
/* Seguimiento semanal: columna de la semana estrecha y rótulo de cada mes (el anterior y el elegido) */
table.seg th.semana, table.seg td.semana { width: 1%; padding-left: 6px; padding-right: 10px; font-size: 11px; }
table.seg tbody tr.mes-sep { background: #f3f5f5; border-top: 1px solid #c9cccc; }
table.seg tbody tr.mes-sep th.fijo { background: #f3f5f5; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--oscuro); padding: 5px 12px; }
table.seg tbody tr.mes-sep.anterior th.fijo, table.seg tbody tr.mes-sep.anterior { color: #55586a; }
/* Recuadro de datos al pasar el cursor por una gráfica */
.caja-graf { position: fixed; z-index: 60; pointer-events: none; background: #fff; border: 1px solid #c9cccc; border-radius: 3px;
  box-shadow: 0 6px 18px rgba(0, 0, 34, .14); padding: 6px 9px; font-size: 12px; color: var(--tinta); max-width: 360px; }
.caja-graf div { display: flex; align-items: center; gap: 6px; padding: 1px 0; white-space: nowrap; }
.caja-graf i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
svg.grafico .guia-graf { stroke: #8a8d99; stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.dd-panel input.dd-buscar { font: inherit; font-size: 12px; padding: 6px 8px; border: 1px solid #c9cccc; border-radius: 3px; margin-bottom: 4px; }
