:root {
  --navy: #003366;
  --navy-2: #0a4a8a;
  --rosa: #cc0066;
  --rosa-2: #e8338a;
  --bg: #f3f5fa;
  --bg-2: #e9edf5;
  --card: #ffffff;
  --texto: #0f1b2d;
  --texto-2: #51607a;
  --texto-3: #8592a8;
  --borda: #e3e8f0;
  --verde: #12a150;
  --verde-bg: #e3f6ea;
  --amarelo: #c98a00;
  --amarelo-bg: #fff4d6;
  --vermelho: #d93545;
  --vermelho-bg: #fde7ea;
  --azul-bg: #e5eefb;
  --rosa-bg: #fbe5f0;
  --sombra: 0 1px 2px rgba(15, 27, 45, .05), 0 6px 24px rgba(15, 27, 45, .06);
  --sombra-2: 0 12px 40px rgba(15, 27, 45, .16);
  --raio: 18px;
  --raio-s: 12px;
  --sidebar: 264px;
  --fonte: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1120;
    --bg-2: #111a2c;
    --card: #121b2e;
    --texto: #e8edf6;
    --texto-2: #a6b2c7;
    --texto-3: #6f7d95;
    --borda: #22304a;
    --verde-bg: rgba(18, 161, 80, .16);
    --amarelo-bg: rgba(201, 138, 0, .18);
    --vermelho-bg: rgba(217, 53, 69, .18);
    --azul-bg: rgba(64, 140, 230, .16);
    --rosa-bg: rgba(204, 0, 102, .18);
    --navy-2: #4d8fd6;
    --sombra: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--fonte);
  background: var(--bg);
  color: var(--texto);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg.ic { width: 20px; height: 20px; flex: none; }
.oculto { display: none !important; }

/* ---------- Layout ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar);
  background: linear-gradient(180deg, #002a55 0%, #003366 55%, #0b3d73 100%);
  color: #fff; display: flex; flex-direction: column; padding: 22px 14px; z-index: 40;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.marca { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 10px 20px; }
.marca-img { display: block; width: 170px; height: auto; }
.marca small { display: block; font-size: 11.5px; opacity: .7; padding-left: 4px; }
.marca-icone { width: 34px; height: 34px; display: block; }
.nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -4px; padding: 0 4px; }
.nav-grupo { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; opacity: .55; padding: 16px 12px 6px; display: flex; align-items: center; gap: 6px; }
.nav-grupo svg.ic { width: 13px; height: 13px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: rgba(255, 255, 255, .78); font-weight: 500; transition: background .2s, color .2s, transform .2s;
}
.nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav a.ativo { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 3px 0 0 var(--rosa-2); }
.nav a .badge { margin-left: auto; }
.usuario-box {
  margin-top: 12px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .08);
  display: flex; align-items: center; gap: 10px;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: rgba(255, 255, 255, .18); font-weight: 700; font-size: 14px;
}
.usuario-box .info { flex: 1; min-width: 0; }
.usuario-box .info b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usuario-box .info small { font-size: 11.5px; opacity: .7; }
.icone-btn {
  border: 0; background: transparent; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  cursor: pointer; color: inherit; transition: background .2s;
}
.icone-btn:hover { background: rgba(127, 127, 127, .16); }

.principal { flex: 1; margin-left: var(--sidebar); min-width: 0; }
.topo-mobile { display: none; }
.conteudo { max-width: 1240px; margin: 0 auto; padding: 32px 36px 60px; }
.pagina { animation: entrar .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes entrar { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.cab h1 { margin: 0; font-size: 28px; letter-spacing: -.6px; line-height: 1.15; }
.cab p { margin: 6px 0 0; color: var(--texto-2); }
.cab .acoes { display: flex; gap: 10px; flex-wrap: wrap; }

.bottom-nav { display: none; }
.veu { display: none; }

@media (max-width: 960px) {
  .sidebar { transform: translateX(-102%); box-shadow: var(--sombra-2); }
  .shell.menu-aberto .sidebar { transform: none; }
  .shell.menu-aberto .veu { display: block; position: fixed; inset: 0; background: rgba(5, 12, 25, .45); z-index: 35; animation: fade .2s; }
  .principal { margin-left: 0; }
  .topo-mobile {
    display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30;
    padding: 12px 16px; background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--borda);
  }
  .topo-mobile b { font-size: 16px; flex: 1; }
  .conteudo { padding: 20px 16px 110px; }
  .cab h1 { font-size: 23px; }
  .bottom-nav {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
    background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--borda); border-radius: 20px; box-shadow: var(--sombra-2); padding: 6px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom) / 2);
  }
  .bottom-nav a, .bottom-nav button {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px; border-radius: 14px;
    font-size: 10.5px; font-weight: 600; color: var(--texto-3); border: 0; background: none; cursor: pointer; transition: color .2s, background .2s;
  }
  .bottom-nav .ativo { color: var(--rosa); background: var(--rosa-bg); }
}
@keyframes fade { from { opacity: 0; } }

/* ---------- Componentes ---------- */
.card { background: var(--card); border-radius: var(--raio); box-shadow: var(--sombra); border: 1px solid var(--borda); }
.card-pad { padding: 20px; }
.card h2, .secao-titulo { margin: 0 0 14px; font-size: 16.5px; letter-spacing: -.2px; display: flex; align-items: center; gap: 8px; }
.card h2 .mais { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--navy-2); }

