/* Frota.ElidSystem — folha única. Sem framework: o que existe aqui é o que a tela usa. */

:root {
  --bg: #eef1f4;
  --surface: #ffffff;
  --surface-alt: #f6f8fa;
  --line: #dde3e9;
  --line-soft: #eaeef2;
  --ink: #16202b;
  --ink-2: #3d4c5a;
  --muted: #6b7b8a;

  --brand: #1d4e89;
  --brand-soft: #e6eef8;
  --ok: #17864b;
  --ok-soft: #e2f2e9;
  --warn: #a5620a;
  --warn-soft: #f8efe1;
  --erro: #a62121;
  --erro-soft: #f8e6e6;

  --raio: 10px;
  --sombra: 0 1px 2px rgba(16, 32, 48, .06), 0 1px 3px rgba(16, 32, 48, .04);
  /* 268 e nao 236: com "Despesas de viagem" e "Checklist do veiculo" no
     menu, os rotulos mais longos encostavam na borda. */
  --sidebar: 268px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e141a;
    --surface: #161e26;
    --surface-alt: #1b242e;
    --line: #27333f;
    --line-soft: #202a34;
    --ink: #e6edf3;
    --ink-2: #c0cbd6;
    --muted: #8b9aa8;

    --brand: #6ea6e0;
    --brand-soft: #16283c;
    --ok: #4fbe83;
    --ok-soft: #143024;
    --warn: #dd9a4b;
    --warn-soft: #33240f;
    --erro: #e4787b;
    --erro-soft: #331718;
  }
}

* { box-sizing: border-box; }

/**
 * O atributo `hidden` vale menos que qualquer classe que declare `display`.
 * Sem esta regra, um `<button class="btn" hidden>` continua aparecendo — foi
 * o que aconteceu com os botões de lote e com o overlay de geocodificação.
 */
[hidden] { display: none !important; }

/**
 * A escala de texto do painel inteiro.
 *
 * Toda medida de fonte da folha — e dos estilos inline das views — está em
 * `rem`, que é relativo a ESTA linha. Mudar aqui move as 73 declarações de
 * `font-size` de uma vez, mantendo a hierarquia entre elas: um título continua
 * proporcionalmente maior que um rótulo. Ajustar tamanho a tamanho, além do
 * trabalho, faria a proporção se perder no caminho.
 *
 * 90% de 16px = 14,4px. O texto corrido do painel fica em 13,5px, que é a
 * faixa em que sistemas administrativos densos costumam operar.
 *
 * A página pública do cliente (`publico.css`) e a folha de pedido
 * (`folha.css`) têm escala própria e não são afetadas: uma é lida no celular,
 * a outra é impressa em A4, e encolher qualquer das duas seria piorá-las.
 */
html { font-size: 90%; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: .9375rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --------------------------------------------------------------- estrutura */

.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar);
  flex: 0 0 var(--sidebar);
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar__marca {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}
.sidebar__marca strong { display: block; font-size: 1rem; letter-spacing: -.01em; }
.sidebar__marca span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

.sidebar__nav { flex: 1; overflow-y: auto; padding: 10px 0; }

.sidebar__grupo {
  padding: 14px 18px 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  color: var(--ink-2);
  font-size: .9rem;
  border-left: 3px solid transparent;
}
.sidebar__link:hover { background: var(--surface-alt); text-decoration: none; color: var(--ink); }
.sidebar__link--ativo { border-left-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }

/* Subitem: uma tela que pertence ao item de cima (Cargas → Montar rota). */
.sidebar__sublink {
  display: block;
  padding: 7px 18px 7px 46px;
  color: var(--muted);
  font-size: .84rem;
  border-left: 3px solid transparent;
  position: relative;
}
.sidebar__sublink::before {
  content: "";
  position: absolute;
  left: 30px; top: 50%;
  width: 8px; height: 1px;
  background: var(--line);
}
.sidebar__sublink:hover { background: var(--surface-alt); text-decoration: none; color: var(--ink); }
.sidebar__sublink--ativo {
  border-left-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.sidebar__sublink--ativo::before { background: var(--brand); }

/* A ajuda fica fixa acima do rodapé, para todos — mesmo com o menu comprido. */
.sidebar__ajuda { border-top: 1px solid var(--line); padding: 6px 0; }
.sidebar__link--ajuda { color: var(--brand); font-weight: 600; }
.sidebar__link--ajuda span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; font-size: .75rem; }
.sidebar__link--ajuda:hover { background: var(--brand-soft); }
.sidebar__rodape { padding: 14px 18px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.sidebar__rodape strong { display: block; color: var(--ink); font-size: .88rem; }

.conteudo { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topo h1 { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.botao-voltar { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-2); font: inherit; cursor: pointer; white-space: nowrap; }
.botao-voltar:hover { background: var(--surface-alt); color: var(--ink); }

.principal { padding: 22px 24px 48px; }

.menu-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--ink); }

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 40;
    box-shadow: 4px 0 24px rgba(0,0,0,.12);
  }
  .sidebar.aberta { transform: translateX(0); }
  .menu-toggle { display: block; }
  .principal { padding: 16px 14px 40px; }
  .topo { padding: 12px 14px; }
}

/* ------------------------------------------------------------------ cartões */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--raio);
  padding: 14px 16px;
  box-shadow: var(--sombra);
}

.card__rotulo { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.card__valor { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.card__nota { font-size: .78rem; color: var(--muted); margin-top: 2px; }

.painel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  margin-bottom: 20px;
  overflow: hidden;
}
.painel__cabecalho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
}
.painel__cabecalho h2 { margin: 0; font-size: .95rem; font-weight: 600; }
.painel__corpo { padding: 16px; }

/* ------------------------------------------------------------------ tabelas */

.tabela-scroll { overflow-x: auto; }

table.tabela { width: 100%; border-collapse: collapse; min-width: 640px; }
table.tabela th, table.tabela td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.tabela thead th {
  background: var(--surface-alt);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.tabela tbody tr:hover { background: var(--surface-alt); }
table.tabela td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tabela td.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; }

.vazio { padding: 34px 20px; text-align: center; color: var(--muted); font-size: .9rem; }

/* --------------------------------------------------------------- etiquetas */

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
}
.tag--ok { background: var(--ok-soft); color: var(--ok); }
.tag--andamento { background: var(--brand-soft); color: var(--brand); }
.tag--pendente { background: var(--warn-soft); color: var(--warn); }
.tag--erro { background: var(--erro-soft); color: var(--erro); }

/* ------------------------------------------------------------------- forms */

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 14px; }
.campo { display: flex; flex-direction: column; gap: 5px; }
.campo--largo { grid-column: 1 / -1; }

/* O .campo é uma coluna flex: sem isto o botão estica na largura toda da linha. */
.campo > .btn { align-self: flex-start; }
.campo label { font-size: .76rem; font-weight: 600; color: var(--ink-2); }

/* A dica embaixo de um campo. A classe já era usada em várias telas, mas só
   tinha regra dentro do rodapé de itens — nas outras saía com o corpo do
   texto, do mesmo tamanho e da mesma cor do conteúdo. */
.fc-hint { display: block; font-size: .78rem; color: var(--muted); line-height: 1.45; }

input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=month], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
}
textarea { min-height: 78px; resize: vertical; }

input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filtros .campo { min-width: 150px; }

