:root { --fundo: #eef1f6; --card: #fff; --texto: #1f2937; --suave: #5f6b7a; --azul: #1e6fd9; --marinho: #14213d; --lateral: #1b2a4e; --lateral2: #26396b; --verde: #1a9b4a; --verm: #d03a2f; --cinza: #8a94a3; --borda: #d9dee6; --pbar: 52px; --larg: 236px; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 13.5px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--fundo); color: var(--texto); }
a { color: var(--azul); }
header { position: fixed; top: 0; left: 0; right: 0; z-index: 1200; height: var(--pbar); display: flex; align-items: center; gap: 12px; padding: 0 14px; background: var(--marinho); color: #fff; }
header .marca small { font-weight: 400; opacity: .7; }
header #quem { margin-left: auto; font-size: 12px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
header form { margin: 0; }
header button { background: transparent; border: 1px solid #fff5; color: #fff; padding: 6px 12px; border-radius: 6px; cursor: pointer; font: inherit; }
header #menubtn { border: 0; font-size: 18.5px; padding: 4px 8px; line-height: 1; }
.corpo { display: flex; padding-top: var(--pbar); min-height: 100%; }
aside { position: fixed; top: var(--pbar); bottom: 0; left: 0; width: var(--larg); background: var(--lateral); overflow-y: auto; z-index: 1100; }
aside nav { display: flex; flex-direction: column; padding: 8px 0; }
aside nav a, aside summary { display: block; padding: 11px 18px; color: #dbe4f7; text-decoration: none; cursor: pointer; font-size: 12.5px; list-style: none; }
aside summary::-webkit-details-marker { display: none; }
aside summary::after { content: "\25B8"; float: right; opacity: .7; }
aside details[open] > summary::after { content: "\25BE"; }
aside nav a:hover, aside summary:hover { background: var(--lateral2); color: #fff; }
aside details[open] { background: #172547; }
aside details a { padding-left: 34px; font-size: 12px; background: var(--lateral2); border-bottom: 1px solid #1b2a4e; }
aside nav a.ativo { background: var(--azul); color: #fff; font-weight: 600; }
main { margin-left: var(--larg); padding: 16px 18px 28px; width: calc(100% - var(--larg)); min-width: 0; }
body.menu-fechado aside { display: none; }
body.menu-fechado main { margin-left: 0; width: 100%; }
h1.titulo { margin: 0 0 12px; font-size: 17.5px; font-weight: 600; }
.aviso { color: var(--suave); margin: 8px 0; }
.erro { color: var(--verm); }
.ok { color: var(--verde); }
.barra { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 12px; }
.barra .espaco { margin-left: auto; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--suave); }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--borda); border-radius: 6px; background: #fff; color: var(--texto); min-width: 0; }
button, .botao { font: inherit; padding: 8px 16px; border: 0; border-radius: 6px; background: var(--azul); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
button.sec { background: #fff; color: var(--azul); border: 1px solid var(--azul); }
button.perigo { background: var(--verm); }
button.peq { padding: 4px 10px; font-size: 12px; }
button:disabled { opacity: .5; cursor: default; }
.cx { background: var(--card); border: 1px solid var(--borda); border-radius: 8px; padding: 14px; margin-bottom: 14px; }
.cx h2 { margin: 0 0 10px; font-size: 13.5px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { background: var(--card); border: 1px solid var(--borda); border-radius: 8px; padding: 14px; border-top: 5px solid var(--cinza); }
.kpi b { display: block; font-size: 25px; line-height: 1.1; }
.kpi span { color: var(--suave); font-size: 12px; }
.kpi.mov { border-top-color: var(--verde); } .kpi.par { border-top-color: var(--azul); } .kpi.off { border-top-color: var(--verm); } .kpi.sem { border-top-color: var(--cinza); }
.tabela-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--borda); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--borda); font-size: 12px; white-space: nowrap; }
th { background: #e8edf5; font-weight: 600; position: sticky; top: 0; }
td.num, th.num { text-align: right; }
tr.clic { cursor: pointer; } tr.clic:hover td { background: #f4f7fc; }
tr.sub td { background: #f7f9fc; white-space: normal; }
.detalhe { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 18px; }
.detalhe div span { display: block; font-size: 12px; color: var(--suave); }
.bola { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--cinza); vertical-align: -1px; margin-right: 6px; }
.bola.mov, .pino.mov { background: var(--verde); } .bola.par, .pino.par { background: var(--azul); } .bola.off, .pino.off { background: var(--verm); } .bola.sem, .pino.sem { background: var(--cinza); }
.pag { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 12px; }
dialog.modal { border: 1px solid var(--borda); border-radius: 10px; padding: 18px; width: min(720px, 94vw); max-height: 90vh; overflow: auto; background: var(--card); color: inherit; }
dialog.modal::backdrop { background: rgba(0, 0, 0, .45); }
dialog.modal h2 { margin: 0 0 12px; font-size: 14.5px; }
.mapa { height: 460px; border-radius: 8px; border: 1px solid var(--borda); margin: 10px 0; }
.mapawrap { display: flex; height: calc(100vh - var(--pbar) - 32px); min-height: 380px; border: 1px solid var(--borda); border-radius: 8px; overflow: hidden; background: #fff; }
.mapawrap .mapa { flex: 1; height: auto; margin: 0; border: 0; border-radius: 0; min-width: 0; }
.lateral-dir { width: 320px; display: flex; flex-direction: column; border-left: 1px solid var(--borda); background: #fff; }
.lateral-dir .topo { padding: 10px; border-bottom: 1px solid var(--borda); display: flex; flex-direction: column; gap: 8px; }
.lateral-dir .topo .linha { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--suave); }
.lateral-dir .topo select { flex: 1; }
.lista-cli { overflow-y: auto; flex: 1; }
.cli-grupo { background: #e8edf5; padding: 7px 12px; font-weight: 600; font-size: 12px; display: flex; gap: 8px; align-items: center; }
.item-veic { padding: 8px 12px; border-bottom: 1px solid var(--borda); display: flex; gap: 8px; align-items: flex-start; cursor: pointer; font-size: 12px; }
.item-veic:hover { background: #f4f7fc; }
.item-veic b { font-size: 12px; } .item-veic small { display: block; color: var(--suave); }
.mosaico { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.mini { background: var(--card); border: 1px solid var(--borda); border-radius: 8px; overflow: hidden; }
.mini h3 { margin: 0; padding: 8px 12px; font-size: 12px; background: #e8edf5; display: flex; justify-content: space-between; gap: 8px; }
.mini .mapa { height: 220px; margin: 0; border: 0; border-radius: 0; }
.mini p { margin: 0; padding: 6px 12px; font-size: 12px; color: var(--suave); }
body.login { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.caixa { background: var(--card); padding: 24px; border-radius: 10px; border: 1px solid var(--borda); width: 100%; }
.caixa h1 { margin: 0 0 4px; font-size: 18.5px; } .caixa small { color: var(--suave); font-weight: 400; }
.pino { background: var(--cinza); border: 2px solid #fff; border-radius: 50%; width: 18px; height: 18px; box-shadow: 0 0 3px #0008; }
.rotulo { background: #fff; border: 1px solid var(--borda); border-radius: 4px; padding: 1px 5px; font-size: 12px; font-weight: 600; box-shadow: none; }
@media (max-width: 860px) {
  aside { display: none; } body.menu-aberto aside { display: block; box-shadow: 4px 0 12px #0006; }
  main { margin-left: 0; width: 100%; padding: 12px 16px 24px; }
  header #quem { display: none; } header form { margin-left: auto; }
  .mapawrap { flex-direction: column; height: auto; } .mapawrap .mapa { height: 380px; flex: none; } .lateral-dir { width: 100%; max-height: 340px; border-left: 0; border-top: 1px solid var(--borda); }
}
dialog.modal.largo { width: min(960px, 96vw); }
.form-grid h3.secao { grid-column: 1 / -1; margin: 10px 0 0; padding-bottom: 4px; font-size: 12px; border-bottom: 1px solid var(--borda); }
.form-grid h3.secao:first-child { margin-top: 0; }
.multi { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.multi-lista { max-height: 180px; overflow: auto; border: 1px solid var(--borda); border-radius: 6px; padding: 6px 8px; display: grid; gap: 4px; }
.multi-item { display: flex; align-items: center; gap: 8px; flex-direction: row; font-size: 12px; }
.multi-item input { width: auto; margin: 0; }

/* ---- visual: cores, icones e destaques ---- */
header { background: linear-gradient(90deg, #0f1b36, #1e3a78); box-shadow: 0 2px 8px #0004; }
header .marca { font-size: 14.5px; letter-spacing: .3px; }
#vivo { font-size: 12px; padding: 3px 10px; border-radius: 12px; background: #ffffff1f; white-space: nowrap; }
#vivo.vivo-ok { color: #8cf0ac; } #vivo.vivo-erro { color: #ffb4ae; background: #d03a2f55; }
header #quem { margin-left: 10px; }
h1.titulo { font-size: 18.5px; padding-left: 12px; border-left: 5px solid var(--azul); }
aside { background: linear-gradient(180deg, #16254a, #101b38); }
aside nav a::before, aside summary::before { display: inline-block; width: 26px; }
aside nav a[href="/dashboard"]::before { content: "📊"; } aside nav a[href="/"]::before { content: "🗺️"; } aside nav a[href="/veiculos"]::before { content: "🚘"; } aside nav a[href="/mosaico"]::before { content: "🧩"; }
aside details:nth-of-type(1) > summary::before { content: "🗂️"; } aside details:nth-of-type(2) > summary::before { content: "📈"; }
aside details a::before { content: "•"; width: 14px; opacity: .6; }
aside nav a:hover, aside summary:hover { padding-left: 22px; transition: padding .12s; }
.kpi { position: relative; border-radius: 12px; box-shadow: 0 2px 6px #1f293712; transition: transform .12s, box-shadow .12s; }
.kpi:hover { transform: translateY(-2px); box-shadow: 0 6px 14px #1f293722; }
.kpi .kpi-ico { position: absolute; top: 10px; right: 12px; font-size: 21.5px; font-style: normal; opacity: .85; }
.kpi.tot { border-top-color: var(--marinho); }
.kpi.mov b { color: var(--verde); } .kpi.par b { color: var(--azul); } .kpi.off b { color: var(--verm); } .kpi.sem b { color: var(--cinza); }
.cx { border-radius: 12px; border-top: 3px solid var(--azul); }
.cx h2 { font-size: 14.5px; }
button, .botao { transition: filter .12s, transform .06s; } button:hover:not(:disabled), .botao:hover { filter: brightness(1.1); } button:active:not(:disabled) { transform: translateY(1px); }
a.botao.sec { background: #fff; color: var(--azul); border: 1px solid var(--azul); }
th { background: #dfe8f7; color: #1b2a4e; }
tbody tr:nth-child(even) td { background: #f8fafd; }
/* contadores clicaveis (mapa e listagem) */
.contadores { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: #fff; color: var(--texto); border: 1px solid var(--borda); border-radius: 16px; padding: 4px 10px; font-size: 12px; }
.chip.vencida { border-color: var(--verm); } .chip.proxima { border-color: #f59e0b; }
.chip.mov { border-color: var(--verde); } .chip.par { border-color: var(--azul); } .chip.off { border-color: var(--verm); } .chip.sem { border-color: var(--cinza); }
.chip.sel { color: #fff; background: var(--marinho); } .chip.mov.sel { background: var(--verde); } .chip.par.sel { background: var(--azul); } .chip.off.sel { background: var(--verm); } .chip.sem.sel { background: var(--cinza); }
.contadores.grande { margin-bottom: 12px; gap: 12px; }
.contadores.grande .chip { display: flex; flex-direction: column; align-items: flex-start; min-width: 140px; border-radius: 12px; border-width: 1px; border-top-width: 5px; padding: 10px 14px; box-shadow: 0 2px 6px #1f293712; position: relative; }
.contadores.grande .chip b { font-size: 23.5px; line-height: 1.1; } .contadores.grande .chip small { color: inherit; opacity: .8; font-size: 12px; }
.contadores.grande .chip .chip-ico { position: absolute; top: 10px; right: 12px; font-size: 16.5px; }
/* icones dos veiculos */
.ico-tipo { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; font-size: 15px; background: var(--cinza); flex: none; box-shadow: 0 1px 3px #0003; }
.ico-tipo.mov { background: #c8f0d6; box-shadow: 0 0 0 2px var(--verde); } .ico-tipo.par { background: #cfe2fb; box-shadow: 0 0 0 2px var(--azul); }
.ico-tipo.off { background: #f8d4d0; box-shadow: 0 0 0 2px var(--verm); } .ico-tipo.sem { background: #e3e6ea; box-shadow: 0 0 0 2px var(--cinza); }
.selo { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; color: #fff; background: var(--cinza); }
.selo.mov { background: var(--verde); } .selo.par { background: var(--azul); } .selo.off { background: var(--verm); }
.sub-linha { display: block; color: var(--suave); font-size: 12px; }
table.larga td, table.larga th { padding: 8px 10px; }
.st.mov { color: var(--verde); font-weight: 600; } .st.par { color: var(--azul); font-weight: 600; } .st.off { color: var(--verm); font-weight: 600; }
/* marcador no mapa: descricao e placa em cima, icone do tipo embaixo */
.pinw { display: flex; flex-direction: column; align-items: center; width: 130px; }
.pin-rot { background: #fff; border: 1px solid var(--borda); border-radius: 6px; padding: 1px 6px 2px; text-align: center; line-height: 1.15; box-shadow: 0 1px 4px #0004; max-width: 130px; margin-bottom: 2px; }
.pin-rot b { display: block; font-size: 12px; color: #14213d; letter-spacing: .5px; } .pin-rot span { display: block; font-size: 12px; color: var(--suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 118px; }
.pin { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 6px #0006; background: var(--cinza); }
.pin i { font-style: normal; font-size: 15px; line-height: 1; }
.pin.mov { background: var(--verde); } .pin.par { background: var(--azul); } .pin.off { background: var(--verm); } .pin.sem { background: var(--cinza); }
.pin.mov { animation: pulsa 1.8s infinite; }
@keyframes pulsa { 0% { box-shadow: 0 0 0 0 #1a9b4a99, 0 2px 6px #0006; } 70% { box-shadow: 0 0 0 12px #1a9b4a00, 0 2px 6px #0006; } 100% { box-shadow: 0 0 0 0 #1a9b4a00, 0 2px 6px #0006; } }
@media (prefers-reduced-motion: reduce) { .pin.mov { animation: none; } }
/* popup do veiculo */
.leaflet-popup-content { margin: 0; width: 290px !important; }
.leaflet-popup-content-wrapper { padding: 0; overflow: hidden; border-radius: 10px; }
.pop-tit { display: flex; gap: 8px; align-items: center; padding: 9px 12px; color: #fff; background: var(--cinza); font-size: 12.5px; }
.pop-tit.mov { background: var(--verde); } .pop-tit.par { background: var(--azul); } .pop-tit.off { background: var(--verm); }
.pop-ico { font-size: 16.5px; }
.pop-corpo { padding: 8px 12px; max-height: 260px; overflow-y: auto; }
.pop-lin { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px dashed var(--borda); font-size: 12px; }
.pop-lin span { color: var(--suave); } .pop-lin b { text-align: right; font-weight: 600; }
.pop-ac { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 10px; background: #f4f7fc; }
/* lista lateral do mapa */
.lateral-dir { width: 340px; }
.lateral-dir .contadores { justify-content: space-between; }
.cli-grupo { background: linear-gradient(90deg, #dfe8f7, #eef3fb); color: #1b2a4e; }
.item-veic { align-items: center; transition: background .1s; } .item-veic .tx { min-width: 0; } .item-veic:hover { background: #eaf2ff; }
.item-veic .ico-tipo { width: 32px; height: 32px; font-size: 13.5px; }

/* assistente "Subir equipamento" */
.etapas { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 8px 0 14px; }
.etapa { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #eef1f6; color: #5b6578; font-weight: 600; }
.etapa .etapa-n { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; background: #cfd6e4; color: #fff; align-items: center; justify-content: center; font-size: 12px; }
.etapa.atual { background: #fff4d6; color: #8a5a00; } .etapa.atual .etapa-n { background: #f0a800; }
.etapa.feito { background: #dff5e6; color: #14663a; } .etapa.feito .etapa-n { background: #1f9d55; }
.lista-passos { padding-left: 20px; line-height: 1.6; }
.sms { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; padding: 10px 12px; border: 1px solid #d5dcea; border-radius: 10px; background: #f7f9fd; }
.sms b { flex-basis: 100%; }
.sms code { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 6px 8px; background: #fff; border-radius: 6px; border: 1px solid #e1e6f0; user-select: all; }

/* marca GeoNext */
header .marca { display: flex; align-items: center; }
.marca-logo { display: block; height: 34px; width: auto; }
body.login .caixa h1 { margin: 0 0 14px; }
body.login .caixa .marca-logo, .adm-marca .marca-logo { height: 64px; background: #0f1b36; padding: 10px 18px; border-radius: 10px; margin: 0 auto; box-sizing: content-box; }
/* tela de login GeoNext */
body.gn-login { display: block; min-height: 100vh; padding: 0; background: radial-gradient(1200px 600px at 20% -10%, #25396f 0%, transparent 60%), radial-gradient(900px 500px at 100% 110%, #ff7a0033 0%, transparent 55%), linear-gradient(160deg, #0b1330 0%, #14213d 60%, #0f1b36 100%); }
.gn-wrap { margin: 0; width: 100%; box-sizing: border-box; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 24px 16px; }
.gn-topo { width: min(400px, 100%); background: #0b1330; border-radius: 16px 16px 0 0; padding: 26px 20px 22px; text-align: center; border-bottom: 3px solid #ff7a00; box-shadow: 0 -1px 0 #ffffff14 inset; }
.gn-topo .marca-logo { height: 74px; margin: 0 auto; background: none; padding: 0; border-radius: 0; box-sizing: border-box; }
.gn-card.form.caixa { width: min(400px, 100%); max-width: 400px; padding: 0; border: 0; border-radius: 0 0 16px 16px; background: #fff; box-shadow: 0 24px 60px #0007; gap: 0; }
.gn-corpo { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 14px; }
.gn-corpo h1 { margin: 0; font-size: 18.5px; color: #0f1b36; }
.gn-sub { margin: -6px 0 4px; color: #64708a; font-size: 12px; }
.gn-corpo label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: #3b4660; }
.gn-corpo input { font-size: 13.5px; padding: 12px 14px; border: 1px solid #cfd6e4; border-radius: 10px; background: #f7f9fc; width: 100%; box-sizing: border-box; }
.gn-corpo input:focus { outline: 2px solid #ff7a00; outline-offset: 0; border-color: #ff7a00; background: #fff; }
.gn-senha { position: relative; display: block; }
.gn-senha input { padding-right: 46px; }
.gn-olho { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; color: #64708a; border-radius: 8px; cursor: pointer; padding: 0; }
.gn-olho:hover, .gn-olho.ligado { color: #ff7a00; }
.gn-corpo button[type=submit] { background: #ff7a00; color: #fff; border: 0; padding: 13px; border-radius: 10px; font-size: 13.5px; font-weight: 700; cursor: pointer; margin-top: 4px; }
.gn-corpo button[type=submit]:hover { background: #e86d00; }
.gn-esqueci { align-self: center; color: #1e5fc4; font-size: 12px; text-decoration: none; }
.gn-esqueci:hover { text-decoration: underline; }
.gn-corpo p { margin: 0; line-height: 1.5; color: #3b4660; font-size: 12px; }
.gn-corpo .erro { background: #fdecec; color: #a12121; padding: 10px 12px; border-radius: 8px; border: 1px solid #f3c2c2; }
.gn-rodape { color: #9fb0d6; font-size: 12px; margin: 18px 0 0; }

/* dashboard: graficos (SVG, sem estilo inline por causa da CSP) */
.graficos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 14px; }
.grafico { text-align: center; } .grafico h2 { margin: 0 0 8px; font-size: 12.5px; text-align: left; }
.rosca { width: 170px; height: 170px; display: block; margin: 0 auto 8px; }
.rosca-fundo { stroke: #e6eaf1; } .rosca-mov { stroke: var(--verde); background: var(--verde); } .rosca-par { stroke: var(--azul); background: var(--azul); }
.rosca-off { stroke: var(--verm); background: var(--verm); } .rosca-sem { stroke: #9aa5b5; background: #9aa5b5; }
.rosca-txt { font-size: 8px; font-weight: 700; fill: #14213d; } .rosca-sub { font-size: 3.2px; fill: #5f6b7a; }
.legenda { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; font-size: 12px; color: var(--suave); }
.legenda .pt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; }
.barras { width: 100%; height: auto; } .barra-nome, .barra-n { font-size: 14px; fill: #3b4660; } .barra-v { fill: var(--azul); }
.busca-menu { display: block; width: calc(100% - 20px); margin: 10px; padding: 8px 10px; border-radius: 8px; border: 1px solid #ffffff33; background: #ffffff14; color: #fff; font-size: 12px; box-sizing: border-box; } .busca-menu::placeholder { color: #cdd6ea; }

/* balao do veiculo no mapa e bloco lateral: estado, tempos, endereco */
.pop-estado { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 4px; }
.pop-sel { font-size: 12px; font-weight: 700; color: #fff; padding: 3px 10px; border-radius: 999px; background: var(--cinza); }
.pop-sel.mov { background: var(--verde); } .pop-sel.par { background: var(--azul); } .pop-sel.off { background: var(--verm); }
.pop-vel { font-size: 16.5px; font-weight: 700; color: var(--texto, #1d2a3a); }
.pop-tempo { margin: 6px 12px; padding: 6px 10px; background: #f4f7fc; border: 1px solid var(--borda); border-radius: 6px; font-size: 12px; }
.pop-tempo > div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.pop-tempo span:first-child { color: var(--suave); } .pop-tempo b, .pop-tempo .tv { font-weight: 600; font-variant-numeric: tabular-nums; }
.pop-end { display: flex; gap: 6px; align-items: flex-start; margin: 0 12px 6px; padding: 7px 10px; border-left: 3px solid var(--azul); background: #eef5ff; border-radius: 4px; font-size: 12px; line-height: 1.35; }
.pop-end-txt { font-weight: 600; word-break: break-word; }
.pop-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 4px 12px 8px; }
.pop-cel { display: flex; flex-direction: column; font-size: 12px; min-width: 0; } .pop-cel.larga { grid-column: 1 / -1; }
.pop-cel span { color: var(--suave); font-size: 12px; } .pop-cel b { font-weight: 600; word-break: break-word; }
.item-veic .lado-upd { font-variant-numeric: tabular-nums; }
.item-veic .lado-end { color: #33475f; font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-veic .lado-end::before { content: "📍 "; }

/* bloqueio do veiculo (janela do cliente) */
button.perigo { background: var(--verm); }
dialog.modal form input[type=text], dialog.modal form input:not([type]), dialog.modal form input[type=password] { display: block; width: 100%; box-sizing: border-box; margin: 8px 0; padding: 8px 10px; border: 1px solid var(--borda); border-radius: 6px; font: inherit; }
label.check { display: block; margin: 10px 0; }
.pop-ac .bloq-bt { background: #fff; color: var(--verm); border: 1px solid var(--verm); }

/* botoes do balao do mapa: o Leaflet pinta todo link de azul e escondia o texto do botao azul */
.leaflet-container a.botao { color: #fff; } .leaflet-container a.botao.sec { color: var(--azul); }
.pop-ac { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .pop-ac .mais-bt { margin-left: auto; padding: 4px 10px; }
.pin-rot { border-radius: 8px; border-color: #c9d6ea; } .pin-rot b { font-size: 12px; } .pin-rot span:empty { display: none; }
.pinw { width: 150px; } .pin-rot { max-width: 150px; } .pin-rot span { max-width: 138px; } .pin-rot .pin-mod { font-size: 12px; font-weight: 600; color: #14213d; }
.pinw .pin { width: 44px; height: 44px; } .pinw .pin i { font-size: 20.5px; }
/* lista de veiculos (lado direito do mapa) em cartoes */
.lateral-dir { background: #f4f7fc; }
.lateral-dir .cli-grupo { border-radius: 0; font-size: 12px; text-transform: none; letter-spacing: .2px; }
.item-veic { background: #fff; margin: 6px 8px; border: 1px solid var(--borda); border-left: 4px solid var(--cinza); border-radius: 10px; padding: 9px 10px; box-shadow: 0 1px 3px #0f1f4012; transition: box-shadow .15s, transform .1s; }
.item-veic.mov { border-left-color: var(--verde); } .item-veic.par { border-left-color: var(--azul); } .item-veic.off { border-left-color: var(--verm); }
.item-veic:hover { box-shadow: 0 3px 10px #0f1f4026; transform: translateY(-1px); background: #fff; }
.item-veic .tx b { font-size: 12.5px; letter-spacing: .4px; color: #14213d; } .item-veic .tx .modelo { color: var(--suave); }
.item-veic .st { font-size: 12px; margin: 1px 0; }

/* aba de cadastro dentro do painel de administracao (iframe): sem cabecalho nem menu */
body.embutido > header, body.embutido #lateral { display: none; }
body.embutido .corpo { padding-top: 0; }
body.embutido main#conteudo { margin-left: 0; width: 100%; }

/* celular: tabelas rolam de lado, botoes e campos maiores, formularios em uma coluna */
@media (max-width: 700px) {
  main table { display: block; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
  main button, main select, main input { min-height: 40px; font-size: 14.5px; }
  .form-grid { grid-template-columns: 1fr !important; }
  dialog.modal, dialog.modal.largo { width: 96vw; max-width: 96vw; }
  main h1 { font-size: 16px; }
}

/* historico do bloqueio: sem barra de rolagem, o texto quebra de linha */
.hist-bloq { overflow-x: visible; }
.hist-bloq table { display: table; width: 100%; table-layout: auto; }
.hist-bloq th, .hist-bloq td { white-space: normal; overflow-wrap: anywhere; word-break: break-word; padding: 6px 8px; font-size: 12px; vertical-align: top; }

/* convite de instalacao do app na tela de login */
.gn-convite { position: fixed; z-index: 900; left: 10px; right: 10px; bottom: 12px; max-width: 460px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: #fff; color: #0b1220; box-shadow: 0 8px 28px rgba(0, 0, 0, .35); }
.gn-convite img { width: 42px; height: 42px; border-radius: 10px; }
.gn-convite div { flex: 1; min-width: 0; } .gn-convite b { display: block; font-size: 12.5px; } .gn-convite small { display: block; color: #55627a; font-size: 12px; line-height: 1.3; }
.gn-convite .gn-inst { background: #2563eb; color: #fff; border: 0; border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 12.5px; }
.gn-convite .gn-fecha { background: none; border: 0; color: #55627a; font-size: 14.5px; padding: 4px 6px; }

.gn-digital { background: #0b2a5a; color: #fff; border: 0; padding: 14px; border-radius: 10px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.gn-digital:hover { background: #12397a; }
.gn-digmsg { margin: -6px 0 0; font-size: 12px; color: #b3261e; text-align: center; min-height: 0; }
.gn-digmsg:empty { display: none; }
.gn-ou { margin: 0; text-align: center; font-size: 12px; color: #5b6b82; }

/* balao do veiculo mais compacto */
.leaflet-popup-content { width: 255px !important; }
.pop-tit { padding: 6px 10px; font-size: 12px; } .pop-estado { padding: 4px 10px; }
.pop-tempo { margin: 4px 10px; padding: 3px 8px; font-size: 12px; } .pop-tempo > div { padding: 1px 0; }
.pop-end { margin: 0 10px 4px; padding: 4px 8px; font-size: 12px; line-height: 1.3; }
.pop-grade { grid-template-columns: 1fr 1fr 1fr; gap: 3px 8px; padding: 2px 10px 6px; }
.pop-cel { font-size: 12px; } .pop-cel span { font-size: 12px; } .pop-cel.larga { font-size: 12px; }
.pop-ac { padding: 6px 10px 8px; gap: 5px; }

/* recolher a lista lateral do mapa */
.mapawrap { position: relative; }
.mapawrap.sem-lado .lateral-dir { display: none; }
.lado-bt { position: absolute; top: 10px; right: 10px; z-index: 800; background: #fff; border: 1px solid var(--borda); border-radius: 8px; padding: 5px 9px; font-size: 12px; font-weight: 700; color: #14213d; cursor: pointer; box-shadow: 0 1px 5px #0004; }
.mapawrap:not(.sem-lado) .lado-bt { right: 350px; }
@media (max-width: 860px) { .mapawrap:not(.sem-lado) .lado-bt { right: 10px; } }

/* Mapa Geral: lista com o cliente escolhido, topo compacto e tela inteira dentro do painel do revendedor */
.lateral-dir .topo { gap: 6px; padding: 8px 10px; }
.lateral-dir .rot-cli { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--suave); }
.lateral-dir .rot-cli select { flex: 1; min-width: 0; font-weight: 600; color: var(--marinho); }
.lateral-dir .topo input, .lateral-dir .topo select { padding: 4px 8px; font-size: 12px; min-height: 0; height: 28px; }
.btn-camada { position: absolute; top: 86px; left: 10px; z-index: 800; width: 34px; height: 34px; padding: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; background: #fff; border: 2px solid rgba(0,0,0,.2); border-radius: 4px; cursor: pointer; box-shadow: none; }
.btn-camada:hover { background: #f4f4f4; }
body.embutido main:has(.mapawrap) .titulo, body.embutido main:has(.mapawrap) #tela > .aviso { display: none; }
body.embutido main:has(.mapawrap) { padding-top: 8px; padding-bottom: 8px; }
body.embutido .mapawrap, body.embutido[data-p="mapa"] .mapawrap { height: calc(100vh - 16px); }
body.embutido main:has(.mapawrap) { padding-left: 8px; padding-right: 8px; }

.cad-ic { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; stroke-width: 2.4; stroke-linecap: round; }
.cad-f { fill: #d62828; stroke: #d62828; } .cad-a { fill: #1f9d55; stroke: #1f9d55; }

/* icone SVG do veiculo e status colorido no rotulo do mapa */
.pin .ico, .ico-tipo .ico { width: 24px; height: 24px; fill: currentColor; display: block; } .pin .ico { color: #fff; }
.pinw .pin .ico { width: 28px; height: 28px; } .pin .ico .rd { stroke: var(--c); stroke-width: 1.4; } .pin .ico .j { fill: var(--c); }
.pin.mov { --c: var(--verde); } .pin.par { --c: var(--azul); } .pin.off { --c: var(--verm); } .pin.sem { --c: var(--cinza); }
.ico-tipo { color: #fff; } .ico-tipo.mov { background: var(--verde); box-shadow: 0 0 0 2px #bfe8cd; } .ico-tipo.par { background: var(--azul); box-shadow: 0 0 0 2px #bcd6f6; }
.ico-tipo.off { background: var(--verm); box-shadow: 0 0 0 2px #f3c4c0; } .ico-tipo.sem { background: var(--cinza); box-shadow: 0 0 0 2px #d5d9de; }
.ico-tipo.mov { --c: var(--verde); } .ico-tipo.par { --c: var(--azul); } .ico-tipo.off { --c: var(--verm); } .ico-tipo.sem { --c: var(--cinza); } .ico-tipo .ico .rd { stroke: var(--c); stroke-width: 1.4; } .ico-tipo .ico .j { fill: var(--c); }
.pin-rot .pin-st { margin-top: 2px; padding: 1px 6px; border-radius: 9px; color: #fff; font-weight: 700; font-size: 12px; }
.pin-rot .pin-st.mov { background: var(--verde); } .pin-rot .pin-st.par { background: var(--azul); } .pin-rot .pin-st.off { background: var(--verm); } .pin-rot .pin-st.sem { background: var(--cinza); }
/* Mapa Geral cabe inteiro na tela, sem rolar; e folga no fim do menu lateral */
body[data-p="mapa"] main#conteudo > .titulo, body[data-p="mapa"] #tela > .aviso { display: none; }
body[data-p="mapa"] main#conteudo { padding-top: 10px; padding-bottom: 10px; }
body[data-p="mapa"] .mapawrap { height: calc(100vh - var(--pbar) - 20px); min-height: 380px; }
aside nav { padding-bottom: 64px; }
.pin-rot b { font-size: 12px; } .pin-rot .pin-km { font-size: 12px; font-weight: 600; color: #14213d; margin-top: 1px; }

/* Veiculos rastreados: cabe na tela sem rolar de lado (textos longos quebram em duas linhas, botoes ficam um sobre o outro) */
table.larga { table-layout: auto; }
table.larga th, table.larga td { padding: 6px 7px; font-size: 12px; white-space: normal; overflow-wrap: anywhere; vertical-align: middle; }
table.larga th { white-space: nowrap; }
table.larga td.num { white-space: nowrap; }
table.larga td.acoes { white-space: nowrap; } table.larga td.acoes .botao { display: block; margin: 2px 0; text-align: center; padding: 3px 8px; font-size: 12px; }
table.larga .sub-linha { display: block; font-size: 12px; }

/* mapa: icone menor; hora da atualizacao no canto direito do cartao da lista */
.pinw .pin { width: 36px; height: 36px; } .pinw .pin .ico { width: 22px; height: 22px; }.item-veic { position: relative; } .item-veic .lado-upd { position: absolute; top: 7px; right: 10px; font-size: 12px; line-height: 1.2; text-align: right; color: var(--suave); }

/* lista lateral do mapa no mesmo layout dos cartoes do app */
.item-veic { align-items: flex-start; border-radius: 14px; padding: 10px 10px 9px 10px; }
.item-veic .tx { flex: 1; padding-right: 54px; } .item-veic .tx b { font-size: 13.5px; }
.item-veic .lado-hora { position: absolute; top: 8px; right: 10px; background: #eef1f6; color: var(--suave); border-radius: 9px; padding: 2px 8px; font-size: 12px; font-weight: 650; }
.item-veic .lado-atu { margin-top: 3px; font-size: 12px; }
.item-veic .lado-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; padding-top: 6px; border-top: 1px dashed var(--borda); }
.chip-v { padding: 2px 8px; border-radius: 8px; background: #eef1f6; color: #14213d; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip-v.lig { color: var(--verde); } .chip-v.des { color: var(--verm); } .chip-v.trava { background: #fef2f2; } .chip-v.livre { background: #f0fdf4; }

/* lista lateral do mapa: mesmo ritmo de espacos do cartao do app */
.item-veic { gap: 10px; align-items: flex-start; padding: 11px 12px 10px 12px; margin: 8px 8px; }
.item-veic > input[type=checkbox] { margin: 4px 0 0; flex: none; }
.item-veic .ico-tipo { width: 38px; height: 38px; flex: none; }
.item-veic .tx { display: flex; flex-direction: column; gap: 3px; padding-right: 0; flex: 1; min-width: 0; }
.item-veic .tx b { display: block; padding-right: 64px; line-height: 1.25; }
.item-veic .tx small { margin: 0; line-height: 1.35; }
.item-veic .lado-atu { margin-top: 0; }
.item-veic .lado-chips { margin-top: 5px; padding-top: 7px; gap: 5px; }
.item-veic .lado-hora { top: 10px; }
.chip-v.st { color: #fff; background: var(--cinza); font-weight: 700; }
.chip-v.st.mov { background: var(--verde); } .chip-v.st.par { background: var(--azul); } .chip-v.st.off { background: var(--verm); }

/* cartao da lateral do mapa: copia fiel do cartao do app (mesmas medidas) */
.lateral-dir .cw { --c: #94a3b8; --txt: #0f172a; --sf: #64748b; --bgc: #f1f5f9; display: block; position: relative; box-sizing: border-box; margin: 0 10px 9px; padding: 12px 12px 10px 16px; border-radius: 18px; background: #fff; box-shadow: 0 2px 8px rgba(15, 23, 42, .08); text-align: left; overflow: hidden; cursor: pointer; font: 13.5px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--txt); border: 0; transform: none; }
.lateral-dir .cw:first-of-type { margin-top: 8px; }
.lateral-dir .cw.mov { --c: #16a34a; } .lateral-dir .cw.par { --c: #0284c7; } .lateral-dir .cw.off { --c: #dc2626; } .lateral-dir .cw.sem { --c: #94a3b8; }
.lateral-dir .cw::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c); }
.lateral-dir .cw:hover { box-shadow: 0 4px 14px rgba(15, 23, 42, .16); }
.cw .l1 { display: flex; align-items: flex-start; gap: 10px; }
.cw .foto { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); box-shadow: inset 0 0 0 2px var(--c); }
.cw .foto .ico { width: 26px; height: 26px; fill: currentColor; display: block; } .cw .foto .ico .rd { stroke: var(--c); stroke-width: 1.4; } .cw .foto .ico .j { fill: var(--c); }
.cw .tx { min-width: 0; flex: 1; } .cw .placa { display: block; font-size: 15.5px; letter-spacing: .4px; font-weight: 700; color: var(--txt); } .cw .mod { color: var(--sf); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw .hora { flex: none; padding: 3px 9px; border-radius: 10px; background: var(--bgc); color: var(--sf); font-size: 12px; font-weight: 650; white-space: nowrap; }
.cw .ln { display: flex; gap: 7px; margin-top: 6px; font-size: 12px; color: var(--sf); line-height: 1.3; }
.cw .ln i { flex: none; font-style: normal; width: 16px; text-align: center; } .cw .ln span { min-width: 0; overflow-wrap: anywhere; } .cw .ln .tv { font-weight: 700; color: var(--txt); }
.cw .chips { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 9px; padding-top: 8px; border-top: 1px dashed #e2e8f0; }
.cw .chip { padding: 3px 9px; border-radius: 9px; background: var(--bgc); color: var(--txt); font-size: 12px; font-weight: 600; white-space: nowrap; }
.cw .chip.lig { color: #16a34a; } .cw .chip.des { color: #dc2626; } .cw .chip.trava { background: #fef2f2; } .cw .chip.livre { background: #f0fdf4; }
.cw .chip.st { display: inline-flex; align-items: center; gap: 5px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.cw .chip.st .pt { width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: inline-block; }
.cw .chips input[type=checkbox] { margin: 0 2px 0 auto; width: 18px; height: 18px; cursor: pointer; }
/* login com digital: tela azul igual a do aplicativo; "Entrar com senha" abre o formulario */
.gn-trava{position:fixed;inset:0;z-index:9999;background:linear-gradient(160deg,#1d4ed8,#0b1f5c);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;text-align:center}
.gn-trava img{width:84px;height:84px;border-radius:20px}
.gn-trava b{font-size:20px}
.gn-trava .gn-digital{width:min(320px,100%);background:#dcfce7;color:#14532d;border-radius:14px}
.gn-trava .gn-digital:hover{background:#c9f7da}
.gn-trava .gn-digmsg{color:#fff;margin:0;min-height:20px;font-size: 12px}
.gn-trava .gn-digmsg:empty{display:block}
.gn-senhabtn{width:min(320px,100%);padding:14px;border:0;border-radius:14px;background:#e0e7ff;color:#1e3a8a;font-size:13.5px;font-weight:700;cursor:pointer}

/* Trajeto percorrido: lista de deslocamentos + mapa */
.traj-grade { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 14px; margin-top: 14px; align-items: start; }
.traj-lista { max-height: 560px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.traj-card { text-align: left; background: var(--card); color: inherit; border: 1px solid var(--borda); border-left: 5px solid #1a9b4a; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 12px; cursor: pointer; display: block; width: 100%; }
.traj-card.traj-off { border-left-color: #d03a2f; }
.traj-card.sel { outline: 2px solid #1e6fd9; }
.traj-tempos { font-weight: 700; display: flex; gap: 10px; }
.traj-per, .traj-end { color: #51607a; margin-top: 2px; overflow-wrap: anywhere; }
.traj-km { margin-top: 3px; font-weight: 600; }
.traj-verde { color: #1a9b4a; } .traj-azul { color: #1e6fd9; } .traj-laranja { color: #d98a00; } .traj-vermelho { color: #d03a2f; }
.traj-mapa { min-height: 560px; }
.traj-pino { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; border: 2px solid #fff; }
.traj-pino-v { background: #1a9b4a; } .traj-pino-r { background: #d03a2f; }
@media (max-width: 860px) { .traj-grade { grid-template-columns: 1fr; } .traj-lista { max-height: 320px; } }

/* sino de alertas na barra superior */
#sino-wrap { position: relative; }
header #sino { position: relative; border: 0; font-size: 18px; padding: 4px 8px; line-height: 1; }
#sino-n { position: absolute; top: -4px; right: -2px; background: #dc2626; color: #fff; border-radius: 9px; font-size: 12px; line-height: 1; padding: 3px 5px; min-width: 16px; text-align: center; }
#sino.sino-novo { animation: sino-balanca 1.2s ease 2; }
@keyframes sino-balanca { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { #sino.sino-novo { animation: none; } }
.sino-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 320px; max-width: 92vw; background: #fff; color: #1b2438; border: 1px solid var(--borda); border-radius: 8px; box-shadow: 0 8px 24px #0004; padding: 6px; z-index: 1300; font-size: 13px; }
.sino-menu[hidden] { display: none; }
.sino-som { display: block; padding: 6px 8px; border-bottom: 1px solid var(--borda); cursor: pointer; }
.sino-item { display: flex; flex-direction: column; gap: 2px; padding: 7px 8px; color: inherit; text-decoration: none; border-radius: 6px; }
.sino-item:hover { background: #eef3fb; } .sino-item.nao-lido b { color: #b91c1c; } .sino-item small { opacity: .7; }
.sino-todos { display: block; text-align: center; padding: 8px; font-weight: 600; color: var(--azul); text-decoration: none; border-top: 1px solid var(--borda); margin-top: 4px; }
.sino-menu .aviso, .sino-menu .erro { padding: 8px; margin: 0; }

/* Rota: percurso colorido pela velocidade, barra de reproducao e grafico de velocidade */
.rota { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.rota-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.rota-k { background: var(--card); border: 1px solid var(--borda); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.rota-k span { font-size: 12px; color: var(--suave); text-transform: uppercase; letter-spacing: .04em; }
.rota-k strong { font-size: 16px; }
.rota-mapa { height: 460px; border-radius: 8px; border: 1px solid var(--borda); }
.rota-barra { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--borda); border-radius: 8px; padding: 8px 12px; }
.rota-play { width: 40px; height: 40px; padding: 0; border-radius: 50%; font-size: 16px; line-height: 40px; text-align: center; flex: none; }
.rota-vels { display: inline-flex; border: 1px solid var(--borda); border-radius: 6px; overflow: hidden; flex: none; }
.rota-vels button { background: #fff; color: var(--texto); border-radius: 0; padding: 6px 10px; border-right: 1px solid var(--borda); }
.rota-vels button:last-child { border-right: 0; } .rota-vels button.on { background: var(--azul); color: #fff; }
.rota-slider { flex: 1; padding: 0; min-width: 80px; }
.rota-op { display: flex; gap: 18px; flex-wrap: wrap; color: var(--suave); } .rota-op label { cursor: pointer; }
.rota-graf { width: 100%; height: 70px; background: var(--card); border: 1px solid var(--borda); border-radius: 8px; cursor: pointer; display: block; }
.rota-leg { display: flex; gap: 16px; flex-wrap: wrap; color: var(--suave); font-size: 12px; } .rota-leg i { display: inline-block; width: 18px; height: 5px; border-radius: 3px; vertical-align: middle; }
.rota-fim { background: #e8f5ec; border: 1px solid #9fd3b0; color: #14602f; border-radius: 8px; padding: 8px 12px; }
.rota-cur { width: 30px; height: 30px; border-radius: 50%; background: #14213d; border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .5); display: flex; align-items: center; justify-content: center; }
.rota-cur-seta { color: #fff; font-size: 14px; line-height: 1; display: block; }
.rota-seta { color: #14213d; font-size: 14px; line-height: 16px; text-align: center; width: 16px; height: 16px; display: block; text-shadow: 0 0 3px #fff; }
@media (max-width: 860px) { .rota-mapa { height: 340px; } .rota-barra { flex-wrap: wrap; } .rota-slider { flex-basis: 100%; order: 3; } }

/* cadastros: botoes de acao quebram em linhas dentro da celula (sem barra de rolagem lateral) */
table.larga td.acoes-cad { white-space: normal; min-width: 150px; max-width: 250px; }
table.larga td.acoes-cad button { margin: 2px 3px 2px 0; font-size: 12px; }

/* veiculo BLOQUEADO em destaque: selo vermelho cheio e cartao com borda e fundo vermelhos */
.cw .chip.trava { background: #d62828; color: #fff; font-weight: 800; padding: 4px 11px; font-size: 12px; box-shadow: 0 0 0 2px rgba(214,40,40,.25); }
.cw.bloq { border-left: 5px solid #d62828; background: #fff1f1; box-shadow: 0 0 0 1px rgba(214,40,40,.35); }


/* ======================================================================================================
   TEMA PROFISSIONAL (so visual): fonte, cores, sombras, tabelas, botoes, menu e celular.
   Fica no fim do arquivo de proposito: sobrepoe o que veio antes sem mudar nenhuma regra de negocio.
   ====================================================================================================== */
:root { --fundo: #f2f5fa; --card: #fff; --texto: #0f172a; --suave: #64748b; --azul: #2563eb; --azul2: #1d4ed8; --marinho: #0f172a; --lateral: #0f1a33; --lateral2: #1c2b52; --verde: #16a34a; --verm: #dc2626; --cinza: #94a3b8; --borda: #e2e8f0; --pbar: 56px; --larg: 244px; --sombra1: 0 1px 2px #0f172a0d, 0 1px 3px #0f172a14; --sombra2: 0 4px 16px #0f172a1a; --raio: 12px; }
body { font: 14px/1.45 Inter, "Segoe UI Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--fundo); color: var(--texto); -webkit-font-smoothing: antialiased; }
h1.titulo, .adm-corpo h1 { font-weight: 700; letter-spacing: -.01em; font-size: 20px; border-left: 0; padding-left: 0; }
h1.titulo::before { content: ""; display: inline-block; width: 4px; height: 20px; border-radius: 3px; background: var(--azul); margin-right: 10px; vertical-align: -3px; }

/* topo: mantido como era antes do tema */
/* menu lateral */
aside { background: linear-gradient(180deg, #111e3d, #0b1429); border-right: 1px solid #ffffff0d; }
aside nav { padding: 10px 8px 90px; gap: 2px; }
aside nav a, aside summary { border-radius: 9px; padding: 10px 12px; font-size: 13px; color: #c9d5ee; display: flex; align-items: center; gap: 10px; transition: background .15s, color .15s; }
aside nav a:hover, aside summary:hover { padding-left: 12px; background: #ffffff12; color: #fff; }
aside summary::after { margin-left: auto; float: none; }
aside nav a.ativo { background: linear-gradient(90deg, #2563eb, #1d4ed8); color: #fff; box-shadow: 0 2px 8px #2563eb66; }
aside details[open] { background: transparent; }
aside details a { padding-left: 38px; font-size: 12.5px; background: transparent; border-bottom: 0; }
body:not(.adm) aside nav a::before, body:not(.adm) aside summary::before { content: ""; width: 18px; height: 18px; flex: none; background: currentColor; opacity: .85; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
body:not(.adm) aside details a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .45; -webkit-mask: none; mask: none; }
body:not(.adm) aside nav a[href="/dashboard"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='9' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='5' rx='1.5'/%3E%3Crect x='14' y='12' width='7' height='9' rx='1.5'/%3E%3Crect x='3' y='16' width='7' height='5' rx='1.5'/%3E%3C/svg%3E"); }
body:not(.adm) aside nav a[href="/"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
body:not(.adm) aside nav a[href="/veiculos"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 17h14M6 17l1.5-6h9L18 17M3 17v-3l2-3M21 17v-3l-2-3'/%3E%3Ccircle cx='7.5' cy='17.5' r='1.5'/%3E%3Ccircle cx='16.5' cy='17.5' r='1.5'/%3E%3C/svg%3E"); }
body:not(.adm) aside nav a[href="/mosaico"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='8' height='8' rx='1.5'/%3E%3Crect x='13' y='3' width='8' height='8' rx='1.5'/%3E%3Crect x='3' y='13' width='8' height='8' rx='1.5'/%3E%3Crect x='13' y='13' width='8' height='8' rx='1.5'/%3E%3C/svg%3E"); }
body:not(.adm) aside details:nth-of-type(1) > summary { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); }
body:not(.adm) aside details:nth-of-type(2) > summary { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M7 15l4-4 3 3 5-6'/%3E%3C/svg%3E"); }
body:not(.adm) aside details:nth-of-type(3) > summary { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E"); }

/* cartoes e resumos */
.cx { border-radius: var(--raio); border: 1px solid var(--borda); border-top: 1px solid var(--borda); box-shadow: var(--sombra1); padding: 16px; }
.cx h2 { font-size: 14px; font-weight: 700; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi, .contadores.grande .chip { border-radius: var(--raio); border: 1px solid var(--borda); border-top-width: 1px; box-shadow: var(--sombra1); padding: 16px 18px; position: relative; overflow: hidden; }
.kpi::before, .contadores.grande .chip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cinza); }
.kpi.tot::before, .contadores.grande .chip.tot::before { background: var(--marinho); } .kpi.mov::before, .contadores.grande .chip.mov::before { background: var(--verde); } .kpi.par::before, .contadores.grande .chip.par::before { background: var(--azul); } .kpi.off::before, .contadores.grande .chip.off::before { background: var(--verm); } .kpi.sem::before, .contadores.grande .chip.sem::before { background: var(--cinza); }
.kpi:hover, .contadores.grande .chip:hover { box-shadow: var(--sombra2); transform: translateY(-2px); }
.kpi b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; } .kpi span { font-size: 12px; font-weight: 500; }
.contadores.grande { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.contadores.grande .chip { min-width: 0; border-color: var(--borda); }
.contadores.grande .chip.sel { border-color: var(--marinho); box-shadow: 0 0 0 2px var(--marinho), var(--sombra2); }
.contadores.grande .chip b { font-size: 26px; font-weight: 700; } .contadores.grande .chip small { font-size: 12px; font-weight: 500; }
.chip { border-radius: 999px; font-weight: 500; transition: background .15s, box-shadow .15s; }

/* tabelas */
.tabela-wrap, .adm-rolagem { border-radius: var(--raio); border: 1px solid var(--borda); box-shadow: var(--sombra1); background: #fff; }
th, .adm-tab th { background: #f8fafc; color: var(--suave); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--borda); padding: 12px 14px; }
td, .adm-tab td { font-size: 13px; padding: 12px 14px; border-bottom: 1px solid #edf1f7; }
tbody tr:nth-child(even) td { background: #fff; }
tr.clic:hover td, .adm-tab tbody tr:hover td, tbody tr:hover td { background: #f5f8ff; }
tbody tr:last-child td { border-bottom: 0; }
table.larga td, table.larga th { padding: 11px 10px; }
table.larga td { white-space: normal; vertical-align: middle; font-size: 12.5px; }
table.larga td b { white-space: nowrap; }
table.larga td:nth-child(6) { min-width: 190px; }
.selo { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; display: inline-block; }
.ico-tipo { box-shadow: none; }

/* botoes e campos */
button, .botao { border-radius: 9px; padding: 9px 16px; font-weight: 600; font-size: 13px; background: var(--azul); box-shadow: 0 1px 2px #2563eb40; }
button:hover:not(:disabled), .botao:hover { filter: none; background: var(--azul2); }
button.sec, a.botao.sec { background: #fff; color: var(--azul); border: 1px solid #cbd5e1; box-shadow: none; }
button.sec:hover:not(:disabled), a.botao.sec:hover { background: #f1f5ff; border-color: var(--azul); }
button.perigo { background: var(--verm); box-shadow: none; } button.perigo:hover:not(:disabled) { background: #b91c1c; }
button.peq { padding: 5px 11px; font-size: 12px; }
input, select, textarea { border-radius: 9px; border: 1px solid #cbd5e1; padding: 9px 12px; font-size: 13.5px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--azul); box-shadow: 0 0 0 3px #2563eb26; }
label { font-size: 12px; font-weight: 600; color: #475569; }
dialog.modal { border: 0; border-radius: 16px; box-shadow: 0 24px 60px #0f172a55; padding: 22px; }
dialog.modal::backdrop { background: #0f172a8c; backdrop-filter: blur(2px); }
dialog.modal h2 { font-size: 16px; font-weight: 700; }
.mapawrap { border-radius: var(--raio); border: 1px solid var(--borda); box-shadow: var(--sombra1); }
.lateral-dir .topo { background: #f8fafc; }

/* ---- celular (painel web): topo cabe inteiro, tabelas viram cartoes ---- */
@media (max-width: 860px) {
  header { gap: 10px; padding: 0 12px; } header .marca small { display: none; } header form { flex: none; } #sino-wrap { flex: none; }
  .contadores.grande { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .contadores.grande .chip { padding: 12px 14px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 560px) { #vivo { display: none; } header .marca-logo { max-height: 30px; } }
@media (max-width: 900px) {
  main { padding: 12px 12px 24px; }
  table.larga[data-rot], .adm-tab[data-rot] { display: block; overflow: visible; }
  table[data-rot] thead { display: none; }
  table[data-rot] tbody { display: block; }
  table[data-rot] tr { display: block; background: #fff; border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra1); margin: 0 0 12px; padding: 6px 4px; }
  table[data-rot] tbody tr:nth-child(even) td, table[data-rot] td { background: transparent; }
  table[data-rot] td { display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: right; border: 0; padding: 7px 12px; font-size: 13px; white-space: normal; }
  table[data-rot] td::before { content: attr(data-rot); flex: none; max-width: 42%; text-align: left; color: var(--suave); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
  table[data-rot] td[data-rot=""]::before { content: none; }
  table[data-rot] td:first-child { justify-content: flex-start; }
  table[data-rot] td.acoes { justify-content: flex-end; flex-wrap: wrap; } table[data-rot] td.acoes .botao { display: inline-block; margin: 2px; }
  .adm-rolagem { border: 0; box-shadow: none; background: transparent; overflow: visible; }
  .tabela-wrap:has(table[data-rot]) { border: 0; box-shadow: none; background: transparent; overflow: visible; }
}
body:not(.adm) aside nav a, body:not(.adm) aside summary { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.7 21a2 2 0 0 1-3.4 0'/%3E%3C/svg%3E"); }

/* Filtro Cliente do Mapa Geral */
.rot-cli{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:#475569;text-transform:uppercase;letter-spacing:.04em}
.rot-cli .sel-cli{flex:1;min-width:0;font-size:14px;font-weight:600;text-transform:none;letter-spacing:0;padding:8px 10px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:#0f172a}

/* ======================================================================================================
   RELATORIOS (so visual): barra de filtros em cartao, resumo em destaque, Eventos consolidados organizado.
   ====================================================================================================== */
#tela form.barra { background: #fff; border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra1); padding: 14px 16px; gap: 12px 16px; margin-bottom: 14px; }
#tela form.barra label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--suave); text-transform: uppercase; letter-spacing: .04em; }
#tela form.barra label input, #tela form.barra label select { text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 500; color: var(--texto); min-width: 130px; }
#tela form.barra button { align-self: flex-end; }
#tela p.aviso[role="status"] { display: inline-block; background: #eaf1ff; color: #1e40af; border: 1px solid #c9dafc; border-radius: 999px; padding: 5px 14px; font-size: 12.5px; font-weight: 600; margin: 0 0 14px; }
#tela p.aviso[role="status"]:empty { display: none; }
h3.sec-titulo { margin: 26px 0 10px; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
h3.sec-titulo::before { content: ""; width: 4px; height: 18px; border-radius: 3px; background: var(--azul); }
.pag { justify-content: center; padding: 6px 0; color: var(--suave); font-size: 12.5px; }

/* Eventos consolidados */
.consol-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 8px; }
.kpi.oci::before { background: #f59e0b; } .kpi.oci b { color: #d98a00; }
.kpi.par b { color: var(--azul); }
.consol-kpis .kpi b { font-size: 24px; }
.consol-dica { color: var(--suave); font-size: 12px; margin: 4px 2px 10px; }
table.consol { table-layout: fixed; width: 100%; }
table.consol th:nth-child(1) { width: 52px; }
table.consol th:nth-child(n+3) { width: 11%; }
table.consol th { white-space: normal; line-height: 1.25; padding: 10px 8px; vertical-align: bottom; }
table.consol td { white-space: nowrap; padding: 11px 8px; }
table.consol td:nth-child(6) { min-width: 0; }
table.consol td:nth-child(2) { white-space: normal; font-weight: 600; }
table.consol tr.consol-veic td { background: #fff; border-bottom: 1px solid var(--borda); }
table.consol tr.consol-veic td button { min-width: 30px; padding: 3px 0; border-radius: 8px; }
table.consol tfoot th { background: #0f172a; color: #fff; font-size: 12.5px; letter-spacing: .02em; padding: 13px 8px; }
table.consol tfoot th.traj-verde, table.consol tfoot th.traj-azul, table.consol tfoot th.traj-laranja, table.consol tfoot th.traj-vermelho { color: #fff; }
/* detalhe dia a dia: mesmas colunas do veiculo */
table.consol tr.consol-det td { background: #f3f6fc; border-bottom: 1px solid #e2e9f5; padding: 9px 8px; font-size: 12.5px; }
table.consol tr.consol-det td:first-child { border-left: 4px solid var(--azul); padding-left: 12px; }
table.consol tr.consol-det td.num { font-size: 12.5px; }
.dia-info, .dia-vel { white-space: normal !important; }
.dia-info { display: table-cell; }
.dia-campo { display: inline-flex; flex-direction: column; gap: 1px; margin: 0 16px 2px 0; vertical-align: top; }
.dia-campo small { font-size: 12px; font-weight: 700; color: var(--suave); text-transform: uppercase; letter-spacing: .04em; }
.dia-campo b { font-size: 12.5px; font-weight: 600; color: var(--texto); white-space: nowrap; }
.dia-vel { text-align: right; } .dia-vel .dia-campo { margin: 0 0 2px 14px; align-items: flex-end; }
td.traj-verde, td.traj-azul, td.traj-laranja, td.traj-vermelho { font-weight: 600; }
@media (max-width: 900px) {
  table.consol { table-layout: auto; }
  table.consol tr.consol-veic td { white-space: normal; }
  table.consol tr.consol-det td.dia-info, table.consol tr.consol-det td.dia-vel { text-align: left; }
  .dia-vel .dia-campo { margin: 0 16px 2px 0; align-items: flex-start; }
}

/* Demais relatorios: destaques leves por tipo de dado (so visual) */
.tabela-wrap table td.c-placa { font-weight: 700; color: #0f2a5c; }
.tabela-wrap table td.c-azul { color: var(--azul); font-weight: 600; }
.tabela-wrap table td.c-laranja { color: #d98a00; font-weight: 600; }
.tabela-wrap table td.c-vermelho { color: #c62828; font-weight: 700; }
.tabela-wrap table td.c-forte { font-weight: 700; color: var(--texto); }
.tabela-wrap table td.c-ponto { color: #475569; }
.tabela-wrap .pil { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid transparent; }
.tabela-wrap td.pil-ok .pil { background: #e6f6ec; color: #16783a; border-color: #bfe6cd; }
.tabela-wrap td.pil-nao .pil { background: #f1f4f9; color: #64748b; border-color: #e0e6ef; }
.tabela-wrap td.pil-aviso .pil { background: #fff4de; color: #a8650a; border-color: #f5dba4; }
.tabela-wrap td.pil-ruim .pil { background: #fdecec; color: #c62828; border-color: #f6c6c6; }
.tabela-wrap td.pil-info .pil { background: #eaf1ff; color: #1e40af; border-color: #c9dafc; }
.tabela-wrap thead th { background: linear-gradient(#f3f7fe, #e7eefb); color: #1b2a4e; border-bottom: 2px solid #cfdcf3; }
.tabela-wrap { border-radius: var(--raio); box-shadow: var(--sombra1); border: 1px solid var(--borda); background: #fff; }

/* Eventos consolidados: detalhe do dia em UMA linha (mesmas colunas; se faltar espaco, rola na horizontal) */
table.consol { table-layout: auto; width: 100%; min-width: 1380px; }
table.consol th:nth-child(1) { width: 52px; }
table.consol th:nth-child(n+3) { width: auto; }
table.consol th { white-space: nowrap; }
table.consol tr.consol-det td { white-space: nowrap; padding: 8px 10px; vertical-align: middle; }
.dia-info, .dia-vel { white-space: nowrap !important; }
.dia-campo { flex-direction: row; align-items: baseline; gap: 5px; margin: 0 14px 0 0; }
.dia-campo small { font-size: 12px; }
.dia-vel { text-align: right; } .dia-vel .dia-campo { margin: 0 0 0 14px; }
@media (max-width: 900px) {
  table.consol { min-width: 0; table-layout: auto; }
  table.consol tr.consol-det td.dia-info, table.consol tr.consol-det td.dia-vel { white-space: normal !important; text-align: left; }
  .dia-campo { margin: 0 14px 2px 0; } .dia-vel .dia-campo { margin: 0 14px 2px 0; }
}

/* Botoes do balao do mapa: iguais, alinhados e nitidos; Bloqueio fica nos Detalhes do veiculo */
.pop-ac { display: grid !important; grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; gap: 8px !important; padding: 10px 12px 12px !important; align-items: stretch; }
.pop-ac a.botao { width: auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 10px; margin: 0; border-radius: 9px; font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; box-sizing: border-box; border: 1px solid var(--azul); }
.pop-ac a.botao:not(.sec) { background: var(--azul); color: #fff !important; box-shadow: 0 1px 2px rgba(30,111,217,.35); }
.pop-ac a.botao.sec { background: #fff; color: var(--azul) !important; }
.pop-ac a.botao:hover { filter: brightness(.96); }
.det-acoes { grid-column: 1 / -1; margin-top: 6px; }
.detalhe .bloq-bt { background: #fff; color: #c62828; border: 1px solid #c62828; border-radius: 9px; padding: 8px 14px; font-weight: 600; font-size: 13px; cursor: pointer; }
.detalhe .bloq-bt:hover { background: #fdecec; }

.pin-rot .pin-bq { margin: 2px 0; padding: 1px 6px; border-radius: 6px; background: #d62828; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .5px; }

.linha-ativ { display: flex; align-items: center; gap: 8px; padding: 10px 6px; border-bottom: 1px solid var(--borda); flex-wrap: wrap; }
.ico-ativ { width: 30px; height: 30px; border-radius: 8px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.ico-ativ .jic { width: 18px; height: 18px; }
.grade-icones { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ico-op { width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.ico-op .jic { width: 22px; height: 22px; }
.ico-op.sel { outline: 3px solid var(--azul, #2563eb); }
.acoes-ativ { margin-left: auto; display: flex; gap: 6px; }
.acesso-mot { margin-top: 12px; display: grid; gap: 8px; }
