/* El encabezado en em se reducía dos veces en las tablas de cifras. */
@media screen {
  html:root body main .pb-figure-sheet table.pb-cifras[data-pb-cuadro] {
    font-size: clamp(.875rem, 1.05vw, .93rem);
    line-height: 1.46;
  }
  html:root body main table.pb-cifras[data-pb-cuadro] thead th {
    font-size: .875rem;
    line-height: 1.4;
  }
  html:root body main table[data-pb-cuadro] :is(th, td) {
    font-variant-numeric: tabular-nums;
  }
  html:root body main table[data-pb-cuadro] .pb-cifras-valor[data-pb-texto] {
    white-space: normal;
  }
  main table[data-pb-cuadro].household-salary-table :is(th, td) {
    text-align: center !important;
  }
  html:root body main .pb-figure-sheet table[data-pb-cuadro][data-pb-lectura-tabla="filas"] :is(th, td) {
    text-align: center !important;
  }
  html:root body main table[data-pb-cuadro] :is(.pb-cifras-total > td, td[data-pb-total]) .pb-cifras-valor {
    font-weight: 750 !important;
  }
  #territorio table[data-pb-territorio] :is(th, td) {
    text-align: center;
  }
}
@media screen and (max-width: 540px) {
  #territorio table[data-pb-territorio],
  #territorio table[data-pb-territorio] tbody {
    display: block;
  }
  #territorio table[data-pb-territorio] thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  #territorio table[data-pb-territorio] tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid #cbd8d1;
    border-radius: .62rem;
    margin-block: .65rem;
    background: #fffcf7;
  }
  #territorio table[data-pb-territorio] tbody th {
    grid-column: 1 / -1;
    background: #e6efe8;
    border-radius: .55rem .55rem 0 0;
  }
  #territorio table[data-pb-territorio] td {
    padding: .55rem .12rem;
    white-space: nowrap;
  }
  #territorio table[data-pb-territorio] td + td {
    border-inline-start: 1px solid #cbd8d1;
  }
  #territorio table[data-pb-territorio] td::before {
    content: attr(data-pb-columna);
    content: attr(data-pb-columna) / "";
    display: block;
    color: #235246;
    font-size: .82rem;
    font-weight: 650;
    white-space: normal;
    margin-bottom: .16rem;
  }
}
@media screen and (max-width: 1000px) {
  html:root body main table.pb-cifras[data-pb-cuadro]:not(.pb-cifras-anchas) :is(th, td) {
    font-size: .875rem;
    line-height: 1.46;
  }
  html:root body main table[data-pb-cuadro]:not(.pb-cifras, [data-pb-lectura-tabla]) :is(th, td) {
    font-size: .875rem !important;
    line-height: 1.46;
  }
}
@media screen and (max-width: 740px) {
  html:root body main .pb-figure-sheet table[data-pb-cuadro][data-pb-lectura-tabla="filas"] {
    background: transparent;
    border: 0;
  }
  main table[data-pb-cuadro][data-pb-lectura-tabla="filas"] colgroup {
    display: none;
  }
  main table.legal-table[data-pb-cuadro][data-pb-lectura-tabla="filas"] tbody tr > td:first-child {
    font-weight: 400;
  }
  html:root body main table[data-pb-cuadro][data-pb-lectura-tabla="filas"] :is(.pb-campo-movil, .pb-cifras-label) {
    font-size: .82rem;
    line-height: 1.4;
  }
}
