/* Vomini Suite — design system: duotone quente, cantos retos, tipografia grotesca + mono */
@font-face { font-family: 'Space Grotesk'; src: url('/app-motorista/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations'), url('/app-motorista/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/app-motorista/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --bg: #0a0908;
  --surface: #100f0e;
  --surface-2: #14120f;
  --surface-3: #1a1815;
  --line: #211f1d;
  --line-2: #1a1815;
  --line-strong: #35322f;
  --text: #f1ece9;
  --text-2: #b6b0ab;
  --text-3: #7c7772;
  --brand: #f1ece9;
  --brand-2: #d9d3ce;
  --brand-soft: #1c1a17;
  --brand-ink: #f1ece9;
  --on-brand: #0a0908;
  --ok: #34d399; --ok-soft: rgba(16, 185, 129, .15); --ok-ink: #6ee7b7;
  --warn: #fbbf24; --warn-soft: rgba(245, 158, 11, .15); --warn-ink: #fcd34d;
  --bad: #fb7185; --bad-soft: rgba(244, 63, 94, .15); --bad-ink: #fda4af;
  --info: #38bdf8; --info-soft: rgba(14, 165, 233, .15); --info-ink: #7dd3fc;
  --violet: #b6b0ab; --violet-soft: #1c1a17;
  --patio: #f5a524; --entregas: #4cc2ff; --central: #b49cff;
  --side: #080706;
  --side-2: #14120f;
  --side-text: color-mix(in srgb, #f1ece9 70%, transparent);
  --side-mute: #7c7772;
  --shadow-1: none;
  --shadow-2: 0 1px 0 rgba(0, 0, 0, .4);
  --shadow-3: 0 24px 60px -12px rgba(0, 0, 0, .7), 0 0 0 1px #211f1d;
  --lift: 0 14px 30px -14px rgba(0, 0, 0, .8);
  --r-sm: 2px; --r: 2px; --r-lg: 2px; --r-xl: 3px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --sans: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --grain: .06;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f1ece9; --surface: #f8f5f2; --surface-2: #f3eeea; --surface-3: #e7e1db;
  --line: #ddd5cd; --line-2: #e7e1db; --line-strong: #cbc3ba;
  --text: #14110f; --text-2: #4a4540; --text-3: #6b655f;
  --brand: #14110f; --brand-2: #2a2622; --brand-soft: #e7e1db; --brand-ink: #14110f; --on-brand: #f1ece9;
  --ok: #059669; --ok-soft: rgba(16, 185, 129, .15); --ok-ink: #047857;
  --warn: #d97706; --warn-soft: rgba(245, 158, 11, .17); --warn-ink: #b45309;
  --bad: #e11d48; --bad-soft: rgba(244, 63, 94, .13); --bad-ink: #be123c;
  --info: #0284c7; --info-soft: rgba(14, 165, 233, .14); --info-ink: #0369a1;
  --violet: #4a4540; --violet-soft: #e7e1db;
  --patio: #c77800; --entregas: #0a84c6; --central: #7652e0;
  --side: #ece6e1; --side-2: #e1dad3; --side-text: color-mix(in srgb, #14110f 70%, transparent); --side-mute: #6b655f;
  --shadow-2: 0 1px 0 rgba(20, 17, 15, .05);
  --shadow-3: 0 24px 60px -16px rgba(20, 17, 15, .28), 0 0 0 1px #ddd5cd;
  --lift: 0 14px 30px -16px rgba(20, 17, 15, .3);
  --grain: .04;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--sans); font-size: 14px; line-height: 1.45; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: ''; position: fixed; inset: -50%; z-index: 9999; pointer-events: none; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grao 1s steps(3) infinite;
}
@keyframes grao { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } }
::selection { background: var(--text); color: var(--bg); }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 1px solid var(--text-2); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; font-weight: 600; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .9em; }
svg.i { width: 17px; height: 17px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 14px; height: 14px; }
svg.i.lg { width: 21px; height: 21px; }
svg.i.xl { width: 26px; height: 26px; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .9em; letter-spacing: 0; }
.meta { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.sp { flex: 1; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- movimento ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes fade { from { opacity: 0; } }
.entra > * { animation: rise .34s var(--ease) both; }
.entra > *:nth-child(2) { animation-delay: .06s; } .entra > *:nth-child(3) { animation-delay: .1s; }
.entra > *:nth-child(4) { animation-delay: .14s; } .entra > *:nth-child(5) { animation-delay: .18s; }
.entra > *:nth-child(n+6) { animation-delay: .22s; }
.entra .kpis > * { animation: rise .34s var(--ease) both; }
.entra .kpis > *:nth-child(1) { animation-delay: .04s; } .entra .kpis > *:nth-child(2) { animation-delay: .08s; }
.entra .kpis > *:nth-child(3) { animation-delay: .12s; } .entra .kpis > *:nth-child(4) { animation-delay: .16s; }
.entra .kpis > *:nth-child(n+5) { animation-delay: .2s; }
.lift { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.lift:hover { transform: translateY(-2px); box-shadow: var(--lift); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  body::after { animation: none; }
}

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side {
  background: var(--side); color: var(--side-text); position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 14px 10px; overflow-y: auto;
}
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: var(--text); }
.logo-mark { width: 24px; height: 24px; border-radius: 2px; display: grid; place-items: center; background: var(--text); }
.logo-mark svg { width: 14px; height: 14px; stroke: var(--bg); stroke-width: 3; fill: none; stroke-linecap: square; stroke-linejoin: miter; }
.logo b { font-size: 16px; letter-spacing: -.03em; font-weight: 600; }
.logo small { display: none; }
.nav { position: relative; }
.nav-grupo { margin-top: 18px; }
.nav-titulo {
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--side-mute);
  padding: 0 10px 6px; display: flex; align-items: center; gap: 8px;
}
.nav-titulo i { display: none; }
.nav a {
  display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 2px; color: var(--side-text);
  font-weight: 500; font-size: 13.5px; transition: background .2s var(--ease), color .2s; position: relative;
}
.nav a:hover { background: var(--side-2); color: var(--text); }
.nav a.on { background: var(--side-2); color: var(--text); }
.nav a.on::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; background: var(--text); animation: fade .3s; }
.nav a svg { color: var(--side-mute); transition: color .2s; }
.nav a.on svg, .nav a:hover svg { color: var(--text); }
.nav a .tag { display: none; }
.side-pe { margin-top: auto; padding: 12px 8px 2px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.side-pe .row { justify-content: space-between; font-size: 12.5px; color: var(--side-mute); min-height: 30px; }
.side-pe .quem { gap: 2px; }
.side-pe .quem > span { flex: 1; min-width: 0; }
.live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); animation: pulse 2.4s infinite; }
.live.off::before { background: var(--text-3); box-shadow: none; animation: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; } }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 28px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 500;
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); min-width: 0; }
.crumbs > span, .crumbs > a { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.crumbs a:hover { color: var(--text); }
.crumbs b { color: var(--text); font-weight: 600; font-size: 15px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs svg { width: 12px; height: 12px; opacity: .6; }
.content { padding: 24px 28px 56px; max-width: 1640px; width: 100%; margin: 0 auto; }
.menu-btn { display: none; }

.page-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; min-height: 36px; }
.page-head h1 { font-size: 22px; font-weight: 600; letter-spacing: -.025em; }
.page-head p { display: none; }
.eyebrow { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }

/* ---------- selectors ---------- */
.seletor {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 6px; border-radius: 2px;
  border: 1px solid var(--line-strong); background: transparent; position: relative; max-width: 380px; transition: border-color .2s;
}
.seletor:hover { border-color: var(--text-3); }
.seletor .dot { width: 20px; height: 20px; border-radius: 2px; display: grid; place-items: center; color: #fff; font-size: 10.5px; font-weight: 700; flex: none; }
.seletor select { appearance: none; border: 0; background: transparent; outline: none; font-weight: 500; font-size: 13px; padding-right: 18px; min-width: 0; max-width: 300px; text-overflow: ellipsis; }
.seletor select option, .seletor select optgroup { background: var(--surface); color: var(--text); }
.seletor::after { content: ''; position: absolute; right: 11px; top: 14px; border: 4px solid transparent; border-top-color: var(--text-3); pointer-events: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 2px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text); white-space: nowrap;
  font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase;
  transition: background .2s var(--ease), border-color .2s, color .2s, transform .12s var(--ease);
}
.btn:hover { background: var(--surface-3); border-color: var(--text-3); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok-ink); }
.btn.ok:hover { background: color-mix(in srgb, var(--ok) 25%, transparent); }
.btn.danger { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 40%, transparent); color: var(--bad-ink); }
.btn.danger:hover { background: color-mix(in srgb, var(--bad) 25%, transparent); }
.btn.danger-ghost { color: var(--bad-ink); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 10.5px; }
.btn.lg { height: 46px; padding: 0 20px; font-size: 12.5px; }
.btn.xl { height: 56px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.icon { width: 34px; padding: 0; }
.btn.icon.sm { width: 28px; }
.btn .kbd { font-size: 10px; color: var(--text-3); }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 2px; min-width: 0; transition: border-color .2s; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); min-height: 50px; }
.card-h h3 { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.card-h .sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.card-b { padding: 16px; }
.card-b.flush { padding: 0; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.split.wide { grid-template-columns: minmax(0, 1fr) 420px; }

/* ---------- KPI ---------- */
.kpis { display: flex; flex-wrap: wrap; gap: 1px; margin-bottom: 14px; background: var(--line); border: 1px solid var(--line); }
.kpi { flex: 1 1 136px; min-width: 0; background: var(--surface); border: 0; border-radius: 0; padding: 14px 16px 16px; position: relative; overflow: hidden; color: var(--text); font: inherit; transition: background .2s var(--ease); }
button.kpi, a.kpi { text-align: left; cursor: pointer; }
button.kpi:hover, a.kpi:hover { background: var(--surface-2); }
.kpi .k-l { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); display: flex; align-items: center; gap: 7px; }
.kpi .k-l svg { width: 13px; height: 13px; color: var(--text-3); }
.kpi .k-v { font-size: 30px; font-weight: 500; letter-spacing: -.04em; margin-top: 10px; font-variant-numeric: tabular-nums; line-height: 1; }
.kpi .k-v small { font-size: 13px; font-weight: 500; color: var(--text-3); margin-left: 4px; letter-spacing: 0; }
.kpi .k-s { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.kpi.bad .k-v { color: var(--bad-ink); }
.kpi.warn .k-v { color: var(--warn-ink); }
.kpi.ok .k-v { color: var(--ok-ink); }
.kpi.hero { background: var(--surface); }
.kpi.on { box-shadow: inset 0 -2px 0 var(--text); background: var(--surface-2); }

/* ---------- pills / tags ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 21px; padding: 0 7px; border-radius: 2px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .04em;
  background: var(--surface-3); color: var(--text-2); white-space: nowrap;
}
.pill.dot::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-soft); color: var(--ok-ink); }
.pill.warn { background: var(--warn-soft); color: var(--warn-ink); }
.pill.bad { background: var(--bad-soft); color: var(--bad-ink); }
.pill.info { background: var(--info-soft); color: var(--info-ink); }
.pill.brand { background: var(--text); color: var(--bg); }
.pill.violet { background: var(--surface-3); color: var(--text-2); }
.pill.solid-bad { background: var(--bad); color: #fff; }
.pill svg { width: 11px; height: 11px; }
.placa {
  display: inline-flex; align-items: center; font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: .06em;
  padding: 1px 7px; border-radius: 2px; border: 1px solid var(--text-2); background: transparent; color: var(--text); position: relative; padding-top: 5px;
}
.placa::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: #2f5bd3; }
.placa.lg { font-size: 16px; padding: 7px 10px 3px; }
.placa.lg::before { height: 5px; }

/* ---------- tables ---------- */
.tabela { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabela th { text-align: left; font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--text-3); text-transform: uppercase; letter-spacing: .12em; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); white-space: nowrap; position: sticky; top: 0; z-index: 1; }
.tabela td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tbody tr { transition: background .15s; }
.tabela tbody tr.click { cursor: pointer; }
.tabela tbody tr.click:hover td { background: var(--surface-2); }
.tabela .r { text-align: right; }
.tabela-wrap { overflow: auto; }
.tabela-wrap.tall { max-height: 560px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .lbl { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.field .hint { font-size: 12px; color: var(--text-3); }
.input, .select, .textarea {
  height: 36px; border: 1px solid var(--line-strong); border-radius: 2px; background: transparent; padding: 0 12px; outline: none; width: 100%;
  transition: border-color .2s, background .2s; min-width: 0;
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.select option { background: var(--surface); color: var(--text); }
.textarea { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; }
.select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 17px) 15px, calc(100% - 12px) 15px; background-size: 5px 5px; background-repeat: no-repeat; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--text-2); background: var(--surface-2); }
.input.lg { height: 50px; font-size: 17px; }
.input.sm, .select.sm { height: 32px; font-size: 12.5px; padding-top: 0; padding-bottom: 0; }
.select.sm { background-position: calc(100% - 17px) 13px, calc(100% - 12px) 13px; }
.input.mono { font-family: var(--mono); letter-spacing: .04em; }
.input.err, .select.err { border-color: var(--bad); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 13.5px; }
.check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--text); flex: none; }
.switch { position: relative; width: 34px; height: 20px; flex: none; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 2px; background: var(--line-strong); transition: background .2s var(--ease); cursor: pointer; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 1px; background: var(--text-2); transition: transform .25s var(--ease), background .2s; }
.switch input:checked + span { background: var(--text); }
.switch input:checked + span::after { transform: translateX(14px); background: var(--bg); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 2px; padding: 2px; gap: 2px; }
.seg button { border: 0; background: transparent; height: 28px; padding: 0 11px; border-radius: 1px; font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; transition: background .2s var(--ease), color .2s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--text); color: var(--bg); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-x { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 4px 0 11px; border-radius: 2px; border: 1px solid var(--line-strong); font-weight: 500; font-size: 13px; }
.tag-x button { border: 0; background: transparent; width: 22px; height: 22px; border-radius: 2px; display: grid; place-items: center; color: var(--text-3); }
.tag-x button:hover { background: var(--bad-soft); color: var(--bad-ink); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; overflow-y: hidden; }
.tabs a, .tabs button {
  border: 0; background: none; padding: 10px 14px; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3); border-bottom: 1px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; transition: color .2s, border-color .2s;
}
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs .on { color: var(--text); border-bottom-color: var(--text); }
.tabs .cnt { font-size: 10px; padding: 1px 5px; border-radius: 2px; background: var(--surface-3); color: var(--text-2); letter-spacing: 0; }
.tabs .cnt.bad { background: var(--bad-soft); color: var(--bad-ink); }

