/* GERADO por brain/templates/av-design-system/exportar-rastreio.py. Não editar aqui:
   mudar o design system e rodar o script de novo. Ajustes do rastreio ficam em assets/painel.css. */
/* ===== NBSA · Componentes de sistema (base: Lead Manager + Credi) =====
   Prefixo nb- em tudo para não colidir com o design system. */
.nb-sys {
  --nb-primary:#8E00FF; --nb-primary-dark:#6B00C2; --nb-primary-10:rgba(142,0,255,.08); --nb-primary-06:rgba(142,0,255,.05);
  --nb-primary-light:#F3E8FF;
  --nb-success:#0A7C4A; --nb-success-10:rgba(10,124,74,.09); --nb-success-light:#DCFCE7;
  --nb-attention:#B45F00; --nb-attention-10:rgba(224,120,0,.10); --nb-attention-light:#FEF3C7;
  --nb-critical:#C41A1A; --nb-critical-10:rgba(196,26,26,.08); --nb-critical-light:#FEE2E2;
  --nb-neutral:#6B6880; --nb-neutral-10:rgba(107,104,128,.09);
  --nb-info:#1D4ED8; --nb-info-10:rgba(29,78,216,.08); --nb-info-light:#DBEAFE;
  --nb-bg:#F5F5F7; --nb-bg-2:#EBEBEF; --nb-card:#FFFFFF; --nb-border:#E8E8EC; --nb-border-strong:#D0D0D8;
  --nb-text:#0F0F14; --nb-text-2:#3A3A4A; --nb-muted:#6E6E82; --nb-disabled:#ABABBC;
  --nb-sidebar:#0F0F14; --nb-sb-hover:rgba(142,0,255,.18); --nb-sb-active:rgba(142,0,255,.28);
  --nb-shadow-xs:0 1px 3px rgba(15,15,20,.04); --nb-shadow-sm:0 6px 28px rgba(15,15,20,.05),0 2px 6px rgba(15,15,20,.02);
  --nb-shadow-lg:0 8px 40px rgba(15,15,20,.10),0 2px 8px rgba(15,15,20,.05);
  --nb-r-sm:8px; --nb-r-md:10px; --nb-r-lg:14px; --nb-r-xl:18px; --nb-r-full:999px;
  font-family: 'Inter', system-ui, sans-serif; color: var(--nb-text); font-size: 14px; line-height: 1.5;
}
[data-theme="dark"] .nb-sys {
  --nb-primary-10:rgba(165,51,255,.16); --nb-primary-06:rgba(165,51,255,.09); --nb-primary-light:rgba(165,51,255,.16);
  --nb-success:#4ADE80; --nb-success-10:rgba(74,222,128,.12); --nb-success-light:rgba(74,222,128,.12);
  --nb-attention:#FBBF24; --nb-attention-10:rgba(251,191,36,.12); --nb-attention-light:rgba(251,191,36,.12);
  --nb-critical:#FF8A80; --nb-critical-10:rgba(255,138,128,.12); --nb-critical-light:rgba(255,138,128,.12);
  --nb-neutral:#A9A6BC; --nb-neutral-10:rgba(169,166,188,.12);
  --nb-info:#93B4FF; --nb-info-10:rgba(147,180,255,.12); --nb-info-light:rgba(147,180,255,.12);
  --nb-bg:#121218; --nb-bg-2:#1A1A22; --nb-card:#16161D; --nb-border:rgba(255,255,255,.08); --nb-border-strong:rgba(255,255,255,.16);
  --nb-text:#FFFFFF; --nb-text-2:rgba(255,255,255,.78); --nb-muted:rgba(255,255,255,.55); --nb-disabled:rgba(255,255,255,.3);
  --nb-sidebar:#09090D;
  --nb-shadow-xs:none; --nb-shadow-sm:none; --nb-shadow-lg:0 12px 48px rgba(0,0,0,.55);
}
.nb-sys *, .nb-sys *::before, .nb-sys *::after { box-sizing: border-box; }
.nb-sys .ic { width: 16px; height: 16px; }
.nb-sub { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--t4); margin: 3.5rem 0 1rem; display:block; }
.nb-sub:first-of-type { margin-top: 0; }
.nb-note { font-size: .75rem; color: var(--t3); max-width: 46rem; line-height: 1.7; margin-bottom: 1.25rem; }

/* ── App shell ── */
.nb-shell { display: flex; border: 1px solid var(--nb-border); border-radius: var(--nb-r-xl); overflow: hidden;
  background: var(--nb-card); min-height: 640px; box-shadow: var(--nb-shadow-sm); }
