/* ====================================================================
   Inventário Quallit — estilos
   ==================================================================== */
/* Cores da marca Quallit: turquesa #1C9BA9 e laranja #FF8221 */
:root {
  --brand: #1c9ba9;
  --brand-2: #ff8221;
  --bg: #f1f5f6;
  --surface: #ffffff;
  --surface-2: #f6f9fa;
  --ink: #0e1d20;
  --ink-2: #33474b;
  --muted: #627a7f;
  --line: #dde6e8;
  --line-2: #c9d6d9;
  --accent: #127f8b;          /* turquesa escurecido: texto branco legível nos botões */
  --accent-ink: #ffffff;
  --accent-soft: #e0f2f4;
  --accent-2: #f2731a;        /* laranja para destaques */
  --accent-2-soft: #fff0e3;
  --ok: #138a55;      --ok-soft: #e4f5ec;
  --warn: #b25f00;    --warn-soft: #fdf1df;
  --bad: #cc2b20;     --bad-soft: #fde8e6;
  --info: #3a5fd0;    --info-soft: #e8edfb;
  --idle: #87979b;    --idle-soft: #ecf1f2;
  --side: #0c2226;
  --side-ink: #c4d6d9;
  --side-muted: #79959a;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(12, 34, 38, .05), 0 4px 16px rgba(12, 34, 38, .05);
  --shadow-lg: 0 12px 48px rgba(6, 20, 24, .24);
  /* mesma fonte do iPhone (San Francisco) em iPhone, iPad e Mac; nos demais (Android, Windows), a Inter,
     a mais parecida com ela (a San Francisco é da Apple e não pode ser distribuída para outros sistemas) */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "IBM Plex Mono", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --logo-rd-filtro: brightness(0) invert(1);
    --bg: #0a1416; --surface: #101d20; --surface-2: #152427; --ink: #e4eef0; --ink-2: #bdd0d3;
    --muted: #84a0a5; --line: #1f3236; --line-2: #2b4246; --accent: #2bb5c4; --accent-ink: #05191c; --accent-soft: #10343a;
    --accent-2: #ff8f3a; --accent-2-soft: #3a2412;
    --ok: #3ccf8a; --ok-soft: #10291e; --warn: #f0a83a; --warn-soft: #2e2312; --bad: #ff6b5e; --bad-soft: #351816;
    --info: #7d9bff; --info-soft: #172240; --idle: #6f888d; --idle-soft: #182a2d; --side: #061012; --side-ink: #b9cfd2; --side-muted: #6c8a8f;
    --shadow: 0 1px 2px rgba(0,0,0,.35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --logo-rd-filtro: brightness(0) invert(1);
  --bg: #0a1416; --surface: #101d20; --surface-2: #152427; --ink: #e4eef0; --ink-2: #bdd0d3;
  --muted: #84a0a5; --line: #1f3236; --line-2: #2b4246; --accent: #2bb5c4; --accent-ink: #05191c; --accent-soft: #10343a;
  --accent-2: #ff8f3a; --accent-2-soft: #3a2412;
  --ok: #3ccf8a; --ok-soft: #10291e; --warn: #f0a83a; --warn-soft: #2e2312; --bad: #ff6b5e; --bad-soft: #351816;
  --info: #7d9bff; --info-soft: #172240; --idle: #6f888d; --idle-soft: #182a2d; --side: #061012; --side-ink: #b9cfd2; --side-muted: #6c8a8f;
  --shadow: 0 1px 2px rgba(0,0,0,.35); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow-x: clip; }
/* ---------- tamanhos de fonte ----------
   Computador: os tamanhos de sempre. Celular (até 820 px, como app no iPhone): a escala do iOS
   (Dynamic Type, padrão "Grande": texto 17, subtítulo 15, legenda 13/12, títulos 20/22/28/34). */
:root {
  --fs-corpo: 14px; --lh-corpo: 1.45;
  --fs-10: 10px;
  --fs-10_5: 10.5px;
  --fs-11: 11px;
  --fs-11_5: 11.5px;
  --fs-12: 12px;
  --fs-12_5: 12.5px;
  --fs-13: 13px;
  --fs-13_5: 13.5px;
  --fs-14: 14px;
  --fs-14_5: 14.5px;
  --fs-15: 15px;
  --fs-16: 16px;
  --fs-17: 17px;
  --fs-18: 18px;
  --fs-19: 19px;
  --fs-20: 20px;
  --fs-21: 21px;
  --fs-22: 22px;
  --fs-26: 26px;
  --fs-28: 28px;
  --fs-30: 30px;
  --fs-32: 32px;
  --fs-40: 40px;
}
@media (max-width: 820px) {
  :root {
    --fs-corpo: 17px; --lh-corpo: 1.35;
    --fs-10: 11px;
    --fs-10_5: 11px;
    --fs-11: 11px;
    --fs-11_5: 12px;
    --fs-12: 12px;
    --fs-12_5: 13px;
    --fs-13: 13px;
    --fs-13_5: 15px;
    --fs-14: 15px;
    --fs-14_5: 15px;
    --fs-15: 15px;
    --fs-16: 17px;
    --fs-17: 17px;
    --fs-18: 20px;
    --fs-19: 20px;
    --fs-20: 20px;
    --fs-21: 22px;
    --fs-22: 22px;
    --fs-26: 28px;
    --fs-28: 28px;
    --fs-30: 34px;
    --fs-32: 34px;
    --fs-40: 34px;
  }
}
/* celular: sem zoom de pinça ou de toque duplo e sem a página deslizar para os lados (como um app do iPhone);
   tabelas largas rolam dentro da própria caixa */
html { touch-action: pan-x pan-y; overflow-x: hidden; overflow-x: clip; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
body { background: var(--bg); color: var(--ink); font: var(--fs-corpo)/var(--lh-corpo) var(--font); letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; overscroll-behavior: none; max-width: 100vw; }
/* iPhone dá zoom ao tocar num campo com letra menor que 16px: no celular, campos com 16px ou mais */
@media (pointer: coarse), (max-width: 820px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: max(16px, 1em) !important; }
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.erro { color: var(--bad); min-height: 1.2em; margin: 0; }
h1, h2, h3 { margin: 0; letter-spacing: -.021em; }
h1 { font-size: var(--fs-22); font-weight: 700; }
h2 { font-size: var(--fs-15); font-weight: 600; }
h3 { font-size: var(--fs-13); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* ---------- botões / inputs ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  padding: 8px 14px; border-radius: 8px; cursor: pointer; font-weight: 500; white-space: nowrap;
  transition: background .12s, border-color .12s;
}
.btn:hover { background: var(--surface-2); border-color: var(--muted); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent); filter: brightness(1.08); border-color: var(--accent); }
.btn--danger { color: var(--bad); border-color: var(--bad); background: transparent; }
.btn--ghost { background: transparent; border-color: transparent; }
.btn--sm { padding: 5px 10px; font-size: var(--fs-13); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }

input:not([type=checkbox]), select, textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px;
  padding: 8px 10px; outline: none; transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
label { display: grid; gap: 5px; font-size: var(--fs-13); font-weight: 500; color: var(--ink-2); }
textarea { min-height: 70px; resize: vertical; }

/* ---------- login ---------- */
.login { min-height: 100%; display: grid; place-items: center; align-content: center; padding: 16px;
  background: radial-gradient(1200px 600px at 10% -10%, var(--accent-soft), transparent), var(--bg); }
.login-card { width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 28px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.login-card .muted { margin: -6px 0 6px; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh;
  background: linear-gradient(to right, var(--side) 232px, transparent 232px); }
.sidebar { background: var(--side); color: var(--side-ink); padding: 18px 12px; display: flex; flex-direction: column;
  gap: 20px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.brand strong { display: block; font-size: var(--fs-15); color: inherit; }
.brand small { display: block; color: var(--muted); font-size: var(--fs-12); }
.sidebar .brand strong { color: #fff; }
.sidebar .brand small { color: var(--side-muted); }
.brand-mark { width: 34px; height: 34px; flex: none; background: url("../img/logo.svg") center / contain no-repeat; }
.sidebar .brand-mark { background-color: #fff; border-radius: 9px; background-size: 78%; }
.brand--lg .brand-mark { width: 46px; height: 46px; }
/* logo do cliente (RaiaDrogasil) ao lado da marca: cores originais no tema claro, branca no escuro */
.marcas { display: flex; align-items: center; gap: 16px; }
.marca-div { width: 1px; height: 38px; background: var(--line); flex: none; }
.logo-rd { display: block; height: 42px; width: auto; flex: none; filter: var(--logo-rd-filtro, none); }
.logo-rd--menu { height: 30px; margin: 0 auto 6px; filter: brightness(0) invert(1); opacity: .72; }
.nav { display: grid; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; border: 0;
  background: transparent; color: var(--side-ink); cursor: pointer; text-align: left; font-weight: 500; }
.nav-item svg { width: 18px; height: 18px; fill: currentColor; opacity: .8; }
.nav-item:hover { background: rgba(255,255,255,.06); }
.nav-item.active { background: rgba(28,155,169,.18); color: #fff; box-shadow: inset 3px 0 0 var(--brand-2); }
.sidebar-foot { margin-top: auto; display: grid; gap: 8px; font-size: var(--fs-12); color: var(--side-muted); padding: 0 6px; }
.sidebar-foot .btn { color: var(--side-ink); }
.sidebar-foot .btn:hover { background: rgba(255,255,255,.06); }
.foot-actions { display: flex; gap: 4px; margin-left: -10px; }
.user { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--side-ink); }
.live { display: flex; align-items: center; gap: 7px; }
.versao { font-size: var(--fs-10_5); opacity: .5; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--idle); }
.live.on .live-dot { background: #3ccf8a; box-shadow: 0 0 0 0 rgba(60,207,138,.6); animation: pulse 2s infinite; }
.live.flash .live-dot { background: #fff; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(60,207,138,0); } 100% { box-shadow: 0 0 0 0 rgba(60,207,138,0); } }

.main { min-width: 0; padding: 26px 30px 60px; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.view-head p { margin: 4px 0 0; color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { display: flex; flex-direction: column; justify-content: flex-start; padding: 14px 16px; cursor: pointer; text-align: left; border: 1px solid var(--line); transition: border-color .12s, transform .12s; }
.kpi:hover { border-color: var(--line-2); transform: translateY(-1px); }
.kpi-label { color: var(--muted); font-size: var(--fs-12_5); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.kpi-value { font-size: var(--fs-28); font-weight: 700; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: var(--fs-12); color: var(--muted); }
.kpi--ok .kpi-value { color: var(--ok); }
.kpi--bad .kpi-value { color: var(--bad); }
.kpi--warn .kpi-value { color: var(--warn); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stack { display: grid; gap: 16px; }

/* barras horizontais */
.bars { display: grid; gap: 4px; }
.bar { display: grid; grid-template-columns: minmax(120px, 1.3fr) minmax(60px, 1.4fr) 40px; align-items: center; gap: 10px;
  padding: 5px 6px; border-radius: 6px; cursor: pointer; border: 0; background: none; text-align: left; width: 100%; }
.bar:hover { background: var(--surface-2); }
.bar-label { font-size: var(--fs-13); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { display: block; height: 8px; background: var(--idle-soft); border-radius: 99px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--ink-2); border-radius: 99px; transition: width .4s; }
.bar-fill.c-bad { background: var(--bad); } .bar-fill.c-ok { background: var(--ok); }
.bar-fill.c-warn { background: var(--warn); } .bar-fill.c-info { background: var(--info); }
.bar-fill.c-idle { background: var(--idle); }
.bar-n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; font-size: var(--fs-13); }

.alert-list { display: grid; gap: 6px; }
.alert-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; width: 100%; text-align: left; }
.alert-row:hover { border-color: var(--line-2); background: var(--surface-2); }
.alert-row .n { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.alert-row small { color: var(--muted); display: block; font-size: var(--fs-12); }

.feed { display: grid; gap: 0; max-height: 420px; overflow: auto; }
.feed-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-13); }
.feed-item:last-child { border-bottom: 0; }
.feed-item .t { color: var(--muted); font-size: var(--fs-12); white-space: nowrap; }
.feed-item .d { grid-column: 1 / -1; color: var(--ink-2); }
.feed-item a { color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none; }
.feed-item a:hover { text-decoration: underline; }
.chg-old { color: var(--muted); text-decoration: line-through; }
.chg-new { font-weight: 600; }

/* ---------- pills / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 99px; font-size: var(--fs-12);
  font-weight: 500; background: var(--idle-soft); color: var(--ink-2); white-space: nowrap; }
.pill--ok { background: var(--ok-soft); color: var(--ok); }
.pill--warn { background: var(--warn-soft); color: var(--warn); }
.pill--bad { background: var(--bad-soft); color: var(--bad); }
.pill--info { background: var(--info-soft); color: var(--info); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--idle); }
.dot--online { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot--recente { background: var(--info); }
.dot--ausente { background: var(--warn); }
.dot--offline { background: var(--bad); }
.dot--nunca { background: transparent; border: 1.5px solid var(--idle); }
.tag { display: inline-block; font-size: var(--fs-11); font-weight: 600; padding: 1px 6px; border-radius: 4px; margin: 1px 2px 1px 0;
  background: var(--warn-soft); color: var(--warn); white-space: nowrap; }
.tag--bad { background: var(--bad-soft); color: var(--bad); }
/* fotos da máquina */
.fotos-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.foto-mini { aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.foto-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-grande { width: 100%; max-height: 62vh; object-fit: contain; border-radius: 8px; background: var(--surface-2); }
.foto-erro { opacity: .4; }
/* administrador: × para ocultar o alerta e ↺ para mostrar de novo */
.tag--x { display: inline-flex; align-items: center; gap: 2px; padding-right: 2px; }
.tag--x button { border: 0; background: transparent; color: inherit; font: inherit; font-size: var(--fs-14); line-height: 1; padding: 0 4px;
  border-radius: 3px; cursor: pointer; opacity: .65; }
.tag--x button:hover, .tag--x button:focus-visible { opacity: 1; background: rgba(0,0,0,.1); }
.d-ocultos { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; font-size: var(--fs-12); }
.tag--oculto { border: 1px dashed var(--line-2); background: transparent; color: var(--muted); cursor: pointer; text-decoration: line-through; }
.tag--oculto:hover, .tag--oculto:focus-visible { text-decoration: none; color: var(--accent); border-color: var(--accent); }

/* ---------- toolbar / filtros ---------- */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1 1 260px; }
.search input { padding-left: 34px; }
.search::before { content: ""; position: absolute; left: 12px; top: 50%; width: 11px; height: 11px; border: 2px solid var(--muted);
  border-radius: 50%; transform: translateY(-62%); }
.search::after { content: ""; position: absolute; left: 23px; top: 58%; width: 6px; height: 2px; background: var(--muted); transform: rotate(45deg); }
.toolbar select { width: auto; min-width: 130px; flex: 0 1 auto; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 12px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--accent);
  border: 0; border-radius: 99px; padding: 3px 6px 3px 10px; font-size: var(--fs-12_5); font-weight: 500; cursor: pointer; }
.chip b { font-weight: 700; }
.chip span { font-size: var(--fs-14); line-height: 1; padding: 0 3px; }
/* filtro em uso: o campo e o botão de limpar ficam em evidência */
.toolbar select.filtro-on, .toolbar input.filtro-on { border-color: var(--accent); background-color: var(--accent-soft);
  color: var(--accent); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent); }
.btn.filtro-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.btn.btn-limpar-on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.btn-limpar-on:hover { filter: brightness(1.08); }
.count { margin-left: auto; color: var(--muted); font-size: var(--fs-13); white-space: nowrap; }

/* ---------- tabela ---------- */
.table-wrap { overflow: auto; max-height: calc(100vh - 230px); }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: var(--fs-13); }
th { position: sticky; top: 0; background: var(--surface-2); z-index: 1; text-align: left; font-weight: 600; color: var(--muted);
  font-size: var(--fs-12); text-transform: uppercase; letter-spacing: .03em; padding: 9px 10px; border-bottom: 1px solid var(--line);
  white-space: nowrap; cursor: pointer; user-select: none; }
th:hover { color: var(--ink); }
th.sorted::after { content: " ↓"; } th.sorted.asc::after { content: " ↑"; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
tbody tr { cursor: pointer; }
tbody tr:hover td { background: var(--surface-2); }
tbody tr.flash td { animation: rowflash 1.6s ease-out; }
@keyframes rowflash { from { background: var(--ok-soft); } to { background: transparent; } }
td.host { font-weight: 600; }
td .sub { display: block; color: var(--muted); font-size: var(--fs-12); font-weight: 400; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.meter { width: 64px; height: 5px; border-radius: 9px; background: var(--idle-soft); overflow: hidden; display: inline-block; vertical-align: middle; margin-left: 6px; }
.meter i { display: block; height: 100%; background: var(--ink-2); }
.meter i.bad { background: var(--bad); } .meter i.warn { background: var(--warn); }
.empty { padding: 48px 16px; text-align: center; color: var(--muted); }

/* ---------- drawer ---------- */
.drawer-bg { position: fixed; inset: 0; background: rgba(10,12,18,.35); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--surface); z-index: 41;
  box-shadow: var(--shadow-lg); transform: translateX(105%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s; display: flex; flex-direction: column; }
.drawer.open { transform: none; visibility: visible; transition: transform .22s ease; }
.drawer-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.drawer-head .top { display: flex; align-items: center; gap: 10px; }
.drawer-head h2 { font-size: var(--fs-20); font-family: var(--mono); font-weight: 500; }
.drawer-head .close { margin-left: auto; }
.drawer-body { padding: 16px 20px 24px; overflow: auto; flex: 1; display: grid; gap: 18px; align-content: start; }
.drawer-foot { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.drawer-foot .spacer { flex: 1; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec { background: var(--surface); padding: 10px 12px; min-width: 0; }
.spec dt { font-size: var(--fs-11_5); color: var(--muted); text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
.spec dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.spec--full { grid-column: 1 / -1; }
.big-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.big-spec { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.big-spec .v { font-size: var(--fs-20); font-weight: 700; letter-spacing: -.01em; }
.big-spec .l { font-size: var(--fs-12); color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.mini-table { width: 100%; font-size: var(--fs-12_5); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.mini-table th { position: static; cursor: default; font-size: var(--fs-11); padding: 6px 8px; }
.mini-table td { padding: 6px 8px; white-space: normal; }
.timeline { display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 12px 1fr; gap: 10px; padding-bottom: 12px; position: relative; font-size: var(--fs-13); }
.tl::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl .b { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); margin-top: 3px; }
.tl.hw .b { border-color: var(--warn); }
.tl small { color: var(--muted); display: block; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }

/* ---------- modal ---------- */
.modal { border: 0; border-radius: 14px; padding: 0; width: min(560px, calc(100% - 32px)); background: var(--surface);
  color: var(--ink); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(10,12,18,.45); }
.modal-head { padding: 18px 20px 0; }
.modal-body { padding: 16px 20px; display: grid; gap: 12px; max-height: 70vh; overflow: auto; }
.modal-foot { padding: 12px 20px 18px; display: flex; justify-content: flex-end; gap: 8px; }
.token-box { font-family: var(--mono); background: var(--surface-2); border: 1px dashed var(--line-2); padding: 12px;
  border-radius: 8px; word-break: break-all; font-size: var(--fs-13); }

/* ---------- conferência ---------- */
.conf-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.conf-card { padding: 16px; cursor: pointer; display: grid; gap: 10px; text-align: left; border: 1px solid var(--line); }
.conf-card:hover { border-color: var(--line-2); }
.progress { height: 8px; background: var(--idle-soft); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ok); transition: width .3s; }
.scan-wrap { display: grid; grid-template-columns: 1fr 260px; gap: 16px; align-items: start; }
.scan-box { padding: 18px; display: grid; gap: 12px; }
.scan-input { font-family: var(--mono); font-size: var(--fs-22) !important; padding: 14px 16px !important; letter-spacing: .02em; }
.scan-row { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.scan-row label { flex: 1 1 200px; }
.scan-result { border-radius: var(--radius); padding: 14px 16px; border: 1px solid var(--line); background: var(--surface-2);
  min-height: 74px; display: grid; gap: 2px; align-content: center; }
.scan-result.ok { background: var(--ok-soft); border-color: var(--ok); }
.scan-result.warn { background: var(--warn-soft); border-color: var(--warn); }
.scan-result.bad { background: var(--bad-soft); border-color: var(--bad); }
.scan-result strong { font-size: var(--fs-16); }
.scan-result.pop { animation: pop .25s ease-out; }
@keyframes pop { from { transform: scale(.98); } to { transform: none; } }
.conf-stats { padding: 18px; display: grid; gap: 12px; }
.conf-big { font-size: var(--fs-40); font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); padding: 0 12px; }
.tab { border: 0; background: none; padding: 11px 12px; cursor: pointer; color: var(--muted); font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.tab .n { font-variant-numeric: tabular-nums; background: var(--idle-soft); border-radius: 99px; padding: 0 7px; margin-left: 4px; font-size: var(--fs-12); }
.camera { width: 100%; border-radius: var(--radius); background: #000; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- agente ---------- */
.steps { counter-reset: s; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: var(--fs-13); }
.steps p { margin: 2px 0 6px; color: var(--ink-2); }
pre.code { background: var(--side); color: #dfe4ee; padding: 12px 14px; border-radius: 8px; overflow: auto; font: var(--fs-12_5)/1.5 var(--mono); margin: 0; }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 60; }
.toast { background: var(--side); color: #fff; padding: 10px 14px; border-radius: 9px; box-shadow: var(--shadow-lg);
  font-size: var(--fs-13); max-width: 360px; animation: tin .2s ease-out; border-left: 3px solid var(--ok); }
.toast.err { border-left-color: var(--bad); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.skeleton { color: var(--muted); padding: 40px; text-align: center; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .scan-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; background: none; }
  .scan-input { font-size: var(--fs-17) !important; }
  .main { padding: 18px 16px 60px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-grid, .specs { grid-template-columns: 1fr; }
  .big-specs { grid-template-columns: 1fr 1fr; }
  .toolbar select { flex: 1 1 140px; }
  .table-wrap { max-height: none; }
}

/* links com aparência de botão */
a.btn { text-decoration: none; }

/* ====================================================================
   v3 — empréstimos, etiquetas, offline, alertas de hardware
   ==================================================================== */
.nav-badge { margin-left: auto; background: var(--brand-2); color: #fff; border-radius: 99px; font-size: var(--fs-11); font-weight: 700;
  min-width: 19px; height: 19px; display: inline-grid; place-items: center; padding: 0 5px; }

.net-banner { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap;
  padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: var(--fs-13_5); border: 1px solid; }
.net-banner.off { background: var(--warn-soft); border-color: var(--warn); color: var(--ink); }
.net-banner.sync { background: var(--info-soft); border-color: var(--info); color: var(--ink); }
.offline-tag { display: block; margin-top: 4px; font-size: var(--fs-12_5); color: var(--warn); font-weight: 600; }

.banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); }
.banner > div { display: grid; gap: 2px; flex: 1 1 260px; }
.banner span { font-size: var(--fs-13); color: var(--ink-2); }
.banner--bad { background: var(--bad-soft); border-color: var(--bad); }
.banner--bad strong { color: var(--bad); }
.banner--info { background: var(--info-soft); border-color: var(--info); }
.banner--warn { background: var(--warn-soft); border-color: var(--warn); }
.banner--warn strong { color: var(--warn); }

.feed-item--bad { background: var(--bad-soft); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 6px; }
.feed-item--bad a { color: var(--bad) !important; }
.tl.bad .b { border-color: var(--bad); background: var(--bad); }

/* seleção na tabela */
th.td-sel, td.td-sel { width: 34px; padding-right: 0; cursor: default; }
td.td-sel input, th.td-sel input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--accent); }
.sel-bar { display: flex; gap: 10px; align-items: center; padding: 8px 12px; background: var(--accent-soft); border-top: 1px solid var(--line); flex-wrap: wrap; }
tr.row-bad td { background: color-mix(in srgb, var(--bad-soft) 60%, transparent); }
td.acoes { text-align: right; }

/* formulários auxiliares */
.input-row { display: flex; gap: 6px; }
.input-row input { flex: 1; }
.lbl { font-size: var(--fs-13); font-weight: 500; color: var(--ink-2); display: block; margin-bottom: 6px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
label.check { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; font-weight: 400; color: var(--ink); cursor: pointer; }
label.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.rapidos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.chip-btn { border: 1px solid var(--line-2); background: var(--surface); border-radius: 99px; padding: 4px 11px; font-size: var(--fs-12_5); cursor: pointer; }
.chip-btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.mini { font-size: var(--fs-12); margin: 4px 0 0; }
.emp-maq { display: grid; gap: 2px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: var(--fs-13); }
.emp-maq-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.emp-maq strong { font-size: var(--fs-15); }
.emp-maq--bad { border-color: var(--bad); background: var(--bad-soft); }
.sig-head { display: flex; justify-content: space-between; align-items: center; }
canvas.sig { width: 100%; height: 150px; border: 1.5px dashed var(--line-2); border-radius: 10px; background: #fff; display: block; cursor: crosshair;
  background-image: linear-gradient(transparent calc(100% - 38px), #d6dae2 calc(100% - 38px), #d6dae2 calc(100% - 37px), transparent calc(100% - 37px)); }
.aviso-linha { background: var(--warn-soft); color: var(--warn); padding: 8px 12px; border-radius: 8px; font-size: var(--fs-13); font-weight: 500; }

/* câmera */
.cam-wrap { position: relative; }
.cam-mira { position: absolute; inset: 22% 18%; border: 3px solid rgba(255,255,255,.85); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0,0,0,.25); pointer-events: none; }

/* ---------- etiquetas ---------- */
.etq-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; padding: 14px 16px; margin-bottom: 12px; }
.etq-toolbar label:not(.check) { flex: 1 1 200px; }
.etq-toolbar #etq-pular-wrap { flex: 0 1 150px; }
.etq-area { display: flex; flex-wrap: wrap; gap: 18px; padding: 18px; background: var(--idle-soft); border-radius: var(--radius); overflow: auto; }
.etq-area .etq-pagina { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.15); flex: none; }
.etq { box-sizing: border-box; display: grid; grid-template-columns: auto 1fr; gap: 2.2mm; align-items: center; padding: 2.2mm 2.6mm;
  overflow: hidden; color: #000; font-family: var(--font); background: #fff; outline: .2mm dashed #d0d4dc; outline-offset: -.1mm; }
.etq-vazia { outline-color: #eee; }
.etq-qr { height: 100%; aspect-ratio: 1; max-height: 30mm; display: grid; }
.etq-qr svg { width: 100%; height: 100%; display: block; }
.etq-info { min-width: 0; display: grid; gap: .4mm; align-content: center; }
.etq-org { font-size: 5.4pt; font-weight: 700; letter-spacing: .08em; color: #333; text-transform: uppercase; }
.etq-pat { font-family: var(--mono); font-weight: 600; font-size: 11pt; line-height: 1.05; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etq-host { font-family: var(--mono); font-size: 6.5pt; color: #222; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etq-setor { font-size: 6pt; color: #444; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etq-barras { height: 6mm; margin-top: .6mm; }
.etq-barras svg { width: 100%; height: 100%; display: block; }
.etq-compacta .etq { padding: 1.6mm 2mm; gap: 1.6mm; }
.etq-compacta .etq-pat { font-size: 9.5pt; }
.etq-compacta .etq-barras { height: 4.6mm; }
.etq-grande .etq-pat { font-size: 14pt; }
.etq-grande .etq-host { font-size: 8pt; }
.etq-grande .etq-org { font-size: 6.5pt; }
.etq-grande .etq-barras { height: 8mm; }

@media print {
  body { background: #fff !important; }
  .sidebar, .net-banner, .no-print, #toasts, .drawer, .drawer-bg, .modal { display: none !important; }
  .app { display: block !important; background: none !important; min-height: 0; }
  .main { padding: 0 !important; }
  .etq-area { display: block; padding: 0; background: none; gap: 0; border-radius: 0; overflow: visible; }
  .etq-area .etq-pagina { box-shadow: none; break-after: page; page-break-after: always; }
  .etq-area .etq-pagina:last-child { break-after: auto; page-break-after: auto; }
  .etq { outline: none; }
}

/* ajustes de layout v3 */
.kpis { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }

/* ====================================================================
   v4 — marca Quallit, multinível (CDs, usuários), relatórios
   ==================================================================== */
.login { background: radial-gradient(900px 520px at 0% -10%, var(--accent-soft), transparent 70%),
  radial-gradient(700px 420px at 110% 110%, var(--accent-2-soft), transparent 70%), var(--bg); }
.login-card { border-top: 4px solid var(--brand); }
.login-card h2 { font-size: var(--fs-17); }

/* seletor de CD na barra lateral */
.cd-box { display: grid; gap: 4px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.cd-label { font-size: var(--fs-10_5); text-transform: uppercase; letter-spacing: .08em; color: var(--side-muted); font-weight: 600; }
.cd-box select { background: rgba(0,0,0,.25); color: #fff; border-color: rgba(255,255,255,.14); padding: 7px 8px; font-size: var(--fs-13); }
.cd-box select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(28,155,169,.3); }
.cd-box option { color: #0e1d20; background: #fff; }
.cd-fixo { color: #fff; font-size: var(--fs-13); } .cd-fixo b { color: var(--brand-2); margin-right: 4px; }
.user { display: grid; gap: 1px; }
.user strong { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.user span { color: var(--brand-2); font-size: var(--fs-11); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }

.pill--cd { font-family: var(--mono); font-size: var(--fs-11); font-weight: 600; background: var(--accent-soft); color: var(--accent); padding: 1px 7px; }
.pill--brand { background: var(--accent-2-soft); color: var(--accent-2); font-weight: 600; }
.btn--txt-bad { color: var(--bad); }
.btn--primary { box-shadow: 0 1px 0 rgba(0,0,0,.06), inset 0 -2px 0 rgba(0,0,0,.08); }

/* abas de página */
.tabs--page { padding: 0; margin: -6px 0 16px; }
.tabs--page .tab { text-decoration: none; font-size: var(--fs-14); }
.tabs--page .tab.active { border-bottom-color: var(--brand-2); }

/* escolha de perfil */
.papeis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.papel { display: flex !important; flex-direction: row !important; gap: 10px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--line-2);
  border-radius: 10px; cursor: pointer; font-weight: 400 !important; }
.papel input { margin-top: 3px; accent-color: var(--accent); }
.papel b { display: block; color: var(--ink); font-size: var(--fs-14); }
.papel small { color: var(--muted); font-size: var(--fs-12); line-height: 1.35; display: block; margin-top: 2px; }
.papel:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

/* relatórios */
.rel-tab th { white-space: normal; line-height: 1.2; min-width: 64px; vertical-align: bottom; }
.rel-tab td small { display: block; font-size: var(--fs-11); color: var(--muted); }
.rel-tab td a { color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: none; border-bottom: 1px dashed currentColor; }
.cel-ruim, .cel-ruim a { color: var(--bad) !important; }
tr.row-total td { font-weight: 700; background: var(--surface-2); border-top: 2px solid var(--line-2); }
.ac { display: flex; align-items: center; gap: 6px; white-space: nowrap; } .ac .meter { margin: 0; }
.meter i.ok { background: var(--ok); }
.filtros-rel .periodo { display: flex; flex-direction: row; align-items: center; gap: 6px; font-weight: 500; color: var(--muted); }
.filtros-rel .periodo input { width: auto; }
a[data-rel] { color: var(--ink); cursor: pointer; text-decoration: none; } a[data-rel]:hover { color: var(--accent); text-decoration: underline; }

/* destaques com a cor laranja da marca */
.kpi--warn .kpi-value { color: var(--accent-2); }
.progress i { background: linear-gradient(90deg, var(--brand), #27b3c2); }
.scan-input:focus { border-color: var(--brand-2) !important; box-shadow: 0 0 0 4px var(--accent-2-soft) !important; }
.view-head h1 { position: relative; padding-bottom: 6px; }
.view-head h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--brand-2); }

@media (max-width: 820px) {
  .papeis { grid-template-columns: 1fr; }
}

.rel-tab { font-size: var(--fs-12_5); }
.rel-tab th, .rel-tab td { padding: 8px 7px; }
.rel-tab th { font-size: var(--fs-11); }

.qr-box { width: 220px; height: 220px; background: #fff; border-radius: 12px; padding: 6px; }
.qr-box svg { width: 100%; height: 100%; display: block; }

/* ====================================================================
   v6 — painel limpo, modos de visualização, relatórios, agendamentos
   ==================================================================== */
.t-ok { color: var(--ok) !important; } .t-bad { color: var(--bad) !important; } .t-warn { color: var(--warn) !important; }
.mini-barra { display: block; height: 6px; border-radius: 99px; background: var(--idle-soft); overflow: hidden; }
.mini-barra i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }

/* segmentado */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 11px; border-radius: 8px; font-size: var(--fs-13); font-weight: 600; color: var(--muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.seg--larga { display: flex; } .seg--larga button { flex: 1; justify-content: center; padding: 9px 8px; }

/* ---------- painel ---------- */
.hero { display: grid; grid-template-columns: minmax(300px, 1.1fr) 2fr; gap: 16px; margin-bottom: 16px; }
.hero-saude { display: flex; align-items: center; gap: 20px; padding: 20px 22px; }
.hs-titulo { font-size: var(--fs-12); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--muted); }
.hs-txt strong { display: block; font-size: var(--fs-18); line-height: 1.3; margin: 3px 0; }
.hs-txt p { margin: 0; font-size: var(--fs-13_5); }
.anel-saude { --tam: 120px; position: relative; width: var(--tam); height: var(--tam); display: inline-grid; place-items: center; flex: none; }
.anel-saude svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.as-fundo { fill: none; stroke: var(--idle-soft); stroke-width: 10; }
.as-arco { fill: none; stroke: var(--cor); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .8s; }
.anel-saude b { position: relative; font-size: calc(var(--tam) * .24); letter-spacing: -.03em; color: var(--cor); }
.hero-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi2 { text-align: left; padding: 16px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; border: 1px solid var(--line); transition: transform .12s, border-color .12s; }
.kpi2:hover { transform: translateY(-2px); border-color: var(--accent); }
.k-rot { font-size: var(--fs-12_5); font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi2 b, .rr-kpi b { font-size: var(--fs-30); letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.k-sub { font-size: var(--fs-12_5); color: var(--muted); margin-top: auto; }
.grid-painel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; margin-bottom: 16px; }
.acoes-lista { display: grid; gap: 6px; }
.acao-item { display: grid; grid-template-columns: 34px 1fr auto 14px; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); text-align: left; cursor: pointer; transition: background .12s, border-color .12s; }
.acao-item:hover { background: var(--surface-2); border-color: var(--line-2); }
.acao-item.grave { border-left: 3px solid var(--bad); }
.ai-ico { font-size: var(--fs-20); text-align: center; }
.ai-txt strong { display: block; font-size: var(--fs-14); } .ai-txt small { display: block; color: var(--muted); font-size: var(--fs-12); line-height: 1.3; }
.ai-n { font-size: var(--fs-20); font-weight: 700; font-variant-numeric: tabular-nums; }
.acao-item.grave .ai-n { color: var(--bad); }
.ai-seta { color: var(--muted); font-size: var(--fs-20); }
.tudo-ok { display: grid; justify-items: center; gap: 4px; padding: 26px 10px; text-align: center; font-size: var(--fs-28); }
.tudo-ok strong { font-size: var(--fs-15); } .tudo-ok span { font-size: var(--fs-13); }
.prazos-lista { display: grid; gap: 8px; }
.prazo-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: inherit; }
.prazo-item:hover { background: var(--surface-2); }
.pi-txt { flex: 1; min-width: 0; display: grid; } .pi-txt strong { font-size: var(--fs-14); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pi-txt small { color: var(--muted); font-size: var(--fs-12_5); }
.sem-prazo { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: var(--fs-13); flex: none; }
.proximo-agend { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: var(--fs-13); }
.pilha-barra { display: flex; height: 18px; border-radius: 99px; overflow: hidden; margin: 14px 0 12px; background: var(--idle-soft); }
.pilha-barra span { display: block; height: 100%; transition: width .4s; } .pilha-barra span + span { box-shadow: inset 2px 0 0 var(--surface); }
.legenda { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px; }
.leg { display: grid; grid-template-columns: 12px 1fr auto 40px; align-items: center; gap: 8px; padding: 7px 8px; border: 0; background: none; border-radius: 8px; text-align: left; cursor: pointer; font-size: var(--fs-13); }
.leg:hover { background: var(--surface-2); }
.leg i { width: 12px; height: 12px; border-radius: 4px; } .leg span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leg b { font-variant-numeric: tabular-nums; } .leg small { color: var(--muted); text-align: right; }

/* ---------- máquinas: modos ---------- */
.barra-modos { display: flex; align-items: center; gap: 10px; padding: 10px 12px; flex-wrap: wrap; }
.modo-opts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.opt-modo { display: flex; flex-direction: row; align-items: center; gap: 6px; font-size: var(--fs-13); color: var(--muted); font-weight: 500; }
.opt-modo select { width: auto; padding: 5px 8px; font-size: var(--fs-13); }
.seg-ico { font-size: var(--fs-14); }
.maq-alt { padding: 4px 12px 14px; position: relative; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.mcard { display: grid; gap: 7px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .12s; min-width: 0; }
.mcard:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.mcard.sel { border-color: var(--accent); background: var(--accent-soft); }
.mcard.flash { animation: rowflash 1.6s ease-out; }
.mc-topo { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mc-topo .sel { width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.mc-host { font-weight: 600; font-size: var(--fs-14); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.mc-tipo { font-size: var(--fs-16); flex: none; }
.mc-mod { font-size: var(--fs-12_5); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.spec-chip { background: var(--surface-2); border-radius: 8px; padding: 5px 7px; display: grid; min-width: 0; }
.spec-chip small { font-size: var(--fs-10_5); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.spec-chip b { font-size: var(--fs-13); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter--b { width: 100%; margin: 3px 0 0; height: 4px; }
.mc-pe { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: var(--fs-12); }
.mc-pe .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-al { display: flex; flex-wrap: wrap; gap: 2px; }
.mais-cartoes { text-align: center; padding: 14px; }
.quadro { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; min-height: 300px; }
.coluna { flex: 0 0 270px; background: var(--surface-2); border-radius: 12px; border: 1px solid var(--line); border-top: 3px solid var(--cor); max-height: 70vh; display: flex; flex-direction: column; transition: background .15s, outline .15s; }
.coluna header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: var(--fs-13_5); }
.col-ponto { width: 9px; height: 9px; border-radius: 50%; background: var(--cor); flex: none; }
.coluna header strong { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-n { font-weight: 700; background: var(--surface); border-radius: 99px; padding: 0 8px; font-size: var(--fs-12); }
.col-cartoes { display: grid; gap: 8px; padding: 0 8px 10px; overflow-y: auto; }
.col-vazia { border: 2px dashed var(--line-2); border-radius: 10px; padding: 18px; text-align: center; color: var(--muted); font-size: var(--fs-12_5); }
.coluna.sobre { background: var(--accent-soft); outline: 2px dashed var(--accent); }
.coluna.bloq { opacity: .75; }
.mcard--c { padding: 10px 11px; gap: 4px; }
.mcard[draggable] { cursor: grab; } .mcard.arrastando { opacity: .4; }
.mos-legenda { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; align-items: center; }
.mleg { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 5px 11px; font-size: var(--fs-13); cursor: pointer; }
.mleg i { width: 11px; height: 11px; border-radius: 3px; } .mleg small { color: var(--muted); }
.mleg.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--accent-soft); } .mleg.off { opacity: .45; }
.mos-bloco h4 { margin: 12px 0 6px; font-size: var(--fs-13); }
.mosaico { display: flex; flex-wrap: wrap; gap: 4px; }
.tile { width: 24px; height: 24px; border-radius: 5px; border: 0; cursor: pointer; padding: 0; transition: transform .1s, opacity .2s; }
.tile:hover { transform: scale(1.35); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); z-index: 2; position: relative; }
.tile.apagado { opacity: .12; }
.mos-dica { position: absolute; z-index: 20; width: 240px; background: var(--side); color: #fff; border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; font-size: var(--fs-12_5); box-shadow: var(--shadow-lg); pointer-events: none; }
.mos-dica .muted { color: #9fb6ba; }
.toast--acao { display: flex; align-items: center; gap: 14px; }
.toast--acao button { background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 6px; padding: 3px 10px; cursor: pointer; font-weight: 600; }

/* ---------- relatórios ---------- */
.rel-filtro { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rel-resumo { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 12px; margin-bottom: 8px; }
.rr-saude { display: flex; align-items: center; gap: 16px; padding: 14px 18px; }
.rr-saude strong { display: block; font-size: var(--fs-22); }
.rr-saude .muted { font-size: var(--fs-12_5); }
.rr-kpi { padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.sec-rel { margin: 22px 0 10px; font-size: var(--fs-15); text-transform: none; letter-spacing: 0; color: var(--ink); display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.sec-rel .muted { font-weight: 400; font-size: var(--fs-12_5); }
.cds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.cd-saude { padding: 16px; display: grid; gap: 12px; align-content: start; }
.cs-topo { display: flex; gap: 14px; align-items: center; }
.cs-topo h3 { font-size: var(--fs-16); text-transform: none; letter-spacing: 0; color: var(--ink); margin: 4px 0 2px; }
.cs-topo .muted { font-size: var(--fs-12_5); }
.cs-online { display: grid; grid-template-columns: auto 1fr 40px; align-items: center; gap: 10px; font-size: var(--fs-12_5); color: var(--muted); }
.cs-online b { color: var(--ok); text-align: right; }
.cs-probs { display: grid; gap: 4px; }
.cs-prob { display: grid; grid-template-columns: 1fr 70px 30px; gap: 10px; align-items: center; border: 0; background: var(--surface-2); border-radius: 8px; padding: 7px 10px; font-size: var(--fs-13); text-align: left; cursor: pointer; }
.cs-prob:hover { background: var(--accent-soft); }
.cs-prob .mini-barra i { background: var(--warn); } .cs-prob.ruim .mini-barra i { background: var(--bad); }
.cs-prob b { text-align: right; font-variant-numeric: tabular-nums; } .cs-prob.ruim b { color: var(--bad); }
.cs-ok { padding: 12px; text-align: center; color: var(--ok); font-weight: 600; background: var(--ok-soft); border-radius: 8px; font-size: var(--fs-13_5); }
.cs-pe { display: flex; gap: 6px; }
.heatmap { font-size: var(--fs-13); }
.heatmap th, .heatmap td { padding: 9px 12px; }
.heatmap td.hm { text-align: center; background: rgba(var(--rgb), var(--a)); font-variant-numeric: tabular-nums; }
.heatmap td.hm a { color: inherit; text-decoration: none; display: grid; cursor: pointer; }
.heatmap td.hm small { font-size: var(--fs-11); opacity: .75; }
.heatmap td.zero { color: var(--muted); }
.heatmap tr:hover td:first-child { color: var(--accent); }
.tabela-completa { margin-top: 18px; }
.tabela-completa summary { padding: 14px 16px; cursor: pointer; font-weight: 600; color: var(--muted); }

/* ---------- agendamentos ---------- */
.ag-lista { display: grid; gap: 10px; }
.ag-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; }
.ag-card.ag-off { opacity: .65; }
.ag-ico { font-size: var(--fs-26); width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; flex: none; }
.ag-txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ag-tit { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .ag-tit strong { font-size: var(--fs-15); }
.ag-desc { font-size: var(--fs-13_5); color: var(--ink-2); } .ag-quando { font-size: var(--fs-13); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ag-acoes { display: flex; gap: 4px; flex-wrap: wrap; }
.dias { display: flex; gap: 6px; flex-wrap: wrap; }
.dia input { position: absolute; opacity: 0; pointer-events: none; }
.dia span { display: grid; place-items: center; width: 46px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line-2); font-weight: 600; font-size: var(--fs-13); cursor: pointer; }
.dia input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dia input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.prazo-livre { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px; font-weight: 400 !important; font-size: var(--fs-13); }
.prazo-livre input { width: 80px !important; padding: 4px 8px; }
.ag-previa { background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; font-size: var(--fs-13_5); }
.ag-previa ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 2px; }
.conf-card.com-prazo .relogio { margin-top: -2px; }

@media (max-width: 1200px) {
  .hero { grid-template-columns: 1fr; }
  .rel-resumo { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-kpis { grid-template-columns: 1fr 1fr; }
  .grid-painel { grid-template-columns: 1fr; }
  .seg-txt { display: none; }
  .ag-card { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .hero-saude { flex-direction: column; text-align: center; }
  .rel-resumo { grid-template-columns: 1fr; }
  .rr-saude { flex-direction: column; text-align: center; }
}
.heatmap { width: auto; min-width: min(100%, 560px); }
.heatmap th:first-child, .heatmap td:first-child { white-space: nowrap; min-width: 200px; }
.heatmap td.hm, .heatmap th.num { min-width: 96px; }
.legenda { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (max-width: 560px) {
  .prazo-item { flex-wrap: wrap; }
  .prazo-item .pi-txt { flex: 1 1 calc(100% - 80px); }
  .prazo-item .prazo-etq, .prazo-item > .muted { margin-left: 64px; }
}

/* ---------- agente 2.0 ---------- */
.tab-redes { border: 0; border-radius: 0; font-size: var(--fs-13_5); }
.tab-redes td, .tab-redes th { padding: 10px 12px; }
.tab-redes code, .rede-sug code, .sha { font-family: var(--mono); font-size: var(--fs-12_5); }
.acoes-linha { white-space: nowrap !important; text-align: right; }
.btn--danger-txt { color: var(--bad) !important; }
.vazio-linha { text-align: center; color: var(--muted); padding: 26px 12px !important; }
.rede-sugs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.rede-sug { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.rede-sug > div { display: grid; gap: 2px; min-width: 0; }
.rede-sug strong { font-size: var(--fs-14); } .rede-sug .muted { font-size: var(--fs-12_5); }
.dica-redes { font-size: var(--fs-13); margin-top: 16px; max-width: 900px; line-height: 1.5; }
.vs-topo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vs-atual, .vs-site { display: grid; gap: 4px; justify-items: start; align-content: start; }
.vs-site.destaque { border-color: var(--brand-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-2) 18%, transparent); }
.vs-num { font-size: var(--fs-32); letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.vs-atual .btn, .vs-site .btn { margin-top: 8px; }
.vs-legenda { display: grid; gap: 6px; font-size: var(--fs-13_5); }
.vs-legenda div { display: flex; align-items: center; gap: 8px; }
.vs-legenda i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.vs-v1 { margin-top: 12px; } .vs-v1 summary { cursor: pointer; color: var(--muted); font-size: var(--fs-13); font-weight: 600; }
.vs-v1-lista { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
@media (max-width: 760px) { .vs-topo { grid-template-columns: 1fr; } }
.tab-redes a { color: var(--accent); font-weight: 700; text-decoration: none; } .tab-redes a:hover { text-decoration: underline; }

/* ---------- telas mais limpas: ⓘ de ajuda, menu "Mais", sininho ---------- */
.titulo-linha { display: flex; align-items: center; gap: 8px; }
.ajuda { position: relative; }
.ajuda > summary { list-style: none; cursor: pointer; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%;
  color: var(--muted); font-size: var(--fs-16); line-height: 1; user-select: none; }
.ajuda > summary::-webkit-details-marker { display: none; }
.ajuda > summary:hover, .ajuda[open] > summary { color: var(--accent); background: var(--accent-soft); }
.ajuda-txt { position: absolute; left: 0; top: 30px; z-index: 40; width: min(440px, 80vw); background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.18); padding: 12px 14px; font-size: var(--fs-13_5); line-height: 1.5; font-weight: 400; }
.menu-mais { position: relative; }
.menu-mais > summary { list-style: none; }
.menu-mais > summary::-webkit-details-marker { display: none; }
.menu-lista { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 230px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.18); padding: 6px; display: grid; }
.menu-lista button, .menu-lista a { all: unset; box-sizing: border-box; cursor: pointer; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-size: var(--fs-14); display: grid; }
.menu-lista button:hover, .menu-lista a:hover, .menu-lista button:focus-visible { background: var(--accent-soft); }
.menu-lista small { color: var(--muted); font-size: var(--fs-12); }
.toolbar--extra { background: var(--surface-2, transparent); padding-top: 10px; }
.btn-avisos { position: relative; }
.btn-avisos .nav-badge { margin-left: 4px; }
.avisos { display: grid; gap: 10px; }
.avisos .banner { margin: 0; }
.avisos-tit { font-size: var(--fs-13); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 6px 0 0; }
.aviso-inv { display: grid; gap: 8px; justify-items: start; }
.aviso-linha { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: flex-start; width: 100%; }
.aviso-linha .muted { font-size: var(--fs-13); }
.aviso-pct { text-align: right; } .aviso-pct b { font-size: var(--fs-20); } .aviso-pct .muted { font-size: var(--fs-12); }
.aviso-inv summary { cursor: pointer; } .aviso-inv pre { white-space: pre-wrap; font-size: var(--fs-12); }
.mais-recolhido > summary { cursor: pointer; color: var(--muted); font-size: var(--fs-13); padding: 6px 0; }
.painel-mais { margin-top: 4px; }
.painel-mais > summary { font-size: var(--fs-14); font-weight: 600; padding: 10px 2px; }
.painel-mais[open] > summary { margin-bottom: 4px; }

/* link curto do coletor: QR code e código de barras na tela */
.lc-codigos { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.lc-qr { background: #fff; padding: 12px; border-radius: 12px; flex: none; line-height: 0; }
.lc-qr svg { width: 190px; height: 190px; display: block; }
.lc-lado { flex: 1 1 220px; display: grid; gap: 10px; }
.lc-url { font-size: var(--fs-15); font-weight: 600; word-break: break-all; color: var(--ink); }
.lc-passos { margin: 0; padding-left: 18px; font-size: var(--fs-13_5); color: var(--ink-2); display: grid; gap: 4px; }
.lc-barras { background: #fff; padding: 14px 16px; border-radius: 12px; line-height: 0; }
.lc-barras svg { width: 100%; height: 84px; display: block; }

/* Painel: o "N alugados" dentro do subtítulo do cartão não herda o tamanho do número principal */
.kpi2 .k-sub b { font-size: inherit; letter-spacing: normal; line-height: inherit; }
.drawer-foot { flex-wrap: wrap; }

/* ====================================================================
   Celular e tablet estreito (até 820 px)
   - barra superior fixa: ☰ menu · nome da tela · 🔔 avisos
   - menu lateral completo (com nomes) desliza da esquerda
   - abas roláveis numa linha, tabelas viram cartões, janelas e ficha em tela cheia
   ==================================================================== */
.topo-movel, .menu-fundo { display: none; }
@media (max-width: 820px) {
  .topo-movel { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 35; background: var(--side); color: #fff;
    padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top)); box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 4px 14px rgba(0,0,0,.15); }
  .topo-movel .brand-mark { width: 30px; height: 30px; background-color: #fff; border-radius: 8px; background-size: 78%; }
  .topo-titulo { flex: 1; min-width: 0; font-size: var(--fs-16); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topo-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 10px;
    background: transparent; color: #fff; font-size: var(--fs-21); cursor: pointer; flex: none; }
  .topo-btn:active, .topo-btn:hover { background: rgba(255,255,255,.08); }
  .topo-btn .nav-badge { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; font-size: var(--fs-10); padding: 0 4px; }

  .app { display: block; background: none; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 50; width: min(300px, 86vw); height: 100%; overflow-y: auto;
    flex-direction: column; flex-wrap: nowrap; gap: 16px; padding: 18px 12px; padding-top: max(18px, env(safe-area-inset-top));
    transform: translateX(-102%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; box-shadow: 8px 0 30px rgba(0,0,0,.3); }
  .app.menu-aberto .sidebar { transform: none; visibility: visible; transition: transform .22s ease; }
  .menu-fundo:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(10,12,18,.45); }
  .nav-item { padding: 12px 10px; font-size: var(--fs-15); }
  .cd-box select { font-size: var(--fs-16); }
  .logo-rd--menu { height: 26px; }
  .main { padding: 16px 14px 70px; }

  /* títulos e ações */
  .view-head { align-items: flex-start; gap: 10px; margin-bottom: 14px; }
  .view-head h1 { font-size: var(--fs-22); }
  .view-head .actions { width: 100%; }
  .view-head .actions > .btn, .view-head .actions > a.btn { flex: 1 1 auto; justify-content: center; text-align: center; }

  /* abas: uma linha só, rolando para o lado */
  .tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; flex: none; }

  /* busca e filtros: a busca ocupa a linha inteira */
  .toolbar { flex-wrap: wrap; }
  .toolbar .search { flex: 1 1 100%; }
  .toolbar select { flex: 1 1 140px; min-width: 0; }

  /* campos com 16 px: o iPhone não dá zoom ao tocar */
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: var(--fs-16); }

  /* janelas (modais) e ficha da máquina ocupando a tela */
  .modal { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .modal-body { max-height: calc(100dvh - 190px); }
  .modal-foot { flex-wrap: wrap; }
  .modal-foot .btn { flex: 1 1 auto; justify-content: center; }
  .drawer-head, .drawer-body { padding-left: 14px; padding-right: 14px; }
  .drawer-foot { padding: 10px 14px; padding-bottom: max(10px, env(safe-area-inset-bottom)); gap: 6px; }
  .drawer-foot .spacer { flex-basis: 100%; height: 0; }
  .drawer-foot #d-cancelar, .drawer-foot #d-salvar { flex: 1 1 40%; }
  .mini-table { display: block; overflow-x: auto; }

  /* inventário: anéis e números menores */
  .hero-kpis { gap: 10px; }
  .kpi2 b, .rr-kpi b { font-size: var(--fs-26); }
}

/* tabelas viram cartões no celular: cada linha é um bloco, cada célula mostra o nome da coluna à esquerda */
@media (max-width: 640px) {
  table.tabela-cartoes, table.tabela-cartoes tbody, table.tabela-cartoes tr, table.tabela-cartoes td { display: block; width: 100%; }
  table.tabela-cartoes thead { display: none; }
  table.tabela-cartoes tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  table.tabela-cartoes td { border: 0; padding: 3px 0; text-align: right; white-space: normal; min-height: 22px; overflow-wrap: anywhere; }
  table.tabela-cartoes td::before { content: attr(data-rotulo); float: left; margin-right: 12px; max-width: 46%; text-align: left;
    color: var(--muted); font-size: var(--fs-11); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; line-height: 1.9; }
  table.tabela-cartoes td[data-rotulo=""]::before { display: none; }
  table.tabela-cartoes td:first-child { text-align: left; font-size: var(--fs-15); }
  table.tabela-cartoes td:first-child::before { display: none; }
  table.tabela-cartoes td:empty { display: none; }
  table.tabela-cartoes td.acoes, table.tabela-cartoes td.acoes-linha { text-align: left; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
  table.tabela-cartoes td.acoes::before, table.tabela-cartoes td.acoes-linha::before { display: none; }
  table.tabela-cartoes td .sub { text-align: inherit; }
  table.tabela-cartoes td.empty, table.tabela-cartoes td.vazio-linha { text-align: center; }
  .table-wrap { overflow-x: visible; }
  .table-wrap:has(table:not(.tabela-cartoes)) { overflow-x: auto; }
}