/* ---------- lists ---------- */
.lista { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); min-width: 0; transition: background .15s; }
.item:last-child { border-bottom: 0; }
.item.click { cursor: pointer; }
.item.click:hover { background: var(--surface-2); }
.ico-box { width: 34px; height: 34px; border-radius: 2px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: none; }
.ico-box.ok { background: var(--ok-soft); color: var(--ok-ink); }
.ico-box.warn { background: var(--warn-soft); color: var(--warn-ink); }
.ico-box.bad { background: var(--bad-soft); color: var(--bad-ink); }
.ico-box.info { background: var(--info-soft); color: var(--info-ink); }
.ico-box.brand { background: var(--text); color: var(--bg); }
.ico-box.violet { background: var(--surface-3); color: var(--text-2); }
.ico-box.lg { width: 44px; height: 44px; }
.empty { padding: 40px 18px; text-align: center; color: var(--text-3); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13px; }
.empty svg { width: 24px; height: 24px; color: var(--line-strong); stroke-width: 1.4; }

/* ---------- progress ---------- */
.bar { height: 4px; border-radius: 0; background: var(--surface-3); overflow: hidden; display: flex; }
.bar > i { display: block; height: 100%; background: var(--text); transition: width .6s var(--ease); }
.bar > i.ok { background: var(--ok); } .bar > i.warn { background: var(--warn); } .bar > i.bad { background: var(--bad); } .bar > i.info { background: var(--info); } .bar > i.mute { background: var(--text-3); opacity: .35; }
.bar.thin { height: 3px; }

