/* ==========================================================================
   meteomurcia-modern.css  ·  tema "Observatorio" (oscuro)
   Capa visual para meteomurcia.com. Se carga DESPUÉS del CSS del tema y
   trabaja junto a Tailwind CSS por CDN (preflight desactivado).

   - Solo presentación, sin lógica.
   - Reestiliza la estructura heredada de WD-World (#page, #header,
     .leftSideBar, #main-copy, #footer, .ajaxDashboard, .ajaxSidebar, avisos)
     y evita desbordes en móvil del HTML que generan los includes PHP.
   - Para cambiar la marca, edita las variables de :root.
   ========================================================================== */

:root {
  --mm-bg:       #050816;
  --mm-card:     rgba(20, 32, 60, .78);   /* fondo de tarjetas: más claro = sube estos valores */
  --mm-line:     rgba(255, 255, 255, .09);
  --mm-ink:      #e2e8f0;
  --mm-muted:    #94a3b8;
  --mm-accent:   #22d3ee;   /* cian */
  --mm-accent-2: #67e8f9;
  --mm-soft:     rgba(34, 211, 238, .10);
  --mm-radius:   16px;
  --mm-sidebar:  14rem;
  --mm-font:     "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mm-mono:     "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

/* ---------- Base (sustituye al preflight de Tailwind, desactivado) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

html body {
  margin: 0;
  padding: 0;
  color: var(--mm-ink);
  font-family: var(--mm-font);
  font-size: 15px;
  line-height: 1.55;
  background:
    radial-gradient(60rem 28rem at 12% -8%, rgba(34, 211, 238, .11), transparent 60%),
    radial-gradient(50rem 26rem at 95% 0%, rgba(99, 102, 241, .10), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--mm-bg);
  background-attachment: fixed;
}

html body p { margin: 0 0 .75em; }
img { max-width: 100%; }
a { color: var(--mm-accent-2); }
::selection { background: rgba(34, 211, 238, .3); }

/* ---------- Contenedor ---------- */
html body #page {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

/* ---------- Cabecera ---------- */
html body #header {
  background: rgba(5, 8, 22, .78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--mm-ink);
  border-bottom: 1px solid var(--mm-line);
  cursor: pointer;
  position: relative;
}
html body #header a { color: var(--mm-accent-2); text-decoration: none; }
html body #header a:hover { text-decoration: underline; }
html body #header table { max-width: 100%; }

/* Gizmo AJAX en la cabecera */
html body #header .ajaxSidebar {
  width: auto;
  background: var(--mm-card);
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--mm-line);
  padding: .25rem .5rem;
}

/* Punto "en vivo" */
@keyframes mm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.mm-live-dot { animation: mm-pulse 1.8s ease-in-out infinite; }

/* ---------- Menú lateral (menubar.php) ---------- */
html body .leftSideBar {
  float: none;
  clear: none;
  width: auto;
  margin: 0 1rem 1rem;
  background: var(--mm-card);
  border-radius: var(--mm-radius);
  box-shadow: 0 0 0 1px var(--mm-line);
  padding: .5rem 0 .25rem;
  overflow: hidden;
  display: none;           /* en móvil se abre con el botón "Menú" (body.menu-open) */
}
html body.menu-open .leftSideBar { display: block; }

html body .leftSideBar .sideBarTitle {
  background: transparent;
  color: var(--mm-accent);
  font-family: var(--mm-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .85rem 1rem .3rem;
  margin: 0;
}
html body .leftSideBar ul { margin: 0 0 .5rem; padding: 0; list-style: none; }
html body .leftSideBar li { margin: 0; padding: 0; }
html body .leftSideBar a,
html body .leftSideBar a:visited {
  display: block;
  padding: .45rem 1rem;
  color: #cbd5e1;
  background: transparent;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
html body .leftSideBar a:hover {
  background: var(--mm-soft);
  color: #fff;
  border-left-color: var(--mm-accent);
}
html body .leftSideBar .thisPage {
  color: #fff;
  font-weight: 600;
  background: var(--mm-soft);
  border-left-color: var(--mm-accent);
}
html body .leftSideBar .sideBarText {
  color: var(--mm-muted);
  font-size: .85rem;
  line-height: 1.4;
  margin: .5rem 1rem 1rem;
}
html body .leftSideBar .sideBarText a {
  display: inline;
  padding: 0;
  border: 0;
  color: var(--mm-accent-2);
  text-decoration: underline;
}
html body .leftSideBar img { max-width: 100%; height: auto; }

/* ---------- Contenido principal ---------- */
html body #main-copy,
html body #main-copy-dark {
  background: transparent;
  color: var(--mm-ink);
  text-align: left;
  line-height: 1.55;
  margin: 0;
  padding: 1.25rem 1rem 1.5rem;
  border: 0;
}
html body .column-dark,
html body .column-light { background: transparent; color: inherit; }

html body #main-copy a { color: var(--mm-accent-2); text-decoration: none; }
html body #main-copy a:hover { text-decoration: underline; }

html body #main-copy h1,
html body #main-copy h2,
html body #main-copy h3 {
  color: #fff;
  font-family: var(--mm-font);
  font-style: normal;
  letter-spacing: -.01em;
}
html body #main-copy h1 { font-size: 1.5rem; font-weight: 700; margin: 1rem 0 .75rem; padding: 0; border: 0; }

html body #main-copy img { max-width: 100%; height: auto; }
html body #main-copy iframe { max-width: 100%; border: 0; }
html body #main-copy .ajaxDashboard,
html body #main-copy table { max-width: 100%; }
html body #main-copy img[alt="spacer"] { display: none; }   /* forzaba 620px de ancho mínimo */

/* Tablas de datos de los includes (previsión, etc.) */
html body #main-copy table { border-collapse: collapse; color: var(--mm-ink); }
html body #main-copy td,
html body #main-copy th { padding: .35rem .5rem; }

/* Dashboard AJAX */
html body .ajaxDashboard { width: 100%; }
html body .ajaxDashboard td { background: transparent; border: 0; color: var(--mm-ink); }
html body .ajaxDashboard .datahead {
  background: var(--mm-soft);
  color: var(--mm-accent-2);
  font-family: var(--mm-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .55rem;
  border-radius: 8px;
}
html body .ajaxDashboard .data1 {
  background: transparent;
  color: var(--mm-ink);
  font-family: var(--mm-font);
  font-size: .92rem;
  border-bottom: 1px solid var(--mm-line);
}

/* Gizmo / barra lateral AJAX */
html body .ajaxSidebar { background: transparent; }
html body .ajaxSidebar h2 {
  background: var(--mm-soft);
  color: var(--mm-accent-2);
  font-family: var(--mm-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 8px;
  margin-right: 0;
}
html body .ajaxSidebar td { background: transparent; }
html body .ajaxSidebar .data { color: var(--mm-accent-2); font-family: var(--mm-mono); }
html body .ajaxSidebar .meas { color: var(--mm-muted); background: transparent; }

/* Avisos meteorológicos */
html body .watchBox, html body .advisoryBox, html body .warningBox {
  border-radius: 12px;
  border: 0;
  padding: .75rem 1rem;
  margin: 0 0 1rem;
}

/* Formularios y selectores */
html body select,
html body input[type="text"] {
  max-width: 100%;
  color: var(--mm-ink);
  background-color: rgba(15, 23, 42, .8);
  border: 1px solid var(--mm-line);
  border-radius: 10px;
  padding: .5rem .65rem;
  font: inherit;
}

/* Traductor de Google sobre fondo oscuro */
#google_translate_element, #google_translate_element a, #google_translate_element span { color: var(--mm-muted) !important; }
#google_translate_element .goog-te-gadget-simple {
  background: rgba(15, 23, 42, .6) !important;
  border: 1px solid var(--mm-line) !important;
  border-radius: 10px;
  padding: .3rem .5rem !important;
}

/* ---------- Pie ---------- */
html body #footer {
  background: transparent;
  color: var(--mm-muted);
  font-size: .85rem;
  line-height: 1.6;
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--mm-line);
}
html body #footer a,
html body #footer a:visited { color: var(--mm-accent-2); font-weight: 500; text-decoration: none; }
html body #footer a:hover { text-decoration: underline; }

/* ---------- Escritorio ---------- */
@media (min-width: 768px) {
  html body #page { --mm-gutter: max(1rem, calc((100% - 80rem) / 2 + 1rem)); }

  html body .leftSideBar {
    display: block;
    float: left;
    clear: left;
    width: var(--mm-sidebar);
    margin: 1.25rem 0 1rem var(--mm-gutter);
  }
  html body #main-copy,
  html body #main-copy-dark {
    margin-left: calc(var(--mm-sidebar) + var(--mm-gutter));
    margin-right: var(--mm-gutter);
    padding: 1.25rem 1.5rem 2rem;
  }
}