.grade { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .g2, .g3 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }
.mb { margin-bottom: 16px; }
.mb2 { margin-bottom: 28px; }

.kpi { padding: 18px; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--sombra-2); }
.kpi .rotulo { font-size: 13px; color: var(--texto-2); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kpi .valor { font-size: 26px; font-weight: 800; letter-spacing: -.8px; margin-top: 8px; line-height: 1.1; }
.kpi .sub { font-size: 12.5px; color: var(--texto-3); margin-top: 4px; }
.kpi .bolha { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; }
.kpi .bolha svg.ic { width: 18px; height: 18px; }
@media (max-width: 760px) { .kpi .valor { font-size: 21px; } .kpi { padding: 14px; } }
.t-verde { color: var(--verde); } .t-vermelho { color: var(--vermelho); } .t-amarelo { color: var(--amarelo); } .t-rosa { color: var(--rosa); } .t-azul { color: var(--navy-2); } .t-suave { color: var(--texto-3); }
.b-verde { background: var(--verde-bg); color: var(--verde); }
.b-vermelho { background: var(--vermelho-bg); color: var(--vermelho); }
.b-amarelo { background: var(--amarelo-bg); color: var(--amarelo); }
.b-azul { background: var(--azul-bg); color: var(--navy-2); }
.b-rosa { background: var(--rosa-bg); color: var(--rosa); }
.b-cinza { background: var(--bg-2); color: var(--texto-2); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.nav .badge { background: var(--rosa); color: #fff; padding: 1px 8px; font-size: 11px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  padding: 11px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
  background: var(--bg-2); color: var(--texto); white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn svg.ic { width: 18px; height: 18px; }
.btn-primario { background: linear-gradient(135deg, var(--rosa), #e0237f); color: #fff; box-shadow: 0 6px 18px rgba(204, 0, 102, .3); }
.btn-primario:hover { box-shadow: 0 10px 24px rgba(204, 0, 102, .38); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-whats { background: #1fa855; color: #fff; }
.btn-perigo { background: var(--vermelho-bg); color: var(--vermelho); }
.btn-borda { background: transparent; border: 1px solid var(--borda); }
.btn-p { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn-bloco { width: 100%; }

/* Formulários */
.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.campos .cheio { grid-column: 1 / -1; }
@media (max-width: 560px) { .campos { grid-template-columns: 1fr; } }
label.campo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--texto-2); }
.entrada, label.campo input, label.campo select, label.campo textarea {
  width: 100%; padding: 11px 13px; border-radius: 12px; border: 1.5px solid var(--borda); background: var(--card);
  font-size: 15px; font-weight: 500; color: var(--texto); outline: none; transition: border-color .2s, box-shadow .2s;
}
.entrada:focus, label.campo input:focus, label.campo select:focus, label.campo textarea:focus { border-color: var(--rosa); box-shadow: 0 0 0 4px var(--rosa-bg); }
label.campo textarea { min-height: 80px; resize: vertical; }
.busca { position: relative; flex: 1; min-width: 200px; }
.busca svg.ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--texto-3); width: 18px; height: 18px; }
.busca .entrada { padding-left: 40px; }
.filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filtros select.entrada { width: auto; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1.5px solid var(--borda); background: var(--card); padding: 7px 13px; border-radius: 99px; font-size: 13px; font-weight: 600;
  cursor: pointer; color: var(--texto-2); transition: all .2s;
}
.chip.ativo { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Tabelas que viram cartões no celular */
.tabela-wrap { overflow: hidden; }
table.tabela { width: 100%; border-collapse: collapse; }
.tabela th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--texto-3); font-weight: 700; padding: 14px 16px; border-bottom: 1px solid var(--borda); background: color-mix(in srgb, var(--bg) 55%, var(--card)); }
.tabela td { padding: 14px 16px; border-bottom: 1px solid var(--borda); vertical-align: middle; }
.tabela tbody tr { transition: background .15s; }
.tabela tbody tr.clicavel { cursor: pointer; }
.tabela tbody tr.clicavel:hover { background: color-mix(in srgb, var(--rosa-bg) 45%, transparent); }
.tabela tr:last-child td { border-bottom: 0; }
.tabela .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabela tfoot td { font-weight: 800; background: color-mix(in srgb, var(--bg) 55%, var(--card)); }
.forte { font-weight: 700; }
.sub-linha { display: block; font-size: 12.5px; color: var(--texto-3); font-weight: 500; }
@media (max-width: 760px) {
  table.tabela.resp thead { display: none; }
  table.tabela.resp, .tabela.resp tbody, .tabela.resp tr, .tabela.resp td { display: block; width: 100%; }
  .tabela.resp tr { padding: 12px 14px; border-bottom: 1px solid var(--borda); }
  .tabela.resp td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .tabela.resp td::before { content: attr(data-l); font-size: 12.5px; color: var(--texto-3); font-weight: 600; text-align: left; }
  .tabela.resp td.principal-cel { display: block; text-align: left; font-size: 15.5px; margin-bottom: 4px; }
  .tabela.resp td.principal-cel::before { display: none; }
  .tabela.resp td:empty { display: none; }
  .tabela.resp tfoot tr { display: flex; justify-content: space-between; }
}

.vazio { text-align: center; padding: 48px 20px; color: var(--texto-3); }
.vazio svg.ic { width: 42px; height: 42px; opacity: .5; margin-bottom: 8px; }
.vazio b { display: block; color: var(--texto-2); font-size: 16px; margin-bottom: 4px; }

.lista-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--borda); }
.lista-item:last-child { border-bottom: 0; }
.lista-item .grow { flex: 1; min-width: 0; }
.lista-item .grow b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.data-pill { width: 50px; flex: none; text-align: center; border-radius: 12px; padding: 6px 0; background: var(--azul-bg); color: var(--navy-2); line-height: 1.1; }
.data-pill b { display: block; font-size: 18px; }
.data-pill small { font-size: 10.5px; font-weight: 700; text-transform: uppercase; }

.atalhos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.atalho {
  display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--borda);
  font-weight: 700; font-size: 14px; box-shadow: var(--sombra); transition: transform .2s, box-shadow .2s;
}
.atalho:hover { transform: translateY(-2px); box-shadow: var(--sombra-2); }
.atalho .bolha { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }

