/* Tableros de Servicios municipales (el de cada municipio y el general, y el del portal de la Municipalidad) y
   «Contrato y plazos» de cada servicio. Prefijo gx- para no chocar con el ERP ni con el portal. Los gráficos los
   dibuja graficos.js.
   El diseño se acomoda al ancho de su contenedor, no al de la ventana (el menú se pliega sin cambiar la ventana):
   tablero_comun.js pone data-ancho en .gx-tb (xl desde 1040 px, l desde 820, m desde 600, s el resto).
   Sin data-ancho, y al imprimir, vale el diseño «m». */

/* El portal no trae los estilos de base del ERP: lo que allá heredan los botones, desplegables y renglones se fija
   acá (sin peso, para que cualquier clase lo pise), y las variables que el portal no tiene llevan su valor. */
.gx-tb {
  line-height: 1.45;
}
:where(.gx-tb) button,
:where(.gx-tb) select,
:where(.gx-tb) input {
  font-family: inherit;
  line-height: inherit;
}
:where(.gx-tb) button,
:where(.gx-tb) select {
  cursor: pointer;
}

/* ---------- filtros ---------- */
.gx-fil {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.gx-chip {
  border: 1px solid var(--borde);
  background: #fff;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--suave);
  white-space: nowrap;
}
.gx-chip.on {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.gx-sel {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--borde);
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%2364748b'/%3E%3C/svg%3E")
    right 11px center / 8px no-repeat;
  border-radius: 9px;
  padding: 6px 28px 6px 11px;
  font-size: 12.5px;
  color: var(--texto, #1c2733);
  max-width: 100%;
  cursor: pointer;
}
.gx-fil-g {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}
/* las fichas a la izquierda y lo demás a la derecha; si no entran en un renglón, cada grupo en el suyo */
.gx-fil-2 {
  justify-content: space-between;
}
.gx-btn {
  border: 1px solid var(--borde);
  background: #fff;
  color: var(--azul);
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.gx-btn.pri {
  background: var(--azul2);
  border-color: var(--azul2);
  color: #fff;
}
.gx-btn.rojo {
  color: var(--alerta);
}
.gx-chip:hover,
.gx-btn:hover,
.gx-seg button:hover {
  filter: none;
  border-color: #b8c2cc;
}
.gx-btn.pri:hover {
  filter: brightness(1.08);
  border-color: var(--azul2);
}
.gx-chip:focus-visible,
.gx-btn:focus-visible,
.gx-seg button:focus-visible,
.gx-an-btn:focus-visible,
.gx-tilde:focus-visible {
  outline: 2px solid var(--azul2);
  outline-offset: 2px;
}
.gx-fechas {
  font-size: 12.5px;
  color: var(--suave);
}
.gx-fechas label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gx-fechas input {
  width: auto;
  margin: 0;
  padding: 5px 9px;
  font-size: 12.5px;
  border: 1px solid var(--borde);
  border-radius: 9px;
  background: #fff;
  color: var(--texto, #1c2733);
}
.gx-solo-impr {
  display: none;
}

/* ---------- tarjetas de color ---------- */
.gx-solidas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.gx-solida {
  border-radius: 14px;
  padding: 15px 18px 14px;
  color: #fff;
  background: var(--f);
  box-shadow: var(--sombra, 0 1px 3px rgba(16, 24, 40, 0.06));
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.gx-solida::after {
  content: "";
  position: absolute;
  right: -26px;
  top: -26px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.gx-solida .lab {
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.92;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.gx-solida .lab svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.gx-solida .val {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 6px;
}
.gx-solida .val small {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.85;
  letter-spacing: 0;
}
.gx-solida .del {
  font-size: 12.5px;
  opacity: 0.92;
  margin-top: 3px;
}
/* cada frase del detalle va entera: el corte de renglón cae entre frases */
.gx-frase {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}
.gx-tri {
  width: 10px;
  height: 10px;
  margin-right: 5px;
  vertical-align: -0.5px;
  fill: currentColor;
}

/* ---------- grilla de tarjetas ---------- */
.gx-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  grid-template-columns: minmax(0, 1fr);
}
.gx-card {
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 14px;
  padding: 16px 18px 14px;
  box-shadow: var(--sombra, 0 1px 3px rgba(16, 24, 40, 0.06));
  min-width: 0;
}
.gx-card h3 {
  margin: 0;
  font-size: 14.5px;
  color: var(--navy);
  font-weight: 700;
}
.gx-card .gx-sub {
  font-size: 12px;
  color: var(--suave);
  margin: 3px 0 10px;
}
.gx-nada {
  color: var(--suave);
  font-size: 12.5px;
  margin: 0;
  padding: 6px 0 4px;
}
.gx-nada + .gx-btn {
  margin-top: 8px;
}
.gx-nota {
  color: var(--suave);
  font-size: 11.5px;
  margin: 10px 0 0;
}
/* filas con dos tarjetas que entran juntas desde el ancho «m» */
.gx-grid.f-b2,
.gx-grid.f-b3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gx-grid.f-b2v {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
.gx-grid.f-c3 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
}
.gx-grid.f-b3 > :first-child,
.gx-grid.f-c3 > :last-child {
  grid-column: 1 / -1;
}
@media screen {
  .gx-tb[data-ancho="xl"] .gx-solidas,
  .gx-tb[data-ancho="l"] .gx-solidas {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .gx-tb[data-ancho="xl"] .gx-grid.f-a,
  .gx-tb[data-ancho="l"] .gx-grid.f-a {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.42fr);
  }
  .gx-tb[data-ancho="xl"] .gx-grid.f-b3,
  .gx-tb[data-ancho="l"] .gx-grid.f-b3 {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  }
  .gx-tb[data-ancho="xl"] .gx-grid.f-b3 > :first-child,
  .gx-tb[data-ancho="l"] .gx-grid.f-b3 > :first-child,
  .gx-tb[data-ancho="xl"] .gx-grid.f-c3 > :last-child {
    grid-column: auto;
  }
  .gx-tb[data-ancho="xl"] .gx-grid.f-c,
  .gx-tb[data-ancho="l"] .gx-grid.f-c {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
  .gx-tb[data-ancho="xl"] .gx-grid.f-c3 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  }
  .gx-tb[data-ancho="xl"] .gx-grid.f-form,
  .gx-tb[data-ancho="l"] .gx-grid.f-form {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: start;
  }
  .gx-tb[data-ancho="l"],
  .gx-tb[data-ancho="s"] {
    --an: 104px;
  }
  .gx-tb[data-ancho="s"] .gx-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .gx-tb[data-ancho="s"] .gx-solida {
    padding: 13px 14px 12px;
  }
  .gx-tb[data-ancho="s"] .gx-solida .val {
    font-size: 26px;
  }
  /* muy angosto (un celular de 320 px con la tarjeta del portal): las tarjetas de color van de a una */
  .gx-tb[data-fino] .gx-solidas {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- anillos ---------- */
.gx-svg .gx-t1 {
  fill: var(--navy);
}
.gx-svg .gx-t2 {
  fill: var(--suave);
}
.gx-svg .gx-ritmo {
  stroke: var(--navy);
}
.gx-anillos {
  display: grid;
  gap: 14px 10px;
  justify-items: center;
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(calc(var(--an, 118px) + 8px), 1fr));
}
.gx-anillos.de4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.gx-tb[data-ancho="s"] .gx-anillos.de4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gx-an {
  text-align: center;
  min-width: 0;
  max-width: 100%;
}
.gx-an .gx-anillo {
  width: var(--an, 118px);
  height: var(--an, 118px);
  margin: 0 auto;
}
.gx-an .t {
  font-weight: 700;
  color: var(--navy);
  font-size: 13px;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.gx-an .d {
  font-size: 12px;
  color: var(--suave);
  margin-top: 1px;
}
.gx-an .d .gx-est {
  font-size: 11.5px;
  text-align: left;
}
.gx-mini-an {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 12px 6px;
}
.gx-mini-an .gx-anillo {
  width: 58px;
  height: 58px;
}
.gx-mini-an .gx-an .t {
  font-size: 10px;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gx-an-btn {
  background: none;
  border: 0;
  border-radius: 10px;
  padding: 2px 0 3px;
  color: inherit;
  font: inherit;
  display: block;
  width: 100%;
}
.gx-an-btn:hover {
  background: #f3f6fa;
  filter: none;
}
.gx-leg {
  display: flex;
  gap: 6px 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--suave);
  margin: 0 0 8px;
}
.gx-leg i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: -1px;
}
.gx-leg.redonda i {
  border-radius: 50%;
}
.gx-pie {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--borde);
}
.gx-pie .gx-leg {
  margin: 0;
}

/* ---------- dona con la leyenda debajo ---------- */
.gx-dona {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.gx-dona svg {
  flex: none;
}
.gx-dona-l {
  width: 100%;
  min-width: 0;
  font-size: 12.5px;
}
.gx-dona-l div {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid var(--borde);
  color: var(--texto, #1c2733);
}
.gx-dona-l div:last-child {
  border-bottom: 0;
}
.gx-dona-l i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.gx-dona-l b {
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.gx-dona-l em {
  font-style: normal;
  color: var(--suave);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.gx-columnas {
  max-width: 100%;
}

/* ---------- estado con ícono y texto (nunca solo el color) ---------- */
.gx-est {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--texto, #1c2733);
  line-height: 16px;
}
.gx-est::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex: none;
  background: #b8c2cc center / 10px no-repeat;
}
.gx-est.mal::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 2v3.6M5 7.6v.4' stroke='white' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-color: #d03b3b;
}
.gx-est.medio::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 2.6V5l1.6 1.2' stroke='%230f2238' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-color: #fab219;
}
.gx-est.bien::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2.6 5.2l1.7 1.7 3.2-3.6' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-color: #0ca30c;
}
.gx-est.sin {
  color: var(--suave);
}
.gx-est.sin::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 5h4' stroke='white' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- Para mirar hoy ---------- */
.gx-sug {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid var(--borde);
  font-size: 12.5px;
  color: var(--texto, #1c2733);
  line-height: 1.45;
}
.gx-sug:last-child {
  border-bottom: 0;
}
.gx-sug .t {
  flex: 1;
  min-width: 0;
}
.gx-sug .t small {
  display: block;
  color: var(--suave);
  font-size: 11.5px;
  margin-top: 3px;
}

/* ---------- los mismos datos como tabla ---------- */
.gx-desliza {
  overflow-x: auto;
}
.gx-tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.gx-tabla th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--suave);
  font-weight: 600;
  padding: 0 10px 7px 0;
  border-bottom: 1px solid var(--borde);
  background: none;
  vertical-align: bottom;
}
.gx-tabla td {
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--borde);
  vertical-align: middle;
  color: var(--texto, #1c2733);
}
.gx-tabla tr:last-child td {
  border-bottom: 0;
}
.gx-tabla th.num,
.gx-tabla td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.gx-tabla td.num {
  white-space: nowrap;
}
/* como tabla, la de los sectores necesita el ancho entero */
.gx-tb.gx-tablas[data-ancho] .gx-grid.f-b3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gx-tb.gx-tablas[data-ancho] .gx-grid.f-b3 > :first-child {
  grid-column: 1 / -1;
}
.gx-tb.gx-tablas[data-ancho="l"] .gx-grid.f-a,
.gx-tb.gx-tablas[data-ancho="s"] .gx-grid.f-b3 {
  grid-template-columns: minmax(0, 1fr);
}
.gx-tb[data-ancho="s"] .gx-tabla {
  font-size: 12px;
}
.gx-tb[data-ancho="s"] .gx-tabla th,
.gx-tb[data-ancho="s"] .gx-tabla td {
  padding-right: 8px;
}
.gx-tabla th:last-child,
.gx-tabla td:last-child {
  padding-right: 0;
}
.gx-tabla td.nw {
  white-space: nowrap;
}
.gx-tabla td b {
  color: var(--navy);
}
.gx-tabla td small {
  color: var(--suave);
  display: block;
  font-size: 11.5px;
}
.gx-tabla td.acc {
  white-space: nowrap;
  text-align: right;
}
.gx-tabla td.acc .gx-btn + .gx-btn {
  margin-left: 6px;
}
.gx-tabla tr.sel td {
  background: #f4f8fc;
}
.gx-enlace {
  background: none;
  border: 0;
  border-radius: 4px;
  padding: 0;
  font-size: inherit;
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: #b8c2cc;
  text-underline-offset: 2px;
}
.gx-enlace:hover {
  filter: none;
  color: var(--azul2);
}
.gx-nw {
  white-space: nowrap;
}
/* angosto: cada contrato cargado es un bloque (desde y estado, lo comprometido, los botones) */
.gx-tb[data-ancho="s"] .gx-versiones thead {
  display: none;
}
.gx-tb[data-ancho="s"] .gx-versiones tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--borde);
}
.gx-tb[data-ancho="s"] .gx-versiones tr:last-child {
  border-bottom: 0;
}
.gx-tb[data-ancho="s"] .gx-versiones tr.sel {
  background: #f4f8fc;
  border-radius: 8px;
}
.gx-tb[data-ancho="s"] .gx-versiones td {
  padding: 0;
  border: 0;
  background: none;
}
.gx-tb[data-ancho="s"] .gx-versiones td:nth-child(2),
.gx-tb[data-ancho="s"] .gx-versiones td.acc {
  grid-column: 1 / -1;
}
.gx-tb[data-ancho="s"] .gx-versiones td.acc {
  text-align: left;
}

/* ---------- Contrato y plazos ---------- */
.gx-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #eaf2fc;
  border: 1px solid #cfe0f6;
  color: var(--navy);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12.5px;
  margin-bottom: 12px;
}
.gx-info svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--azul2);
  margin-top: 1px;
}
.gx-cabf {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.gx-cabf b {
  color: var(--navy);
  font-size: 15px;
}
.gx-comp-f {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--borde);
  font-size: 13px;
  color: var(--texto, #1c2733);
}
.gx-comp-f:last-child {
  border-bottom: 0;
}
.gx-comp-f > .t:first-child {
  grid-column: 1 / 3;
}
.gx-comp-f .t b {
  display: block;
  color: var(--navy);
  font-weight: 600;
}
.gx-comp-f .t small {
  display: block;
  color: var(--suave);
  font-size: 11.5px;
  margin-top: 1px;
}
.gx-comp-f.off .t b {
  color: var(--suave);
}
.gx-comp-f label.t {
  cursor: pointer;
}
.gx-comp-f .v {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.gx-campo {
  border: 1px solid var(--borde);
  border-radius: 8px;
  padding: 6px 9px;
  background: #fff;
  font-weight: 600;
  font-size: 13px;
  color: var(--navy);
}
select.gx-campo {
  padding-right: 6px;
  cursor: pointer;
}
.gx-campo:disabled {
  background: #f6f8fa;
  color: var(--texto, #1c2733);
  opacity: 1;
  cursor: default;
}
.gx-num-c {
  width: 88px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.gx-uni {
  color: var(--suave);
  font-size: 12.5px;
  min-width: 62px;
}
select.gx-uni {
  min-width: 0;
  font-weight: 500;
  color: var(--texto, #1c2733);
}
.gx-tilde {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #b8c2cc;
  background: #fff;
  margin: 0;
  padding: 0;
  cursor: pointer;
  flex: none;
}
.gx-tilde:checked {
  border-color: var(--azul2);
  background: var(--azul2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.3l2.2 2.2 4.4-5' stroke='white' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
.gx-tilde:disabled {
  cursor: default;
  opacity: 0.75;
}
.gx-seg {
  display: inline-flex;
  border: 1px solid var(--borde);
  border-radius: 9px;
  overflow: hidden;
}
.gx-seg button {
  border: 0;
  border-radius: 0;
  padding: 6px 11px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--suave);
  background: #fff;
}
.gx-seg button.on {
  background: var(--navy);
  color: #fff;
}
.gx-seg button:disabled {
  cursor: default;
}
.gx-acciones {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 14px;
}
.gx-acciones small {
  color: var(--suave);
  font-size: 12px;
  margin-right: 4px;
}
.gx-tb[data-ancho="s"] .gx-comp-f {
  grid-template-columns: auto minmax(0, 1fr);
}
.gx-tb[data-ancho="s"] .gx-comp-f .v {
  grid-column: 2;
  flex-wrap: wrap;
  white-space: normal;
}
.gx-tb[data-ancho="s"] .gx-comp-f > .t:first-child,
.gx-tb[data-ancho="s"] .gx-comp-f > .t:first-child + .v {
  grid-column: 1 / -1;
}

/* ---------- tablero general: una tarjeta por municipio ---------- */
.gx-renglon {
  font-size: 12.5px;
  color: var(--suave);
  margin: 2px 0 10px;
}
.gx-muni {
  margin-bottom: 12px;
}
.gx-muni .cab {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.gx-muni .logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #eaf2fc;
  color: var(--azul2);
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
}
.gx-muni .logo svg {
  width: 21px;
  height: 21px;
}
.gx-muni .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.gx-muni .n {
  flex: 1 1 200px;
  min-width: 0;
}
.gx-muni .n b {
  color: var(--navy);
  font-size: 15px;
}
.gx-muni .n small {
  display: block;
  color: var(--suave);
  font-size: 12px;
}
.gx-muni .gx-est {
  white-space: nowrap;
}

/* ---------- imprimir o guardar PDF ---------- */
@media print {
  @page {
    margin: 12mm;
  }
  body:has(.gx-tb) main.pantalla {
    height: auto;
    overflow: visible;
    display: block;
  }
  body:has(.gx-tb) .mun-cuerpo {
    overflow: visible;
    padding: 0;
  }
  body:has(.gx-tb) .franja-sup {
    height: auto;
    padding: 0 0 10px;
    border: 0;
  }
  body:has(.gx-tb) .franja-sup .der,
  body:has(.gx-tb) .mun-tabs-movil,
  body:has(.gx-tb) #franja-entorno,
  body:has(.gx-tb) .franja-actualizar,
  body:has(.gx-tb) .tabs,
  .gx-tb .gx-fil,
  .gx-tb .gx-btn {
    display: none !important;
  }
  .gx-solo-impr {
    display: block;
    font-size: 12px;
    color: var(--suave);
    margin: 0 0 10px;
  }
  .gx-card,
  .gx-solida,
  .gx-sug {
    break-inside: avoid;
    box-shadow: none;
  }
  .gx-solida,
  .gx-solida::after,
  .gx-est::before,
  .gx-leg i,
  .gx-dona-l i,
  .gx-chip,
  .gx-muni .logo {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .gx-columnas {
    width: 100%;
    height: auto;
  }
  .gx-desliza {
    overflow: visible;
  }
  /* en la hoja, las cuatro tarjetas de color van en un renglón */
  .gx-solidas {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .gx-solida {
    padding: 11px 12px 10px;
  }
  .gx-solida .val {
    font-size: 24px;
  }
  .gx-solida .lab,
  .gx-solida .del {
    font-size: 11px;
  }
}

/* ---------- Reporte «planificado y hecho» (plan_reporte_comun.js): gerencia en Reportes y el portal ---------- */
/* cinco tarjetas (las de gerencia): en un renglón cuando hay lugar; con menos ancho, tres arriba y dos abajo */
.gx-tb[data-ancho="xl"] .gx-solidas:has(> :nth-child(5)) {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.gx-tb[data-ancho="l"] .gx-solidas:has(> :nth-child(5)) {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.gx-tb[data-ancho="l"] .gx-solidas:has(> :nth-child(5)) > * {
  grid-column: span 2;
}
.gx-tb[data-ancho="l"] .gx-solidas:has(> :nth-child(5)) > :nth-child(n + 4) {
  grid-column: span 3;
}
.gx-pr-cab {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.gx-pr-cab .gx-btn {
  flex: none;
  margin: -4px 0 0;
}
.gx-pr-col {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
.gx-grid.f-pr2 {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
.gx-grid.f-pr2.inv {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
}
.gx-tb[data-ancho="s"] .gx-grid.f-pr2,
.gx-tb[data-ancho="m"] .gx-grid.f-pr2 {
  grid-template-columns: minmax(0, 1fr);
}
.gx-pr-fila {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #edf1f5;
  font-size: 13px;
}
.gx-pr-fila:first-of-type {
  border-top: 0;
}
.gx-pr-fila .n {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-weight: 600;
  color: var(--navy, #0f2238);
}
.gx-pr-fila .pt,
.gx-pr-nw .pt {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}
.gx-pr-nw .pt {
  margin-right: 7px;
}
.gx-pr-fila .v {
  color: var(--suave, #64748b);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.gx-pr-fila .b {
  grid-column: 1 / -1;
  display: flex;
  gap: 2px;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: #eef2f6;
}
.gx-pr-fila .b i {
  display: block;
  min-width: 3px;
}
.gx-pr-nw {
  white-space: nowrap;
}
.gx-pr-calor {
  width: 100%;
  min-width: 520px;
  border-collapse: separate;
  border-spacing: 4px;
  table-layout: fixed;
  font-size: 12px;
}
.gx-pr-calor th {
  padding: 2px 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--suave, #64748b);
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
  background: none;
  border: 0;
}
.gx-pr-calor th.n {
  width: 104px;
  text-align: left;
  font-size: 12.5px;
  color: var(--navy, #0f2238);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gx-pr-calor td {
  padding: 9px 0;
  border: 0;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #0f2238;
  background: #eef2f6;
}
.gx-pr-calor td.n {
  color: #8a96a3;
}
.gx-pr-calor td.n0 {
  background: #cde2fb;
}
.gx-pr-calor td.n1 {
  background: #9ec5f4;
}
.gx-pr-calor td.n2 {
  background: #6da7ec;
}
.gx-pr-calor td.n3 {
  background: #2f7ad6;
  color: #fff;
}
.gx-pr-calor td.n4 {
  background: #256abf;
  color: #fff;
}
.gx-pr-calor td.n5 {
  background: #184f95;
  color: #fff;
}
.gx-pr-calor td.n6 {
  background: #0d366b;
  color: #fff;
}
.gx-pr-calor td.pasa {
  background: #d03b3b;
  color: #fff;
}
.gx-pr-rojo {
  color: #c0392b;
}
.gx-pr-nove {
  padding: 10px 14px;
  border: 1px solid var(--borde);
  border-radius: 10px;
  background: #f7f9fc;
  font-size: 12.5px;
}
@media print {
  .gx-tb .gx-pr-tabla[hidden] {
    display: none !important;
  }
  body:has(#rp_plan) #rep_buscar,
  body:has(#rp_plan) .rep-migas,
  body:has(#rp_plan) #rp_fav {
    display: none !important;
  }
}