/* ---------- Móvil ---------- */
@media (max-width: 767px) {
  html body #main-copy { padding: 1rem .75rem 1.25rem; }
  html body #main-copy table { font-size: .9rem; }
}

/* Celdas del gizmo AJAX: el tema antiguo las pintaba de blanco */
html body .ajaxSidebar td.data,
html body .ajaxSidebar td.meas,
html body #header .ajaxSidebar td { background: transparent; }
html body #header .ajaxSidebar .data { font-size: .78rem; }

/* ==========================================================================
   DASHBOARD AJAX  (ajax-dashboard.php)
   La tabla original (620px, con rowspan) se convierte en una rejilla de
   tarjetas SOLO con CSS: el PHP y los id que usa ajaxWDwx.js no se tocan.
   Filas del original:  1 actualizado · 2 cabeceras · 3 temp/viento/lluvia/previsión
                        4 cabeceras · 5 humedad/almanaque/luna · 6 cabeceras · 7 UV/solar
   ========================================================================== */
html body #main-copy .ajaxDashboard {
  width: 100% !important;
  max-width: none;
  font-size: .92rem !important;
  color: var(--mm-ink) !important;
}
html body #main-copy .ajaxDashboard table { color: inherit; }
html body #main-copy .ajaxDashboard > table {
  display: block;
  width: 100% !important;
  border: 0 !important;
  background: transparent;
}
html body #main-copy .ajaxDashboard > table:first-of-type > tbody {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 .75rem;
}
html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr { display: contents; }

/* celdas = tarjetas */
html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr > td {
  display: block;
  min-width: 0;
  margin: 0;
  padding: .5rem 1rem .9rem;
  text-align: left !important;
  vertical-align: top;
  color: var(--mm-ink);
  background: var(--mm-card);
  border: 1px solid var(--mm-line);
  border-top: 0;
  border-radius: 0 0 16px 16px;
}
/* fila 1: "Actualizado…" */
html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr:first-child > td {
  grid-column: 1 / -1;
  padding: 0 0 .85rem;
  background: none;
  border: 0;
  border-radius: 0;
  font-family: var(--mm-mono);
  font-size: .72rem;
  color: var(--mm-muted);
}
html body #main-copy .ajaxDashboard #ajaxindicator,
html body #main-copy .ajaxDashboard #ajaxdate,
html body #main-copy .ajaxDashboard #ajaxcounter { color: var(--mm-accent-2); }
/* cabeceras de tarjeta */
html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr > td.datahead {
  margin-top: .75rem;
  padding: .85rem 1rem .25rem;
  border: 1px solid var(--mm-line);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: var(--mm-card);
  color: var(--mm-accent);
  font-family: var(--mm-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
html body #main-copy .ajaxDashboard td.datahead a img { vertical-align: middle; margin-left: .35rem; }
/* los rowspan ya no los aplica el navegador (td en bloque): se declaran aquí */
html body #main-copy .ajaxDashboard > table:first-of-type td[rowspan="5"] { grid-row: span 5; }
html body #main-copy .ajaxDashboard > table:first-of-type td[rowspan="3"] { grid-row: span 3; }

/* tablas anidadas dentro de cada tarjeta */
html body #main-copy .ajaxDashboard td table {
  width: 100% !important;
  border: 0 !important;
  border-collapse: collapse;
  font-size: inherit !important;
}
html body #main-copy .ajaxDashboard td table td,
html body #main-copy .ajaxDashboard td table th {
  border: 0 !important;
  background: transparent;
  color: inherit;
  padding: .3rem .2rem;
  font-family: var(--mm-font);
  font-size: inherit !important;
}
html body #main-copy .ajaxDashboard td table .data1 { color: var(--mm-ink); }

/* filas etiqueta : valor (lluvia, humedad/barómetro, almanaque) */
html body #main-copy .ajaxDashboard tr:nth-child(3) > td:nth-child(3) table td.data1,
html body #main-copy .ajaxDashboard tr:nth-child(5) > td:nth-child(1) table td.data1,
html body #main-copy .ajaxDashboard tr:nth-child(5) > td:nth-child(2) table td.data1 {
  border-bottom: 1px solid var(--mm-line) !important;
  color: var(--mm-muted);
}
html body #main-copy .ajaxDashboard tr:nth-child(3) > td:nth-child(3) table td:last-child:not(:first-child),
html body #main-copy .ajaxDashboard tr:nth-child(5) > td:nth-child(1) table td:last-child:not(:first-child),
html body #main-copy .ajaxDashboard tr:nth-child(5) > td:nth-child(2) table td:last-child:not(:first-child) {
  text-align: right !important;
  color: #fff;
  font-family: var(--mm-mono);
  font-size: .85em !important;
}
html body #main-copy .ajaxDashboard tr:nth-child(3) > td:nth-child(3) table td[colspan] { color: var(--mm-muted); font-size: .8em !important; }

/* temperatura: protagonista */
html body #main-copy .ajaxDashboard #ajaxtemp {
  display: inline-block;
  color: #fff;
  font-family: var(--mm-font);
  font-size: 2.6rem !important;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}
html body #main-copy .ajaxDashboard #ajaxheatcolorword { color: var(--mm-accent-2); font-weight: 600; }
html body #main-copy .ajaxDashboard #ajaxwind { color: #fff; font-family: var(--mm-mono); font-size: 1.8rem; font-weight: 700; }
html body #main-copy .ajaxDashboard #ajaxrain,
html body #main-copy .ajaxDashboard #ajaxhumidity,
html body #main-copy .ajaxDashboard #ajaxbaro,
html body #main-copy .ajaxDashboard #ajaxuv,
html body #main-copy .ajaxDashboard #ajaxsolar { color: #fff; }
html body #main-copy .ajaxDashboard .meas { color: var(--mm-muted); }
html body #main-copy .ajaxDashboard strong { color: var(--mm-muted); font-weight: 500; }

/* imágenes: iconos sobre fondo oscuro */
html body #main-copy .ajaxDashboard img { border: 0; }
html body #main-copy .ajaxDashboard #ajaxconditionicon2 img,
html body #main-copy .ajaxDashboard #ajaxthermometer img { border-radius: 10px; max-width: none; }
html body #main-copy .ajaxDashboard #ajaxwindiconwr img { background: #e2e8f0; border-radius: 50%; padding: 2px; max-width: none; }
html body #main-copy .ajaxDashboard td.datahead a img,
html body #main-copy .ajaxDashboard p.datahead a img { background: #e2e8f0; border-radius: 4px; padding: 1px; }

/* enlaces rápidos "En vivo / Tendencia / Gráficas…" (p.datahead dentro de la tarjeta de temperatura) */
html body #main-copy .ajaxDashboard p.datahead {
  margin: .75rem 0 0;
  padding: .75rem 0 0;
  border-top: 1px solid var(--mm-line);
  background: none;
  color: var(--mm-muted);
  font-family: var(--mm-font);
  font-size: .8rem;
  letter-spacing: 0;
  line-height: 2;
  text-align: left;
  text-transform: none;
}

/* fila con las 3 capturas (Weather34 / WD Live / Gauges) */
html body #main-copy .ajaxDashboard > table:nth-of-type(2) > tbody {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: .75rem;
  margin-top: .75rem;
}
html body #main-copy .ajaxDashboard > table:nth-of-type(2) > tbody > tr { display: contents; }
html body #main-copy .ajaxDashboard > table:nth-of-type(2) td {
  display: block;
  padding: .4rem;
  background: var(--mm-card);
  border: 1px solid var(--mm-line);
  border-radius: 16px;
}
html body #main-copy .ajaxDashboard > table:nth-of-type(2) img {
  display: block;
  width: 100% !important;
  height: auto !important;
  border-radius: 12px;
}

/* ---- Escritorio ancho: 4 columnas como la tabla original ---- */
@media (min-width: 1100px) {
  html body #main-copy .ajaxDashboard > table:first-of-type > tbody {
    grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  }
}

