/* Nexo787 Soporte (F0, 2026-10-22) — same look as the support console v1.0.0:
   navy bar, cyan accent, gold primary, Sora + Figtree. Light and dark come from
   the tokens below. Every box with text sets BOTH its background and its color
   from the tokens — never one without the other (the POS dark-mode rule).
   No inline styles anywhere: the page's CSP only allows this file. */
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(fonts/sora-latin.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(fonts/figtree-latin.woff2) format('woff2'); }

:root {
  --bg: #eef1f7; --surface: #ffffff; --surface-2: #f4f6fb; --surface-3: #e8edf6; --line: #dde3ee;
  --ink: #0b1324; --ink-2: #3a4560; --muted: #6b7690;
  --accent: #0b74c4; --accent-soft: rgba(11, 116, 196, 0.10); --accent-ink: #ffffff;
  --gold: #e8a200; --gold-ink: #1d1400; --gold-text: #8a5d00; --gold-soft: rgba(232, 162, 0, 0.14);
  --good: #12a150; --good-text: #0b7a3b; --good-soft: rgba(18, 161, 80, 0.12);
  --danger: #d93a3a; --danger-text: #b42323; --danger-soft: rgba(217, 58, 58, 0.10);
  --violet: #7c3aed; --violet-soft: rgba(124, 58, 237, 0.10);
  --bar: #0a1430; --bar-2: #10224a; --bar-ink: #eaf2ff; --bar-muted: #93a3c9; --bar-on: rgba(58, 212, 255, 0.14);
  --shadow: 0 1px 2px rgba(11, 19, 36, 0.05), 0 8px 22px rgba(11, 19, 36, 0.06);
  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace;
  --r: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060b18; --surface: #0e1628; --surface-2: #131d34; --surface-3: #1a2642; --line: #22304f;
    --ink: #eaf2ff; --ink-2: #b9c6e2; --muted: #7f8db0;
    --accent: #3ad4ff; --accent-soft: rgba(58, 212, 255, 0.12); --accent-ink: #04121c;
    --gold: #f4c542; --gold-text: #ffd86b; --gold-soft: rgba(244, 197, 66, 0.14);
    --good: #34d399; --good-text: #34d399; --good-soft: rgba(52, 211, 153, 0.12);
    --danger: #ff6b6b; --danger-text: #ff8a8a; --danger-soft: rgba(255, 107, 107, 0.12);
    --violet: #a78bfa; --violet-soft: rgba(167, 139, 250, 0.14);
    --bar: #050a17; --bar-2: #0b1733;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 26px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #060b18; --surface: #0e1628; --surface-2: #131d34; --surface-3: #1a2642; --line: #22304f;
  --ink: #eaf2ff; --ink-2: #b9c6e2; --muted: #7f8db0;
  --accent: #3ad4ff; --accent-soft: rgba(58, 212, 255, 0.12); --accent-ink: #04121c;
  --gold: #f4c542; --gold-text: #ffd86b; --gold-soft: rgba(244, 197, 66, 0.14);
  --good: #34d399; --good-text: #34d399; --good-soft: rgba(52, 211, 153, 0.12);
  --danger: #ff6b6b; --danger-text: #ff8a8a; --danger-soft: rgba(255, 107, 107, 0.12);
  --violet: #a78bfa; --violet-soft: rgba(167, 139, 250, 0.14);
  --bar: #050a17; --bar-2: #0b1733;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 26px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { cursor: default; opacity: .55; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; }
.spacer { flex: 1; }
code { font-family: var(--font-mono); background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: 12.5px; word-break: break-all; }

/* ---------- shell (UI overhaul 2026-10-28: the Nexo787 logo, the menu in groups) ---------- */
.shell { display: flex; min-height: 100vh; min-height: 100dvh; }
.side { display: none; }
.mainwrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.main { flex: 1; min-width: 0; padding: 14px 16px calc(92px + var(--safe-b)); }
.page { max-width: 1280px; margin: 0 auto; }
.top { display: flex; align-items: flex-end; gap: 10px; margin: 8px 2px 16px; }
.top h1 { font-size: 25px; letter-spacing: -.01em; line-height: 1.15; }
.top .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.back { color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; margin-bottom: 6px; }
.back:hover { color: var(--accent); }
.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }

