/* 1081: a tela Veiculos (public/telas/veiculos.js). O CARRO e uma plaquinha (como a placa de verdade); QUEM SAIU e um cracha
   (bolinha com as iniciais + o nome); cada carro numa LINHA (Veiculo | Quem saiu | Km). No celular a linha vira cartao (nada
   rola para o lado). Sem animacao; cores por var(). */
.vc { max-width: 1180px; }
.vc-topo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.vc-h { margin: 0; font-size: 26px; }
.vc-bts { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.vc-erro { color: var(--red-700); font-weight: 700; margin: 8px 0; }
.vc-vazio { color: var(--muted); padding: 18px 4px; }
.vc-g { margin: 0 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--slate-600); }

/* o dia: a data, os numeros grandes e o aviso */
.vc-nav { display: flex; align-items: center; gap: 10px; background: var(--branco); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; }
.vc-nav .btn { min-width: 46px; font-size: 20px; padding: 6px 10px; }
.vc-nav-dia { flex: 1; text-align: center; font: inherit; font-size: 18px; font-weight: 800; text-transform: capitalize; background: none; border: 1px solid transparent; border-radius: 10px; padding: 6px 8px; color: inherit; cursor: pointer; }
.vc-nav-dia:hover, .vc-nav-dia[aria-expanded="true"] { border-color: var(--blue-700); background: var(--blue-50); }
.vc-faltam { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--amber-50); border: 1px solid var(--amber-300); }
.vc-chip { border: 1px solid var(--amber-500); background: var(--branco); border-radius: 999px; padding: 3px 10px; font-weight: 800; cursor: pointer; }
.vc-resumo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.vc-num { background: var(--branco); border: 1px solid var(--line); border-top: 5px solid var(--teal-700); border-radius: 14px; padding: 10px 14px; display: grid; }
.vc-num b { font-size: 30px; line-height: 1.1; color: var(--teal-700); }
.vc-num span { color: var(--slate-600); font-weight: 700; }
.vc-num-cz { border-top-color: var(--slate-400); }
.vc-num-cz b { color: var(--slate-600); }
.vc-num-ok { border-top-color: var(--green-700); background: var(--green-50); }
.vc-num-ok b { color: var(--green-700); }
.vc-num-falta { border-top-color: var(--amber-500); background: var(--amber-50); }
.vc-num-falta b { color: var(--amber-700); }
.vc-aviso { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--amber-50); border: 1px solid var(--amber-300); }

