/* =====================================================================
 * SUITE-ELITE-V1 (31/10/2026) — cara da Suite (discador) com a marca Elite STJ.
 * Molde: designsystems/suite.md (fundo #0a0b0a, painel #111312, borda #242826,
 * acento roxo #9b29f9, fonte Inter, cantos de 8px, muito respiro).
 * Camada SÓ visual, carregada por último: troca os tokens do Carbon e desfaz
 * o "tudo retangular" do CARBON-AZUL-V1. Reverter = tirar o import no layout.
 * Seletores com "html" na frente para vencer :root / [data-theme] do Carbon.
 * ===================================================================== */

html:root {
  --bg: #0a0b0a; --bg-elevated: #0d0f0e; --surface: #111312; --surface-hover: #171918; --surface-elevated: #1b1e1c;
  --border: #242826; --border-strong: #363b38;
  --text: #f1f4f1; --text-secondary: #c2c9c4; --text-muted: #8a938e;
  --accent: #9b29f9; --accent-hover: #b45cff; --accent-bg: rgba(155, 41, 249, .14);
  --success: #3ecf8e; --success-bg: rgba(62, 207, 142, .12);
  --warning: #f5b740; --warning-bg: rgba(245, 183, 64, .12);
  --danger: #f26d6d; --danger-bg: rgba(242, 109, 109, .12);
  --info: #6ea8ff;
  --accent-rgb: 155, 41, 249; --primary-rgb: 155, 41, 249;
  --header-bg-blur: rgba(10, 11, 10, .92);
  --radius: 8px; --radius-sm: 6px; --radius-lg: 12px;
  --shadow-sm: none; --shadow-md: 0 6px 20px rgba(0, 0, 0, .35); --shadow-lg: 0 12px 32px rgba(0, 0, 0, .45);
  --fonte-suite: Inter, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}
html[data-theme="light"] {
  --bg: #f7f8f7; --bg-elevated: #ffffff; --surface: #ffffff; --surface-hover: #f1f3f1; --surface-elevated: #ffffff;
  --border: #e3e6e3; --border-strong: #c9cec9;
  --text: #141615; --text-secondary: #3b403d; --text-muted: #646b66;
  --accent: #8a1ee8; --accent-hover: #7414c9; --accent-bg: rgba(155, 41, 249, .10);
  --success: #12875a; --success-bg: rgba(18, 135, 90, .10);
  --warning: #a86a00; --warning-bg: rgba(168, 106, 0, .10);
  --danger: #c93434; --danger-bg: rgba(201, 52, 52, .08);
  --info: #2f6fd6;
  --header-bg-blur: rgba(247, 248, 247, .92);
  --shadow-md: 0 6px 20px rgba(16, 18, 16, .08); --shadow-lg: 0 12px 32px rgba(16, 18, 16, .12);
}

/* ---------- fonte Inter (do sistema; sem baixar nada) ---------- */
html body, html body :is(button, input, select, textarea) { font-family: var(--fonte-suite); }
html body { -webkit-font-smoothing: antialiased; letter-spacing: -.003em; }