.nb-sb { width: 230px; flex-shrink: 0; background: var(--nb-sidebar); display: flex; flex-direction: column; }
[data-theme="dark"] .nb-sb { border-right: 1px solid var(--nb-border); }
.nb-sb-logo { display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.nb-sb-mark { width: 30px; height: 30px; border-radius: var(--nb-r-md); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.nb-sb-mark img { width: 30px; height: 30px; object-fit: contain; }
.nb-sb-name { font-size: .9rem; font-weight: 700; color: #fff; letter-spacing: -.3px; line-height: 1; }
.nb-sb-subname { font-size: .62rem; color: rgba(255,255,255,.4); letter-spacing: .5px; text-transform: uppercase; margin-top: 3px; }
.nb-sb-nav { flex: 1; padding: 10px 8px; }
.nb-sb-label { padding: 12px 8px 4px; font-size: .62rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,.4); }
.nb-sb-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: var(--nb-r-md); color: rgba(255,255,255,.66);
  font-size: .84rem; font-weight: 500; position: relative; text-decoration: none; cursor: pointer; transition: background .12s, color .12s; }
.nb-sb-item:hover { background: var(--nb-sb-hover); color: #fff; }
.nb-sb-item.active { background: var(--nb-sb-active); color: #fff; font-weight: 600; }
.nb-sb-item.active::before { content: ''; position: absolute; left: 0; top: 25%; bottom: 25%; width: 3px; background: #A533FF; border-radius: 0 999px 999px 0; }
.nb-sb-item .ic { opacity: .8; }
.nb-sb-badge { margin-left: auto; background: #C41A1A; color: #fff; font-size: .66rem; font-weight: 700; padding: 0 6px; border-radius: 999px; min-width: 18px; text-align: center; line-height: 17px; font-variant-numeric: tabular-nums; }
.nb-sb-divider { height: 1px; background: rgba(255,255,255,.06); margin: 8px 0; }
.nb-sb-foot { padding: 12px; border-top: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; gap: 9px; }
.nb-avatar { width: 28px; height: 28px; border-radius: 999px; background: var(--nb-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; flex-shrink: 0; }
.nb-sb-user { font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.88); }
.nb-sb-role { font-size: .66rem; color: rgba(255,255,255,.4); }

.nb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--nb-card); }
.nb-companybar { display: flex; align-items: center; gap: 8px; padding: 9px 20px; border-bottom: 1px solid var(--nb-border); overflow-x: auto; scrollbar-width: none; }
.nb-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--nb-border);
  background: var(--nb-bg); color: var(--nb-muted); font-size: .78rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: all .12s; }
.nb-chip:hover { color: var(--nb-text); border-color: var(--nb-border-strong); }
.nb-chip.active { background: var(--nb-primary-10); border-color: var(--nb-primary); color: var(--nb-primary); }
[data-theme="dark"] .nb-chip.active { color: #C99BFF; border-color: #A533FF; }
.nb-chip-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #C41A1A; color: #fff; font-size: .66rem; font-weight: 700; line-height: 18px; text-align: center; }
.nb-topbar { display: flex; align-items: center; gap: 12px; padding: 0 20px; height: 54px; border-bottom: 1px solid var(--nb-border); }
.nb-crumb { flex: 1; display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--nb-muted); min-width: 0; white-space: nowrap; }
.nb-crumb b { color: var(--nb-text); font-weight: 600; }
.nb-crumb .sep { color: var(--nb-border-strong); }
.nb-iconbtn { width: 34px; height: 34px; border-radius: 999px; background: var(--nb-bg); border: 1px solid var(--nb-border); display: flex; align-items: center; justify-content: center; color: var(--nb-muted); position: relative; cursor: pointer; }
.nb-iconbtn:hover { color: var(--nb-text); }
.nb-iconbtn .dot { position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: #C41A1A; border: 1.5px solid var(--nb-card); }
/* Contador em botão de ícone (sino, mensagens): pequeno, no canto de fora, sem cobrir o ícone. Acima de 9 mostra "9+". */
.nb-iconbtn .count { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 999px;
  background: #C41A1A; color: #fff; font-size: .6rem; font-weight: 700; line-height: 12px; text-align: center; border: 2px solid var(--nb-card); font-variant-numeric: tabular-nums; pointer-events: none; }
.nb-stack { display: flex; }
.nb-stack span { width: 28px; height: 28px; border-radius: 999px; background: var(--nb-primary-10); color: var(--nb-primary); border: 2px solid var(--nb-card); margin-left: -8px;
  display: flex; align-items: center; justify-content: center; font-size: .66rem; font-weight: 700; }
[data-theme="dark"] .nb-stack span { color: #C99BFF; }
.nb-stack span:first-child { margin-left: 0; }
.nb-page { padding: 22px 20px; background: var(--nb-card); flex: 1; }
.nb-page-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.nb-page-title { font-size: 1.3rem; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; color: var(--nb-text); }
.nb-page-sub { font-size: .82rem; color: var(--nb-muted); margin-top: 3px; }
.nb-page-head .grow { flex: 1; }

/* ── Submenu horizontal (abas) ── */
.nb-tabs { display: flex; gap: 4px; background: var(--nb-bg); border: 1px solid var(--nb-border); border-radius: 999px; padding: 4px;
  width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.nb-tab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; font-size: .82rem; font-weight: 500; color: var(--nb-muted);
  border-radius: 999px; cursor: pointer; white-space: nowrap; border: 0; background: none; font-family: inherit; transition: all .12s; }
.nb-tab:hover { color: var(--nb-text); }
.nb-tab.active { color: var(--nb-text); background: var(--nb-card); font-weight: 600; box-shadow: var(--nb-shadow-sm); }
[data-theme="dark"] .nb-tab.active { background: rgba(255,255,255,.08); }
.nb-tab .count { font-size: .68rem; font-weight: 700; padding: 0 6px; border-radius: 999px; background: var(--nb-primary-10); color: var(--nb-primary); line-height: 17px; }
[data-theme="dark"] .nb-tab .count { color: #C99BFF; }
.nb-tabs-line { display: flex; border-bottom: 1px solid var(--nb-border); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.nb-tabs-line .nb-tab { border-radius: 0; padding: 10px 16px; border-bottom: 2px solid transparent; margin-bottom: -1px; box-shadow: none; background: none; }
.nb-tabs-line .nb-tab.active { color: var(--nb-primary); border-bottom-color: var(--nb-primary); background: none; box-shadow: none; }
[data-theme="dark"] .nb-tabs-line .nb-tab.active { color: #C99BFF; border-bottom-color: #A533FF; }

/* ── Barra de filtros ── */
.nb-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px 8px 14px; background: var(--nb-card);
  border: 1px solid var(--nb-border); border-radius: 999px; margin-bottom: 18px; box-shadow: var(--nb-shadow-xs); }
/* .nb-select abaixo é só para FILTRO de lista. Campo que muda o dado usa .nb-sel. */
.nb-filters .lbl { font-size: .74rem; font-weight: 600; color: var(--nb-muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.nb-select { height: 30px; padding: 0 28px 0 12px; border-radius: 999px; border: 1px solid #DCDCE3; background: #F0F0F4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236E6E82' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  font: inherit; font-size: .78rem; font-weight: 600; color: var(--nb-text); -webkit-appearance: none; appearance: none; cursor: pointer; }
[data-theme="dark"] .nb-select { background-color: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.nb-select.active { border-color: var(--nb-primary); background-color: var(--nb-primary-06); color: var(--nb-primary); }
[data-theme="dark"] .nb-select.active { color: #C99BFF; border-color: #A533FF; }
.nb-filters .spacer { flex: 1; }
/* ── Campo em pílula: muda o dado (status, dono, tipo). Não é filtro: branco com borda forte. ──
   <label class="nb-sel"><span>Status</span><select>…</select></label>. Só em cima de branco. */
.nb-sel { display: inline-flex; align-items: center; height: 30px; padding-left: 12px; border-radius: 999px; border: 1px solid var(--nb-border-strong); background: var(--nb-card);
  font-size: .78rem; transition: border-color .15s, box-shadow .15s; }
.nb-sel > span { color: var(--nb-muted); font-weight: 500; white-space: nowrap; }
.nb-sel > select { height: 100%; padding: 0 28px 0 6px; border: 0; border-radius: 999px; font: inherit; font-weight: 600; color: var(--nb-text); cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236E6E82' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; }
.nb-sel > select:focus { outline: none; }
.nb-sel:hover { border-color: var(--nb-primary); }
.nb-sel:focus-within { border-color: var(--nb-primary); box-shadow: var(--nb-ring); }
.nb-sel:has(select:disabled) { opacity: .6; }
[data-theme="dark"] .nb-sel:hover, [data-theme="dark"] .nb-sel:focus-within { border-color: #A533FF; }
/* Dentro da barra de filtros a pílula com rótulo (ex.: datas De e Até) é filtro: volta ao visual cinza do .nb-select. */
.nb-filters .nb-sel { background: #F0F0F4; border-color: #DCDCE3; }
[data-theme="dark"] .nb-filters .nb-sel { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.nb-period { display: inline-flex; background: var(--nb-bg); border: 1px solid var(--nb-border); border-radius: 999px; padding: 3px; }
.nb-period button { border: 0; background: none; font: inherit; font-size: .74rem; font-weight: 600; color: var(--nb-muted); padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.nb-period button.on { background: var(--nb-primary); color: #fff; }

/* ── Botões de sistema (pílula) ── */
.nb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px;
  font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; border: 1px solid transparent; white-space: nowrap; transition: all .12s; text-decoration: none; }
.nb-btn.sm { height: 30px; padding: 0 12px; font-size: .78rem; }
.nb-btn-primary { background: var(--nb-primary); color: #fff; }
.nb-btn-primary:hover { background: var(--nb-primary-dark); }
.nb-btn-secondary { background: var(--nb-primary-10); color: var(--nb-primary); border-color: rgba(142,0,255,.18); }
[data-theme="dark"] .nb-btn-secondary { color: #C99BFF; }
.nb-btn-outline { background: var(--nb-card); color: var(--nb-text-2); border-color: var(--nb-border); }
.nb-btn-outline:hover { border-color: var(--nb-border-strong); color: var(--nb-text); }
.nb-btn-ghost { background: transparent; color: var(--nb-muted); }
.nb-btn-ghost:hover { background: var(--nb-neutral-10); color: var(--nb-text); }
.nb-btn-danger { background: var(--nb-critical-10); color: var(--nb-critical); border-color: rgba(196,26,26,.18); }

/* ── KPI ── */
.nb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.nb-kpi { background: var(--nb-card); border: 1px solid var(--nb-border); border-radius: var(--nb-r-lg); padding: 16px; box-shadow: var(--nb-shadow-sm); }
.nb-kpi-icon { width: 34px; height: 34px; border-radius: var(--nb-r-md); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.nb-kpi-value { font-size: 1.7rem; font-weight: 800; letter-spacing: -1.2px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--nb-text); }
.nb-kpi-label { font-size: .74rem; color: var(--nb-muted); margin-top: 5px; font-weight: 500; }
.nb-kpi-delta { font-size: .7rem; font-weight: 700; margin-top: 8px; display: inline-flex; align-items: center; gap: 3px; }
.t-primary { background: var(--nb-primary-10); color: var(--nb-primary); } [data-theme="dark"] .t-primary { color: #C99BFF; }
.t-success { background: var(--nb-success-10); color: var(--nb-success); }
.t-attention { background: var(--nb-attention-10); color: var(--nb-attention); }
.t-critical { background: var(--nb-critical-10); color: var(--nb-critical); }
.t-neutral { background: var(--nb-neutral-10); color: var(--nb-neutral); }
.t-info { background: var(--nb-info-10); color: var(--nb-info); }
.c-success { color: var(--nb-success); } .c-critical { color: var(--nb-critical); }

/* ── Card e tabela ── */
.nb-card { background: var(--nb-card); border: 1px solid var(--nb-border); border-radius: var(--nb-r-lg); box-shadow: var(--nb-shadow-sm); }
.nb-card-head { padding: 14px 18px; border-bottom: 1px solid var(--nb-border); display: flex; align-items: center; gap: 10px; }
.nb-card-title { font-size: .9rem; font-weight: 700; flex: 1; color: var(--nb-text); }
.nb-card-body { padding: 18px; }
.nb-table-wrap { overflow-x: auto; }
.nb-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.nb-table th { padding: 10px 16px; text-align: left; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--nb-muted);
  background: var(--nb-bg); border-bottom: 1px solid var(--nb-border); white-space: nowrap; }
.nb-table td { padding: 12px 16px; border-bottom: 1px solid var(--nb-border); color: var(--nb-text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nb-table tr:last-child td { border-bottom: 0; }
.nb-table tbody tr:hover td { background: var(--nb-primary-06); }
.nb-table td b { color: var(--nb-text); font-weight: 600; }
.nb-table .num { text-align: right; }

/* ── Badges de status ── */
.nb-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.nb-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.nb-badge.plain::before { display: none; }

/* ── Grades da seção ── */
.nb-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.nb-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.nb-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.nb-chart-box { position: relative; height: 240px; }
.nb-chart-fallback { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; text-align: center; font-size: .78rem; color: var(--nb-muted); padding: 1rem; }
.nb-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .74rem; color: var(--nb-muted); margin-top: 10px; }
.nb-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ── Alertas ── */
.nb-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--nb-r-lg); font-size: .82rem; line-height: 1.5; }
.nb-alert .ic { flex-shrink: 0; margin-top: 2px; }
.nb-alert b { font-weight: 700; }
.nb-alert-info { background: var(--nb-primary-light); color: #5B21B6; }
.nb-alert-success { background: var(--nb-success-light); color: #065F46; }
.nb-alert-warning { background: var(--nb-attention-light); color: #92400E; }
.nb-alert-error { background: var(--nb-critical-light); color: #991B1B; }
[data-theme="dark"] .nb-alert-info { color: #D9B8FF; } [data-theme="dark"] .nb-alert-success { color: #86EFAC; }
[data-theme="dark"] .nb-alert-warning { color: #FCD34D; } [data-theme="dark"] .nb-alert-error { color: #FFB4AB; }

/* ── Progresso ── */
.nb-progress { height: 6px; background: var(--nb-bg-2); border-radius: 999px; overflow: hidden; }
.nb-progress > span { display: block; height: 100%; border-radius: 999px; background: var(--nb-primary); }
.nb-prog-row { display: grid; grid-template-columns: 110px 1fr 44px; gap: 12px; align-items: center; font-size: .78rem; color: var(--nb-text-2); margin-bottom: 10px; }
.nb-prog-row .v { text-align: right; font-weight: 700; color: var(--nb-text); font-variant-numeric: tabular-nums; }

/* ── Linha do tempo ── */
.nb-timeline { position: relative; padding-left: 26px; }
.nb-timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 1px; background: var(--nb-border); }
.nb-tl-item { position: relative; margin-bottom: 14px; }
.nb-tl-item:last-child { margin-bottom: 0; }
.nb-tl-dot { position: absolute; left: -23px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--nb-card); }
.nb-tl-time { font-size: .7rem; color: var(--nb-muted); margin-bottom: 4px; }
.nb-tl-card { background: var(--nb-bg); border: 1px solid var(--nb-border); border-radius: var(--nb-r-lg); padding: 10px 12px; font-size: .8rem; color: var(--nb-text-2); }
.nb-tl-card b { color: var(--nb-text); }
.nb-tl-title { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.nb-tl-title .ic { width: 15px; height: 15px; flex-shrink: 0; }

/* ── Estado vazio ── */
.nb-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 20px; }
.nb-empty-icon { width: 52px; height: 52px; border-radius: var(--nb-r-xl); background: var(--nb-neutral-10); color: var(--nb-muted); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.nb-empty-title { font-size: .95rem; font-weight: 700; color: var(--nb-text); }
.nb-empty-desc { font-size: .8rem; color: var(--nb-muted); max-width: 260px; }

/* ── Modal e gaveta ── */
.nb-overlay { position: fixed; inset: 0; background: rgba(15,15,20,.45); backdrop-filter: blur(4px); z-index: 900; display: none; align-items: center; justify-content: center; padding: 20px; }
.nb-overlay.open { display: flex; }
.nb-modal { background: var(--nb-card); border-radius: 22px; box-shadow: var(--nb-shadow-lg); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; border: 1px solid var(--nb-border);
  animation: nbScale .2s ease; }
/* Modal e gaveta não herdam o texto de onde foram abertos (ex.: <dialog> dentro de célula de tabela, que tem
   white-space: nowrap e às vezes text-align: right). Sem isso o texto não quebra e sai alinhado à direita. */
.nb-modal, .nb-drawer { white-space: normal; text-align: left; font-variant-numeric: normal; }
@keyframes nbScale { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.nb-modal-head { padding: 20px 22px 16px; border-bottom: 1px solid var(--nb-border); display: flex; align-items: center; gap: 12px; }
.nb-modal-title { flex: 1; font-size: 1rem; font-weight: 700; color: var(--nb-text); }
.nb-modal-sub { font-size: .78rem; color: var(--nb-muted); margin-top: 2px; font-weight: 400; }
.nb-modal-body { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.nb-modal-foot { padding: 14px 22px; border-top: 1px solid var(--nb-border); display: flex; gap: 8px; justify-content: flex-end; background: var(--nb-bg); border-radius: 0 0 22px 22px; }
.nb-x { width: 32px; height: 32px; border-radius: 999px; border: 0; background: var(--nb-bg); color: var(--nb-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.nb-x:hover { color: var(--nb-text); }
.nb-drawer-ov { justify-content: flex-end; padding: 0; }
.nb-drawer { width: 460px; max-width: 94vw; height: 100%; background: var(--nb-card); border-left: 1px solid var(--nb-border); display: flex; flex-direction: column;
  border-radius: 18px 0 0 18px; box-shadow: -8px 0 40px rgba(15,15,20,.14); animation: nbSlide .28s cubic-bezier(.16,1,.3,1); }
@keyframes nbSlide { from { transform: translateX(100%); } to { transform: none; } }
.nb-drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.nb-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nb-kv div { background: var(--nb-bg); border-radius: var(--nb-r-md); padding: 10px 12px; }
.nb-kv span { display: block; font-size: .68rem; color: var(--nb-muted); }
.nb-kv b { font-size: .88rem; color: var(--nb-text); font-variant-numeric: tabular-nums; }

/* ── Avisos (toast) ── */
#nb-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 950; display: flex; flex-direction: column; gap: 8px; max-width: 340px; }
.nb-toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--nb-r-xl); font-size: .82rem; font-weight: 500;
  box-shadow: 0 8px 30px rgba(15,15,20,.14); border: 1px solid transparent; animation: nbUp .2s ease; font-family: 'Inter', sans-serif; }
@keyframes nbUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.nb-toast-success { background: #DCFCE7; color: #065F46; border-color: #A7F3D0; }
.nb-toast-error { background: #FEE2E2; color: #991B1B; border-color: #FCA5A5; }
.nb-toast-info { background: #F3E8FF; color: #5B21B6; border-color: #D8B4FE; }

/* ===================== Versão 2 · acabamento premium ===================== */
.nb-sys { --nb-surface:#F7F6FB; --nb-grad:linear-gradient(135deg,#8E00FF 0%,#6A3DFF 100%);
  --nb-glow:0 10px 30px -10px rgba(142,0,255,.55); --nb-ring:0 0 0 3px #E4D3FF; }
[data-theme="dark"] .nb-sys { --nb-surface:#1A0B2E; --nb-card:#22103D; --nb-bg:#2A1449; --nb-bg-2:#2D1450; --nb-ring:0 0 0 3px rgba(165,51,255,.35); }

/* casca */
.nb-shell { border-radius: 22px; min-height: 720px; background: var(--nb-surface);
  box-shadow: 0 40px 90px -40px rgba(83,4,132,.40), 0 10px 30px -12px rgba(26,11,46,.10); }
[data-theme="dark"] .nb-shell { box-shadow: 0 40px 90px -40px rgba(142,0,255,.35); }

/* menu lateral */
.nb-sb { width: 248px; background:
  radial-gradient(120% 50% at 0% 0%, rgba(142,0,255,.30), transparent 60%),
  radial-gradient(90% 40% at 100% 100%, rgba(106,61,255,.18), transparent 60%), #1A0B2E; }
.nb-sb-logo { padding: 20px 18px 16px; border-bottom: 0; }
.nb-sb-mark { width: 34px; height: 34px; border-radius: 11px; box-shadow: 0 0 0 3px rgba(165,51,255,.25), 0 8px 20px -6px rgba(142,0,255,.7); }
.nb-sb-mark img { width: 34px; height: 34px; }
.nb-sb-search { display: flex; align-items: center; gap: 8px; margin: 0 14px 6px; height: 36px; padding: 0 8px 0 11px; border-radius: 11px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.5); font-size: .8rem; cursor: text; }
.nb-sb-search span { flex: 1; }
.nb-sys kbd { font: 600 .62rem 'Inter', sans-serif; padding: 2px 6px; border-radius: 6px; border: 1px solid currentColor; opacity: .7; white-space: nowrap; }
.nb-sb-nav { padding: 4px 12px 10px; }
.nb-sb-label { padding: 16px 10px 6px; font-size: .6rem; color: rgba(255,255,255,.36); }
.nb-sb-item { padding: 9px 11px; border-radius: 11px; margin-bottom: 2px; color: rgba(255,255,255,.62); }
.nb-sb-item.active { background: linear-gradient(90deg, rgba(142,0,255,.62), rgba(106,61,255,.30));
  box-shadow: inset 0 0 0 1px rgba(197,140,255,.22), 0 8px 22px -10px rgba(142,0,255,.9); }
.nb-sb-item.active::before { display: none; }
.nb-sb-item.active .ic { opacity: 1; }
.nb-sb-badge.soft { background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); }
.nb-store { width: 18px; height: 18px; border-radius: 6px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  font: 800 .58rem 'Inter', sans-serif; color: #fff; font-style: normal; }
.nb-sb-goal { margin: 0 14px 12px; padding: 13px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.nb-sb-goal-top { display: flex; justify-content: space-between; font-size: .72rem; color: rgba(255,255,255,.7); margin-bottom: 8px; }
.nb-sb-goal-top b { color: #fff; font-variant-numeric: tabular-nums; }
.nb-sb-goal-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.10); overflow: hidden; }
.nb-sb-goal-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,#8E00FF,#C58CFF); }
.nb-sb-goal-txt { font-size: .66rem; color: rgba(255,255,255,.45); margin-top: 7px; }
.nb-sb-foot { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.07); }
.nb-sb-user-txt { flex: 1; }
.nb-sb-more { color: rgba(255,255,255,.4); }
.nb-avatar { width: 32px; height: 32px; background: var(--nb-grad); position: relative; }
.nb-avatar.on::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: #22C55E; border: 2px solid #1A0B2E; }

/* área principal */
.nb-main { background: var(--nb-surface); }
.nb-topbar { height: 60px; gap: 14px; background: var(--nb-card); }
.nb-search { display: flex; align-items: center; gap: 8px; width: 300px; max-width: 34%; height: 38px; padding: 0 8px 0 13px; border-radius: 999px;
  background: var(--nb-surface); border: 1px solid var(--nb-border); color: var(--nb-muted); transition: box-shadow .15s, border-color .15s; }
.nb-search:focus-within { border-color: var(--nb-primary); box-shadow: var(--nb-ring); background: var(--nb-card); }
.nb-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: .8rem; color: var(--nb-text); }
.nb-search input::placeholder { color: var(--nb-muted); }
.nb-live { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 600; color: var(--nb-success); white-space: nowrap; }
.nb-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: nbPulse 1.8s infinite; }
@keyframes nbPulse { 0% { box-shadow: 0 0 0 0 rgba(10,124,74,.45); } 70% { box-shadow: 0 0 0 7px rgba(10,124,74,0); } 100% { box-shadow: 0 0 0 0 rgba(10,124,74,0); } }
.nb-companybar { padding: 10px 24px; background: var(--nb-card); gap: 8px; }
.nb-chip { padding: 5px 13px 5px 6px; background: var(--nb-card); }
.nb-chip:first-child { padding-left: 13px; }
.nb-chip.active { background: #1A0B2E; color: #fff; border-color: #1A0B2E; }
[data-theme="dark"] .nb-chip.active { background: #F3E8FF; color: #1A0B2E; border-color: #F3E8FF; }
.nb-page { padding: 26px 24px 24px; background: var(--nb-surface); }
.nb-hello { font-size: .74rem; font-weight: 600; color: var(--nb-primary); margin-bottom: 4px; }
[data-theme="dark"] .nb-hello { color: #C99BFF; }
.nb-page-title { font-size: 1.6rem; letter-spacing: -.8px; }
.nb-tabs { background: var(--nb-card); }
.nb-tab.active { background: #1A0B2E; color: #fff; box-shadow: 0 6px 16px -8px rgba(26,11,46,.7); }
.nb-tab.active .count { background: rgba(255,255,255,.18); color: #fff; }
[data-theme="dark"] .nb-tab.active { background: #F3E8FF; color: #1A0B2E; }
[data-theme="dark"] .nb-tab.active .count { background: rgba(26,11,46,.12); color: #1A0B2E; }
.nb-tabs-line .nb-tab.active .count { background: var(--nb-primary-10); color: var(--nb-primary); }
.nb-filters { margin-bottom: 10px; }
.nb-select:focus { outline: none; box-shadow: var(--nb-ring); }
.nb-period button.on { background: var(--nb-grad); box-shadow: var(--nb-glow); }
.nb-active-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; padding-left: 4px; }
.nb-fchip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 4px 0 11px; border-radius: 999px; font-size: .74rem; color: var(--nb-text-2);
  background: var(--nb-primary-10); border: 1px solid rgba(142,0,255,.22); }
.nb-fchip b { color: var(--nb-primary); font-weight: 700; }
[data-theme="dark"] .nb-fchip b { color: #C99BFF; }
.nb-fchip button { width: 20px; height: 20px; border-radius: 50%; border: 0; background: none; color: var(--nb-muted); font-size: .95rem; line-height: 1; cursor: pointer; }
.nb-fchip button:hover { background: rgba(142,0,255,.15); color: var(--nb-text); }
.nb-link { border: 0; background: none; font: inherit; font-size: .74rem; font-weight: 600; color: var(--nb-muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.nb-link:hover { color: var(--nb-text); }

/* botões */
.nb-btn-primary { background: var(--nb-grad); box-shadow: var(--nb-glow); }
.nb-btn-primary:hover { background: var(--nb-grad); filter: brightness(1.08); transform: translateY(-1px); }
.nb-btn:active { transform: none; }
.nb-btn:focus-visible { outline: none; box-shadow: var(--nb-ring); }
.nb-btn[disabled] { opacity: .4; cursor: not-allowed; box-shadow: none; filter: none; transform: none; }
.nb-vr { width: 1px; align-self: stretch; background: var(--nb-border); margin: 0 4px; }
.nb-dot-s { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* indicadores */
.nb-kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 8px; }
.nb-kpi { padding: 16px 16px 14px; border-radius: 16px; transition: transform .15s, box-shadow .15s; position: relative; overflow: hidden; }
.nb-kpi:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -16px rgba(83,4,132,.35); }
.nb-kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.nb-kpi-top .nb-kpi-icon { margin-bottom: 0; }
.nb-kpi-icon { border-radius: 11px; }
.nb-kpi-value { font-size: 1.9rem; }
.nb-kpi-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 12px; }
.nb-kpi .nb-delta { white-space: nowrap; }
.nb-two b { display: block; font-weight: 600; color: var(--nb-text); }
.nb-two small { display: block; font-size: .7rem; color: var(--nb-muted); margin-top: 1px; }
.nb-spark { width: 70px; height: 30px; flex-shrink: 0; overflow: visible; }
.nb-kpi.hero { background: radial-gradient(120% 90% at 100% 0%, rgba(197,140,255,.45), transparent 55%), var(--nb-grad); border-color: transparent; box-shadow: 0 18px 40px -18px rgba(142,0,255,.8); }
.nb-kpi.hero .nb-kpi-value, .nb-kpi.hero .nb-kpi-label { color: #fff; }
.nb-kpi.hero .nb-kpi-label { opacity: .8; }
.nb-kpi.hero .nb-kpi-icon { background: rgba(255,255,255,.18); color: #fff; }
.nb-kpi.hero .nb-delta { background: rgba(255,255,255,.2); color: #fff; }
.nb-kpi-tag { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.nb-vs-kpi { margin: 0 0 18px 4px; }

/* cartão e tabela */
.nb-card { border-radius: 16px; }
.nb-card-head { padding: 15px 18px; min-height: 58px; }
.nb-card-title { display: flex; align-items: center; gap: 10px; }
.nb-bulk { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--nb-text-2); }
.nb-bulk[hidden] { display: none; }
.nb-bulk b { color: var(--nb-primary); }
.nb-table th { background: var(--nb-surface); position: sticky; top: 0; z-index: 1; }
.nb-table td { padding: 11px 12px; }
.nb-table th { padding: 10px 12px; }
.nb-table .ck { padding-left: 18px; }
.nb-table .act { padding-right: 14px; }
.nb-table tbody tr { cursor: pointer; transition: background .12s; }
.nb-table tbody tr.sel td { background: var(--nb-primary-06); }
.nb-table .ck { width: 44px; padding-right: 0; }
.nb-table .act { width: 44px; text-align: right; }
.nb-ck { appearance: none; -webkit-appearance: none; width: 17px; height: 17px; border-radius: 6px; border: 1.5px solid var(--nb-border-strong); background: var(--nb-card);
  display: inline-grid; place-content: center; cursor: pointer; vertical-align: middle; transition: all .12s; }
.nb-ck:checked { background: var(--nb-primary); border-color: var(--nb-primary); }
.nb-ck:checked::after { content: ''; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px,-1px); }
.nb-ck:focus-visible { outline: none; box-shadow: var(--nb-ring); }
.nb-who { display: flex; align-items: center; gap: 10px; }
.nb-who small { display: flex; align-items: center; gap: 4px; font-size: .7rem; color: var(--nb-muted); margin-top: 1px; }
.nb-who small .ic { width: 12px; height: 12px; }
.nb-ava-s { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font: 700 .7rem 'Inter', sans-serif; font-style: normal; }
[data-theme="dark"] .nb-ava-s { filter: saturate(.9) brightness(.92); }
.nb-sla { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; }
.nb-sla::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.nb-sla.ok { color: var(--nb-success); } .nb-sla.mid { color: var(--nb-attention); } .nb-sla.bad { color: var(--nb-critical); }
.nb-dots { width: 30px; height: 30px; border-radius: 9px; border: 0; background: none; color: var(--nb-muted); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.nb-dots:hover { background: var(--nb-bg); color: var(--nb-text); }
.nb-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--nb-border); font-size: .76rem; color: var(--nb-muted); }
.nb-card-foot b { color: var(--nb-text); }
.nb-pager { display: flex; align-items: center; gap: 4px; }
.nb-pager button { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 9px; border: 1px solid transparent; background: none; font: 600 .76rem 'Inter', sans-serif; color: var(--nb-text-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.nb-pager button .ic { width: 14px; height: 14px; }
.nb-pager button:hover { border-color: var(--nb-border); background: var(--nb-card); }
.nb-pager button.on { background: #1A0B2E; color: #fff; }
[data-theme="dark"] .nb-pager button.on { background: #F3E8FF; color: #1A0B2E; }

/* gráficos */
.nb-chart-card { padding: 18px 18px 14px; }
.nb-chart-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.nb-chart-k { font-size: .76rem; font-weight: 600; color: var(--nb-muted); }
.nb-chart-v { display: flex; align-items: center; gap: 8px; font-size: 1.5rem; font-weight: 800; letter-spacing: -.8px; color: var(--nb-text); margin-top: 4px; font-variant-numeric: tabular-nums; }
.nb-chart-v .nb-delta { letter-spacing: 0; }
.nb-chart-box { height: 220px; }
.nb-donut-center { position: absolute; left: 0; right: 0; top: 0; height: 172px; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.nb-donut-center b { font-size: 1.6rem; font-weight: 800; letter-spacing: -.8px; color: var(--nb-text); line-height: 1; }
.nb-donut-center span { font-size: .7rem; color: var(--nb-muted); margin-top: 3px; }

/* alertas */
.nb-alert { align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid transparent; }
.nb-alert p { margin: 1px 0 0; font-size: .78rem; opacity: .9; line-height: 1.45; }
.nb-alert-ic { width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.65); }
[data-theme="dark"] .nb-alert-ic { background: rgba(255,255,255,.08); }
.nb-alert .ic { margin-top: 0; }
.nb-alert > div { flex: 1; }
.nb-alert-act { font-size: .74rem; font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.nb-alert-info { border-color: #E4D3FF; } .nb-alert-success { border-color: #BBF7D0; } .nb-alert-warning { border-color: #FDE68A; } .nb-alert-error { border-color: #FECACA; }
[data-theme="dark"] .nb-alert { border-color: rgba(255,255,255,.08); }
/* Aviso que leva a um lugar: o aviso inteiro é o link (<a class="nb-alert …">), como os cartões de tarefa.
   Sem botão "Abrir…" dentro: a borda e a sombra no hover mostram que é clicável. */
a.nb-alert { text-decoration: none; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.nb-alert:hover { border-color: currentColor; box-shadow: var(--nb-shadow-xs); }
a.nb-alert:hover .nb-alert-act { text-decoration-thickness: 2px; }
a.nb-alert:active { transform: scale(.995); }
a.nb-alert:focus-visible { outline: none; box-shadow: var(--nb-ring); }

/* ranking */
.nb-rank { display: grid; grid-template-columns: 22px 32px 74px 1fr 40px; gap: 10px; align-items: center; font-size: .8rem; margin-bottom: 12px; }
.nb-rank:last-child { margin-bottom: 0; }
.nb-rank .pos { font-weight: 800; color: var(--nb-muted); text-align: center; font-variant-numeric: tabular-nums; }
.nb-rank .pos.gold { width: 22px; height: 22px; border-radius: 50%; background: var(--nb-grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; }
.nb-rank .nm { font-weight: 600; color: var(--nb-text); }
.nb-rank .v { text-align: right; font-weight: 800; color: var(--nb-text); font-variant-numeric: tabular-nums; }
.nb-progress { height: 8px; }
.nb-progress > span { background: linear-gradient(90deg,#8E00FF,#A533FF); }
.nb-progress.ok > span { background: linear-gradient(90deg,#0A7C4A,#22C55E); }
.nb-progress.mid > span { background: linear-gradient(90deg,#E07800,#F5A524); }
.nb-progress.bad > span { background: linear-gradient(90deg,#C41A1A,#EF4444); }

/* histórico */
.nb-timeline { padding-left: 28px; }
.nb-timeline::before { left: 9px; background: linear-gradient(to bottom, var(--nb-border-strong), var(--nb-border) 85%, transparent); }
.nb-tl-dot { left: -25px; top: 14px; width: 14px; height: 14px; border: 3px solid var(--nb-card); box-shadow: 0 0 0 1px var(--nb-border); }
.nb-tl-card { padding: 11px 14px; border-radius: 14px; background: var(--nb-surface); transition: border-color .12s; }
.nb-tl-card:hover { border-color: var(--nb-border-strong); }
.nb-tl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nb-tl-row .nb-tl-time { margin: 0; white-space: nowrap; }
.nb-tl-card p { margin: 4px 0 0 21px; font-size: .78rem; color: var(--nb-text-2); }

/* estado vazio */
.nb-empty { padding: 40px 20px; }
.nb-empty-art { position: relative; width: 112px; height: 112px; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.nb-empty-art span { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--nb-border-strong); }
.nb-empty-art span + span { inset: 18px; border-style: solid; border-color: var(--nb-border); background: var(--nb-primary-06); }
.nb-empty-icon { position: relative; margin: 0; background: var(--nb-card); color: var(--nb-primary); border: 1px solid var(--nb-border); border-radius: 16px; box-shadow: 0 10px 24px -12px rgba(83,4,132,.45); }
[data-theme="dark"] .nb-empty-icon { color: #C99BFF; }

/* modal e gaveta */
.nb-overlay { background: rgba(26,11,46,.50); backdrop-filter: blur(6px); }
.nb-modal { border-radius: 24px; }
.nb-modal-head { padding: 22px 22px 16px; border-bottom: 0; }
.nb-modal-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--nb-primary-10); color: var(--nb-primary); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
[data-theme="dark"] .nb-modal-ic { color: #C99BFF; }
.nb-modal-title { font-size: 1.05rem; font-weight: 800; letter-spacing: -.3px; }
.nb-modal-body { padding: 4px 22px 20px; }
.nb-modal-foot { background: var(--nb-surface); border-radius: 0 0 24px 24px; }
.nb-drawer { width: 440px; border-radius: 22px 0 0 22px; overflow: hidden; }
.nb-drawer-hero { position: relative; text-align: center; padding: 28px 22px 18px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(142,0,255,.16), transparent 70%), var(--nb-card); border-bottom: 1px solid var(--nb-border); }
.nb-drawer-hero .nb-x { position: absolute; top: 14px; right: 14px; }
.nb-ava-l { width: 64px; height: 64px; border-radius: 20px; background: var(--nb-grad); color: #fff; font: 800 1.2rem 'Inter', sans-serif; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 14px 30px -12px rgba(142,0,255,.8); margin-bottom: 6px; }
.nb-drawer-name { font-size: 1.15rem; font-weight: 800; letter-spacing: -.4px; color: var(--nb-text); }
.nb-drawer-meta { font-size: .76rem; color: var(--nb-muted); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.nb-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; margin-top: 12px; }
.nb-quick button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--nb-border);
  background: var(--nb-card); font: 600 .7rem 'Inter', sans-serif; color: var(--nb-text-2); cursor: pointer; transition: all .12s; }
.nb-quick button .ic { width: 18px; height: 18px; color: var(--nb-primary); }
[data-theme="dark"] .nb-quick button .ic { color: #C99BFF; }
.nb-quick button:hover { border-color: rgba(142,0,255,.4); background: var(--nb-primary-06); }
.nb-kv div { border: 1px solid var(--nb-border); background: var(--nb-surface); border-radius: 12px; }
.nb-drawer-foot { border-radius: 0 0 0 22px; }

/* avisos */
#nb-toasts { max-width: 360px; }
.nb-toast { position: relative; overflow: hidden; align-items: center; gap: 12px; padding: 12px 12px 14px 12px; background: var(--nb-card) !important; color: var(--nb-text) !important;
  border: 1px solid var(--nb-border) !important; border-radius: 16px; box-shadow: 0 18px 40px -14px rgba(26,11,46,.35); }
.nb-toast-ic { width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.nb-toast-success .nb-toast-ic { background: var(--nb-success-10); color: var(--nb-success); }
.nb-toast-error .nb-toast-ic { background: var(--nb-critical-10); color: var(--nb-critical); }
.nb-toast-info .nb-toast-ic { background: var(--nb-primary-10); color: var(--nb-primary); }
.nb-toast-txt { flex: 1; }
.nb-toast-txt b { display: block; font-size: .82rem; font-weight: 700; }
.nb-toast-txt span { display: block; font-size: .76rem; color: var(--nb-muted); margin-top: 1px; }
.nb-toast .nb-x { width: 26px; height: 26px; background: none; }
.nb-toast-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; animation: nbBar 3.2s linear forwards; }
.nb-toast-success .nb-toast-bar { background: var(--nb-success); } .nb-toast-error .nb-toast-bar { background: var(--nb-critical); } .nb-toast-info .nb-toast-bar { background: var(--nb-grad); }
@keyframes nbBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ── Responsivo ── */
@media (max-width: 900px) {
  .nb-sb { width: 64px; }
  .nb-sb-name, .nb-sb-subname, .nb-sb-label, .nb-sb-item span, .nb-sb-badge, .nb-sb-user-txt { display: none; }
  .nb-sb-item { justify-content: center; padding: 10px; }
  .nb-sb-logo, .nb-sb-foot { justify-content: center; padding-left: 8px; padding-right: 8px; }
  .nb-filters { border-radius: var(--nb-r-lg); }
  .nb-sb-search, .nb-sb-goal { display: none; }
  .nb-search { display: none; }
}
@media (max-width: 560px) {
  .nb-sb { display: none; }
  .nb-stack { display: none; }
  .nb-prog-row { grid-template-columns: 80px 1fr 40px; }
  .nb-live { display: none; }
  .nb-rank { grid-template-columns: 22px 32px 1fr 40px; } .nb-rank .nb-progress { display: none; }
  .nb-quick { grid-template-columns: repeat(2, 1fr); }
}

/* correções v2: aba sublinhada no escuro e camadas acima do menu do topo */
[data-theme="dark"] .nb-tabs-line .nb-tab.active { background: none; color: #C99BFF; box-shadow: none; }
[data-theme="dark"] .nb-tabs-line .nb-tab.active .count { background: var(--nb-primary-10); color: #C99BFF; }
.nb-overlay { z-index: 5000; }
#nb-toasts { z-index: 5100; }
.nb-layer { position: relative; z-index: 6000; }
.nb-layer .nb-overlay { z-index: 6000; }

/* gaveta flutuante: 15px de margem das bordas da tela */
.nb-drawer-ov { padding: 15px; }
.nb-drawer { height: 100%; border-radius: 22px; border: 1px solid var(--nb-border); box-shadow: 0 30px 80px -20px rgba(26,11,46,.45); }
.nb-drawer-foot { border-radius: 0 0 22px 22px; }
@keyframes nbSlide { from { transform: translateX(calc(100% + 15px)); } to { transform: none; } }
@media (max-width: 560px) { .nb-drawer-ov { padding: 8px; } }

/* leitura do gráfico de linha no cabeçalho (substitui o balão) */
.nb-chart-read { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-size: .7rem; color: var(--nb-muted); font-variant-numeric: tabular-nums; text-align: right; }
.nb-chart-read b { font-size: .72rem; font-weight: 700; color: var(--nb-primary); margin-bottom: 2px; }
[data-theme="dark"] .nb-chart-read b { color: #C99BFF; }
.nb-period button.on { background: #1A0B2E; box-shadow: 0 6px 16px -8px rgba(26,11,46,.7); }
[data-theme="dark"] .nb-period button.on { background: #F3E8FF; color: #1A0B2E; }
@media (max-width: 560px) {
  .nb-kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .nb-kpi { padding: 13px; }
  .nb-kpi-value { font-size: 1.5rem; }
  .nb-kpi-foot { flex-wrap: wrap; gap: 6px; }
  .nb-spark { width: 100%; }
}

/* v3 meio termo (14/11, Neto: "meio termo" entre o original e o "fino, leve, sem psicodelia").
   Brilho roxo bem mais fraco, degradê só no botão principal e no item ativo, cor de volta nos status,
   fundos coloridos em tom claro. Números em 700. */
.nb-sys { --nb-glow: 0 6px 16px -10px rgba(142,0,255,.45); }
.nb-shell { box-shadow: 0 24px 60px -36px rgba(83,4,132,.28), 0 6px 18px -12px rgba(26,11,46,.08); }
[data-theme="dark"] .nb-shell { box-shadow: 0 24px 60px -36px rgba(142,0,255,.22); }
.nb-sb { background: radial-gradient(120% 45% at 0% 0%, rgba(142,0,255,.16), transparent 60%), #1A0B2E; }
.nb-sb-mark { box-shadow: 0 0 0 3px rgba(165,51,255,.16); }
.nb-sb-item.active { background: linear-gradient(90deg, rgba(142,0,255,.38), rgba(106,61,255,.12)); box-shadow: inset 0 0 0 1px rgba(197,140,255,.16); color: #fff; }
.nb-sb-goal-bar { height: 5px; }
.nb-sb-goal-bar span { background: linear-gradient(90deg,#8E00FF,#B57CFF); }
.nb-tab.active, .nb-period button.on { box-shadow: 0 3px 10px -6px rgba(26,11,46,.5); }
.nb-btn-primary:hover { transform: none; filter: brightness(1.06); }
.nb-kpi:hover { transform: none; box-shadow: 0 10px 26px -18px rgba(83,4,132,.30); }
.nb-kpi.hero { background: linear-gradient(160deg, #F6EEFF 0%, var(--nb-card) 70%); border-color: rgba(142,0,255,.30); box-shadow: 0 10px 26px -20px rgba(142,0,255,.45); }
[data-theme="dark"] .nb-kpi.hero { background: linear-gradient(160deg, rgba(142,0,255,.22) 0%, var(--nb-card) 70%); }
.nb-kpi.hero .nb-kpi-value { color: #8E00FF; }
[data-theme="dark"] .nb-kpi.hero .nb-kpi-value { color: #C99BFF; }
.nb-kpi.hero .nb-kpi-label { color: var(--nb-muted); opacity: 1; }
.nb-kpi.hero .nb-kpi-icon { background: #8E00FF; color: #fff; }
.nb-kpi.hero .nb-delta { background: var(--nb-success-light); color: var(--nb-success); }
.nb-kpi-value, .nb-chart-v, .nb-donut-center b, .nb-page-title, .nb-modal-title, .nb-drawer-name { font-weight: 700; }
.nb-rank .pos, .nb-rank .v { font-weight: 700; }
.nb-progress { height: 6px; }
.nb-progress > span { background: #8E00FF; }
.nb-progress.ok > span { background: #22A060; } .nb-progress.mid > span { background: #E8920F; } .nb-progress.bad > span { background: #DC3B3B; }
[data-theme="dark"] .nb-progress > span { background: #B57CFF; }
.nb-empty-icon { box-shadow: 0 8px 18px -14px rgba(83,4,132,.40); }
.nb-drawer-hero { background: radial-gradient(120% 80% at 50% 0%, rgba(142,0,255,.08), transparent 70%), var(--nb-card); }
.nb-ava-l { box-shadow: 0 10px 22px -14px rgba(142,0,255,.6); font-weight: 700; }
/* avisos: fundo em tom claro (metade do original), borda fina; título na cor do aviso */
.nb-alert-info { background: color-mix(in srgb, var(--nb-primary-light) 55%, var(--nb-card)); }
.nb-alert-success { background: color-mix(in srgb, var(--nb-success-light) 55%, var(--nb-card)); }
.nb-alert-warning { background: color-mix(in srgb, var(--nb-attention-light) 55%, var(--nb-card)); }
.nb-alert-error { background: color-mix(in srgb, var(--nb-critical-light) 55%, var(--nb-card)); }
.nb-alert p { color: var(--nb-text-2); opacity: 1; }
[data-theme="dark"] .nb-alert p { color: rgba(255,255,255,.7); }
.nb-kpi.hero .nb-kpi-tag { color: #8E00FF; } [data-theme="dark"] .nb-kpi.hero .nb-kpi-tag { color: #C99BFF; }

/* logo do topo do menu lateral redondo (Neto, 14/11) */
.nb-sb-mark { border-radius: 50%; }

/* ===== NBSA · Padrões dos sistemas (inventário Credi, Lead Manager, KPI) ===== */
.nb-sys .nb-h { font-size: .9rem; font-weight: 700; color: var(--nb-text); margin-bottom: 10px; }
.nb-sys .nb-cap { font-size: .72rem; color: var(--nb-muted); margin-top: 8px; line-height: 1.5; }

/* Comparação (delta): uma só, em pílula ou texto */
.nb-delta { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums; padding: 2px 8px; border-radius: 999px; }
.nb-delta.up { background: var(--nb-success-10); color: var(--nb-success); }
.nb-delta.down { background: var(--nb-critical-10); color: var(--nb-critical); }
.nb-delta.flat { background: var(--nb-neutral-10); color: var(--nb-neutral); }
.nb-delta.txt { background: none; padding: 0; }
.nb-vs { font-size: .72rem; color: var(--nb-muted); margin-top: 4px; }
.nb-stat { background: var(--nb-card); border: 1px solid var(--nb-border); border-radius: var(--nb-r-lg); padding: 14px 16px; }
.nb-stat .lbl { display: flex; align-items: center; gap: 8px; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--nb-muted); }
.nb-stat .val { font-size: 1.6rem; font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin: 6px 0 6px; font-variant-numeric: tabular-nums; color: var(--nb-text); }

/* Farol de meta */
.nb-sys { --nb-good:#0A7C4A; --nb-good-soft:#DCFCE7; --nb-warn:#B45F00; --nb-warn-soft:#FEF3C7; --nb-bad:#C41A1A; --nb-bad-soft:#FEE2E2; --nb-none:#8C8AA0; --nb-none-soft:#EEEEF2; }
[data-theme="dark"] .nb-sys { --nb-good:#4ADE80; --nb-good-soft:rgba(74,222,128,.12); --nb-warn:#FBBF24; --nb-warn-soft:rgba(251,191,36,.12); --nb-bad:#FF8A80; --nb-bad-soft:rgba(255,138,128,.12); --nb-none:#A9A6BC; --nb-none-soft:rgba(169,166,188,.12); }
.nb-score { background: var(--nb-card); border: 1px solid var(--nb-border); border-radius: var(--nb-r-lg); padding: 16px; }
.nb-score-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.nb-score-n { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .7rem; font-weight: 700; background: var(--nb-primary-10); color: var(--nb-primary); border-radius: 6px; padding: 2px 6px; }
[data-theme="dark"] .nb-score-n { color: #C99BFF; }
.nb-score-t { font-size: .85rem; font-weight: 700; flex: 1; color: var(--nb-text); }
.nb-score-meta { font-size: .68rem; font-weight: 600; border: 1px solid var(--nb-border-strong); border-radius: 999px; padding: 2px 8px; color: var(--nb-muted); }
.nb-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nb-trio div { border-radius: var(--nb-r-md); padding: 8px 10px; }
.nb-trio span { display: block; font-size: .64rem; color: var(--nb-muted); text-transform: uppercase; letter-spacing: .05em; }
.nb-trio b { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.f-good { background: var(--nb-good-soft); } .f-good b { color: var(--nb-good); }
.f-warn { background: var(--nb-warn-soft); } .f-warn b { color: var(--nb-warn); }
.f-bad { background: var(--nb-bad-soft); } .f-bad b { color: var(--nb-bad); }
.f-none { background: var(--nb-none-soft); } .f-none b { color: var(--nb-none); }
.nb-farol { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: var(--nb-text-2); }
.nb-farol i { width: 10px; height: 10px; border-radius: 50%; }

/* Controle segmentado */
.nb-seg { display: inline-flex; background: var(--nb-bg-2); border-radius: 999px; padding: 3px; gap: 2px; }
.nb-seg button { border: 0; background: none; font: inherit; font-size: .8rem; font-weight: 500; color: var(--nb-muted); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.nb-seg button.active { background: var(--nb-card); color: var(--nb-text); font-weight: 600; box-shadow: 0 1px 3px rgba(26,11,46,.12); }
[data-theme="dark"] .nb-seg button.active { background: rgba(255,255,255,.12); }

/* Interruptor */
.nb-switch { display: inline-flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--nb-text-2); cursor: pointer; }
.nb-switch input { position: absolute; opacity: 0; pointer-events: none; }
.nb-switch .trk { width: 36px; height: 20px; border-radius: 999px; background: var(--nb-border-strong); position: relative; transition: background .15s; flex-shrink: 0; }
.nb-switch .trk::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(26,11,46,.25); transition: transform .15s; }
.nb-switch input:checked + .trk { background: var(--nb-primary); }
.nb-switch input:checked + .trk::after { transform: translateX(16px); }
.nb-switch input:focus-visible + .trk { outline: 2px solid #A533FF; outline-offset: 2px; }

/* Caixa de seleção em pílula e opção em cartão */
.nb-check { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--nb-bg-2); border: 1px solid var(--nb-border);
  font-size: .8rem; font-weight: 500; color: var(--nb-text-2); cursor: pointer; }
.nb-check input { accent-color: #8E00FF; }
.nb-check:has(input:checked) { background: var(--nb-primary-10); border-color: rgba(142,0,255,.35); color: var(--nb-text); }
.nb-radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--nb-r-lg); background: var(--nb-bg); border: 1px solid var(--nb-border); cursor: pointer; }
.nb-radio-card input { accent-color: #8E00FF; margin-top: 3px; }
.nb-radio-card b { display: block; font-size: .85rem; color: var(--nb-text); }
.nb-radio-card span { font-size: .74rem; color: var(--nb-muted); }
.nb-radio-card:has(input:checked) { background: var(--nb-primary-10); border-color: #A533FF; }

/* Etapas */
.nb-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.nb-step { font-size: .74rem; color: var(--nb-muted); padding-top: 10px; position: relative; }
.nb-step::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--nb-border); }
.nb-step.done::before { background: #C99BFF; } .nb-step.done { color: var(--nb-text-2); }
.nb-step.now::before { background: #8E00FF; } .nb-step.now { color: var(--nb-text); font-weight: 700; }

/* Menu suspenso, botão de ícone e dica */
.nb-menu { position: relative; display: inline-block; }
.nb-menu summary { list-style: none; } .nb-menu summary::-webkit-details-marker { display: none; }
.nb-icon-btn { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--nb-muted); cursor: pointer; border: 0; background: none; }
.nb-icon-btn:hover, .nb-menu[open] .nb-icon-btn { background: var(--nb-bg-2); color: var(--nb-text); }
.nb-menu-panel { position: absolute; right: 0; top: calc(100% + 4px); min-width: 210px; background: var(--nb-card); border: 1px solid var(--nb-border); border-radius: 12px; padding: 6px; z-index: 20; box-shadow: var(--nb-shadow-lg); }
.nb-menu-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border-radius: 8px; font-size: .82rem; color: var(--nb-text-2); cursor: pointer; border: 0; background: none; font: inherit; text-align: left; }
.nb-menu-item:hover { background: var(--nb-bg); color: var(--nb-text); }
.nb-menu-item.danger { color: var(--nb-critical); } .nb-menu-item.danger:hover { background: var(--nb-critical-10); }
.nb-menu-sep { height: 1px; background: var(--nb-border); margin: 4px 0; }
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px); background: #1A0B2E; color: #fff;
  font-size: .72rem; font-weight: 500; padding: 6px 9px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 30; }
[data-tip]::before { content: ''; position: absolute; bottom: calc(100% + 3px); left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: #1A0B2E; opacity: 0; transition: opacity .15s; z-index: 30; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translateX(-50%); }
[data-tip]:hover::before, [data-tip]:focus-visible::before { opacity: 1; }
[data-theme="dark"] [data-tip]::after { background: #F3E8FF; color: #1A0B2E; } [data-theme="dark"] [data-tip]::before { border-top-color: #F3E8FF; }

/* Busca com sugestões */
.nb-combo { position: relative; max-width: 360px; }
.nb-combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--nb-card); border: 1px solid var(--nb-border); border-radius: 12px; padding: 6px; margin: 0; list-style: none; z-index: 20; box-shadow: var(--nb-shadow-lg); max-height: 220px; overflow-y: auto; }
.nb-combo-list li { padding: 8px 10px; border-radius: 8px; font-size: .82rem; color: var(--nb-text-2); cursor: pointer; display: flex; justify-content: space-between; }
.nb-combo-list li:hover, .nb-combo-list li[aria-selected="true"] { background: var(--nb-bg); color: var(--nb-text); }
.nb-combo-list small { color: var(--nb-muted); }

/* Dados */
.nb-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.nb-fact { border: 1px solid var(--nb-border); border-radius: 10px; padding: 10px 12px; }
.nb-fact span { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--nb-muted); }
.nb-fact b { font-size: .95rem; font-variant-numeric: tabular-nums; color: var(--nb-text); }
.nb-who { display: flex; align-items: center; gap: 10px; }
.nb-ava { width: 32px; height: 32px; border-radius: 50%; background: var(--nb-primary-10); color: #5016A8; font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
[data-theme="dark"] .nb-ava { color: #D9B8FF; }
.nb-who b { display: block; font-size: .85rem; color: var(--nb-text); } .nb-who small { font-size: .74rem; color: var(--nb-muted); }
.nb-list-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--nb-border); cursor: pointer; }
.nb-list-row:last-child { border-bottom: 0; } .nb-list-row:hover { background: var(--nb-primary-06); }
.nb-list-num { font-size: 1.35rem; font-weight: 800; min-width: 2.5rem; font-variant-numeric: tabular-nums; color: var(--nb-text); }
.nb-list-main { flex: 1; font-size: .84rem; color: var(--nb-text-2); } .nb-list-main small { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--nb-muted); }
.nb-chev { width: 8px; height: 8px; border-right: 2px solid var(--nb-muted); border-bottom: 2px solid var(--nb-muted); transform: rotate(-45deg); }
.nb-funnel-row { display: grid; grid-template-columns: 7.5rem 1fr 2.5rem; gap: 10px; align-items: center; font-size: .8rem; color: var(--nb-text-2); margin-bottom: 8px; }
.nb-funnel-row .trk { height: 8px; background: var(--nb-bg-2); border-radius: 999px; overflow: hidden; }
.nb-funnel-row .trk span { display: block; height: 100%; border-radius: 999px; }
.nb-funnel-row b { text-align: right; font-variant-numeric: tabular-nums; color: var(--nb-text); }
.nb-kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 4px; }
/* Coluna: um tom mais claro que o fundo (branco translúcido) + borda, nunca uma cor fixa nem puxada para o roxo. A borda garante a coluna também em cima de card branco. */
.nb-kcol { background: rgba(255,255,255,.6); border: 1px solid var(--nb-border); border-radius: 12px; padding: 10px; border-top: 3px solid var(--k); }
[data-theme="dark"] .nb-kcol { background: rgba(255,255,255,.04); }
.nb-khead { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: var(--nb-text); margin-bottom: 8px; }
.nb-khead i { width: 8px; height: 8px; border-radius: 50%; background: var(--k); } .nb-khead span { margin-left: auto; color: var(--nb-muted); font-weight: 600; }
.nb-kcard { background: var(--nb-card); border: 1px solid var(--nb-border); border-radius: 10px; padding: 9px 10px; font-size: .78rem; color: var(--nb-text-2); margin-bottom: 6px; }
.nb-kcard b { display: block; color: var(--nb-text); font-size: .82rem; }
.nb-acc { border: 1px solid var(--nb-border); border-radius: 12px; margin-bottom: 8px; background: var(--nb-card); }
.nb-acc summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 12px 14px; cursor: pointer; }
.nb-acc summary::-webkit-details-marker { display: none; }
.nb-acc .term { font-size: 1.35rem; font-weight: 800; min-width: 3rem; font-variant-numeric: tabular-nums; color: var(--nb-text); }
.nb-acc .val { flex: 1; font-size: .84rem; color: var(--nb-text-2); }
.nb-acc .nb-chev { transform: rotate(45deg); transition: transform .2s; } .nb-acc[open] .nb-chev { transform: rotate(-135deg); }
.nb-acc .body { padding: 0 14px 14px 76px; font-size: .8rem; color: var(--nb-muted); }
.nb-acc.best { border-color: rgba(10,124,74,.35); } .nb-acc.req { border-left: 3px solid #8E00FF; }

/* Carregamento */
.nb-btn.loading { color: transparent !important; position: relative; pointer-events: none; }
.nb-btn.loading::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: nbSpin .7s linear infinite; }
.nb-btn-outline.loading::after { border-color: var(--nb-border-strong); border-top-color: #8E00FF; }
.nb-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: nbSpin .8s linear infinite; }
@keyframes nbSpin { to { transform: rotate(360deg); } }
.nb-shimmer { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--nb-border); padding: 14px; display: flex; gap: 12px; align-items: center; background: var(--nb-card); }
.nb-shimmer .bar { height: 10px; border-radius: 999px; background: var(--nb-bg-2); }
.nb-shimmer::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 40%, rgba(142,0,255,.10) 50%, transparent 60%); background-size: 200% 100%; animation: nbScan 1.1s linear infinite; }
@keyframes nbScan { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .nb-shimmer::after, .nb-spin, .nb-btn.loading::after { animation: none; } }

/* Avisos especiais */
.nb-private { background: #FAF5FF; border: 1.5px dashed rgba(142,0,255,.3); border-radius: 18px; padding: 14px 16px; font-size: .82rem; color: var(--nb-text-2); }
[data-theme="dark"] .nb-private { background: rgba(165,51,255,.08); }
.nb-private-h { display: flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; color: #8E00FF; margin-bottom: 6px; }
[data-theme="dark"] .nb-private-h { color: #C99BFF; }
.nb-notice { border-radius: 12px; padding: 12px 14px; font-size: .82rem; color: var(--nb-text-2); background: var(--nb-bg); border: 1px solid var(--nb-border); border-left: 4px solid var(--c); }
.nb-notice b { color: var(--nb-text); }
.nb-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; background: var(--nb-bg); border: 1px solid var(--nb-border); border-radius: 8px; padding: 8px 10px; user-select: all; color: var(--nb-text); word-break: break-all; }

/* Relatório (KPI) */
.nb-cover { position: relative; overflow: hidden; background: #1A0B2E; color: #fff; border-radius: 24px; padding: 36px 40px; }
.nb-cover::after { content: ''; position: absolute; top: -160px; right: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(165,51,255,.35), transparent 65%); }
.nb-cover .seg { font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.5); }
.nb-cover .cli { font-size: 1.6rem; font-weight: 800; margin: 6px 0 2px; }
.nb-cover .mes { font-size: .9rem; color: rgba(255,255,255,.7); }
.nb-cover img { height: 26px; position: relative; z-index: 1; margin-bottom: 18px; }
.nb-sec-title { display: flex; align-items: center; gap: 10px; font-size: .72rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #8E00FF; margin: 4px 0 12px; }
[data-theme="dark"] .nb-sec-title { color: #C99BFF; }
.nb-sec-title::after { content: ''; flex: 1; height: 1px; background: var(--nb-border); }
.nb-goal { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 10px; align-items: end; }
.nb-goal div { background: var(--nb-card); border: 1px solid var(--nb-border); border-radius: 12px; padding: 12px 14px; }
.nb-goal span { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--nb-muted); }
.nb-goal b { display: block; font-size: 1.6rem; font-weight: 800; color: var(--nb-muted); font-variant-numeric: tabular-nums; margin: 4px 0; }
.nb-goal .now b { font-size: 2.2rem; color: #8E00FF; } [data-theme="dark"] .nb-goal .now b { color: #C99BFF; }
.nb-goal .now { border-color: rgba(142,0,255,.35); }

/* Telas */
.nb-login { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--nb-border); border-radius: 18px; overflow: hidden; min-height: 320px; }
.nb-login-l { background: #1A0B2E; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 28px; color: #fff; }
.nb-login-l::after { content: ''; position: absolute; width: 340px; height: 340px; bottom: -140px; left: -100px; border-radius: 50%; background: radial-gradient(circle, rgba(165,51,255,.4), transparent 65%); }
.nb-login-l img { width: 52px; height: 52px; border-radius: 14px; background: #fff; position: relative; z-index: 1; margin-bottom: 14px; }
.nb-login-l b { font-size: 1.15rem; position: relative; z-index: 1; } .nb-login-l span { font-size: .8rem; color: rgba(255,255,255,.6); position: relative; z-index: 1; }
.nb-login-r { background: var(--nb-card); padding: 28px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.nb-codein { display: flex; gap: 8px; }
.nb-codein input { width: 42px; height: 50px; text-align: center; font-size: 1.4rem; font-weight: 800; border-radius: 10px; border: 1px solid #DCDCE3; background: #F0F0F4; color: var(--nb-text); font-family: inherit; font-variant-numeric: tabular-nums; }
[data-theme="dark"] .nb-codein input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.nb-codein input:focus { outline: none; border-color: #8E00FF; box-shadow: 0 0 0 3px #E4D3FF; }
.nb-phone { width: 260px; border: 1px solid var(--nb-border); border-radius: 28px; overflow: hidden; background: var(--nb-bg); display: flex; flex-direction: column; height: 420px; }
.nb-phone-head { background: #1A0B2E; color: #fff; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 14px; font-size: .9rem; font-weight: 700; }
.nb-phone-head img { width: 26px; height: 26px; border-radius: 8px; background: #fff; }
.nb-phone-body { flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.nb-swipe { display: flex; border-radius: 12px; overflow: hidden; border: 1px solid var(--nb-border); }
.nb-swipe-c { flex: 1; background: var(--nb-card); padding: 10px 12px; font-size: .78rem; color: var(--nb-text-2); min-width: 0; } .nb-swipe-c b { display: block; color: var(--nb-text); }
.nb-swipe-a { width: 56px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .66rem; font-weight: 700; }
.nb-bottom { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--nb-card); border-top: 1px solid var(--nb-border); padding: 6px 0 10px; }
.nb-bottom a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .64rem; color: var(--nb-muted); text-decoration: none; }
.nb-bottom a.active { color: #8E00FF; font-weight: 700; } [data-theme="dark"] .nb-bottom a.active { color: #C99BFF; }
.nb-bottom .ic { width: 20px; height: 20px; }
@media (max-width: 700px) { .nb-login { grid-template-columns: 1fr; } .nb-login-l { display: none; } .nb-goal { grid-template-columns: 1fr; } .nb-steps { grid-template-columns: repeat(2, 1fr); } }
.nb-goal span.nb-delta { display: inline-flex; text-transform: none; letter-spacing: 0; font-size: .72rem; color: inherit; }
.nb-goal span.nb-delta.up { color: var(--nb-success); } .nb-goal span.nb-delta.down { color: var(--nb-critical); } .nb-goal span.nb-delta.flat { color: var(--nb-neutral); }
/* Menu do topo com 10 itens: aperta antes de cortar o botão de tema */
[data-theme="dark"] .nb-shimmer .bar { background: rgba(255,255,255,.10); }

.nb-lbl-ic { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nb-lbl-ic .ic { width: 14px; height: 14px; }

/* v2: todo seletor em pílula (abas, segmentado, período, paginação) usa o mesmo ativo: roxo noite sólido.
   Degradê fica só para botão principal e destaque. */
.nb-seg { background: var(--nb-card); border: 1px solid var(--nb-border); }
.nb-seg button.active { background: #1A0B2E; color: #fff; box-shadow: 0 6px 16px -8px rgba(26,11,46,.7); }
[data-theme="dark"] .nb-seg button.active { background: #F3E8FF; color: #1A0B2E; }
/* menu suspenso abre para a direita quando o botão está à esquerda */
.nb-menu-panel { left: 0; right: auto; }
.nb-menu.end .nb-menu-panel { left: auto; right: 0; }

/* v3 meio termo (14/11): brilho fraco, fundos coloridos em tom claro, números em 700. */
.nb-seg button.active { box-shadow: 0 3px 10px -6px rgba(26,11,46,.5); }
.nb-stat .val, .nb-trio b, .nb-list-num, .nb-acc .term, .nb-cover .cli, .nb-goal b, .nb-codein input { font-weight: 700; }
.nb-sec-title { font-weight: 700; }
/* farol: fundo do status em tom claro (metade do original), linha fina e bolinha no rótulo */
.nb-trio div { border: 1px solid var(--nb-border); }
.nb-trio span { display: flex; align-items: center; gap: 6px; }
.nb-trio span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--fc, var(--nb-none)); flex-shrink: 0; }
.f-good { --fc: var(--nb-good); background: color-mix(in srgb, var(--nb-good-soft) 50%, var(--nb-card)); }
.f-warn { --fc: var(--nb-warn); background: color-mix(in srgb, var(--nb-warn-soft) 50%, var(--nb-card)); }
.f-bad { --fc: var(--nb-bad); background: color-mix(in srgb, var(--nb-bad-soft) 50%, var(--nb-card)); }
.f-none { --fc: var(--nb-none); background: color-mix(in srgb, var(--nb-none-soft) 50%, var(--nb-card)); }
.nb-shimmer::after { background: linear-gradient(100deg, transparent 40%, rgba(142,0,255,.06) 50%, transparent 60%); background-size: 200% 100%; }
.nb-cover::after, .nb-login-l::after { opacity: .45; }
.nb-swipe-a { background: color-mix(in srgb, var(--a) 18%, var(--nb-card)); color: var(--a); border-left: 1px solid var(--nb-border); font-weight: 700; }

/* P. Campo com microfone (ditado): botão redondo de 32px dentro do campo, sem degradê. */
.field-box.nb-voz { position: relative; padding-right: 3rem; }
.field-box textarea { display: block; width: 100%; background: transparent; border: 0; padding: 0; font: inherit; font-size: .9375rem; font-weight: 600; color: var(--nb-field-value); resize: none; min-height: 4.5rem; line-height: 1.45; }
.field-box textarea:focus { outline: none; }
.field-box textarea::placeholder { color: var(--nb-field-ph); font-weight: 400; }
.nb-mic { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--nb-border); background: var(--nb-card); color: var(--nb-muted); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s; }
.nb-mic .ic { width: 16px; height: 16px; }
.nb-mic:hover { background: var(--nb-primary-10); border-color: rgba(142,0,255,.30); color: #8E00FF; }
.nb-mic:focus-visible { outline: none; box-shadow: 0 0 0 3px #E4D3FF; }
.nb-voz.area .nb-mic { top: auto; bottom: 8px; transform: none; }
.nb-mic.on { background: #C41A1A; border-color: #C41A1A; color: #fff; animation: nbOuvir 1.6s ease-out infinite; }
.nb-parar { width: 10px; height: 10px; border-radius: 2px; background: currentColor; }
@keyframes nbOuvir { 0% { box-shadow: 0 0 0 0 rgba(196,26,26,.35); } 70% { box-shadow: 0 0 0 8px rgba(196,26,26,0); } 100% { box-shadow: 0 0 0 0 rgba(196,26,26,0); } }
@media (prefers-reduced-motion: reduce) { .nb-mic.on { animation: none; } }
.nb-ouvindo { display: flex; align-items: center; gap: 6px; margin: 0; font-size: .74rem; font-weight: 600; color: #C41A1A; }
.nb-ouvindo i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.nb-ouvindo span { font-weight: 400; color: var(--nb-muted); }
[data-theme="dark"] .nb-ouvindo { color: #FFB4AB; }

/* ===== v4 · alinhado às seções 1 a 7 (Neto, 14/11: "os cards da 8 não parecem com os Metric Nodes") =====
   Mesma família visual do design system: textos em tons do roxo noite (t1 a t4), borda fina, cantos de 10px,
   sem sombra nos cartões. Rótulo pequeno em caixa alta e espaçado ACIMA do número (como o Metric Node),
   número em 900 bem fechado (-0.03em), ícone em caixa de contorno lilás (como os Service Cards).
   Cor de status (verde, laranja, vermelho) só no texto da comparação e nos selos, nunca no fundo do cartão. */
.nb-sys {
  --nb-text:#1A0B2E; --nb-text-2:rgba(26,11,46,.74); --nb-muted:rgba(26,11,46,.58); --nb-disabled:rgba(26,11,46,.32);
  --nb-border:rgba(26,11,46,.1); --nb-border-strong:rgba(26,11,46,.18);
  --nb-r-lg:10px; --nb-r-xl:12px;
}
[data-theme="dark"] .nb-sys { --nb-text:#FFFFFF; --nb-text-2:rgba(255,255,255,.72); --nb-muted:rgba(255,255,255,.5); --nb-border:rgba(255,255,255,.08); --nb-border-strong:rgba(255,255,255,.16); }

/* rótulo padrão (overline) */
.nb-kpi-label, .nb-chart-k, .nb-stat .lbl, .nb-trio span, .nb-kv span, .nb-table th {
  font-size: .6rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--nb-muted); }
/* número padrão */
.nb-kpi-value, .nb-chart-v, .nb-donut-center b, .nb-stat .val, .nb-trio b {
  font-weight: 900; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.nb-kpi-value, .nb-chart-v, .nb-donut-center b, .nb-stat .val { color: var(--nb-text); }
.nb-page-title { font-weight: 900; letter-spacing: -.03em; }
.nb-modal-title, .nb-drawer-name { font-weight: 800; letter-spacing: -.02em; }
.nb-card-title, .nb-h, .nb-score-t { font-weight: 700; color: var(--nb-text); }

/* cartões: iguais ao .card do design system */
.nb-card, .nb-kpi, .nb-stat, .nb-score { border-radius: 10px; border: 1px solid var(--nb-border); box-shadow: none; background: var(--nb-card); }

/* indicador no molde do Metric Node */
.nb-kpis { gap: 14px; }
.nb-kpi { padding: 1.5rem; }
.nb-kpi:hover { box-shadow: none; border-color: rgba(165,51,255,.32); }
/* Título e ícone do cartão centralizados na vertical (o título não fica preso no topo do ícone). */
.nb-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: .875rem; }
.nb-kpi-top .nb-kpi-label { margin: 0; padding-top: 0; }
.nb-kpi-value { font-size: 2.25rem; }
.nb-kpi-foot { margin-top: 1.25rem; padding-top: .875rem; border-top: 1px solid var(--nb-border); align-items: center; }
.nb-kpi .nb-spark { height: 22px; }
.nb-kpi.hero { background: var(--nb-card); border-color: rgba(165,51,255,.32); box-shadow: none; }
.nb-kpi.hero .nb-kpi-value { color: var(--nb-text); }
.nb-kpi.hero .nb-kpi-label { color: var(--nb-muted); }
.nb-kpi.hero .nb-delta { background: none; }
[data-theme="dark"] .nb-kpi.hero { background: var(--nb-card); }
[data-theme="dark"] .nb-kpi.hero .nb-kpi-value { color: #fff; }

/* caixa de ícone = .icon-box do design system (contorno lilás, roxo, sem cor de status) */
.nb-kpi-icon, .nb-kpi.hero .nb-kpi-icon, .nb-modal-ic, .nb-alert-ic, .nb-toast-ic, .nb-empty-icon {
  border-radius: 10px; border: 1px solid rgba(165,51,255,.32); background: rgba(165,51,255,.06); color: #8E00FF; box-shadow: none; }
.nb-kpi-icon { width: 2.25rem; height: 2.25rem; margin: 0; }
[data-theme="dark"] .nb-kpi-icon, [data-theme="dark"] .nb-modal-ic, [data-theme="dark"] .nb-alert-ic, [data-theme="dark"] .nb-toast-ic, [data-theme="dark"] .nb-empty-icon { color: #C99BFF; }
.nb-alert .nb-alert-ic { color: inherit; border-color: currentColor; background: transparent; opacity: .9; }
.nb-toast-success .nb-toast-ic { color: var(--nb-success); border-color: currentColor; background: transparent; }
.nb-toast-error .nb-toast-ic { color: var(--nb-critical); border-color: currentColor; background: transparent; }

/* comparação: texto colorido, sem pílula (como o "+" do Metric Node) */
.nb-delta, .nb-delta.up, .nb-delta.down, .nb-delta.flat { background: none; padding: 0; border-radius: 0; font-weight: 600; font-size: .72rem; }
.nb-delta.up { color: var(--nb-success); } .nb-delta.down { color: var(--nb-critical); } .nb-delta.flat { color: var(--nb-muted); }

/* tabela: cabeçalho no mesmo rótulo do design system */
.nb-table th { background: transparent; }
.nb-table td b, .nb-two b, .nb-who b { font-weight: 600; color: var(--nb-text); }
.nb-kpis > .nb-kpi > .nb-kpi-label { display: block; margin: 0 0 .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* v4 · menu lateral no padrão do menu do topo do design system (.nav-link):
   caixa alta pequena e espaçada, cinza claro, ativo em branco com traço no degradê da marca, cantos de 7px, sem brilho. */
.nb-sb-item { font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5);
  padding: 10px 12px; border-radius: 7px; margin-bottom: 2px; transition: color .25s, background .25s; }
.nb-sb-item:hover { color: rgba(255,255,255,.85); background: rgba(255,255,255,.04); }
.nb-sb-item.active { color: #fff; font-weight: 600; background: rgba(255,255,255,.06); box-shadow: none; }
.nb-sb-item.active::before { display: block; content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, #8E00FF, #6A3DFF); }
.nb-sb-item .ic { width: 15px; height: 15px; opacity: .7; }
.nb-sb-item.active .ic { opacity: 1; color: #C99BFF; }
.nb-sb-label { font-size: .58rem; font-weight: 600; letter-spacing: .25em; color: rgba(255,255,255,.32); padding: 18px 12px 6px; }
.nb-sb-search, .nb-sb-goal { border-radius: 10px; }
.nb-sb-badge { font-size: .62rem; letter-spacing: 0; }
.nb-sb-name { font-weight: 800; letter-spacing: -.02em; }
.nb-sb-subname { font-size: .55rem; letter-spacing: .18em; }
.nb-ouvindo[hidden] { display: none; }

/* barra de clientes: faz parte da moldura do sistema, não da página. Mesmo fundo do menu lateral (#1A0B2E). */
.nb-companybar, [data-theme="dark"] .nb-companybar { background: #1A0B2E; border-bottom: 1px solid rgba(255,255,255,.07); }
.nb-companybar .nb-chip { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.10); color: rgba(255,255,255,.66); }
.nb-companybar .nb-chip:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18); color: #fff; }
.nb-companybar .nb-chip.active, [data-theme="dark"] .nb-companybar .nb-chip.active { background: #F3E8FF; border-color: #F3E8FF; color: #1A0B2E; }
.nb-companybar .nb-chip-badge { box-shadow: 0 0 0 2px #1A0B2E; }

/* Leitura do gráfico estável: cada linha da leitura numa linha só (sem quebrar e mudar a altura do cartão). */
.nb-chart-read > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.nb-chart-v .nb-vs { flex-basis: 100%; }
/* Anotação de texto do ponto (ex.: alteração de campanha): dentro do gráfico, na base, em cartão semitransparente
   para ler o texto e ver as linhas por baixo. Fica dentro da caixa do gráfico (position: relative); não recebe o mouse. */
.nb-chart-note { position: absolute; display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 10px;
  background: color-mix(in srgb, var(--nb-card) 80%, transparent); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  border: 1px solid var(--nb-border); box-shadow: var(--nb-shadow-xs); font-size: .72rem; line-height: 1.4; color: var(--nb-text-2);
  pointer-events: none; max-height: 45%; overflow: hidden; }
.nb-chart-note[hidden] { display: none; }
.nb-chart-note b { color: var(--nb-text); font-weight: 700; }
.nb-chart-head > :first-child { min-width: 0; }
.nb-chart-read { min-width: 0; max-width: 60%; }
@media (max-width: 560px) { .nb-chart-read { max-width: 100%; } }

/* Cores de dados (gráficos, funil, mapa): uma cor por significado, herdadas do painel antigo do rastreio.
   O roxo da marca continua escasso na interface; nos dados vale esta paleta, para as séries se distinguirem. */
.nb-sys { --nb-data-azul: #2A78D6; --nb-data-verde: #1BAF7A; --nb-data-roxo: #8E44AD; --nb-data-laranja: #F1750F;
  --nb-data-cinza: #5A6472; --nb-data-indigo: #4A3AA7; --nb-data-noite: #1A0B2E; }
[data-theme="dark"] .nb-sys { --nb-data-azul: #5B9BEA; --nb-data-verde: #3FD09A; --nb-data-roxo: #B57BD3; --nb-data-laranja: #F59A4D;
  --nb-data-cinza: #9AA0AA; --nb-data-indigo: #9A8FE6; --nb-data-noite: #E4D3FF; }
/* Indicador com cor de dados: <div class="nb-kpi cor" style="--k: var(--nb-data-azul)">. Faixa fina no topo, ícone tingido
   e, quando ligado (filtro ou etapa escolhida), borda e anel na mesma cor. Para cartões que representam uma série do gráfico. */
.nb-kpi.cor { border-top: 3px solid var(--k); }
/* Padrão (pedido do Neto, 16/11): ícone do cartão sem fundo e sem contorno; fica só o desenho.
   No cartão com cor de dados, desenho na cor da série. */
.nb-kpi-icon, .nb-kpi.hero .nb-kpi-icon { background: transparent; border: 0; }
.nb-kpi.cor .nb-kpi-icon, .nb-kpi.hero.cor .nb-kpi-icon { color: var(--k); }
.nb-kpi.cor[aria-pressed="true"], .nb-kpi.cor[aria-current="true"], .nb-kpi.cor.on { border-color: var(--k); box-shadow: 0 0 0 3px color-mix(in srgb, var(--k) 22%, transparent); }
/* Texto do indicador com cor de dados: título e número na cor da série (como no painel antigo do rastreio).
   A comparação (.nb-delta) mantém verde e vermelho. */
.nb-kpi.cor .nb-kpi-label, .nb-kpi.cor .nb-kpi-value { color: var(--k); }
.nb-kpi.cor .nb-kpi-label { opacity: .9; }


/* ===== Ajustes NBSA: campos no padrão do Credi ===== */
.field-box { display:block; background: var(--nb-field-bg); border: 1px solid var(--nb-field-border);
  border-radius: 14px; padding: .375rem .75rem .5rem; cursor: text;
  transition: background .15s, border-color .15s, box-shadow .15s; }
.field-box .box-label { display:block; font-size: .6875rem; color: var(--nb-field-label); margin-bottom: .0625rem; }
.field-box .box-label .req { color: #B3261E; }
.field-box input, .field-box select { display:block; width:100%; background: transparent; border:0; padding:0;
  font: inherit; font-size: .9375rem; font-weight: 800; color: var(--nb-field-value); min-height: 1.5rem; }
.field-box input:focus, .field-box select:focus { outline: none; }
.field-box input::placeholder { color: var(--nb-field-ph); font-weight: 400; }
.field-box:focus-within { background: var(--nb-field-focus-bg); border-color: var(--nb-field-ring-border);
  box-shadow: 0 0 0 3px var(--nb-field-ring); }
.field-box.box-error { background: var(--nb-field-focus-bg); border-color: #B3261E; }
.field-box .error-text { font-size: .75rem; color: var(--nb-err); margin-top: .25rem; }
.field-box.box-error { border-color: var(--nb-err); }
.field-box .box-label .req { color: var(--nb-err); }
[data-theme="light"] { --nb-err:#B3261E; }
[data-theme="dark"] { --nb-err:#FF8A80; }
[data-theme="light"] { --nb-field-bg:#F0F0F4; --nb-field-border:#DCDCE3; --nb-field-label:#6E6E78; --nb-field-value:#1A1A1F;
  --nb-field-ph:#9A9AA4; --nb-field-focus-bg:#FFFFFF; --nb-field-ring-border:#8E00FF; --nb-field-ring:#E4D3FF; }
[data-theme="dark"] { --nb-field-bg:rgba(255,255,255,.06); --nb-field-border:rgba(255,255,255,.14); --nb-field-label:rgba(255,255,255,.62); --nb-field-value:#FFFFFF;
  --nb-field-ph:rgba(255,255,255,.38); --nb-field-focus-bg:rgba(255,255,255,.09); --nb-field-ring-border:#A533FF;
  --nb-field-ring:rgba(165,51,255,.28); }