/* as linhas: Veiculo | Quem saiu | Km */
.vc-bloco-g { background: var(--branco); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px 6px; margin-bottom: 14px; }
.vc-lin { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2.2fr) minmax(150px, .9fr); gap: 14px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--line); }
.vc-lin-4 { grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr) minmax(130px, .8fr) 20px; }
.vc-lin-cab { border-top: 0; padding: 0 4px 6px; font-size: 13px; font-weight: 800; color: var(--slate-600); text-transform: uppercase; letter-spacing: .03em; }
.vc-lin-parado { background: var(--slate-50); }
.vc-col { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.vc-col-carro { flex-direction: column; align-items: flex-start; gap: 3px; }
.vc-rot { display: none; }
.vc-carro { width: 100%; text-align: left; font: inherit; color: inherit; background: none; border-left: 0; border-right: 0; border-bottom: 0; cursor: pointer; }
.vc-carro:hover { background: var(--blue-50); }
.vc-carro.vc-off { opacity: .65; }
.vc-ir { font-size: 22px; color: var(--slate-400); }
.vc-quando { color: var(--muted); }

/* a plaquinha (o carro) */
.vc-plq { display: inline-flex; flex-direction: column; align-items: stretch; min-width: 108px; border: 2px solid var(--slate-900); border-radius: 7px; background: var(--branco); overflow: hidden; }
.vc-plq-faixa { background: var(--blue-700); color: var(--branco); font-size: 8px; font-weight: 800; letter-spacing: .25em; text-align: center; line-height: 12px; }
.vc-plq b { font-size: 18px; letter-spacing: .06em; text-align: center; padding: 1px 8px 2px; color: var(--slate-900); white-space: nowrap; }
.vc-plq-g { min-width: 150px; }
.vc-plq-g b { font-size: 26px; }
.vc-modelo { font-size: 13px; color: var(--muted); }

/* o cracha (quem saiu) e as situacoes */
.vc-cracha { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; padding: 3px 12px 3px 3px; border-radius: 999px; background: var(--slate-100); }
.vc-av { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-style: normal; font-size: 13px; font-weight: 900; color: var(--branco); flex: none; }
.vc-av-0 { background: var(--teal-700); } .vc-av-1 { background: var(--blue-700); } .vc-av-2 { background: var(--purple-700); }
.vc-av-3 { background: var(--amber-700); } .vc-av-4 { background: var(--green-700); } .vc-av-5 { background: var(--red-700); }
.vc-sit { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; padding: 6px 12px; border-radius: 999px; background: var(--slate-100); color: var(--slate-600); }
.vc-sit-oficina { background: var(--amber-100); color: var(--amber-700); }
.vc-sit-vendido { background: var(--red-50); color: var(--red-700); }
.vc-sit-vazio { background: none; border: 2px dashed var(--line); }
.vc-quem { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font: inherit; border: 1px solid var(--line); border-radius: 14px; padding: 5px 10px 5px 5px; background: var(--branco); cursor: pointer; text-align: left; max-width: 100%; }
.vc-quem:hover { border-color: var(--blue-700); }
.vc-seta { color: var(--slate-400); margin-left: 2px; }
.vc-quem-txt { display: flex; flex-wrap: wrap; gap: 6px; }
.vc-p2 { font: inherit; font-size: 14px; border: 0; background: none; color: var(--blue-700); padding: 4px 2px; cursor: pointer; }

/* o km */
.vc-col-km { flex-direction: column; align-items: stretch; gap: 2px; }
.vc-km-in { width: 100%; font-size: 17px; font-weight: 700; }
.vc-km-aviso { color: var(--red-700); font-weight: 700; }
.vc-km-txt { font-size: 18px; }
.vc-col-km small { color: var(--muted); }
.vc-confirmar { position: sticky; bottom: 0; display: flex; justify-content: flex-end; padding: 12px 0; background: var(--bg); border-top: 1px solid var(--line); }
.vc-bt-grande { font-size: 18px; padding: 12px 26px; }

/* a ficha do carro */
.vc-ficha-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; background: var(--branco); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.vc-ficha-cab > div { display: grid; flex: 1; min-width: 180px; }
.vc-ficha-cab > div b { font-size: 19px; }
.vc-ficha-cab small { color: var(--muted); }
.vc-agora { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 2px; }
.vc-agora > span { color: var(--slate-600); font-weight: 700; }
.vc-ficha-grade { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); margin-top: 6px; }
.vc-ficha-grade > section { background: var(--branco); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.vc-mes { border-top: 1px solid var(--line); padding: 10px 0 4px; }
.vc-mes:first-of-type { border-top: 0; padding-top: 2px; }
.vc-mes-cab { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 16px; }
.vc-mes-cab span { color: var(--muted); text-transform: none; font-size: 14px; }
.vc-bloco { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 4px 0; }
.vc-bloco > span:first-child { min-width: 104px; color: var(--slate-600); font-weight: 700; }
.vc-busca { width: 100%; margin-bottom: 8px; }
.vc-total { margin: 4px 2px 10px; font-size: 16px; }
.vc-serv { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.vc-serv-cab { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.vc-serv-cab span { color: var(--muted); flex: 1; }
.vc-serv ul { margin: 6px 0 0; padding-left: 18px; }
.vc-serv li small { color: var(--muted); }
.vc-serv-obs { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.vc-cad { margin-top: 16px; background: var(--branco); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 16px; }
.vc-form { display: grid; gap: 10px 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.vc-c { display: grid; gap: 4px; }
.vc-c > span { font-weight: 800; font-size: 14px; color: var(--muted); }
.vc-c > button { width: 100%; min-width: 0; }
.vc .vc-ck { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; grid-column: 1 / -1; text-align: left; }
.vc .vc-ck input { width: 20px; height: 20px; margin: 0; flex: none; }

/* 1084: a agendinha (o mes inteiro; verde = confirmado, amarelo = em parte) e os servicos por ano na ficha */
.vc-agenda { background: var(--branco); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-top: 8px; max-width: 460px; margin-left: auto; margin-right: auto; }
.vc-ag-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.vc-ag-cab b { font-size: 17px; }
.vc-ag-grade { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.vc-ag-sem { text-align: center; font-size: 12px; font-weight: 800; color: var(--slate-500); padding: 2px 0; }
.vc-ag-dia { font: inherit; font-weight: 800; font-size: 15px; min-height: 38px; border-radius: 9px; border: 1px solid var(--line); background: var(--branco); color: var(--slate-900); cursor: pointer; display: inline-grid; place-items: center; }
.vc-ag-dia:disabled { color: var(--slate-300); background: var(--slate-50); cursor: default; }
.vc-ag-ok { background: var(--green-50); border-color: var(--green-700); color: var(--green-700); }
.vc-ag-parte { background: var(--amber-50); border-color: var(--amber-500); color: var(--amber-700); }
.vc-ag-hoje { box-shadow: inset 0 0 0 2px var(--blue-700); }
.vc-ag-on { background: var(--blue-700); border-color: var(--blue-700); color: var(--branco); }
.vc-ag-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0 0; font-size: 13px; color: var(--slate-600); }
.vc-ag-leg .vc-ag-dia { min-height: 22px; width: 22px; font-size: 12px; cursor: default; }
.vc-sec-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.vc-sec-cab .vc-g { margin: 0; }
.vc-ano-serv { margin-bottom: 10px; }
.vc-ano-cab { display: flex; align-items: baseline; gap: 10px; padding: 6px 2px; border-bottom: 2px solid var(--line); margin-bottom: 8px; }
.vc-ano-cab b { font-size: 18px; }
.vc-ano-cab span { color: var(--slate-600); font-weight: 700; }

.vc-dia-lin { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 2px; border-top: 1px solid var(--slate-100); }
.vc-dia-data { display: grid; line-height: 1.15; }
.vc-dia-data small { color: var(--slate-500); text-transform: capitalize; }
.vc-dia-quem { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.vc-dia-km { color: var(--slate-600); font-weight: 700; white-space: nowrap; }
/* 1085: trazer o historico dos Excels e o cracha do nome que veio da planilha (fora do cadastro) */
.vc-av-x { background: var(--slate-400); }
.vc-cracha-txt { background: var(--slate-50); border: 1px dashed var(--slate-300); }
.vc-dica { margin: 0 0 12px; color: var(--slate-600); }
.vc-pl-arq { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; background: var(--branco); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.vc-pl-arq b { flex: 1 1 220px; font-size: 16px; }
.vc-pl-arq span { color: var(--slate-600); flex: 1 1 200px; overflow-wrap: anywhere; }
.vc-pl-partes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-bottom: 8px; }
.vc-pl-parte { display: grid; gap: 2px; text-align: left; font: inherit; color: inherit; background: var(--branco); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; min-width: 0; }
.vc-pl-parte:hover { border-color: var(--blue-700); }
.vc-pl-parte b { overflow-wrap: anywhere; }
.vc-pl-parte small { color: var(--slate-500); }
.vc-pl-esc { font-weight: 800; font-size: 14px; color: var(--blue-700); }
.vc-pl-nome { color: var(--amber-700); }
.vc-pl-ignorar { color: var(--slate-500); }
.vc-pl-carros { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-bottom: 8px; }
.vc-pl-carro { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.vc-pl-carro small { color: var(--slate-500); flex: 1 1 140px; }
.vc-pl-tem { color: var(--green-700); font-weight: 800; font-size: 13px; }
.vc-pl-novo { color: var(--amber-700); font-weight: 800; font-size: 13px; }

@media (max-width: 760px) {
  .vc-dia-lin { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; }
  .vc-dia-lin .vc-cracha { font-size: 14px; }
  .vc-bts { margin-left: 0; width: 100%; }
  .vc-nav-dia { font-size: 15px; }
  .vc-num { padding: 8px 10px; }
  .vc-num b { font-size: 24px; }
  .vc-num span { font-size: 13px; }
  .vc-bloco-g { padding: 10px 10px 2px; }
  .vc-lin-cab { display: none; }
  .vc-lin, .vc-lin-4 { grid-template-columns: 1fr; gap: 10px; padding: 12px 2px; }
  .vc-col-carro { flex-direction: row; align-items: center; gap: 10px; }
  .vc-rot { display: block; flex-basis: 100%; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--slate-600); }
  .vc-col-km { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .vc-km-in { flex: 1; }
  .vc-ir { display: none; }
  .vc-ficha-grade { grid-template-columns: 1fr; }
  .vc-confirmar { justify-content: stretch; }
  .vc-bt-grande { width: 100%; }
}
/* 1087: o km anotado no aplicativo do vendedor */
.vc-km-anot { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--blue-700); }
/* 1089: as duas abas da ficha do carro (so no celular; no computador os dois quadros ficam lado a lado) */
.vc-ficha-abas { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; }
.vc-fa { min-height: 56px; border-radius: 14px; border: 2px solid var(--slate-300); background: var(--branco); font: inherit; font-weight: 800; font-size: 14.5px; color: var(--slate-700); cursor: pointer; padding: 6px 8px; }
.vc-fa small { display: block; font-weight: 600; font-size: 12.5px; color: var(--slate-500); }
.vc-fa.on { border-color: var(--primary); color: var(--primary); background: var(--blue-50); }
@media (max-width: 760px) {
  .vc-ficha-abas { display: grid; } /* 1089: no celular, as duas abas da ficha (depois da regra de cima) */
  .vc-fa-quem > .vc-sec-serv, .vc-fa-serv > .vc-sec-quem { display: none; }
  .vc-ficha-grade > section > .vc-g { display: none; }
}
/* 1106: o RASTREADOR (Ver: Onde estao agora; o dia do carro; os ajustes). O carro parado em casa em vermelho; andando em verde;
   parado em cinza. No celular um cartao por linha (nada rola para o lado). Sem animacao; cores so por var(). */
.rt-num-casa { border-top-color: var(--red-600); background: var(--red-50); }
.rt-num-casa b { color: var(--red-700); }
.rt-zero { border-top-color: var(--slate-300); background: var(--branco); }
.rt-zero b { color: var(--slate-400); }
.rt-atual { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; color: var(--slate-600); }
.rt-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.rt-car { position: relative; display: grid; gap: 8px; text-align: left; font: inherit; color: inherit; background: var(--branco); border: 1px solid var(--line); border-left: 6px solid var(--slate-300); border-radius: 14px; padding: 12px 34px 12px 12px; cursor: pointer; min-width: 0; }
.rt-car-andando { border-left-color: var(--green-600); }
.rt-car-parado { border-left-color: var(--slate-400); }
.rt-car-casa { border-left-color: var(--red-600); background: var(--red-50); }
.rt-car-sem { border-left-color: var(--slate-200); background: var(--slate-50); }
.rt-car-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rt-quem { min-width: 0; }
.rt-st { display: inline-block; font-weight: 900; font-size: 17px; padding: 4px 12px; border-radius: 999px; }
.rt-st-and { background: var(--green-100); color: var(--green-800); }
.rt-st-par { background: var(--slate-100); color: var(--slate-700); }
.rt-st-casa { background: var(--red-600); color: var(--branco); }
.rt-st-sem { background: var(--slate-100); color: var(--slate-500); }
.rt-car-onde { font-weight: 700; color: var(--slate-700); overflow-wrap: anywhere; }
.rt-car-hoje { color: var(--slate-600); font-size: 14.5px; }
.rt-vermelho { color: var(--red-700); }
.rt-sem { color: var(--slate-500); margin: 14px 2px 0; overflow-wrap: anywhere; }
.vc-nav span.vc-nav-dia { cursor: default; }
.vc-nav span.vc-nav-dia:hover { border-color: transparent; background: none; }
.rt-ir { position: absolute; right: 12px; top: 50%; margin-top: -14px; font-size: 26px; color: var(--slate-400); }
.rt-onde { font-weight: 800; color: var(--blue-700); text-decoration: none; overflow-wrap: anywhere; }
/* o dia do carro */
.rt-dia-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.rt-filtros { margin: 10px 0 0; }
.rt-linha { max-width: 720px; }
.rt-par { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; background: var(--branco); border: 1px solid var(--line); border-left: 6px solid var(--slate-400); border-radius: 12px; padding: 10px 12px; }
.rt-par-h { display: grid; align-content: start; font-variant-numeric: tabular-nums; }
.rt-par-h b { font-size: 19px; }
.rt-par-h span { color: var(--slate-500); font-weight: 700; }
.rt-par-c { display: grid; gap: 4px; min-width: 0; }
.rt-par-t { font-size: 16px; }
.rt-par-casa { border-left-color: var(--red-600); background: var(--red-50); }
.rt-par-casa .rt-par-t { color: var(--red-800); font-weight: 800; }
.rt-par-agora { border-style: dashed; border-left-style: solid; }
.rt-and { position: relative; padding: 8px 12px 8px 42px; color: var(--slate-600); font-size: 14.5px; }
.rt-and-fio { position: absolute; left: 30px; top: 0; bottom: 0; border-left: 3px dotted var(--green-600); }
/* ajustes */
.rt-aj { max-width: 640px; background: var(--branco); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.rt-aj-lin { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-weight: 800; font-size: 17px; }
.rt-aj-lin label { display: inline; margin: 0; font: inherit; color: inherit; text-align: left; }
.rt-hora { width: 96px; font: inherit; font-size: 20px; text-align: center; padding: 6px; border: 1px solid var(--line); border-radius: 10px; }
.rt-aj-txt { color: var(--slate-600); margin: 6px 0 14px; }
.rt-ponto { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px 6px; border-top: 1px solid var(--line); font-weight: 700; cursor: pointer; }
.rt-ponto input { width: 20px; height: 20px; }
.rt-ponto small { color: var(--slate-500); }
.rt-ponto.on span { color: var(--red-700); }
.rt-bt-casa { justify-self: start; font: inherit; font-size: 14px; font-weight: 700; color: var(--slate-700); background: var(--slate-100); border: 1px dashed var(--slate-300); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.rt-g2 { margin-top: 18px; }
.rt-nossa { grid-template-columns: 26px minmax(0, 1fr) auto; cursor: default; }
@media (max-width: 760px) {
  .rt-lista { grid-template-columns: minmax(0, 1fr); }
  .rt-st { font-size: 16px; }
}
/* 1108: as vendas no dia do carro (passou no endereco do cliente?) e a parada no endereco de um cliente */
.rt-venda { font-weight: 800; color: var(--green-800); overflow-wrap: anywhere; }
.rt-vendas { max-width: 720px; margin-top: 6px; }
.rt-vd { display: grid; gap: 4px; background: var(--branco); border: 1px solid var(--line); border-left: 6px solid var(--slate-300); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.rt-vd-l1 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; min-width: 0; }
.rt-vd-l1 b { font-size: 16px; overflow-wrap: anywhere; }
.rt-vd-l1 span { color: var(--slate-600); font-size: 14px; }
.rt-vd-r { font-weight: 700; }
.rt-vd-ok { border-left-color: var(--green-600); }
.rt-vd-ok .rt-vd-r { color: var(--green-800); }
.rt-vd-nao { border-left-color: var(--amber-500); background: var(--amber-50); }
.rt-vd-nao .rt-vd-r { color: var(--amber-800); }
.rt-vd-cinza .rt-vd-r { color: var(--slate-500); font-weight: 600; }
.rt-cod { color: var(--slate-500); font-weight: 600; }
/* 1110: o relatorio do tempo em casa (tela Veiculos e Painel): um cartao por pessoa; tocar abre os dias */
.rr-num-casa { border-top: 5px solid var(--red-600); background: var(--red-50); }
.rr-num-casa b { color: var(--red-700); }
.rr-txt { color: var(--slate-600); margin: 0 0 12px; }
.rr-p { background: var(--branco); border: 1px solid var(--line); border-left: 6px solid var(--green-600); border-radius: 12px; margin-bottom: 8px; max-width: 760px; }
.rr-p-casa { border-left-color: var(--red-600); }
.rr-p-cab { position: relative; display: grid; gap: 4px; width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; padding: 10px 34px 10px 12px; cursor: pointer; }
.rr-p-cab:disabled { cursor: default; }
.rr-p-cab b { font-size: 17px; }
.rr-p-cab small { color: var(--slate-600); }
.rr-casa { color: var(--red-800); }
.rr-ok { color: var(--green-800); font-weight: 700; }
.rr-seta { position: absolute; right: 12px; top: 12px; color: var(--slate-500); font-size: 18px; }
.rr-dias { border-top: 1px solid var(--line); padding: 4px 12px 8px; }
.rr-dia { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.rr-dia:last-child { border-bottom: 0; }
.rr-dia span { color: var(--red-800); font-weight: 700; }
.rr-dia small { color: var(--slate-500); }
.rr .pg-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rr .pg-num { padding: 10px 12px; min-width: 0; }
.rr .pg-num b { font-size: 24px; }
.rr .pg-num span { font-size: 13px; overflow-wrap: anywhere; }
/* 1115: os lugares nos ajustes do rastreador (a empresa e as casas do cadastro de funcionarios, com a situacao de cada uma) */
.rt-cs { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px 6px; border-top: 1px solid var(--line); }
.rt-cs-i { font-size: 18px; text-align: center; }
.rt-cs-t { display: flex; flex-direction: column; min-width: 0; }
.rt-cs-t b { font-weight: 800; color: var(--slate-900); overflow-wrap: anywhere; }
.rt-cs-t small { font-size: 13px; font-weight: 600; color: var(--slate-500); overflow-wrap: anywhere; }
.rt-cs-alerta .rt-cs-t small { color: var(--amber-800); }
.rt-cs-ok .rt-cs-t small { color: var(--green-700); }
.rt-cs-t small.rt-cs-m { color: var(--green-700); }
.rt-cs .btn { white-space: nowrap; }
@media (max-width: 600px) { .rt-cs { grid-template-columns: 26px minmax(0, 1fr); } .rt-cs .btn { grid-column: 2; justify-self: start; } }

/* 1118: "Que lugar e este?" > Outro lugar: o nome escrito no proprio cartao da parada (sem animacao; nada rola para o lado) */
.rt-nomear { display: grid; gap: 6px; margin-top: 4px; min-width: 0; }
.rt-nomear label { font-size: 13px; font-weight: 700; color: var(--slate-600); }
.rt-nomear .input { width: 100%; max-width: 320px; box-sizing: border-box; font: inherit; font-size: 16px; }
.rt-nomear-bt { display: flex; flex-wrap: wrap; gap: 8px; }

/* 1123: o mapa do dia do carro. Computador: a lista e o mapa lado a lado (o mapa fica parado enquanto a lista rola); celular: um ou
   outro (o botao "Mostrar"). Pinos numerados como a lista; parada rapida = pontinho; o trajeto = a linha. Sem animacao, sem cor solta. */
.rt-filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.rt-grade { margin-top: 4px; }
.rt-grade-mapa { display: none; }
.rt-mapa { height: 62vh; min-height: 320px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--slate-100); }
.rt-mapa-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 2px 0; color: var(--slate-600); font-size: 13px; }
.rt-mapa-leg span { display: inline-flex; align-items: center; gap: 6px; }
.rt-lg { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--branco); box-shadow: 0 0 0 1px var(--slate-300); }
.rt-lg-rap { width: 9px; height: 9px; background: var(--slate-500); }
.rt-lg-linha { width: 20px; height: 0; border: 0; border-top: 3px solid var(--blue-600); border-radius: 0; box-shadow: none; }
.rt-modo-mapa .rt-grade-lista { display: none; }
.rt-modo-mapa .rt-grade-mapa { display: block; }
.rt-nr { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-bottom: 4px; border-radius: 50%; border: 2px solid var(--branco);
  box-shadow: 0 0 0 1px var(--slate-300); font: inherit; font-size: 13px; font-weight: 800; color: var(--branco); cursor: pointer; padding: 0; }
.rt-nr-parado { background: var(--blue-700); }
.rt-nr-casa { background: var(--red-600); }
.rt-nr-empresa { background: var(--slate-800); }
.rt-nr-ligado { background: var(--amber-600); }
.rt-par-ligado { border-left-color: var(--amber-500); background: var(--amber-50); }
.rt-ligado { color: var(--amber-800); font-weight: 700; font-size: 14px; }
.rt-sem-sinal { margin: 2px 0; padding: 8px 12px; border: 1px dashed var(--slate-300); border-radius: 10px; color: var(--slate-600); font-size: 14.5px; background: var(--slate-50); }
.rt-par-foco { outline: 3px solid var(--blue-300); outline-offset: 1px; }
.rt-and-rap { color: var(--slate-700); font-weight: 700; }
.rt-pin { box-sizing: border-box; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--branco); box-shadow: 0 1px 4px rgba(15, 23, 42, .45); color: var(--branco); font-size: 13px; font-weight: 800; }
.rt-pin-agora { box-shadow: 0 0 0 4px var(--amber-300); }
.leaflet-interactive.rt-pin-rap { stroke: var(--branco); fill: var(--slate-500); }
.leaflet-interactive.rt-trajeto { stroke: var(--blue-600); fill: none; }
@media (min-width: 1000px) {
  .rt-so-cel { display: none; }
  .rt-grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 14px; align-items: start; }
  .rt-grade .rt-grade-lista, .rt-modo-mapa .rt-grade-lista { display: block; }
  .rt-grade .rt-grade-mapa { display: block; position: sticky; top: 12px; }
  .rt-mapa { height: calc(100vh - 140px); }
}

/* 1128: os pinos perto um do outro abrem em roda, cada um com a perninha ate o ponto certo; o trajeto com a cor do sistema. Sem animacao, sem cor solta. */
.leaflet-pane path.rt-perna { stroke: var(--slate-600); fill: none; }
.leaflet-pane path.rt-perna-pe { fill: var(--slate-700); stroke: none; }
.leaflet-pane path.rt-trajeto { stroke: var(--blue-600); fill: none; }
