/* Módulo Automotivo (pátio, entrada, TV). Arquivo próprio: carregado no base.html depois do app.css. */
:root{--m-automotivo:#0f8f8a}
.mod-automotivo.on,.mod-automotivo.ver,body.menu-recolhido:not(.menu-flutuante) .mod-automotivo.on{background:var(--m-automotivo)}
.lateral[data-modulo="automotivo"] [data-painel="automotivo"]{display:flex}
.t-automotivo{color:#5fe0d6}
.mod-card.cor-automotivo{--mc:var(--m-automotivo)}

/* placa no estilo Mercosul */
.auto-placa{display:inline-block;font:800 15px/1 var(--fonte,system-ui),monospace;letter-spacing:.08em;padding:5px 9px 4px;border:2px solid #1c2a44;
  border-top:6px solid #1f4fb8;border-radius:5px;background:#fff;color:#111;white-space:nowrap}
.auto-placa.grande{font-size:34px;padding:8px 16px 6px;border-top-width:10px}
.auto-placa-input{font:800 26px/1.1 var(--fonte,system-ui),monospace!important;letter-spacing:.12em;text-transform:uppercase;text-align:center;max-width:260px}

/* pátio */
.auto-patio .kcol{min-width:230px}
.auto-col-orcamento header{border-top:3px solid #9aa6bb}
.auto-col-aguardando header{border-top:3px solid #e0a100}
.auto-col-execucao header{border-top:3px solid #2f6fe4}
.auto-col-pronto header{border-top:3px solid #1e9a55}
.auto-card a{display:flex;flex-direction:column;gap:4px;color:inherit;text-decoration:none}
.auto-card .auto-placa{align-self:flex-start;margin-bottom:2px}
.auto-card-rodape{display:flex;justify-content:space-between;align-items:center;margin-top:4px}

/* entrada do veículo (celular primeiro) */
.label-like{display:block;font-size:13px;font-weight:600;margin-bottom:6px}
.auto-sub{font-size:15px;margin:18px 0 8px}
.auto-opcoes{display:flex;flex-wrap:wrap;gap:6px}
.auto-op,.auto-sv,.auto-av>label{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid var(--ln2,#d5dbe6);
  border-radius:10px;background:var(--card,#fff);cursor:pointer;font-weight:500}
.auto-op:has(input:checked),.auto-sv:has(input:checked),.auto-av:has(>label input:checked){border-color:var(--pri,#2f6fe4);background:var(--pri-bg,#eaf1ff)}
.auto-avarias{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px}
.auto-av{display:flex;flex-direction:column;gap:6px}
.auto-av-det{display:grid;gap:6px;padding:0 4px 6px}
.auto-av-det[hidden]{display:none}
.auto-servicos{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}
.auto-sv{justify-content:space-between}
.auto-total{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding:12px 14px;border-radius:10px;background:var(--hover,#f4f6fa);font-size:15px}
.auto-total b{font-size:20px}
.auto-previas{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.auto-previas img{width:84px;height:84px;object-fit:cover;border-radius:8px;border:1px solid var(--ln,#e3e8f0)}
.auto-entrada .auto-acoes,.auto-acoes.fixo{position:sticky;bottom:0;z-index:5;display:flex;gap:8px;flex-wrap:wrap;padding:12px;margin:12px -4px 0;
  background:var(--card,#fff);border-top:1px solid var(--ln,#e3e8f0)}
.auto-acoes{display:flex;gap:8px;flex-wrap:wrap;align-items:center}

/* ficha do atendimento */
.auto-cab h1{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.auto-entrega{border-left:4px solid #1e9a55}
.auto-total-grande{font-size:24px;font-weight:800}
.auto-valor{max-width:120px;text-align:right}
.auto-add{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.auto-add select,.auto-add input:not(.auto-valor){flex:1;min-width:180px}
.auto-galeria{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.auto-galeria figure{margin:0;position:relative}
.auto-galeria img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px;display:block;border:1px solid var(--ln,#e3e8f0)}
.auto-galeria figcaption{font-size:12px;color:var(--tx2,#5b6577);margin-top:3px}
.auto-foto-form{display:flex;flex-wrap:wrap;gap:8px;align-items:end;margin-top:12px}

/* painel da TV */
body.auto-tv-corpo{background:#071a36}
body.auto-tv-corpo .lateral,body.auto-tv-corpo .topo{display:none}
.auto-tv{color:#fff;padding:20px 28px;min-height:100vh;box-sizing:border-box}
.auto-tv header{display:flex;justify-content:space-between;font-size:26px;margin-bottom:18px}
.auto-tv h1{font-size:40px;margin:0 0 16px;color:#7ff0a8}
.auto-tv h2{font-size:26px;margin:28px 0 10px;color:#9fc0ff}
.auto-tv-grade{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.auto-tv-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:18px;border-radius:14px;background:#0e2a55}
.auto-tv-modelo{font-size:24px;font-weight:600}
.auto-tv-nome{font-size:20px;color:#b8c4dc}
.auto-tv-vazio{font-size:24px;color:#b8c4dc}
.auto-tv-lista{display:flex;flex-wrap:wrap;gap:10px 24px;font-size:22px}

@media (max-width:640px){
  .auto-avarias,.auto-servicos{grid-template-columns:1fr}
  .auto-placa-input{max-width:none}
}

/* painel de resultados: barras dos 12 meses */
.auto-barras{display:flex;align-items:flex-end;gap:6px;height:190px;padding-top:8px}
.auto-barra{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;min-width:0}
.auto-barra i{display:block;width:100%;max-width:46px;background:var(--pri,#2563eb);border-radius:4px 4px 0 0;opacity:.85}
.auto-barra .v{font-size:11px;color:var(--tx2);white-space:nowrap;margin-bottom:3px}
.auto-barra .m{font-size:11px;color:var(--tx2);margin-top:4px}
@media (max-width:600px){.auto-barra .v{display:none}}

/* ================================================================ AGNEON Garage: tema próprio do Automotivo
   Preto e grafite com vermelho de destaque. O vermelho fica no logo, no botão principal e no menu ativo;
   erro e cancelado usam um tom rosado diferente para não se confundirem com o destaque. */
body.tema-garage{
  --navy:#0b0b0b; --navy-2:#141414;
  --bg:#101010; --card:#1a1a1a; --tx:#f1f1f1; --tx2:#a7a7a7; --tx3:#d4d4d4; --ln:#2a2a2a; --ln2:#363636; --linha:#232323;
  --pri:#e10600; --pri-tx:#fff; --pri-bg:#3a0f0d; --pri-esc:#ff4a3d;
  --ok:#5fd394; --ok-bg:#12301f; --er:#ff8fb1; --er-bg:#3b1626; --av:#ffc861; --av-bg:#3a2d10;
  --mut:#262626; --hover:#202020; --sh:0 1px 2px rgba(0,0,0,.4); --sh-alto:0 12px 32px rgba(0,0,0,.6);
  --m-automotivo:#e10600; color-scheme:dark;
}
body.tema-garage .app{background:linear-gradient(90deg,#0b0b0b var(--lat),transparent var(--lat))}
body.tema-garage .lateral{background:#0b0b0b}
body.tema-garage .trilho{background:#000;border-right-color:#1d1d1d}
body.tema-garage .mod-titulo.t-automotivo{color:#fff;letter-spacing:.02em}
body.tema-garage .lateral .it.on{background:#e10600;color:#fff;box-shadow:none}
body.tema-garage .lateral .it:hover:not(.on){background:#1e1e1e}
body.tema-garage .mod.mod-automotivo.on{background:#e10600;color:#fff}
body.tema-garage .logo-garage img{width:190px;height:auto;display:block}
body.tema-garage .topo{border-bottom-color:#232323}
body.tema-garage .btn.pri{background:#e10600;border-color:#e10600}
body.tema-garage .btn.pri:hover{background:#c40500}
body.tema-garage a{color:#ff5a4f}
body.tema-garage .lateral a,body.tema-garage .btn,body.tema-garage .mod{color:inherit}
body.tema-garage .btn{color:var(--tx)} body.tema-garage .btn.pri{color:#fff}
body.tema-garage .msg.erro{border-color:#5a2238}
body.tema-garage .auto-barra i{background:linear-gradient(180deg,#ff2a1f,#a00400);opacity:1}
body.tema-garage table th{color:#9a9a9a}
body.tema-garage .kpi-c{background:#161616}

/* entrada AGNEON Garage (/garage) */
.garage-acesso{min-height:100vh;display:grid;grid-template-columns:1.25fr 1fr;background:#0b0b0b;color:#f1f1f1}
.garage-arte{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center;padding:48px;
  background:radial-gradient(120% 80% at 70% 110%,rgba(225,6,0,.45),transparent 60%),radial-gradient(60% 50% at 15% 0%,rgba(225,6,0,.18),transparent 70%),#070707}
.garage-arte::after{content:"";position:absolute;inset:auto -10% -30% -10%;height:55%;background:radial-gradient(closest-side,rgba(255,255,255,.07),transparent);filter:blur(30px)}
.garage-arte img.logo{width:min(560px,90%);height:auto;position:relative;z-index:1}
.garage-arte .carro{position:absolute;right:24px;bottom:28px;width:min(560px,62%);opacity:.9}
.garage-arte p{position:relative;z-index:1;color:#bdbdbd;max-width:430px;margin:18px 0 0;font-size:15px}
.garage-form{display:flex;align-items:center;justify-content:center;padding:32px}
.garage-caixa{width:100%;max-width:380px}
.garage-caixa h1{font-size:26px;margin:0 0 4px}
.garage-caixa label{color:#cfcfcf}
.garage-caixa input{background:#161616;border-color:#2e2e2e;color:#fff}
.garage-caixa .btn.pri{width:100%;min-height:46px;background:#e10600;border-color:#e10600;color:#fff;font-weight:700;margin-top:8px}
.garage-caixa .rodape{color:#8a8a8a;font-size:13px;margin-top:16px}
.garage-caixa .rodape a{color:#ff5a4f}
.garage-caixa img.logo-movel{display:none;width:240px;margin:0 auto 24px}
@media(max-width:860px){.garage-acesso{grid-template-columns:1fr}.garage-arte{display:none}.garage-caixa img.logo-movel{display:block}}
.auto-rosca-box{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.auto-rosca{width:140px;height:140px;border-radius:50%;display:grid;place-items:center;flex:none}
.auto-rosca span{width:92px;height:92px;border-radius:50%;background:var(--card);display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:12px;color:var(--tx2)}
.auto-rosca span b{font-size:24px;color:var(--tx);line-height:1.1}
.auto-legenda{list-style:none;margin:0;padding:0;flex:1;min-width:140px;font-size:13px}
.auto-legenda li{display:flex;align-items:center;gap:8px;padding:3px 0}
.auto-legenda li i{width:10px;height:10px;border-radius:50%;flex:none}
.auto-legenda li b{margin-left:auto}
body.tema-garage .painel-menu{background:linear-gradient(180deg,#1a0605 0%,#0b0b0b 45%);scrollbar-color:#333 transparent}
body.tema-garage .lateral .ajuda-box,body.tema-garage .lateral [class*="ajuda"]{background:#161616}
/* TV da loja no tema Garage: mostra o nome da loja (é a TV que o cliente vê), com as cores do Garage */
body.tema-garage.auto-tv-corpo{background:radial-gradient(90% 60% at 50% 120%,rgba(225,6,0,.25),transparent 70%),#0b0b0b}
body.tema-garage .auto-tv-card{background:#181818;border:1px solid #2a2a2a;border-left:4px solid #e10600}
body.tema-garage .auto-tv h1{color:#fff}
body.tema-garage .auto-tv h2{color:#ff5a4f}
body.tema-garage .auto-tv-nome,body.tema-garage .auto-tv-vazio{color:#b5b5b5}