/* ---- Móvil / tablet: una columna, cada cabecera junto a su tarjeta ---- */
@media (max-width: 1099px) {
  html body #main-copy .ajaxDashboard > table:first-of-type td[rowspan] { grid-row: auto; }
  html body #main-copy .ajaxDashboard tr:nth-child(2) > td:nth-child(1) { order: 10; }
  html body #main-copy .ajaxDashboard tr:nth-child(3) > td:nth-child(1) { order: 11; }
  html body #main-copy .ajaxDashboard tr:nth-child(2) > td:nth-child(2) { order: 20; }
  html body #main-copy .ajaxDashboard tr:nth-child(3) > td:nth-child(2) { order: 21; }
  html body #main-copy .ajaxDashboard tr:nth-child(2) > td:nth-child(3) { order: 30; }
  html body #main-copy .ajaxDashboard tr:nth-child(3) > td:nth-child(3) { order: 31; }
  html body #main-copy .ajaxDashboard tr:nth-child(2) > td:nth-child(4) { order: 40; }
  html body #main-copy .ajaxDashboard tr:nth-child(3) > td:nth-child(4) { order: 41; }
  html body #main-copy .ajaxDashboard tr:nth-child(4) > td:nth-child(1) { order: 50; }
  html body #main-copy .ajaxDashboard tr:nth-child(5) > td:nth-child(1) { order: 51; }
  html body #main-copy .ajaxDashboard tr:nth-child(4) > td:nth-child(2) { order: 60; }
  html body #main-copy .ajaxDashboard tr:nth-child(5) > td:nth-child(2) { order: 61; }
  html body #main-copy .ajaxDashboard tr:nth-child(4) > td:nth-child(3) { order: 70; }
  html body #main-copy .ajaxDashboard tr:nth-child(5) > td:nth-child(3) { order: 71; }
  html body #main-copy .ajaxDashboard tr:nth-child(6) > td:nth-child(1) { order: 80; }
  html body #main-copy .ajaxDashboard tr:nth-child(7) > td:nth-child(1) { order: 81; }
  html body #main-copy .ajaxDashboard tr:nth-child(6) > td:nth-child(2) { order: 90; }
  html body #main-copy .ajaxDashboard tr:nth-child(7) > td:nth-child(2) { order: 91; }
}

/* ==========================================================================
   PREVISIÓN  (WC-forecast.php  ->  table.WCforecast)
   Cada periodo (columna) se dibuja como una tarjeta: título, icono, texto,
   probabilidades y temperatura. Sin tocar el PHP.
   ========================================================================== */
html body #main-copy table.WCforecast {
  width: 100% !important;
  border: 0 !important;
  background: transparent;
}
html body #main-copy table.WCforecast tr { background: transparent !important; }
html body #main-copy table.WCforecast td { color: var(--mm-ink); border: 0 !important; }
html body #main-copy table.WCforecast b { color: #fff; }
/* cabecera / selector de ciudad */
html body #main-copy table.WCforecast > tbody > tr > td > b,
html body #main-copy table.WCforecast > tbody > tr > td > span { font-family: var(--mm-mono); font-size: .75rem; letter-spacing: .06em; }
html body #main-copy table.WCforecast select { margin: .25rem 0 .75rem; }

/* tabla de iconos: columnas-tarjeta */
html body #main-copy table.WCforecast table {
  width: 100% !important;
  border-collapse: separate;
  border-spacing: .6rem 0;
  margin: 0 -.6rem;
  width: calc(100% + 1.2rem) !important;
  table-layout: fixed;
}
html body #main-copy table.WCforecast table td {
  padding: .3rem .4rem;
  background: var(--mm-card);
  border-left: 1px solid var(--mm-line) !important;
  border-right: 1px solid var(--mm-line) !important;
  font-size: .85rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
html body #main-copy table.WCforecast table tr:first-child td {
  padding-top: .9rem;
  border-top: 1px solid var(--mm-line) !important;
  border-radius: 16px 16px 0 0;
  color: var(--mm-accent-2);
  font-family: var(--mm-mono);
  font-size: .68rem !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html body #main-copy table.WCforecast table tr:last-child td {
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--mm-line) !important;
  border-radius: 0 0 16px 16px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}
html body #main-copy table.WCforecast table img { border-radius: 12px; max-width: 100%; height: auto; }

/* móvil: las columnas-tarjeta se desplazan en horizontal en vez de aplastarse */
@media (max-width: 767px) {
  html body #main-copy table.WCforecast { display: block; overflow-x: auto; }
  html body #main-copy table.WCforecast table { width: 44rem !important; margin: 0; }
}
html body #main-copy table.WCforecast > tbody > tr > td { padding: 0; }

/* ==========================================================================
   Protección frente al <body style="…"> de WC-forecast.php
   Si WC-forecast.php no está en "modo include" ($doIncludeWC), imprime un
   documento HTML completo con <body style="font-family:Verdana; font-size:12px;
   background-color:#FFFFFF">. El navegador fusiona ese estilo en el <body> real
   (solo ocurre en index.php) y pintaba la página de blanco. Un !important en la
   hoja de estilos gana a un estilo en línea sin !important.
   ========================================================================== */
html body {
  background-color: var(--mm-bg) !important;
  color: var(--mm-ink) !important;
  font-family: var(--mm-font) !important;
  font-size: 15px !important;
}

/* ---------- Menú horizontal por categorías (menu-modern.php) ---------- */
html body #mm-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(5, 8, 22, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--mm-line);
}
html body #mm-nav .mm-bar { max-width: 80rem; margin: 0 auto; padding: .4rem 1rem; position: relative; }
html body #mm-nav ul { list-style: none; margin: 0; padding: 0; }
html body #mm-nav li { margin: 0; padding: 0; }
html body #mm-nav a,
html body #mm-nav a:visited { color: var(--mm-ink); text-decoration: none; font-weight: 500; }
html body #mm-nav .mm-nav-toggle,
html body #mm-nav .mm-trigger {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  font: 500 1.1rem/1 var(--mm-font, 'Outfit', system-ui, sans-serif);
  color: var(--mm-ink); background: transparent; border: 0; border-radius: .6rem; padding: .6rem .8rem;
}
html body #mm-nav .mm-trigger svg { transition: transform .15s; opacity: .7; }
html body #mm-nav .mm-cat.is-open > .mm-trigger svg { transform: rotate(180deg); }
html body #mm-nav .mm-trigger:hover,
html body #mm-nav .mm-cat.is-open > .mm-trigger,
html body #mm-nav .mm-direct > a:hover { background: rgba(34, 211, 238, .1); color: var(--mm-accent-2); }
html body #mm-nav .mm-cat.is-active > .mm-trigger,
html body #mm-nav .mm-direct.is-active > a { color: var(--mm-accent); box-shadow: inset 0 -2px 0 var(--mm-accent); border-radius: .6rem .6rem 0 0; }
html body #mm-nav .mm-direct > a { display: inline-flex; padding: .6rem .8rem; border-radius: .6rem; font-size: 1.1rem; }
html body #mm-nav .mm-nav-toggle { background: rgba(255,255,255,.06); box-shadow: 0 0 0 1px var(--mm-line); }

/* panel desplegable (vertical) */
html body #mm-nav .mm-panel {
  display: none; position: absolute; z-index: 1001; min-width: 14rem; max-width: 22rem;
  margin-top: 0; padding: .4rem;
  background: rgba(2, 6, 18, .97); border-radius: .9rem;
  box-shadow: 0 0 0 1px var(--mm-line), 0 18px 40px rgba(0,0,0,.55);
  max-height: 75vh; overflow-y: auto;
}
html body #mm-nav .mm-cat.is-open > .mm-panel { display: block; }
html body #mm-nav .mm-panel a { display: block; padding: .5rem .7rem; border-radius: .5rem; font-size: 1rem; }
html body #mm-nav .mm-panel a:hover { background: rgba(34, 211, 238, .12); color: var(--mm-accent-2); }
html body #mm-nav .mm-panel a[aria-current="page"] { color: var(--mm-accent); background: rgba(34, 211, 238, .08); }
html body #mm-nav .mm-grouplabel,
html body #mm-nav .mm-grouplink {
  display: block; padding: .6rem .7rem .2rem; font: 500 .68rem/1.2 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .12em; text-transform: uppercase; color: var(--mm-accent) !important;
}
html body #mm-nav .mm-group > ul { padding-left: .4rem; border-left: 1px solid var(--mm-line); margin-left: .7rem; }

@media (min-width: 768px) {
  html body #mm-nav .mm-nav-toggle { display: none; }
  html body #mm-nav .mm-list { display: flex; flex-wrap: wrap; gap: .15rem; }
  html body #mm-nav .mm-cat { position: relative; }
  html body #mm-nav .mm-cat > .mm-panel { left: 0; top: 100%; }
}
@media (max-width: 767px) {
  html body #mm-nav .mm-list { display: none; margin-top: .4rem; max-height: 70vh; overflow-y: auto; }
  html body #mm-nav.is-open .mm-list { display: block; }
  html body #mm-nav .mm-trigger { width: 100%; justify-content: space-between; }
  html body #mm-nav .mm-direct > a { display: flex; width: 100%; }
  html body #mm-nav .mm-panel { position: static; max-width: none; max-height: none; box-shadow: none; background: rgba(255,255,255,.03); margin: 0 0 .3rem; }
  /* con el menú en cabecera, el lateral antiguo no se muestra en móvil */
  html body #page:has(#mm-nav) .leftSideBar { display: none !important; }
}
/* escritorio: lateral estrecho (solo publicidad, logos y utilidades) */
@media (min-width: 768px) {
  html body #page:has(#mm-nav) { --mm-sidebar: 10rem; }
}

