/* GRC + FROTA · App do checklist do motorista (celular).
   Mesmas cores do sistema principal: faixa preta com a marca, "+" verde neon, conteúdo claro e botões no verde do sistema. */
:root {
  --preto: #08090a; --neon: #39ff14;
  --verde: #00a86b; --verde-claro: #0cc07f; --verde-borda: #00985f;
  --hover: #dff7ea; --hover-borda: #34c98a; --hover-texto: #046c4a;
  --vermelho: #e5484d; --vermelho-texto: #b42323; --vermelho-fundo: #fdecec; --vermelho-borda: #f0b4b4;
  --fundo: #eef2f1; --linha: #dbe2de; --linha-forte: #b9c5c0;
  --texto: #0e1512; --texto-2: #36413d; --mudo: #5f6b66;
  --sombra: 0 1px 2px rgba(14, 21, 18, .08), 0 8px 20px -8px rgba(14, 21, 18, .16);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font: 15px/1.5 Manrope, system-ui, sans-serif; color: var(--texto); background: var(--fundo); min-height: 100vh; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button { touch-action: manipulation; }

/* Marca (igual ao sistema principal) */
.marca { font-family: Orbitron, sans-serif; font-weight: 700; font-size: 21px; letter-spacing: .05em; line-height: 1; color: #fff; white-space: nowrap; }
.marca span { color: var(--neon); text-shadow: 0 0 14px rgba(57, 255, 20, .45); }
.marca em { font-style: normal; font-weight: 700; font-size: .36em; letter-spacing: .3em; margin-left: .6em; padding: .42em .5em .42em .8em; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 4px; vertical-align: .5em; }

/* Faixa preta do topo */
.topo { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 14px 12px 16px; background: var(--preto); color: #fff; box-shadow: 0 10px 24px -14px rgba(8, 9, 10, .6); }
.topo-rotulo { margin-right: auto; padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(57, 255, 20, .45); color: var(--neon); font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.sair { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .2); background: #121416; color: #e5e7eb; font-size: 13px; font-weight: 700; cursor: pointer; }
.sair:active { background: #1d2024; }
body[data-tela="tela-entrar"] .topo { display: none; }

/* Telas */
.tela { max-width: 620px; margin: 0 auto; padding: 16px 14px calc(30px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }
.cartao { background: #fff; border-radius: 14px; border: 1px solid var(--linha-forte); box-shadow: var(--sombra); padding: 18px; }
.sobre { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--verde); }
.sobre::before { content: ""; width: 16px; height: 2px; background: currentColor; }
h1 { margin: 4px 0 4px; font-size: 24px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.apoio { margin: 0; color: var(--mudo); font-size: 14px; }
form { display: grid; gap: 14px; margin-top: 16px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--texto-2); }
input[type=text], input[type=password], textarea, select { width: 100%; border: 1.5px solid var(--linha-forte); border-radius: 10px; padding: 12px 13px; font-size: 16px; color: var(--texto); background: #fff; transition: border-color .15s, box-shadow .15s; }
select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%235f6b66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
input::placeholder, textarea::placeholder { color: #9aa5a0; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(0, 168, 107, .16); }
.dados label { margin-top: 16px; }
.botao-grande { width: 100%; border: 1px solid var(--verde-borda); border-radius: 12px; padding: 15px; font-size: 16px; font-weight: 800; color: #fff; cursor: pointer;
  background: linear-gradient(var(--verde-claro), var(--verde)); box-shadow: 0 2px 6px -1px rgba(0, 168, 107, .5); transition: filter .15s, transform .1s; }
.botao-grande:active { transform: translateY(1px); }
.botao-grande:disabled { opacity: .5; cursor: default; box-shadow: none; }
.erro { margin: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--vermelho-borda); background: var(--vermelho-fundo); color: var(--vermelho-texto); font-weight: 700; font-size: 13.5px; }
.rodape { text-align: center; color: var(--mudo); font-size: 13px; margin: 0; padding: 0 12px; }

/* Entrar: vitrine preta com a marca + cartão do formulário */
.tela-login { max-width: none; padding: 0 0 calc(30px + env(safe-area-inset-bottom)); gap: 18px; }
.vitrine { position: relative; overflow: hidden; isolation: isolate; display: grid; justify-items: center; gap: 10px; text-align: center;
  padding: calc(56px + env(safe-area-inset-top)) 24px 84px; background: var(--preto); color: #fff; }
.vitrine .grade { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000, transparent 75%); }
.vitrine::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; left: 50%; bottom: -260px; transform: translateX(-50%); background: radial-gradient(circle, rgba(57, 255, 20, .2), transparent 65%); }
.marca-grande { font-size: 36px; margin-bottom: 8px; }
.vitrine-titulo { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--neon); }
.vitrine-titulo::before, .vitrine-titulo::after { content: ""; width: 18px; height: 2px; background: var(--neon); }
.vitrine-texto { margin: 0; max-width: 300px; color: #c3c8cf; font-size: 14px; }
.cartao.login { width: min(460px, calc(100% - 28px)); margin: -58px auto 0; padding: 22px 20px 20px; position: relative; }

/* Item do checklist */
.item { padding: 0; overflow: hidden; transition: border-color .15s; }
.item header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--linha); }
.item .num { flex: none; min-width: 36px; height: 36px; padding: 0 7px; border-radius: 10px; background: var(--preto); color: var(--neon); display: grid; place-items: center; font-weight: 800; font-size: 13.5px; }
.item h2 { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.item header small { display: block; font-size: 12.5px; font-weight: 600; color: var(--mudo); margin-top: 1px; }
.item .ok-check { margin-left: auto; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--verde); color: #fff; display: none; place-items: center; font-weight: 900; font-size: 14px; }
.item.tem-foto { border-color: var(--hover-borda); }
.item.tem-foto .ok-check { display: grid; }
.item.problema { border-color: var(--vermelho-borda); }
.item.problema header { background: #fff7f7; }
.item.problema .num { background: var(--vermelho); color: #fff; }
.item.problema .ok-check { background: var(--vermelho); }
.item .corpo { padding: 14px 16px 16px; display: grid; gap: 12px; }
.botoes-foto { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.botoes-foto label { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 8px; border: 1.5px dashed var(--linha-forte); border-radius: 10px; background: #f6f8f7;
  color: var(--texto); font-weight: 800; font-size: 14.5px; cursor: pointer; transition: background .15s, border-color .15s; }
.botoes-foto label:active { transform: scale(.98); background: var(--hover); border-color: var(--hover-borda); }
.botoes-foto input { display: none; }
.botoes-foto svg { width: 20px; height: 20px; fill: none; stroke: var(--verde); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.previa { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--linha); background: #e7ece9; }
.previa img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.previa span { position: absolute; left: 8px; bottom: 8px; background: rgba(8, 9, 10, .78); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.situacao { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.situacao button { padding: 11px; border-radius: 10px; border: 1.5px solid var(--linha-forte); background: #fff; font-weight: 800; font-size: 14px; color: var(--mudo); cursor: pointer; }
.situacao button.ativo.sim { background: var(--hover); border-color: var(--hover-borda); color: var(--hover-texto); }
.situacao button.ativo.nao { background: var(--vermelho-fundo); border-color: var(--vermelho); color: var(--vermelho-texto); }
.obrig { font-size: 12px; font-weight: 700; color: var(--vermelho-texto); }
.item.tem-foto .obrig { display: none; }

/* Envio */
.progresso { height: 8px; border-radius: 999px; background: #e3e9e6; overflow: hidden; }
.progresso i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--verde-claro), var(--verde)); transition: width .3s; }
.envio { display: grid; gap: 12px; position: sticky; bottom: 10px; border-color: var(--linha-forte); box-shadow: 0 -2px 6px rgba(14, 21, 18, .04), 0 16px 32px -10px rgba(14, 21, 18, .28); }
.envio #faltam { font-weight: 700; color: var(--texto-2); }

/* Enviado */
.feito { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 32px 18px 22px; }
.selo-ok { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; font-weight: 900; color: var(--neon);
  background: var(--preto); box-shadow: 0 0 0 6px rgba(57, 255, 20, .14), 0 0 24px rgba(57, 255, 20, .35); margin-bottom: 6px; }
.feito .botao-grande { margin-top: 10px; }

/* Avisos */
.avisos { position: fixed; left: 12px; right: 12px; top: calc(72px + env(safe-area-inset-top)); z-index: 30; display: grid; gap: 8px; }
.aviso-flutuante { padding: 12px 14px; border-radius: 12px; background: #0e1512; color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); border-left: 5px solid var(--neon); }
.aviso-flutuante.erro { border-left-color: #ff5b5b; background: #3b0f0f; }
.aviso-flutuante.saindo { opacity: 0; transition: .3s; }

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

/* ---------- Checklist em linhas (OK / Problema) e fotos do veículo ---------- */
.grupo, .fotos-veiculo { padding: 0; overflow: hidden; }
.grupo > header, .fotos-veiculo > header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--preto); color: #fff; }
.grupo > header .num, .fotos-veiculo > header .num { flex: none; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px; display: grid; place-items: center; background: var(--neon); color: #021918; font-weight: 800; font-size: 13px; }
.grupo > header h2, .fotos-veiculo > header h2 { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.2; flex: 1; }
.todos-ok { flex: none; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.todos-ok:active { background: rgba(57,255,20,.18); border-color: var(--neon); }
.linhas { display: grid; }
.linha-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; padding: 10px 14px; border-bottom: 1px solid var(--linha); }
.linha-item:last-child { border-bottom: 0; }
.linha-item.problema { background: var(--vermelho-fundo); }
.nome-item { font-size: 14.5px; font-weight: 700; color: var(--texto); }
.linha-item:not(.respondido) .nome-item::after { content: " •"; color: var(--vermelho); }
.sim-nao { display: inline-flex; border: 1.5px solid var(--linha-forte); border-radius: 10px; overflow: hidden; }
.sim-nao button { border: 0; background: #fff; padding: 9px 11px; font: inherit; font-size: 13px; font-weight: 800; color: var(--mudo); cursor: pointer; white-space: nowrap; }
.sim-nao button + button { border-left: 1.5px solid var(--linha-forte); }
.sim-nao button.sim.ativo { background: var(--verde); color: #fff; }
.sim-nao button.nao.ativo { background: var(--vermelho); color: #fff; }
.linha-item .obs { grid-column: 1 / -1; width: 100%; padding: 10px 11px; border: 1.5px solid var(--vermelho-borda); border-radius: 10px; font: inherit; font-size: 15px; background: #fff; }
.fotos-veiculo > .apoio { padding: 10px 14px 0; }
.grade-fotos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 12px 14px; }
.foto-slot { min-width: 0; display: grid; gap: 8px; align-content: start; padding: 10px; border: 1.5px dashed var(--linha-forte); border-radius: 12px; background: #fbfcfb; }
.foto-slot.tem-foto { border-style: solid; border-color: var(--hover-borda); background: var(--hover); }
.foto-slot strong { font-size: 13.5px; }
.foto-slot .botoes-foto { grid-template-columns: 1fr; gap: 6px; }
.foto-slot .botoes-foto label { padding: 9px 4px; font-size: 13px; min-width: 0; }
.linha-item { min-width: 0; }
.sim-nao button { padding: 9px 9px; }
.foto-slot .previa img { max-height: 140px; }
@media (max-width: 360px) { .sim-nao button { padding: 8px 8px; font-size: 12px; } .grade-fotos { grid-template-columns: 1fr; } }

.todos-ok.desfazer { background: #fff; color: var(--preto); border-color: #fff; }


/* ---------- Placa: digitar ou escolher ---------- */
.campo-placa { display: grid; gap: 6px; margin-top: 14px; }
.campo-placa > label { font-size: 13px; font-weight: 700; color: var(--mudo); }
.busca-placa { position: relative; }
.busca-placa input { width: 100%; padding: 13px 48px 13px 13px; border: 1.5px solid var(--linha-forte); border-radius: 12px; font: inherit; font-size: 16px; font-weight: 700; color: var(--texto); background: #fff; }
.busca-placa input:focus { outline: 0; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(0, 168, 107, .18); }
.abrir-lista { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 42px; border: 0; background: none; border-radius: 9px; display: grid; place-items: center; color: var(--mudo); cursor: pointer; }
.abrir-lista svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lista-placas { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--linha-forte);
  border-radius: 12px; box-shadow: 0 16px 34px -12px rgba(14, 21, 18, .35); max-height: 46vh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.lista-placas li { display: flex; align-items: baseline; gap: 10px; padding: 13px 12px; border-radius: 9px; cursor: pointer; }
.lista-placas li strong { font-size: 16px; letter-spacing: .04em; white-space: nowrap; flex-shrink: 0; }
.lista-placas li span { font-size: 13.5px; color: var(--mudo); }
.lista-placas li .tipo-veic { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 6px; background: #eef2f6; color: #1f2937; font-size: 12px; font-weight: 700; }
.lista-placas li.atual { background: var(--hover); }
.lista-placas li:active { background: var(--hover); }
.lista-placas li.vazio { color: var(--mudo); cursor: default; }

/* ---------- Fluidez no celular (iPhone e Android) ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button, label, .linha-item, .lista-placas li { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
input, textarea, select { font-size: 16px !important; }   /* evita o zoom automático do iPhone ao tocar no campo */
.envio { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }

.nome-item .crit { font-style: normal; }
.linha-item.critico .nome-item { color: #0e1512; }

