/* Super OS — visual base copiado do Sistema de OS da Micromídia (menu lateral, cartões, formulários, tabelas). */
:root {
  --azul: #1d4ed8;
  --azul-escuro: #1e3a8a;
  --lateral: #0b1220;
  --lateral-texto: #cbd5e1;
  --fundo: #f3f4f6;
  --card: #fff;
  --texto: #111827;
  --suave: #6b7280;
  --borda: #d1d5db;
  --linha: #e5e7eb;
  --erro: #b91c1c;
  --ok: #166534;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--fundo); color: var(--texto); }
a { color: var(--azul); }
h1 { font-size: 1.45rem; margin: 0 0 16px; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }

/* ===== Painel com menu lateral (no jeito do sistema atual) ===== */
body.painel { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.lateral { background: var(--lateral); color: var(--lateral-texto); padding: 18px 0 8px; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; }
.lateral .marca { color: #fff; font-weight: 800; font-size: 1.25rem; text-decoration: none; padding: 0 20px 18px; }
.menu-corpo { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.menu { display: flex; flex-direction: column; flex: 1; }
.abrir-menu { display: none; }
/* Item principal (com ícone) */
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; color: var(--lateral-texto); text-decoration: none;
  padding: 9px 16px 9px 17px; border: 0; border-left: 3px solid transparent; border-radius: 0; background: none;
  font: inherit; font-size: .95rem; text-align: left; cursor: pointer; white-space: nowrap; }
.menu-item > svg { flex: none; }
.menu-item > span:not(.seta) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.menu-item:hover { background: #111c33; color: #fff; }
.menu-item.ativo { background: #13213d; color: #fff; border-left-color: #60a5fa; }
.menu-item.grupo-ativo { color: #fff; }
/* Grupo com submenu: setinha > fechado, para baixo aberto */
.menu-grupo-sub { margin: 0; padding: 0; border: 0; }
.menu-grupo-sub > summary { list-style: none; }
.menu-grupo-sub > summary::-webkit-details-marker { display: none; }
.menu-grupo-sub > summary:focus-visible { outline: 2px solid #60a5fa; outline-offset: -2px; }
.menu-grupo-sub .seta { display: inline-flex; flex: none; transition: transform .15s; }
.menu-grupo-sub .seta svg { width: 14px; height: 14px; }
.menu-grupo-sub[open] > summary .seta { transform: rotate(90deg); }
.submenu-itens { display: flex; flex-direction: column; padding: 2px 0 6px; }
/* Subitem: um embaixo do outro, com recuo e tracinho */
.submenu-item { display: block; color: #a5b4fc; text-decoration: none; font-size: .9rem; padding: 6px 16px 6px 46px;
  border-left: 3px solid transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
.submenu-item::before { content: '–'; position: absolute; left: 30px; color: #64748b; }
.submenu-item:hover { background: #111c33; color: #fff; }
.submenu-item.ativo { background: #13213d; color: #fff; border-left-color: #60a5fa; font-weight: 600; }
.menu-grupo { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #64748b; padding: 18px 20px 6px; }
/* Rodapé: usuário, cargo, Minha conta e Sair */
.conta { border-top: 1px solid #1e293b; padding-top: 12px; margin-top: 12px; display: flex; flex-direction: column; }
.conta-nome { color: #fff; font-weight: 600; padding: 0 20px; }
.conta-perfil { font-size: .8rem; color: #94a3b8; padding: 0 20px 8px; }
.conta form { margin: 0; }
.conteudo { padding: 24px clamp(16px, 3vw, 32px) 48px; min-width: 0; }

/* Telas estreitas (celular): o menu fica no topo e abre pelo botão "Menu", sempre em lista vertical. */
@media (max-width: 820px) {
  body.painel { grid-template-columns: minmax(0, 1fr); }
  .lateral { position: static; height: auto; padding: 10px 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .lateral .marca { padding: 0 16px; flex: 1; }
  .abrir-menu { display: inline-block; margin-right: 12px; background: #1e293b; color: #fff; border: 0; padding: 6px 12px; border-radius: 6px; }
  .menu-corpo { display: none; width: 100%; flex-basis: 100%; margin-top: 8px; }
  .lateral.aberto .menu-corpo { display: flex; }
}
/* ===== Site público ===== */
.topo { background: var(--azul-escuro); color: #fff; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.topo .wrap { display: flex; align-items: center; min-height: 56px; }
.topo .marca { color: #fff; font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.site-conteudo { padding-block: 24px 48px; }

/* ===== Faixa de ambiente (fora de produção) ===== */
.faixa-ambiente { font-weight: 700; font-size: .85rem; letter-spacing: .02em; text-align: center; padding: 6px 12px; border-radius: 8px; margin-bottom: 16px; }
.faixa-teste { background: repeating-linear-gradient(-45deg, #fde047, #fde047 14px, #facc15 14px, #facc15 28px); color: #422006; border: 1px solid #ca8a04; }
.faixa-treino { background: #fee2e2; color: #7f1d1d; border: 2px solid #dc2626; }
.faixa-local { background: #e0e7ff; color: #3730a3; border: 1px solid #a5b4fc; }
body.site > .faixa-ambiente { border-radius: 0; margin: 0; }

/* ===== Componentes ===== */
.card { background: var(--card); border: 1px solid var(--borda); border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.estreito { max-width: 480px; margin-inline: auto; }
.medio { max-width: 820px; }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
.form small, .dica { font-weight: 400; color: var(--suave); font-size: .88rem; }
.grade { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
input, select, textarea { font: inherit; padding: 9px 11px; border: 1px solid var(--borda); border-radius: 7px; background: #fff; width: 100%; color: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid #93c5fd; border-color: var(--azul); }
input:disabled, select:disabled, textarea:disabled { background: #f3f4f6; color: #4b5563; }
button, .botao { font: inherit; font-weight: 600; background: var(--azul); color: #fff; border: 0; border-radius: 7px; padding: 10px 18px; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .botao:hover { background: var(--azul-escuro); }
button.secundario, .botao.secundario { background: #fff; color: var(--texto); border: 1px solid var(--borda); }
button.secundario:hover, .botao.secundario:hover { background: #f3f4f6; }
button.perigo { background: #b91c1c; }
button.perigo:hover { background: #7f1d1d; }
button.pequeno { padding: 6px 12px; font-size: .88rem; }
button.link { background: none; border: 0; padding: 0; color: var(--azul); font-weight: 400; cursor: pointer; }
.acoes { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.check { display: flex !important; flex-direction: row; align-items: center; gap: 8px; font-weight: 400 !important; }
.check input { width: auto; }
.opcoes { display: flex; gap: 20px; flex-wrap: wrap; }

.permissoes { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.permissoes fieldset { border: 1px solid var(--linha); border-radius: 8px; padding: 10px 14px 12px; margin: 0; }
.permissoes legend { font-weight: 700; font-size: .9rem; padding: 0 4px; }
.permissoes .check { padding: 3px 0; }

.barra { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.barra h1 { margin: 0; }
.filtros { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filtros select, .filtros input[type=date] { width: auto; }
.filtros input[type=search], .filtros input[name=q] { flex: 1; min-width: 180px; width: auto; }

.tabela { overflow-x: auto; background: var(--card); border: 1px solid var(--borda); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linha); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--suave); background: #f9fafb; white-space: nowrap; }
tbody tr:hover { background: #f9fafb; }
td small { color: var(--suave); }
.vazio { text-align: center; color: var(--suave); padding: 24px; }
.nowrap { white-space: nowrap; }

.paginacao { display: flex; gap: 16px; align-items: center; justify-content: flex-end; padding: 12px 0; font-size: .9rem; color: var(--suave); }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; background: #e5e7eb; color: #374151; }
.dados { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 16px 0 0; }
.dados dt { color: var(--suave); }
.dados dd { margin: 0; }

.flash { background: #dcfce7; border: 1px solid #86efac; color: var(--ok); padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.erro { color: var(--erro); font-weight: 600; margin: 0; }
.aviso { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; padding: 10px 14px; border-radius: 8px; }
.destaque { border-color: #86efac; background: #f0fdf4; }
.codigo { background: #0f172a; color: #e2e8f0; padding: 12px 14px; border-radius: 8px; overflow-x: auto; font-size: .88rem; white-space: pre; }

/* ===== Super OS ===== */
.badge.tag-ativo { background: #dcfce7; color: #166534; }
.badge.tag-inativo { background: #fee2e2; color: #991b1b; }
.badge.tag-info { background: #dbeafe; color: #1e40af; }
.bolinha { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; }
.inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.inline input { width: auto; min-width: 180px; }
code { background: #eef2f7; padding: 1px 6px; border-radius: 5px; font-size: .88em; }
h3 { font-size: 1rem; margin: 14px 0 6px; }
.lateral .marca { display: flex; flex-direction: column; gap: 2px; }
.lateral .marca small { color: #94a3b8; font-weight: 500; font-size: .8rem; }
.lateral .marca-nome { overflow: hidden; text-overflow: ellipsis; }
body.contexto-master .lateral { background: #1f1235; }
.nicho > summary { cursor: pointer; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; list-style: none; }
.nicho > summary::-webkit-details-marker { display: none; }
.nicho[open] > summary { margin-bottom: 8px; }
.nicho ul { margin: 0; padding-left: 18px; }
ul.recursos { list-style: none; padding: 0; margin: 0; }
ul.recursos li { padding: 2px 0; }
ul.recursos li.ligado { color: var(--ok); }
ul.recursos li.desligado { color: var(--suave); }
.detalhes div { font-size: .85rem; }
@media (max-width: 820px) {
  .inline input { min-width: 0; flex: 1; }
}

/* ===== Etapa 2: OS, clientes, veículos ===== */
.sem-borda { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.form { display: grid; gap: 14px; }
.badge.st-laudo { background: #fef3c7; color: #92400e; }
.badge.st-orcamento { background: #ffedd5; color: #9a3412; }
.badge.st-aprovacao { background: #e0e7ff; color: #3730a3; }
.badge.st-aprovado { background: #dbeafe; color: #1e40af; }
.badge.st-reprovado { background: #fee2e2; color: #991b1b; }
.badge.st-retirada { background: #dcfce7; color: #166534; }
.badge.st-encerrada { background: #e5e7eb; color: #374151; }
.resumo-os { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: start; }
.resumo-os > div { display: flex; flex-direction: column; gap: 2px; }
.resumo-os span { color: var(--suave); font-size: .9rem; }
.confirma-pin { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); background: #f8fafc; border: 1px dashed var(--borda); border-radius: 8px; padding: 10px 12px; }
.confirma-pin label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.linha-campos { display: flex; gap: 12px; flex-wrap: wrap; }
.linha-campos label { flex: 1; min-width: 200px; }
.campo-placa { text-transform: uppercase; font-weight: 700; letter-spacing: .06em; font-size: 1.1rem; }
.busca-nova-os input[type=search] { font-size: 1.2rem; text-transform: none; }
.lista-escolha { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.botao-escolha { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--borda); border-radius: 8px; text-decoration: none; color: inherit; }
.botao-escolha:hover { border-color: var(--azul); background: #f8fafc; }
.cliente-achado { padding: 10px 0; border-bottom: 1px solid var(--linha); }
.cliente-achado .acoes { margin-top: 6px; gap: 8px; }
.botao.pequeno { padding: 6px 12px; font-size: .88rem; }
.sugestoes { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: #f1f5f9; color: var(--texto); border: 1px solid var(--borda); border-radius: 999px; padding: 4px 12px; font-weight: 500; font-size: .85rem; }
.chip:hover { background: #e2e8f0; }
.galeria { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 12px; }
.galeria figure { margin: 0; }
.galeria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--borda); }
.galeria figcaption { font-size: .8rem; color: var(--suave); }
.fotos-enviar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fotos-enviar label.botao { cursor: pointer; }
.laudo-voz { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
tfoot td { background: #f9fafb; }
tfoot .total td { font-size: 1.05rem; }
.excluir-item summary { cursor: pointer; color: var(--erro); font-size: .85rem; }
.incluir-item, .desconto { margin-top: 16px; }
.linha-catalogo { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.linha-catalogo input[name=nome] { flex: 2; min-width: 180px; }
.linha-catalogo input[name=valor] { flex: 1; min-width: 100px; max-width: 160px; }
.lista-simples { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.lista-simples .det { display: inline-block; margin-right: 8px; color: var(--suave); }
.escolher-cliente { position: relative; }
.cliente-resultados { list-style: none; margin: 4px 0 0; padding: 6px; border: 1px solid var(--borda); border-radius: 8px; background: #fff; display: grid; gap: 2px; }
.cliente-resultados button { text-align: left; padding: 6px; width: 100%; }
.mais-campos summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }

/* ===== Etapa 3: entrada (checklist, desenho, assinatura), orçamento, pagamentos, WhatsApp ===== */
.ok { color: var(--ok); }
.pendente { color: #b45309; }
.entrada-resumo { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.entrada-resumo p { margin: 4px 0; }
.entrada-resumo.pendente { border-color: #fcd34d; background: #fffbeb; }
.checklist { display: grid; gap: 8px; }
.check-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--linha); }
.check-item > span { flex: 1; min-width: 180px; }
.opcoes-seg { display: inline-flex; border: 1px solid var(--borda); border-radius: 8px; overflow: hidden; }
.form .opcoes-seg label.seg { display: block; margin: 0; font-weight: 500; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; padding: 8px 12px; cursor: pointer; font-size: .9rem; border-left: 1px solid var(--borda); background: #fff; }
.seg:first-child span { border-left: 0; }
.seg input:focus-visible + span { outline: 2px solid #93c5fd; outline-offset: -2px; }
.seg-sim input:checked + span { background: #dcfce7; color: #166534; font-weight: 700; }
.seg-nao input:checked + span { background: #fee2e2; color: #991b1b; font-weight: 700; }
.seg-nv input:checked + span { background: #e5e7eb; color: #374151; font-weight: 700; }
.avarias.com-desenho { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 20px; align-items: start; }
@media (max-width: 640px) { .avarias.com-desenho { grid-template-columns: 1fr; } .avarias .desenho { max-width: 200px; margin: 0 auto; } }
.desenho-veiculo { width: 100%; height: auto; display: block; }
.desenho-veiculo .carroceria { fill: #f8fafc; stroke: #334155; stroke-width: 2; }
.desenho-veiculo .zona > * { fill: #e2e8f0; stroke: #64748b; stroke-width: 1.2; cursor: pointer; transition: fill .15s; }
.desenho-veiculo .zona:hover > *, .desenho-veiculo .zona:focus > * { fill: #bfdbfe; outline: none; }
.desenho-veiculo .zona.marcada > * { fill: #fca5a5; stroke: #b91c1c; stroke-width: 2; }
.desenho-veiculo .frente { font-size: 9px; fill: #475569; font-weight: 700; letter-spacing: .1em; }
.avarias-lista { display: grid; gap: 8px; }
.avaria { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; padding: 6px 8px; border-radius: 8px; }
.avaria.marcada { background: #fef2f2; }
@media (max-width: 640px) { .avaria { grid-template-columns: 1fr auto; } .avaria > label:first-child { grid-column: 1 / -1; } }
.avaria:not(.marcada) .avaria-obs { opacity: .6; }
/* Fotos das avarias (etapa 9, todos os nichos): parte do veículo, legenda e "sai no comprovante" em cada foto */
.fotos-da-parte { margin-left: 6px; font-weight: 400; text-decoration: none; }
.foto-parte { white-space: nowrap; }
.galeria-entrada { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.foto-dados { display: grid; gap: 6px; margin-top: 6px; font-size: .85rem; }
.foto-dados select, .foto-dados input:not([type=checkbox]) { padding: 6px 8px; font-size: .85rem; }
.foto-dados label.pequeno { display: flex; flex-direction: row; gap: 6px; align-items: center; font-size: .82rem; font-weight: 400; }
.foto-dados input[type=checkbox] { width: auto; margin: 0; flex: none; }
.assinatura-tela { width: 100%; max-width: 700px; aspect-ratio: 700 / 260; height: auto; border: 2px dashed var(--borda); border-radius: 10px; background: #fff; touch-action: none; display: block; }
.termo-entrada { font-size: .92rem; margin: 0 0 8px; }
.assinatura-img { max-height: 120px; max-width: 100%; background: #fff; border: 1px solid var(--borda); border-radius: 8px; padding: 4px; }
.enviar-orcamento, .resposta-manual, .registrar-pagamento { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--linha); }
.resposta-manual summary, .registrar-pagamento summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.acoes-linha { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lista-mensagens { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lista-mensagens > li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--linha); }
.lista-mensagens > li > div:first-child { flex: 1; min-width: 220px; }
.texto-msg { margin: 4px 0; white-space: pre-line; background: #f0fdf4; border-radius: 8px; padding: 8px 10px; font-size: .92rem; }
.opcoes-lista { display: grid; gap: 6px; }
fieldset.modelo { border: 1px solid var(--linha); border-radius: 8px; padding: 10px 14px; margin: 0; display: grid; gap: 6px; }
fieldset.modelo legend { font-weight: 700; padding: 0 4px; }
img.qr { width: 240px; height: 240px; image-rendering: pixelated; border: 1px solid var(--borda); border-radius: 8px; }
.numeros { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 6px; }
.numeros .card { display: flex; flex-direction: column; gap: 2px; margin-bottom: 0; }
.numeros strong { font-size: 1.5rem; }
/* Orçamento para o cliente (celular) */
.orcamento-cliente { max-width: 720px; margin-inline: auto; }
.orcamento-cliente .aprovar { margin: 20px 0 8px; }
button.grande { width: 100%; font-size: 1.15rem; padding: 14px; background: #15803d; }
button.grande:hover { background: #166534; }
.recusar-orcamento summary { cursor: pointer; color: var(--suave); margin: 8px 0; }

/* ===== Etapa 4: leitura da placa por foto ===== */
.ler-placa { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.botao-camera { display: inline-flex; align-items: center; gap: 8px; font-size: 1.05rem; padding: 12px 20px; }
.botao-camera.ocupado { opacity: .6; pointer-events: none; }
.placa-lida { font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; font-size: 1.1em; }
@media (max-width: 600px) { .botao-camera { width: 100%; justify-content: center; } }

/* ===== Etapa 5: lembretes de revisão ===== */
.lista-lembretes { list-style: none; margin: 0; padding: 0; }
.lista-lembretes li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--borda); }
.lista-lembretes li:last-child { border-bottom: 0; }
.cancelar-lembrete summary { cursor: pointer; color: var(--suave); font-size: .9rem; }
.cancelar-lembrete[open] { flex-basis: 100%; }
.revisao-campos { display: inline-flex; align-items: center; gap: 4px; font-size: .88rem; color: var(--suave); }
.revisao-campos input.curto { width: 4.5em; }
.revisao-campos input.curto-km { width: 6.5em; }
.lembretes-os { list-style: none; margin: 0 0 12px; padding: 0; }
.lembretes-os li { padding: 6px 0; border-bottom: 1px solid var(--borda); }
.lembretes-os li .dica { display: block; }

/* ===== Etapa 6: diagnóstico com IA e códigos OBD2 ===== */
.codigos-obd { font-family: ui-monospace, Consolas, monospace; font-weight: 600; letter-spacing: .03em; background: #f1f5f9; border-radius: 5px; padding: 1px 6px; margin: 0 4px; }
.codigos-obd.grande { font-size: 1.1em; margin-left: 0; }
a.codigos-obd { text-decoration: none; }
.diagnostico-os { border: 1px dashed var(--borda); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.diagnostico-os .lista-simples { margin: 8px 0 0; }
.hipoteses { padding-left: 1.4em; }
.hipoteses li { margin-bottom: 14px; }
.hipoteses p { margin: 4px 0; }
.hipoteses .confirmar { background: #f8fafc; border-left: 3px solid var(--azul); padding: 6px 10px; }
.badge.chance-alta { background: #fee2e2; color: #991b1b; }
.badge.chance-media { background: #fef3c7; color: #92400e; }
.badge.chance-baixa { background: #e5e7eb; color: #374151; }
.lista-codigos { list-style: none; padding: 0; }
.lista-codigos li { margin-bottom: 6px; }
.pre-linha { white-space: pre-line; }
.nota-obd { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 12px; }

/* ===== Etapa 7: ler OBD pelo Bluetooth (ELM327 BLE) ou pelo simulador ===== */
.obd .acoes { flex-wrap: wrap; }
.obd-log pre { max-height: 260px; overflow: auto; background: #0f172a; color: #e2e8f0; border-radius: 8px; padding: 8px 10px; font-size: .8rem; white-space: pre-wrap; }
.obd-tabela td { padding: 6px 10px; border-bottom: 1px solid var(--borda); }
.obd-tabela td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.obd-apagar { border-top: 1px dashed var(--borda); margin-top: 16px; padding-top: 6px; }
.obd-apagar .perigo { margin-right: 8px; }
.obd-luz-acesa { color: #b91c1c; }

/* ===== Etapa 8: relatório do scanner importado ===== */
.badge.status-scanner-gravado { background: #fee2e2; color: #991b1b; }
.badge.status-scanner-pendente { background: #fef3c7; color: #92400e; }
.badge.status-scanner-permanente { background: #ede9fe; color: #5b21b6; }
.badge.status-scanner-historico, .badge.status-scanner-desconhecido { background: #e5e7eb; color: #374151; }
#scanner-escolhidos:empty { display: none; }