/* pantallas medianas: la última categoría se alinea a su derecha para no salirse */
@media (min-width: 768px) and (max-width: 1000px) {
  html body #mm-nav .mm-cat:last-child > .mm-panel { left: auto; right: 0; }
}

/* ---------- Sin lateral izquierdo: contenido a todo el ancho ---------- */
html body .leftSideBar { display: none !important; }
@media (min-width: 768px) {
  html body #main-copy,
  html body #main-copy-dark { margin-left: var(--mm-gutter); margin-right: var(--mm-gutter); }
}

/* Tarjeta "Luna": icono de la fase lunar más grande */
html body .ajaxDashboard img[src*="moon"] {
  width: 6.5rem !important;
  height: 6.5rem !important;
  object-fit: contain;
}

/* Fondo común de tarjetas con imágenes, streaming, mapas, publicidad, etc. */
html body .mm-surface { background: var(--mm-card); }

/* Quitados del panel: accesos con imágenes a Weather34, WDLive y Gauges (tabla final de ajax-dashboard.php).
   Selectores amplios (por enlace o por imagen, con cualquier ruta) para que funcionen en cualquier versión del panel. */
html body table:not(:has(table)):has(a[href*="weather34dashboard"]),
html body table:not(:has(table)):has(a[href*="gauges-live"]),
html body table:not(:has(table)):has(img[src*="W34" i]),
html body table:not(:has(table)):has(img[src*="Gauges" i]),
html body a[href*="weather34dashboard"],
html body a[href*="gauges-live"],
html body a[href*="FreshWDL"]:has(> img[src*="WDL" i]),
html body td:has(> a[href*="weather34dashboard"]),
html body td:has(> a[href*="gauges-live"]),
html body td:has(> a[href*="FreshWDL"] > img[src*="WDL" i]),
html body img[src*="W34" i],
html body img[src*="WDL.PNG" i],
html body img[src*="Gauges" i] { display: none !important; }

/* ==========================================================================
   PÁGINA METAR (include-metar-display.php)
   Ese include reutiliza <div class="ajaxDashboard"> con una tabla distinta
   (una celda por aeropuerto, tabla interior de 320px). Aquí se deshacen las
   reglas del panel de datos para esa estructura y se pinta una tarjeta por
   aeropuerto en una rejilla. Se detecta con :has(table[width="320"]).
   ========================================================================== */
html body #main-copy .ajaxDashboard:has(table[width="320"]):not(#mm-x) > table:first-of-type > tbody {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 1rem !important;
}
/* filas separadoras (&nbsp;) fuera */
html body #main-copy .ajaxDashboard:has(table[width="320"]):not(#mm-x) > table:first-of-type > tbody > tr:not(:has(table)) { display: none !important; }
/* la celda exterior no es tarjeta: solo contiene la tarjeta */
html body #main-copy .ajaxDashboard:has(table[width="320"]):not(#mm-x) > table:first-of-type > tbody > tr > td,
html body #main-copy .ajaxDashboard:has(table[width="320"]):not(#mm-x) > table:first-of-type > tbody > tr:first-child > td {
  grid-column: auto !important;
  grid-row: auto !important;
  order: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-family: var(--mm-font) !important;
  font-size: inherit !important;
  color: var(--mm-ink) !important;
}
/* la tarjeta */
html body #main-copy .ajaxDashboard:has(table[width="320"]):not(#mm-x) td > table[width="320"] {
  width: 100% !important;
  height: 100%;
  background: var(--mm-card);
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--mm-line);
  padding: .5rem .75rem .75rem;
}
html body #main-copy .ajaxDashboard:has(table[width="320"]):not(#mm-x) td > table[width="320"] td {
  font-family: var(--mm-font) !important;
  font-size: .92rem !important;
  color: var(--mm-ink) !important;
  border-bottom: 0 !important;
  padding: .3rem .25rem !important;
}
html body #main-copy .ajaxDashboard:has(table[width="320"]):not(#mm-x) td > table[width="320"] td[align="right"]:not([colspan]) { text-align: right !important; color: var(--mm-muted) !important; }
html body #main-copy .ajaxDashboard:has(table[width="320"]):not(#mm-x) td > table[width="320"] td[align="left"] { text-align: left !important; font-family: var(--mm-font) !important; }
html body #main-copy .ajaxDashboard:has(table[width="320"]):not(#mm-x) td > table[width="320"] td[align="left"] b { color: #fff; font-weight: 600; }
/* título (ICAO - nombre) */
html body #main-copy .ajaxDashboard:has(table[width="320"]):not(#mm-x) td > table[width="320"] td.datahead {
  color: var(--mm-accent) !important;
  font-family: var(--mm-mono) !important;
  font-size: .72rem !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding-top: .5rem !important;
}
/* METAR en crudo */
html body #main-copy .ajaxDashboard:has(table[width="320"]):not(#mm-x) td > table[width="320"] td[colspan] small {
  color: var(--mm-muted);
  font-family: var(--mm-mono);
  font-size: .7rem;
  word-break: break-all;
}
html body #main-copy .ajaxDashboard:has(table[width="320"]):not(#mm-x) td > table[width="320"] td[align="center"] { text-align: center !important; font-family: var(--mm-font) !important; }

/* ==========================================================================
   Cabecera fija (cabecera + menú) y fila "actualización + datos gizmo"
   header.php mueve la línea de actualización del dashboard y el gizmo a #mm-row2
   ========================================================================== */
