/* TendenciasFX · Indicadores económicos por país · estilos de la herramienta v1.0 (16-10-2026)
   Va después de _comun/herramientas.css (usa sus variables y sus clases tfx-herr-*) y solo trae lo propio de esta
   herramienta (tfx-ma-*), para no tocar la hoja común. Todo en grises: «alto», «medio» y «bajo» no dicen si algo es
   bueno o malo, solo si es habitual o raro para ese país. */

.tfx-ma-frase { margin: 0 0 10px; font-size: 18px; line-height: 1.55; color: var(--tinta); }
.tfx-ma-sello { margin: 0 0 16px; font: 500 14px/1.45 var(--quick); color: var(--tinta2); }
.tfx-ma-marco { margin: 0 0 14px; }
.tfx-ma-leyenda { margin: 6px 0 4px; font-size: 14px; line-height: 1.55; color: var(--tinta2); }

/* la tabla de un país */
.tfx-ma-tabla { min-width: 100%; font-size: 15px; }
.tfx-ma-tabla thead th { white-space: nowrap; }
.tfx-ma-tabla td, .tfx-ma-tabla tbody th { vertical-align: top; }
.tfx-ma-ind { min-width: 160px; }
.tfx-ma-nom { display: block; font: 600 15.5px/1.3 var(--quick); color: var(--tinta); }
.tfx-ma-det { display: block; margin-top: 2px; font: 500 12.5px/1.35 var(--quick); color: var(--tenue); }
.tfx-ma-nota { display: block; margin-top: 4px; font: 500 12px/1.35 var(--quick); color: var(--tinta2); }
.tfx-ma-val { white-space: nowrap; }
.tfx-ma-val strong { font: 700 19px/1.2 var(--quick); color: var(--tinta); }
.tfx-ma-fec span { display: block; }
.tfx-ma-fec .tfx-ma-n { white-space: nowrap; }
.tfx-ma-fec .tfx-ma-ant { margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: var(--tenue); }
.tfx-ma-sp { width: 130px; color: var(--gris); }
.tfx-ma-spark { display: block; width: 120px; height: 32px; overflow: visible; }
.tfx-ma-spark circle { fill: var(--verde-texto); }
.tfx-ma-his { min-width: 230px; }
.tfx-ma-nivel { display: inline-block; padding: 1px 9px; font: 700 12px/1.6 var(--quick); letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--gris); }
.tfx-ma-bajo { background: #eceeef; color: var(--tinta2); border-color: #b9bbc0; }
.tfx-ma-medio { background: #fff; color: var(--tinta); border-color: var(--gris); }
.tfx-ma-alto { background: var(--gris); color: #fff; }
.tfx-ma-poco { background: #fff; color: var(--tenue); border-color: #b9bbc0; border-style: dashed; }
.tfx-ma-rango { position: relative; display: inline-block; width: 92px; height: 6px; margin: 0 6px 2px; vertical-align: middle; background: linear-gradient(90deg, #eceeef, #b9bbc0); }
.tfx-ma-rango i { position: absolute; top: -4px; width: 10px; height: 14px; margin-left: -5px; background: var(--gris); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--gris); }
.tfx-ma-txt { display: block; margin-top: 5px; font-size: 13.5px; line-height: 1.4; color: var(--tinta); }
.tfx-ma-mm { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--tenue); }
.tfx-ma-fue { white-space: nowrap; }
.tfx-ma-fue a { color: var(--verde-texto); }
.tfx-ma-sin { color: var(--tenue); font-size: 14px; line-height: 1.45; }

/* la tabla del índice */
.tfx-ma-indice thead th { padding: 0; }
.tfx-ma-ord { display: block; width: 100%; margin: 0; padding: 10px 14px; border: 0; background: none; font: inherit; text-align: inherit; color: inherit; cursor: pointer; }
.tfx-ma-ord::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: #9a9ca1; border-bottom: 0; vertical-align: middle; opacity: .55; }
.tfx-ma-ord:hover, .tfx-ma-ord:focus-visible { color: var(--verde-texto); outline: 0; }
th[aria-sort="ascending"] .tfx-ma-ord::after { border-top-color: var(--gris); border-bottom: 0; opacity: 1; }
th[aria-sort="descending"] .tfx-ma-ord::after { border: 4px solid transparent; border-bottom-color: var(--gris); border-top: 0; opacity: 1; }
.tfx-ma-indice tbody th { position: sticky; left: 0; background: #fff; z-index: 1; white-space: nowrap; }
.tfx-ma-indice tbody tr:nth-child(even) th { background: var(--t-alterna); }
.tfx-ma-indice tbody th a { font-weight: 600; color: var(--tinta); text-decoration: underline dotted #a3a6ad; text-underline-offset: 3px; }
.tfx-ma-indice tbody th a:hover { color: var(--verde-texto); text-decoration-color: currentColor; }
.tfx-ma-indice td { text-align: right; white-space: nowrap; font-weight: 600; }
.tfx-ma-indice thead th:not(:first-child) .tfx-ma-ord { text-align: right; }
.tfx-ma-nd { color: #9a9ca1; font-weight: 400 !important; }

/* los otros países */
.tfx-ma-otros { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; }
.tfx-ma-otros li { margin: 0; }
.tfx-ma-otros a { color: var(--tinta); text-decoration: underline dotted #a3a6ad; text-underline-offset: 3px; font-weight: 600; }
.tfx-ma-otros a:hover { color: var(--verde-texto); text-decoration-color: currentColor; }

/* la versión para insertar */
.tfx-ma-selector { margin: 0 0 12px; }
.tfx-ma-selector select { max-width: 100%; min-height: 40px; padding: 6px 10px; font: 600 15px/1.3 var(--quick); color: var(--tinta); background: #fff; border: 1px solid var(--t-borde); }

@media (max-width: 760px) {
  .tfx-ma-frase { font-size: 16.5px; }
  .tfx-ma-sp { width: auto; }
  .tfx-ma-his { min-width: 0; }
  .tfx-herr-tabla-apilable .tfx-ma-val strong { font-size: 18px; }
  .tfx-herr-tabla-apilable .tfx-ma-sin { padding: 8px 12px 12px; }
  .tfx-herr-tabla-apilable .tfx-ma-sin::before { display: none; }
  .tfx-ma-indice { font-size: 13.5px; }
  .tfx-ma-indice th, .tfx-ma-indice td { padding: 8px 8px; }
  .tfx-ma-ord { padding: 8px 8px; }
}
