/* DC Horas — tema "obra": carvão + amarelo de segurança (escuro) ou papel + amarelo (claro).
   O tema é escolhido em <html data-theme="dark|light"> (Perfil → Aparência). */
:root {
  --accent-text: #ffb81c;
  --tabbar-bg: rgba(23, 26, 29, 0.94);
  --btn-hover: #2e343a;
  --row-hover: rgba(255, 255, 255, 0.025);
  --kpi-accent-from: #2b2410;
  --timer-run-from: #16261f;
  --overlay: rgba(0, 0, 0, 0.6);
  --login-glow: rgba(255, 184, 28, 0.13);
  --stripe: rgba(255, 255, 255, 0.012);
  --bg: #111315;
  --bg-2: #171a1d;
  --surface: #1e2226;
  --surface-2: #262b30;
  --line: #31373d;
  --text: #f1efe9;
  --muted: #9aa1a8;
  --faint: #6c737a;
  --accent: #ffb81c;
  --accent-ink: #1a1400;
  --accent-soft: rgba(255, 184, 28, 0.14);
  --ok: #3ecf8e;
  --ok-soft: rgba(62, 207, 142, 0.14);
  --warn: #ff8a3d;
  --danger: #ff5a5f;
  --danger-soft: rgba(255, 90, 95, 0.14);
  --info: #6cb4ff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f1ec;
  --bg-2: #faf9f6;
  --surface: #ffffff;
  --surface-2: #efece5;
  --line: #dfdbd1;
  --text: #1d1b16;
  --muted: #5f5a50;
  --faint: #8d877b;
  --accent: #ffb81c;
  --accent-ink: #1a1400;
  --accent-soft: rgba(255, 184, 28, 0.2);
  --accent-text: #8a5a00;
  --ok: #138a55;
  --ok-soft: rgba(19, 138, 85, 0.12);
  --warn: #b85309;
  --danger: #cf2f35;
  --danger-soft: rgba(207, 47, 53, 0.1);
  --info: #1f6fc4;
  --shadow: 0 10px 30px rgba(40, 32, 10, 0.14);
  --tabbar-bg: rgba(250, 249, 246, 0.95);
  --btn-hover: #e5e1d8;
  --row-hover: rgba(0, 0, 0, 0.03);
  --kpi-accent-from: #fff3d1;
  --timer-run-from: #e2f4ea;
  --overlay: rgba(25, 22, 14, 0.42);
  --login-glow: rgba(255, 184, 28, 0.28);
  --stripe: rgba(0, 0, 0, 0.025);
  color-scheme: light;
}
.version { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.login-prefs { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.login-prefs .seg { width: auto; }
.login-prefs .seg button { flex: none; padding: 0 12px; height: 32px; font-size: 13px; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
}
a { color: var(--accent-text); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 22px; font-weight: 750; letter-spacing: -0.01em; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.num, .tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---------- layout ---------- */
#app { min-height: 100dvh; }
.shell { display: flex; min-height: 100dvh; }
.sidebar { display: none; }
.main { flex: 1; min-width: 0; padding: calc(12px + var(--safe-t)) 16px calc(var(--nav-h) + 24px + var(--safe-b)); max-width: 1180px; margin: 0 auto; width: 100%; }
.topbar { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; }
.topbar .title { flex: 1; min-width: 0; }
.topbar .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.01em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; flex-shrink: 0;
}
.brand .mark svg { width: 22px; height: 22px; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; letter-spacing: 0; }

/* barra de navegação inferior (telemóvel) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--tabbar-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  display: flex;
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--faint); font-size: 11px; font-weight: 600; position: relative;
}
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.active { color: var(--accent-text); }
.tabbar a.active::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.tabbar .fab-slot { flex: 1; display: flex; justify-content: center; }
.fab {
  width: 58px; height: 58px; border-radius: 18px; margin-top: -18px; border: 4px solid var(--bg);
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 184, 28, 0.35);
}
.fab svg { width: 28px; height: 28px; }

@media (min-width: 900px) {
  .tabbar { display: none; }
  .sidebar {
    display: flex; flex-direction: column; gap: 4px; width: 240px; flex-shrink: 0;
    background: var(--bg-2); border-right: 1px solid var(--line); padding: 20px 14px;
    position: sticky; top: 0; height: 100dvh;
  }
  .sidebar .brand { padding: 0 8px 22px; }
  .sidebar .navsec { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); padding: 16px 10px 6px; font-weight: 700; }
  .sidebar a.nav {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-weight: 600;
  }
  .sidebar a.nav svg { width: 20px; height: 20px; }
  .sidebar a.nav:hover { background: var(--surface); color: var(--text); }
  .sidebar a.nav.active { background: var(--accent-soft); color: var(--accent-text); }
  .sidebar .new-btn { margin: 0 4px 10px; }
  .sidebar .foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
  .main { padding: 28px 32px 48px; }
  .hide-desktop { display: none !important; }
}
@media (max-width: 899px) { .hide-mobile { display: none !important; } }

/* ---------- componentes ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
}
.card.flush { padding: 0; overflow: hidden; }
.card + .card, .section + .section { margin-top: 14px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h2 { flex: 1; }
.section { margin-top: 22px; }
.section > h3 { margin: 0 2px 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font-weight: 650; cursor: pointer; white-space: nowrap;
  transition: transform 0.06s ease, background 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn:hover { background: var(--btn-hover); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { background: #ffc642; border-color: #ffc642; }
.btn.danger { background: transparent; color: var(--danger); border-color: rgba(255, 90, 95, 0.4); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--surface-2); }
.btn.big { height: 56px; font-size: 17px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.icon { width: 44px; padding: 0; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.chip.on { background: var(--accent-soft); border-color: rgba(255, 184, 28, 0.55); color: var(--accent-text); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: rgba(255, 138, 61, 0.15); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.accent { background: var(--accent-soft); color: var(--accent-text); }

.code-tag {
  display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 26px; padding: 0 8px;
  border-radius: 7px; font: 700 12px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.04em;
  background: var(--accent-soft); color: var(--accent-text); border-left: 3px solid var(--obra, var(--accent));
}

/* formulários */
label.field { display: flex; flex-direction: column; gap: 6px; }
label.field > span { font-size: 13px; font-weight: 650; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); outline: none; font-size: 16px;
}
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.4; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.input.code::placeholder { text-transform: none; letter-spacing: 0; font-family: inherit; font-weight: 400; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input[type="date"].input, input[type="time"].input { min-width: 0; }
input[type="color"].input { padding: 4px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.hint { font-size: 12px; color: var(--faint); }
.error-msg { color: var(--danger); font-size: 14px; font-weight: 600; }

.seg { display: flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg button { flex: 1; height: 38px; border: 0; background: transparent; color: var(--muted); font-weight: 650; border-radius: 9px; cursor: pointer; }
.seg button.on { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset; }

/* duração */
.duration { display: flex; align-items: center; gap: 10px; }
.duration .val { flex: 1; text-align: center; font-size: 40px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.duration .val small { font-size: 18px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.duration .btn { width: 56px; height: 56px; font-size: 22px; }

/* seletor de obra */
.picker { position: relative; }
.picker-list { margin-top: 8px; max-height: 280px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.picker-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
.picker-item:last-child { border-bottom: 0; }
.picker-item:hover, .picker-item.hl { background: var(--surface-2); }
.picker-selected { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid rgba(255, 184, 28, 0.5); background: var(--accent-soft); }
.picker-selected .ellipsis { flex: 1; }

/* listas */
.list { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.item:last-child { border-bottom: 0; }
.item:hover { background: var(--row-hover); }
.item .main-col { flex: 1; min-width: 0; }
.item .t1 { font-weight: 650; }
.item .t2 { font-size: 13px; color: var(--muted); margin-top: 1px; }
.item .t3 { font-size: 13px; color: var(--text); opacity: 0.85; margin-top: 4px; white-space: pre-wrap; word-break: break-word; }
.item .hours { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.day-head { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 4px 8px; }
.day-head .d { font-weight: 700; }
.day-head .h { font-weight: 800; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--faint); padding: 32px 16px; }
.empty svg { width: 42px; height: 42px; opacity: 0.6; margin-bottom: 8px; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi .l { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.kpi .v { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 14px; color: var(--muted); font-weight: 600; }
.kpi.accent { background: linear-gradient(135deg, var(--kpi-accent-from), var(--surface) 70%); border-color: rgba(255, 184, 28, 0.35); }
.kpi.accent .v { color: var(--accent-text); }

/* semana (mini barras) */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 110px; margin-top: 6px; }
.week .col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.week .bar { width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px; background: var(--surface-2); min-height: 4px; position: relative; }
.week .bar.fill { background: var(--accent); }
.week .bar.today { outline: 2px solid var(--accent); outline-offset: 2px; }
.week .lbl { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.week .hv { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 14px; }

/* cronómetro */
.timer-card { position: relative; overflow: hidden; }
.timer-card.running { border-color: rgba(62, 207, 142, 0.45); background: linear-gradient(160deg, var(--timer-run-from), var(--surface) 65%); }
.timer-clock { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; margin: 10px 0 6px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(62,207,142,0.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(62,207,142,0); } 100% { box-shadow: 0 0 0 0 rgba(62,207,142,0); } }

/* progresso */
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.progress.over > i { background: var(--danger); }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 8px 0; }
.hbar .progress { grid-column: 1 / -1; height: 10px; }

/* tabelas */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg-2); position: sticky; top: 0; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tfoot td { font-weight: 800; background: var(--bg-2); border-top: 1px solid var(--line); }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover { background: var(--row-hover); }
.tbl .desc { max-width: 420px; white-space: pre-wrap; word-break: break-word; color: var(--muted); }
.tbl .zero { color: var(--faint); }

.chart-box { position: relative; height: 260px; }
.chart-box.tall { height: 320px; }

.filters { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 700px) { .filters { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; } }

.cols { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: start; }
.cols > .card { margin-top: 0; }
@media (min-width: 1000px) { .cols { grid-template-columns: 1fr 1fr; } .cols.c32 { grid-template-columns: 3fr 2fr; } }

/* folha / modal */
.overlay { position: fixed; inset: 0; z-index: 50; background: var(--overlay); display: flex; align-items: flex-end; justify-content: center; animation: fade 0.15s; }
.sheet {
  width: 100%; max-width: 560px; max-height: 94dvh; overflow-y: auto; background: var(--bg-2);
  border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 8px 18px calc(18px + var(--safe-b));
  animation: up 0.2s ease-out; box-shadow: var(--shadow);
}
.sheet .grab { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 4px auto 10px; }
.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; position: sticky; top: -8px; background: var(--bg-2); padding: 6px 0; z-index: 2; }
.sheet-head h2 { flex: 1; font-size: 19px; }
.sheet-foot { display: flex; gap: 10px; margin-top: 20px; }
.sheet-foot .btn { flex: 1; }
@media (min-width: 700px) {
  .overlay { align-items: center; padding: 24px; }
  .sheet { border-radius: 20px; border-bottom: 1px solid var(--line); padding: 8px 24px 24px; }
  .sheet .grab { display: none; }
  .sheet.wide { max-width: 760px; }
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }

/* toast */
#toasts { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + 16px + var(--safe-b)); z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
@media (min-width: 900px) { #toasts { bottom: 24px; } }
.toast { background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 650; box-shadow: var(--shadow); animation: up 0.2s; max-width: 480px; }
.toast.err { background: var(--danger); color: #fff; }
.toast.ok { background: var(--ok); color: var(--bg); }

.banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.banner.warn { background: rgba(255, 138, 61, 0.12); color: var(--warn); border: 1px solid rgba(255, 138, 61, 0.35); }
.banner.info { background: rgba(108, 180, 255, 0.1); color: var(--info); border: 1px solid rgba(108, 180, 255, 0.3); }
.banner svg { width: 20px; height: 20px; flex-shrink: 0; }

/* login */
.login-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px 18px; background:
  radial-gradient(1200px 500px at 50% -10%, var(--login-glow), transparent 60%),
  repeating-linear-gradient(135deg, transparent 0 22px, var(--stripe) 22px 44px), var(--bg); }
.login { width: 100%; max-width: 380px; }
.login .brand { justify-content: center; margin-bottom: 28px; font-size: 24px; }
.login .brand .mark { width: 52px; height: 52px; border-radius: 14px; }
.login .brand .mark svg { width: 32px; height: 32px; }
.stripe { height: 6px; border-radius: 6px; margin-bottom: 22px; background: repeating-linear-gradient(135deg, var(--accent) 0 12px, #1a1400 12px 24px); opacity: 0.9; }

.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 0.8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--accent-text); flex-shrink: 0; }

/* impressão (relatórios) */
@media print {
  :root { --bg: #fff; --bg-2: #f4f4f4; --surface: #fff; --surface-2: #eee; --line: #ccc; --text: #000; --muted: #444; --faint: #666; color-scheme: light; }
  body { background: #fff; font-size: 11pt; }
  .sidebar, .tabbar, .no-print, #toasts { display: none !important; }
  .main { padding: 0; max-width: none; }
  .card, .kpi { break-inside: avoid; border-color: #bbb; }
  .kpi.accent { background: #fff; }
  .kpi.accent .v, .day-head .h { color: #000; }
  .tbl th { position: static; }
  .chart-box { height: 220px; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

/* popup "instalar a app" */
.install-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.install-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.install-steps .n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px; display: grid; place-items: center; flex-shrink: 0; }
