/*
 Valorunia | Tablas editoriales V2.1.0
 Alcance: Entradas individuales + contenido de editor Gutenberg.
 Diseño: azul #071D49, turquesa #00B7A5, gris #F4F7FA.
 No altera la portada Inicio, Astra header, Noticias ni tablas de otras páginas.
*/
:is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table {
  box-sizing: border-box;
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 24px 0 27px;
  padding: 0;
  background: #fff;
  border: 1px solid #dce6ee;
  border-radius: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 7px 22px rgba(7, 29, 73, .07);
  scrollbar-width: thin;
  scrollbar-color: #00B7A5 #eaf1f5;
}
:is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table::-webkit-scrollbar {height: 8px;}
:is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table::-webkit-scrollbar-thumb {background: #00B7A5; border-radius: 20px;}
:is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table::-webkit-scrollbar-track {background: #eaf1f5;}
:is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table table {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0;
  border: 0 !important;
  border-spacing: 0 !important;
  border-collapse: separate !important;
  table-layout: auto !important;
  background: #fff;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  font-family: inherit;
  line-height: 1.48;
}
:is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table table th,
:is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table table td {
  box-sizing: border-box;
  height: auto;
  padding: 13px 17px !important;
  text-align: left;
  vertical-align: middle;
  border: 0 !important;
  border-bottom: 1px solid #e5ecf2 !important;
  overflow-wrap: break-word;
  word-break: normal;
  white-space: normal;
  font-size: 14px !important;
}
:is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table table thead th {
  background: #071D49 !important;
  color: #fff !important;
  font-size: 13.5px !important;
  font-weight: 760 !important;
  line-height: 1.38;
  padding-top: 16px !important;
  padding-bottom: 16px !important;
  border-bottom: 3px solid #00B7A5 !important;
  border-right: 1px solid rgba(255, 255, 255, .12) !important;
}
:is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table table thead th:last-child {border-right: 0 !important;}
:is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table table tbody td {
  background: #fff;
  color: #334155 !important;
  font-weight: 460;
}
:is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table table tbody tr:nth-child(even) td {background: #F4F7FA !important;}
:is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table table tbody tr:hover td {background: #E9F8F6 !important;}
:is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table table tbody td:first-child {
  color: #071D49 !important;
  font-weight: 670;
}
:is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table table tbody tr:last-child td,
:is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table table tfoot tr:last-child td {border-bottom: 0 !important;}
:is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table table tbody td strong {font-weight: 780;color: #07596a;}
:is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table table tfoot td,
:is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table table tfoot th {
  background: #e9f6f5 !important;
  color: #071D49 !important;
  font-weight: 770;
}
:is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table figcaption {
  position: sticky;
  left: 0;
  max-width: 100%;
  padding: 10px 14px;
  margin: 0 !important;
  background: #F4F7FA;
  color: #526478;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  border-top: 1px solid #dce6ee;
}
/* 4-column tables, such as Monotributo, remain readable at phone widths.
   Only the table scrolls horizontally; the article never overflows. */
@media (max-width: 760px) {
  :is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table table:has(thead th:nth-child(4)) {min-width: 740px !important;}
  :is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table table:has(thead th:nth-child(3)):not(:has(thead th:nth-child(4))) {min-width: 520px !important;}
  :is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table table th,
  :is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table table td {padding: 12px 13px !important;font-size: 13px !important;}
  :is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table table thead th {font-size: 12.5px !important;}
  :is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table:has(thead th:nth-child(3))::before {
    content: "↔ Deslizá para ver las demás columnas";
    position: sticky;
    left: 0;
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 13px;
    background: #e7f8f6;
    color: #075968;
    font-size: 11.5px;
    font-weight: 670;
    border-bottom: 1px solid #b8e5df;
  }
}
@media print {
  :is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table {
    overflow: visible;
    box-shadow: none;
    border: 1px solid #cbd5e1;
    break-inside: avoid;
  }
  :is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table table {
    min-width: 0 !important;
    font-size: 10pt;
  }
  :is(body.single-post .entry-content, .editor-styles-wrapper) figure.wp-block-table:has(thead th:nth-child(3))::before {display: none;}
}
