/* =========================================================
   Apps Golden Parts (GP Loja = body.gp-app · App do técnico = body.gp-tec)
   29/10/2026: barra de cima e de baixo no visual preto + dourado (igual ao
   site e ao painel), fonte Sora. O conteúdo das telas continua claro.
   Carregado depois do gp-ui.css em app/_base.php e tecnico/_base.php.
   ========================================================= */
body.gp-app, body.gp-tec{ font-family:'Sora', system-ui, -apple-system, sans-serif; }
body.gp-app input, body.gp-app select, body.gp-app textarea, body.gp-app button, body.gp-app .btn,
body.gp-tec input, body.gp-tec select, body.gp-tec textarea, body.gp-tec button, body.gp-tec .btn{ font-family:inherit; }

/* barra de cima */
body.gp-app .top, body.gp-tec .top{ background:#000 !important; border-bottom:1px solid #2B2B31 !important; color:#F4EEDF !important; box-shadow:none !important; gap:8px; }
body.gp-app .top h1, body.gp-tec .top h1, body.gp-app .top b, body.gp-tec .top b{ color:#F4EEDF !important; font-weight:600; }
body.gp-app .top .quem, body.gp-tec .top .quem{ color:#9A9385 !important; }
body.gp-app .top .quem a, body.gp-tec .top .quem a{ color:#F1CF6B; }
body.gp-app .top .btn, body.gp-tec .top .btn{ background:#121214 !important; border-color:#2B2B31 !important; color:#F4EEDF !important; border-radius:999px; }
body.gp-app .top img, body.gp-tec .top img{ height:30px; }
body.gp-app .top .gp-marca, body.gp-tec .top .gp-marca{ font-family:'Sora', sans-serif; letter-spacing:.06em; }
body.gp-app .top .gp-marca-loja{ background:#D4A531; color:#000; }
body.gp-tec .top .gp-marca-tecnico{ background:#1A1608; color:#F1CF6B; border:1px solid #8A6A1C; }

/* barra de baixo */
body.gp-app .nav, body.gp-tec .nav{ background:#000 !important; border-top:1px solid #2B2B31 !important; box-shadow:none !important; }
body.gp-app .nav a, body.gp-tec .nav a{ color:#9A9385 !important; font-weight:500; }
body.gp-app .nav a.on, body.gp-tec .nav a.on{ color:#F1CF6B !important; font-weight:700; }

/* botões principais e destaques em dourado (mesmo tom do site) */
body.gp-app .btn-p, body.gp-tec .btn-p{ background:#D4A531 !important; border-color:#D4A531 !important; color:#000 !important; }
body.gp-app .abas a.on, body.gp-tec .abas a.on{ background:#D4A531 !important; border-color:#D4A531 !important; color:#000 !important; }
body.gp-app .grande{ color:#8A6A1C; }
body.gp-app a, body.gp-tec a{ color:#8A6A1C; }
body.gp-app .card, body.gp-tec .card{ border-radius:14px; }
body.gp-app .btn, body.gp-tec .btn{ border-radius:12px; }
html:has(body.gp-app), html:has(body.gp-tec){ background:#f3f1ec !important; }

/* botão "Painel" (volta para o painel do master / da equipe) — compacto no celular */
body.gp-app .top a[title="Voltar para o painel"], body.gp-tec .top a[title="Voltar para o painel"]{ white-space:nowrap; }
body.gp-app .top h1, body.gp-tec .top h1{ min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:480px){
  body.gp-app .top a[title="Voltar para o painel"], body.gp-tec .top a[title="Voltar para o painel"]{ padding:6px 8px !important; font-size:0; }
  body.gp-app .top a[title="Voltar para o painel"]::before, body.gp-tec .top a[title="Voltar para o painel"]::before{ content:"🖥️"; font-size:15px; }
  body.gp-app .top h1, body.gp-tec .top h1{ font-size:15px; }
}
@media (prefers-color-scheme: dark){ body.gp-app .top, body.gp-tec .top, body.gp-app .nav, body.gp-tec .nav{ background:#000 !important; } }

/* ---------- 05/11/2026 (decisão do Valter, opção A): o que está ESCOLHIDO fica dourado cheio com ✓ — padrão do site todo ----------
   GP Loja e app do técnico, no claro e no escuro (!important e ":not(#gp-esc)" só deixam a regra mais forte que o modo escuro). */
html body:is(.gp-app, .gp-tec) .abas a.on:not(#gp-esc),
html body.gp-tec .tec-filtros a.on:not(#gp-esc){ background:#D4A531 !important; border-color:#D4A531 !important; color:#1F1B16 !important; font-weight:800 !important; }
html body:is(.gp-app, .gp-tec) .abas a.on:not(#gp-esc)::before,
html body.gp-tec .tec-filtros a.on:not(#gp-esc)::before{ content:"✓"; margin-right:5px; font-weight:800; }
/* barra de baixo: a tela aberta fica numa pílula dourada com ✓ */
html body:is(.gp-app, .gp-tec) .nav a.on:not(#gp-esc){ position:relative; background:#D4A531 !important; color:#1F1B16 !important; border-radius:12px; font-weight:800 !important; }
html body:is(.gp-app, .gp-tec) .nav a.on:not(#gp-esc)::after{ content:"✓"; position:absolute; top:3px; right:6px; font-size:11px; font-weight:800; color:#1F1B16; }
/* cartões de resumo (ex.: E-mail da empresa): dourado cheio e ✓ no canto */
html body.gp-app .em-resumo .em-tile.on:not(#gp-esc){ position:relative; background:#D4A531 !important; border-color:#D4A531 !important; }
html body.gp-app .em-resumo .em-tile.on:not(#gp-esc) *{ color:#1F1B16 !important; }
html body.gp-app .em-resumo .em-tile.on:not(#gp-esc)::after{ content:"✓"; position:absolute; top:8px; right:10px; width:22px; height:22px; border-radius:50%; background:#1F1B16; color:#F1CF6B; font-size:13px; font-weight:800; display:flex; align-items:center; justify-content:center; }