/* ------------------------------------------------------------------ botões */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: .87rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.06); text-decoration: none; color: #fff; }
.btn--contorno { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn--contorno:hover { background: var(--surface-alt); color: var(--ink); }
.btn--perigo { background: var(--erro); }
.btn--ok { background: var(--ok); }
.btn--pequeno { padding: 5px 10px; font-size: .78rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.acoes-linha { display: flex; gap: 6px; flex-wrap: wrap; }

/* ------------------------------------------------------------------- avisos */

/**
 * Bloco, não flex: com `display:flex` cada <strong> dentro do aviso vira uma
 * coluna própria e o texto se parte em pedaços lado a lado.
 */
.aviso {
  display: block;
  padding: 11px 14px;
  border-radius: var(--raio);
  border: 1px solid var(--line);
  margin-bottom: 16px;
  font-size: .88rem;
}
.aviso--sucesso { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.aviso--erro { background: var(--erro-soft); border-color: transparent; color: var(--erro); }
.aviso--aviso { background: var(--warn-soft); border-color: transparent; color: var(--warn); }

/* --------------------------------------------------------------------- mapa */

#mapa { height: 380px; width: 100%; border-radius: var(--raio); }

/* --------------------------------------------------------------- paginação */

.paginacao { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }

/* ------------------------------------------------------------------- login */

.login-tela {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}
.login-caixa {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(16, 32, 48, .08);
  padding: 28px 26px;
}
.login-caixa h1 { margin: 0 0 4px; font-size: 1.3rem; }
.login-caixa p.sub { margin: 0 0 22px; color: var(--muted); font-size: .86rem; }
.login-caixa .campo + .campo { margin-top: 12px; }
.login-caixa .btn { width: 100%; justify-content: center; margin-top: 18px; padding: 10px; }

/* ------------------------------------------------------------------- erro */

.erro-tela { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.erro-tela .codigo { font-size: 3.4rem; font-weight: 700; color: var(--brand); letter-spacing: -.03em; }
.erro-tela h1 { margin: 4px 0 10px; font-size: 1.3rem; }
.erro-tela p { margin: 0 auto 20px; max-width: 46ch; color: var(--ink-2); }

/* ============================================================ montador de rota */

.rota-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.rota-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
.rota-item[draggable="true"] { cursor: grab; }
.rota-item.arrastando { opacity: .4; }
.rota-item--sem-geo { border-left: 3px solid var(--warn); }

.rota-item__seq {
  flex: 0 0 auto;
  min-width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--brand); color: #fff;
  font-size: .78rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.rota-item__info { flex: 1; min-width: 0; }
.rota-item__info strong { display: block; font-size: .9rem; }
.rota-item__info span { display: block; font-size: .76rem; color: var(--muted); }
.rota-item__pedidos { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rota-item__peso {
  flex: 0 0 auto;
  font-size: .78rem; font-weight: 600; color: var(--ink-2);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.rota-item__previsao { font-size: .78rem; color: var(--brand); font-weight: 600; white-space: nowrap; }
.rota-item__acoes { flex: 0 0 auto; display: flex; gap: 4px; }
.rota-item__check { flex: 0 0 auto; width: 16px; height: 16px; cursor: pointer; }

a.rota-mini { display: grid; place-items: center; text-decoration: none; }
a.rota-mini:hover { text-decoration: none; }

.rota-mini {
  width: 26px; height: 26px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-alt);
  color: var(--ink-2);
  font: inherit; font-size: .82rem; line-height: 1;
  cursor: pointer;
}
.rota-mini:hover { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }

.rota-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}
.rota-mapa { grid-column: 1 / -1; }
.rota-coluna .painel__corpo { max-height: 560px; overflow-y: auto; }
.rota-coluna .campo { margin-bottom: 12px; }

@media (max-width: 1024px) {
  .rota-layout { grid-template-columns: 1fr; }
}

.rota-dica { margin: 0 0 12px; font-size: .82rem; color: var(--muted); max-width: 60ch; }
.rota-vazio { padding: 22px 8px; text-align: center; color: var(--muted); font-size: .88rem; }
.rota-contador {
  background: var(--brand-soft); color: var(--brand);
  padding: 2px 9px; border-radius: 999px;
  font-size: .76rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.rota-check { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--ink-2); }
.btn.ativo { background: var(--warn); color: #fff; border-color: transparent; }

.rota-mapa-caixa { position: relative; }
.rota-mapa-caixa #mapa { height: 460px; }
.desenhando { cursor: crosshair !important; }

.rota-geo {
  position: absolute; inset: 0; z-index: 500;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-radius: var(--raio);
  text-align: center; padding: 20px;
}
.rota-geo-barra { width: min(320px, 80%); height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.rota-geo-barra span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }

/* pinos do mapa */
.pino-wrap { background: none; border: 0; }
.pino {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  color: #fff; font-size: .7rem; font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
}
.pino--livre {
  display: block; width: 12px; height: 12px;
  border-radius: 50%; background: #8b9aa8;
  border: 1px solid #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

/* --------------------------------------------------------------------- modal */

.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(10, 18, 26, .55);
}
.modal[hidden] { display: none; }
.modal__caixa {
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .28);
}
.modal__topo {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.modal__topo h3 { margin: 0; font-size: 1rem; }
.modal__fechar { background: none; border: 0; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--muted); }
.modal__corpo { padding: 16px; }
.modal__rodape { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); }
#mini-mapa { height: 260px; border-radius: 9px; margin-top: 12px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ------------------------------------------- link público do pedido */

.painel__nota {
  font-size: .76rem;
  color: var(--muted);
}

.link-cartao {
  border: 1px solid var(--line);
  border-radius: var(--raio);
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--surface-alt);
}

/* Recém-gerado: a tela volta com ?link=ID e este é o que o usuário procura. */
.link-cartao--novo { border-color: var(--ok); background: var(--ok-soft); }

/* Revogado ou vencido continua listado para explicar por que parou de abrir. */
.link-cartao--morto { opacity: .62; }

.link-cartao__topo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.link-cartao__endereco {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.link-cartao__endereco input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-family: ui-monospace, "Consolas", monospace;
  font-size: .78rem;
}

.link-cartao__rodape {
  margin-top: 10px;
  font-size: .76rem;
  color: var(--muted);
}

/* Botão que age como link: usado para "Revogar" dentro de um parágrafo. */
.btn-link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: .76rem;
  cursor: pointer;
  text-decoration: underline;
  color: var(--brand);
}

.btn-link--perigo { color: var(--erro); }
.btn-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }

/**
 * Célula de ações da lista de pedidos.
 *
 * Os botões empilham em vez de ficar lado a lado: "Ver o pedido completo para
 * imprimir" é um rótulo longo, e numa linha só ele esticaria a coluna para uns
 * 240px em toda a tabela. Empilhados, a coluna fica na largura do maior rótulo
 * e as linhas continuam legíveis.
 */
.acoes-celula {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  white-space: nowrap;
}

.acoes-celula .btn { text-align: center; }

/* ------------------------------- cartões de previsão do dashboard */

/*
 * A seção "Previsão de Cargas" do dashboard do Frota.Connect.
 *
 * Os valores vêm de lá: título com a barra #2c3e50 à esquerda, cartão branco
 * de canto 15px com sombra leve, e a caixa cinza dividida ao meio por uma
 * linha. O original usava as classes do Bootstrap (`card shadow-sm border-0`,
 * `row g-0 bg-light rounded p-2 border`, `badge bg-success-subtle`); aqui são
 * regras próprias com as mesmas medidas e cores, porque o resto do sistema não
 * carrega Bootstrap.
 */

.secao-previsao { margin-bottom: 22px; }

/* O título ganhou um atalho ao lado; a margem de baixo passa para a linha. */
.secao-previsao__topo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}

.secao-previsao__topo .section-title { margin: 0; }

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #34495e;
  margin: 0 0 15px;
  border-left: 4px solid #2c3e50;
  padding-left: 10px;
}

@media (prefers-color-scheme: dark) {
  .section-title { color: var(--ink); border-left-color: var(--ink-2); }
}

.grid-cargas {
  display: grid;
  /* col-12 / col-md-6 / col-xl-4 do original: 1, 2 e 3 por linha. */
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px)  { .grid-cargas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .grid-cargas { grid-template-columns: repeat(3, 1fr); } }

.carga-card {
  display: block;
  background: var(--surface);
  border: 0;
  border-radius: 15px;
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.carga-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
}

.carga-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* `card-body` do Bootstrap: 1rem de folga por todos os lados. */
.carga-card__corpo { padding: 1rem; }

.carga-card__topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: .5rem;
}

