/* ════════════════════════════════════════════════════════════════════════════
   SISTEMA DO DP · VISUAL
   Camada final do visual, carregada depois de tokens/components/app. Segue a
   referência de painel administrativo escolhida pelo DP: fundo cinza bem
   claro, cartões brancos de borda fina e cantos de 12px, Inter em pesos
   médios, ícones de contorno, azul só na ação principal e no item ativo.
   ════════════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-variable.woff2") format("woff2");
}

:root {
  --brand: #2563eb;
  --brand-strong: #1d4ed8;
  --brand-soft: #eef4ff;
  --navy: #111827;

  --ok-fill: #22c55e;        --ok-soft: #ecfdf3;        --ok-ink: #15803d;
  --attention-fill: #f59e0b; --attention-soft: #fff8eb; --attention-ink: #b45309;
  --critical-fill: #ef4444;  --critical-soft: #fef2f2;  --critical-ink: #dc2626;
  --neutral-fill: #9ca3af;   --neutral-soft: #f3f4f6;   --neutral-ink: #4b5563;
  --info-fill: #2563eb;      --info-soft: #eef4ff;      --info-ink: #1d4ed8;
  --success: #22c55e; --success-soft: #ecfdf3;
  --warning: #f59e0b; --warning-soft: #fff8eb;
  --danger: #ef4444;  --danger-soft: #fef2f2;

  --background: #f5f6f8;
  --surface: #fff;
  --surface-muted: #f7f8fa;
  --text: #111827;
  --text-soft: #6b7280;
  --text-faint: #9ca3af;
  --border: #eaecf0;
  --border-strong: #dfe3e8;
  --tree-line: #d4d9e0;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --sidebar-expanded: 232px;
  --sidebar-collapsed: 68px;
  --topbar-h: 60px;
  --focus-ring: 2px solid color-mix(in srgb, var(--brand) 40%, transparent);
}

body {
  background: var(--background);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  font-feature-settings: "cv11", "ss01";
  letter-spacing: -.005em;
}
strong, b { font-weight: 600; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.015em; }

/* ── Menu lateral ─────────────────────────────────────────────────────────── */
.app-sidebar { border-right: 1px solid var(--border); background: var(--surface); }
.sidebar-brand {
  display: flex; height: var(--topbar-h); align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 14px 0 18px; border-bottom: 0;
}
.sidebar-marca { display: flex; align-items: center; min-width: 0; }
.sidebar-brand .sidebar-logo { width: 112px; }
.sidebar-toggle {
  display: grid; width: 30px; height: 30px; flex: none; place-items: center; border-radius: 8px;
  background: transparent; color: var(--text-faint); cursor: pointer;
}
.sidebar-toggle:hover { background: var(--surface-muted); color: var(--text); }
.sidebar-toggle svg { font-size: 18px; }

.sidebar-nav { gap: 2px; padding: 8px 12px; }
.nav-item {
  min-height: 36px; gap: 10px; padding: 0 10px; border-radius: 8px;
  color: #4b5563; font-size: 13px; font-weight: 500;
}
.nav-item svg { font-size: 18px; color: #6b7280; }
.nav-item:hover { background: var(--surface-muted); color: var(--text); }
.nav-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-item.active svg { color: var(--brand); }
/* Traço azul na borda do menu, na altura do item ativo. */
.nav-item.active::before, .nav-filhos a.active::before {
  position: absolute; top: 7px; bottom: 7px; left: -12px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--brand); content: "";
}
.nav-pai { justify-content: flex-start; }
.nav-pai > span { flex: 1; }
.nav-pai .nav-seta { font-size: 15px; color: var(--text-faint); }
.nav-pai.contem-ativo { color: var(--text); }
.nav-grupo { display: flex; flex-direction: column; }
.nav-filhos { position: relative; margin: 2px 0 4px; padding: 0 0 0 19px; list-style: none; }
/* Linhas da árvore: um tronco vertical e um "galho" curvo para cada item. */
.nav-filhos li { position: relative; padding-left: 16px; }
.nav-filhos li::before {
  position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--tree-line); content: "";
}
.nav-filhos li:last-child::before { bottom: 50%; }
.nav-filhos li::after {
  position: absolute; top: calc(50% - 8px); left: 0; width: 10px; height: 8px;
  border-bottom: 1px solid var(--tree-line); border-left: 1px solid var(--tree-line);
  border-bottom-left-radius: 6px; content: "";
}
.nav-filhos a {
  position: relative; display: flex; min-height: 32px; align-items: center; padding: 0 10px; border-radius: 8px;
  color: #4b5563; font-size: 12.5px; font-weight: 500;
}
.nav-filhos a:hover { background: var(--surface-muted); color: var(--text); }
.nav-filhos a.active { color: var(--brand); font-weight: 600; }
.nav-filhos a.active::before { left: -47px; }
.nav-sep { width: 100%; height: 1px; margin: 10px 0; border: 0; background: var(--border); }

