/* Espelho — sistema visual. Mobile-first: a base vale para celular e os @media ampliam para telas maiores. */
:root {
  --bg: #f6f7fb; --surface: #ffffff; --surface-2: #f8fafc; --surface-3: #f1f4f9;
  --line: #e9ecf2; --line-2: #d8dde7;
  --ink: #0b1220; --ink-2: #475569; --ink-3: #8491a5;
  --brand: #2563eb; --brand-2: #1d4ed8; --brand-soft: #eef3ff; --brand-ink: #1d4ed8;
  --ok: #15803d; --ok-soft: #e8f7ee; --warn: #a16207; --warn-soft: #fdf4dc; --bad: #dc2626; --bad-soft: #fdecec; --violet: #6d28d9; --violet-soft: #f1ebfe;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-2: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-3: 0 2px 6px rgba(15, 23, 42, .06), 0 28px 70px -18px rgba(15, 23, 42, .28);
  --ring: 0 0 0 4px rgba(37, 99, 235, .14);
  --r: 16px; --r-sm: 11px; --r-xs: 8px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --side: 252px; --top: 64px; --barra: 0px;
  --fonte: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
[data-tema="escuro"] {
  --bg: #0a0c10; --surface: #12151b; --surface-2: #171b22; --surface-3: #1d222b;
  --line: #222834; --line-2: #313947;
  --ink: #eef1f6; --ink-2: #b3bccb; --ink-3: #7c8799;
  --brand: #4c8dff; --brand-2: #6aa1ff; --brand-soft: #16233d; --brand-ink: #9dc0ff;
  --ok: #4ade80; --ok-soft: #11291b; --warn: #f2c14e; --warn-soft: #2e250c; --bad: #f87171; --bad-soft: #331718; --violet: #b79cff; --violet-soft: #231a3a;
  --shadow-1: none; --shadow-2: 0 0 0 1px rgba(255, 255, 255, .02); --shadow-3: 0 30px 80px -20px rgba(0, 0, 0, .7);
  --ring: 0 0 0 4px rgba(76, 141, 255, .22);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font: 400 14.5px/1.5 var(--fonte); -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; overflow-x: hidden; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 22px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 14px; font-weight: 600; }
a { color: var(--brand-ink); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { max-width: 100%; display: block; }
svg { flex: none; }
::selection { background: rgba(37, 99, 235, .18); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-xs); }
.oculto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mudo { color: var(--ink-3); } .suave { color: var(--ink-2); } .forte { font-weight: 600; } .peq { font-size: 12.5px; } .mini { font-size: 11.5px; }
.num { font-variant-numeric: tabular-nums; } .dir { text-align: right; } .centro { text-align: center; } .quebra { white-space: normal; } .nq { white-space: nowrap; }
.verde { color: var(--ok); } .vermelho { color: var(--bad); } .azul { color: var(--brand-ink); } .ambar { color: var(--warn); }
.linha { display: flex; align-items: center; gap: 10px; } .linha-sp { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .col { display: flex; flex-direction: column; gap: 12px; }
.cresce { flex: 1; min-width: 0; } .corta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .envolve { flex-wrap: wrap; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }

/* ---------- Abertura e esqueletos ---------- */
.splash { position: fixed; inset: 0; display: grid; place-items: center; }
.splash-marca { width: 44px; height: 44px; border-radius: 14px; background: var(--brand); animation: pulso 1.2s var(--ease) infinite; }
@keyframes pulso { 0%, 100% { transform: scale(.86); opacity: .55; } 50% { transform: scale(1); opacity: 1; } }
.esq { position: relative; overflow: hidden; background: var(--surface-3); border-radius: 8px; min-height: 12px; }
.esq::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); animation: brilho 1.3s infinite; }
[data-tema="escuro"] .esq::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); }
@keyframes brilho { to { transform: translateX(100%); } }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes surge { from { opacity: 0; } to { opacity: 1; } }
.pagina > * { animation: entra .35s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- Estrutura ---------- */
.shell { min-height: 100dvh; }
.lateral { position: fixed; inset: 0 auto 0 0; width: min(86vw, 300px); background: var(--surface); border-right: 1px solid var(--line); z-index: 60; display: flex; flex-direction: column; transform: translateX(-102%); transition: transform .3s var(--ease); }
.shell.menu-aberto .lateral { transform: none; box-shadow: var(--shadow-3); }
.veu { position: fixed; inset: 0; background: rgba(11, 18, 32, .42); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .25s; backdrop-filter: blur(2px); }
.shell.menu-aberto .veu { opacity: 1; pointer-events: auto; }
.marca { display: flex; align-items: center; gap: 10px; padding: 18px 18px 12px; font-weight: 650; font-size: 16px; letter-spacing: -.02em; }
.marca-icone { width: 32px; height: 32px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.marca-nome { min-width: 0; } .marca-nome small { display: block; font-weight: 400; font-size: 11.5px; color: var(--ink-3); letter-spacing: 0; }
.menu { flex: 1; overflow-y: auto; padding: 6px 12px 16px; scrollbar-width: thin; }
.menu-grupo { margin: 16px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.menu a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 500; transition: background .15s, color .15s; position: relative; }
.menu a:hover { background: var(--surface-3); color: var(--ink); }
.menu a.ativo { background: var(--brand-soft); color: var(--brand-ink); }
.menu a .conta { margin-left: auto; font-size: 11px; font-weight: 600; background: var(--brand); color: #fff; border-radius: 999px; padding: 1px 7px; }
.lateral-pe { padding: 12px; border-top: 1px solid var(--line); }
.plano-aviso { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; font-size: 12.5px; color: var(--ink-2); }
.principal { min-width: 0; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.topo { position: sticky; top: 0; z-index: 40; height: var(--top); display: flex; align-items: center; gap: 8px; padding: 0 14px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topo.rolou { border-color: var(--line); }
.topo-busca { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--ink-3); cursor: text; transition: border-color .15s, box-shadow .15s; max-width: 440px; }
.topo-busca:hover { border-color: var(--line-2); }
.topo-busca kbd { margin-left: auto; font: 500 11px var(--fonte); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; display: none; }
.topo-esp { flex: 1; }
.pagina { padding: 8px 14px 24px; max-width: 1640px; margin: 0 auto; }
.pagina.larga { max-width: none; }
.cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 8px 0 18px; }
.cab p { color: var(--ink-3); margin-top: 3px; }
.cab-acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.barra-inf { position: fixed; inset: auto 0 0 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
.barra-inf a, .barra-inf button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; font-size: 10.5px; font-weight: 500; color: var(--ink-3); border-radius: 12px; }
.barra-inf a.ativo { color: var(--brand-ink); }
.barra-inf .fab { width: 48px; height: 48px; margin: -18px auto 0; border-radius: 16px; background: var(--brand); color: #fff; box-shadow: 0 10px 24px -8px rgba(37, 99, 235, .6); justify-content: center; }
.so-desk { display: none !important; }

@media (min-width: 960px) {
  body { font-size: 14px; }
  .so-desk { display: revert !important; } .so-cel { display: none !important; }
  .shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); transition: grid-template-columns .3s var(--ease); }
  .lateral { position: sticky; top: 0; height: 100dvh; width: auto; transform: none; z-index: 30; }
  .veu, .barra-inf { display: none; }
  .principal { padding-bottom: 0; }
  .topo { padding: 0 28px; gap: 10px; }
  .topo-busca kbd { display: block; }
  .pagina { padding: 12px 28px 40px; }
  h1 { font-size: 24px; }
  .shell.recolhido { --side: 76px; }
  .shell.recolhido .marca-nome, .shell.recolhido .menu a span, .shell.recolhido .menu-grupo, .shell.recolhido .lateral-pe, .shell.recolhido .menu a .conta { display: none; }
  .shell.recolhido .menu a { justify-content: center; padding: 11px 0; }
  .shell.recolhido .marca { justify-content: center; padding-inline: 0; }
  .shell.recolhido .menu a:hover::after { content: attr(data-nome); position: absolute; left: calc(100% + 10px); background: var(--ink); color: var(--surface); padding: 5px 10px; border-radius: 8px; font-size: 12px; white-space: nowrap; z-index: 99; }
}

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 15px; border-radius: var(--r-sm); font-weight: 550; font-size: 14px; white-space: nowrap; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: background .15s, border-color .15s, transform .1s, box-shadow .15s, opacity .15s; user-select: none; }
.btn:hover { border-color: var(--line-2); background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn.pri { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(37, 99, 235, .3), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn.pri:hover { background: var(--brand-2); border-color: var(--brand-2); }
[data-tema="escuro"] .btn.pri { color: #06101f; }
.btn.suave { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.btn.fantasma { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.fantasma:hover { background: var(--surface-3); color: var(--ink); }
.btn.perigo { color: var(--bad); } .btn.perigo:hover { background: var(--bad-soft); border-color: transparent; }
.btn.perigo.pri { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.p { height: 34px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn.g { height: 48px; padding: 0 20px; font-size: 15px; border-radius: 13px; }
.btn.bloco { width: 100%; }
.btn.icone { width: 40px; padding: 0; } .btn.icone.p { width: 34px; }
.btn[disabled], .btn.carregando { opacity: .6; pointer-events: none; }
.btn.carregando::before { content: ''; width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: gira .7s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.ponto { position: relative; } .ponto::after { content: ''; position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); border: 2px solid var(--bg); }

/* ---------- Campos ---------- */
.form { display: grid; gap: 14px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.form > * { grid-column: span 12; }
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo > label, .rotulo { font-size: 12.5px; font-weight: 550; color: var(--ink-2); }
.campo .dica { font-size: 12px; color: var(--ink-3); }
.campo .erro { font-size: 12px; color: var(--bad); display: none; }
.campo.com-erro .erro { display: block; }
.campo.com-erro .ctl { border-color: var(--bad); }
.ctl { width: 100%; height: 42px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); transition: border-color .15s, box-shadow .15s; appearance: none; min-width: 0; }
.ctl::placeholder { color: var(--ink-3); }
.ctl:hover { border-color: var(--ink-3); }
.ctl:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
textarea.ctl { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select.ctl { padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238491a5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
input[type="color"].ctl { padding: 4px; width: 56px; }
.ctl-grupo { position: relative; } .ctl-grupo .prefixo { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; font-size: 13.5px; } .ctl-grupo .ctl { padding-left: 38px; }
.ctl-grupo.suf .prefixo { left: auto; right: 12px; } .ctl-grupo.suf .ctl { padding-left: 12px; padding-right: 34px; }
.chave { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 4px 0; }
.chave input { position: absolute; opacity: 0; }
.chave i { flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .2s; }
.chave i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.chave input:checked + i { background: var(--brand); } .chave input:checked + i::after { transform: translateX(16px); }
.chave input:focus-visible + i { box-shadow: var(--ring); }
.chave b { font-weight: 550; display: block; } .chave small { color: var(--ink-3); display: block; font-size: 12.5px; }
.pilulas { display: flex; gap: 4px; padding: 4px; background: var(--surface-3); border-radius: 12px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.pilulas::-webkit-scrollbar { display: none; }
.pilulas label, .pilulas button, .pilulas a { flex: 1 0 auto; text-align: center; padding: 7px 13px; border-radius: 9px; font-weight: 550; font-size: 13px; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.pilulas input { position: absolute; opacity: 0; pointer-events: none; }
.pilulas label:has(input:checked), .pilulas .ativo { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.marcas { display: flex; flex-wrap: wrap; gap: 8px; }
.marca-op { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all .15s; user-select: none; background: var(--surface); }
.marca-op input { position: absolute; opacity: 0; pointer-events: none; }
.marca-op:has(input:checked), .marca-op.ativo { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.busca-wrap { position: relative; }
.sugestoes { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-3); max-height: 280px; overflow: auto; padding: 5px; animation: entra .18s var(--ease); }
.sugestoes button { display: flex; width: 100%; text-align: left; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; }
.sugestoes button:hover, .sugestoes button.foco { background: var(--surface-3); }
.sugestoes .novo { color: var(--brand-ink); font-weight: 550; }
.escolhido { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 6px 0 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); }
.upload { display: flex; align-items: center; gap: 12px; }
.upload-img { width: 64px; height: 64px; border-radius: 14px; background: var(--surface-3) center/cover; display: grid; place-items: center; color: var(--ink-3); flex: none; border: 1px dashed var(--line-2); }
.upload-img.tem { border-style: solid; }
@media (min-width: 640px) { .form .c6 { grid-column: span 6; } .form .c4 { grid-column: span 4; } .form .c3 { grid-column: span 3; } .form .c8 { grid-column: span 8; } .form .c9 { grid-column: span 9; } .form .c2 { grid-column: span 2; } }
@media (max-width: 639px) { .form .m6 { grid-column: span 6; } }
.secao-form { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.secao-form::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- Cartões, selos e listas ---------- */
.cartao { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); min-width: 0; }
.cartao.pad { padding: 18px; } .cartao-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 0; } .cartao-corpo { padding: 14px 18px 18px; }
.grade { display: grid; gap: 14px; grid-template-columns: repeat(12, minmax(0, 1fr)); } .grade > * { grid-column: span 12; min-width: 0; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 16px; min-width: 0; position: relative; overflow: hidden; }
.kpi-rot { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12.5px; font-weight: 500; }
.kpi-rot i { width: 28px; height: 28px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; flex: none; }
.kpi-val { font-size: 22px; font-weight: 650; letter-spacing: -.025em; margin-top: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.var { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; padding: 1px 6px; border-radius: 6px; font-size: 11.5px; }
.var.sobe { color: var(--ok); background: var(--ok-soft); } .var.desce { color: var(--bad); background: var(--bad-soft); } .var.igual { color: var(--ink-3); background: var(--surface-3); }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } .kpi-val { font-size: 25px; } .g6 { grid-column: span 6 !important; } .g4 { grid-column: span 4 !important; } .g8 { grid-column: span 8 !important; } .g3 { grid-column: span 3 !important; } }
@media (min-width: 700px) and (max-width: 1100px) { .g4 { grid-column: span 6 !important; } .g8 { grid-column: span 12 !important; } .g3 { grid-column: span 6 !important; } }
.selo { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 11.5px; font-weight: 600; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.selo::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.selo.sem::before { display: none; }
.selo.azul { background: var(--brand-soft); color: var(--brand-ink); } .selo.verde { background: var(--ok-soft); color: var(--ok); } .selo.ambar { background: var(--warn-soft); color: var(--warn); } .selo.vermelho { background: var(--bad-soft); color: var(--bad); } .selo.roxo { background: var(--violet-soft); color: var(--violet); }
.avatar { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; font-weight: 600; font-size: 13px; background: var(--brand-soft) center/cover; color: var(--brand-ink); text-transform: uppercase; }
.avatar.p { width: 28px; height: 28px; border-radius: 9px; font-size: 11px; } .avatar.g { width: 56px; height: 56px; border-radius: 18px; font-size: 18px; } .avatar.gg { width: 76px; height: 76px; border-radius: 24px; font-size: 24px; }
.lista { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.item:last-child { border-bottom: 0; }
a.item, button.item, .item.clic { cursor: pointer; border-radius: 10px; padding-inline: 8px; margin-inline: -4px; transition: background .15s; width: calc(100% + 8px); text-align: left; color: inherit; }
a.item:hover, button.item:hover, .item.clic:hover { background: var(--surface-2); }
.item-t { font-weight: 550; } .item-s { font-size: 12.5px; color: var(--ink-3); }
.vazio { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 44px 20px; color: var(--ink-3); }
.vazio-ic { width: 60px; height: 60px; border-radius: 20px; background: var(--surface-3); display: grid; place-items: center; color: var(--ink-3); margin-bottom: 8px; position: relative; }
.vazio-ic::after { content: ''; position: absolute; inset: -9px; border-radius: 26px; border: 1px dashed var(--line-2); }
.vazio h3 { color: var(--ink); font-size: 15px; } .vazio p { max-width: 380px; } .vazio .btn { margin-top: 12px; }
.prog { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; } .prog i { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width .8s var(--ease); }
.prog.verde i { background: var(--ok); }
.aviso { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); font-size: 13.5px; }
.aviso.ambar { background: var(--warn-soft); color: var(--warn); } .aviso.vermelho { background: var(--bad-soft); color: var(--bad); } .aviso.neutro { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.codigo { font: 500 12.5px ui-monospace, 'Cascadia Code', Consolas, monospace; background: var(--surface-3); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; word-break: break-all; }

/* ---------- Barra de ferramentas e abas ---------- */
.ferr { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.ferr .procura { position: relative; flex: 1 1 220px; max-width: 380px; }
.ferr .procura svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.ferr .procura .ctl { padding-left: 38px; height: 40px; }
.ferr select.ctl { width: auto; height: 40px; max-width: 200px; } .ferr input[type="date"].ctl, .ferr input[type="month"].ctl { width: auto; height: 40px; }
.abas { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 -14px 18px; padding: 0 14px; overflow-x: auto; scrollbar-width: none; }
.abas::-webkit-scrollbar { display: none; }
.abas a { padding: 10px 12px; font-weight: 550; color: var(--ink-3); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; display: flex; gap: 7px; align-items: center; }
.abas a:hover { color: var(--ink); } .abas a.ativo { color: var(--brand-ink); border-color: var(--brand); }
@media (min-width: 960px) { .abas { margin-inline: 0; padding: 0; } }

/* ---------- Tabelas (viram cartões no celular) ---------- */
.tabela-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tabela { width: 100%; border-collapse: collapse; }
.tabela th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); padding: 11px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabela td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tbody tr { transition: background .12s; } .tabela tbody tr.clic { cursor: pointer; } .tabela tbody tr.clic:hover { background: var(--surface-2); }
.tabela tfoot td { font-weight: 650; background: var(--surface-2); border-top: 1px solid var(--line); }
.tabela .dir { text-align: right; }
.tabela-rolagem { overflow-x: auto; }
.tabela-pe { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px; }
@media (max-width: 719px) {
  .tabela.resp thead { display: none; }
  .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(--line); position: relative; }
  .tabela.resp tr:last-child { border-bottom: 0; }
  .tabela.resp td { padding: 2px 0; border: 0; display: flex; justify-content: space-between; gap: 14px; text-align: right; }
  .tabela.resp td::before { content: attr(data-r); color: var(--ink-3); font-size: 12.5px; text-align: left; flex: none; }
  .tabela.resp td.titulo { display: block; text-align: left; font-weight: 600; font-size: 14.5px; padding-bottom: 5px; }
  .tabela.resp td.titulo::before, .tabela.resp td:empty { display: none; }
  .tabela.resp tfoot { display: block; } .tabela.resp tfoot tr { background: var(--surface-2); }
}

/* ---------- Modais, painéis e avisos ---------- */
.modal-fundo { position: fixed; inset: 0; z-index: 100; background: rgba(11, 18, 32, .5); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; animation: surge .2s; }
.modal { background: var(--surface); width: 100%; max-height: 94dvh; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; box-shadow: var(--shadow-3); animation: sobe .32s var(--ease); }
@keyframes sobe { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; }
.modal-cab h2 { font-size: 17px; } .modal-cab p { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.modal-corpo { padding: 6px 18px 18px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.modal-pe { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); border-radius: 0 0 22px 22px; }
.modal-pe .esq-pe { margin-right: auto; }
.modal.saindo { animation: desce .2s ease-in forwards; } .modal-fundo.saindo { animation: some .2s forwards; }
@keyframes desce { to { transform: translateY(30px); opacity: 0; } } @keyframes some { to { opacity: 0; } }
@media (min-width: 720px) {
  .modal-fundo { align-items: center; padding: 24px; }
  .modal { max-width: 560px; border-radius: 22px; max-height: min(88dvh, 860px); animation-name: abre; }
  .modal.m { max-width: 720px; } .modal.l { max-width: 940px; } .modal.xl { max-width: 1180px; } .modal.pq { max-width: 420px; }
  @keyframes abre { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
  .modal-cab { padding: 20px 24px 12px; } .modal-corpo { padding: 6px 24px 22px; } .modal-pe { padding: 14px 24px; }
  .modal-fundo.lado { justify-content: flex-end; padding: 0; }
  .modal-fundo.lado .modal { height: 100dvh; max-height: none; border-radius: 22px 0 0 22px; max-width: 520px; animation-name: desliza; }
  .modal-fundo.lado .modal-pe { border-radius: 0 0 0 22px; }
  @keyframes desliza { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}
#toasts { position: fixed; z-index: 200; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 460px; width: fit-content; background: var(--ink); color: var(--surface); padding: 11px 14px 11px 12px; border-radius: 13px; box-shadow: var(--shadow-3); font-weight: 500; font-size: 13.5px; animation: toast-entra .35s var(--ease); }
.toast i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--ok); color: #fff; }
.toast.erro i { background: var(--bad); } .toast.info i { background: var(--brand); }
.toast.saindo { animation: toast-sai .25s ease-in forwards; }
.toast button { color: inherit; opacity: .7; margin-left: 4px; font-weight: 600; text-decoration: underline; }
@keyframes toast-entra { from { transform: translateY(16px) scale(.96); opacity: 0; } } @keyframes toast-sai { to { transform: translateY(8px); opacity: 0; } }
@media (min-width: 960px) { #toasts { bottom: 24px; left: auto; right: 24px; align-items: flex-end; } }
.pop { position: fixed; z-index: 120; min-width: 210px; max-width: min(360px, calc(100vw - 20px)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-3); padding: 6px; animation: entra .18s var(--ease); max-height: 70dvh; overflow: auto; }
.pop button, .pop a { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; color: var(--ink); font-weight: 500; text-align: left; }
.pop button:hover, .pop a:hover { background: var(--surface-3); } .pop .perigo { color: var(--bad); } .pop hr { border: 0; border-top: 1px solid var(--line); margin: 5px 0; }
.pop-tit { padding: 8px 10px 4px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.paleta { max-width: 600px !important; align-self: flex-start; margin-top: 8dvh; border-radius: 18px !important; }
.paleta input { width: 100%; border: 0; background: none; height: 54px; padding: 0 18px 0 48px; font-size: 16px; outline: none; }
.paleta .lupa { position: absolute; left: 18px; top: 17px; color: var(--ink-3); }
.paleta-res { border-top: 1px solid var(--line); max-height: 52dvh; overflow: auto; padding: 6px; }
.paleta-res a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.paleta-res a.foco, .paleta-res a:hover { background: var(--surface-3); }

/* ---------- Entrada (login e cadastro) ---------- */
.entrada { min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
.entrada-form { display: flex; flex-direction: column; justify-content: center; padding: 32px 22px; max-width: 460px; width: 100%; margin: 0 auto; animation: entra .5s var(--ease); }
.entrada-lado { display: none; position: relative; overflow: hidden; background: linear-gradient(150deg, #1e40af, #2563eb 55%, #60a5fa); color: #fff; padding: 56px; flex-direction: column; justify-content: flex-end; }
.entrada-lado h2 { font-size: 34px; line-height: 1.12; letter-spacing: -.03em; font-weight: 650; max-width: 520px; }
.entrada-lado p { opacity: .85; margin-top: 14px; max-width: 460px; font-size: 15.5px; }
.entrada-lado ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; font-size: 14.5px; }
.entrada-lado li { display: flex; gap: 10px; align-items: center; opacity: .95; }
.entrada-lado .bolha { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .09); }
@media (min-width: 1000px) { .entrada { grid-template-columns: minmax(420px, 44%) 1fr; } .entrada-lado { display: flex; } }

/* ---------- Agenda ---------- */
.ag-barra { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ag-data { font-weight: 650; font-size: 16px; letter-spacing: -.01em; padding: 6px 10px; border-radius: 10px; display: flex; gap: 6px; align-items: center; } .ag-data:hover { background: var(--surface-3); }
.ag-quadro { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: auto; position: relative; max-height: calc(100dvh - var(--top) - 190px); min-height: 380px; overscroll-behavior: contain; }
.ag-grade { display: grid; min-width: fit-content; position: relative; }
.ag-cabecas { display: contents; }
.ag-cabeca { position: sticky; top: 0; z-index: 6; background: var(--surface); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); padding: 10px 12px; display: flex; align-items: center; gap: 9px; min-width: 0; }
.ag-cabeca.hoje b { color: var(--brand-ink); }
.ag-canto { position: sticky; left: 0; top: 0; z-index: 8; background: var(--surface); border-bottom: 1px solid var(--line); }
.ag-horas { position: sticky; left: 0; z-index: 5; background: var(--surface); }
.ag-hora { font-size: 11px; color: var(--ink-3); text-align: right; padding: 0 8px; transform: translateY(-7px); font-variant-numeric: tabular-nums; }
.ag-col { position: relative; border-left: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px); }
.ag-col .fora { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 6px, var(--surface-3) 6px, var(--surface-3) 12px); opacity: .75; pointer-events: none; }
.ag-col .bloq { position: absolute; left: 3px; right: 3px; border-radius: 9px; background: repeating-linear-gradient(135deg, var(--surface-3), var(--surface-3) 6px, var(--line) 6px, var(--line) 12px); color: var(--ink-2); font-size: 11.5px; padding: 4px 8px; overflow: hidden; z-index: 1; cursor: pointer; }
.ag-col .vago { position: absolute; left: 3px; right: 3px; border-radius: 9px; border: 1.5px dashed var(--brand); background: var(--brand-soft); opacity: 0; pointer-events: none; display: grid; place-items: center; color: var(--brand-ink); font-size: 12px; font-weight: 600; z-index: 1; transition: opacity .1s; }
.ag-col:hover .vago.vis { opacity: 1; }
.ag-ev { position: absolute; border-radius: 10px; padding: 5px 8px 5px 10px; font-size: 12px; line-height: 1.3; overflow: hidden; cursor: pointer; z-index: 2; background: var(--brand-soft); color: var(--ink); border: 1px solid transparent; transition: box-shadow .15s, transform .15s, filter .15s; text-align: left; display: block; }
.ag-ev::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cor, var(--brand)); border-radius: 10px 0 0 10px; }
.ag-ev:hover { box-shadow: var(--shadow-2); z-index: 4; filter: saturate(1.15); }
.ag-ev b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-ev span { display: block; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-ev.s-confirmado { background: var(--ok-soft); } .ag-ev.s-aguardando { background: var(--warn-soft); } .ag-ev.s-em_atendimento { background: var(--violet-soft); }
.ag-ev.s-concluido { background: var(--surface-3); color: var(--ink-2); } .ag-ev.s-faltou { background: var(--bad-soft); } .ag-ev.s-faltou b { text-decoration: line-through; }
.ag-ev.arrastando { opacity: .5; } .ag-ev .enc { position: absolute; right: 6px; top: 5px; color: var(--warn); }
.ag-agora { position: absolute; left: 0; right: 0; height: 2px; background: var(--bad); z-index: 3; pointer-events: none; } .ag-agora::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.ag-mes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ag-mes .sem { padding: 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); text-align: center; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ag-dia { min-height: 64px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; display: flex; flex-direction: column; gap: 4px; transition: background .12s; min-width: 0; }
.ag-dia:nth-child(7n) { border-right: 0; } .ag-dia:hover { background: var(--surface-2); } .ag-dia.outro { opacity: .38; }
.ag-dia .n { font-weight: 600; font-size: 13px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; } .ag-dia.hoje .n { background: var(--brand); color: #fff; }
.ag-dia .qt { font-size: 11px; color: var(--brand-ink); background: var(--brand-soft); border-radius: 6px; padding: 1px 6px; width: fit-content; font-weight: 600; }
.ag-dia .mini-ev { display: none; }
@media (min-width: 800px) { .ag-dia { min-height: 112px; padding: 8px; } .ag-dia .mini-ev { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 8px; border-left: 3px solid var(--cor, var(--brand)); color: var(--ink-2); } .ag-dia .qt { display: none; } }
.ag-lista .dia-tit { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin: 16px 2px 8px; }
.ag-cartao { display: flex; gap: 12px; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 8px; cursor: pointer; text-align: left; width: 100%; position: relative; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.ag-cartao:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.ag-cartao::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cor, var(--brand)); }
.ag-cartao .h { font-weight: 650; font-variant-numeric: tabular-nums; min-width: 46px; } .ag-cartao .h small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; }
.horarios { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.horarios button { height: 40px; border-radius: 10px; border: 1px solid var(--line-2); font-weight: 550; font-variant-numeric: tabular-nums; background: var(--surface); transition: all .12s; }
.horarios button:hover { border-color: var(--brand); color: var(--brand-ink); } .horarios button.ativo { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Comanda (PDV) ---------- */
.pdv { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1040px) { .pdv { grid-template-columns: minmax(0, 1fr) 380px; } .pdv-resumo { position: sticky; top: calc(var(--top) + 12px); } }
.cat-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cat-item { text-align: left; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); transition: all .12s; min-width: 0; }
.cat-item:hover { border-color: var(--brand); box-shadow: var(--ring); } .cat-item:active { transform: scale(.98); }
.cat-item b { display: block; font-weight: 550; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cat-item small { color: var(--ink-3); }
.pdv-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pdv-item:last-child { border-bottom: 0; }
.qtd { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; height: 32px; }
.qtd button { width: 30px; height: 100%; color: var(--ink-2); } .qtd button:hover { background: var(--surface-3); } .qtd span { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.total-linha { display: flex; justify-content: space-between; padding: 4px 0; color: var(--ink-2); } .total-linha.g { font-size: 20px; font-weight: 650; color: var(--ink); padding-top: 12px; margin-top: 8px; border-top: 1px dashed var(--line-2); letter-spacing: -.02em; }
.pg-forma { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.pg-forma button { padding: 12px 8px; border-radius: 12px; border: 1px solid var(--line-2); font-weight: 550; font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: all .12s; }
.pg-forma button:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
.qr { background: #fff; padding: 12px; border-radius: 16px; width: fit-content; margin: 0 auto; border: 1px solid var(--line); } .qr svg, .qr img { display: block; width: 210px; height: 210px; }

/* ---------- Gráficos ---------- */
.graf { width: 100%; height: 220px; display: block; overflow: visible; }
.graf .eixo { stroke: var(--line); stroke-width: 1; } .graf text { fill: var(--ink-3); font-size: 10.5px; font-family: var(--fonte); }
.graf .area { fill: url(#grad-area); } .graf .traco { fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.graf .barra { fill: var(--brand); rx: 4; transition: opacity .15s; } .graf .barra.b2 { fill: var(--bad); opacity: .75; } .graf .barra.prev { opacity: .28; } .graf .col-alvo { fill: transparent; } .graf .col-alvo:hover + g .barra, .graf g:hover .barra { opacity: .7; }
.graf-dica { position: fixed; z-index: 150; background: var(--ink); color: var(--surface); font-size: 12px; padding: 6px 9px; border-radius: 8px; pointer-events: none; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); font-weight: 500; }
.rank { display: grid; gap: 12px; } .rank-l { display: grid; gap: 5px; } .rank-l .linha-sp { font-size: 13px; }
.legenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); } .legenda i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; background: var(--brand); }
.anel { --p: 0; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--surface-3) 0); display: grid; place-items: center; flex: none; } .anel::before { content: attr(data-t); width: 48px; height: 48px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 12px; font-weight: 650; }

/* ---------- Diversos ---------- */
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.foto { aspect-ratio: 1; border-radius: 14px; background: var(--surface-3) center/cover; position: relative; overflow: hidden; cursor: zoom-in; border: 1px solid var(--line); }
.foto span { position: absolute; left: 6px; top: 6px; } .foto small { position: absolute; inset: auto 0 0 0; padding: 14px 8px 6px; color: #fff; font-size: 11.5px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
.estrelas { display: inline-flex; gap: 2px; color: #f5b301; } .estrelas .off { color: var(--line-2); }
.perm { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, 52px); gap: 4px 6px; align-items: center; } .perm .cab-p { font-size: 11px; color: var(--ink-3); text-align: center; font-weight: 600; } .perm input { width: 18px; height: 18px; accent-color: var(--brand); justify-self: center; }
.dias { display: grid; gap: 8px; } .dia-l { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; } .dia-l .hs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .dia-l .ctl { width: 104px; height: 36px; }
.notif { width: min(380px, calc(100vw - 20px)); } .notif .item { align-items: flex-start; padding: 10px; border-radius: 10px; border: 0; } .notif .nova { background: var(--brand-soft); }
.tl { position: relative; padding-left: 22px; } .tl::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); border-radius: 2px; }
.tl-i { position: relative; padding: 0 0 16px; } .tl-i::before { content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }
.destaque-num { font-size: 30px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.grade-rel { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.rel-c { padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); display: flex; gap: 12px; color: inherit; transition: all .15s; } .rel-c:hover { border-color: var(--brand); box-shadow: var(--ring); transform: translateY(-1px); }
.rel-c i { width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; flex: none; }

/* ---------- Página pública de agendamento ---------- */
.pub { max-width: 720px; margin: 0 auto; padding: 0 16px 120px; }
.pub-topo { padding: 28px 0 18px; display: flex; gap: 14px; align-items: center; }
.pub-passos { display: flex; gap: 6px; margin: 6px 0 20px; } .pub-passos i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; } .pub-passos i.ok { background: var(--brand); }
.pub-op { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 8px; transition: all .15s; }
.pub-op:hover { border-color: var(--line-2); } .pub-op.ativo { border-color: var(--brand); box-shadow: var(--ring); background: var(--brand-soft); }
.pub-op .marcar { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); flex: none; display: grid; place-items: center; color: #fff; } .pub-op.ativo .marcar { background: var(--brand); border-color: var(--brand); }
.pub-pe { position: fixed; inset: auto 0 0 0; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); z-index: 30; }
.pub-pe > div { max-width: 720px; margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.dias-rol { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; scroll-snap-type: x proximity; } .dias-rol::-webkit-scrollbar { display: none; }
.dias-rol button { flex: none; width: 62px; padding: 10px 0; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; gap: 2px; scroll-snap-align: start; transition: all .12s; }
.dias-rol button small { font-size: 11px; color: var(--ink-3); text-transform: uppercase; font-weight: 600; } .dias-rol button b { font-size: 17px; font-weight: 650; }
.dias-rol button.ativo { background: var(--brand); border-color: var(--brand); color: #fff; } .dias-rol button.ativo small { color: rgba(255, 255, 255, .8); }
.sucesso-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; animation: pop .5s var(--ease); } @keyframes pop { from { transform: scale(.5); opacity: 0; } }

/* ---------- Impressão (recibos e relatórios) ---------- */
#impressao { display: none; }
@media print {
  body.imprimindo > *:not(#impressao) { display: none !important; }
  body.imprimindo { background: #fff; color: #000; }
  body.imprimindo #impressao { display: block; font: 12px/1.45 var(--fonte); color: #000; }
  #impressao h1 { font-size: 17px; } #impressao h2 { font-size: 13px; margin-top: 12px; }
  #impressao table { width: 100%; border-collapse: collapse; margin-top: 8px; } #impressao th, #impressao td { text-align: left; padding: 5px 6px; border-bottom: 1px solid #ccc; font-size: 11.5px; } #impressao .dir { text-align: right; }
  #impressao .recibo { max-width: 78mm; margin: 0 auto; } #impressao hr { border: 0; border-top: 1px dashed #777; margin: 8px 0; }
  @page { margin: 12mm; }
}