/* the phone: a navy bar on top with the logo mark */
.appbar { position: sticky; top: 0; z-index: 9; display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px;
  background: linear-gradient(100deg, var(--bar), var(--bar-2)); color: var(--bar-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.appbar-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--bar-ink); font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.appbar-brand img { width: 34px; height: auto; display: block; }
.appbar .grow { flex: 1; }
.appbar-alert { position: relative; color: var(--bar-ink); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.appbar-alert .dot { top: -2px; left: auto; right: -4px; }
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--gold); color: var(--gold-ink); font-weight: 800; font-size: 13px; text-decoration: none; letter-spacing: .02em; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: space-around; background: var(--surface); color: var(--muted); border-top: 1px solid var(--line);
  padding: 6px 4px calc(8px + var(--safe-b)); box-shadow: 0 -6px 20px rgba(11, 19, 36, .06); }
.tabs a { flex: 1; text-align: center; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 2px 0; }
.tabs .ti { position: relative; display: grid; place-items: center; width: 52px; height: 30px; border-radius: 15px; transition: background .15s ease; }
.tabs a.on { color: var(--accent); }
.tabs a.on .ti { background: var(--accent-soft); }
.tabs svg { width: 22px; height: 22px; }
.dot { position: absolute; top: -3px; left: calc(50% + 6px); background: var(--danger); color: #fff; font-size: 10px; font-weight: 800; border-radius: 10px; padding: 0 5px; line-height: 16px; min-width: 16px; text-align: center; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 1000px) {
  .tabs, .appbar { display: none; }
  .side { display: flex; flex-direction: column; width: 248px; flex: none; background: linear-gradient(180deg, var(--bar), var(--bar-2)); color: var(--bar-ink);
    padding: 20px 14px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid rgba(255, 255, 255, .05); }
  .side-brand { display: block; text-decoration: none; padding: 4px 10px 18px; margin-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .side-brand img { display: block; width: 150px; height: auto; }
  .side-app { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--bar-ink);
    background: rgba(58, 212, 255, .14); border: 1px solid rgba(58, 212, 255, .28); padding: 3px 9px; border-radius: 20px; }
  .nav-h { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--bar-muted); opacity: .75; margin: 16px 12px 6px; }
  .side nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 11px; font-weight: 700; font-size: 14px; color: var(--bar-muted);
    text-decoration: none; margin-bottom: 2px; transition: background .15s ease, color .15s ease; }
  .side nav a:hover { background: rgba(255, 255, 255, .05); color: var(--bar-ink); }
  .side nav a.on { background: var(--bar-on); color: var(--bar-ink); }
  .side nav a.on::before { content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #3ad4ff; }
  .side nav a.on svg { color: #3ad4ff; }
  .side nav .n { margin-left: auto; background: #ff6b6b; color: #fff; border-radius: 9px; font-size: 11px; font-weight: 800; padding: 0 7px; line-height: 18px; }
  .side-me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; text-decoration: none; color: var(--bar-ink);
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); }
  .side-me:hover, .side-me.on { background: rgba(255, 255, 255, .09); }
  .side-me .who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
  .side-me .who b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-me .who small { font-size: 12px; color: var(--bar-muted); }
  .main { padding: 26px 34px 44px; }
  .top h1 { font-size: 28px; }
}