.hero {
  border-radius: 24px; padding: 26px 28px; color: #fff; position: relative; overflow: hidden; margin-bottom: 22px;
  background: radial-gradient(1200px 300px at 100% 0%, rgba(232, 51, 138, .55), transparent 60%), linear-gradient(135deg, #002a55, #0a4a8a);
  box-shadow: 0 16px 40px rgba(0, 51, 102, .25);
}
.hero h1 { margin: 0; font-size: 27px; letter-spacing: -.6px; }
.hero p { margin: 6px 0 0; opacity: .85; }
.hero::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 70%);
}

.barra { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.barra > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--rosa), #ff5fa8); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.barra.verde > span { background: linear-gradient(90deg, #0f9d4a, #36c46f); }
.barra.amarela > span { background: linear-gradient(90deg, #d79a00, #f3bf34); }
.barra.navy > span { background: linear-gradient(90deg, var(--navy), var(--navy-2)); }

/* Faixa de preço */
.faixa { position: relative; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--azul-bg), var(--rosa-bg)); margin: 14px 0 8px; }
.faixa i { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--rosa); border: 3px solid var(--card); box-shadow: var(--sombra); }
.faixa-rotulos { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--texto-2); }
.faixa-rotulos b { color: var(--texto); }
.servico-card { padding: 18px; display: flex; flex-direction: column; gap: 4px; transition: transform .2s, box-shadow .2s; }
.servico-card:hover { transform: translateY(-2px); box-shadow: var(--sombra-2); }
.servico-card .topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.servico-card h3 { margin: 0; font-size: 15.5px; }
.servico-card .medio { font-size: 24px; font-weight: 800; letter-spacing: -.6px; color: var(--navy-2); margin-top: 6px; }
.servico-card .medio small { font-size: 13px; color: var(--texto-3); font-weight: 600; letter-spacing: 0; }
.servico-card p { margin: 6px 0 0; font-size: 13px; color: var(--texto-2); }