.sidebar-footer { gap: 2px; padding: 8px 12px 14px; border-top: 0; }
.sidebar-cartao {
  position: relative; display: grid; gap: 4px; margin-top: 10px; padding: 16px 14px 14px; overflow: hidden;
  border-radius: 12px; color: #fff;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(96, 140, 255, .35), transparent 60%),
    linear-gradient(160deg, #1e40af 0%, #172554 100%);
}
/* Textura de pontos, como no cartão da referência. */
.sidebar-cartao::before {
  position: absolute; inset: 0; opacity: .18; content: "";
  background-image: radial-gradient(rgba(255,255,255,.7) 1px, transparent 1px); background-size: 10px 10px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.sidebar-cartao > * { position: relative; }
.sidebar-cartao-icone {
  display: grid; width: 28px; height: 28px; margin-bottom: 6px; place-items: center; border-radius: 8px;
  background: #fff; color: var(--brand);
}
.sidebar-cartao-icone svg { font-size: 15px; }
.sidebar-cartao strong { font-size: 13px; }
.sidebar-cartao p { margin: 0; color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.45; }
.sidebar-cartao a {
  display: flex; min-height: 32px; align-items: center; justify-content: center; margin-top: 10px; border-radius: 999px;
  background: linear-gradient(180deg, #3b82f6, #2563eb); box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  color: #fff; font-size: 12px; font-weight: 600;
}
.sidebar-cartao a:hover { background: #3b82f6; }

@container sidebar (max-width: 140px) {
  .sidebar-brand { flex-direction: column; justify-content: center; height: auto; gap: 6px; padding: 14px 0 8px; }
  .sidebar-nav { padding: 8px 0; }
  .nav-item { width: 42px; }
  .nav-item.active::before { left: -13px; }
  .nav-sep { width: 32px; }
  .sidebar-cartao { display: none; }
}

/* ── Barra superior ───────────────────────────────────────────────────────── */
.app-main { --main-pad: 28px; padding: 0 var(--main-pad) 48px; }
.app-header {
  position: sticky; z-index: 80; top: 0; display: flex; height: var(--topbar-h); align-items: center; gap: 14px;
  margin: 0 calc(-1 * var(--main-pad)); padding: 0 var(--main-pad);
  border-bottom: 1px solid var(--border); background: var(--surface);
}
.cab-hamburguer {
  display: none; width: 36px; height: 36px; place-items: center; border-radius: 8px; background: transparent;
  color: var(--text-soft); cursor: pointer;
}
.cab-hamburguer svg { font-size: 20px; }
.cab-busca {
  display: flex; width: min(340px, 100%); height: 36px; align-items: center; gap: 8px; padding: 0 8px 0 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface-muted); color: var(--text-faint);
}
.cab-busca:focus-within { border-color: var(--brand); background: #fff; outline: var(--focus-ring); outline-offset: 0; }
.cab-busca svg { flex: none; font-size: 16px; }
.app-header .cab-busca input {
  min-height: 0; height: 100%; flex: 1; padding: 0; border: 0; background: transparent; color: var(--text); font-size: 13px;
}
.app-header .cab-busca input:focus { outline: 0; }
.cab-busca input::-webkit-search-cancel-button { display: none; }
.cab-busca kbd {
  flex: none; padding: 2px 6px; border: 1px solid var(--border); border-radius: 6px; background: #fff;
  color: var(--text-faint); font-size: 10.5px; font-weight: 500;
}
.cab-acoes { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.cab-menu { position: relative; }
.cab-icone {
  position: relative; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--border);
  border-radius: 999px; background: #fff; color: #4b5563; cursor: pointer;
}
.cab-icone:hover, .cab-icone[aria-expanded="true"] { background: var(--surface-muted); color: var(--text); }
.cab-icone svg { font-size: 17px; }
.cab-contador {
  position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid #fff;
  border-radius: 999px; background: var(--tone); color: #fff; font-size: 10px; font-weight: 600; line-height: 14px; text-align: center;
}
.cab-avatar {
  display: grid; width: 36px; height: 36px; place-items: center; padding: 2px; border: 1px solid var(--border);
  border-radius: 50%; background: #fff; cursor: pointer;
}
.cab-avatar > span {
  display: grid; width: 100%; height: 100%; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: var(--brand-strong); font-size: 11.5px; font-weight: 600;
}
.cab-avatar:hover { border-color: var(--border-strong); }
.cab-avatar.grande { width: 42px; height: 42px; flex: none; cursor: default; }
.cab-popover {
  position: absolute; z-index: 300; top: calc(100% + 8px); right: 0; width: 320px; overflow: hidden;
  border: 1px solid var(--border); border-radius: 12px; background: #fff;
  box-shadow: 0 12px 32px -8px rgba(17, 24, 39, .14), 0 2px 6px rgba(17, 24, 39, .04);
  animation: pop .16s var(--ease);
}
.cab-notificacoes header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.cab-notificacoes header strong { font-size: 13.5px; }
.cab-notificacoes header span { color: var(--text-soft); font-size: 11.5px; }
.cab-notificacoes ul { max-height: 340px; margin: 0; padding: 0 8px 6px; overflow: auto; list-style: none; }
.cab-notificacoes li a {
  display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: start; gap: 10px;
  padding: 9px 8px; border-radius: 8px; font-size: 12.5px; line-height: 1.4;
}
.cab-notificacoes li a:hover { background: var(--surface-muted); }
.cab-notificacoes li i { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--tone); }
.cab-notificacoes time { color: var(--text-faint); font-size: 11px; white-space: nowrap; }
.cab-vazio { margin: 0; padding: 4px 16px 14px; color: var(--text-soft); font-size: 12.5px; }
.cab-rodape {
  display: block; padding: 11px 16px; border-top: 1px solid var(--border); color: var(--brand);
  font-size: 12.5px; font-weight: 600; text-align: center;
}
.cab-rodape:hover { background: var(--surface-muted); }
.cab-conta { width: 270px; padding: 6px; }
.cab-conta-topo { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.cab-conta-topo strong, .cab-conta-topo small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cab-conta-topo strong { font-size: 13px; }
.cab-conta-topo small { color: var(--text-soft); font-size: 11.5px; }
.cab-conta a, .cab-conta button {
  display: flex; width: 100%; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px;
  background: transparent; color: #374151; cursor: pointer; font-size: 13px; font-weight: 500; text-align: left;
}
.cab-conta a:hover, .cab-conta button:hover { background: var(--surface-muted); }
.cab-conta svg { color: var(--text-soft); font-size: 16px; }

/* ── Cabeçalho da página ──────────────────────────────────────────────────── */
.page-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 24px 0 20px;
}
.page-context { display: flex; align-items: center; gap: 12px; min-width: 0; }
.page-context h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.page-context p { margin: 3px 0 0; color: var(--text-soft); font-size: 12.5px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.page-voltar {
  display: grid; width: 36px; height: 36px; flex: none; place-items: center; border: 1px solid var(--border);
  border-radius: 10px; background: #fff; color: #4b5563;
}
.page-voltar:hover { background: var(--surface-muted); color: var(--text); }
.page-voltar svg { font-size: 17px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-actions .button { white-space: nowrap; }

/* ── Botões ───────────────────────────────────────────────────────────────── */
.button {
  min-height: 36px; gap: 7px; padding: 0 14px; border-radius: 8px; font-size: 13px; font-weight: 500;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.button svg { font-size: 16px; }
.button.primary {
  background: linear-gradient(180deg, #3b7bf6 0%, #2563eb 100%); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(37, 99, 235, .35);
}
.button.primary:hover { background: #1d4ed8; }
.button.primary:active { background: #1e40af; }
.button.secondary, .button.tertiary {
  border-color: var(--border-strong); background: #fff; color: #374151; box-shadow: 0 1px 1px rgba(17,24,39,.03);
}
.button.secondary:hover, .button.tertiary:hover { border-color: #cfd4dc; background: var(--surface-muted); color: var(--text); }
.button.small { min-height: 32px; padding: 0 11px; font-size: 12.5px; }
.button.large { min-height: 44px; border-radius: 10px; font-size: 14px; }
.icon-button {
  width: 36px; height: 36px; flex-basis: 36px; border: 1px solid var(--border-strong); border-radius: 8px;
  background: #fff; color: #4b5563;
}
.icon-button:hover { border-color: #cfd4dc; background: var(--surface-muted); color: var(--text); }
.icon-button svg { font-size: 16px; }
.link-button, .text-button { font-size: 12.5px; font-weight: 500; }

/* ── Cartões ──────────────────────────────────────────────────────────────── */
.panel { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.panel-heading { padding: 16px 18px 12px; }
.panel-heading h3, .table-heading h3 { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.panel-heading p, .table-heading p { margin-top: 3px; color: var(--text-soft); font-size: 12px; }
.table-heading { padding: 16px 18px 12px; border-bottom: 0; }

/* Indicadores: título, ícone à direita, número com a variação, frase. */
.kpi-grid { gap: 16px; margin-bottom: 16px; }
.kpi-card { gap: 0; padding: 16px 18px; border-top: 1px solid var(--border); }
.kpi-top { align-items: center; gap: 8px; }
.kpi-label { color: #374151; font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.kpi-icone { display: flex; align-items: center; gap: 6px; color: var(--tone); }
.kpi-card[data-status="neutral"] .kpi-icone, .kpi-card[data-status="info"] .kpi-icone { color: var(--brand); }
.kpi-icone svg { font-size: 17px; }
.kpi-linha { display: flex; align-items: center; gap: 8px; margin: 14px 0 6px; flex-wrap: wrap; }
.kpi-value { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.kpi-value small { margin-left: 3px; color: var(--text-soft); font-size: 13px; font-weight: 500; }
.kpi-delta {
  display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 6px;
  background: var(--tone-soft); color: var(--tone-ink); font-size: 11px; font-weight: 500; letter-spacing: 0;
}
.kpi-delta span { font-size: 8px; }
.kpi-card .plain { min-height: 0; margin: 0; color: var(--text-faint); font-size: 11.5px; line-height: 1.45; }

/* Veredito: faixa clara com marca colorida, no lugar do bloco pesado. */
.command-head { gap: 16px; margin-bottom: 16px; }
.verdict {
  gap: 14px; margin-bottom: 16px; padding: 14px 18px; border: 1px solid var(--border); border-left: 0;
  border-radius: 12px; background: var(--surface); animation: none;
}
.verdict-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--tone-soft); color: var(--tone-ink);
  font-size: 16px; font-weight: 600;
}
.verdict[data-status="critical"] .verdict-mark { animation: none; }
.verdict-copy strong { color: var(--text); font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.verdict-copy p { margin-top: 2px; color: var(--text-soft); font-size: 12.5px; }
.verdict-meta { gap: 0; }
.verdict-meta > div { padding: 0 18px; border-left: 1px solid var(--border); text-align: left; }
.verdict-meta small { color: var(--text-soft); font-size: 11.5px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.verdict-meta strong { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }

/* ── Tabelas ──────────────────────────────────────────────────────────────── */
th {
  padding: 10px 16px; border-bottom: 1px solid var(--border); background: transparent; color: var(--text-faint);
  font-size: 10.5px; font-weight: 500; letter-spacing: .06em;
}
td { padding: 10px 16px; border-top: 0; border-bottom: 1px solid #f1f2f4; color: #374151; font-size: 13px; }
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--text); font-weight: 500; }
.table-sub { margin-top: 2px; color: var(--text-faint); font-size: 11.5px; }
.table-panel tbody tr:hover, .table-panel tbody tr.linha-link:hover { background: #fafbfc; }
.tabela-compacta th { padding: 9px 14px; }
.tabela-compacta td { padding: 10px 14px; }
.app-page td { font-size: 13px; }
.app-page th { font-size: 10.5px; }
.app-page .table-sub { font-size: 11.5px; }
.paginacao { padding: 12px 18px; border-top: 1px solid var(--border); color: var(--text-soft); font-size: 12.5px; }

/* ── Selos, chips e abas ──────────────────────────────────────────────────── */
.status-badge {
  gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; letter-spacing: 0;
}
.chip {
  gap: 6px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: #fff;
  color: var(--text-soft); font-size: 12px; font-weight: 400;
}
.chip b { color: var(--text); font-weight: 600; }
.chip svg { font-size: 13px; }
.view-tabs {
  gap: 20px; margin-bottom: 20px; padding: 0; border: 0; border-bottom: 1px solid var(--border);
  border-radius: 0; background: transparent;
}
.view-tabs > a[role="tab"], .view-tabs > button[role="tab"] {
  position: relative; min-height: 40px; padding: 10px 2px; border-radius: 0; background: transparent;
  color: var(--text-soft); font-size: 13px; font-weight: 500;
}
.view-tabs > a[role="tab"]:hover, .view-tabs > button[role="tab"]:hover { background: transparent; color: var(--text); }
.view-tabs > a[role="tab"].active, .view-tabs > button[role="tab"].active { background: transparent; color: var(--brand); }
.view-tabs > a[role="tab"].active::after, .view-tabs > button[role="tab"].active::after {
  position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--brand); content: "";
}
.segmented { gap: 0; padding: 3px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-muted); }
.segmented a, .segmented button { min-height: 26px; padding: 0 10px; border-radius: 6px; font-size: 12px; font-weight: 500; }
.segmented a.active, .segmented button.active {
  border-color: var(--border); background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(17,24,39,.06);
}
.chips-situacao { gap: 8px; margin-bottom: 16px; }
.chips-situacao a {
  display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; color: #4b5563; font-size: 12.5px; font-weight: 500;
}
.chips-situacao a span { margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--surface-muted); color: var(--text-soft); font-size: 11px; }
.chips-situacao a.active { border-color: #bfd3fe; background: var(--brand-soft); color: var(--brand); }
.chips-situacao a.active span { background: #fff; color: var(--brand); }

/* ── Formulários ──────────────────────────────────────────────────────────── */
input, select, textarea, .app-page input, .app-page select, .app-page textarea {
  min-height: 38px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 8px;
  background: #fff; color: var(--text); font-size: 13px;
}
.app-page input[type="date"] { min-height: 38px; }
select { padding-right: 32px; background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; }
input:hover, select:hover, textarea:hover { border-color: #cfd4dc; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid color-mix(in srgb, var(--brand) 15%, transparent); outline-offset: 0; }
input::placeholder, textarea::placeholder { color: var(--text-faint); }
.input-wrap > span, .input-wrap > svg { left: 12px; color: var(--text-faint); font-size: 13px; }
.input-wrap input { padding-left: 34px !important; }
.field, .select-control { gap: 6px; }
.field > label, .field > span, .select-control > span, .field > .label-row { color: #374151; font-size: 12.5px; font-weight: 500; }
.select-control > span { color: var(--text-soft); font-size: 12px; letter-spacing: 0; text-transform: none; }
.field .dica, .field-hint { color: var(--text-faint); font-size: 11.5px; }
.field .erro { font-size: 12px; font-weight: 500; }
.search-field input { background: #fff; }
.lista-filtros { gap: 12px; margin-bottom: 16px; padding: 14px 16px; }
.lista-filtros .button { min-height: 38px; }
.form-secao-corpo { padding: 6px 18px 18px; }
.form-rodape { background: rgba(255,255,255,.96); }
.check-control > span { width: 16px; height: 16px; border-color: var(--border-strong); border-radius: 4px; }
.check-control { font-size: 13px; font-weight: 400; }

/* ── Avisos ───────────────────────────────────────────────────────────────── */
.aviso {
  align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--tone) 25%, transparent);
  border-radius: 10px; background: var(--tone-soft); color: var(--tone-ink); font-size: 12.5px;
}
.aviso > span { width: 22px; height: 22px; flex-basis: 22px; border-radius: 50%; font-size: 12px; font-weight: 600; }
.aviso strong { font-weight: 600; }
.form-alert { border-radius: 10px; font-size: 12.5px; }

/* ── Listas do painel ─────────────────────────────────────────────────────── */
.alert-row { grid-template-columns: 30px 1fr auto; gap: 12px; padding: 11px 18px; border-top: 1px solid #f1f2f4; }
.alert-row .alert-symbol { width: 30px; height: 30px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.alerta-lista .alert-row strong { font-size: 13px; font-weight: 500; }
.alerta-lista .alert-row small { color: var(--text-faint); font-size: 11.5px; }
.alerta-lista .alert-row time { color: var(--text-soft); font-size: 11.5px; font-weight: 500; }
.lista-pessoas li a { padding: 8px 6px; border-radius: 8px; }
.lista-pessoas strong { font-size: 13px; font-weight: 500; }
.lista-pessoas small { color: var(--text-faint); font-size: 11.5px; }
.lista-pessoas .dia { min-width: 40px; padding: 3px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }
.painel-rodape { color: var(--text-faint); font-size: 11.5px; }
.barra-inline i { height: 8px; border-radius: 999px; }
.barra-inline span { font-size: 12px; font-weight: 500; }
.lista-geracoes .lg-topo { font-size: 13px; }
.geracao-destaque { border-radius: 10px; }
.geracao-destaque strong { font-size: 14px; font-weight: 600; }
.grafico { height: 260px; }

/* ── Ficha ────────────────────────────────────────────────────────────────── */
.ficha-topo { gap: 18px; padding: 18px; }
.ficha-topo h2 { font-size: 20px; font-weight: 600; }
.foto { border-radius: 8px; background: #eef2f7; color: #475569; font-weight: 600; }
.foto.p { width: 32px; height: 32px; border-radius: 8px; font-size: 11px; }
.foto.m { width: 44px; height: 44px; border-radius: 10px; font-size: 13px; }
.foto.g { width: 96px; height: 96px; border-radius: 16px; font-size: 28px; }
.foto[data-status] { outline: 0; box-shadow: 0 0 0 2px #fff, 0 0 0 4px color-mix(in srgb, var(--tone) 55%, transparent); }
.foto-editar .foto-botao { width: 30px; height: 30px; border-radius: 8px; }
.dados { gap: 16px 20px; padding: 2px 18px 18px; }
.dados dt { color: var(--text-faint); font-size: 11px; font-weight: 500; letter-spacing: .02em; text-transform: none; }
.dados dd { color: var(--text); font-size: 13px; font-weight: 500; }
.dados dd.vazio { color: #c0c5cd; font-weight: 400; }
.linha-tempo strong { font-size: 13px; font-weight: 500; }
.timeline-icon { border-radius: 8px; }

/* ── Setores ──────────────────────────────────────────────────────────────── */
.setor-cab { padding: 16px 18px; }
.setor-cab h3 { font-size: 14px; font-weight: 600; }
.sigla { padding: 1px 6px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font-size: 10.5px; font-weight: 600; }
.setor-numeros small { color: var(--text-faint); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.setor-numeros strong { font-size: 17px; font-weight: 600; }
.micro-progress { height: 6px; background: #eef0f3; }

/* ── Estados vazios, modais, código ───────────────────────────────────────── */
.empty-state > span { width: 44px; height: 44px; border-radius: 12px; font-size: 20px; }
.empty-state h3 { font-size: 14px; }
.empty-state p { font-size: 12.5px; }
.app-modal, dialog.app-modal { border-radius: 14px; box-shadow: 0 24px 48px -12px rgba(17, 24, 39, .25); }
.modal-header h2 { font-size: 18px; font-weight: 600; }
.modal-footer { background: var(--surface-muted); }
dialog::backdrop { background: rgba(17, 24, 39, .4); }
.doc pre { background: #0f172a; }
.metodo { font-weight: 600; }
.skip-link { background: var(--navy); }

/* ── Responsivo ───────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .cab-busca { width: min(280px, 100%); }
}
@media (max-width: 900px) {
  .app-main, .app-sidebar[data-sidebar="collapsed"] ~ .app-main { --main-pad: 18px; }
  .verdict-meta > div:first-child { border-left: 0; padding-left: 0; }
}
@media (max-width: 680px) {
  .app-main, .app-sidebar[data-sidebar="collapsed"] ~ .app-main { --main-pad: 14px; padding: 0 var(--main-pad) 90px; }
  .app-header { gap: 8px; }
  .cab-hamburguer { display: grid; }
  .cab-busca kbd { display: none; }
  .page-header { margin: 18px 0 16px; }
  .page-context h1 { font-size: 19px; }
  .page-context p { display: block; }
  .kpi-grid { gap: 10px; }
  .kpi-card { padding: 14px; }
  .kpi-delta { display: inline-flex; }
  .view-tabs { position: static; overflow-x: auto; }
  .cab-popover { position: fixed; top: calc(var(--topbar-h) + 6px); right: 10px; left: 10px; width: auto; }
}

/* ── Login ────────────────────────────────────────────────────────────────── */
.login-page { background: var(--background); }
.login-shell { grid-template-columns: minmax(440px, 1fr) minmax(380px, .9fr); }
.login-story {
  position: relative; overflow: hidden; margin: 12px 0 12px 12px; padding: 36px 44px; border-radius: 20px; color: #fff;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(96, 140, 255, .4), transparent 60%),
    linear-gradient(160deg, #1e40af 0%, #172554 100%);
}
.login-story::before {
  position: absolute; inset: 0; opacity: .16; content: "";
  background-image: radial-gradient(rgba(255,255,255,.8) 1px, transparent 1px); background-size: 14px 14px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}
.login-brand-lockup { width: auto; padding: 10px 14px; border-radius: 12px; background: #fff; }
.login-brand-lockup img { width: 170px; filter: none; }
.secure-chip { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #dbe6ff; }
.login-copy .eyebrow.light { color: #bfd3fe; font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.login-copy h1 { font-size: clamp(34px, 3.2vw, 50px); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; }
.login-copy > p:last-child { color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.65; }
.login-copy { margin-top: auto; }
.login-story > footer { margin-top: auto; color: rgba(255,255,255,.7); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.login-story > footer span::before { color: #86efac; }
.login-panel { background: transparent; }
.login-form-wrap {
  width: min(420px, 100%); padding: 32px; border: 1px solid var(--border); border-radius: 16px; background: #fff;
  box-shadow: 0 12px 32px -12px rgba(17, 24, 39, .08);
}
.welcome-mark { width: 40px; height: 40px; margin-bottom: 20px; }
.login-heading h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.login-heading > p:last-child { margin: 6px 0 24px; font-size: 13px; }
.login-form { gap: 16px; }
.login-form .button { min-height: 40px; }
.password-toggle { font-size: 11px; font-weight: 600; }
.login-help { font-size: 12px; }
.login-panel > footer { font-size: 11px; }
@media (max-width: 900px) {
  .login-story { display: none; }
  .login-form-wrap { padding: 24px; }
}

/* ── Calendário ───────────────────────────────────────────────────────────── */
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.cal-painel { overflow: hidden; }
.cal-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 10px; }
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-nav h2 { min-width: 170px; margin: 0; font-size: 18px; text-align: center; }
.cal-nav h2 span { color: var(--text-faint); font-weight: 500; }
.cal-tipos { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 14px; }
.cal-tipo { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; background: #fff; overflow: hidden; }
.cal-tipo > a:first-child { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; color: var(--text-faint); font-size: 12px; font-weight: 500; }
.cal-tipo i { width: 8px; height: 8px; border-radius: 50%; background: var(--cor); opacity: .35; }
.cal-tipo b { padding: 0 6px; border-radius: 999px; background: var(--surface-muted); color: var(--text-faint); font-size: 10.5px; font-weight: 600; }
.cal-tipo.ativo { border-color: color-mix(in srgb, var(--cor) 35%, var(--border)); background: color-mix(in srgb, var(--cor) 6%, #fff); }
.cal-tipo.ativo > a:first-child { color: var(--text); }
.cal-tipo.ativo i { opacity: 1; }
.cal-so { padding: 4px 9px 4px 5px; color: var(--text-faint); font-size: 10.5px; }
.cal-so:hover { color: var(--brand); text-decoration: underline; }
.cal-grade { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.cal-semana { padding: 8px 10px; border-bottom: 1px solid var(--border); color: var(--text-faint); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.cal-semana.fds, .cal-dia.fds { background: #fbfbfc; }
.cal-dia {
  position: relative; display: flex; min-height: 112px; min-width: 0; flex-direction: column; gap: 3px; padding: 6px 6px 8px;
  border-right: 1px solid #f0f1f3; border-bottom: 1px solid #f0f1f3; color: inherit;
}
.cal-dia:nth-child(7n) { border-right: 0; }
.cal-dia:hover { background: #f8faff; }
.cal-dia.vazio { background: #fafafb; }
.cal-num { display: grid; width: 24px; height: 24px; place-items: center; margin-bottom: 2px; border-radius: 50%; color: #374151; font-size: 12px; font-weight: 500; }
.cal-dia.hoje .cal-num { background: var(--brand); color: #fff; font-weight: 600; }
.cal-dia.selecionado { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.cal-dia.feriado .cal-num { color: var(--critical-ink); }
.cal-evento {
  display: block; overflow: hidden; padding: 2px 6px 2px 7px; border-left: 3px solid var(--cor); border-radius: 4px;
  background: color-mix(in srgb, var(--cor) 10%, #fff); color: #1f2937; font-size: 11px; line-height: 1.35;
  text-overflow: ellipsis; white-space: nowrap;
}
.cal-evento.longo:not(.comeca) { border-left-color: color-mix(in srgb, var(--cor) 45%, #fff); color: #6b7280; }
.cal-mais { padding-left: 6px; color: var(--brand); font-size: 11px; font-weight: 500; }
.cal-lado { position: sticky; top: calc(var(--topbar-h) + 16px); display: flex; flex-direction: column; gap: 16px; }
.cal-agenda { margin: 0; padding: 0 10px 12px; list-style: none; }
.cal-agenda li > a, .cal-agenda li > span { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px; border-radius: 8px; }
.cal-agenda li > a:hover { background: var(--surface-muted); }
.cal-agenda i { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; }
.cal-agenda strong, .cal-agenda small { display: block; }
.cal-agenda strong { font-size: 13px; font-weight: 500; }
.cal-agenda small { color: var(--text-faint); font-size: 11.5px; line-height: 1.4; }
.cal-agenda time { color: var(--text-soft); font-size: 11.5px; font-weight: 500; }
.cal-vazio, .mapa-vazio { margin: 0; padding: 4px 18px 18px; color: var(--text-faint); font-size: 12.5px; }

/* ── Mapa de ausências ────────────────────────────────────────────────────── */
.mapa { padding-bottom: 14px; }
.mapa-grade { margin: 0 18px; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; }
.mapa-linha { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 30px; align-items: stretch; border-top: 1px solid #f1f2f4; }
.mapa-linha > a, .mapa-linha > span { display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 4px 12px; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.mapa-linha > a:hover { color: var(--brand); }
.mapa-cabeca { min-height: 28px; border-top: 0; background: var(--surface-muted); color: var(--text-faint); font-size: 11px; }
.mapa-setor { background: #fbfbfc; }
.mapa-setor strong, .mapa-setor small { display: block; }
.mapa-setor strong { font-size: 12.5px; }
.mapa-setor small { color: var(--text-faint); font-size: 10.5px; }
.mapa-trilho { position: relative; min-height: 28px; border-left: 1px solid var(--border); }
.mapa-mes { position: absolute; top: 6px; padding-left: 6px; border-left: 1px solid var(--border-strong); font-size: 11px; text-transform: capitalize; }
.mapa-grade-mes { position: absolute; top: 0; bottom: 0; width: 1px; background: #f1f2f4; }
.mapa-barra {
  position: absolute; top: 5px; bottom: 5px; overflow: hidden; padding: 0 6px; border-radius: 5px;
  background: #3b82f6; color: #fff; font-size: 10.5px; font-weight: 500; line-height: 18px; white-space: nowrap;
}
.mapa-barra[data-tipo="atestado"] { background: #a855f7; }
.mapa-conflito { position: absolute; top: 5px; bottom: 5px; border-radius: 4px; background: repeating-linear-gradient(45deg, rgba(239,68,68,.3) 0 4px, rgba(239,68,68,.14) 4px 8px); }
.mapa-legenda { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; margin: 10px 18px 0; color: var(--text-soft); font-size: 11.5px; }
.mapa-legenda i { display: inline-block; width: 14px; height: 8px; margin-right: -8px; border-radius: 3px; background: #3b82f6; vertical-align: middle; }
.mapa-legenda i[data-tipo="atestado"] { background: #a855f7; }
.mapa-legenda i.conflito { background: rgba(239,68,68,.35); }

/* ── Férias, ocorrências e avaliações na ficha ────────────────────────────── */
.ferias-selo { padding: 0 18px 10px; }
.ferias-lista { margin: 0; padding: 0 18px 12px; list-style: none; }
.ferias-lista li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #f1f2f4; }
.ferias-lista strong { font-size: 13px; font-weight: 500; }
.ferias-lista p { margin: 2px 0 0; color: var(--text-faint); font-size: 11.5px; }
.ocorrencia-texto { white-space: pre-line; }
.avaliacao { padding: 0 18px 14px; }
.avaliacao + .avaliacao { padding-top: 12px; border-top: 1px solid var(--border); }
.avaliacao header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.avaliacao header small { color: var(--text-faint); font-size: 11.5px; }

/* ── Análises ─────────────────────────────────────────────────────────────── */
.an-nav {
  position: sticky; z-index: 60; top: var(--topbar-h); display: flex; gap: 4px; margin: 0 calc(-1 * var(--main-pad)) 8px;
  padding: 10px var(--main-pad); overflow-x: auto; border-bottom: 1px solid var(--border); background: rgba(245, 246, 248, .94);
  backdrop-filter: blur(6px); scrollbar-width: none;
}
.an-nav a { padding: 6px 12px; border-radius: 999px; color: var(--text-soft); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.an-nav a:hover { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.an-secao { padding-top: 18px; scroll-margin-top: calc(var(--topbar-h) + 60px); }
.an-cabeca { margin: 0 0 14px; }
.an-cabeca h2 { margin: 0; font-size: 17px; }
.an-cabeca p { margin: 3px 0 0; color: var(--text-soft); font-size: 12.5px; }
.an-insight {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; padding: 14px 16px; border: 1px solid var(--border);
  border-radius: 12px; background: #fff;
}
.panel .an-insight { margin: 0 18px 14px; border-color: transparent; background: var(--tone-soft); }
.an-insight > span { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 10px; background: var(--tone-soft); color: var(--tone-ink); }
.panel .an-insight > span { background: #fff; }
.an-insight > span svg { font-size: 17px; }
.an-insight strong { display: block; font-size: 14px; }
.an-insight p { margin: 3px 0 0; color: var(--text-soft); font-size: 12.5px; line-height: 1.5; }
.an-barras { margin: 0; padding: 0 18px 16px; list-style: none; }
.an-barras li { display: grid; grid-template-columns: minmax(0, 1fr) 90px 44px; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid #f4f5f7; }
.an-barras li:first-child { border-top: 0; }
.an-barras li > div { min-width: 0; }
.an-barras strong { display: block; overflow: hidden; font-size: 12.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.an-barras span { color: var(--text-faint); font-size: 11px; }
.an-barras i { position: relative; height: 8px; overflow: hidden; border-radius: 999px; background: #eef0f3; }
.an-barras i::after { position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: inherit; background: var(--cor); content: ""; }
.an-barras b { font-size: 12.5px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.perfil-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.perfil-carta { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; gap: 12px; padding: 16px; border-top: 3px solid var(--cor); }
.perfil-letra { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--cor) 12%, #fff); color: var(--cor); font-size: 18px; font-weight: 700; }
.perfil-carta strong { display: block; font-size: 14px; }
.perfil-carta small { display: block; color: var(--text-faint); font-size: 11.5px; line-height: 1.4; }
.perfil-carta dl { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 4px 0 0; padding-top: 12px; border-top: 1px solid var(--border); }
.perfil-carta dt { color: var(--text-faint); font-size: 10.5px; }
.perfil-carta dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.perfil-carta dd small { display: inline; font-size: 11px; font-weight: 500; }
.perfil-legenda { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--text-soft); font-size: 11.5px; }
.perfil-legenda i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 2px; }
.barra-100-lista { margin: 0; padding: 0 18px 16px; list-style: none; }
.barra-100-lista li { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; align-items: center; padding: 5px 0; }
.barra-100-lista li > span { overflow: hidden; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.barra-100-lista li > span small { margin-left: 6px; color: var(--text-faint); font-size: 11px; }
.barra-100 { display: flex; height: 20px; overflow: hidden; border-radius: 6px; background: #eef0f3; }
.barra-100 i { display: grid; place-items: center; color: #fff; font-size: 10.5px; font-style: normal; font-weight: 600; }
.comp-lista { margin: 0; padding: 0 18px 16px; list-style: none; }
.comp-lista li { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 36px; gap: 14px; align-items: center; padding: 8px 0; border-top: 1px solid #f4f5f7; }
.comp-lista li:first-child { border-top: 0; }
.comp-lista li > span { font-size: 12.5px; }
.comp-lista li > span small { display: block; color: var(--text-faint); font-size: 11px; }
.comp-lista li > strong { font-size: 13px; text-align: right; }
.comp-lista li[data-destaque="forte"] > strong { color: var(--ok-ink); }
.comp-lista li[data-destaque="fraca"] > strong { color: var(--critical-ink); }
.comp-escala { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; height: 10px; }
.comp-escala i { border-radius: 3px; }
.comp-escala i:nth-child(1) { background: #fde2e2; }
.comp-escala i:nth-child(2) { background: #fdeccf; }
.comp-escala i:nth-child(3) { background: #fef6d8; }
.comp-escala i:nth-child(4) { background: #e2f6e7; }
.comp-escala i:nth-child(5) { background: #d3f1dc; }
.comp-escala b { position: absolute; top: -4px; width: 4px; height: 18px; margin-left: -2px; border-radius: 3px; background: var(--text); box-shadow: 0 0 0 2px #fff; }
.comp-lista.compacta { padding: 0; }
.comp-lista.compacta li { grid-template-columns: minmax(0, 1fr) 120px 20px; padding: 5px 0; }
.sinais-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.sinal-carta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px; border-left: 3px solid var(--tone); color: inherit; }
.sinal-carta:hover { border-color: var(--border-strong); border-left-color: var(--tone); background: #fcfcfd; }
.sinal-carta strong, .sinal-carta small { display: block; }
.sinal-carta small { color: var(--text-faint); font-size: 11.5px; }
.sinal-carta p { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 0; }
.sinal-carta .chip { padding: 2px 8px; font-size: 11px; }
.sinal-carta .chip[data-status="ok"] { border-color: transparent; background: var(--ok-soft); color: var(--ok-ink); }
.sinal-nivel { grid-column: 1 / -1; justify-self: start; padding: 2px 8px; border-radius: 6px; background: var(--tone-soft); color: var(--tone-ink); font-size: 11px; font-weight: 600; }

@media (max-width: 1180px) {
  .cal-layout { grid-template-columns: 1fr; }
  .cal-lado { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .perfil-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .cal-dia { min-height: 64px; padding: 4px 3px; }
  .cal-evento { height: 6px; padding: 0; border-left-width: 0; background: var(--cor); font-size: 0; }
  .cal-lado { grid-template-columns: 1fr; }
  .mapa-linha { grid-template-columns: 110px minmax(0, 1fr); }
  .perfil-cards { grid-template-columns: 1fr; }
  .barra-100-lista li { grid-template-columns: 1fr; gap: 4px; }
  .comp-lista li { grid-template-columns: 1fr 90px 30px; }
}

/* ── Atalhos do painel ────────────────────────────────────────────────────── */
.atalhos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 16px; }
.atalho { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; color: inherit; transition: border-color .15s, background-color .15s; }
.atalho:hover { border-color: color-mix(in srgb, var(--tone) 40%, var(--border)); background: color-mix(in srgb, var(--tone) 3%, #fff); }
.atalho header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #374151; font-size: 13px; font-weight: 500; }
.atalho header span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: var(--tone-soft); color: var(--tone-ink); }
.atalho header svg { font-size: 15px; }
.atalho > strong { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; color: var(--tone-ink); }
.atalho[data-status="info"] > strong, .atalho[data-status="ok"] > strong { color: var(--text); }
.atalho p { margin: 0; color: var(--text-soft); font-size: 12.5px; }
.atalho small { margin-top: 8px; color: var(--text-faint); font-size: 11.5px; }
.atalho ul { margin: 8px 0 0; padding: 0; list-style: none; }
.atalho li { display: flex; align-items: center; gap: 6px; padding: 2px 0; overflow: hidden; color: #4b5563; font-size: 11.5px; white-space: nowrap; }
.atalho li i { width: 6px; height: 6px; flex: none; border-radius: 50%; }
.atalho li time { margin-left: auto; color: var(--text-faint); }

/* ════════════════════════════════════════════════════════════════════════════
   VISUAL 2 · referência de apps (cartões flutuando, pílulas, gradiente azul→verde)
   Fica no fim do arquivo e tem a palavra final sobre o que vem antes.
   ════════════════════════════════════════════════════════════════════════════ */
:root {
  --brand: #5f78ee;
  --brand-strong: #4d64d4;
  --brand-soft: #eef2ff;
  --info-fill: #5f78ee; --info-soft: #eef2ff; --info-ink: #3f53ad;
  --background: #eef1f6;
  --surface-muted: #f4f6fa;
  --text: #0f1115;
  --text-soft: #6b7280;
  --text-faint: #9aa1ad;
  --border: #e7eaf0;
  --border-strong: #dde1e9;
  --tinta: #0f1115; /* preto das ações principais e do item ativo */
  --sombra: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 30px -12px rgba(16, 24, 40, .10);
  --sombra-alta: 0 2px 6px rgba(16, 24, 40, .06), 0 22px 44px -18px rgba(16, 24, 40, .22);
  --gradiente: linear-gradient(135deg, #3e6fe0 0%, #6a9ae9 45%, #a9d9c0 78%, #c9ec9c 100%);
}
body { background: var(--background); }

/* Cartões ─────────────────────────────────────────────────────────────────── */
.panel { border: 0; border-radius: 24px; background: #fff; box-shadow: var(--sombra); }
.panel-heading, .table-heading { padding: 20px 22px 12px; }
.panel-heading h3, .table-heading h3 { font-size: 15px; }
.verdict { border: 0; border-radius: 24px; box-shadow: var(--sombra); padding: 16px 22px; }
.verdict-mark { border-radius: 14px; }
.aviso { border-radius: 16px; }

/* Botões em pílula; ação principal em preto ────────────────────────────── */
.button { min-height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 500; }
.button.small { min-height: 34px; padding: 0 14px; }
.button.primary { background: var(--tinta); box-shadow: 0 6px 16px -8px rgba(15, 17, 21, .6); }
.button.primary:hover { background: #2a2e37; }
.button.primary:active { background: #000; }
.button.secondary, .button.tertiary { border-color: var(--border); background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.button.secondary:hover, .button.tertiary:hover { border-color: var(--border-strong); background: #f8f9fb; }
.icon-button { border-radius: 999px; border-color: var(--border); }

/* Campos ──────────────────────────────────────────────────────────────────── */
input, select, textarea, .app-page input, .app-page select, .app-page textarea {
  min-height: 42px; border-color: transparent; border-radius: 14px; background: var(--surface-muted);
}
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); background: #fff; outline: 4px solid color-mix(in srgb, var(--brand) 14%, transparent); }
.app-page input[type="date"] { min-height: 42px; }
.lista-filtros .button { min-height: 42px; }
.filtro-setor .mantine-Select-input, .filtro-setor input { min-height: 40px; border: 1px solid var(--border); background: #fff; font-size: 13px; }

/* Menu lateral ───────────────────────────────────────────────────────────── */
.app-sidebar { border-right: 0; box-shadow: 1px 0 0 var(--border); }
.sidebar-nav { gap: 4px; padding: 10px 14px; }
.nav-item { min-height: 42px; padding: 0 14px; border-radius: 999px; color: #4b5563; }
.nav-item:hover { background: var(--surface-muted); }
.nav-item.active { background: var(--tinta); color: #fff; box-shadow: 0 8px 18px -10px rgba(15, 17, 21, .7); }
.nav-item.active svg { color: #fff; }
.nav-item.active::before { display: none; }
.nav-pai.contem-ativo { background: var(--surface-muted); color: var(--text); }
.nav-filhos a { border-radius: 999px; }
.nav-filhos a.active { background: var(--brand-soft); color: var(--brand-strong); }
.nav-filhos a.active::before { display: none; }
.sidebar-cartao {
  border-radius: 22px; color: var(--tinta);
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .45), transparent 60%), #a9bcff;
}
.sidebar-cartao::before { opacity: .35; background-image: radial-gradient(rgba(255, 255, 255, .9) 1px, transparent 1px); }
.sidebar-cartao p { color: rgba(15, 17, 21, .7); }
.sidebar-cartao-icone { border-radius: 12px; background: #fff; color: var(--tinta); }
.sidebar-cartao a { background: var(--tinta); box-shadow: none; color: #fff; }
.sidebar-cartao a:hover { background: #2a2e37; }

/* Barra superior: some no fundo, busca e ícones em pílulas brancas ───────── */
.app-header { border-bottom: 0; background: rgba(238, 241, 246, .82); backdrop-filter: saturate(1.4) blur(10px); }
.cab-busca { height: 42px; border: 0; border-radius: 999px; background: #fff; box-shadow: var(--sombra); }
.cab-busca kbd { border-radius: 999px; }
.cab-icone { width: 42px; height: 42px; border: 0; background: #fff; box-shadow: var(--sombra); }
.cab-avatar { width: 42px; height: 42px; border: 0; box-shadow: var(--sombra); }
.cab-avatar > span { background: linear-gradient(135deg, #c9ec9c, #6a9ae9); color: #0f1115; }
.cab-popover { border: 0; border-radius: 20px; box-shadow: var(--sombra-alta); }

/* Cabeçalho das páginas ──────────────────────────────────────────────────── */
.page-header { margin: 20px 0 22px; }
.page-context h1 { font-size: 26px; letter-spacing: -.025em; }
.page-voltar { width: 42px; height: 42px; border: 0; border-radius: 999px; box-shadow: var(--sombra); }

/* Pílulas de filtro e abas: ativa em preto ───────────────────────────────── */
.chips-situacao a, .view-tabs > a[role="tab"], .view-tabs > button[role="tab"], .cal-tipo {
  border: 0; border-radius: 999px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 0 0 1px var(--border);
}
.chips-situacao a { padding: 8px 14px; }
.chips-situacao a.active, .view-tabs > a[role="tab"].active, .view-tabs > button[role="tab"].active {
  background: var(--tinta); color: #fff; box-shadow: 0 8px 18px -10px rgba(15, 17, 21, .7);
}
.chips-situacao a.active span { background: rgba(255, 255, 255, .16); color: #fff; }
.view-tabs { gap: 8px; padding: 0; border-bottom: 0; }
.view-tabs > a[role="tab"], .view-tabs > button[role="tab"] { min-height: 38px; padding: 8px 16px; }
.view-tabs > a[role="tab"].active::after, .view-tabs > button[role="tab"].active::after { display: none; }
.segmented { border: 0; border-radius: 999px; background: var(--surface-muted); }
.segmented a, .segmented button { border-radius: 999px; }
.cal-tipo.ativo { background: color-mix(in srgb, var(--cor) 9%, #fff); box-shadow: 0 0 0 1px color-mix(in srgb, var(--cor) 35%, #fff); }
.status-badge { padding: 4px 10px; }

/* Indicadores: ícone em quadradinho com gradiente, à esquerda ─────────────── */
.kpi-card { padding: 20px 22px; border-top: 0; }
.kpi-top { justify-content: flex-start; gap: 12px; }
.kpi-icone { order: -1; }
.kpi-icone svg {
  width: 38px; height: 38px; padding: 10px; border-radius: 13px; color: #fff; font-size: 18px;
  background: linear-gradient(135deg, #aabdff, #5f78ee); box-shadow: 0 8px 16px -8px rgba(95, 120, 238, .8);
}
.kpi-card[data-status="ok"] .kpi-icone svg { background: linear-gradient(135deg, #c9ec9c, #5fbf6c); box-shadow: 0 8px 16px -8px rgba(95, 191, 108, .8); }
.kpi-card[data-status="attention"] .kpi-icone svg { background: linear-gradient(135deg, #ffd9a0, #f59e0b); box-shadow: 0 8px 16px -8px rgba(245, 158, 11, .7); }
.kpi-card[data-status="critical"] .kpi-icone svg { background: linear-gradient(135deg, #ffb4b4, #ef4444); box-shadow: 0 8px 16px -8px rgba(239, 68, 68, .7); }
.kpi-card[data-status="neutral"] .kpi-icone svg { background: linear-gradient(135deg, #d6dae3, #8b93a3); box-shadow: none; }
.kpi-label { font-size: 13.5px; color: var(--text); }
.kpi-linha { margin: 16px 0 6px; }
.kpi-value { font-size: 30px; letter-spacing: -.03em; }
.kpi-delta { border-radius: 999px; padding: 3px 9px; }

/* Tabelas ─────────────────────────────────────────────────────────────────── */
.table-panel { overflow: hidden; }
th { border-bottom: 0; background: var(--surface-muted); }
th:first-child { border-radius: 0; }
td { border-bottom: 1px solid #f1f3f7; }
.table-panel tbody tr:hover, .table-panel tbody tr.linha-link:hover { background: #f8f9fc; }
.paginacao { border-top: 0; }

/* Fotos redondas (como os avatares da referência) ────────────────────────── */
.foto, .foto.p, .foto.m { border-radius: 50%; background: linear-gradient(135deg, #e7ecff, #dff3d4); color: #3f53ad; }
.foto.g { border-radius: 28px; }
.foto-editar .foto-botao { border-radius: 999px; background: var(--tinta); }
.chip { border: 0; background: var(--surface-muted); }

/* ── Abertura do painel (gradiente azul → verde) ───────────────────────────── */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: stretch;
  margin: 18px 0 20px; padding: 26px; overflow: hidden; border-radius: 30px; color: #fff; background: var(--gradiente);
  box-shadow: 0 24px 50px -28px rgba(62, 111, 224, .7);
}
.hero::before {
  position: absolute; inset: 0; opacity: .22; content: ""; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .9) 1px, transparent 1px); background-size: 16px 16px;
  mask-image: linear-gradient(110deg, #000, transparent 55%);
}
.hero > * { position: relative; }
.hero-texto { display: flex; min-width: 0; flex-direction: column; gap: 18px; }
.hero-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hero-chip { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-size: 12px; font-weight: 500; backdrop-filter: blur(6px); }
.filtro-setor.claro input { border: 0 !important; background: rgba(255, 255, 255, .92) !important; }
.hero h1 { margin: 0; font-size: clamp(26px, 2.4vw, 34px); font-weight: 400; letter-spacing: -.03em; line-height: 1.15; }
.hero h1 b { font-weight: 600; }
.hero h1 span { color: rgba(255, 255, 255, .86); }
.hero-recado {
  display: flex; align-items: center; gap: 12px; max-width: 760px; padding: 12px 14px; border-radius: 18px;
  background: rgba(255, 255, 255, .95); color: var(--text); box-shadow: 0 10px 24px -14px rgba(16, 24, 40, .5);
}
.hero-recado-marca {
  display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 12px;
  background: var(--tone-soft); color: var(--tone-ink); font-weight: 700;
}
.hero-recado > div { min-width: 0; flex: 1; }
.hero-recado strong { display: block; font-size: 14px; }
.hero-recado p { margin: 2px 0 0; overflow: hidden; color: var(--text-soft); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.hero-recado-link { padding: 7px 14px; border-radius: 999px; background: var(--tinta); color: #fff; font-size: 12.5px; font-weight: 500; }
.hero-numeros { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-numeros > div { min-width: 118px; padding: 10px 16px; border-radius: 18px; background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px); }
.hero-numeros strong { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.hero-numeros small { color: rgba(255, 255, 255, .88); font-size: 12px; }
.button.hero-cta { min-height: 46px; margin-left: auto; padding: 0 22px; background: var(--tinta); color: #fff; }
.button.hero-cta:hover { background: #22252c; }
.hero-anel {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 18px;
  border-radius: 24px; background: #fff; color: var(--text); text-align: center; box-shadow: 0 16px 34px -20px rgba(16, 24, 40, .55);
}
.hero-anel-centro strong { font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.hero-anel > strong { font-size: 14px; }
.hero-anel > small { color: var(--text-faint); font-size: 12px; }

/* ── Atalhos em blocos coloridos ─────────────────────────────────────────── */
.atalhos { gap: 16px; }
.atalho { position: relative; min-height: 190px; overflow: hidden; border: 0; border-radius: 26px; box-shadow: none; }
.atalho:nth-child(1) { background: #b9c9ff; }
.atalho:nth-child(2) { background: #ef9ef5; }
.atalho:nth-child(3) { background: #f7a14e; }
.atalho:nth-child(4) { background: #c7ec9f; }
.atalho:hover { background-image: linear-gradient(rgba(255, 255, 255, .12), rgba(255, 255, 255, .12)); transform: translateY(-2px); }
.atalho { transition: transform .18s var(--ease); }
.atalho header { color: var(--tinta); font-weight: 600; }
.atalho header span { width: 36px; height: 36px; border-radius: 999px; background: var(--tinta); color: #fff; }
.atalho > strong, .atalho[data-status] > strong { color: var(--tinta); font-size: 34px; }
.atalho p { color: rgba(15, 17, 21, .75); }
.atalho small, .atalho li, .atalho li time { color: rgba(15, 17, 21, .65); }
.atalho::after {
  position: absolute; right: -24px; bottom: -24px; width: 110px; height: 110px; border: 2px solid rgba(15, 17, 21, .12);
  border-radius: 50%; content: "";
}

/* Listas e pequenos detalhes ─────────────────────────────────────────────── */
.alert-row .alert-symbol, .timeline-icon { border-radius: 12px; }
.lista-pessoas li a { border-radius: 16px; }
.lista-pessoas .dia { border-radius: 999px; }
.an-insight { border: 0; border-radius: 20px; box-shadow: var(--sombra); }
.perfil-carta { border-top: 0; }
.perfil-letra { border-radius: 14px; }
.sinal-carta { border-left: 0; }
.mapa-grade { border: 0; border-radius: 18px; box-shadow: 0 0 0 1px var(--border); }
.cal-painel { border-radius: 26px; }
.cal-dia.selecionado { border-radius: 14px; }
.app-modal, dialog.app-modal { border: 0; border-radius: 26px; }
.modal-footer { border-top: 0; background: #fff; }
.form-rodape { border-top: 0; background: rgba(238, 241, 246, .9); backdrop-filter: blur(10px); }

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .hero-anel { flex-direction: row; justify-content: flex-start; gap: 16px; text-align: left; }
}
@media (max-width: 680px) {
  .hero { padding: 18px; border-radius: 24px; }
  .hero-numeros > div { min-width: 0; flex: 1; }
  .button.hero-cta { width: 100%; margin-left: 0; }
  .hero-recado p { white-space: normal; }
}

/* ── Logo da Nova Foods ──────────────────────────────────────────────────── */
.sidebar-brand { height: 72px; }
.sidebar-brand .sidebar-logo { width: 124px; height: auto; }
.sidebar-brand .sidebar-mark { width: 34px; height: 34px; }
.login-brand-lockup img { width: 190px; }
.welcome-mark { width: 48px; height: 48px; }

/* ── Plataformas RH e DP ─────────────────────────────────────────────────── */
.plat-troca { display: grid; grid-auto-flow: column; gap: 4px; margin: 0 14px 6px; padding: 4px; border-radius: 999px; background: var(--surface-muted); }
.plat-troca a { display: grid; min-height: 32px; place-items: center; border-radius: 999px; color: var(--text-soft); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; }
.plat-troca a:hover { color: var(--text); }
.plat-troca a.ativa { background: #fff; color: var(--tinta); box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 4px 10px -6px rgba(16, 24, 40, .25); }
.nav-rotulo { margin: 14px 14px 4px; color: var(--text-faint); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.nav-item.em-breve { cursor: default; opacity: .55; }
.nav-item.em-breve:hover { background: transparent; color: #4b5563; }
@container sidebar (max-width: 140px) {
  .plat-troca { grid-auto-flow: row; margin: 0 10px 6px; border-radius: 16px; }
  .nav-rotulo { display: none; }
}
.hero-rh { grid-template-columns: 1fr; background: linear-gradient(135deg, #7c6cf0 0%, #a98bf6 40%, #e9a3ec 75%, #ffc9a8 100%); box-shadow: 0 24px 50px -28px rgba(124, 108, 240, .75); }
.hero-rh-texto { max-width: 620px; margin: 0; color: rgba(255, 255, 255, .9); font-size: 14px; line-height: 1.55; }
.modulos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.modulo { display: flex; flex-direction: column; gap: 6px; min-height: 180px; padding: 18px; border-radius: 24px; background: #fff; box-shadow: var(--sombra); }
.modulo header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.modulo header span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; background: var(--cor); color: var(--tinta); }
.modulo header svg { font-size: 19px; }
.modulo header em { padding: 3px 10px; border-radius: 999px; background: var(--surface-muted); color: var(--text-soft); font-size: 11px; font-style: normal; font-weight: 500; }
.modulo strong { font-size: 15px; }
.modulo p { margin: 0; color: var(--text-soft); font-size: 12.5px; line-height: 1.5; }
.modulo small { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; color: var(--ok-ink); font-size: 12px; font-weight: 500; }
.escolha { display: grid; min-height: 100vh; min-height: 100dvh; place-items: center; padding: 24px; background: var(--background); }
.escolha-cartao { width: min(560px, 100%); padding: 36px; border-radius: 32px; background: #fff; box-shadow: var(--sombra-alta); text-align: center; }
.escolha-logo { width: 170px; height: auto; margin-bottom: 18px; }
.escolha h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.escolha-cartao > p { margin: 8px 0 24px; color: var(--text-soft); font-size: 13.5px; }
.escolha-opcoes { display: grid; gap: 12px; }
.escolha-opcao {
  display: grid; width: 100%; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 18px;
  border: 0; border-radius: 22px; background: var(--surface-muted); color: var(--text); cursor: pointer; text-align: left;
  transition: transform .15s var(--ease), box-shadow .15s;
}
.escolha-opcao:hover { transform: translateY(-2px); box-shadow: var(--sombra); background: #fff; }
.escolha-opcao svg { color: var(--text-faint); font-size: 18px; }
.escolha-sigla { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 16px; color: #fff; font-size: 16px; font-weight: 700; }
.escolha-opcao.dp .escolha-sigla { background: var(--gradiente); }
.escolha-opcao.rh .escolha-sigla { background: linear-gradient(135deg, #7c6cf0, #e9a3ec); }
.escolha-texto strong, .escolha-texto small { display: block; }
.escolha-texto strong { font-size: 15px; }
.escolha-texto small { margin-top: 2px; color: var(--text-soft); font-size: 12.5px; line-height: 1.4; }
.escolha-sair { margin-top: 20px; background: transparent; color: var(--text-soft); cursor: pointer; font-size: 12.5px; }
.escolha-sair:hover { color: var(--text); text-decoration: underline; }

/* ── Entrada do Gente e Gestão: escolha RH / DP antes do login ───────────── */
.login-page[data-plataforma="rh"] .login-story {
  background: radial-gradient(90% 70% at 100% 0%, rgba(255, 201, 168, .45), transparent 60%), linear-gradient(160deg, #6d5ce6 0%, #3b2a8c 100%);
}
.login-page[data-plataforma="nenhuma"] .login-story {
  background: radial-gradient(90% 70% at 100% 0%, rgba(201, 236, 156, .45), transparent 60%), linear-gradient(160deg, #3e6fe0 0%, #5b3fb8 100%);
}
.login-marca { margin: 0 0 6px; color: var(--brand); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.login-escolha h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.login-sub { margin: 6px 0 24px; color: var(--text-soft); font-size: 13.5px; }
.login-botoes { display: grid; gap: 12px; }
.login-botao {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 18px;
  border: 1.5px solid var(--border); border-radius: 999px; background: #fff; color: var(--text);
  transition: border-color .15s, transform .15s var(--ease), box-shadow .15s;
}
.login-botao:hover { border-color: var(--tinta); transform: translateY(-1px); box-shadow: var(--sombra); }
.login-botao strong, .login-botao small { display: block; }
.login-botao strong { font-size: 15px; }
.login-botao small { color: var(--text-soft); font-size: 12px; }
.login-botao > svg { color: var(--text-faint); font-size: 18px; }
.login-botao-sigla { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 999px; color: #fff; font-size: 14px; font-weight: 700; }
.login-botao.rh .login-botao-sigla, .login-plataforma.rh { background: linear-gradient(135deg, #7c6cf0, #e9a3ec); }
.login-botao.dp .login-botao-sigla, .login-plataforma.dp { background: var(--gradiente); }
.login-trocar { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; color: var(--text-soft); font-size: 12.5px; font-weight: 500; }
.login-trocar:hover { color: var(--text); }
.login-plataforma { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 600; }
.welcome-mark { display: none; }

/* Logo do painel azul do login: sem o bloco branco, toda em branco. */
.login-brand-lockup { padding: 0; border-radius: 0; background: transparent; }
.login-brand-lockup img { filter: brightness(0) invert(1); }

/* ── Acesso por plataforma (Ajustes → Usuários) ─────────────────────────── */
.acesso-bloco { display: grid; gap: 8px; padding: 14px 16px; border-radius: 18px; background: #f5f7fb; }
.acesso-bloco[data-desligado] { opacity: .6; }
.acesso-titulo { color: #111827; font-size: 13px; font-weight: 500; }
.acesso-explica { color: #6b7280; font-size: 12.5px; line-height: 1.45; min-height: 2.9em; }
.acesso-modelos { display: flex; flex-wrap: wrap; gap: 8px; }
.acesso-modelo {
  display: grid; gap: 1px; padding: 8px 14px; border: 1px solid #e3e7ef; border-radius: 999px;
  background: #fff; color: #111827; text-align: left; cursor: pointer; font: inherit;
}
.acesso-modelo b { font-size: 12.5px; font-weight: 600; }
.acesso-modelo small { color: #6b7280; font-size: 11px; }
.acesso-modelo:hover:not(:disabled) { border-color: #111827; }
.acesso-modelo.ativo { border-color: #111827; background: #111827; color: #fff; }
.acesso-modelo.ativo small { color: #d1d5db; }
.acesso-modelo:disabled { opacity: .45; cursor: not-allowed; }
.acesso-selos { display: flex; flex-wrap: wrap; gap: 6px; }
.acesso-selo { padding: 3px 10px; border-radius: 999px; background: #eef1f6; color: #4b5563; font-size: 12px; font-weight: 500; white-space: nowrap; }
.acesso-selo[data-nivel="nenhum"] { background: transparent; color: #9ca3af; text-decoration: line-through; }
.acesso-selo[data-nivel="editar"] { background: #e0ecff; color: #1d4ed8; }
.acesso-selo[data-nivel="gestor"] { background: #dcfce7; color: #15803d; }
.acesso-selo[data-nivel="admin"] { background: #111827; color: #fff; }

/* ── RH · Recrutamento (painel, funil em colunas, candidato) ─────────────── */
.modulo-ativo { color: inherit; text-decoration: none; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.modulo-ativo:hover { transform: translateY(-2px); box-shadow: var(--sombra-alta); }
.modulo header em.pronto { background: var(--tinta); color: #fff; }

.rec-duas { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.rec-lista { margin: 0; padding: 0 18px 14px; list-style: none; }
.rec-lista li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--surface-muted); }
.rec-lista li:first-child { border-top: 0; }
.rec-lista a { color: var(--text); text-decoration: none; }
.rec-lista a:hover { text-decoration: underline; }
.rec-quando { flex: none; padding: 4px 10px; border-radius: 999px; background: #fff4df; color: #8a5a00; font-size: 12px; font-weight: 500; }
.rec-novos { display: block; color: var(--ok-ink); font-size: 11.5px; font-weight: 500; }

.rec-funil-mini { display: grid; gap: 5px; }
.rec-funil-barra { display: flex; gap: 2px; height: 8px; border-radius: 999px; overflow: hidden; background: var(--surface-muted); }
.rec-funil-barra span { min-width: 6px; }
.rec-funil-mini small { color: var(--text-soft); font-size: 11.5px; }

.rec-toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 12px;
  max-width: 460px; padding: 14px 14px 14px 18px; border-radius: 18px; background: #fff; box-shadow: var(--sombra-alta);
}
.rec-toast > span { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ok-soft); color: var(--ok-ink); font-weight: 700; }
.rec-toast[data-status="critical"] > span { background: var(--critical-soft); color: var(--critical-ink); }
.rec-toast p { margin: 0; font-size: 13.5px; }

/* Formulário da vaga */
.rec-pilulas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 46px; padding: 6px 8px; border-radius: 14px; background: var(--surface-muted); }
.rec-pilula { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; border-radius: 999px; background: #fff; font-size: 13px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.rec-pilula button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: transparent; color: var(--text-soft); cursor: pointer; font-size: 15px; line-height: 1; }
.rec-pilula button:hover { background: var(--critical-soft); color: var(--critical-ink); }
.rec-pilulas input { flex: 1; min-width: 160px; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 6px !important; }
.rec-sugestoes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.rec-sugestoes button { padding: 3px 10px; border: 1px dashed #cfd5df; border-radius: 999px; background: #fff; color: var(--text-soft); font: inherit; font-size: 12px; cursor: pointer; }
.rec-sugestoes button:hover { border-style: solid; border-color: var(--tinta); color: var(--tinta); }
.rec-rodape-form { position: sticky; bottom: 0; z-index: 5; gap: 10px; padding: 14px 0; background: linear-gradient(to top, var(--background) 70%, transparent); }

/* Quadro (funil em colunas) */
.rec-quadro-barra { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.rec-busca { display: flex; align-items: center; gap: 8px; min-width: 240px; height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; box-shadow: var(--sombra); color: var(--text-soft); }
.rec-busca input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); }
.rec-dica { margin-left: auto; font-size: 12.5px; }
.rec-quadro { display: grid; gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.rec-coluna { display: flex; flex-direction: column; min-height: 240px; border-radius: 20px; background: #e6eaf1; transition: background .15s; }
.rec-coluna.sobre { background: #d9e3f5; outline: 2px dashed #7a95c9; outline-offset: -4px; }
.rec-coluna header { display: flex; align-items: center; gap: 8px; padding: 14px 14px 8px; }
.rec-coluna-ponto { width: 10px; height: 10px; border-radius: 50%; background: var(--cor); box-shadow: 0 0 0 3px #fff; }
.rec-coluna header strong { font-size: 13px; font-weight: 600; }
.rec-coluna-n { margin-left: auto; padding: 1px 9px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 600; }
.rec-coluna-corpo { display: grid; gap: 8px; padding: 4px 8px 10px; }
.rec-coluna-vazia { margin: 8px 0; color: var(--text-soft); font-size: 12px; text-align: center; }
.rec-cartao { display: grid; gap: 5px; padding: 12px 12px 10px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); cursor: grab; }
.rec-cartao:hover { box-shadow: 0 6px 18px -8px rgba(16, 24, 40, .25); }
.rec-cartao.arrastando { opacity: .45; }
.rec-cartao-nome { color: var(--text); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.rec-cartao-nome:hover { text-decoration: underline; }
.rec-cartao-sub { color: var(--text-soft); font-size: 11.5px; }
.rec-cartao-selos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-soft); font-size: 11.5px; }
.rec-cartao-selos > span { display: inline-flex; align-items: center; gap: 3px; }
.rec-cartao-selos svg { font-size: 13px; }
.rec-estrelas { color: #f5a524; letter-spacing: 1px; }
.rec-estrelas i { color: #dde2ea; font-style: normal; }
.rec-selo { padding: 1px 7px; border-radius: 999px; background: var(--surface-muted); color: var(--text); font-weight: 500; }
.rec-selo.ok { background: var(--ok-soft); color: var(--ok-ink); }
.rec-cartao-entrevista { display: inline-flex; align-items: center; gap: 5px; width: max-content; padding: 2px 8px; border-radius: 999px; background: #fff4df; color: #8a5a00; font-size: 11.5px; font-weight: 500; }
.rec-cartao-alerta { color: var(--attention-ink); font-size: 11.5px; font-weight: 600; }
.rec-cartao-mover { justify-self: start; margin-top: 2px; padding: 2px 6px; border: 1px solid var(--surface-muted); border-radius: 8px; background: #fff; color: var(--text-soft); font: inherit; font-size: 11.5px; cursor: pointer; }
.rec-motivos { display: grid; gap: 10px; }

/* Resumo da vaga */
.rec-vaga-resumo { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding: 18px 22px; }
.rec-vaga-resumo dl { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 0; }
.rec-vaga-resumo dt { color: var(--text-soft); font-size: 11.5px; }
.rec-vaga-resumo dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 500; }
.rec-conversao { display: flex; align-items: flex-end; gap: 10px; height: 70px; margin-left: auto; }
.rec-conversao > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; width: 50px; height: 100%; }
.rec-conversao span { width: 26px; border-radius: 6px 6px 2px 2px; }
.rec-conversao strong { font-size: 13px; }
.rec-conversao small { color: var(--text-soft); font-size: 10.5px; }

/* Candidato */
.rec-candidato { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: start; }
.rec-candidato .stack { gap: 16px; }
.rec-sobre h4 { margin: 0 0 6px; font-size: 13px; }
.rec-sobre p { margin: 0; white-space: pre-line; line-height: 1.6; }
.rec-pdf { display: block; width: calc(100% - 36px); height: 720px; margin: 0 18px 18px; border: 0; border-radius: 14px; background: var(--surface-muted); }
.rec-etapas ol { display: flex; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; flex-wrap: wrap; }
.rec-etapas li { flex: 1; min-width: 90px; }
.rec-etapas li button {
  width: 100%; padding: 9px 8px; border: 0; border-radius: 12px; background: var(--surface-muted); color: var(--text-soft);
  font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer;
}
.rec-etapas li button:hover:not(:disabled) { background: #e3e8f0; color: var(--text); }
.rec-etapas li[data-estado="feito"] button { background: color-mix(in srgb, var(--cor) 45%, #fff); color: var(--text); }
.rec-etapas li[data-estado="atual"] button { background: var(--tinta); color: #fff; cursor: default; }
.rec-etapas.ocupado { opacity: .6; }
.rec-encerrado { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--text-soft); font-size: 13px; }
.rec-avaliar { display: flex; align-items: center; gap: 2px; }
.rec-avaliar button { padding: 0 1px; border: 0; background: none; color: #dde2ea; font-size: 22px; line-height: 1; cursor: pointer; }
.rec-avaliar button.cheia { color: #f5a524; }
.rec-avaliar button:disabled { cursor: default; }
.rec-avaliar small { margin-left: 6px; color: var(--text-soft); font-size: 12px; }
.rec-entrevista input { width: 100%; }
.rec-comentar { display: grid; gap: 8px; margin-bottom: 18px; }
.rec-comentar textarea { width: 100%; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--surface-muted); font: inherit; resize: vertical; }
.rec-comentar button { justify-self: end; }
.rec-linha-tempo { position: relative; display: grid; gap: 14px; margin: 0; padding: 0 0 0 18px; list-style: none; }
.rec-linha-tempo::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--surface-muted); }
.rec-linha-tempo li { position: relative; }
.rec-linha-tempo li::before { content: ''; position: absolute; left: -18px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #c9d1dd; box-shadow: 0 0 0 3px #fff; }
.rec-linha-tempo li[data-tipo="comentario"]::before { background: #7a95c9; }
.rec-linha-tempo li[data-tipo="etapa"]::before { background: var(--tinta); }
.rec-linha-tempo li[data-tipo="entrevista"]::before { background: #f5a524; }
.rec-linha-tempo li[data-tipo="comentario"] p { padding: 10px 12px; border-radius: 4px 14px 14px 14px; background: var(--surface-muted); white-space: pre-line; }
.rec-linha-tempo p { margin: 0; font-size: 13.5px; }
.rec-linha-tempo small { color: var(--text-soft); font-size: 11.5px; }
.rec-perigo { padding: 0 6px; }
.link-button.perigo { display: inline-flex; align-items: center; gap: 6px; color: var(--critical-ink); }

/* Banco de talentos e página de vagas */
.rec-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 18px 14px; }
.rec-filtros select { height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--surface-muted); font: inherit; font-size: 13px; }
.rec-filtros .rec-busca { box-shadow: none; background: var(--surface-muted); }
.rec-depoimento { display: grid; gap: 10px; margin: 0; padding: 16px; border: 0; border-radius: 18px; background: var(--surface-muted); }
.rec-depoimento legend { float: left; padding: 0; font-size: 13px; font-weight: 600; }
.rec-depoimento .link-button { justify-self: start; }

@media (max-width: 1100px) {
  .rec-duas, .rec-candidato { grid-template-columns: 1fr; }
  .rec-conversao { margin-left: 0; }
}
.rec-cartao select.rec-cartao-mover { width: auto; height: auto; min-height: 0; padding: 3px 8px; border-radius: 8px; font-size: 11.5px; background: #fff; box-shadow: none; }

/* ── RH · Perfil comportamental ─────────────────────────────────────────── */
.chips-situacao button {
  display: inline-flex; align-items: center; padding: 8px 14px; border: 0; border-radius: 999px; background: #fff; cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 0 0 1px var(--border); color: #4b5563; font: inherit; font-size: 12.5px; font-weight: 500;
}
.chips-situacao button.active { background: var(--tinta); color: #fff; box-shadow: 0 8px 18px -10px rgba(15, 17, 21, .7); }

.pf-selo { display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 4px 12px 4px 4px; border-radius: 999px; background: color-mix(in srgb, var(--cor) 40%, #fff); color: var(--text); font-size: 13px; font-weight: 500; }
.pf-selo b { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--cor); font-size: 12px; font-weight: 700; }
.pf-selo.pequeno { padding: 2px 10px 2px 2px; font-size: 12px; }
.pf-selo.pequeno b { min-width: 22px; height: 22px; font-size: 11px; }

.pf-barras { display: grid; gap: 14px; }
.pf-barra-rotulo { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 13.5px; }
.pf-barra-rotulo span { font-weight: 600; }
.pf-barra-rotulo small { color: var(--text-soft); font-weight: 400; }
.pf-barra-trilho { position: relative; height: 14px; border-radius: 999px; background: var(--surface-muted); }
.pf-barra-trilho .natural { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--cor); }
.pf-barra-trilho .exigido { position: absolute; top: -4px; bottom: -4px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--tinta); }
.pf-legenda { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; color: var(--text-soft); font-size: 12px; }
.pf-legenda i { display: inline-block; width: 18px; height: 8px; border-radius: 999px; background: #c9d2e3; }
.pf-legenda i.marca { width: 4px; height: 14px; border-radius: 2px; background: var(--tinta); margin-left: 8px; }

.pf-mapa { display: grid; justify-items: center; gap: 8px; margin: 0; }
.pf-mapa svg { max-width: 100%; height: auto; }
.pf-mapa-nome { font-size: 12px; font-weight: 600; fill: #0f1115; }
.pf-mapa figcaption { display: grid; gap: 2px; color: var(--text-soft); font-size: 11.5px; text-align: center; }

.pf-heroi {
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 28px 32px; border-radius: 28px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cor) 55%, #fff) 0%, #fff 70%); box-shadow: var(--sombra);
}
.pf-heroi h2 { margin: 12px 0 2px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.02em; }
.pf-heroi-lema { margin: 0 0 10px; color: var(--forte); font-weight: 600; }
.pf-heroi p { max-width: 640px; margin-top: 0; font-size: 15px; line-height: 1.6; }
.pf-heroi small { color: var(--text-soft); }

.pf-indicadores { display: grid; gap: 12px; padding: 0 18px 18px; }
.pf-indicadores > div { padding: 14px 16px; border-radius: 18px; background: var(--surface-muted); }
.pf-indicadores > div[data-nivel="alto"] { background: #fff1d6; }
.pf-indicadores > div[data-nivel="medio"] { background: #fff8e8; }
.pf-indicadores span { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 500; }
.pf-indicadores b { font-size: 22px; letter-spacing: -.02em; }
.pf-indicadores p { margin: 4px 0 0; color: #4b5563; font-size: 13px; line-height: 1.5; }
.pf-mudancas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px !important; }
.pf-mudancas em { padding: 2px 9px; border-radius: 999px; background: #fff; font-size: 12px; font-style: normal; font-weight: 500; }
.pf-mudancas em[data-sinal="mais"] { color: #9a4d00; }
.pf-mudancas em[data-sinal="menos"] { color: #3f53ad; }

.pf-guia { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pf-bloco { padding: 20px; }
.pf-bloco header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pf-bloco header span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--cor); font-size: 16px; }
.pf-bloco h3 { margin: 0; font-size: 15px; }
.pf-bloco ul { display: grid; gap: 8px; margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.45; }

.pf-palavras { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 18px; }
.pf-palavras span { padding: 5px 12px; border-radius: 999px; background: var(--surface-muted); font-size: 13px; }
.pf-palavras span.neg { background: #fdecec; color: #991b1b; }
.pf-aviso { max-width: 900px; font-size: 12.5px; line-height: 1.5; }

.pf-distribuicao { display: grid; gap: 8px; padding: 0 14px 16px; }
.pf-dist { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 18px; color: inherit; text-decoration: none; transition: background .15s; }
.pf-dist:hover, .pf-dist.ativo { background: var(--surface-muted); }
.pf-dist-bloco { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--cor); font-size: 17px; }
.pf-dist > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pf-dist strong { font-size: 14px; }
.pf-dist small { color: var(--text-soft); font-size: 12px; }
.pf-dist-trilho { display: block; height: 6px; margin-top: 4px; border-radius: 999px; background: var(--surface-muted); overflow: hidden; }
.pf-dist-trilho i { display: block; height: 100%; border-radius: 999px; background: var(--cor); }
.pf-dist em { font-size: 20px; font-style: normal; font-weight: 600; white-space: nowrap; }
.pf-dist em small { font-size: 12px; font-weight: 400; }
.pf-setores { display: grid; gap: 12px; padding: 0 18px 18px; }
.pf-setores > div > span { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 13px; font-weight: 500; }
.pf-setores small { color: var(--text-soft); font-weight: 400; }
.pf-setor-barra { display: flex; gap: 2px; height: 22px; border-radius: 999px; overflow: hidden; }
.pf-setor-barra i { display: grid; place-items: center; min-width: 8px; color: #0f1115; font-size: 11px; font-style: normal; font-weight: 700; }

.pf-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pf-link input { flex: 1; min-width: 220px; height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--surface-muted); font: inherit; font-size: 13px; color: var(--text); }

@media (max-width: 1100px) {
  .pf-guia { grid-template-columns: repeat(2, 1fr); }
  .pf-heroi { grid-template-columns: 1fr; justify-items: start; }
}
@media (max-width: 700px) { .pf-guia { grid-template-columns: 1fr; } }
.pf-mapa svg { width: 280px !important; height: 280px !important; max-width: 100%; }

/* ── PROFILER (versão completa) ─────────────────────────────────────────── */
.pf-selo { display: inline-flex; align-items: center; gap: 8px; width: max-content; padding: 0; background: none; font-size: 13px; font-weight: 500; }
.pf-selo b {
  display: inline-grid; grid-auto-flow: column; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 999px;
  background: #fff; box-shadow: inset 0 0 0 2.5px var(--cor), 0 2px 6px -3px rgba(15, 17, 21, .25); font-size: 13px; font-weight: 800; letter-spacing: .02em;
}
.pf-selo b i { font-style: normal; }
.pf-selo.pequeno b { min-width: 30px; height: 30px; padding: 0 6px; font-size: 11.5px; box-shadow: inset 0 0 0 2px var(--cor); }
.pf-letras { display: inline-block; min-width: 30px; padding: 2px 8px; border-radius: 999px; background: var(--surface-muted); font-size: 12px; font-weight: 700; text-align: center; }

.pf-status { color: #b45309; font-size: 12.5px; font-weight: 600; }
.pf-status.vencido { color: var(--text-soft); }

/* Lista + filtros */
.pf-lista { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; align-items: start; }
.pf-lista-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 12px; flex-wrap: wrap; }
.pf-busca { flex: 1; max-width: 520px; background: var(--surface-muted) !important; box-shadow: none !important; }
.pf-filtros { position: sticky; top: 90px; display: grid; gap: 18px; padding: 20px; }
.pf-filtros header { display: flex; align-items: center; justify-content: space-between; }
.pf-filtros h3 { margin: 0; font-size: 15px; }
.pf-filtros h4 { margin: 0 0 8px; color: var(--text-soft); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pf-filtro-letras { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-filtro-letras a { padding: 2px; border-radius: 999px; }
.pf-filtro-letras a.ativo { background: var(--tinta); }
.pf-filtro-opcoes { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-filtro-opcoes a, .pf-chip-check {
  padding: 6px 12px; border-radius: 999px; background: var(--surface-muted); color: var(--text); font-size: 12.5px; font-weight: 500; text-decoration: none; cursor: pointer;
}
.pf-filtro-opcoes a.ativo, .pf-chip-check.ativo, .pf-chip-check:has(input:checked) { background: var(--tinta); color: #fff; }
.pf-chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.pf-chip-check { position: relative; }
.pf-filtro-form { display: grid; gap: 8px; }
.pf-filtro-form select, .pf-periodo input, .pf-filtro-metricas select, .pf-filtro-metricas input {
  width: 100%; height: 38px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--surface-muted); font: inherit; font-size: 13px; color: var(--text);
}
.pf-periodo { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pf-filtro-form .button { justify-self: start; margin-top: 4px; }
.pf-atalhos { display: grid; gap: 6px; }
.pf-atalhos .button { justify-content: flex-start; }
.pf-paginacao { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; }
.pf-paginacao a[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.pf-paginacao span { min-width: 80px; font-weight: 600; text-align: center; }
.pf-massa { display: grid; gap: 6px; max-height: 50vh; margin: 0; padding: 0; overflow: auto; list-style: none; }
.pf-massa li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 14px; background: var(--surface-muted); }
.pf-massa li[data-enviado] { opacity: .6; }
.pf-massa li > div { flex: 1; min-width: 0; display: grid; }
.pf-massa small { color: var(--text-soft); font-size: 12px; }

/* Cabeçalho de estilos (pessoa ou grupo) */
.pf-topo-relatorio { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 26px 30px; }
.pf-cab { display: grid; gap: 12px; margin-top: 10px; }
.pf-cab-rotulo { color: var(--text-soft); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pf-cab h2 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.02em; }
.pf-cab-faixa { display: flex; gap: 3px; height: 12px; border-radius: 999px; overflow: hidden; }
.pf-cab-faixa i { min-width: 4px; }
.pf-cab-estilos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pf-cab-estilos > div { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border-radius: 16px; background: var(--surface-muted); text-align: center; opacity: .75; }
.pf-cab-estilos > div[data-marcante] { opacity: 1; background: #fff; box-shadow: 0 0 0 1px var(--border); }
.pf-cab-estilos b { padding: 2px 10px; border-radius: 999px; font-size: 12.5px; }
.pf-cab-estilos strong { font-size: 13px; }
.pf-cab-estilos small { color: var(--text-soft); font-size: 11.5px; }
.pf-cab-nota { margin: 0; color: var(--text-soft); font-size: 12px; }
.pf-resumo { max-width: 760px; margin: 14px 0 8px; font-size: 15px; line-height: 1.6; }
.pf-leituras { display: grid; gap: 8px; margin: 16px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.5; }
.pf-mapa figcaption .ponto { display: inline-block; width: 10px; height: 10px; margin: 0 2px 0 8px; border-radius: 50%; vertical-align: middle; }
.pf-mapa figcaption .ponto.cheio { background: #0f1115; }
.pf-mapa figcaption .ponto.vazio { border: 2px solid #0f1115; }

/* Faixas (indicadores e competências) */
.pf-faixas { display: grid; gap: 10px; padding: 0 18px 18px; }
.pf-faixa { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: center; }
.pf-faixa-nome { font-size: 13.5px; font-weight: 500; }
.pf-faixa-corpo { display: grid; gap: 4px; }
.pf-faixa-corpo small { font-size: 11.5px; font-weight: 600; color: #4f46e5; }
.pf-faixa-corpo small[data-nivel="forte"] { color: #b45309; }
.pf-faixa-corpo small[data-nivel="extremo"] { color: #b91c1c; }
.pf-faixa-trilho { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; }
.pf-faixa-trilho i { height: 8px; border-radius: 3px; background: #e6e9f0; }
.pf-faixa-trilho i[data-cheio] { background: #6d5bd0; }

/* Fatores positivos e negativos */
.pf-fatores { display: grid; gap: 10px; }
.pf-fatores > div { display: grid; grid-template-columns: 64px minmax(0, 1fr) 150px; gap: 10px; align-items: center; font-size: 12.5px; }
.pf-fatores-neg { text-align: right; color: var(--text-soft); font-weight: 600; }
.pf-fatores-pos { font-weight: 600; }
.pf-fatores-barra { position: relative; height: 14px; border-radius: 999px; background: var(--surface-muted); }
.pf-fatores-barra::after { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: #c9d0dc; }
.pf-fatores-barra .neg { position: absolute; right: 50%; top: 0; bottom: 0; border-radius: 999px 0 0 999px; background: #0f1115; }
.pf-fatores-barra .pos { position: absolute; left: 50%; top: 0; bottom: 0; border-radius: 0 999px 999px 0; }

/* Radar e competências */
.pf-competencias { display: grid; grid-template-columns: minmax(300px, 460px) minmax(0, 1fr); gap: 20px; align-items: center; padding: 0 12px 12px; }
.pf-radar { width: 100%; height: auto; max-width: 460px; }
.pf-radar-rotulo { font-size: 10.5px; font-weight: 500; fill: #374151; }
.pf-grafico { padding: 0 12px 12px; }

/* Métricas */
.pf-filtro-metricas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; padding: 20px; }
.pf-filtro-metricas label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.pf-filtro-botoes { display: flex; align-items: center; gap: 14px; grid-column: 1 / -1; }
.pf-histogramas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pf-participacao { display: grid; gap: 16px; padding: 0 18px 18px; }
.pf-participacao span { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; }
.pf-participacao small { color: var(--text-soft); font-size: 12px; }
.pf-participacao .pf-dist-trilho { height: 12px; }

/* Grupos */
.pf-grupos-escolha { display: grid; gap: 12px; padding: 20px; }
.pf-grupos { display: grid; gap: 16px; }
.pf-grupo { display: flex; flex-direction: column; gap: 6px; padding: 20px; }
.pf-grupo header { display: grid; gap: 10px; }
.pf-grupo h3 { margin: 0; font-size: 20px; }
.pf-grupo-num { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--text-soft); font-size: 12.5px; }
.pf-grupo-num b { font-size: 15px; }
.pf-grupo details { margin-top: auto; padding-top: 10px; }
.pf-grupo summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.pf-grupo .rec-lista { padding: 6px 0 0; }
.pf-comparar td[data-nivel="forte"] { color: #b45309; font-weight: 500; }
.pf-comparar td[data-nivel="extremo"] { color: #b91c1c; font-weight: 600; }

@media (max-width: 1200px) {
  .pf-lista { grid-template-columns: 1fr; }
  .pf-filtros { position: static; order: -1; }
  .pf-competencias, .pf-topo-relatorio { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .pf-histogramas, .pf-filtro-metricas { grid-template-columns: 1fr; }
  .pf-cab-estilos { grid-template-columns: repeat(2, 1fr); }
  .pf-faixa { grid-template-columns: 1fr; gap: 4px; }
  .pf-grupos { grid-template-columns: 1fr !important; }
}

/* Impressão do relatório (Imprimir / PDF) */
@media print {
  .app-sidebar, .app-header, .mobile-nav, .page-actions, .nao-imprimir, .page-voltar, .toast-region, .skip-link { display: none !important; }
  .app-main { margin: 0 !important; padding: 0 !important; }
  body, .app-page { background: #fff !important; }
  .panel { box-shadow: none !important; border: 1px solid #e5e7eb !important; break-inside: avoid; }
  .pf-relatorio .rec-duas { grid-template-columns: 1fr 1fr; }
}
.pf-lista td { white-space: normal; }
.pf-lista td:nth-child(3) { max-width: 240px; }
.pf-lista .table-scroll table { min-width: 0; }
.pf-filtros *, .pf-filtro-metricas * { box-sizing: border-box; min-width: 0; }
.pf-periodo input { padding: 0 8px; font-size: 12px; }
.pf-radar { max-width: 540px; }
.pf-selo-linha { display: inline-flex; align-items: center; gap: 8px; }
.pf-origem { padding: 2px 8px; border-radius: 999px; background: #f3e8ff; color: #7e22ce; font-size: 11px; font-weight: 600; }
.aviso .stack .button { width: max-content; }