/* ---------- pieces ---------- */
.card { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
.card h2 { font-size: 16px; margin-bottom: 10px; letter-spacing: -.005em; }
.row { display: flex; align-items: center; gap: 8px; }
.wrap { flex-wrap: wrap; }
.t { font-weight: 700; }
.sev { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--muted); }
.sev.crit { background: var(--danger); } .sev.warn { background: var(--gold); } .sev.info { background: var(--accent); } .sev.ok { background: var(--good); }
.pill { font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 10px; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.pill.crit { background: var(--danger-soft); color: var(--danger-text); }
.pill.warn { background: var(--gold-soft); color: var(--gold-text); }
.pill.ok { background: var(--good-soft); color: var(--good-text); }
.pill.info { background: var(--accent-soft); color: var(--accent); }
.pill.vi { background: var(--violet-soft); color: var(--violet); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 800; font-size: 14px; padding: 10px 15px; border-radius: 12px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); text-decoration: none; min-height: 42px;
  transition: transform .12s ease, filter .15s ease, background .15s ease; }
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: scale(.98); }
.btn.pri { box-shadow: 0 6px 16px rgba(232, 162, 0, .22); }
.btn.pri { background: var(--gold); color: var(--gold-ink); border-color: transparent; }
.btn.acc { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.dng { background: var(--danger-soft); color: var(--danger-text); border-color: transparent; }
.btn.sm { min-height: 34px; padding: 6px 10px; font-size: 13px; border-radius: 10px; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.input, select.input { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-size: 16px; transition: border-color .15s ease, box-shadow .15s ease; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.code { font-family: var(--font-mono); font-size: 24px; letter-spacing: .3em; text-align: center; }
.err { color: var(--danger-text); min-height: 1.3em; font-size: 13.5px; margin-top: 6px; }
.note { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.note.warn { background: var(--gold-soft); color: var(--ink); border-color: transparent; }
.note.bad { background: var(--danger-soft); color: var(--ink); border-color: transparent; }
.note.good { background: var(--good-soft); color: var(--ink); border-color: transparent; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 20px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); }
.chip.on { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.search { margin-bottom: 10px; }

.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow); text-decoration: none;
  display: flex; align-items: center; gap: 12px; transition: border-color .15s ease, transform .12s ease; }
.kpi:hover { border-color: var(--accent); }
.kpi .ki { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); }
.kpi .ki.good { background: var(--good-soft); color: var(--good-text); } .kpi .ki.bad { background: var(--danger-soft); color: var(--danger-text); } .kpi .ki.warn { background: var(--gold-soft); color: var(--gold-text); }
.kpi .k { display: block; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.kpi .v { display: block; font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.15; }
/* Resumen: the state of things in one line, colored */
.hero { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); margin-bottom: 12px; border: 1px solid transparent; color: var(--ink); }
.hero.good { background: var(--good-soft); border-color: rgba(18, 161, 80, .25); }
.hero.warn { background: var(--gold-soft); border-color: rgba(232, 162, 0, .3); }
.hero.bad { background: var(--danger-soft); border-color: rgba(217, 58, 58, .28); }
.hero .grow { flex: 1; min-width: 0; }
.hero-i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; }
.hero.good .hero-i { background: var(--good); } .hero.warn .hero-i { background: var(--gold); color: var(--gold-ink); } .hero.bad .hero-i { background: var(--danger); }
.hero-t { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.hero-s { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
@media (max-width: 599px) { .hero { flex-wrap: wrap; } .hero .grow { flex-basis: calc(100% - 56px); } .hero > .btn { flex-basis: 100%; } .hero-t { font-size: 16px; } }
.kpi .v.bad { color: var(--danger-text); } .kpi .v.warn { color: var(--gold-text); } .kpi .v.good { color: var(--good-text); }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(4, 1fr); } }