/* Modal */
.modal-fundo {
  position: fixed; inset: 0; z-index: 60; background: rgba(5, 12, 25, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px; animation: fade .2s;
}
.modal {
  width: min(640px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--card); border-radius: 22px; box-shadow: var(--sombra-2);
  animation: subir .3s cubic-bezier(.2, .8, .2, 1);
}
.modal.estreito { width: min(440px, 100%); }
@keyframes subir { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.modal-cab { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 6px; }
.modal-cab h3 { margin: 0; font-size: 19px; letter-spacing: -.3px; }
.modal-corpo { padding: 14px 22px 8px; }
.modal-rodape { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 22px 22px; flex-wrap: wrap; }
.modal-rodape .esq { margin-right: auto; }
@media (max-width: 560px) {
  .modal-fundo { place-items: end stretch; padding: 0; }
  .modal { width: 100%; border-radius: 22px 22px 0 0; max-height: 92vh; animation: subirMobile .32s cubic-bezier(.2, .8, .2, 1); }
  @keyframes subirMobile { from { transform: translateY(100%); } }
}

/* Toast */
.toasts { position: fixed; top: 18px; right: 18px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--texto); color: var(--card); padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: 14px;
  box-shadow: var(--sombra-2); display: flex; gap: 10px; align-items: center; animation: subir .3s; max-width: 340px;
}
.toast.erro { background: var(--vermelho); color: #fff; }
@media (max-width: 960px) { .toasts { top: auto; bottom: 100px; left: 16px; right: 16px; } .toast { max-width: none; } }

/* Login */
.login-pagina {
  min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(900px 500px at 85% 10%, rgba(204, 0, 102, .45), transparent 60%), radial-gradient(800px 600px at 0% 100%, rgba(10, 74, 138, .8), transparent 60%), #001f40;
}
.login-card { width: min(420px, 100%); background: var(--card); border-radius: 26px; padding: 34px 30px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: subir .5s cubic-bezier(.2, .8, .2, 1); }
.login-card .marca { align-items: center; padding: 0 0 18px; color: var(--texto-3); }
.login-card .marca-img { width: 210px; }
.login-card h1 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.4px; }
.login-card > p { margin: 0 0 22px; color: var(--texto-2); font-size: 14px; }
.login-card form { display: flex; flex-direction: column; gap: 14px; }
.login-card .rodape { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--texto-3); display: flex; align-items: center; justify-content: center; gap: 6px; }
.erro-msg { background: var(--vermelho-bg); color: var(--vermelho); padding: 10px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; }

/* Orçamento */
.orc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .orc-layout { grid-template-columns: 1fr; } }
.orc-total { position: sticky; top: 20px; }
.orc-total .linha { display: flex; justify-content: space-between; padding: 8px 0; color: var(--texto-2); }
.orc-total .linha b { color: var(--texto); font-variant-numeric: tabular-nums; }
.orc-total .final { border-top: 1px dashed var(--borda); margin-top: 6px; padding-top: 14px; align-items: baseline; }
.orc-total .final b { font-size: 30px; letter-spacing: -1px; color: var(--rosa); }
.item-orc { display: grid; grid-template-columns: minmax(0, 2.2fr) 90px 120px 110px 36px; gap: 10px; align-items: end; padding: 12px 0; border-bottom: 1px solid var(--borda); animation: entrar .3s; }
.item-orc .tot { font-weight: 800; text-align: right; padding-bottom: 12px; font-variant-numeric: tabular-nums; }
.item-orc .dica { grid-column: 1 / -1; font-size: 12.5px; color: var(--texto-3); margin-top: -4px; }
@media (max-width: 640px) {
  .item-orc { grid-template-columns: 1fr 1fr; }
  .item-orc .sel { grid-column: 1 / -1; }
  .item-orc .tot { text-align: left; padding-bottom: 0; }
}
input[type=range] { accent-color: var(--rosa); width: 100%; }

