/* movil-c.css — 11 nov 2026 · «C · Barra del mapa + pestañas arriba» (elegida por Lucas)
   Todo el dashboard en el CELULAR con el mismo estilo que la pestaña Mapa: barra blanca arriba (logo, servidor ▾,
   actualizar, ☰) y debajo una fila de pestañas que se desliza. Solo con html.mx (lo pone js/movil-c.js en < 768 px).
   En la PC no cambia nada. Rollback: deploy\deshacer-movil-c.bat (o quitar las 2 líneas de index.html).
   11 nov 2026 (movil-c-fix): el espacio de la barra pasa al contenedor que se desplaza; antes quedaba un segundo scroll de 118 px. */
html.mx .topbar, html.mx body #content #gs-bar, html.mx #menu-inferior, html.mx #menu-inferior-hoja { display: none !important; }
/* el espacio de la barra va dentro del contenedor que se desplaza (.main-content): así no aparece un segundo scroll */
html.mx body { padding-bottom: 0 !important; }
html.mx .main-content { padding-bottom: env(safe-area-inset-bottom) !important; }   /* ya no está la barra de abajo */
html.mx .main-content { padding-top: calc(118px + env(safe-area-inset-top)) !important; scroll-padding-top: 124px; }
html.mx.mx-1 .main-content { padding-top: calc(74px + env(safe-area-inset-top)) !important; }   /* una sola sección: sin fila de pestañas */
html.mx.mapa-solo:has(#mapa.active) #mx-hd, html.mx.mapa-solo:has(#mapa.active) #mx-tabs { display: none !important; }   /* el Mapa tiene su propia barra igual */

#mx-hd { position: fixed; z-index: 900; top: calc(10px + env(safe-area-inset-top)); left: 10px; right: 10px; height: 54px; display: flex; align-items: center; gap: 8px; padding: 0 7px 0 12px;
  background: #fff; border: 1px solid #d0d7de; border-left: 3px solid #E5262D; border-radius: 6px; box-shadow: 0 2px 8px rgba(15, 23, 42, .10);
  font-family: Inter, system-ui, sans-serif; color: #24292e; box-sizing: border-box; }
#mx-hd .lg { width: 34px; height: auto; flex: none; display: block; }
#mx-hd .tt { flex: 1; min-width: 0; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; color: inherit; font: inherit; }
#mx-hd .tt b { display: block; font-size: 16px; line-height: 1.15; font-weight: 800; letter-spacing: .2px; }
#mx-hd .tt b i { font-style: normal; color: #E5262D; }
#mx-hd .tt span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #57606a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mx-hd .tt span:before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; flex: none; }
#mx-hd .tt span.warn:before { background: #f59e0b; } #mx-hd .tt span.crit:before { background: #e11d48; }
#mx-hd .tt span:after { content: " ▾"; font-size: 11px; }
.mx-rb { width: 40px; height: 40px; border-radius: 6px; border: 1px solid #d0d7de; background: #fff; color: #24292e; display: grid; place-items: center; position: relative; padding: 0; cursor: pointer; flex: none; }
.mx-rb svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mx-rb em { position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; border-radius: 9px; background: #E5262D; color: #fff; font: 700 10px/17px Inter, sans-serif; font-style: normal; text-align: center; padding: 0 4px; box-shadow: 0 0 0 2px #fff; }
.mx-rb em[hidden] { display: none; }
.mx-rb.gira svg { animation: mx-gira .8s linear; } @keyframes mx-gira { to { transform: rotate(360deg); } }

#mx-tabs { position: fixed; z-index: 899; top: calc(72px + env(safe-area-inset-top)); left: 0; right: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 10px 6px; }
#mx-tabs::-webkit-scrollbar { display: none; }
#mx-tabs[hidden] { display: none; }
#mx-tabs button { flex: none; height: 36px; padding: 0 12px; border: 1px solid #d0d7de; border-radius: 4px; background: #fff; color: #24292e; font: 600 13px Inter, system-ui, sans-serif; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); }
#mx-tabs button.on { color: #1f62e0; box-shadow: inset 0 -2px 0 #1f62e0; }
#mx-tabs button em { background: #E5262D; color: #fff; border-radius: 8px; padding: 1px 5px; font: 700 10px/1.3 Inter, sans-serif; font-style: normal; }
#mx-tabs button i { width: 8px; height: 8px; border-radius: 50%; background: #e11d48; } #mx-tabs button i.warn { background: #f59e0b; }

#mx-ov { position: fixed; inset: 0; z-index: 950; background: rgba(15, 23, 42, .28); display: none; font-family: Inter, system-ui, sans-serif; color: #24292e; }
#mx-ov.on { display: block; }
#mx-ov .dr { position: absolute; top: 0; right: 0; bottom: 0; width: 84%; max-width: 360px; overflow: auto; background: #fff; border-left: 1px solid #d0d7de; padding: calc(14px + env(safe-area-inset-top)) 0 calc(20px + env(safe-area-inset-bottom)); box-sizing: border-box; }
#mx-ov .x { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; }
#mx-ov .h { font: 700 11px Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #57606a; margin: 16px 14px 6px; }
#mx-ov .h:first-of-type { margin-top: 8px; }
#mx-ov .row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 16px; border: 0; border-bottom: 1px solid #eaeef2; background: none; color: #24292e; font: 500 14.5px Inter, sans-serif; text-align: left; cursor: pointer; }
#mx-ov .row.on { background: #f1f3f5; font-weight: 700; }
#mx-ov .row .s { margin-left: auto; font: 500 12px "JetBrains Mono", ui-monospace, monospace; color: #6e7781; white-space: nowrap; }
#mx-ov .row .s.ok { color: #1a7f37; } #mx-ov .row .s.warn { color: #9a6700; } #mx-ov .row .s.crit { color: #cf222e; }
#mx-ov .kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 14px; }
#mx-ov .kpi div { border: 1px solid #d0d7de; border-left: 3px solid #1f62e0; border-radius: 4px; padding: 9px 11px; }
#mx-ov .kpi div.ok { border-left-color: #16a34a; } #mx-ov .kpi div.crit { border-left-color: #e11d48; }
#mx-ov .kpi b { display: block; font: 700 19px "JetBrains Mono", ui-monospace, monospace; }
#mx-ov .kpi small { color: #57606a; font-size: 11.5px; }

/* contenido: mismas esquinas que el mapa (casi rectas) */
html.mx .md1-k, html.mx .md1-m, html.mx .md1-card, html.mx .server-card { border-radius: 6px !important; }

/* 11 nov 2026 · «P2 · Cartel con texto»: deslizar hacia abajo para actualizar (ver movil-c.js) */
html.mx body, html.mx .main-content { overscroll-behavior-y: contain; }   /* sin la recarga propia del navegador */
#mx-ptr { display: none; }
html.mx #mx-ptr { display: flex; position: fixed; left: 0; right: 0; top: calc(118px + env(safe-area-inset-top)); z-index: 898; justify-content: center; pointer-events: none; font-family: Inter, system-ui, sans-serif; }
html.mx.mx-1 #mx-ptr { top: calc(74px + env(safe-area-inset-top)); }
#mx-ptr .t { background: #fff; border: 1px solid #d0d7de; border-left: 3px solid #1f62e0; border-radius: 4px; padding: 7px 12px; font: 600 12.5px Inter, sans-serif; color: #24292e; box-shadow: 0 2px 8px rgba(15, 23, 42, .10); opacity: 0; }
#mx-ptr.ok .t { border-left-color: #16a34a; }
#mx-ptr .t small { display: block; font-weight: 500; color: #57606a; font-size: 11px; }