/* ---------- drawer / modal ---------- */
.veu { position: fixed; inset: 0; background: rgba(5, 4, 3, .55); backdrop-filter: blur(3px); z-index: 1000; animation: fade .25s var(--ease); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--surface); z-index: 1001; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; animation: slide .34s var(--ease); box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .6);
}
.drawer-h { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 12px; }
.drawer-b { padding: 20px 22px 40px; overflow-y: auto; flex: 1; }
.modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  background: var(--surface); border-radius: 2px; z-index: 1001; box-shadow: var(--shadow-3); display: flex; flex-direction: column; animation: pop .3s var(--ease);
}
.modal.wide { width: min(820px, calc(100vw - 32px)); }
.modal-h { padding: 20px 22px 0; display: flex; gap: 12px; align-items: flex-start; }
.modal-h h3 { font-size: 17px; }
.modal-b { padding: 18px 22px; overflow-y: auto; }
.modal-p { padding: 14px 22px 18px; display: flex; gap: 8px; justify-content: flex-end; border-top: 1px solid var(--line); }
@keyframes slide { from { transform: translateX(32px); opacity: 0; } }
@keyframes pop { from { transform: translate(-50%, -47%); opacity: 0; } }

/* ---------- toasts ---------- */
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 2px; font-weight: 500; font-size: 13px; box-shadow: var(--lift);
  display: flex; align-items: center; gap: 10px; animation: toast .34s var(--ease); max-width: min(520px, calc(100vw - 32px)); pointer-events: auto;
}
.toast svg { width: 16px; height: 16px; }
.toast.ok svg { color: #059669; } .toast.bad svg { color: #e11d48; } .toast.info svg { color: #0284c7; }
@keyframes toast { from { transform: translateY(12px); opacity: 0; } }

/* ---------- timeline / stepper ---------- */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--line-strong); }
.tl { position: relative; padding-bottom: 16px; animation: rise .34s var(--ease) both; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ''; position: absolute; left: -22px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 1px solid var(--text-3); }
.tl.feito::before { background: var(--ok); border-color: var(--ok); }
.tl.atual::before { background: var(--text); border-color: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 15%, transparent); }
.tl.bad::before { background: var(--bad); border-color: var(--bad); }
.tl.warn::before { background: var(--warn); border-color: var(--warn); }
.tl .tl-t { font-weight: 500; font-size: 13.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tl .tl-s { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.tl.pendente .tl-t { color: var(--text-3); }

.trilha { display: flex; align-items: center; gap: 0; }
.trilha .tp { flex: 1; height: 3px; background: var(--line-strong); position: relative; }
.trilha .tp.feito { background: var(--ok); } .trilha .tp.atual { background: var(--text); } .trilha .tp + .tp { margin-left: 2px; }
.trilha .tp.pulado { background: repeating-linear-gradient(90deg, var(--line-strong) 0 3px, transparent 3px 6px); }
.trilha .tp.fora { background: var(--warn); }
.tl.pulado .tl-t { color: var(--text-3); text-decoration: line-through; }
.tl.fora::before { background: var(--warn); border-color: var(--warn); }
.tl-gap { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin: -8px 0 8px; }
.tl-gap.bad { color: var(--bad); }
.destino-sug { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 18px; border-radius: 2px; background: var(--text); color: var(--bg); border: 0; font: inherit; cursor: pointer; animation: rise .3s var(--ease) both; }
.destino-sug b { font-size: 18px; display: block; } .destino-sug span { font-size: 12.5px; opacity: .7; }
.destino-sug .ico-box { background: color-mix(in srgb, var(--bg) 14%, transparent); color: var(--bg); }

/* ---------- section helpers ---------- */
.sec-t { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.sec-t:first-child { margin-top: 0; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 9px 14px; font-size: 13px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.callout { border-radius: 2px; padding: 11px 14px; display: flex; gap: 10px; font-size: 13px; align-items: flex-start; background: var(--surface-3); color: var(--text-2); }
.callout svg { margin-top: 1px; }
.callout.bad { background: var(--bad-soft); color: var(--bad-ink); }
.callout.warn { background: var(--warn-soft); color: var(--warn-ink); }
.callout.ok { background: var(--ok-soft); color: var(--ok-ink); }
.callout.info { background: var(--info-soft); color: var(--info-ink); }
.callout.brand { background: var(--surface-3); color: var(--text); }
.code {
  font-family: var(--mono); font-size: 12px; background: #080706; color: #e8e2dd; border: 1px solid #211f1d; border-radius: 2px; padding: 14px 16px; overflow: auto; white-space: pre; line-height: 1.65; max-height: 360px;
}
.code .k { color: #e3b878; } .code .s { color: #9fd4b0; } .code .c { color: #6b655f; }

/* ---------- map ---------- */
.mapa { height: 460px; background: var(--surface-3); z-index: 0; }
.mapa.alto { height: 560px; }
.leaflet-container { font-family: var(--sans); background: var(--surface-3) !important; }
.leaflet-popup-content-wrapper { border-radius: 2px; box-shadow: var(--lift); background: var(--surface); color: var(--text); }
.leaflet-popup-tip { background: var(--surface); }
.leaflet-popup-content { margin: 12px 14px; font-size: 13px; line-height: 1.45; }
.leaflet-bar a { background: var(--surface) !important; color: var(--text) !important; border-color: var(--line) !important; border-radius: 0 !important; }
.leaflet-bar { border: 1px solid var(--line) !important; border-radius: 2px !important; box-shadow: none !important; }
.leaflet-control-attribution { background: color-mix(in srgb, var(--bg) 70%, transparent) !important; color: var(--text-3) !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: var(--text-2) !important; }
.pin {
  width: 28px; height: 28px; border-radius: 50% 50% 50% 2px; transform: rotate(-45deg); display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700;
  border: 2px solid #f1ece9; box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
}
.pin span { transform: rotate(45deg); }
.truck-pin { width: 32px; height: 32px; border-radius: 2px; display: grid; place-items: center; color: #fff; border: 2px solid #f1ece9; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.truck-pin svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.base-pin { width: 36px; height: 36px; border-radius: 2px; display: grid; place-items: center; background: #14110f; color: #fff; border: 2px solid #f1ece9; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.base-pin svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.legenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ---------- início ---------- */
.saud { display: flex; align-items: flex-end; gap: 16px; margin: 6px 0 22px; flex-wrap: wrap; }
.saud h1 { font-size: 30px; font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.produtos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.produto { padding: 0; display: flex; flex-direction: column; }
.produto-h { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.produto-h h2 { font-size: 15px; font-weight: 600; }
.produto-h p { display: none; }
.produto-n { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.produto-n > div { padding: 14px 16px; }
.produto-n > div + div { border-left: 1px solid var(--line); }
.produto-n b { display: block; font-size: 24px; font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; margin-top: 8px; }
.superficie { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 46px; border-bottom: 1px solid var(--line); transition: background .2s var(--ease); }
.superficie:last-child { border-bottom: 0; }
.superficie:hover { background: var(--surface-2); }
.superficie:hover .seta { transform: translateX(3px); color: var(--text); }
.superficie .seta { margin-left: auto; color: var(--text-3); transition: transform .25s var(--ease), color .2s; }
.superficie b { display: block; font-size: 13.5px; font-weight: 500; }
.superficie span { font-size: 12.5px; color: var(--text-3); }
.superficie svg { color: var(--text-3); }
.superficie .papel { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-left: auto; }
.superficie .papel + .seta { margin-left: 8px; }
.papel.adm, .papel.cel, .papel.pai, .papel.pub, .papel.sup { background: none; }
.trilho { display: flex; gap: 2px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.split > .col { min-width: 0; }
@media (max-width: 640px) { .posto-ed .ico-box, .posto-ed .num { display: none; } .posto-ed { gap: 8px; padding: 12px; } .posto-ed .field { width: 70px !important; } }
.trilho .passo { flex: 1 1 0; min-width: 96px; padding: 10px 10px 9px; background: var(--surface-2); border-top: 2px solid var(--text-3); animation: rise .4s var(--ease) both; }
.trilho .passo:nth-child(2) { animation-delay: 40ms; } .trilho .passo:nth-child(3) { animation-delay: 80ms; } .trilho .passo:nth-child(4) { animation-delay: 120ms; } .trilho .passo:nth-child(5) { animation-delay: 160ms; } .trilho .passo:nth-child(6) { animation-delay: 200ms; }
.trilho .passo b { display: block; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trilho .passo span { display: block; margin-top: 3px; font: 10.5px var(--mono); color: var(--text-3); }
.fluxo { display: grid; grid-template-columns: repeat(7, auto); align-items: center; gap: 8px; justify-content: space-between; padding: 18px; overflow-x: auto; }
.fluxo .no { border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px; background: var(--surface-2); min-width: 140px; }
.fluxo .no b { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; }
.fluxo .no span { font-size: 12px; color: var(--text-3); display: block; margin-top: 4px; line-height: 1.4; }
.fluxo .no.destaque { border-color: var(--text-3); }
.fluxo .seta-f { color: var(--text-3); display: flex; flex-direction: column; align-items: center; font-size: 10.5px; gap: 2px; }
.atividade { display: flex; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13px; animation: rise .34s var(--ease) both; }
.atividade:last-child { border-bottom: 0; }
.atividade .h { font-family: var(--mono); font-size: 11px; color: var(--text-3); width: 40px; flex: none; }

/* ---------- torre ---------- */
.esteira { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 1px; overflow-x: auto; background: var(--line); border: 1px solid var(--line); }
.coluna { background: var(--surface); display: flex; flex-direction: column; min-height: 440px; }
.coluna-h { padding: 12px 12px 10px; border-bottom: 1px solid var(--line); }
.coluna-h .row b { font-size: 13px; font-weight: 600; }
.coluna-h .cnt { margin-left: auto; font-family: var(--mono); font-weight: 500; font-size: 11px; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 2px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.coluna-h .meta { display: flex; gap: 10px; margin-top: 6px; font-size: 11px; color: var(--text-3); text-transform: none; letter-spacing: 0; font-family: var(--mono); }
.coluna-b { padding: 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vcard {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 2px; padding: 10px 11px; cursor: pointer;
  transition: border-color .2s, box-shadow .2s var(--ease), transform .2s var(--ease); position: relative; overflow: hidden; animation: fade .3s var(--ease);
}
.vcard:hover { border-color: var(--line-strong); box-shadow: var(--lift); transform: translateY(-2px); }
.vcard.critico { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.vcard.critico::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--bad); }
.vcard.atencao::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--warn); }
.vcard.transito { background: transparent; border-style: dashed; opacity: .8; }
.vcard .linha1 { display: flex; align-items: center; gap: 6px; }
.vcard .tempo { margin-left: auto; font-family: var(--mono); font-weight: 500; font-size: 12px; font-variant-numeric: tabular-nums; }
.vcard .tempo.critico { color: var(--bad-ink); } .vcard .tempo.atencao { color: var(--warn-ink); }
.vcard .quem { font-size: 12px; color: var(--text-2); margin-top: 7px; }
.vcard .quem div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcard .tags-v { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 7px; }
.vcard .bar { margin-top: 8px; }
.alerta { display: flex; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: flex-start; transition: background .15s; }
.alerta:hover { background: var(--surface-2); }
.alerta:last-child { border-bottom: 0; }
.alerta .sinal { width: 6px; height: 6px; border-radius: 50%; margin-top: 7px; flex: none; }

/* ---------- device (phone) ---------- */
.palco { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: start; }
.device {
  width: 390px; height: 800px; border-radius: 52px; padding: 11px; background: #050403;
  box-shadow: 0 0 0 1px #35322f, 0 40px 80px -30px rgba(0, 0, 0, .8); position: sticky; top: 80px;
}
.device-screen { width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: var(--bg); position: relative; display: flex; flex-direction: column; }
.device-screen .ilha { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 110px; height: 32px; border-radius: 20px; background: #000; z-index: 50; }
.status-bar { height: 50px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 34px; font-weight: 600; font-size: 14.5px; position: relative; z-index: 40; }
.status-bar .ico { display: flex; gap: 5px; align-items: center; }
.status-bar svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.app-m { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.m-top { padding: 4px 18px 12px; display: flex; align-items: center; gap: 10px; flex: none; }
.m-top h2 { font-size: 20px; font-weight: 600; letter-spacing: -.03em; }
.m-top .sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.m-scroll { flex: 1; overflow-y: auto; padding: 0 16px 24px; min-height: 0; scrollbar-width: none; }
.m-scroll::-webkit-scrollbar { display: none; }
.m-scroll > * { animation: rise .34s var(--ease) both; }
.m-foot { padding: 12px 16px 26px; border-top: 1px solid var(--line); background: var(--surface); flex: none; display: flex; gap: 8px; }
.m-card { background: var(--surface); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.m-card + .m-card { margin-top: 10px; }
.m-item { display: flex; gap: 12px; align-items: center; padding: 13px 14px; border-bottom: 1px solid var(--line); min-width: 0; transition: background .15s; }
.m-item:last-child { border-bottom: 0; }
.m-item.click { cursor: pointer; }
.m-item.click:active { background: var(--surface-3); }
.m-sec { font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--text-3); letter-spacing: .14em; text-transform: uppercase; margin: 20px 2px 8px; display: flex; align-items: center; gap: 8px; }
.m-sec:first-child { margin-top: 4px; }
.m-hero { border-radius: 2px; padding: 18px; color: var(--bg); background: var(--text); position: relative; overflow: hidden; }
.m-hero .lbl { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.m-hero h3 { font-size: 20px; margin-top: 4px; }
.m-hero .faint, .m-hero .muted { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.scan-btn {
  width: 100%; border: 0; border-radius: 2px; padding: 18px; display: flex; align-items: center; gap: 16px; text-align: left; color: var(--bg);
  background: var(--text); transition: transform .15s var(--ease), background .2s;
}
.scan-btn .ico-box { width: 50px; height: 50px; background: color-mix(in srgb, var(--bg) 12%, transparent); color: var(--bg); }
.scan-btn b { font-size: 17px; display: block; font-weight: 600; letter-spacing: -.02em; }
.scan-btn span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .65; }
.scan-btn:active { transform: scale(.98); }
.camera { position: relative; border-radius: 2px; overflow: hidden; background: #000; aspect-ratio: 1 / 1; }
.camera video { width: 100%; height: 100%; object-fit: cover; }
.camera .mira { position: absolute; inset: 22% 10%; border-radius: 2px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .5); outline: 1px solid rgba(241, 236, 233, .5); }
.camera .mira::after { content: ''; position: absolute; left: 6%; right: 6%; top: 50%; height: 1px; background: #fb7185; box-shadow: 0 0 10px #fb7185; animation: laser 1.6s ease-in-out infinite alternate; }
@keyframes laser { from { transform: translateY(-36px); } to { transform: translateY(36px); } }
.camera .sem-cam { position: absolute; inset: 0; display: grid; place-items: center; color: #7c7772; text-align: center; padding: 24px; font-size: 13px; }
.resultado { text-align: center; padding: 26px 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.resultado .grande { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; animation: pop2 .45s var(--ease); }
.resultado .grande svg { width: 38px; height: 38px; stroke-width: 2; }
.resultado h3 { font-size: 22px; letter-spacing: -.03em; }
@keyframes pop2 { from { transform: scale(.6); opacity: 0; } }
.cracha {
  background: #f8f5f2; color: #14110f; border-radius: 2px; padding: 18px; border: 1px solid #ddd5cd; text-align: center; position: relative;
}
.cracha::before { content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 40px; height: 5px; border-radius: 1px; background: #ddd5cd; }
.cracha svg.bc { width: 100%; height: 92px; margin-top: 10px; }
.chk-item { padding: 13px 14px; border-bottom: 1px solid var(--line); }
.chk-item:last-child { border-bottom: 0; }
.chk-item .n { font-family: var(--mono); font-weight: 500; color: var(--text-3); font-size: 11px; }
.chk-item p { font-size: 13px; margin-top: 2px; }
.cna { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.cna button { height: 34px; border-radius: 2px; border: 1px solid var(--line-strong); background: transparent; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; color: var(--text-2); transition: background .2s var(--ease), color .2s, border-color .2s; }
.cna button.on.c { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 50%, transparent); color: var(--ok-ink); }
.cna button.on.nc { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 50%, transparent); color: var(--bad-ink); }
.cna button.on.na { background: var(--surface-3); border-color: var(--text-3); color: var(--text); }
.chk-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.chk-campos .input { height: 34px; font-size: 13px; }
.chk-sec { display: flex; align-items: center; gap: 10px; padding: 13px 14px; cursor: pointer; }
.chk-sec .prog { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.assinatura { border: 1px dashed var(--line-strong); border-radius: 2px; height: 150px; background: var(--surface); touch-action: none; position: relative; }
.assinatura canvas { width: 100%; height: 100%; display: block; }
.assinatura .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); font-size: 13px; pointer-events: none; }
.assinatura .linha { position: absolute; left: 20px; right: 20px; bottom: 34px; border-bottom: 1px solid var(--line-strong); pointer-events: none; }
.foto-box { border: 1px dashed var(--line-strong); border-radius: 2px; min-height: 150px; display: grid; place-items: center; background: var(--surface); overflow: hidden; position: relative; cursor: pointer; transition: border-color .2s; }
.foto-box:hover { border-color: var(--text-3); }
.foto-box img { width: 100%; max-height: 260px; object-fit: contain; display: block; }
.parada { display: flex; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.parada:last-child { border-bottom: 0; }
.parada .seq { width: 26px; height: 26px; border-radius: 2px; display: grid; place-items: center; font-family: var(--mono); font-weight: 500; font-size: 11.5px; background: var(--surface-3); color: var(--text-2); flex: none; }
.parada .seq.ok { background: var(--ok-soft); color: var(--ok-ink); } .parada .seq.bad { background: var(--bad-soft); color: var(--bad-ink); } .parada .seq.atual { background: var(--text); color: var(--bg); }
.palco-info { max-width: 520px; padding-top: 6px; }
.palco-info h1 { font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.palco-info > p { display: none; }
.passos { display: flex; flex-direction: column; gap: 0; margin-top: 18px; border: 1px solid var(--line); }
.passo { display: flex; gap: 12px; padding: 12px 14px; align-items: center; }
.passo + .passo { border-top: 1px solid var(--line); }
.passo .n { width: 22px; height: 22px; border-radius: 2px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); font-family: var(--mono); font-weight: 500; font-size: 11px; flex: none; }
.passo b { font-size: 13.5px; display: block; font-weight: 500; }
.passo span { font-size: 12.5px; color: var(--text-3); }

/* full-screen mobile (#/m/...) */
.mobile-full { height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.mobile-full .status-bar { display: none; }
.mobile-full .m-top { padding-top: calc(14px + env(safe-area-inset-top)); }
.mobile-full .m-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }

/* ---------- rastreio ---------- */
.rastreio { max-width: 560px; margin: 0 auto; padding: 22px 16px 40px; }
.rastreio > * { animation: rise .4s var(--ease) both; }
.rastreio > *:nth-child(2) { animation-delay: .06s; } .rastreio > *:nth-child(3) { animation-delay: .12s; } .rastreio > *:nth-child(n+4) { animation-delay: .18s; }
.rastreio .marca { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.rastreio .marca .dot { width: 30px; height: 30px; border-radius: 2px; display: grid; place-items: center; color: #fff; font-weight: 700; }
.rastreio .eta { font-size: 44px; font-weight: 500; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.passos-h { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 18px; }
.passos-h div { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.passos-h div i { display: block; height: 3px; background: var(--line-strong); margin-bottom: 8px; transition: background .4s var(--ease); }
.passos-h div.on { color: var(--text); }
.passos-h div.on i { background: var(--ok); }
.passos-h div.atual i { background: var(--text); }

/* ---------- de-para ---------- */
.depara td { padding: 8px 12px; }
.depara .seta-dp { color: var(--text-3); width: 30px; text-align: center; }
.depara .select { height: 32px; font-size: 12.5px; }
.depara .select.mono { font-family: var(--mono); }
.depara tr.erro td { background: var(--bad-soft); }
.depara .grupo td { background: var(--surface-2); font-family: var(--mono); font-size: 10px; font-weight: 500; color: var(--text-3); text-transform: uppercase; letter-spacing: .14em; padding: 8px 12px; }
/* dicionário de dados: descrição larga, colunas do cliente estreitas; no celular a tabela rola */
.dicionario { min-width: 760px; }
.dicionario td { vertical-align: top; }
.dicionario .c-campo { width: 22%; }
.dicionario .c-desc { width: 36%; }
.dicionario .c-conv { min-width: 210px; }
.dicionario .c-col { width: 18%; }
.dicionario .c-desc .textarea { min-height: 52px; font-size: 12.5px; padding: 7px 10px; }
.dicionario .c-conv .textarea { min-height: 44px; padding: 6px 8px; }
.dicionario tr.apagado td { color: var(--text-3); }
.regras { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); }
.quebra-tudo { overflow-wrap: anywhere; word-break: break-all; }
.etapa { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; animation: rise .34s var(--ease) both; }
.etapa:last-child { border-bottom: 0; }
.conector-card { padding: 16px; display: flex; flex-direction: column; gap: 14px; cursor: pointer; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s var(--ease); }
.conector-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--lift); }
.diagrama { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.diagrama .db { border: 1px solid var(--line); border-radius: 2px; padding: 10px 12px; background: var(--surface-2); min-width: 0; }
.diagrama .db b { font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.diagrama .db span { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.diagrama .lig { height: 1px; width: 40px; background: var(--line-strong); position: relative; }
.diagrama .lig.ok { background: var(--ok); } .diagrama .lig.bad { background: var(--bad); }
.diagrama .lig.ok::after, .diagrama .lig.bad::after { content: ''; position: absolute; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: inherit; animation: flui 1.6s linear infinite; }
@keyframes flui { from { left: 0; } to { left: 21px; } }

/* ---------- misc ---------- */
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 11.5px; flex: none; color: #fff; }
.chip-empresa { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: 13px; }
.chip-empresa i { width: 8px; height: 8px; border-radius: 1px; display: inline-block; }
.donut { width: 92px; height: 92px; flex: none; }
.skeleton { background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 2px; }
@keyframes sk { to { background-position: -200% 0; } }
.carregando { padding: 80px; display: grid; place-items: center; color: var(--text-3); animation: fade .6s .15s both; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); border-top-color: var(--text); animation: gira .7s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.flash { animation: flash 1.4s var(--ease); }
@keyframes flash { from { background: color-mix(in srgb, var(--text) 10%, transparent); } }
.link { color: var(--text); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--text); }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.foto-canhoto { width: 100%; border-radius: 2px; border: 1px solid var(--line); display: block; }
.mini-stat { display: flex; flex-direction: column; gap: 4px; }
.mini-stat b { font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.mini-stat span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.local-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 1280px) {
  .split, .split.wide { grid-template-columns: 1fr; }
  .produtos { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .palco { grid-template-columns: 1fr; justify-items: center; }
  .palco-info { order: -1; }
  .device { position: static; }
  .g3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 2000; transform: translateX(-100%); transition: transform .3s var(--ease); }
  .side.aberta { transform: none; box-shadow: var(--shadow-3); }
  .menu-btn { display: inline-flex; }
  .top { padding: 0 16px; }
  .content { padding: 18px 16px 40px; }
  .g2, .g4, .form-grid { grid-template-columns: 1fr; }
  .fluxo { grid-template-columns: 1fr; justify-content: stretch; }
  .fluxo .seta-f { transform: rotate(90deg); }
  .top .seletor { max-width: 52vw; }
  .crumbs > span, .crumbs > a, .crumbs > svg { display: none; }
  .esconde-mob { display: none !important; }
  .saud h1 { font-size: 24px; }
}

/* ---------- prévia WhatsApp ---------- */
.zap { border-radius: 2px; overflow: hidden; border: 1px solid var(--line); max-width: 380px; }
.zap-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #075e54; color: #fff; }
.zap-h .tiny { color: rgba(255, 255, 255, .7); }
.zap-b { background: #0b141a; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.bolha { background: #202c33; color: #e9edef; border-radius: 2px 10px 10px 10px; padding: 9px 12px 20px; font-size: 13px; line-height: 1.5; position: relative; max-width: 92%; }
.zap-link { color: #53bdeb; text-decoration: underline; }
.zap-hora { position: absolute; right: 9px; bottom: 4px; font-size: 10.5px; color: #8696a0; }
:root[data-theme="light"] .zap-b { background: #e7ddd4; }
:root[data-theme="light"] .bolha { background: #fff; color: #111b21; }
:root[data-theme="light"] .zap-link { color: #027eb5; }
.cor-op { width: 28px; height: 28px; border-radius: 2px; display: block; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s; }
input:checked + .cor-op { box-shadow: 0 0 0 2px var(--text); }

/* tiles OSM: neutros no claro, invertidos e quentes no escuro */
.leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) saturate(.15) sepia(.18) brightness(.78) contrast(.95); }
:root[data-theme="light"] .leaflet-tile-pane { filter: saturate(.25) sepia(.12) contrast(.95) brightness(1.02); }

.nav a .ext { margin-left: auto; width: 13px; height: 13px; opacity: .45; transform: rotate(-45deg); }
.mini-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mini-stats .mini-stat b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------------- início */
.g-patio { --acc: var(--patio); } .g-entregas { --acc: var(--entregas); } .g-central, .g-super, .g-admin { --acc: var(--central); }
.saud .data { font-size: 13px; color: var(--text-3); margin-bottom: 6px; }
.painel-ini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 8px 0 44px; }
.bloco { border-top: 2px solid var(--acc); padding-top: 18px; min-width: 0; }
.entra .bloco { animation: rise .45s var(--ease) both; }
.entra .bloco:nth-child(2) { animation-delay: .06s; } .entra .bloco:nth-child(3) { animation-delay: .12s; }
.bloco-t { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--acc); }
.bloco-t svg { color: var(--acc); }
.bloco-n { font-size: 56px; font-weight: 500; letter-spacing: -.045em; line-height: 1; margin-top: 22px; font-variant-numeric: tabular-nums; }
.bloco-n small { font-size: 22px; color: var(--text-3); letter-spacing: -.02em; }
.bloco-n.bad { color: var(--bad-ink); }
.bloco-l { font-size: 15px; color: var(--text); margin-top: 8px; }
.bloco-s { font-size: 14px; color: var(--text-3); margin-top: 4px; min-height: 21px; }
.bloco-s .aviso-erp { display: inline-flex; align-items: center; gap: 6px; color: var(--bad-ink); }
.bloco-s .aviso-erp:hover { text-decoration: underline; }
.bloco-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.bloco-links a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; font-size: 13px; color: var(--text-2);
  background: color-mix(in srgb, var(--acc) 9%, transparent); border-radius: 2px; transition: background .2s var(--ease), color .2s; }
.bloco-links a:hover { color: var(--text); background: color-mix(in srgb, var(--acc) 18%, transparent); }
.ativ-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.ativ-h h2 { font-size: 17px; font-weight: 600; }
.link-sutil { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); transition: color .2s; }
.link-sutil:hover { color: var(--text); }
.ativ { border-top: 1px solid var(--line); }
.ativ-l { display: flex; align-items: center; gap: 14px; padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ativ-hora { font: 12px var(--mono); color: var(--text-3); width: 42px; flex: none; }
.ativ-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--text-3); }
.ativ-dot.o-patio { background: var(--patio); } .ativ-dot.o-entregas { background: var(--entregas); } .ativ-dot.o-erp, .ativ-dot.o-admin { background: var(--central); }
.ativ-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ativ-local { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.sync { display: inline-flex; align-items: center; gap: 4px; font: 500 11px var(--mono); flex: none; width: 52px; justify-content: flex-end; }
.sync svg { width: 12px; height: 12px; }
.sync.ok { color: var(--ok-ink); } .sync.bad { color: var(--bad-ink); } .sync.warn { color: var(--warn-ink); }
@media (max-width: 900px) {
  .painel-ini { grid-template-columns: 1fr; gap: 28px; margin-bottom: 32px; }
  .bloco-n { font-size: 44px; margin-top: 14px; }
}

/* cor de cada produto no menu */
.nav-grupo .nav-titulo { display: flex; align-items: center; gap: 7px; }
.nav-grupo .nav-titulo::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--acc, var(--text-3)); }
.nav-grupo a.on::before { background: var(--acc, var(--text)); }
.nav-grupo a.on svg { color: var(--acc, var(--text)); }

/* ---------- editor de jornadas ---------- */
.passos-j { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip-passo { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line-strong); border-radius: 2px; padding: 2px 2px 2px 4px; font-size: 12.5px; background: var(--surface); animation: rise .25s var(--ease) both; }
.chip-passo b { font-weight: 500; padding: 0 4px; }
.chip-passo button { border: 0; background: none; color: var(--text-3); padding: 3px; border-radius: 2px; cursor: pointer; display: inline-flex; }
.chip-passo button:hover:not(:disabled) { color: var(--text); background: var(--surface-3); }
.chip-passo button:disabled { opacity: .25; cursor: default; }
.chip-passo button svg { width: 13px; height: 13px; }
.chip-passo.falta { border-color: var(--bad); color: var(--bad); }

/* ---------- licença ---------- */
.faixa-lic { display: flex; align-items: center; gap: 10px; padding: 8px 28px; background: var(--warn-soft); color: var(--warn-ink); font-size: 13px; border-bottom: 1px solid var(--line); animation: rise .25s var(--ease) both; }
.faixa-lic.passe { background: var(--info-soft); color: var(--info-ink); }
.faixa-lic .grow { flex: 1; min-width: 0; }
.bloqueio { max-width: 420px; margin: 9vh auto 40px; padding: 0 16px; display: flex; flex-direction: column; align-items: stretch; animation: rise .3s var(--ease) both; }
.bloqueio .ico-box { align-self: flex-start; margin-bottom: 18px; }
.bloqueio h1 { font-size: 24px; margin: 0 0 6px; }
@media (max-width: 700px) { .faixa-lic { padding: 8px 16px; } }

/* administração da empresa (área do cliente) */
.grid-adm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 900px) { .grid-adm { grid-template-columns: minmax(0, 1fr); } }
.lista-adm { display: flex; flex-direction: column; }
.item-adm { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-top: 1px solid var(--line-2); color: var(--text); text-decoration: none; transition: background .15s; }
.item-adm:first-child { border-top: 0; }
.item-adm:hover { background: var(--surface-2); }
.item-adm > svg { color: var(--text-3); flex: none; }
