/* barra-servidores.css — 5 nov 2026 · opción «S3», elegida por Lucas: la barra de servidores (#gs-bar) con el estilo de las
   tarjetas KPI del tablero (borde fino, franja de color por estado, nombre en mayúscula chica) y la disponibilidad de vía
   pública de cada servidor a la derecha. También para el usuario de un solo servidor (una tarjeta a lo ancho).
   Solo presentación: los botones, el clic, el estado y los avisos son los de siempre (js/pagina/index.js).
   Rollback: deploy\deshacer-barra-servidores.bat (quita las 2 líneas de index.html). */
html.bs3 { --bs-ok: #15803d; --bs-okb: #16a34a; --bs-warn: #b45309; --bs-warnb: #f59e0b; --bs-crit: #be123c; --bs-critb: #e11d48;
  --bs-tx2: #475569; --bs-tx3: #64748b; --bs-ln: #e2e8f0; --bs-ln2: #cbd5e1; --bs-bg: #fff; --bs-ac: #2563eb; }
html.bs3[data-theme="dark"] { --bs-ok: #4ade80; --bs-warn: #fbbf24; --bs-crit: #fb7185; --bs-tx2: #a9b4c2; --bs-tx3: #8b95a3;
  --bs-ln: #2b323c; --bs-ln2: #3a4350; --bs-bg: #161b22; --bs-ac: #60a5fa; }

html.bs3 #gs-bar { display: block !important; background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin-bottom: 12px !important; }
html.bs3.gs-solo #gs-bar { display: block !important; }   /* «S3 para todos»: el usuario de un solo servidor también ve su tarjeta */
html.bs3 #gs-bar .gs-label, html.bs3 #gs-bar .gs-hint, html.bs3 .gs-chip-icon, html.bs3 .gs-chip-dot { display: none !important; }
html.bs3 #gs-chips { display: grid !important; grid-auto-flow: column !important; grid-auto-columns: minmax(0, 1fr) !important; gap: 10px !important; width: 100% !important; overflow: visible !important; }
html.bs3 #gs-chips .gs-chip { all: unset !important; box-sizing: border-box !important; position: relative !important; cursor: pointer !important; display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important; grid-template-rows: auto auto !important; column-gap: 12px !important; row-gap: 4px !important; align-content: center !important;
  background: var(--bs-bg) !important; border: 1px solid var(--bs-ln) !important; border-radius: 8px !important; padding: 10px 14px 10px 16px !important; min-height: 58px !important;
  transition: border-color .15s ease, box-shadow .15s ease !important; }
html.bs3 #gs-chips .gs-chip:hover { border-color: var(--bs-ln2) !important; }
html.bs3 #gs-chips .gs-chip:focus-visible { outline: 2px solid var(--bs-ac) !important; outline-offset: 2px !important; }
html.bs3 #gs-chips .gs-chip::before { content: "" !important; display: block !important; position: absolute !important; left: -1px !important; right: auto !important; top: 10px !important; bottom: 10px !important;
  height: auto !important; width: 3px !important; border-radius: 0 2px 2px 0 !important; background: var(--bs-okb) !important; }
html.bs3 #gs-chips .gs-chip.est-warn::before { background: var(--bs-warnb) !important; }
html.bs3 #gs-chips .gs-chip.est-crit::before { background: var(--bs-critb) !important; }
html.bs3 #gs-chips .gs-chip.est-na::before { background: #94a3b8 !important; }
html.bs3 #gs-chips .gs-chip.on { border-color: var(--bs-ac) !important; box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important; }
html.bs3 .gs-cell-n { grid-column: 1 !important; grid-row: 1 !important; font: 600 11px/1.2 Inter, system-ui, sans-serif !important; text-transform: uppercase !important; letter-spacing: .06em !important; color: var(--bs-tx2) !important; }
html.bs3 .gs-chip.on .gs-cell-n { color: var(--bs-ac) !important; }
html.bs3 .gs-cell-s { grid-column: 1 !important; grid-row: 2 !important; min-width: 0 !important; font: 600 13px/1.25 Inter, system-ui, sans-serif !important; color: var(--bs-tx2) !important; }
html.bs3 .gs-cell-m { font-weight: 500 !important; color: var(--bs-tx2) !important; }
html.bs3 .gs-cell-e { color: var(--bs-ok) !important; }
html.bs3 .gs-chip.est-warn .gs-cell-e { color: var(--bs-warn) !important; }
html.bs3 .gs-chip.est-crit .gs-cell-e { color: var(--bs-crit) !important; }
html.bs3 .gs-chip.est-na .gs-cell-e { color: var(--bs-tx3) !important; }
html.bs3 .gs-cell-e::before { content: "" !important; display: inline-block !important; width: 8px !important; height: 8px !important; border-radius: 2px !important; margin-right: 6px !important; background: currentColor !important; }
html.bs3 .bs-k { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; white-space: nowrap; }
html.bs3 .bs-k b { display: block; font: 700 22px/1 "JetBrains Mono", ui-monospace, monospace; color: var(--bs-ok); }
html.bs3 .bs-k b.warn { color: var(--bs-warn); } html.bs3 .bs-k b.crit { color: var(--bs-crit); }
html.bs3 .bs-k small { display: block; margin-top: 3px; font: 500 11px/1.2 "JetBrains Mono", ui-monospace, monospace; color: var(--bs-tx3); }
/* un solo servidor: una tarjeta a lo ancho, sin marca de «elegido» y sin clic (no hay nada que elegir) */
html.bs3.gs-solo #gs-chips .gs-chip { cursor: default !important; pointer-events: none !important; }
html.bs3.gs-solo #gs-chips .gs-chip.on { border-color: var(--bs-ln) !important; box-shadow: none !important; }
html.bs3.gs-solo .gs-chip.on .gs-cell-n { color: var(--bs-tx2) !important; }
html.bs3.gs-solo .bs-k small::before { content: "vía pública · "; }
/* celular: las tarjetas en una fila, más compactas; el número abajo del estado */
@media (max-width: 640px) {
  html.bs3 #gs-chips { gap: 6px !important; }
  html.bs3 #gs-chips .gs-chip { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: auto auto auto !important; padding: 8px 8px 8px 11px !important; min-height: 0 !important; row-gap: 3px !important; }
  html.bs3 .gs-cell-n { font-size: 10px !important; }
  html.bs3 .gs-cell-s { font-size: 11px !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
  html.bs3 .bs-k { grid-column: 1; grid-row: 3; text-align: left; }
  html.bs3 .bs-k b { font-size: 17px; }
  html.bs3 .bs-k small { display: none; }
  html.bs3.gs-solo #gs-chips .gs-chip { grid-template-columns: minmax(0, 1fr) auto !important; grid-template-rows: auto auto !important; padding: 10px 12px 10px 14px !important; }
  html.bs3.gs-solo .bs-k { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
  html.bs3.gs-solo .bs-k small { display: block; }
  html.bs3.gs-solo .bs-k b { font-size: 20px; }
}