/* Catálogo */
.catalogo { max-width: 820px; margin: 0 auto; overflow: hidden; }
.cat-topo { background: linear-gradient(135deg, #002a55, #0a4a8a 60%, #8a0f55); color: #fff; padding: 34px 32px; position: relative; }
.cat-logo { display: block; width: 220px; height: auto; }
.cat-topo p { margin: 6px 0 0; opacity: .85; }
.cat-corpo { padding: 10px 32px 26px; }
.cat-grupo { margin-top: 22px; }
.cat-grupo h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--rosa); margin: 0 0 6px; }
.cat-linha { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--borda); }
.cat-linha .grow { flex: 1; }
.cat-linha .grow b { display: block; }
.cat-linha .grow span { font-size: 13px; color: var(--texto-2); }
.cat-linha .preco { text-align: right; white-space: nowrap; }
.cat-linha .preco small { display: block; font-size: 11px; color: var(--texto-3); text-transform: uppercase; letter-spacing: .6px; }
.cat-linha .preco b { font-size: 18px; color: var(--navy-2); }
.combo { margin-top: 24px; border-radius: 18px; padding: 20px 22px; background: linear-gradient(135deg, var(--rosa), #ff4f9e); color: #fff; }
.combo b { font-size: 17px; display: block; margin-bottom: 4px; }
.cat-rodape { padding: 16px 32px; background: var(--bg-2); font-size: 13.5px; color: var(--texto-2); text-align: center; font-weight: 600; }

/* Gráfico */
.grafico > svg { width: 100%; height: auto; display: block; }
.grafico .eixo { stroke: var(--borda); }
.grafico text { fill: var(--texto-3); font-size: 11px; font-family: var(--fonte); }
.legenda { display: flex; gap: 16px; font-size: 13px; color: var(--texto-2); font-weight: 600; margin-bottom: 8px; }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.anel { position: relative; width: 120px; height: 120px; flex: none; }
.anel svg { transform: rotate(-90deg); }
.anel .centro { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-weight: 800; font-size: 22px; letter-spacing: -.5px; }
.anel .centro small { display: block; font-size: 11px; color: var(--texto-3); font-weight: 600; letter-spacing: 0; }

.meta-linha { display: grid; grid-template-columns: 110px 150px minmax(0, 1fr) 120px 130px; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--borda); }
.meta-linha.atual { background: color-mix(in srgb, var(--rosa-bg) 60%, transparent); }
.meta-linha:last-child { border-bottom: 0; }
.meta-linha .entrada { padding: 8px 10px; }
@media (max-width: 760px) {
  .meta-linha { grid-template-columns: 1fr 1fr; gap: 8px; }
  .meta-linha .barra-cel { grid-column: 1 / -1; }
  .nao-mobile { display: none !important; }
}

.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-2); border-radius: 10px; padding: 2px; }
.stepper button { width: 28px; height: 28px; border: 0; border-radius: 8px; background: var(--card); cursor: pointer; font-weight: 800; box-shadow: var(--sombra); }
.stepper span { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

.dica-box { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--azul-bg); color: var(--navy-2); font-size: 13.5px; font-weight: 500; }
.carregando { display: grid; place-items: center; min-height: 50vh; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--borda); border-top-color: var(--rosa); animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

/* Impressão: só o documento */
.so-impressao { display: none; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #000; }
  .sidebar, .topo-mobile, .bottom-nav, .toasts, .cab .acoes, .nao-imprimir { display: none !important; }
  .principal { margin: 0; }
  .conteudo { padding: 0; max-width: none; }
  .card { box-shadow: none; border-color: #ddd; }
  .so-impressao { display: block; }
  .imprimir-sozinho > *:not(.doc-impressao) { display: none !important; }
  .catalogo .cat-topo, .combo { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.doc-impressao { font-size: 13px; color: #111; }
.doc-impressao .doc-logo { display: block; width: 150px; height: auto; margin-bottom: 2px; }
.doc-impressao .doc-topo { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid #003366; padding-bottom: 10px; margin-bottom: 14px; }
.doc-impressao h2 { margin: 0; color: #003366; }
.doc-impressao table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.doc-impressao th { background: #003366; color: #fff; text-align: left; padding: 7px 8px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.doc-impressao td { padding: 7px 8px; border-bottom: 1px solid #ddd; }
.doc-impressao .r { text-align: right; }
.doc-impressao .total { font-size: 18px; font-weight: 800; color: #cc0066; }