#mm-row2 {
  flex: 0 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem;
  margin-top: -.15rem; padding-top: .35rem; border-top: 1px solid var(--mm-line);
}
#mm-row2 #mm-upd { flex: 1 1 auto; font: .72rem/1.5 var(--mm-mono); color: var(--mm-muted); text-align: left; }
#mm-row2 #mm-upd #ajaxindicator, #mm-row2 #mm-upd #ajaxdate, #mm-row2 #mm-upd #ajaxcounter, #mm-row2 #mm-upd #ajaxtime { color: var(--mm-accent-2); }
#mm-row2 > .basis-72 { flex: 0 1 auto !important; flex-basis: auto !important; }
#mm-row2 .ajaxSidebar { padding: .15rem .5rem; }
@media (min-width: 768px) {
  html body #header { position: sticky; top: 0; z-index: 1002; }
  html body #mm-nav { top: var(--mm-hh, 7.5rem); }
}
@media (min-width: 768px) {
  html body #header { background: rgba(5, 8, 22, .97); }
  /* al hacer scroll la cabecera fija se compacta */
  html.mm-scrolled #header > div { padding-top: .25rem; padding-bottom: .25rem; row-gap: .1rem; }
        html.mm-scrolled #header h1 + div { display: none; }
    html.mm-scrolled #mm-row2 { margin-top: 0; padding-top: .15rem; }
}
@media (min-width: 768px) { html body #mm-nav { background: rgba(5, 8, 22, .97); } }

/* ---- v37: fila "actualización + gizmo" robusta: todo en UNA línea, tipografía pequeña ---- */
html body #header #mm-row2 { flex: 0 0 100% !important; width: 100% !important; max-width: 100% !important; order: 99; display: flex !important; flex-wrap: wrap; align-items: center; gap: .15rem 1.25rem; }
html body #header #mm-row2 #mm-upd, html body #header #mm-row2 #mm-upd * { font: 500 .72rem/1.5 var(--mm-mono) !important; color: var(--mm-muted); }
html body #header #mm-row2 #mm-upd #ajaxindicator, html body #header #mm-row2 #mm-upd #ajaxdate,
html body #header #mm-row2 #mm-upd #ajaxcounter, html body #header #mm-row2 #mm-upd #ajaxtime { color: var(--mm-accent-2); }
html body #header #mm-row2 #mm-upd b { font-weight: 500 !important; }
/* gizmo: sus líneas (cualquier estructura) pasan a una sola línea horizontal */
html body #header #mm-row2 > .basis-72 { flex: 0 1 auto !important; min-width: 0; margin-left: auto; }
html body #header #mm-row2 > .basis-72 br { display: none !important; }
html body #header #mm-row2 > .basis-72 table, html body #header #mm-row2 > .basis-72 tbody,
html body #header #mm-row2 > .basis-72 tr { display: contents !important; }
html body #header #mm-row2 > .basis-72, html body #header #mm-row2 > .basis-72 .ajaxSidebar { display: flex !important; flex-wrap: wrap; align-items: center; gap: .1rem 1rem; background: none !important; box-shadow: none !important; padding: 0 !important; }
html body #header #mm-row2 > .basis-72 * { font: 500 .72rem/1.5 var(--mm-mono) !important; color: var(--mm-ink); width: auto !important; max-width: none !important; float: none !important; margin: 0; padding: 0; }
html body #header #mm-row2 > .basis-72 td, html body #header #mm-row2 > .basis-72 div, html body #header #mm-row2 > .basis-72 p { display: inline-block !important; white-space: nowrap; }
html body #header #mm-row2 > .basis-72 .meas { color: var(--mm-muted); margin-right: .3rem; }
html body #header #mm-row2 > .basis-72 .data { color: var(--mm-accent-2); }

/* ---- v38: selector de idioma en la línea del menú, arriba a la derecha ---- */
html body #mm-nav .mm-bar { display: flex; flex-wrap: wrap; align-items: center; }
html body #mm-nav .mm-nav-toggle { order: 1; }
html body #mm-nav #mm-lang { order: 2; margin-left: auto; text-align: right; }
html body #mm-nav #mm-lang > div { padding: .15rem .4rem; font-size: .8rem; }
html body #mm-nav .mm-list { order: 3; }
@media (max-width: 767px) { html body #mm-nav .mm-list { flex-basis: 100%; } }
@media (min-width: 768px) {
  html body #mm-nav .mm-list { order: 1; flex: 1 1 auto; }
  html body #mm-nav #mm-lang { order: 2; flex: 0 0 auto; }
}
html body #header #mm-row2 .mm-sep { color: var(--mm-muted); margin: 0 .5rem; }
html body #header #mm-row2 > .basis-72 .mm-sep { margin: 0 .5rem !important; color: var(--mm-muted) !important; }

/* v41: sin rendija entre la cabecera fija y el menú: se solapan 2px (la cabecera tapa el borde superior del menú) y ambos son opacos */
@media (min-width: 768px) {
  html body #header { background: #050816; }
  html body #mm-nav { background: #050816; top: calc(var(--mm-hh, 7.5rem) - 2px); padding-top: 2px; }
}
html body #header #mm-row2 #mm-upd #gizmoindicator, html body #header #mm-row2 #mm-upd #gizmodate, html body #header #mm-row2 #mm-upd #gizmotime { color: var(--mm-accent-2); }

/* ---- Logo nuevo (newlogo.png) en lugar de la nube; si la imagen no carga, se conserva la nube ---- */
html body #mm-logo.mm-has-logo { background: none !important; box-shadow: none !important; width: auto !important; min-width: 0; padding: 0; }
html body #mm-logo.mm-has-logo > svg { display: none; }
html body #mm-logo.mm-has-logo > img { display: block; height: 3.5rem; width: auto; min-height: 0; max-width: 12rem; object-fit: contain; }
@media (min-width: 640px) { html body #mm-logo.mm-has-logo > img { height: 4.5rem; } }

/* logo: contenedor con esquinas redondeadas y fondo azul clarito (se aplica por CSS, sin editar la imagen) */
html body #mm-logo.mm-has-logo {
  background: #cfe8ff !important; border-radius: 1rem; overflow: hidden; padding: .25rem;
  box-shadow: 0 8px 20px rgba(14, 165, 233, .22) !important;
}
html body #mm-logo.mm-has-logo > img { height: calc(3.5rem - .5rem); border-radius: .6rem; }
@media (min-width: 640px) { html body #mm-logo.mm-has-logo > img { height: calc(4.5rem - .5rem); } }

/* logo: fondo degradado vertical, azul mar abajo -> azul cielo claro arriba */
html body #mm-logo.mm-has-logo { background: linear-gradient(to top, #0b6fb8 0%, #4aa8e0 45%, #bfe6ff 100%) !important; }

/* ==========================================================================
   v55 · Móvil (<768px): tarjetas del dashboard de 2 en 2 (Resumen/Temperatura a ancho completo)
   ========================================================================== */
@media (max-width: 767px) {
  html body #main-copy .ajaxDashboard > table:first-of-type > tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .5rem; }
  html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr:nth-child(2) > td:nth-child(1), html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr:nth-child(3) > td:nth-child(1) { grid-column: 1 / -1; }
  html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr:nth-child(2) > td:nth-child(2) { order: 20; }
  html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr:nth-child(3) > td:nth-child(2) { order: 22; }
  html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr:nth-child(2) > td:nth-child(3) { order: 21; }
  html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr:nth-child(3) > td:nth-child(3) { order: 23; }
  html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr:nth-child(2) > td:nth-child(4) { order: 30; }
  html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr:nth-child(3) > td:nth-child(4) { order: 32; }
  html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr:nth-child(4) > td:nth-child(1) { order: 31; }
  html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr:nth-child(5) > td:nth-child(1) { order: 33; }
  html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr:nth-child(4) > td:nth-child(2) { order: 40; }
  html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr:nth-child(5) > td:nth-child(2) { order: 42; }
  html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr:nth-child(4) > td:nth-child(3) { order: 41; }
  html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr:nth-child(5) > td:nth-child(3) { order: 43; }
  html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr:nth-child(6) > td:nth-child(1) { order: 50; }
  html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr:nth-child(7) > td:nth-child(1) { order: 52; }
  html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr:nth-child(6) > td:nth-child(2) { order: 51; }
  html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr:nth-child(7) > td:nth-child(2) { order: 53; }
  /* tarjetas estrechas: menos relleno y letra algo menor para que quepan los datos */
  html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr:not(:first-child) > td:not(:nth-child(1)) { padding-inline: .55rem; }
  html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr:not(:first-child):not(:nth-child(2)):not(:nth-child(3)) > td, 
  html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr:nth-child(3) > td:not(:nth-child(1)) { font-size: .82rem; }
  html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr > td.datahead, html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr > td.datahead * { font-size: .62rem !important; letter-spacing: .1em; }
  html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr:nth-child(2) > td:nth-child(1).datahead, html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr:nth-child(2) > td:nth-child(1).datahead * { font-size: .68rem !important; letter-spacing: .14em; }
  html body #main-copy .ajaxDashboard > table:first-of-type > tbody > tr:nth-child(3) > td:nth-child(3) td:last-child { white-space: nowrap; font-size: .76rem !important; }
  html body #main-copy .ajaxDashboard #ajaxwind { font-size: 1.5rem; }
}

/* ==========================================================================
   v56 · Móvil (<768px): cabecera (logo, título, actualización + gizmo) fija junto al menú.
   Al hacer scroll se compacta: se ocultan la ubicación/enlaces, la insignia y la temperatura
   (el título y el logo mantienen su tamaño).
   ========================================================================== */
@media (max-width: 767px) {
  html body #header { position: sticky; top: 0; z-index: 1002; background: #050816; }
  html body #mm-nav { background: #050816; top: calc(var(--mm-hh, 7.5rem) - 2px); padding-top: 2px; }
  html.mm-scrolled #header > div { padding-top: .25rem; padding-bottom: .25rem; row-gap: .1rem; }
  html.mm-scrolled #header h1 + div { display: none; }
  html.mm-scrolled #header h1 > span + span { display: none; }
  html.mm-scrolled #header > div > .ml-auto { display: none; }
  html.mm-scrolled #mm-row2 { margin-top: 0; padding-top: .1rem; }
}

/* v69 · Previsión (WC-forecast.php): colores en línea más claros para el fondo oscuro.
   Rojo #ff0000 -> #ff8a8a (máximas), azul #0000ff -> #8ec5ff (mínimas), verde (lluvia) -> #6ee7a0, azul oscuro (nieve) -> #a5c8ff */
html body table.WCforecast span[style*="#ff0000" i],
html body table.WCforecast span[style*="rgb(255, 0, 0)"] { color: #ff8a8a !important; }
html body table.WCforecast span[style*="#0000ff" i],
html body table.WCforecast span[style*="rgb(0, 0, 255)"] { color: #8ec5ff !important; }
html body table.WCforecast span[style*="color: green"],
html body table.WCforecast td[style*="color: green"] { color: #6ee7a0 !important; }
html body table.WCforecast span[style*="darkblue"],
html body table.WCforecast td[style*="darkblue"] { color: #a5c8ff !important; }

/* v71 · Tarjeta de temperatura: máx/mín en tonos claros y termómetro (thermometer.php) con la escala en blanco.
   El termómetro es una imagen: se invierte la luminosidad (negro -> blanco) conservando los tonos rojo/azul,
   se aclara un poco y "screen" hace desaparecer el fondo oscuro/negro sobre la tarjeta. */
html body .ajaxDashboard #ajaxtempmax,
html body .ajaxDashboard #ajaxtempmax * { color: #ff5c5c !important; }
html body .ajaxDashboard #ajaxtempmin,
html body .ajaxDashboard #ajaxtempmin * { color: #38b6ff !important; }
html body .ajaxDashboard span[style*="#ff0000" i],
html body .ajaxDashboard span[style*="red" i] { color: #ff5c5c !important; }
html body .ajaxDashboard span[style*="#0000ff" i],
html body .ajaxDashboard span[style*="blue" i]:not([style*="darkblue"]) { color: #38b6ff !important; }
html body .ajaxDashboard #ajaxthermometer img.mm-thermo-filter {
  filter: invert(1) hue-rotate(180deg) brightness(1.2) saturate(1.1);
  mix-blend-mode: screen;
  background: transparent !important;
}

/* ==========================================================================
   v73 · Página de previsión completa (wxforecast.php -> WC-forecast2.php)
   Esa página imprime la tabla FUERA de #main-copy, así que se estiliza sin depender de él.
   - Cabecera + iconos: mismas tarjetas-columna que en el index.
   - Texto detallado (tabla de 2 columnas título | texto): cada periodo = una tarjeta
     con título mono cian y el texto debajo, en rejilla de 2 columnas (1 en móvil).
   ========================================================================== */
html body center:has(> table.WCforecast) { display: block; max-width: 80rem; margin: 0 auto; padding: 0 1rem 1rem; text-align: left; }
html body table.WCforecast { width: 100% !important; border: 0 !important; background: transparent; margin: 0 0 1rem; }
html body table.WCforecast tr { background: transparent !important; }
html body table.WCforecast td { color: var(--mm-ink); border: 0 !important; }
html body table.WCforecast b { color: #fff; }
html body table.WCforecast select { margin: .25rem 0 .75rem; }

/* iconos (tabla anidada): tarjetas-columna */
html body table.WCforecast table { width: calc(100% + 1.2rem) !important; margin: 0 -.6rem; border-collapse: separate; border-spacing: .6rem 0; table-layout: fixed; }
html body table.WCforecast table td {
  padding: .3rem .4rem; background: var(--mm-card);
  border-left: 1px solid var(--mm-line) !important; border-right: 1px solid var(--mm-line) !important;
  font-size: .85rem; line-height: 1.35; overflow-wrap: anywhere;
}
html body table.WCforecast table tr:first-child td {
  padding-top: .9rem; border-top: 1px solid var(--mm-line) !important; border-radius: 16px 16px 0 0;
  color: var(--mm-accent-2); font-family: var(--mm-mono); font-size: .68rem !important; letter-spacing: .08em; text-transform: uppercase;
}
html body table.WCforecast table tr:last-child td {
  padding-bottom: .9rem; border-bottom: 1px solid var(--mm-line) !important; border-radius: 0 0 16px 16px;
  color: #fff; font-size: 1rem; font-weight: 700;
}
html body table.WCforecast table img { border-radius: 12px; max-width: 100%; height: auto; }

/* texto detallado (tabla sin tablas dentro): una tarjeta por periodo */
html body table.WCforecast:not(:has(table)) { display: block; }
html body table.WCforecast:not(:has(table)) > tbody {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); gap: .85rem; align-items: start;
}
html body table.WCforecast:not(:has(table)) > tbody > tr {
  display: block; background: var(--mm-card) !important; border: 1px solid var(--mm-line); border-radius: 18px; padding: .9rem 1.1rem 1rem;
}
html body table.WCforecast:not(:has(table)) > tbody > tr > td { display: block; width: auto !important; padding: 0 !important; text-align: left !important; }
html body table.WCforecast:not(:has(table)) > tbody > tr > td:first-child { margin-bottom: .45rem; }
html body table.WCforecast:not(:has(table)) > tbody > tr > td:first-child br { display: none; }
html body table.WCforecast:not(:has(table)) > tbody > tr > td:first-child b {
  font-family: var(--mm-mono); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--mm-accent-2);
}
html body table.WCforecast:not(:has(table)) > tbody > tr > td:last-child { font-size: .98rem; line-height: 1.6; color: var(--mm-ink); }
html body table.WCforecast:not(:has(table)) span[style*="#ff0000" i] { color: #ff5c5c !important; }
html body table.WCforecast:not(:has(table)) span[style*="#0000ff" i] { color: #38b6ff !important; }

@media (max-width: 767px) {
  html body table.WCforecast { display: block; overflow-x: auto; }
  html body table.WCforecast table { width: 44rem !important; margin: 0; }
  html body table.WCforecast:not(:has(table)) { overflow-x: visible; }
  html body table.WCforecast:not(:has(table)) > tbody { grid-template-columns: 1fr; }
}

/* ==========================================================================
   v74 · Previsión por periodos (WC-forecast2.php): <div class="column-dark"><table border="4">
   Cabecera (ciudad) + una fila por periodo con [icono + temperatura | texto].
   Cada fila pasa a ser una tarjeta con el icono y la temperatura a la izquierda y el texto a la derecha.
   ========================================================================== */
html body div.column-dark:has(> table[border="4"]) { display: block; max-width: 80rem; margin: 0 auto; padding: 0 1rem 1rem; text-align: left; }
html body div.column-dark > table[border="4"] { display: block; width: 100% !important; border: 0 !important; background: transparent; margin: 0; }
html body div.column-dark > table[border="4"] > tbody {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); gap: .85rem; align-items: stretch;
}
/* cabecera: ciudad */
html body div.column-dark > table[border="4"] > tbody > tr:first-child {
  display: block; grid-column: 1 / -1; background: transparent !important; padding: 0 .1rem;
}
html body div.column-dark > table[border="4"] > tbody > tr:first-child > td {
  display: block; padding: 0 !important; border: 0 !important; background: transparent !important;
  font-family: var(--mm-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mm-accent-2) !important;
}
html body div.column-dark > table[border="4"] > tbody > tr:first-child * { color: var(--mm-accent-2) !important; font: inherit !important; }
/* una tarjeta por periodo */
html body div.column-dark > table[border="4"] > tbody > tr:not(:first-child) {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .9rem; align-items: center;
  background: var(--mm-card) !important; border: 1px solid var(--mm-line); border-radius: 18px; padding: .9rem 1rem;
}
html body div.column-dark > table[border="4"] > tbody > tr:not(:first-child) > td {
  display: block; width: auto !important; padding: 0 !important; border: 0 !important; background: transparent !important;
}
/* izquierda: icono + temperatura */
html body div.column-dark > table[border="4"] > tbody > tr:not(:first-child) > td:first-child {
  text-align: center !important; color: #fff; font-size: .9rem; line-height: 1.3; overflow-wrap: anywhere;
}
html body div.column-dark > table[border="4"] > tbody > tr:not(:first-child) > td:first-child img {
  display: block; margin: 0 auto .35rem; width: 56px; height: auto; border-radius: 14px;
}
html body div.column-dark > table[border="4"] > tbody > tr:not(:first-child) > td:first-child b,
html body div.column-dark > table[border="4"] > tbody > tr:not(:first-child) > td:first-child i { color: #fff; font-style: normal; }
html body div.column-dark > table[border="4"] > tbody > tr:not(:first-child) > td:first-child span { font-size: 1.05rem; font-weight: 700; }
html body div.column-dark > table[border="4"] span[style*="#ff0000" i] { color: #ff5c5c !important; }
html body div.column-dark > table[border="4"] span[style*="#0000ff" i] { color: #38b6ff !important; }
/* derecha: texto */
html body div.column-dark > table[border="4"] > tbody > tr:not(:first-child) > td:last-child {
  text-align: left !important; color: var(--mm-ink); font-size: .98rem; line-height: 1.6;
}
@media (max-width: 480px) {
  html body div.column-dark > table[border="4"] > tbody > tr:not(:first-child) { grid-template-columns: 5rem minmax(0, 1fr); gap: .7rem; padding: .8rem .8rem; }
  html body div.column-dark > table[border="4"] > tbody > tr:not(:first-child) > td:first-child img { width: 46px; }
  html body div.column-dark > table[border="4"] > tbody > tr:not(:first-child) > td:last-child { font-size: .92rem; }
}
html body div.column-dark > table[border="4"] > tbody > tr:not(:first-child) > td:first-child br { display: none; }
html body div.column-dark > table[border="4"] > tbody > tr:first-child > td { text-align: left !important; }

/* v75 · temperatura siempre en su propia línea, debajo del texto del icono */
html body div.column-dark > table[border="4"] > tbody > tr:not(:first-child) > td:first-child span[style*="color"] {
  display: block; margin-top: .3rem; font-size: 1.1rem; font-weight: 700; white-space: nowrap;
}
html body div.column-dark > table[border="4"] > tbody > tr:not(:first-child) > td:first-child { display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* v76 · rejilla de tarjetas por periodo (la crea el script de footer.php a partir de la fila de iconos) */
html body table.WCforecast .mm-fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .7rem; width: 100%; margin: .25rem 0 1rem; }
html body table.WCforecast .mm-fc-card {
  display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center;
  background: var(--mm-card); border: 1px solid var(--mm-line); border-radius: 18px; padding: .8rem .5rem .9rem; min-width: 0; overflow-wrap: anywhere;
}
html body table.WCforecast .mm-fc-card > div { color: var(--mm-ink); font-size: .85rem; line-height: 1.3; text-align: center !important; width: 100%; }
html body table.WCforecast .mm-fc-card .mm-fc-t { font-family: var(--mm-mono); font-size: .66rem !important; letter-spacing: .08em; text-transform: uppercase; color: var(--mm-accent-2); }
html body table.WCforecast .mm-fc-card .mm-fc-t * { font-size: inherit !important; color: inherit !important; }
html body table.WCforecast .mm-fc-card .mm-fc-i img { display: block; margin: 0 auto; width: 56px; height: auto; border-radius: 14px; }
html body table.WCforecast .mm-fc-card .mm-fc-T { color: #fff; font-size: 1.1rem; font-weight: 700; margin-top: .15rem; }
html body table.WCforecast .mm-fc-card .mm-fc-T span[style*="#ff0000" i] { color: #ff5c5c !important; }
html body table.WCforecast .mm-fc-card .mm-fc-T span[style*="#0000ff" i] { color: #38b6ff !important; }
html body table.WCforecast .mm-fc-card .mm-fc-r, html body table.WCforecast .mm-fc-card .mm-fc-r * { color: #6ee7a0 !important; }
html body table.WCforecast .mm-fc-card .mm-fc-n, html body table.WCforecast .mm-fc-card .mm-fc-n * { color: #a5c8ff !important; }

/* v77 · index / indexdesktop en móvil: las columnas de la previsión pasan a una rejilla de tarjetas (3 por fila) en vez de una sola fila con scroll */
html body table.WCforecast .mm-fc-g-mobile { display: none; }
@media (max-width: 767px) {
  html body table.WCforecast .mm-fc-g-mobile { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
  html body table.WCforecast table.mm-fc-mhide { display: none !important; }
  html body table.WCforecast .mm-fc-g-mobile .mm-fc-card { padding: .7rem .3rem .8rem; border-radius: 16px; }
  html body table.WCforecast .mm-fc-g-mobile .mm-fc-card > div { font-size: .78rem; hyphens: manual; overflow-wrap: break-word; word-break: normal; }
  html body table.WCforecast .mm-fc-g-mobile .mm-fc-t { font-size: .6rem !important; letter-spacing: .05em; }
  html body table.WCforecast .mm-fc-g-mobile .mm-fc-i img { width: 46px; }
  html body table.WCforecast .mm-fc-g-mobile .mm-fc-T { font-size: 1rem; }
}

/* v80 · enlaces rápidos del resumen: 2 líneas de 2 enlaces; el enlace es el nombre (sin flecha) */
html body .ajaxDashboard p.datahead .mm-ql-row { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; justify-content: flex-start; }
html body .ajaxDashboard p.datahead .mm-ql {
  color: var(--mm-accent-2) !important; text-decoration: none; font-weight: 500; font-size: .85rem; line-height: 1.9; padding: .1rem 0; white-space: nowrap;
}
html body .ajaxDashboard p.datahead .mm-ql:hover, html body .ajaxDashboard p.datahead .mm-ql:focus-visible { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
html body .ajaxDashboard p.datahead:has(.mm-ql-row) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem 1rem; }
html body .ajaxDashboard p.datahead .mm-ql-row { display: contents; }
html body .ajaxDashboard p.datahead .mm-ql { white-space: normal; }

/* ==========================================================================
   v81 · Datos históricos (wxwuhistory.php + WU-History-inc.php): tablas con el diseño oscuro.
   Se apoya en las clases que ya trae la página (#wuwrap, colorTop, colorBox, selectorBox, dateTable,
   #typeTable, summaryTable, dailyTable, obsTable, pageTop, csvLink, bottomBar). No cambia el HTML.
   ========================================================================== */
html body #wuwrap { background: transparent !important; color: var(--mm-ink) !important; font-family: var(--mm-font); font-size: .9rem; max-width: 80rem; margin: 0 auto; padding: 0 1rem 1rem; }
html body #wuwrap #content { background: transparent !important; width: auto !important; padding: 0 !important; }
html body #wuwrap a { color: var(--mm-accent-2) !important; text-decoration: none; }
html body #wuwrap a:hover { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
html body #wuwrap .heading { color: #fff !important; font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; }
html body #wuwrap .titleBar { background: transparent !important; color: var(--mm-muted) !important; border-top: 1px solid var(--mm-line) !important; margin: .5rem 0 1rem; padding: .5rem 0; }
html body #wuwrap .b, html body #wuwrap b, html body #wuwrap strong { color: #fff; }

/* cabecera de sección (la barra de color con esquinas) */
html body #wuwrap .colorTop { border-collapse: separate; border-spacing: 0; table-layout: auto; background: var(--mm-card); border: 1px solid var(--mm-line); border-radius: 18px 18px 0 0; overflow: hidden; }
html body #wuwrap .colorTop td, html body #wuwrap .colorTop th { background: transparent !important; color: #fff !important; border: 0 !important; height: auto !important; }
html body #wuwrap .colorTop .hLeft, html body #wuwrap .colorTop .hRight, html body #wuwrap .colorTop .sLeft, html body #wuwrap .colorTop .sRight { display: none; }
html body #wuwrap .colorTop .hCenter { padding: .75rem 1rem !important; font-family: var(--mm-mono); font-size: .8rem !important; letter-spacing: .1em; text-transform: uppercase; color: var(--mm-accent-2) !important; line-height: 1.4 !important; }
html body #wuwrap .colorTop .hMenu { padding: .75rem 1rem !important; font-size: .8rem !important; }
html body #wuwrap .colorTop .sCenter { display: none; }
/* cuerpo */
html body #wuwrap .colorBox { background: var(--mm-card); border: 1px solid var(--mm-line) !important; border-top: 0 !important; border-radius: 0 0 18px 18px; padding: 1rem !important; margin: 0 0 1.25rem; }
html body #wuwrap .colorBottom { display: none; }
html body #wuwrap .bottomBar { background: var(--mm-card) !important; color: var(--mm-muted) !important; border: 1px solid var(--mm-line) !important; border-radius: 14px; padding: .6rem 1rem !important; font-weight: 500; }

/* selector de fecha y unidades */
html body #wuwrap .selectorBox { background: rgba(255,255,255,.04) !important; border: 1px solid var(--mm-line) !important; border-radius: 14px; padding: .5rem .75rem; margin-bottom: 1rem; }
html body #wuwrap .dateTable { border-collapse: separate; border-spacing: .35rem; }
html body #wuwrap .dateTable td { padding: .15rem !important; }
html body #wuwrap .dateTable a { display: block; width: auto !important; min-width: 6rem; margin: 0 !important; padding: .35rem .8rem; border: 1px solid var(--mm-line); border-radius: 999px; background: rgba(255,255,255,.04); text-align: center; font-size: .85rem; }
html body #wuwrap .dateTable a:hover { background: rgba(56,189,248,.15); text-decoration: none; }
html body #wuwrap select, html body #wuwrap input[type="text"], html body #wuwrap input[type="submit"], html body #wuwrap input[type="button"], html body #wuwrap button {
  background: #0b1226 !important; color: var(--mm-ink) !important; border: 1px solid var(--mm-line) !important; border-radius: 10px; padding: .3rem .6rem; font-family: inherit; font-size: .85rem;
}
html body #wuwrap input[type="submit"], html body #wuwrap input[type="button"], html body #wuwrap button { cursor: pointer; }
html body #wuwrap input[type="submit"]:hover, html body #wuwrap input[type="button"]:hover, html body #wuwrap button:hover { background: rgba(56,189,248,.15) !important; }
html body #wuwrap #unitmenu, html body #wuwrap #unitmenu a { color: var(--mm-muted) !important; font-size: .8rem; }

/* pestañas Diario / Semanal / Mensual / ... */
html body #wuwrap #typeTable { background: transparent !important; border-collapse: separate; border-spacing: .35rem 0; margin: .75rem 0 1rem; width: 100%; }
html body #wuwrap #typeTable td { width: auto !important; padding: 0 !important; border: 0 !important; background: transparent !important; text-align: center; }
html body #wuwrap #typeTable td.activeTab { padding: .45rem .8rem !important; background: linear-gradient(135deg, #38bdf8, #2563eb) !important; color: #fff !important; border-radius: 999px; font-weight: 600; font-size: .85rem !important; }
html body #wuwrap #typeTable td.inactiveTab { padding: .45rem .8rem !important; border: 1px solid var(--mm-line) !important; border-radius: 999px; background: rgba(255,255,255,.04) !important; }
html body #wuwrap #typeTable td.inactiveTab a { display: block; font-size: .85rem; }

/* tablas de datos */
html body #wuwrap table.summaryTable, html body #wuwrap table.dailyTable, html body #wuwrap table.obsTable {
  width: 100% !important; border-collapse: separate; border-spacing: 0; background: transparent; margin: 0;
}
/* cada bloque de datos va dentro de .mm-scroll (lo crea footer.php): barra de scroll horizontal cuando no cabe */
html body #wuwrap .mm-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: .5rem 0 1rem; border-radius: 12px; scrollbar-width: thin; scrollbar-color: rgba(56,189,248,.5) transparent; }
html body #wuwrap .mm-scroll::-webkit-scrollbar { height: 8px; }
html body #wuwrap .mm-scroll::-webkit-scrollbar-thumb { background: rgba(56,189,248,.45); border-radius: 8px; }
@media (max-width: 767px) {
  html body #wuwrap { padding: 0 .5rem 1rem; }
  html body #wuwrap .colorBox { padding: .6rem !important; }
  html body #wuwrap .mm-scroll > table { width: max-content !important; min-width: 100% !important; }
  html body #wuwrap .mm-scroll > table td { white-space: nowrap; }
  html body #wuwrap table.mm-fix { table-layout: fixed !important; width: 100% !important; max-width: 100% !important; }
  html body #wuwrap table.mm-fix > tbody > tr > td, html body #wuwrap table.mm-fix > tr > td { min-width: 0 !important; max-width: 100%; }
  html body #wuwrap .mm-scroll { contain: inline-size; width: 100%; }
  html body #wuwrap .colorBox { min-width: 0; max-width: 100%; }
}
html body #wuwrap table.summaryTable thead tr td, html body #wuwrap table.dailyTable thead tr td, html body #wuwrap table.obsTable thead tr td,
html body #wuwrap table.summaryTable thead tr th, html body #wuwrap table.dailyTable thead tr th, html body #wuwrap table.obsTable thead tr th {
  background: rgba(56,189,248,.10) !important; background-image: none !important; color: var(--mm-accent-2) !important;
  font-family: var(--mm-mono); font-size: .68rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  border: 0 !important; border-bottom: 1px solid var(--mm-line) !important; padding: .55rem .5rem !important; text-align: center; white-space: nowrap; position: sticky; top: 0;
}
html body #wuwrap table.summaryTable tbody tr td, html body #wuwrap table.dailyTable tbody tr td, html body #wuwrap table.obsTable tbody tr td {
  background: transparent !important; color: var(--mm-ink) !important; border: 0 !important; border-bottom: 1px solid var(--mm-line) !important;
  padding: .45rem .5rem !important; font-size: .85rem; font-variant-numeric: tabular-nums; text-align: center; white-space: nowrap;
}
html body #wuwrap table.summaryTable tbody tr td:first-child, html body #wuwrap table.dailyTable tbody tr td:first-child, html body #wuwrap table.obsTable tbody tr td.date { text-align: left; color: #fff !important; font-weight: 600; }
html body #wuwrap table.obsTable tbody tr td.HdgLt, html body #wuwrap table.obsTable tbody tr td.HdgDk { background: rgba(255,255,255,.05) !important; border-bottom: 1px solid var(--mm-line) !important; color: #fff !important; font-weight: 600; }
html body #wuwrap table.obsTable tbody tr td.BodyDk { background: rgba(255,255,255,.03) !important; }
html body #wuwrap table.obsTable tbody tr td.Left { border-left: 1px solid var(--mm-line) !important; }
html body #wuwrap table.obsTable tbody tr td.Right { border-right: 1px solid var(--mm-line) !important; }
html body #wuwrap table.summaryTable tbody tr:hover td, html body #wuwrap table.dailyTable tbody tr:hover td, html body #wuwrap table.obsTable tbody tr:hover td { background: rgba(56,189,248,.10) !important; }
html body #wuwrap table.dailyTable tbody tr:nth-child(even) td { background: rgba(255,255,255,.025) !important; }
/* colores en línea (font color / span) legibles sobre fondo oscuro */
html body #wuwrap font[color="#FF0000" i], html body #wuwrap font[color="red" i], html body #wuwrap span[style*="#ff0000" i], html body #wuwrap span[style*="color:red" i], html body #wuwrap span[style*="color: red" i] { color: #ff5c5c !important; }
html body #wuwrap font[color="#0000FF" i], html body #wuwrap font[color="blue" i], html body #wuwrap span[style*="#0000ff" i], html body #wuwrap span[style*="color:blue" i], html body #wuwrap span[style*="color: blue" i] { color: #38b6ff !important; }

/* enlaces superiores y CSV */
html body #wuwrap .pageTop { font-size: .8rem; font-family: var(--mm-font); }
html body #wuwrap .pageTop a { color: var(--mm-accent-2) !important; }
html body #wuwrap #csvLink a { display: inline-block; background: rgba(255,255,255,.04) !important; border: 1px solid var(--mm-line) !important; border-radius: 999px; padding: .35rem 1rem !important; text-decoration: none; }
html body #wuwrap #csvLink a:hover { background: rgba(56,189,248,.15) !important; }
html body #wuwrap .logo { filter: brightness(1.8); }

/* v87 · histórico: selector de fecha centrado y sin desbordar (fila que se adapta, sin celdas vacías) */
html body #wuwrap .dateTable td.nobr:not(:has(a)) { display: none !important; }
html body #wuwrap .dateTable, html body #wuwrap .dateTable > tbody > tr > td.full { width: 100% !important; max-width: 100%; }
html body #wuwrap .dateTable form { margin: 0; }
html body #wuwrap .dateTable form > table { margin: 0 auto !important; width: 100%; max-width: 100%; }
html body #wuwrap .dateTable form > table > tbody > tr, html body #wuwrap .dateTable form > table > tr { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; }
html body #wuwrap .dateTable form > table td { display: block; padding: 0 !important; }
html body #wuwrap .dateTable form select, html body #wuwrap .dateTable form input[type="submit"] { max-width: 100%; margin: 0 !important; }
@media (max-width: 767px) {
  html body #wuwrap .selectorBox { padding: .6rem .5rem; }
  html body #wuwrap #typeTable > tbody > tr, html body #wuwrap #typeTable > tr { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
  html body #wuwrap #typeTable { border-spacing: 0; }
}

/* v88 · selector de fecha: siempre en una sola línea (los desplegables se encogen si hace falta) */
html body #wuwrap .dateTable form > table > tbody > tr, html body #wuwrap .dateTable form > table > tr { flex-wrap: nowrap; gap: .35rem; }
html body #wuwrap .dateTable form > table td { flex: 0 1 auto; min-width: 0; }
html body #wuwrap .dateTable form > table td:has(select) { flex: 1 1 auto; }
html body #wuwrap .dateTable form select { width: 100% !important; min-width: 0; padding-left: .6rem !important; padding-right: 1.4rem !important; text-overflow: ellipsis; }
html body #wuwrap .dateTable form input[type="submit"] { flex: none; padding-left: .8rem !important; padding-right: .8rem !important; }
@media (max-width: 767px) {
  html body #wuwrap .dateTable form select { font-size: .8rem !important; padding: .4rem 1.15rem .4rem .45rem !important; background-position: right .3rem center !important; background-size: .7rem !important; }
  html body #wuwrap .dateTable form input[type="submit"] { font-size: .8rem !important; padding: .4rem .6rem !important; }
  html body #wuwrap .dateTable form > table td:has(select) { flex: 1 1 0; }
  html body #wuwrap .dateTable form > table td:first-child { flex-grow: 2; }
}
@media (max-width: 767px) {
  html body #wuwrap .dateTable form > table td:has(select), html body #wuwrap .dateTable form > table td:first-child { flex: 0 1 auto; }
  html body #wuwrap .dateTable form select { width: auto !important; }
}
@media (max-width: 767px) {
  html body #wuwrap #typeTable td.activeTab, html body #wuwrap #typeTable td.inactiveTab { padding: .4rem .65rem !important; }
  html body #wuwrap #typeTable td.inactiveTab a { font-size: .8rem; }
}