.list .li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; text-decoration: none; color: var(--ink); }
a.li:hover .t, a.li:hover b { color: var(--accent); }
.list .li:last-child { border-bottom: 0; }
.list .li .grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.store { display: block; text-decoration: none; color: var(--ink); transition: border-color .15s ease; }
.store:hover { border-color: var(--accent); }
.store .meta { color: var(--muted); font-size: 12.5px; margin: 3px 0 0 18px; }
.store.sel { border-color: var(--accent); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.tile { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; box-shadow: var(--shadow); }
.tile .k { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.tile .v { font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.tile .v.bad { color: var(--danger-text); } .tile .v.good { color: var(--good-text); } .tile .v.warn { color: var(--gold-text); }

/* desktop: stores list and the open store side by side */
.split { display: block; }
@media (min-width: 1100px) {
  .split { display: grid; grid-template-columns: minmax(340px, 1fr) minmax(420px, 1.1fr); gap: 18px; align-items: start; }
  .split > .detail { position: sticky; top: 22px; }
  .split .back { display: none; }
  .split.solo > .detail { display: none; }
}
@media (max-width: 1099px) {
  .split.open > .listcol { display: none; }
  .split:not(.open) > .detail { display: none; }
}

table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 8px; }
table.tbl td { padding: 8px; border-top: 1px solid var(--line); vertical-align: top; }

.qr { background: #fff; color: #000; border-radius: 14px; padding: 12px; width: 220px; margin: 6px auto 10px; }
.qr svg { display: block; width: 100%; height: auto; }

.audit .li { align-items: flex-start; }
.audit .when { font-size: 12px; color: var(--muted); width: 92px; flex: none; }

.auth { min-height: 100vh; min-height: 100dvh; display: flex; background: var(--bg); }
.auth-brand { display: none; }
.auth-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 28px 18px calc(28px + var(--safe-b)); }
.auth-top { text-align: center; margin-bottom: 18px; }
.auth-mlogo { width: 170px; height: auto; }
.login { width: 100%; max-width: 420px; margin: 0 auto; }
.login .card { margin-top: 16px; padding: 20px; }
.login .btn.pri { width: 100%; min-height: 48px; font-size: 15px; }
.auth-h { font-size: 26px; letter-spacing: -.01em; margin-bottom: 4px; }
@media (min-width: 900px) {
  .auth-brand { display: flex; flex-direction: column; width: 44%; max-width: 560px; padding: 56px 52px; color: var(--bar-ink);
    background: radial-gradient(120% 80% at 0% 0%, rgba(58, 212, 255, .16), transparent 60%), linear-gradient(160deg, var(--bar), var(--bar-2)); }
  .auth-logo { width: 230px; height: auto; margin-bottom: 34px; }
  .auth-tag { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #3ad4ff; }
  .auth-lead { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.3; margin: 10px 0 26px; color: var(--bar-ink); }
  .auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
  .auth-points li { display: flex; align-items: center; gap: 12px; color: var(--bar-muted); font-weight: 600; }
  .auth-points svg { color: #3ad4ff; width: 22px; height: 22px; padding: 7px; box-sizing: content-box; border-radius: 10px; background: rgba(58, 212, 255, .12); }
  .auth-foot { margin-top: auto; font-size: 12.5px; color: var(--bar-muted); opacity: .8; }
  .auth-top { display: none; }
  .auth-main { padding: 40px; }
}
/* the logo pair: the light-page logo, or the dark-page one, by theme */
.logo-img.on-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-img.on-dark { display: inline-block; } :root:not([data-theme="light"]) .logo-img.on-light { display: none; } }
:root[data-theme="dark"] .logo-img.on-dark { display: inline-block; }
:root[data-theme="dark"] .logo-img.on-light { display: none; }
.rlogo { width: 140px; height: auto; }

.toast { position: fixed; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; z-index: 20; max-width: 90vw; }
@media (min-width: 1000px) { .toast { bottom: 24px; } }
.empty { text-align: center; color: var(--muted); padding: 24px 0; }
.check { display: flex; gap: 8px; align-items: center; padding: 6px 0; font-weight: 600; }
.check input { width: 18px; height: 18px; }
.scope { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 10px; max-height: 260px; overflow: auto; }
.nowrap { white-space: nowrap; }
.check .ellipsis { min-width: 0; }
code.secret { display: block; margin: 4px 0 6px; font-size: 15px; letter-spacing: .06em; word-break: normal; word-spacing: .2em; padding: 8px 10px; }

/* ---------- F1: alerts + avisos ---------- */
.note.block { display: block; text-decoration: none; }
.card .meta { margin: 4px 0 0 18px; }
.card.sel { border-color: var(--accent); }
.acts { margin-top: 10px; }
select.input.sm { width: auto; min-width: 150px; padding: 6px 10px; font-size: 14px; min-height: 34px; }
details { margin-top: 8px; }
details summary { cursor: pointer; color: var(--muted); font-weight: 700; }
.field.grow { flex: 1; min-width: 120px; }

/* ---------- F2: new stores + installation ---------- */
.top .grow { flex: 1; }
.bigcode { font-size: 30px; font-weight: 800; letter-spacing: .12em; margin: 4px 0 8px; color: var(--ink); }
.err.small { margin-top: 0; }
textarea.input { font-size: 15px; resize: vertical; }
code.cmd { font-size: 13px; letter-spacing: 0; word-spacing: 0; overflow-wrap: anywhere; word-break: break-all; }


/* F4: case log, notes and suggestions keep the text's own line breaks */
.msg { white-space: pre-wrap; overflow-wrap: anywhere; }
.chip input[type="radio"] { margin: 0 4px 0 0; vertical-align: middle; }
.input.num { max-width: 140px; }

/* F5: equipment card and the monthly report (printable; the browser saves it as PDF) */
.list .li .lab { flex: none; }
.list .li .val { flex: 1; min-width: 0; text-align: right; overflow-wrap: anywhere; }
.card h3 { font-size: 13px; margin: 14px 0 4px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.report .rhead { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; }
.report .rhead h1 { margin: 0; }
@media (min-width: 700px) { .report .tiles { grid-template-columns: repeat(4, 1fr); } }
@media print {
  .side, .tabs, .noprint, .toast { display: none !important; }
  html, body, .main, .shell { background: #fff !important; color: #000 !important; }
  .main { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .card, .tile { background: #fff !important; color: #000 !important; border-color: #ccc !important; box-shadow: none !important; break-inside: avoid; }
  .muted, .sub, .tile .k { color: #555 !important; }
  .logo-img.on-dark { display: none !important; } .logo-img.on-light { display: inline-block !important; }
  .appbar, .side { display: none !important; }
}
/* F7: maintenance rows — the label on top, days and time underneath */
.list .li.maint .grow { display: flex; flex-direction: column; gap: 4px; }
.list .li.maint .chip { padding: 3px 8px; }
/* F8: Soluciones — a suggestion opens in place; its steps read like a list */
.li.kb details { margin-top: 0; }
.li.kb details summary { color: var(--ink); font-weight: 600; }
.steps { margin: 8px 0; line-height: 1.5; }
#ksug .note { margin: 4px 0 8px; }
#ksug .note .list { margin-top: 6px; }
/* F8: Métricas — alerts per week, one series: thin bars, rounded tops, a 2px gap, a tooltip each */
:root { --chart-bar: #0b74c4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --chart-bar: #1f97c4; } }
:root[data-theme="dark"] { --chart-bar: #1f97c4; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 150px; padding-top: 18px; }
.bar { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; outline: none; }
.bar .bf { width: 100%; max-width: 28px; min-height: 2px; background: var(--chart-bar); border-radius: 4px 4px 0 0; }
.bar .bv { color: var(--ink-2); margin-bottom: 2px; }
.bar .bl { position: absolute; bottom: -18px; font-size: 10.5px; white-space: nowrap; }
.bars { margin-bottom: 22px; }
.bar:hover .bf, .bar:focus .bf { filter: brightness(1.15); }
.bar:hover::after, .bar:focus::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); z-index: 5;
  width: max-content; max-width: 220px; background: var(--ink); color: var(--surface); font-size: 12px; padding: 6px 8px; border-radius: 8px; pointer-events: none; }
.bar:first-child:hover::after, .bar:first-child:focus::after { left: 0; transform: none; }
.bar:last-child:hover::after, .bar:last-child:focus::after { left: auto; right: 0; transform: none; }
table.mt { width: 100%; border-collapse: collapse; margin-top: 6px; }
table.mt th, table.mt td { text-align: left; padding: 5px 4px; border-bottom: 1px solid var(--line); }
table.mt th { color: var(--muted); font-weight: 700; }
.tiles .tile .small { margin-top: 2px; }

/* F10: Servicio — the visit report editor */
.vhead, .vrow { display: grid; grid-template-columns: minmax(0, 1fr) 72px 96px 38px; gap: 6px; align-items: center; }
.vhead { margin-bottom: 4px; font-weight: 700; }
.vrow { margin-bottom: 6px; }
.vrow .input.num { max-width: none; padding: 9px 8px; }
.vtax { margin: 12px 0 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.vtot { margin-top: 4px; }
.vtot .li { display: flex; padding: 4px 0; font-size: 14px; color: var(--ink-2); }
.vtot .grow { flex: 1; }
.vtime { flex-wrap: nowrap; }
.vtime .input { flex: 1; min-width: 0; width: auto; }
.vtot .li.tot { font-weight: 800; font-size: 16px; color: var(--ink); border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; }
.vphotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 10px; }
.vphotos figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.vphotos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
/* the signature is drawn on paper: white with navy ink in both themes */
.sigpad { display: block; width: 100%; height: 180px; background: #ffffff; color: #0e3b63; border: 2px dashed var(--line); border-radius: 12px; touch-action: none; margin-bottom: 8px; }
.vsigimg { display: block; max-width: 320px; width: 100%; background: #ffffff; color: #0e3b63; border: 1px solid var(--line); border-radius: 10px; }
.vwork { margin: 4px 0 8px; padding-left: 20px; font-size: 14px; }
.vwork li { margin: 3px 0; }
@media (max-width: 420px) { .vhead, .vrow { grid-template-columns: minmax(0, 1fr) 54px 78px 34px; gap: 4px; } }

/* F10b: the store's screen — the viewer fills what is left of the window */
.rbar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rbar .back { margin: 0; }
.rtools { gap: 6px; margin-bottom: 8px; }
.rscreen { position: relative; width: 100%; height: calc(100dvh - 150px); min-height: 320px; background: #000000; color: #eaf2ff; border-radius: 12px; overflow: hidden; }
.rscreen .card { margin: 24px; }
.rscreen:fullscreen { border-radius: 0; height: 100%; }
/* the phone keyboard's field: focusable, invisible */
.rkeys { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 899px) { .rscreen { height: calc(100dvh - 230px - var(--safe-b)); } }
.err:empty { display: none; }