/* `badge bg-*-subtle text-*` — fundo lavado, texto na cor cheia. */
.badge-status {
  padding: .35em .65em;
  border-radius: .375rem;
  font-size: .75em;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.badge-status--rota       { background: #d1e7dd; color: #146c43; }
.badge-status--carregando { background: #fff3cd; color: #997404; }

.carga-card__num { font-size: .875em; color: var(--muted); }

.carga-card__motorista {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

/* `row g-0 bg-light rounded p-2 text-center border mt-3` */
.carga-card__datas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 1rem;
  padding: .5rem;
  border: 1px solid var(--line);
  border-radius: .375rem;
  background: var(--surface-alt);
  text-align: center;
}

/* `border-end` na primeira metade: a linha que separa Saída de Retorno. */
.carga-card__data + .carga-card__data { border-left: 1px solid var(--line); }

.carga-card__data small {
  display: block;
  font-size: .875em;
  color: var(--muted);
}

.carga-card__data span { font-weight: 700; }

/* `text-primary` do original. */
.carga-card__retorno { color: var(--brand); }

.card-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}

/* ------------------------------------- widget de trajeto (fundo escuro) */

/*
 * O painel escuro do dashboard do Frota.Connect (#1e2a3b). É a única tela do
 * sistema que não segue os tokens de tema: o mapa tem fundo claro próprio, e a
 * moldura escura em volta é o que faz o traçado e os pinos saltarem. Por isso
 * as cores aqui são literais nos dois temas, de propósito.
 */
.frota-widget {
  background: #1e2a3b;
  color: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 22px;
}

.frota-widget__topo {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.frota-widget__topo h2 { margin: 0; font-size: 1rem; font-weight: 700; }

.frota-widget__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.frota-widget__acoes .btn--contorno { border-color: rgba(255, 255, 255, .35); color: #fff; }
.frota-widget__acoes .btn--contorno:hover { background: rgba(255, 255, 255, .1); }

.frota-widget__atualizado { font-size: .72rem; color: rgba(255, 255, 255, .55); }

.frota-widget__corpo {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

@media (max-width: 900px) {
  .frota-widget__corpo { grid-template-columns: 1fr; }
}

#mapa-trajeto {
  height: 460px;
  border-radius: 12px;
  z-index: 1;
}

@media (max-width: 700px) { #mapa-trajeto { height: 320px; } }

.frota-widget__datas {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(0, 0, 0, .22);
  font-size: .8rem;
  color: rgba(255, 255, 255, .7);
}

.frota-widget__datas strong { color: #fff; }

.frota-widget__legenda {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 10px 0 0;
  font-size: .72rem;
  color: rgba(255, 255, 255, .55);
}

.legenda--feito { color: #6bb6ec; }
.legenda--futuro { color: #f1c40f; }
.legenda--caminhao { color: #e74c3c; }

.frota-widget__lista h3 {
  margin: 0 0 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.frota-lista { max-height: 460px; overflow-y: auto; padding-right: 4px; }
.frota-lista__vazio { color: rgba(255, 255, 255, .55); font-size: .84rem; }

.frota-item {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.frota-item--feito { opacity: .62; }

.frota-item__topo {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  font-size: .8rem;
}

.frota-item__topo small { color: rgba(255, 255, 255, .55); font-size: .72rem; }

.frota-item__selo {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}

.frota-item__selo--feito  { background: #d6e9f8; color: #17548a; }
.frota-item__selo--hoje   { background: #d8f2e2; color: #146c45; }
.frota-item__selo--futuro { background: #fbeecd; color: #8a5c07; }

.frota-item__km { display: block; margin-top: 6px; font-size: .7rem; color: rgba(255, 255, 255, .5); }

.frota-barra {
  height: 6px;
  background: rgba(255, 255, 255, .12);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
}

.frota-barra__fill { display: block; height: 100%; border-radius: 10px; transition: width 1s; }
.frota-barra__fill--feito  { background: #3498db; }
.frota-barra__fill--hoje   { background: #2ecc71; }
.frota-barra__fill--futuro { background: #f1c40f; }

@media (prefers-reduced-motion: reduce) { .frota-barra__fill { transition: none; } }

/* Pinos do mapa de trajeto. */
.pino-trajeto span,
.pino-sede span,
.pino-caminhao span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #fff;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}

.pino-sede span { background: #2c3e50; border-radius: 4px; }
.pino-caminhao span { background: #e74c3c; font-size: .8rem; }

/* ------------------------------------------------ ficha do pedido */

/*
 * Os blocos do `crud-vinyl/pedido_form.php`: cada seção é um `<fieldset>` com
 * legenda, e os campos correm em grade. Lá eram `<label>` inline soltos, que
 * em tela larga esparramavam e em celular empilhavam sem alinhamento nenhum;
 * a grade resolve os dois casos com a mesma regra.
 */

.ficha { display: block; }

.bloco {
  border: 1px solid var(--line);
  border-radius: var(--raio);
  background: var(--surface);
  padding: 16px 18px 18px;
  margin: 0 0 16px;
}

.bloco legend {
  padding: 0 8px;
  font-weight: 700;
  font-size: .95rem;
}

.bloco__dica {
  margin: 0 0 12px;
  font-size: .8rem;
  color: var(--muted);
}

.bloco__campos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.bloco__campos .campo--largo  { grid-column: span 2; }
.bloco__campos .campo--curto  { max-width: 150px; }
.bloco__campos .campo--total  { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .bloco__campos { grid-template-columns: 1fr; }
  .bloco__campos .campo--largo { grid-column: span 1; }
  .bloco__campos .campo--curto { max-width: none; }
}

/* Tabela de itens: cada campo com moldura própria — sem ela, a linha em branco
   de um pedido novo parecia não ter onde digitar. */
.tabela-itens-form td { padding: 3px 4px; }

.tabela-itens-form input,
.tabela-itens-form select {
  width: 100%;
  min-width: 0;
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .82rem;
}
.tabela-itens-form input::placeholder { color: var(--muted); opacity: .75; }

.tabela-itens-form input:focus,
.tabela-itens-form select:focus {
  border-color: var(--brand);
  background: var(--surface);
  outline: none;
}

.tabela-itens-form input.num { text-align: right; font-variant-numeric: tabular-nums; }

.tabela-itens-form--leitura .descricao-completa {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
  padding: 5px 6px;
}

.tabela-itens-form--leitura .campo-leitura {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
  padding: 5px 6px;
}

.tabela-itens-form--leitura .campo-leitura--num {
  white-space: nowrap;
}

.bloco--leitura {
  min-width: 0;
}

.bloco--leitura .tabela-itens-form {
  min-width: 0;
  table-layout: fixed;
}

.bloco--leitura .tabela-itens-form th {
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: .64rem;
}

.bloco--leitura .tabela-itens-form th:nth-child(1) { width: 11%; }
.bloco--leitura .tabela-itens-form th:nth-child(2) { width: 23%; }
.bloco--leitura .tabela-itens-form th:nth-child(3) { width: 8%; }
.bloco--leitura .tabela-itens-form th:nth-child(4) { width: 7%; }
.bloco--leitura .tabela-itens-form th:nth-child(5) { width: 11%; }
.bloco--leitura .tabela-itens-form th:nth-child(6) { width: 8%; }
.bloco--leitura .tabela-itens-form th:nth-child(7) { width: 14%; }
.bloco--leitura .tabela-itens-form th:nth-child(8) { width: 15%; }
.bloco--leitura .tabela-itens-form th:nth-child(9) { width: 3%; }

.btn-remover {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--erro);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.btn-remover:hover { background: var(--erro-soft); border-color: var(--erro); }
.btn-remover:focus-visible { outline: 2px solid var(--erro); outline-offset: 2px; }

.itens-rodape {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  margin-top: 14px;
}

.itens-rodape .fc-hint { flex: 1 1 220px; }

.ficha__acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

/* -------------------------------- itens do pedido dentro da carga */

/* Texto só para leitor de tela — o botão de expandir é um triângulo. */
.sr-oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.btn-expandir {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--ink-2);
  font-size: .8rem;
  line-height: 1;
  cursor: pointer;
}

.btn-expandir:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.btn-expandir:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-expandir:disabled { opacity: .35; cursor: default; }

/*
 * A linha de itens não recebe o zebrado nem o padding da tabela mãe: ela é um
 * painel dentro da linha, não mais uma linha da lista.
 */
.linha-itens > td {
  padding: 0;
  background: var(--surface-alt);
  border-top: 0;
}

/*
 * Painel de itens — cartões, não tabela aninhada.
 *
 * Uma <table> dentro de outra herda o zebrado, as bordas e o alinhamento da
 * tabela mãe: vira uma grade dentro de outra grade, sem hierarquia visível e
 * com o olho perdendo onde um pedido termina e o outro começa. O cartão isola
 * cada item e dá à descrição — que é o que se lê primeiro — uma linha só dela.
 */

.itens-painel {
  padding: 14px 16px 16px;
  background: var(--surface-alt);
  border-top: 2px solid var(--brand);
}

/* Na lista de rota o painel é filho do <li>; ali a borda é toda em volta. */
.rota-item--expansivel .itens-painel {
  margin: 10px -14px -12px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--raio) var(--raio);
}

.itens-painel__topo {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.itens-painel__topo strong { font-size: .92rem; }
.itens-painel__topo span { font-size: .78rem; color: var(--muted); margin-left: 8px; }

.itens-painel__somas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.itens-painel__somas span {
  margin: 0;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.itens-grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 10px;
}

.item-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}

.item-card__topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.item-card__codigo {
  font-family: ui-monospace, "Consolas", monospace;
  font-size: .74rem;
  color: var(--muted);
}

.item-card__descricao {
  margin: 0 0 10px;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.35;
}

.item-card__dados {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
}

.item-card__dados > div { display: flex; flex-direction: column; gap: 1px; }

.item-card__dados dt {
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.item-card__dados dd {
  margin: 0;
  font-size: .84rem;
  font-variant-numeric: tabular-nums;
}

.item-card__fotos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}

.item-card__fotos > span {
  color: var(--muted);
  font-size: .74rem;
}

.item-card__foto,
.item-card__fotos-mais {
  width: 48px;
  height: 48px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-alt);
  cursor: pointer;
}

.item-card__foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-card__fotos-mais {
  color: var(--ink-2);
  font-size: .82rem;
  font-weight: 700;
}

.item-card__foto:focus-visible,
.item-card__fotos-mais:focus-visible,
.fotos-modal button:focus-visible,
.fotos-modal a:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.fotos-modal {
  width: min(760px, calc(100vw - 28px));
  max-width: none;
  max-height: min(90dvh, 900px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}

.fotos-modal::backdrop { background: rgb(12 18 22 / 72%); }

.fotos-modal__cabecalho {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.fotos-modal__cabecalho h2 { margin: 0; font-size: 1rem; }

.fotos-modal__fechar {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: var(--surface-alt);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.fotos-modal__grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
  padding: 16px;
}

.fotos-modal__miniatura {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-alt);
  color: var(--ink-2);
  font-size: .75rem;
  text-align: left;
  cursor: pointer;
}

.fotos-modal__miniatura img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  object-fit: cover;
}

.fotos-modal__ampliada { padding: 16px; }

.fotos-modal__ampliada > img {
  display: block;
  width: 100%;
  max-height: 68dvh;
  object-fit: contain;
}

.fotos-modal__acoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

[data-fotos-modal] [hidden] { display: none !important; }

.item-card__total { font-weight: 700; }

.item-card__rodape {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: .74rem;
  color: var(--muted);
}

.item-card__responsavel {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

/* A linha de rota com painel empilha: cabeçalho em cima, itens embaixo. */
.rota-item--expansivel {
  flex-direction: column;
  align-items: stretch;
}

.rota-item__linha {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --------------------------------- acompanhamento de carga/entrega */

.conferencia-barra {
  height: 8px;
  background: var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 18px;
}

.conferencia-barra > span {
  display: block;
  height: 100%;
  background: var(--ok);
  border-radius: 999px;
  transition: width .5s;
}

@media (prefers-reduced-motion: reduce) { .conferencia-barra > span { transition: none; } }

.conferencia-grupo {
  margin: 18px 0 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}

.conferencia-grupo:first-child { margin-top: 0; }
.conferencia-grupo small { font-weight: 400; text-transform: none; letter-spacing: 0; }

.conferencia-lista { display: grid; gap: 8px; }

.conferencia-item {
  border: 1px solid var(--line);
  border-left: 4px solid var(--warn);
  border-radius: var(--raio);
  background: var(--surface);
  padding: 12px 14px;
}

/* Item já conferido recua visualmente: o que importa é o que falta. */
.conferencia-item--feito {
  border-left-color: var(--ok);
  background: var(--surface-alt);
}

.conferencia-item__cabeca {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.conferencia-item__codigo {
  display: inline-block;
  margin-right: 8px;
  font-family: ui-monospace, "Consolas", monospace;
  font-size: .74rem;
  color: var(--muted);
}

.conferencia-item__qtd {
  flex: none;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.conferencia-item__campos {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 10px;
  align-items: end;
}

@media (max-width: 600px) {
  .conferencia-item__campos { grid-template-columns: 1fr; }
  .conferencia-item__campos .campo--curto { max-width: none; }
}

/* ----------------------------------------------------- relatórios (tela) */

.rel-cartoes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.rel-cartao {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--raio);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform .15s, border-color .15s;
}

.rel-cartao:hover { transform: translateY(-2px); border-color: var(--brand); }
.rel-cartao:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.rel-cartao h2 { margin: 0 0 8px; font-size: 1rem; }
.rel-cartao p { margin: 0 0 12px; font-size: .82rem; color: var(--muted); line-height: 1.5; }

.rel-cartao__formatos {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--brand);
}

.rel-formatos { margin: 0; display: grid; gap: 12px; }
.rel-formatos > div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: start; }
.rel-formatos dt { font-weight: 700; font-size: .84rem; }
.rel-formatos dd { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }

/* Blocos que a tela compartilha com a folha de impressão. */
.rel-resumo {
  /* Flex, não grid: o número de campos por linha muda com a largura e a última
     linha quase nunca fecha. Em grid a folga virava um bloco vazio no fim; em
     flex os campos da última linha esticam e ocupam a sobra. */
  display: flex;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--raio);
  overflow: hidden;
  margin-bottom: 16px;
}

.rel-resumo > div {
  flex: 1 1 130px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rel-resumo span {
  display: block;
  font-size: .64rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.rel-resumo strong { font-size: .95rem; }

.rel-progresso { margin-bottom: 16px; }
.rel-progresso__barra { height: 9px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.rel-progresso__barra span { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
.rel-progresso p { margin: 7px 0 0; font-size: .82rem; color: var(--muted); }

.rel-graficos { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; }

.gr {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--raio);
  background: var(--surface);
  color: var(--ink);
}

.gr figcaption { font-size: .82rem; font-weight: 700; margin-bottom: 8px; }
.gr svg { width: 100%; height: auto; display: block; }
.gr small { display: block; margin-top: 6px; font-size: .7rem; color: var(--muted); }
.gr--vazio p { margin: 12px 0; font-size: .82rem; color: var(--muted); }

.rel-obs { display: block; font-size: .7rem; color: var(--muted); }

/* -------------------------------------------------------- dashboard clara */

.dashboard {
  --dash-bg: #f6f8fa;
  --dash-white: #ffffff;
  --dash-line: #e2e8f0;
  --dash-line-soft: #f1f5f9;
  --dash-ink: #0f172a;
  --dash-muted: #64748b;
  color-scheme: light;
  min-height: 100%;
  margin: -22px -24px -48px;
  padding: 26px 24px 48px;
  background: var(--dash-bg);
  color: var(--dash-ink);
}

.dashboard .cards.dashboard-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 30px;
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--dash-line);
}

.dashboard-kpis .card {
  min-width: 0;
  padding: 12px 20px 10px;
  border: 0;
  border-right: 1px solid var(--dash-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-kpis .card:first-child { padding-left: 0; }
.dashboard-kpis .card:last-child { padding-right: 0; border-right: 0; }

.dashboard-kpis .card__rotulo {
  margin-bottom: 8px;
  color: var(--dash-muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .11em;
}

.dashboard-kpis .card__valor {
  color: var(--dash-ink);
  font-size: 2.55rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
}

.dashboard-kpis .card__nota { margin-top: 7px; color: var(--dash-muted); font-size: .78rem; }

.dashboard-previsao { margin-bottom: 28px; }
.dashboard .section-title {
  padding-left: 0;
  border: 0;
  color: var(--dash-ink);
  font-size: 1.08rem;
  font-weight: 700;
}

.dashboard .carga-card {
  border: 1px solid var(--dash-line);
  border-radius: 10px;
  background: var(--dash-white);
  box-shadow: none;
  transition: border-color .15s ease, background-color .15s ease;
}

.dashboard .carga-card:hover {
  transform: none;
  border-color: #94a3b8;
  background: #fcfdff;
  box-shadow: none;
  text-decoration: none;
}

.dashboard .carga-card__corpo { padding: 20px; }
.dashboard .carga-card__motorista { color: var(--dash-ink); }
.dashboard .carga-card__datas {
  border-color: var(--dash-line-soft);
  border-radius: 7px;
  background: #f8fafc;
  text-align: left;
}
.dashboard .carga-card__data { padding: 4px 8px; }
.dashboard .carga-card__data + .carga-card__data { border-left-color: var(--dash-line); }
.dashboard .badge-status--rota { background: #dbeafe; color: #1e40af; }
.dashboard .badge-status--carregando { background: #fef3c7; color: #92400e; }

.carga-card__etapas { margin: 16px 0 14px; }
.carga-card__etapas-trilho { height: 6px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.carga-card__etapa { display: block; height: 100%; min-width: 0; border-radius: inherit; transition: width .25s ease; }
.carga-card__etapa--carregando { background: #d97706; }
.carga-card__etapa--rota { background: #2563eb; }
.carga-card__etapas-rotulos {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  color: var(--dash-muted);
  font-size: .68rem;
}
.carga-card__etapas-rotulos strong { flex: none; color: var(--dash-ink); font-weight: 700; font-variant-numeric: tabular-nums; }

.dashboard .card-box.vazio {
  border: 1px solid var(--dash-line);
  border-radius: 10px;
  background: var(--dash-white);
}

.dashboard .dashboard-section {
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid var(--dash-line);
  border-radius: 10px;
  background: var(--dash-white);
  box-shadow: none;
}

.dashboard-section .painel__cabecalho {
  min-height: 58px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--dash-line-soft);
  background: var(--dash-white);
}

.dashboard-section .painel__cabecalho h2 { color: var(--dash-ink); font-size: .94rem; font-weight: 700; }
.dashboard-section .painel__corpo { padding: 18px 22px; }
.dashboard-section #mapa { height: 410px; border-radius: 7px; }

.dashboard .dashboard-table { min-width: 680px; }
.dashboard .dashboard-table th,
.dashboard .dashboard-table td {
  padding: 13px 16px;
  border-right: 0;
  border-left: 0;
  border-bottom: 1px solid var(--dash-line-soft);
  background: transparent;
}

.dashboard .dashboard-table thead th {
  background: #f8fafc;
  color: var(--dash-muted);
  font-size: .67rem;
  letter-spacing: .08em;
  border-bottom-color: var(--dash-line);
}

.dashboard .dashboard-table tbody tr:hover { background: #f8fafc; }
.dashboard .dashboard-table tbody tr:last-child td { border-bottom: 0; }
.dashboard .dashboard-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

.dashboard-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
}

.dashboard-badge--ok { background: #d1fae5; color: #065f46; }
.dashboard-badge--rota { background: #dbeafe; color: #1e40af; }
.dashboard-badge--analise { background: #fef3c7; color: #92400e; }
.dashboard-badge--alerta { background: #ffe4e6; color: #9f1239; }
.dashboard-badge--neutro { background: #f1f5f9; color: #475569; }

.dashboard-checklist { margin-top: 6px; }
.dashboard-checklist__resumos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.dashboard-subtexto { display: block; margin-top: 2px; color: var(--dash-muted); font-size: .72rem; }

.dashboard-rel-ocorrencias { margin-top: 6px; }
.dashboard-rel-ocorrencias__listas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.dashboard-rel-ocorrencias__listas .dashboard-section { min-width: 0; }
.dashboard-rel-ocorrencias__grafico .rel-graficos { grid-template-columns: minmax(0, 1fr); }
.dashboard-rel-ocorrencias__grafico .gr { min-width: 0; }

@media (max-width: 900px) {
  .dashboard { margin: -16px -14px -40px; padding: 22px 18px 40px; }
  .dashboard .cards.dashboard-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-kpis .card { padding: 12px 16px; }
  .dashboard-kpis .card:nth-child(3) { border-right: 0; }
  .dashboard-kpis .card:nth-child(n+4) { border-top: 1px solid var(--dash-line); }
  .dashboard-kpis .card:first-child { padding-left: 0; }
  .dashboard .dashboard-section .painel__cabecalho { padding: 14px 16px; }
  .dashboard .dashboard-section .painel__corpo { padding: 14px 16px; }
  .dashboard-checklist__resumos { grid-template-columns: 1fr; gap: 0; }
  .dashboard-rel-ocorrencias__listas { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .dashboard { margin: -16px -14px -40px; padding: 18px 14px 36px; }
  .dashboard .cards.dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-kpis .card:nth-child(3) { border-right: 1px solid var(--dash-line); }
  .dashboard-kpis .card:nth-child(even) { border-right: 0; }
  .dashboard-kpis .card:nth-child(n+3) { border-top: 1px solid var(--dash-line); }
  .dashboard-kpis .card__valor { font-size: 2.2rem; }
  .dashboard .carga-card__corpo { padding: 16px; }
  .dashboard-section .painel__cabecalho { gap: 8px; }
  .dashboard-section .painel__cabecalho .btn { white-space: nowrap; }
  .dashboard-section #mapa { height: 340px; }

  .dashboard .dashboard-ocorrencias-table { min-width: 0; }
  .dashboard .dashboard-ocorrencias-table thead { display: none; }
  .dashboard .dashboard-ocorrencias-table tbody,
  .dashboard .dashboard-ocorrencias-table tbody tr { display: block; }
  .dashboard .dashboard-ocorrencias-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 10px;
    padding: 9px 4px;
    border-bottom: 1px solid var(--dash-line-soft);
  }
  .dashboard .dashboard-ocorrencias-table tbody tr:last-child { border-bottom: 0; }
  .dashboard .dashboard-ocorrencias-table tbody td {
    min-width: 0;
    padding: 2px 6px;
    border: 0;
    overflow-wrap: anywhere;
  }
  .dashboard .dashboard-ocorrencias-table tbody td:nth-child(1) {
    grid-column: 1;
    grid-row: 2;
    color: var(--dash-muted);
    font-size: .72rem;
  }
  .dashboard .dashboard-ocorrencias-table tbody td:nth-child(2) {
    grid-column: 1;
    grid-row: 1;
    font-weight: 650;
  }
  .dashboard .dashboard-ocorrencias-table tbody td:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
    color: var(--dash-muted);
    font-size: .7rem;
  }
  .dashboard .dashboard-ocorrencias-table tbody td:nth-child(3)::before { content: "Rota "; }
  .dashboard .dashboard-ocorrencias-table tbody td:nth-child(4) {
    grid-column: 2;
    grid-row: 3;
    color: var(--dash-muted);
    font-size: .7rem;
  }
  .dashboard .dashboard-ocorrencias-table tbody td:nth-child(4)::before { content: "Pedido "; }
  .dashboard .dashboard-ocorrencias-table tbody td:nth-child(5) {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    text-align: right;
  }
  .dashboard .dashboard-ocorrencias-table tbody td[colspan] {
    display: block;
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (min-width: 601px) and (max-width: 1200px) {
  .dashboard-rel-ocorrencias__listas { grid-template-columns: 1fr; }
  .dashboard .dashboard-ocorrencias-table { min-width: 0; }
  .dashboard .dashboard-ocorrencias-table thead { display: none; }
  .dashboard .dashboard-ocorrencias-table tbody,
  .dashboard .dashboard-ocorrencias-table tbody tr { display: block; }
  .dashboard .dashboard-ocorrencias-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 10px;
    padding: 9px 4px;
    border-bottom: 1px solid var(--dash-line-soft);
  }
  .dashboard .dashboard-ocorrencias-table tbody tr:last-child { border-bottom: 0; }
  .dashboard .dashboard-ocorrencias-table tbody td {
    min-width: 0;
    padding: 2px 6px;
    border: 0;
    overflow-wrap: anywhere;
  }
  .dashboard .dashboard-ocorrencias-table tbody td:nth-child(1) {
    grid-column: 1;
    grid-row: 2;
    color: var(--dash-muted);
    font-size: .72rem;
  }
  .dashboard .dashboard-ocorrencias-table tbody td:nth-child(2) {
    grid-column: 1;
    grid-row: 1;
    font-weight: 650;
  }
  .dashboard .dashboard-ocorrencias-table tbody td:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
    color: var(--dash-muted);
    font-size: .7rem;
  }
  .dashboard .dashboard-ocorrencias-table tbody td:nth-child(3)::before { content: "Rota "; }
  .dashboard .dashboard-ocorrencias-table tbody td:nth-child(4) {
    grid-column: 1;
    grid-row: 4;
    color: var(--dash-muted);
    font-size: .7rem;
  }
  .dashboard .dashboard-ocorrencias-table tbody td:nth-child(4)::before { content: "Pedido "; }
  .dashboard .dashboard-ocorrencias-table tbody td:nth-child(5) {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    text-align: right;
  }
  .dashboard .dashboard-ocorrencias-table tbody td[colspan] {
    display: block;
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* A capa aparece igual na tela e no papel; aqui só ganha a moldura do painel. */
.capa {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--raio);
  background: var(--surface);
  margin-bottom: 16px;
}

.capa__titulo {
  margin: 0 0 14px;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .08em;
  border: 2px solid var(--ink);
  padding: 8px;
}

.capa__secao {
  margin: 16px 0 8px;
  padding: 5px 10px;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--brand);
  color: #fff;
  border-radius: 4px;
}

.capa__campos { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-size: .82rem; }
.capa__campos th { width: 1%; white-space: nowrap; text-align: left; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.capa__campos td { padding: 6px 14px 6px 0; border-bottom: 1px solid var(--line); }
.capa__campos small { color: var(--muted); }
.capa__preencher { min-width: 90px; height: 24px; background: var(--surface-alt); }

.capa__sequencia { display: grid; grid-template-columns: 1fr 170px; gap: 14px; margin-bottom: 12px; }
.capa__grade { width: 100%; border-collapse: collapse; font-size: .74rem; }
.capa__grade td { border: 1px solid var(--line); padding: 4px 6px; height: 26px; }
.capa__seq { width: 26px; text-align: center; font-weight: 700; background: var(--surface-alt); }
.capa__destino strong { display: block; font-weight: 600; }
.capa__destino small { display: block; color: var(--muted); font-size: .66rem; }

.capa__cidades { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font-size: .74rem; }
.capa__cidades-titulo { margin: 0 0 6px; font-weight: 700; font-size: .66rem; text-transform: uppercase; color: var(--muted); }
.capa__cidades ol { margin: 0; padding-left: 18px; }

.capa__obs { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; margin-bottom: 10px; font-size: .82rem; min-height: 52px; }
.capa__obs p { margin: 4px 0 0; }

.capa__previsao { display: grid; grid-template-columns: 1fr 260px; gap: 16px; align-items: start; }
@media (max-width: 820px) {
  .capa__previsao, .capa__sequencia { grid-template-columns: 1fr; }
}

.capa__custos { width: 100%; border-collapse: collapse; font-size: .8rem; }
.capa__custos th { background: var(--surface-alt); text-align: left; padding: 5px 9px; font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; border: 1px solid var(--line); }
.capa__custos td { padding: 5px 9px; border: 1px solid var(--line); }
.capa__custos .num { text-align: right; font-variant-numeric: tabular-nums; }
.capa__subtotal td { font-weight: 700; background: var(--surface-alt); }
.capa__total td { font-weight: 800; background: var(--brand-soft); }
.capa__excesso { color: var(--erro); }
.capa__nota { margin: 12px 0 0; font-size: .72rem; color: var(--muted); }

.tabela-rel .linha-ok td { color: var(--ok); }

/* --------------------------------- a linha que abre a conferência
   Dois cliques na linha do pedido, no Relatório da Rota. O cursor é o que
   avisa que ela reage — sem ele o gesto seria adivinhação, e ele só aparece
   para quem pode conferir. */

.linha-clicavel { cursor: pointer; }
.linha-clicavel:hover { background: var(--line-soft); }

/* ------------------------------------------------- gestão da frota (veic-) */
.tag--neutro { background: var(--surface-alt); color: var(--muted); }
.veic-sub { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.veic-cor--vencido { color: var(--erro); }
.veic-cor--atencao { color: var(--warn); }
.veic-card-dinheiro { font-size: 1.35rem; }
.veic-card-texto { font-size: 1.2rem; }
.veic-cabeca .painel__corpo { padding-bottom: 8px; }
.veic-cabeca__linha { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-start; justify-content: space-between; }
.veic-cabeca__placa { font-size: 1.5rem; font-weight: 700; letter-spacing: .02em; }
.veic-cabeca__km .card__valor { font-size: 1.5rem; }
.veic-cabeca__resumo { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.veic-abas { display: flex; gap: 2px; padding: 0 12px; border-top: 1px solid var(--line-soft); overflow-x: auto; }
.veic-abas__aba { padding: 10px 14px; border-bottom: 2px solid transparent; color: var(--ink-2); white-space: nowrap; }
.veic-abas__aba:hover { color: var(--ink); text-decoration: none; background: var(--surface-alt); }
.veic-abas__aba--ativa { border-bottom-color: var(--brand); color: var(--brand); font-weight: 600; }
.veic-plano td { vertical-align: middle; }
.veic-plano input[type="text"] { width: 100%; min-width: 80px; }
.veic-plano input.num { text-align: right; max-width: 130px; }
.veic-plano__ativo { width: 56px; text-align: center; }
.veic-plano td:nth-child(2) { min-width: 260px; }
.veic-itens { border: 1px solid var(--line); border-radius: var(--raio); padding: 10px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 16px; }
.veic-itens legend { font-size: .82rem; font-weight: 600; color: var(--ink-2); padding: 0 4px; }
.veic-itens label { display: flex; gap: 8px; align-items: center; font-weight: normal; }
.veic-acao { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0; }
.veic-acao input[type="text"] { width: 110px; }
.veic-acao select { max-width: 240px; }
.veic-mais summary { list-style: none; display: inline-block; }
.veic-mais summary::-webkit-details-marker { display: none; }
.veic-mais[open] summary { margin-bottom: 6px; }
.veic-acoes-pneu { display: flex; flex-direction: column; gap: 6px; }
.veic-fiscais { border: 1px solid var(--line); border-radius: var(--raio); padding: 10px 14px; margin-top: 14px; }
.veic-fiscais summary { cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.veic-fiscais .form-grid { margin-top: 12px; }
.veic-acao input.veic-motivo { width: 260px; }

/* ------------------------------------------------------- vendas / CRM (crm-) */
.crm-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 20px; align-items: start; }
.crm-grade--2 { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
@media (max-width: 1100px) { .crm-grade--2 { grid-template-columns: 1fr; } }
.crm-sub { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.crm-lista { list-style: none; margin: 0; padding: 0; }
.crm-lista > li { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); }
.crm-lista > li:last-child { border-bottom: 0; }
.crm-lista__principal { min-width: 0; flex: 1; }
.crm-lista__principal strong { display: block; overflow: hidden; text-overflow: ellipsis; }
.crm-lista__lado { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.crm-vazio { padding: 16px; color: var(--muted); font-size: .86rem; }
.crm-valor { font-variant-numeric: tabular-nums; white-space: nowrap; }
.crm-cor--ok { color: var(--ok); }
.crm-cor--alerta { color: var(--warn); }
.crm-cor--erro { color: var(--erro); }
.crm-whats { display: inline-flex; align-items: center; gap: 4px; color: #128c4a; font-weight: 600; font-size: .8rem; }
.crm-whats:hover { color: #0d6d39; }
@media (prefers-color-scheme: dark) { .crm-whats { color: #4fd18a; } .crm-whats:hover { color: #7be0a8; } }

/* meta: barra de progresso com a marca da projeção */
.crm-meta { margin: 6px 0 2px; }
.crm-meta__barra { position: relative; height: 10px; border-radius: 999px; background: var(--surface-alt); border: 1px solid var(--line); overflow: hidden; }
.crm-meta__feito { position: absolute; top: 0; bottom: 0; left: 0; background: var(--brand); border-radius: 999px; }
.crm-meta__feito--ok { background: var(--ok); }
.crm-meta__projecao { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--warn); }
.crm-meta__legenda { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); margin-top: 4px; gap: 8px; flex-wrap: wrap; }

/* Kanban do funil */
.crm-kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.crm-coluna { flex: 0 0 272px; background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--raio); display: flex; flex-direction: column; max-height: calc(100vh - 260px); }
.crm-coluna__topo { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.crm-coluna__topo strong { font-size: .88rem; }
.crm-coluna__soma { font-size: .74rem; color: var(--muted); display: flex; justify-content: space-between; gap: 6px; margin-top: 2px; }
.crm-coluna__cards { padding: 8px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 80px; }
.crm-coluna--alvo { outline: 2px dashed var(--brand); outline-offset: -3px; }
.crm-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; box-shadow: var(--sombra); cursor: grab; font-size: .84rem; }
.crm-card:active { cursor: grabbing; }
.crm-card--estagnada { border-left: 3px solid var(--warn); }
.crm-card--vencida { border-left: 3px solid var(--erro); }
.crm-card a { color: var(--ink); font-weight: 600; }
.crm-card__linha { display: flex; justify-content: space-between; gap: 6px; margin-top: 4px; color: var(--muted); font-size: .76rem; }
.crm-card--arrastando { opacity: .45; }

/* linha do tempo */
.crm-tempo { list-style: none; margin: 0; padding: 6px 16px 10px; }
.crm-tempo > li { position: relative; padding: 8px 0 8px 22px; border-left: 2px solid var(--line); margin-left: 6px; }
.crm-tempo > li::before { content: ""; position: absolute; left: -7px; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }
.crm-tempo > li.crm-tempo--sistema::before { border-color: var(--muted); }
.crm-tempo > li.crm-tempo--pedido::before { border-color: var(--ok); background: var(--ok-soft); }
.crm-tempo > li.crm-tempo--orcamento::before { border-color: var(--warn); }
.crm-tempo__quando { font-size: .74rem; color: var(--muted); }
.crm-tempo__detalhe { font-size: .83rem; color: var(--ink-2); white-space: pre-line; }

/* cabeçalho da ficha (as abas são as da ficha do veículo, veic-abas) */
.crm-cabeca__linha { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-start; justify-content: space-between; }
.crm-cabeca__nome { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.crm-numeros { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.crm-numeros div { min-width: 92px; }
.crm-numeros .card__valor { font-size: 1.15rem; }

/* registro rápido de atividade */
.crm-rapido { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px; align-items: end; }
@media (max-width: 600px) { .crm-rapido { grid-template-columns: 1fr; } }

/* editor de orçamento */
.crm-itens input { min-width: 0; }
.crm-itens th, .crm-itens td { padding-left: 8px; padding-right: 8px; }
.crm-itens td.num { white-space: nowrap; }
.crm-itens [data-busca] { min-width: 230px; }
.crm-itens td { vertical-align: top; }
.crm-itens input.num { text-align: right; }
.crm-totais { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.crm-totais > div { background: var(--surface-alt); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.crm-totais strong { display: block; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.crm-busca-produto { position: relative; }
.crm-sugestoes { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .14); max-height: 300px; overflow-y: auto; }
.crm-sugestoes button { display: flex; width: 100%; justify-content: space-between; gap: 10px; text-align: left; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; color: var(--ink); font: inherit; font-size: .85rem; cursor: pointer; }
.crm-sugestoes button:hover, .crm-sugestoes button.ativo { background: var(--brand-soft); }
.crm-estoque--ok { color: var(--ok); }
.crm-estoque--parcial { color: var(--warn); }
.crm-estoque--sem { color: var(--erro); }

.crm-link-copiar { display: flex; gap: 6px; align-items: center; }
.crm-link-copiar input { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; }
.crm-acoes-ficha { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crm-acoes-ficha form { display: inline; margin: 0; }
details.crm-dobra > summary { cursor: pointer; list-style: none; display: inline-block; }
details.crm-dobra > summary::-webkit-details-marker { display: none; }
details.crm-dobra[open] > summary { margin-bottom: 8px; }
.crm-caixa { border: 1px solid var(--line); border-radius: var(--raio); padding: 12px 14px; background: var(--surface); margin-top: 8px; }
.crm-rfm { display: inline-flex; gap: 2px; font-family: ui-monospace, Consolas, monospace; font-size: .74rem; }
.crm-rfm span { background: var(--surface-alt); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.crm-abc { display: inline-block; width: 20px; text-align: center; border-radius: 4px; font-weight: 700; font-size: .74rem; }
.crm-abc--A { background: var(--ok-soft); color: var(--ok); }
.crm-abc--B { background: var(--brand-soft); color: var(--brand); }
.crm-abc--C { background: var(--surface-alt); color: var(--muted); }
.crm-temp--quente { color: var(--erro); font-weight: 700; }
.crm-temp--morno { color: var(--warn); font-weight: 700; }
.crm-temp--frio { color: var(--muted); }
.crm-metas td input { max-width: 130px; text-align: right; }
.crm-grafico svg { max-width: 100%; height: auto; }
.crm-check { display: flex; gap: 8px; align-items: center; font-weight: normal; font-size: .86rem; }

/* ------------------------------------------------------------- rastreador */
/* assets/js/rastreador.js: frota agora, trajeto lido, alfinetes e paradas. */

.rastro-sub { font-size: .8rem; color: var(--muted); font-weight: 400; }
.rastro-cor--movimento { color: var(--ok); }
.rastro-cor--parado { color: var(--warn); }
.rastro-cor--sem_sinal, .rastro-cor--erro { color: var(--erro); }
.rastro-cor--alerta { color: var(--warn); font-weight: 600; }

#mapa-rastreador { height: 560px; width: 100%; border-radius: var(--raio); }
.rastro-mapa-caixa { position: relative; margin-top: 12px; }
@media (max-width: 700px) { #mapa-rastreador { height: 400px; } }

.rastro-legenda {
  position: absolute; left: 10px; bottom: 22px; z-index: 500;
  display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: calc(100% - 20px);
  padding: 6px 10px; border-radius: 8px; font-size: .75rem;
  background: rgba(255, 255, 255, .92); color: #16202b; box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}
.rastro-legenda span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.rastro-legenda i { display: inline-block; width: 18px; height: 4px; border-radius: 2px; }
.rastro-legenda__tracejado { background: repeating-linear-gradient(90deg, #8a96a3 0 5px, transparent 5px 9px) !important; }

.rastro-resumo {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 14px;
}
.rastro-resumo__item {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface-alt);
}
.rastro-resumo__item span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.rastro-resumo__item strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.rastro-resumo__item small { font-size: .75rem; color: var(--muted); }
.rastro-resumo__item--alerta { border-color: var(--warn); background: var(--warn-soft); }
.rastro-resumo__nota { grid-column: 1 / -1; }

.rastro-barra {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 12px;
}
.rastro-play { display: flex; align-items: center; gap: 8px; flex: 1 1 420px; min-width: 0; }
.rastro-play input[type="range"] { flex: 1 1 0; width: auto; min-width: 80px; padding: 0; border: 0; background: none; accent-color: var(--brand); }
.rastro-play .btn { white-space: nowrap; }
.rastro-play select { width: auto; flex: none; padding: 5px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; font-size: .85rem; }
.rastro-play [data-tempo-rotulo] { font-size: .85rem; white-space: nowrap; min-width: 120px; }
@media (max-width: 700px) {
  .rastro-play { flex-wrap: wrap; }
  .rastro-play input[type="range"] { flex-basis: 100%; order: 3; }
}
.rastro-opcoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.rastro-check { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; cursor: pointer; }
.rastro-dica {
  margin-top: 10px; padding: 8px 12px; border-radius: 8px; font-size: .85rem;
  background: var(--brand-soft); color: var(--ink-2);
}

.rastro-grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.rastro-grade > .painel { margin-bottom: 0; }
.rastro-grade + .painel { margin-top: 16px; }
@media (max-width: 960px) { .rastro-grade { grid-template-columns: minmax(0, 1fr); } }

.rastro-eventos { max-height: 420px; overflow-y: auto; padding: 6px 0; }
.rastro-evento {
  display: grid; grid-template-columns: 48px 26px 1fr; align-items: start; gap: 8px; width: 100%;
  padding: 8px 14px; border: 0; border-bottom: 1px solid var(--line-soft); background: none;
  color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.rastro-evento:hover { background: var(--surface-alt); }
.rastro-evento strong { display: block; font-size: .9rem; }
.rastro-evento small { display: block; font-size: .78rem; color: var(--muted); }
.rastro-evento__hora { font-size: .85rem; color: var(--ink-2); padding-top: 3px; }
.rastro-evento__icone {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 50%; font-size: .72rem; font-weight: 700; color: #fff; background: #607080;
}
.rastro-evento--inicio .rastro-evento__icone { background: #17864b; }
.rastro-evento--fim .rastro-evento__icone { background: #d0312d; }
.rastro-evento--parada .rastro-evento__icone { background: #1d4e89; }
.rastro-evento--fora .rastro-evento__icone { background: #c27c0e; }
.rastro-evento--excesso .rastro-evento__icone { background: #d0312d; }
.rastro-evento--excesso strong { color: var(--erro); }
.rastro-evento--sem_sinal .rastro-evento__icone { background: #8a96a3; }

.rastro-acoes { white-space: nowrap; }
.rastro-acoes .btn + .btn { margin-left: 6px; }

/* Pinos do mapa. Cores fixas: o mapa é claro também no modo escuro. */
.rastro-pino { background: none; border: 0; }
.rastro-pino span {
  display: flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border: 2px solid #fff; border-radius: 50%; color: #fff; font-size: .7rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .35); background: #607080;
}
.rastro-pino b {
  position: absolute; left: 30px; top: 4px; padding: 1px 6px; border-radius: 4px; white-space: nowrap;
  font-size: .72rem; font-weight: 600; color: #16202b; background: rgba(255, 255, 255, .9); box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.rastro-pino--movimento span { background: #17864b; }
.rastro-pino--parado span { background: #c27c0e; }
.rastro-pino--sem_sinal span { background: #8a96a3; }
.rastro-pino--reproducao span { background: #1d4e89; width: 28px; height: 28px; }

.rastro-parada { background: none; border: 0; }
.rastro-parada span {
  display: flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border: 2px solid #fff; border-radius: 6px; background: #1d4e89; color: #fff;
  font-size: .7rem; font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.rastro-parada--fora span { background: #c27c0e; }

.leaflet-tooltip.rastro-tooltip {
  padding: 3px 8px; border: 0; border-radius: 6px; font-size: .75rem; font-weight: 600;
  background: #1d4e89; color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.leaflet-tooltip-top.rastro-tooltip::before { border-top-color: #1d4e89; }
.leaflet-tooltip-right.rastro-tooltip::before { border-right-color: #1d4e89; }
.leaflet-tooltip.rastro-tooltip--fora { background: #c27c0e; }
.leaflet-tooltip-top.rastro-tooltip--fora::before { border-top-color: #c27c0e; }

.rastro-alfinete { background: none; border: 0; }
.rastro-alfinete span {
  display: flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border: 2px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: #7b2cbf; color: #fff; font-size: .72rem; font-weight: 700; box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}
.rastro-alfinete em { display: inline-block; transform: rotate(45deg); font-style: normal; }

/* Parada no endereço de um cliente: alfinete verde com o nome. */
.rastro-alfinete--cliente span { background: #0f7a5c; }
.rastro-evento--cliente .rastro-evento__icone { background: #0f7a5c; }
.leaflet-tooltip.rastro-tooltip--cliente { background: #0f7a5c; }
.leaflet-tooltip-top.rastro-tooltip--cliente::before { border-top-color: #0f7a5c; }
.leaflet-tooltip.rastro-tooltip--parada { display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.25; text-align: center; }
.rastro-tooltip__nome { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.rastro-tooltip__horas { display: none; font-weight: 500; font-size: .72rem; opacity: .95; }
.leaflet-tooltip.rastro-tooltip--parada:hover,
.leaflet-tooltip.rastro-tooltip--aberto { z-index: 10; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.leaflet-tooltip.rastro-tooltip--parada:hover .rastro-tooltip__horas,
.leaflet-tooltip.rastro-tooltip--aberto .rastro-tooltip__horas { display: block; }

.rastro-balao { display: flex; flex-direction: column; gap: 4px; min-width: 190px; font-size: .82rem; line-height: 1.35; color: #16202b; }
.rastro-balao > strong { font-size: .88rem; }
.rastro-balao small { color: #5b6b7a; }
.rastro-balao .rastro-sub { color: #5b6b7a; }
.rastro-balao__vel { display: flex; gap: 16px; }
.rastro-balao__vel span { display: flex; flex-direction: column; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #5b6b7a; }
.rastro-balao__vel strong { font-size: 1.05rem; text-transform: none; letter-spacing: 0; color: #16202b; }
.rastro-balao__vel strong.rastro-cor--erro { color: #c0392b; }
.rastro-balao__tirar {
  align-self: flex-start; margin-top: 2px; padding: 2px 8px; border: 1px solid #cfd8e0; border-radius: 6px;
  background: #fff; color: #a62121; font: inherit; font-size: .75rem; cursor: pointer;
}
.rastro-popup .leaflet-popup-content { margin: 10px 12px; }

/* --------------------------------------------- locais enviados pelo motorista */
/* app/Views/locais — a logística confere o ponto que o motorista mandou. */
.local-sub { font-size: .8rem; color: var(--muted); font-weight: 400; }
.local-obs { font-size: .85rem; color: var(--ink-2); font-style: italic; }
.local-longe { color: var(--warn); font-weight: 600; }
.local-grade { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; align-items: start; }
.local-grade > .painel { margin-bottom: 0; }
.local-grade + .painel { margin-top: 16px; }
@media (max-width: 960px) { .local-grade { grid-template-columns: minmax(0, 1fr); } }
.local-ficha dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; margin: 0; }
.local-ficha dt { font-size: .78rem; color: var(--muted); padding-top: 2px; }
.local-ficha dd { margin: 0; }
#mapa-local { height: 420px; width: 100%; border-radius: var(--raio); }
@media (max-width: 700px) { #mapa-local { height: 320px; } .local-ficha dl { grid-template-columns: 1fr; gap: 2px; } .local-ficha dd { margin-bottom: 8px; } }
.local-legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: .8rem; color: var(--ink-2); }
.local-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.local-legenda i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.local-legenda__atual { background: #c0392b; }
.local-legenda__enviado { background: #17864b; }
.local-endereco-osm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: var(--surface-alt); font-size: .85rem; }
.local-check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .9rem; cursor: pointer; }
.local-pino { background: none; border: 0; }
.local-pino span {
  display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border: 2px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  color: #fff; font-size: .8rem; box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}
.local-pino--atual span { background: #c0392b; }
.local-pino--enviado span { background: #17864b; cursor: grab; }

/* ---------------------------------------------------- financeiro e compras */
/* app/Views/financeiro e app/Views/compras (assets/js/financeiro.js). */
.fin-pos { color: var(--ok); }
.fin-neg { color: var(--erro); }
.fin-pendencias { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.fin-janelas { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.fin-grade-igual { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .fin-grade-igual { grid-template-columns: 1fr; } }
.fin-corta { max-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.tabela.fin-tabela-curta { min-width: 0; }
.fin-numeros > div { display: flex; flex-direction: column; gap: 2px; }
.fin-numeros span { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fin-numeros strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.fin-janelas > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; background: var(--surface-alt); }
.fin-janelas span { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fin-janelas strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.fin-janelas small { font-size: .75rem; color: var(--muted); }
.fin-ficha { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 12px 0 0; }
.fin-ficha dt { font-size: .78rem; color: var(--muted); padding-top: 2px; }
.fin-ficha dd { margin: 0; }
@media (max-width: 700px) { .fin-ficha { grid-template-columns: 1fr; gap: 2px; } .fin-ficha dd { margin-bottom: 8px; } }
.fin-numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.fin-lote { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 16px; background: var(--brand-soft); border-bottom: 1px solid var(--line); }
.fin-lote select, .fin-lote input { width: auto; }
.fin-ja-pago { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.fin-ja-pago select { width: auto; }
.fin-estornado td { opacity: .5; }
.fin-estornado td:first-child { text-decoration: line-through; }
.fin-previsto td { color: var(--ink-2); }
.fin-previsto td:first-child { font-style: italic; }
.fin-negativo td:last-child strong { color: var(--erro); }
.fin-atalhos { font-size: .82rem; align-self: flex-end; padding-bottom: 8px; flex-direction: row; flex-wrap: wrap; gap: 4px 6px; min-width: 0; }
.painel > .painel__nota { margin: 0; padding: 10px 16px; }
table.tabela.fin-tabela-curta td.num { white-space: nowrap; }
.fin-dre td, .fin-dre th { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fin-dre--grupo td { font-weight: 700; background: var(--surface-alt); }
.fin-dre--categoria td:first-child { padding-left: 26px; color: var(--ink-2); }
.fin-dre--total td { font-weight: 800; border-top: 2px solid var(--line); background: var(--brand-soft); }
.fin-dre--negativo td:first-child { color: var(--erro); }
.fin-barra { display: inline-block; width: 70px; height: 6px; margin-right: 6px; border-radius: 3px; background: var(--line-soft); vertical-align: middle; overflow: hidden; }
.fin-barra span { display: block; height: 100%; background: var(--brand); }
.fin-orcado td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fin-estourou td:first-child { border-left: 3px solid var(--erro); }
.fin-orcamento input { width: 92px; padding: 4px 6px; font-size: .82rem; text-align: right; }
.fin-orcamento td:first-child { white-space: nowrap; }
.fin-integracoes { display: grid; gap: 10px; }
.fin-integracoes .crm-check { align-items: flex-start; }
.fin-integracoes span { display: flex; flex-direction: column; }
.fin-integracoes small { color: var(--muted); font-size: .8rem; }
.fin-centros { display: flex; flex-direction: column; gap: 6px; }
.fin-centros .filtros { margin: 0; }
.fin-conciliar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fin-conciliar form { display: flex; gap: 4px; align-items: center; }
.fin-conciliar select { width: auto; max-width: 240px; padding: 4px 6px; font-size: .8rem; }
.fin-detalhes > summary { cursor: pointer; list-style: none; }
.fin-detalhes > summary::-webkit-details-marker { display: none; }
.fin-acoes-compra { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fin-acoes-compra form { margin: 0; }
.fin-inline { display: flex; gap: 6px; align-items: center; }
.fin-inline input { width: auto; min-width: 180px; }
.fin-cancelar summary { cursor: pointer; font-size: .85rem; color: var(--erro); }
.fin-cancelar form { margin-top: 6px; }
.fin-itens td input { max-width: 130px; text-align: right; }
.fin-itens td:first-child input { max-width: none; text-align: left; }
.fin-total-compra { font-size: 1.3rem; padding-top: 6px; display: block; }
.fin-pendente td { background: var(--warn-soft); }
.fin-nota-itens .crm-busca-produto input { min-width: 240px; }
.crm-cnpj { display: flex; gap: 6px; align-items: center; }
@media print {
  .fin-dre { font-size: 9pt; }
  .sidebar, .topo, .filtros, .veic-abas, .acoes-linha { display: none !important; }
}

/* Auditoria legível: a frase, o "era → ficou" e os dados técnicos escondidos. */
.auditoria__ajuda { margin: 0; padding: 0 18px 10px; color: var(--muted); font-size: .84rem; }
table.tabela.auditoria td { vertical-align: top; }
.auditoria__quando { white-space: nowrap; }
.auditoria__oque { min-width: 320px; max-width: 640px; }
.auditoria__resumo { margin-top: 4px; font-weight: 600; line-height: 1.35; }
.auditoria__mudancas { margin: 6px 0 0; padding: 0; list-style: none; font-size: .84rem; display: grid; gap: 3px; }
.auditoria__mudancas li { line-height: 1.4; overflow-wrap: anywhere; }
.auditoria__campo { color: var(--muted); margin-right: 4px; }
.auditoria__era { background: var(--erro-soft); color: var(--erro); padding: 0 5px; border-radius: 4px; text-decoration: line-through; text-decoration-thickness: 1px; }
.auditoria__ficou { background: var(--ok-soft); color: var(--ok); padding: 0 5px; border-radius: 4px; font-weight: 600; }
.auditoria__seta { color: var(--muted); margin: 0 4px; }
.auditoria__nota { margin-top: 6px; font-size: .76rem; color: var(--muted); font-style: italic; }
.auditoria__tecnico { margin-top: 6px; font-size: .74rem; }
.auditoria__tecnico summary { cursor: pointer; color: var(--muted); }
.auditoria__tecnico code { display: block; margin-top: 4px; color: var(--muted); word-break: break-all; }
/* No celular, a linha vira um cartão: quando e quem em cima, a frase inteira embaixo. */
@media (max-width: 700px) {
  table.tabela.auditoria { min-width: 0; }
  table.tabela.auditoria thead { display: none; }
  table.tabela.auditoria, table.tabela.auditoria tbody, table.tabela.auditoria tr { display: block; }
  table.tabela.auditoria tr { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
  table.tabela.auditoria td { display: block; padding: 0; border: 0; }
  table.tabela.auditoria td.auditoria__quando, table.tabela.auditoria td.auditoria__quem { display: inline; font-size: .8rem; color: var(--muted); }
  table.tabela.auditoria td.auditoria__quem::before { content: " · "; }
  table.tabela.auditoria td.auditoria__oque { min-width: 0; max-width: none; margin-top: 6px; }
  table.tabela.auditoria td.auditoria__ip { margin-top: 4px; font-size: .72rem !important; color: var(--muted); }
  table.tabela.auditoria td.auditoria__ip::before { content: "IP "; }
  table.tabela.auditoria td.auditoria__ip:empty { display: none; }
}

/* Auto preenchimento do produto no pedido: a lista que abre sob o código ou a descrição. */
.auto-sugestoes {
  position: fixed; z-index: 1000; margin: 0; padding: 4px; list-style: none;
  max-height: 320px; max-width: min(620px, calc(100vw - 32px)); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}
.auto-sugestoes[hidden] { display: none; }
.auto-sugestoes li { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: .84rem; }
.auto-sugestoes li.ativo, .auto-sugestoes li:hover { background: var(--brand-soft); }
.auto-sugestoes strong { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; white-space: nowrap; }
.auto-sugestoes span { flex: 1; min-width: 0; }
.auto-sugestoes em { font-style: normal; color: var(--muted); white-space: nowrap; }