/* ---------- cantos: volta o raio da Suite (o Carbon zerava tudo) ---------- */
/* a regra do Carbon tem 11 :not() de força; o :not(#suite) (força de id) passa por cima dela */
html:not(#suite) body :is(.card, .secao, .kpi, .panel, .box, .table-wrap, .toolbar-pro, .hero-card-pro, .cx-aviso, .cx-drop, .admin-modal-box,
  .rt-dropdown, .rt-toast, .sidebar-user, .sidebar-logout, .nav-link, .sidebar-sec > summary, .btn, .hero-card-btn, .hero-card-visual,
  .login-box, .login-erro, .field-box .fi-ico, a.idx-tela, .qr-box, .cx-drop-mini, .theme-toggle, .rt-bell, .hamburger-btn, .nm-close, .dash-kpi-ico, .foto-placeholder, .login-form button.entrar) {
  border-radius: var(--radius) !important;
}
html:not(#suite) body :is(input, select, textarea):not([type=checkbox]):not([type=radio]) { border-radius: var(--radius-sm) !important; }
html:not(#suite) body :is(.badge, .st-pill, .chip-pro, .uf-chip, .nav-badge, .login-eyebrow, .login-greet, .rt-item .tipo, .cx-kbd, .badge-count, .label-mini, .hero-card-status) { border-radius: 9999px !important; }
html:not(#suite) body :is(.avatar, .avatar-init, .status-dot, .dot) { border-radius: 50% !important; }

/* ---------- casca: menu lateral + topo ---------- */
html body .sidebar { background: var(--surface); border-right-color: var(--border); }
.sidebar-brand { border-bottom-color: var(--border); }
.sidebar-brand .logo { width: 112px; }
html body .sidebar-brand .subtitle { color: var(--accent-hover); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.sidebar-user { background: var(--surface-hover); }
.sidebar-user .avatar { background: var(--accent-bg); color: var(--accent-hover); }
.sidebar-sec > summary .sec-label { letter-spacing: .12em; }
html body .sidebar a.nav-link { color: var(--text-muted); font-weight: 500; transition: background .12s, color .12s; }
html body .sidebar a.nav-link:hover { background: var(--surface-hover); color: var(--text); }
html body .sidebar a.nav-link.active { background: var(--accent-bg); color: var(--accent-hover); box-shadow: none; }
html body .sidebar a.nav-link.active .icon { color: var(--accent-hover); }
.sidebar-status .status-dot { background: var(--success); }
html body .header { background: var(--header-bg-blur); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
html body .header h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
/* eyebrow da Suite: rótulo roxo MAIÚSCULO acima do título */
.header .eyebrow { color: var(--accent-hover); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 2px; }
html body .content { padding-top: 24px; }

/* ---------- cards e seções ---------- */
html body .card, html body .secao { background: var(--surface); border: 1px solid var(--border); box-shadow: none !important; }
html body .card:hover { transform: none; border-color: var(--border-strong); box-shadow: none !important; }
.card::before { display: none; }
html body .card .label { color: var(--text-muted); letter-spacing: .1em; }
/* número do KPI neutro; cor só quando pede atenção (aviso/perigo) ou no destaque — 4 cores na mesma linha disputavam o olho */
html body :is(.card.accent, .card.success) .valor { color: var(--text); }
html body .card.cx-destaque.success .valor { color: var(--success); }
html body .secao { padding: 24px; }
html body .secao-header { border-bottom-color: var(--border); }
.secao h2 { font-size: 15px; }
.cx-plano.card.gold { box-shadow: 0 0 0 1px var(--accent) inset !important; border-color: var(--accent); }

/* ---------- botões: 1 primário roxo, secundário com borda, fantasma ---------- */
html body .btn, html body .hero-card-btn { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); border: 1px solid var(--accent); color: #fff; font-weight: 600; box-shadow: none; transition: background .12s, border-color .12s, color .12s; }
html body .btn:hover, html body .hero-card-btn:hover { background: var(--accent-hover) !important; border-color: var(--accent-hover) !important; color: #fff; }
html body .btn:active { background: var(--accent) !important; filter: brightness(.92); }
html body :is(.btn.ghost, .btn.secondary, .hero-card-btn.ghost) { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
html body :is(.btn.ghost, .btn.secondary, .hero-card-btn.ghost):hover { background: var(--surface-hover) !important; border-color: var(--border-strong) !important; color: var(--text); }
html body a.btn.ghost:hover { color: var(--text); }
html body .btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
html body .btn.danger:hover { background: var(--danger) !important; border-color: var(--danger) !important; filter: brightness(1.08); }
html body .btn:disabled { opacity: .5; }

/* ---------- campos: borda inteira, foco roxo (o Carbon só tinha a linha de baixo) ---------- */
html body :is(input, select, textarea):not([type=checkbox]):not([type=radio]):not([type=file]) { background: var(--bg); border: 1px solid var(--border); }
html body :is(input, select, textarea):not([type=checkbox]):not([type=radio]):focus { border-color: var(--accent); outline: 2px solid var(--accent-bg); outline-offset: 0; }
html body :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--danger); outline: 2px solid var(--danger-bg) !important; outline-offset: 0; }
html body [type=checkbox], html body [type=radio] { accent-color: var(--accent); }

/* ---------- abas / chips de filtro: sublinhado e pílula roxa ---------- */
html body .chip-pro { background: var(--surface); border: 1px solid var(--border); color: var(--text-secondary); }
html body .chip-pro:hover { border-color: var(--border-strong); color: var(--text); }
html body .chip-pro.chip-pro--active { background: var(--accent-bg); border-color: var(--accent); color: var(--accent-hover); }
html body .uf-chip.active { background: var(--accent-bg); border-color: var(--accent); color: var(--accent-hover); }
html body .toolbar-pro { background: var(--surface); border: 1px solid var(--border); }

/* ---------- tabelas ---------- */
html body .table-wrap { border-color: var(--border); background: var(--surface); }
html body thead th { background: transparent; color: var(--text-muted); font-weight: 500; font-size: 12px; border-bottom: 1px solid var(--border); }
html body td { border-bottom-color: var(--border); }
html body tbody tr:hover td { background: var(--surface-hover); }
.table-wrap tbody tr:last-child td { border-bottom: 0; }

/* ---------- avisos, toast e janela própria (nunca alert/confirm do navegador) ---------- */
.cx-aviso { border-left-width: 1px; box-shadow: inset 3px 0 0 var(--accent); }
.cx-aviso.ok { box-shadow: inset 3px 0 0 var(--success); }
.cx-aviso.warn { box-shadow: inset 3px 0 0 var(--warning); }
.cx-aviso.danger { box-shadow: inset 3px 0 0 var(--danger); }
html body .rt-toast { background: var(--surface-elevated); border: 1px solid var(--border-strong); border-left: 3px solid var(--accent); box-shadow: var(--shadow-lg); }
html body .rt-toast.tipo-erro { border-left-color: var(--danger); }
html body .admin-modal-bg { background: rgba(0, 0, 0, .6); backdrop-filter: blur(2px); }
html body .nm-close { width: 40px !important; height: 40px; min-height: 0 !important; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; }
html body .admin-modal-box { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
html body .rt-dropdown { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.rt-bell .badge-count { background: var(--accent); }
html body .rt-item .tipo { background: var(--accent-bg); color: var(--accent-hover); }

/* ---------- barras e gráficos ---------- */
html body .nm-period-bar .fill { background: var(--accent); }
html body .hero-card-visual { width: 72px; height: 72px; background: var(--accent-bg); }
html body .hero-card-illustration { width: 48px; height: 48px; }

/* ---------- login: caixa da Suite com o leão do Elite ---------- */
html body .login-box { background: var(--surface) !important; border: 1px solid var(--border) !important; border-top: 1px solid var(--border) !important; box-shadow: var(--shadow-lg) !important; }
html body .login-form input { background: var(--bg) !important; border: 1px solid var(--border) !important; }
html body .login-form input:focus { border-color: var(--accent) !important; outline: 2px solid var(--accent-bg) !important; outline-offset: 0; }
html body .login-form button.entrar { background: var(--accent) !important; }
html body .login-form button.entrar:hover { background: var(--accent-hover) !important; }
html body :is(.login-eyebrow, .login-greet) { background: var(--accent-bg) !important; border-color: transparent !important; color: var(--accent-hover) !important; }
html body .field-box .fi-ico { background: transparent !important; color: var(--text-muted); }
.login-links a, .login-links .link-btn, .login-form .termos-ler .link-btn, .login-form .rotulo-linha .link-btn { color: var(--accent-hover); }

html:not(#suite) body .login-form .codigo-2fa input { border-radius: var(--radius-sm) !important; }

/* ---------- foco visível roxo ---------- */
html body .btn:focus-visible, html body a:focus-visible, html body button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- celular: sem corte, respiro menor (padding da Suite: 12px) ---------- */
@media (max-width: 768px) {
  html body .secao { padding: 16px; }
  html body .header h1 { font-size: 18px; }
  .header .eyebrow { display: none; }
  html body .sidebar { box-shadow: var(--shadow-lg); }
}

/* =====================================================================
 * SUITE-ELITE-V2 (31/10/2026) — auditoria visual (prints + revisão do ChatGPT)
 * ===================================================================== */

/* cartão do usuário na lateral: código em Inter numa linha só (mono 10px quebrava) */
html body .sidebar-user .id { font-family: var(--fonte-suite); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* destaque (hero): tons pelos tokens (antes azul/verde do Tailwind) e selo como pílula acima do título */
html body .hero-card-pro { background: var(--surface); }
html body .hero-card-pro.tone-info .hero-card-visual { background: rgba(110, 168, 255, .12); }
html body .hero-card-pro.tone-info .hero-card-illustration { color: var(--info); }
html body .hero-card-pro.tone-success .hero-card-visual { background: var(--success-bg); }
html body .hero-card-pro.tone-success .hero-card-illustration { color: var(--success); }
html body .hero-card-pro.tone-warning .hero-card-visual { background: var(--warning-bg); }
html body .hero-card-pro.tone-warning .hero-card-illustration { color: var(--warning); }
html body .hero-card-pro.tone-danger .hero-card-visual { background: var(--danger-bg); }
html body .hero-card-pro.tone-danger .hero-card-illustration { color: var(--danger); }
html body .hero-card-content .hero-card-status { position: static; display: inline-flex; align-items: center; height: 22px; margin-bottom: 6px; padding: 0 10px; border-radius: 9999px; background: var(--surface-hover); border: 1px solid var(--border); color: var(--text-muted); font-size: 11px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }

/* esqueleto de carregando: dava para ver só de perto */
html body .cx-skel { background: linear-gradient(90deg, var(--border) 0%, var(--border-strong) 50%, var(--border) 100%); background-size: 200% 100%; border-radius: 6px; }
html[data-theme="light"] body .cx-skel { background: linear-gradient(90deg, var(--surface-hover) 0%, var(--border) 50%, var(--surface-hover) 100%); background-size: 200% 100%; }
@media (prefers-reduced-motion: reduce) { html body .cx-skel { animation: none; } }

/* atalhos dentro de uma coluna da grade: cabem 2 por linha (3 espremidos quebravam "Libe/rar") */
html body .cx-grade > .dash-kpis { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); align-content: start; }

/* barras de rolagem finas no tom da borda (filtros e tabelas que rolam de lado) */
html body :is(.filter-row, .table-wrap, table) { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }

/* rodapé da tabela e textos de apoio no tamanho certo */
html body .cx-rodape-tabela { color: var(--text-muted); }

@media (max-width: 768px) {
  /* o painel.css força h2 18-26px e p 13-16px com !important: títulos de seção ficavam maiores que no PC */
  html body .content .secao h2, html body .content .hero-card-title { font-size: 16px !important; line-height: 1.35 !important; }
  html body .content p { font-size: 14px !important; line-height: 1.5 !important; }
  html body .content p.desc, html body .content .secao .desc { font-size: 12px !important; }
  html body .content p.cx-rodape-tabela { font-size: 12px !important; }
  html body .content .hero-card-description { font-size: 13px !important; }
  html body .header .subtitle { font-size: 13px !important; }

  /* gráfico: o painel.css dava padding e overflow ao ".recharts-responsive-container" (casa com [class*=container]) e o gráfico sumia */
  html body .content .recharts-responsive-container { padding-left: 0 !important; padding-right: 0 !important; overflow: visible !important; max-width: none !important; }
  html body .content .recharts-wrapper, html body .content .recharts-wrapper * { max-width: none; }
  html body .content .recharts-surface { height: 100% !important; }
  html body .content .recharts-legend-item-text { white-space: nowrap; }

  /* KPIs 2x2: com número ímpar o último ocupa a linha toda */
  html body .cards.cx-kpis-2x2:not(:has(> .cx-destaque)) > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* destaque no celular: botões do mesmo tamanho, um embaixo do outro */
  html body .hero-card-actions { flex-direction: column; }
  html body .hero-card-actions .hero-card-btn { width: 100% !important; min-height: 44px; }

  /* formulário: Salvar (principal) vem antes de Limpar */
  html body .cx-acoes.inteira { flex-direction: column-reverse; }
}

/* =====================================================================
 * SUITE-ELITE-V3 (31/10/2026) — revisão geral: sino, dicas, hover e foco
 * ===================================================================== */

/* ---------- sino: botão igual ao do tema, contagem que não corta na borda ---------- */
.sino { position: relative; display: inline-flex; }
html body .header-actions :is(.theme-toggle, .rt-bell) { width: 40px !important; height: 40px; padding: 0; border: 1px solid transparent; color: var(--text-secondary); transition: background .12s, color .12s, border-color .12s; }
html body .header-actions :is(.theme-toggle, .rt-bell):hover { background: var(--surface-hover); border-color: var(--border); color: var(--text); }
html body .header-actions .rt-bell[aria-expanded="true"] { background: var(--accent-bg); border-color: var(--accent); color: var(--accent-hover); }
html body .rt-bell .badge-count { top: 3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; font-size: 10px; font-variant-numeric: tabular-nums; line-height: 1; color: #fff; box-shadow: 0 0 0 2px var(--bg); }

/* lista: abre com leve deslize; alto no máximo 70% da tela */
html body .header-actions .rt-dropdown { width: 380px; max-height: min(480px, 70vh); }
html body .rt-dropdown.open { animation: sino-abre .14s ease-out; }
@keyframes sino-abre { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
html body .rt-dropdown-header { padding: 12px 14px; font-size: 14px; }
.avisos-titulo { display: inline-flex; align-items: center; gap: 8px; }
.avisos-novos { padding: 1px 8px; border-radius: 9999px; background: var(--accent-bg); color: var(--accent-hover); font-size: 11px; font-weight: 600; }
html body .rt-dropdown-header .clear { min-height: 32px !important; padding: 0 6px; border-radius: var(--radius-sm); color: var(--accent-hover); font-size: 12px; font-weight: 500; cursor: pointer; }
html body .rt-dropdown-header .clear:hover { background: var(--accent-bg); color: var(--accent-hover); }
html body ul.rt-list { list-style: none; margin: 0; padding: 0; }

/* item: o link ocupa a linha toda; não lido = ponto roxo, fundo leve e texto forte */
html body .rt-item.aviso { padding: 0; border-left: 0; font-size: 13px; }
html body .rt-item.aviso:hover { background: transparent; }
.aviso-link { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; color: var(--text-secondary); text-decoration: none; transition: background .12s; }
html body .aviso-link:hover, html body .aviso-link:focus-visible { background: var(--surface-hover); color: var(--text); }
html body .aviso-link:focus-visible { outline-offset: -2px; }
.rt-item.aviso.novo .aviso-link { background: var(--accent-bg); color: var(--text); }
html body .rt-item.aviso.novo .aviso-link:hover { background: rgba(var(--accent-rgb), .2); }
.aviso-ponto { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: transparent; }
.rt-item.aviso.novo .aviso-ponto { background: var(--accent); }
html:not(#suite) body .aviso-ponto { border-radius: 50% !important; }
.aviso-corpo { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.aviso-linha { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.aviso-texto { line-height: 1.45; }
.rt-item.aviso.novo .aviso-texto { font-weight: 600; }
html body .rt-item.aviso .tipo { margin: 0; padding: 1px 8px; font-size: 10px; letter-spacing: .04em; }
html body .rt-item.aviso .ts { flex-shrink: 0; font-size: 11px; color: var(--text-muted); }
html body .rt-item.aviso.tom-info .tipo { background: rgba(110, 168, 255, .14); color: var(--info); }
html body .rt-item.aviso.tom-ok .tipo { background: var(--success-bg); color: var(--success); }
html body .rt-item.aviso.tom-warn .tipo { background: var(--warning-bg); color: var(--warning); }
html body .rt-item.aviso.tom-danger .tipo { background: var(--danger-bg); color: var(--danger); }
html body .aviso-link .rt-arrow { flex: 0 0 16px; margin: 2px 0 0; opacity: 0; transition: opacity .12s, transform .12s; }
html body .aviso-link:is(:hover, :focus-visible) .rt-arrow { opacity: 1; color: var(--accent-hover); transform: translateX(2px); }

/* vazio e rodapé */
html body .rt-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 32px 24px; }
.rt-empty svg { color: var(--text-muted); opacity: .7; }
.rt-empty strong { color: var(--text); font-size: 14px; font-weight: 600; }
html body .rt-dropdown .rt-empty .clear { width: auto !important; min-height: 36px !important; margin-top: 6px; padding: 0 12px !important; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
html body .rt-dropdown .rt-empty .clear:hover { background: var(--surface-hover); }
html body .rt-status { padding: 8px 14px; }
.avisos-todos { margin-left: auto; display: inline-flex; align-items: center; min-height: 32px; color: var(--accent-hover); font-size: 12px; font-weight: 600; }
.avisos-todos:hover { text-decoration: underline; }

/* ---------- dica ao passar o mouse (data-dica) nos botões só de ícone ---------- */
[data-dica] { position: relative; }
@media (hover: hover) {
  [data-dica]::after {
    content: attr(data-dica); position: absolute; top: calc(100% + 6px); left: 50%; z-index: 120;
    padding: 4px 8px; border-radius: var(--radius-sm); background: var(--text); color: var(--bg);
    font-size: 11px; font-weight: 500; line-height: 1.4; white-space: nowrap; letter-spacing: 0;
    pointer-events: none; opacity: 0; transform: translate(-50%, -2px); transition: opacity .12s .35s, transform .12s .35s;
  }
  [data-dica]:is(:hover, :focus-visible)::after { opacity: 1; transform: translate(-50%, 0); }
  /* perto da borda direita: abre para a esquerda */
  .header-actions .sino [data-dica]::after { left: auto; right: 0; transform: translateY(-2px); }
  .header-actions .sino [data-dica]:is(:hover, :focus-visible)::after { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html body .rt-dropdown.open { animation: none; }
  [data-dica]::after { transition: none; }
}

@media (max-width: 768px) {
  html body .header .header-actions :is(.theme-toggle, .rt-bell) { width: 40px !important; height: 40px !important; }
  html body .header-actions .rt-dropdown { width: auto !important; max-height: 72vh; }
  .aviso-link { padding: 14px; min-height: 56px; }
}

/* ---------- tabelas: linha acende no mouse, ações aparecem mais fortes na linha ativa ---------- */
html body .table-wrap tbody tr { transition: background .12s; }
html body .table-wrap tbody tr:is(:hover, :focus-within) td { background: var(--surface-hover); }
html body .table-wrap td.acoes .btn.mini.ghost { color: var(--text-secondary); }
html body .table-wrap tbody tr:is(:hover, :focus-within) td.acoes .btn.mini.ghost { color: var(--text); border-color: var(--border-strong); }
html body .table-wrap td.acoes .btn.mini.so-icone:hover { color: var(--danger) !important; border-color: var(--danger) !important; background: var(--danger-bg) !important; }
/* a dica do último botão da linha abre para a esquerda (não sai da tabela) */
@media (hover: hover) {
  .table-wrap td.acoes [data-dica]::after { top: auto; bottom: calc(100% + 6px); left: auto; right: 0; transform: translateY(2px); }
  .table-wrap td.acoes [data-dica]:is(:hover, :focus-visible)::after { transform: none; }
}

/* ---------- celular: cada linha da tabela vira um cartão (antes rolava de lado e cortava status/ações) ---------- */
@media (max-width: 480px) {
  html body .table-wrap.cx-cartoes { overflow: visible; }
  html body .table-wrap.cx-cartoes > table { display: block !important; }
  html body .table-wrap.cx-cartoes > table > thead { display: block !important; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  html body .table-wrap.cx-cartoes > table > tbody { display: block !important; width: 100% !important; }
  html body .table-wrap.cx-cartoes > table > tbody > tr { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
  html body .table-wrap.cx-cartoes > table > tbody > tr:last-child { border-bottom: 0; }
  html body .table-wrap.cx-cartoes > table > tbody > tr > td { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 !important; border: 0 !important; background: transparent !important; white-space: normal; text-align: left; font-size: 13px; }
  html body .table-wrap.cx-cartoes > table > tbody > tr > td::before { content: attr(data-r); flex-shrink: 0; color: var(--text-muted); font-size: 12px; }
  html body .table-wrap.cx-cartoes > table > tbody > tr > td .cx-v { min-width: 0; text-align: right; overflow-wrap: break-word; }
  html body .table-wrap.cx-cartoes > table > tbody > tr > td .cx-v .badge { flex-shrink: 0; white-space: nowrap; }
  /* coluna do nome (advogado/pessoa; senão a 1ª) = título do cartão, sempre no topo e sem rótulo */
  html body .table-wrap.cx-cartoes > table > tbody > tr > td.cx-titulo { order: -1; display: block; font-size: 14px; font-weight: 600; color: var(--text); }
  html body .table-wrap.cx-cartoes > table > tbody > tr > td.cx-titulo::before { content: none; }
  html body .table-wrap.cx-cartoes > table > tbody > tr > td.cx-titulo .cx-v { text-align: left; }
  html body .table-wrap.cx-cartoes > table > tbody > tr > td.cx-titulo .sub { font-weight: 400; }
  html body .table-wrap.cx-cartoes > table > tbody > tr > td.col-secundaria { display: none; }
  /* ações embaixo, com o texto de volta (há espaço no cartão) */
  html body .table-wrap.cx-cartoes > table > tbody > tr > td.acoes { justify-content: flex-end; padding-top: 4px !important; }
  html body .table-wrap.cx-cartoes > table > tbody > tr > td.acoes::before { content: none; }
  html body .table-wrap.cx-cartoes > table > tbody > tr > td.acoes .cx-linha { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  html body .table-wrap.cx-cartoes > table > tbody > tr > td.acoes .btn.mini { min-height: 40px !important; padding: 0 12px !important; gap: 6px; }
  html body .table-wrap.cx-cartoes > table > tbody > tr > td.acoes .btn.mini .col-secundaria { display: inline; }
  html body .table-wrap.cx-cartoes > table > tbody > tr > td.acoes .btn.mini.so-icone { padding: 0 !important; width: 40px !important; }
}
/* rótulo do cartão só para os olhos: o leitor de tela já lê o cabeçalho da coluna */
@supports (content: "a" / "") {
  @media (max-width: 480px) {
    html body .table-wrap.cx-cartoes > table > tbody > tr > td[data-r]:not(.cx-titulo)::before { content: attr(data-r) / ""; }
  }
}

/* ---------- esqueleto: cantos de volta (o Carbon zerava; o avatar saía quadrado) ---------- */
html:not(#suite) body .cx-skel { border-radius: 6px !important; }
html:not(#suite) body .cx-skel.redondo { border-radius: 50% !important; }

/* ---------- trilha "Perfil › Seção" no topo (o 1º item volta ao início do perfil) ---------- */
.header .trilha { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.header .trilha a { color: inherit; text-decoration: none; border-radius: 4px; }
.header .trilha a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.header .trilha span { color: var(--text-muted); }
/* no celular só aparece em tela de detalhe (serve de "voltar"); nas outras o espaço vai para o título */
@media (max-width: 768px) { html body .header .trilha:not(.detalhe) { display: none; } }

/* ---------- troca de tela: conteúdo entra com leve subida (sem piscar) ---------- */
html body main.content { animation: conteudo-entra .18s ease-out; }
@keyframes conteudo-entra { from { opacity: .5; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html body main.content { animation: none; } }

/* ---------- aviso rápido (toast): título em frase normal; no celular ocupa a largura, acima do rodapé ---------- */
html body .rt-toast .titulo { text-transform: none; letter-spacing: 0; font-size: 13px; }
html body .rt-toast .body { font-size: 13px; }
html body .rt-toast.tipo-cpf_consultado { border-left-color: var(--success); }
@media (max-width: 768px) {
  html body .rt-toast-container { left: 12px; right: 12px; bottom: 12px; }
  html body .rt-toast { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { html body .rt-toast, html body .rt-toast.removing { animation: none; } }

/* ---------- linhas e cartões clicáveis: destaque no mouse e no teclado ---------- */
html body a.c-row { transition: background .12s; }
html body a.c-row:is(:hover, :focus-visible) { background: var(--surface-hover); }
html body a.c-row .c-chev { color: var(--text-muted); transition: transform .12s, color .12s; }
html body a.c-row:is(:hover, :focus-visible) .c-chev { color: var(--accent-hover); transform: translateX(2px); }
html body a.c-row:focus-visible { outline-offset: -2px; }
html body a.card.dash-kpi-link:is(:hover, :focus-visible) { border-color: var(--accent); background: var(--surface-hover); }
html body a.card.dash-kpi-link:focus-visible { outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html body a.c-row .c-chev { transition: none; } }
/* celular: sem mouse para ver o texto inteiro, o título da linha quebra em vez de cortar com "…" */
@media (max-width: 480px) { html body .c-row__t1 { white-space: normal; overflow-wrap: anywhere; } }

/* ============================================================
   PADRAO-UNICO-BTN-V1 (03/11/2026) — .btn-pro adotado pela Suite.
   .btn-pro so era estilizado por painel-premium.css (carregado so com opts.premium);
   em rota sem premium o botao ficava SEM visual (bug real). Aqui o suite-elite.css
   (sempre carregado) garante o mesmo visual Suite do .btn, usando variaveis que existem
   em TODO tema (--accent/--surface/--border/--radius/--success/--danger). Append puro:
   nao altera nenhuma regra existente; nao toca o painelWeb.js nem a logica/onclick.
   ============================================================ */
html body .btn-pro {
  min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; font-size: 14px; font-weight: 600; font-family: inherit;
  border-radius: var(--radius, 8px) !important; border: 1px solid var(--border-strong) !important;
  background: var(--surface) !important; color: var(--text) !important;
  cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, color .12s; box-shadow: none !important; transform: none !important;
}
html body .btn-pro:hover { background: var(--surface-hover) !important; border-color: var(--border-strong) !important; }
html body .btn-pro:disabled { opacity: .5; cursor: not-allowed; }
html body .btn-pro.primary { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
html body .btn-pro.primary:hover { background: var(--accent-hover) !important; border-color: var(--accent-hover) !important; }
html body .btn-pro.ghost, html body .btn-pro.secondary { background: var(--surface) !important; border-color: var(--border-strong) !important; color: var(--text) !important; }
html body .btn-pro.ghost:hover, html body .btn-pro.secondary:hover { background: var(--surface-hover) !important; }
html body .btn-pro.success { background: var(--success, #10b981) !important; border-color: transparent !important; color: #fff !important; }
html body .btn-pro.success:hover { filter: brightness(1.08); }
html body .btn-pro.danger { background: var(--danger) !important; border-color: transparent !important; color: #fff !important; }
html body .btn-pro.danger:hover { filter: brightness(1.08); }
html body .btn-pro.sm { padding: 6px 12px; font-size: 13px; min-height: 32px; }
html body .btn-pro.lg { padding: 14px 22px; }
html body .btn-pro:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html body .btn-pro svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Cantos no padrao unico 8px nos botoes pequenos que ficaram em 4/6px (padrao-unico, 03/11) */
html body .btn-confirmar, html body .btn-mini { border-radius: var(--radius, 8px) !important; }
