/* =========================================================================
   Emissor Plus — TEMA "CÉU" (17/10/2026), portado do RH Real (apps/RH-REAL-DEV, tema-ceu.css)
   Claro (padrão) = identidade Cirrus (Uiverse Design, licença do usuário): céu de nuvens ao fundo,
   superfícies brancas com fio de 1 px e sombra quase invisível, todo controle em pílula, tinta #0E1116
   na ação principal e no item ativo, títulos Inter Tight 700, corpo Inter. Escuro = paleta Nightdesk
   com as mesmas formas. Camada por cima de nightdesk.css + emissor.css + uiverse.css; nenhum id/name/JS muda.
   ========================================================================= */

/* --- Tokens claro (Cirrus) --- */
:root[data-theme="light"] {
  --ceu-pagina: #EDF2F7; --ceu-sup: #FFFFFF; --ceu-afundado: #F3F6FA; --ceu-afundado-2: #E8EDF4; --ceu-realce: #F7F9FC;
  --ceu-fio: #E3E8EE; --ceu-fio-suave: #EEF2F6; --ceu-fio-forte: #CFD7E1;
  --ceu-tinta: #0E1116; --ceu-corpo: #222B36; --ceu-nevoa: #5B6472; --ceu-suave: #8A93A3; --ceu-sobre-tinta: #FFFFFF;
  --ceu-fundo: radial-gradient(62% 38% at 18% 78%, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 62%), radial-gradient(52% 34% at 82% 70%, rgba(255,255,255,.90) 0%, rgba(255,255,255,0) 60%), radial-gradient(48% 30% at 50% 18%, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 60%), linear-gradient(180deg, #C4DAF2 0%, #EDF2F7 72%);
  --ceu-sombra-1: 0 1px 1px rgba(14,17,22,.04), 0 20px 40px -24px rgba(14,17,22,.18);
  --ceu-sombra-2: 0 1px 1px rgba(14,17,22,.04), 0 20px 40px -24px rgba(14,17,22,.22), 0 2px 6px rgba(14,17,22,.06);
  --ceu-sombra-pop: 0 2px 6px rgba(14,17,22,.06), 0 24px 48px -16px rgba(14,17,22,.26);
  --ceu-tinta-hover: #364152;
  /* Nightdesk → Cirrus */
  --nd-canvas: var(--ceu-pagina); --nd-shell: var(--ceu-pagina); --nd-panel: var(--ceu-sup); --nd-raised: var(--ceu-afundado); --nd-raised-hover: var(--ceu-afundado-2);
  --nd-hairline: var(--ceu-fio); --nd-hairline-strong: var(--ceu-fio-forte);
  --nd-ink: var(--ceu-tinta); --nd-ink-muted: var(--ceu-nevoa); --nd-ink-faint: var(--ceu-suave); --nd-ink-inverse: #FFFFFF;
  --nd-gain: #0B7A51; --nd-loss: #C02E34; --nd-progress: #1E62C8; --nd-caution: #8A5600;
  --nd-gain-fill: rgba(43,196,138,.15); --nd-loss-fill: rgba(229,72,77,.11);
  --nd-focus: #2E7DEF; --nd-focus-ring: 0 0 0 3px rgba(46,125,239,.28);
  --nd-shadow-tooltip: var(--ceu-sombra-pop);
  /* acentos do Emissor */
  --ep-accent: #2E7DEF; --ep-accent-deep: #1E62C8; --ep-accent-soft: rgba(46,125,239,.11); --ep-accent-ring: rgba(46,125,239,.28);
  --ep-grad: linear-gradient(135deg, #2A3340 0%, #0E1116 100%);
  --ep-ok: #0B7A51; --ep-ok-soft: rgba(43,196,138,.15); --ep-warn: #8A5600; --ep-warn-soft: rgba(242,160,7,.15); --ep-bad: #C02E34; --ep-bad-soft: rgba(229,72,77,.11);
  --ep-ok-vivo: #2BC48A; --ep-warn-vivo: #F2A007; --ep-bad-vivo: #E5484D; --ep-sinal-vivo: #2E7DEF;
}
/* --- Tokens escuro (Nightdesk, mesmas formas) --- */
:root[data-theme="dark"] {
  --ceu-pagina: #0F1011; --ceu-sup: #1B1B1B; --ceu-afundado: #232323; --ceu-afundado-2: #2A2A2A; --ceu-realce: #202020;
  --ceu-fio: #2C2C2C; --ceu-fio-suave: #262626; --ceu-fio-forte: #3A3A3A;
  --ceu-tinta: #EDEDED; --ceu-corpo: #D6D6D6; --ceu-nevoa: #9A9A9A; --ceu-suave: #6E6E6E; --ceu-sobre-tinta: #121212;
  --ceu-fundo: none;
  --ceu-sombra-1: 0 1px 1px rgba(0,0,0,.3), 0 20px 40px -24px rgba(0,0,0,.6);
  --ceu-sombra-2: 0 1px 1px rgba(0,0,0,.3), 0 20px 40px -24px rgba(0,0,0,.7), 0 2px 6px rgba(0,0,0,.3);
  --ceu-sombra-pop: 0 2px 6px rgba(0,0,0,.3), 0 24px 48px -16px rgba(0,0,0,.7);
  --ceu-tinta-hover: #FFFFFF;
  --ep-ok-vivo: #4ade80; --ep-warn-vivo: #fbbf24; --ep-bad-vivo: #f87171; --ep-sinal-vivo: #7c8cff;
}
:root { --ceu-fonte: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif; --ceu-titulo: 'Inter Tight', 'Inter', 'Segoe UI', system-ui, sans-serif; --ceu-curva: cubic-bezier(.23, 1, .32, 1); --ceu-dur: 180ms; --ceu-controle: 36px; --ceu-r-cartao: 20px; --ceu-r-bloco: 14px; --nd-sidebar-w: 236px; }

/* --- Página e tipografia --- */
body, .nd-shell, .nd-btn, .nd-input, .nd-select, .nd-tab, button, input, select, textarea { font-family: var(--ceu-fonte); }
body { background-color: var(--ceu-pagina); background-image: var(--ceu-fundo); background-attachment: fixed; background-size: cover; background-repeat: no-repeat; color: var(--ceu-corpo); font-size: 13.5px; }
.ep-stage, .ep-stage .nd-shell, .nd-main { background: transparent; }
.nd-page-title, .nd-title, .ep-hero__txt h1, .ep-cta__title, .ep-login-title, .ep-stat__value, .ep-kpi-line b, .pp-kpi-line b { font-family: var(--ceu-titulo); font-weight: 700; letter-spacing: -.015em; color: var(--nd-ink); }
.nd-page-title { font-size: 26px; line-height: 1.2; }
.nd-title { font-size: 15px; }
.nd-page-title + .nd-help, .ep-hero__txt p { color: var(--ceu-nevoa); }
.nd-num, .ep-feed__when, .nd-kbd { font-variant-numeric: tabular-nums; }
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ceu-tinta) 24%, transparent) transparent; }

/* --- Casca: menu flutuante (cartão 24 px solto do canto), topo transparente, conteúdo --- */
@media (min-width: 861px) {
  .ep-stage .nd-shell { grid-template-columns: calc(var(--nd-sidebar-w) + 12px) 1fr; }
  .ep-stage .nd-shell.is-rail { grid-template-columns: calc(var(--ep-rail-w) + 12px) 1fr; }
  .ep-stage .nd-sidebar { position: sticky; top: 12px; height: calc(100vh - 24px); height: calc(100dvh - 24px); margin: 12px 0 12px 12px; border-radius: 24px; border: 1px solid var(--ceu-fio); box-shadow: var(--ceu-sombra-1); }
  .ep-stage .nd-main { padding: 0 24px 40px 24px; }
}
.ep-stage .nd-sidebar { background: var(--ceu-sup); padding: 14px 12px; gap: 6px; }
.nd-brand { padding: 2px 4px 10px; border-bottom: 0; gap: 10px; }
.nd-brand .nd-tile { width: 36px; height: 36px; border-radius: 12px; font-size: 14px; box-shadow: 0 0 0 1px var(--ceu-fio); }
.ep-brand-txt { font-family: var(--ceu-titulo); font-weight: 700; font-size: 16px; letter-spacing: -.01em; color: var(--ceu-tinta); display: flex; flex-direction: column; line-height: 1.15; }
.ep-brand-txt small { font-family: var(--ceu-fonte); font-weight: 500; font-size: 11.5px; color: var(--ceu-nevoa); }
.ep-rail-btn { border-radius: 50%; }
.nd-switcher { border-radius: 16px; background: var(--ceu-afundado); border: 1px solid var(--ceu-fio-suave); padding: 6px 10px 6px 6px; }
.nd-switcher:hover { border-color: var(--ceu-fio-forte); box-shadow: var(--ceu-sombra-1); transform: none; }
.nd-switcher .nd-tile { border-radius: 10px; background: var(--ceu-sup); color: var(--ceu-tinta); box-shadow: 0 0 0 1px var(--ceu-fio); }
.nd-switcher__meta { font-weight: 600; font-size: 13px; color: var(--ceu-tinta); }
.nd-switcher__meta small { color: var(--ceu-nevoa); font-weight: 400; }
.nd-sidebar .nd-nav-heading { font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ceu-nevoa); padding: 12px 10px 5px; }
.nd-sidebar .nd-nav-group:first-child .nd-nav-heading { padding-top: 4px; }
/* itens: pílula de 38 px, ícone num círculo na cor da área; ativo = tinta (inverso no escuro) */
.nd-nav-group[aria-label="Menu"] { --grp-cor: #1E62C8; --grp-soft: rgba(46,125,239,.13); }
.nd-nav-group[aria-label="Cadastros"] { --grp-cor: #0B7A51; --grp-soft: rgba(43,196,138,.16); }
.nd-nav-group[aria-label="Sistema"] { --grp-cor: #5A3ED6; --grp-soft: rgba(124,92,255,.13); }
:root[data-theme="dark"] .nd-nav-group[aria-label="Menu"] { --grp-cor: #7c8cff; } :root[data-theme="dark"] .nd-nav-group[aria-label="Cadastros"] { --grp-cor: #4ade80; } :root[data-theme="dark"] .nd-nav-group[aria-label="Sistema"] { --grp-cor: #b7a6ff; }
.nd-sidebar .nd-nav-item { height: 38px; margin: 0 0 2px; padding: 0 12px 0 5px; border-radius: 999px; gap: 10px; font-weight: 500; font-size: 13.5px; color: var(--ceu-corpo); transition: background var(--ceu-dur) var(--ceu-curva), color var(--ceu-dur) var(--ceu-curva); }
.nd-nav-item::before { display: none !important; }
.nd-sidebar .nd-nav-item > svg { width: 28px; height: 28px; flex: 0 0 28px; padding: 7px; box-sizing: border-box; border-radius: 50%; background: var(--grp-soft); color: var(--grp-cor); transition: transform .45s var(--ceu-curva), background var(--ceu-dur), color var(--ceu-dur); }
.nd-sidebar .nd-nav-item:hover { background: var(--ceu-afundado); color: var(--ceu-tinta); transform: none; }
.nd-sidebar .nd-nav-item:hover > svg { transform: scale(1.1) rotate(-6deg); }
.nd-sidebar .nd-nav-item.is-active { background: var(--ceu-tinta); color: var(--ceu-sobre-tinta); font-weight: 600; box-shadow: var(--ceu-sombra-2); }
.nd-sidebar .nd-nav-item.is-active > svg { background: color-mix(in srgb, var(--ceu-sobre-tinta) 14%, transparent); color: var(--ceu-sobre-tinta); }
.nd-count { background: var(--ceu-afundado-2); color: var(--ceu-nevoa); border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px; font-size: 11px; font-weight: 600; }
.nd-nav-item.is-active .nd-count { background: color-mix(in srgb, var(--ceu-sobre-tinta) 18%, transparent); color: var(--ceu-sobre-tinta); }
.ep-user { border-radius: 999px; background: var(--ceu-afundado); border: 1px solid var(--ceu-fio-suave); padding: 4px 10px 4px 4px; }
.ep-user:hover { border-color: var(--ceu-fio-forte); box-shadow: none; }
.ep-user .nd-tile { width: 30px; height: 30px; }
.ep-logout { border-radius: 50%; }
/* modo trilho */
@media (min-width: 861px) {
  .is-rail .nd-sidebar .nd-nav-item { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
  .is-rail .nd-sidebar .nd-nav-item > svg { width: 30px; height: 30px; flex-basis: 30px; }
  .is-rail .nd-sidebar .nd-nav-item.is-active { box-shadow: none; }
  .is-rail .nd-switcher { width: 44px; padding: 4px; }
}
/* celular: gaveta volta a encostar na borda */
@media (max-width: 860px) { .ep-stage .nd-sidebar { border-radius: 0 24px 24px 0; margin: 0; border: 0; } }

/* topo: transparente sobre o céu; saudação à esquerda, busca em pílula à direita */
.ep-stage .nd-topbar { background: transparent; border: 0; box-shadow: none; padding: 14px 0 8px; margin: 0 0 6px; min-height: 0; gap: 14px; position: sticky; top: 0; z-index: 20; }
.ep-stage .nd-topbar::before { content: ""; position: absolute; inset: 0; z-index: -1; background-color: var(--ceu-pagina); background-image: var(--ceu-fundo); background-attachment: fixed; background-size: cover; background-repeat: no-repeat; }
.ep-greet { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.2; }
.ep-greet strong { font-family: var(--ceu-titulo); font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: var(--ceu-tinta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-greet small { color: var(--ceu-nevoa); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-crumbs { display: none; }
.nd-search { border-radius: 999px; background: var(--ceu-sup); border: 1px solid var(--ceu-fio); height: var(--ceu-controle); padding: 0 12px; box-shadow: var(--ceu-sombra-1); max-width: 420px; }
.nd-search:focus-within { border-color: var(--ep-accent) !important; }
.nd-kbd { border-radius: 6px; background: var(--ceu-afundado); border: 1px solid var(--ceu-fio); color: var(--ceu-nevoa); }
.ep-menu-btn { border-radius: 50%; background: var(--ceu-sup); border: 1px solid var(--ceu-fio); }
@media (max-width: 860px) { .ep-stage .nd-topbar { padding: 10px 0 6px; } .ep-greet strong { font-size: 15px; } }

/* --- Cartões e painéis: branco, raio 20, fio, sombra quase invisível --- */
.nd-panel, .ep-stat, .ep-alert, .ep-hero, .ep-card { background: var(--ceu-sup); border: 1px solid var(--ceu-fio); border-radius: var(--ceu-r-cartao); box-shadow: var(--ceu-sombra-1); color: var(--ceu-corpo); }
.nd-panel { padding: 18px; gap: 14px; }
.nd-grid > .nd-panel:hover, .ep-stat:hover, .ep-card:hover { box-shadow: var(--ceu-sombra-2); border-color: var(--ceu-fio-forte); }
.ep-stat:hover { transform: translateY(-2px); }
.nd-panel__head { gap: 10px; min-height: 36px; }
.nd-panel__head--ruled { border-bottom: 1px solid var(--ceu-fio-suave); padding-bottom: 12px; }
.nd-panel__head .nd-tile, .ep-perfil-mini .nd-tile { width: 30px; height: 30px; border-radius: 50%; background: var(--ceu-afundado); color: var(--ceu-nevoa); border: 0; }
.nd-panel__head .nd-tile svg { width: 14px; height: 14px; }
.ep-stat::before { display: none; }
.ep-stat { padding: 16px 18px 14px; min-height: 140px; }
.ep-stat__label { font-size: 12.5px; font-weight: 500; color: var(--ceu-nevoa); }
.ep-stat__value { font-size: 28px; font-variant-numeric: tabular-nums; }
.ep-stat--ok .ep-stat__icon { background: var(--ep-ok-soft); color: var(--ep-ok); } .ep-stat--warn .ep-stat__icon { background: var(--ep-warn-soft); color: var(--ep-warn); } .ep-stat--bad .ep-stat__icon { background: var(--ep-bad-soft); color: var(--ep-bad); }
.ep-stat .ep-range i { background: var(--ep-sinal-vivo); } .ep-stat--ok .ep-range i { background: var(--ep-ok-vivo); } .ep-stat--warn .ep-range i { background: var(--ep-warn-vivo); } .ep-stat--bad .ep-range i { background: var(--ep-bad-vivo); }
.ep-range--grad i { background: var(--ep-sinal-vivo) !important; }
.ep-batt { color: var(--ep-ok-vivo); } .ep-stat--warn .ep-batt { color: var(--ep-warn-vivo); } .ep-stat--bad .ep-batt { color: var(--ep-bad-vivo); }
.ep-delta { height: 22px; padding: 0 8px; } .ep-delta:not(.ep-delta--down):not(.ep-delta--flat) { background: var(--ep-ok-soft); color: var(--ep-ok); }
.ep-hero { padding: 16px 20px; }
.ep-hero::before { display: none; }
.ep-hero__txt h1 { font-size: 24px; }
.ep-live { border-radius: 999px; background: var(--ceu-afundado); border: 1px solid var(--ceu-fio-suave); font-weight: 500; }
.ep-live__dots i { background: var(--ep-ok-vivo); } .ep-live--off .ep-live__dots i { background: var(--ep-bad-vivo); }
.ep-alert { padding: 18px; }
.ep-alert h3 { font-family: var(--ceu-titulo); letter-spacing: -.01em; }
.ep-alert__x { border-radius: 50%; }
.ep-cta { border-radius: var(--ceu-r-cartao); }
.ep-cta__content { border-radius: var(--ceu-r-cartao); background: var(--ep-grad); box-shadow: var(--ceu-sombra-2); }
:root[data-theme="dark"] .ep-cta__content { background: linear-gradient(135deg, #2A2A2A, #1B1B1B); border: 1px solid var(--ceu-fio); }
.ep-cta__content::before { background: #CFD7E1; } .ep-cta__content::after { background: #E3E8EE; }
:root[data-theme="dark"] .ep-cta__content::before { background: #2A2A2A; } :root[data-theme="dark"] .ep-cta__content::after { background: #222; }
.ep-cta__btn { border-radius: 999px; font-weight: 600; }
.ep-cta__btn--solid { color: var(--ceu-tinta); }
:root[data-theme="dark"] .ep-cta__btn--solid { background: #EDEDED; color: #121212; border-color: #EDEDED; }
.ep-card__inner { background: var(--ceu-afundado); border-radius: var(--ceu-r-bloco); }
:root[data-theme="light"] .ep-card__inner { background: var(--ceu-afundado); }
.ep-card__go { border-radius: 999px; background: var(--ceu-tinta); color: var(--ceu-sobre-tinta); }
.ep-card:hover .ep-card__go { background: var(--ceu-tinta-hover); }
.ep-card__head .nd-tile { border-radius: 12px; }
.ep-card { box-shadow: var(--ceu-sombra-1); }
.ep-chart__avg-label { border-radius: 999px; }
.ep-bar i { background: linear-gradient(to bottom, var(--ep-sinal-vivo) 0%, #8fbcff 100%); }
.ep-step--done .ep-step__circle, .ep-step--done::before { background: var(--ceu-tinta); border-color: var(--ceu-tinta); color: var(--ceu-sobre-tinta); }
.ep-step--active .ep-step__circle { border-color: var(--ep-sinal-vivo); color: var(--ep-accent-deep); background: var(--ep-accent-soft); }

/* --- Botões: pílula de 36 px; principal em tinta (invertido no escuro) --- */
.nd-btn { border-radius: 999px; height: var(--ceu-controle); padding: 0 16px; font-weight: 600; font-size: 13px; background: var(--ceu-sup); border: 1px solid var(--ceu-fio); color: var(--ceu-tinta); box-shadow: none; }
.nd-btn:hover { background: var(--ceu-afundado); border-color: var(--ceu-fio-forte); color: var(--ceu-tinta); transform: translateY(-1px); box-shadow: var(--ceu-sombra-2); }
.nd-btn:active { transform: scale(.98); }
.nd-btn svg { width: 15px; height: 15px; transition: transform .45s var(--ceu-curva); }
.nd-btn:hover > svg:first-child { transform: scale(1.12) rotate(-6deg); }
.nd-btn--sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.nd-btn--icon { width: var(--ceu-controle); padding: 0; } .nd-btn--icon.nd-btn--sm { width: 30px; }
.nd-btn--ghost { background: transparent; border-color: transparent; box-shadow: none; }
.nd-btn--ghost:hover { background: var(--ceu-afundado); border-color: transparent; box-shadow: none; }
.nd-btn--primary, :root[data-theme="light"] .nd-btn--primary { background: var(--ceu-tinta); border-color: var(--ceu-tinta); color: var(--ceu-sobre-tinta); box-shadow: var(--ceu-sombra-1); filter: none; }
.nd-btn--primary:hover, :root[data-theme="light"] .nd-btn--primary:hover { background: var(--ceu-tinta-hover); border-color: var(--ceu-tinta-hover); color: var(--ceu-sobre-tinta); filter: none; box-shadow: var(--ceu-sombra-2); transform: translateY(-1px); }
.nd-btn--primary::after { display: none; }
.nd-btn--primary .ep-loader circle { stroke: currentColor; }
.ep-logout:hover { color: var(--ep-bad); background: var(--ep-bad-soft); border-color: transparent; box-shadow: none; }

/* --- Campos: pílula branca de 36 px --- */
.nd-input, .nd-select { border-radius: 999px; height: var(--ceu-controle); min-height: var(--ceu-controle); padding: 0 14px; background: var(--ceu-sup); border: 1px solid var(--ceu-fio); color: var(--ceu-tinta); font-size: 13.5px; }
:root[data-theme="dark"] .nd-input, :root[data-theme="dark"] .nd-select { background: #161616; }
.nd-input:hover, .nd-select:hover { border-color: var(--ceu-fio-forte); }
.nd-input::placeholder { color: var(--ceu-suave); }
textarea.nd-input { height: auto; min-height: 84px; padding: 10px 14px; border-radius: 18px; }
.nd-select { padding-right: 34px; background-position: right 12px center; }
.nd-input:disabled, .nd-input[readonly], .nd-select:disabled { background: var(--ceu-afundado); color: var(--ceu-nevoa); }
.nd-label { font-size: 12px; font-weight: 500; color: var(--ceu-nevoa); }
.nd-help { color: var(--ceu-nevoa); font-size: 12px; }
.nd-check { border-radius: 8px; }
.ep-form-grid .nd-field { gap: 4px; }
input[type="file"].nd-input { padding: 3px; border-style: dashed; background: var(--ceu-realce); color: var(--ceu-nevoa); font-size: 12.5px; }
input[type="file"].nd-input::file-selector-button { font-family: var(--ceu-fonte); font-weight: 600; font-size: 12px; color: var(--ceu-sobre-tinta); background: var(--ceu-tinta); border: 0; border-radius: 999px; margin: 0 10px 0 0; padding: 0 14px; height: 28px; cursor: pointer; }

/* --- Guias: cápsula branca flutuante; ativa em "vidro" azul --- */
.nd-tabs { padding: 4px; gap: 2px; border-radius: 22px; background: var(--ceu-sup); border: 1px solid var(--ceu-fio); box-shadow: var(--ceu-sombra-1); }
.nd-tabs .nd-tab { height: 34px; padding: 0 14px; border-radius: 999px; color: var(--ceu-nevoa); font-weight: 500; font-size: 13px; }
.nd-tabs .nd-tab:hover { background: var(--ceu-afundado); color: var(--ceu-tinta); }
.nd-tabs .nd-tab[aria-selected="true"] { background: var(--ep-accent-soft); color: var(--ep-accent-deep); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(46,125,239,.35), 0 1px 2px rgba(14,17,22,.06); }
:root[data-theme="dark"] .nd-tabs .nd-tab[aria-selected="true"] { color: #b9c3ff; }

/* --- Tabelas: cabeçalho em faixa afundada de pontas redondas; linhas de 46 px --- */
.nd-table { font-size: 13.5px; color: var(--ceu-corpo); border-collapse: separate; border-spacing: 0; }
.nd-table thead th { background: var(--ceu-afundado); border: 0; height: 38px; padding: 0 12px; font-size: 12px; font-weight: 600; color: var(--ceu-nevoa); white-space: nowrap; }
.nd-table thead th:first-child { border-radius: 12px 0 0 12px; padding-left: 14px; } .nd-table thead th:last-child { border-radius: 0 12px 12px 0; padding-right: 14px; }
.nd-table td { height: 46px; padding: 8px 12px; border-bottom: 1px solid var(--ceu-fio-suave); vertical-align: middle; }
.nd-table td:first-child { padding-left: 14px; } .nd-table td:last-child { padding-right: 14px; }
.nd-table tbody tr:last-child td { border-bottom: 0; }
.nd-table tbody tr:hover td, :root[data-theme="light"] .nd-table tbody tr:hover td { background: rgba(14,17,22,.025); }
:root[data-theme="dark"] .nd-table tbody tr:hover td { background: rgba(255,255,255,.03); }
.nd-table a.ep-link { border-bottom: 0; font-weight: 600; color: var(--ceu-tinta); } .nd-table a.ep-link:hover { color: var(--ep-accent-deep); }
.nd-table td.nd-cell-num { font-size: 12.5px; }

/* --- Selos: pílula clara com ponto do sinal --- */
.nd-status { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--ceu-afundado); color: var(--ceu-nevoa); border: 0; white-space: nowrap; }
.nd-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ceu-suave); flex: none; margin: 0; }
.nd-status--gain { background: var(--ep-ok-soft); color: var(--ep-ok); } .nd-status--gain::before { background: var(--ep-ok-vivo); }
.nd-status--loss { background: var(--ep-bad-soft); color: var(--ep-bad); } .nd-status--loss::before { background: var(--ep-bad-vivo); }
.nd-status--caution { background: var(--ep-warn-soft); color: var(--ep-warn); } .nd-status--caution::before { background: var(--ep-warn-vivo); }
.nd-status--progress { background: var(--ep-accent-soft); color: var(--ep-accent-deep); } .nd-status--progress::before { background: var(--ep-sinal-vivo); }

/* --- Avisos / toasts --- */
.ep-toast { border-radius: 14px; border: 1px solid var(--ceu-fio); border-left-width: 4px; background: var(--ceu-sup); box-shadow: var(--ceu-sombra-2); color: var(--ceu-corpo); }
.ep-toast--ok { border-left-color: var(--ep-ok-vivo); } .ep-toast--erro { border-left-color: var(--ep-bad-vivo); }
.ep-tip { border-radius: 999px; }

/* --- Entrada --- */
.ep-login { background-color: var(--ceu-pagina); background-image: var(--ceu-fundo); background-attachment: fixed; background-size: cover; padding: 24px; }
.ep-login .nd-panel { max-width: 420px; border-radius: 28px; padding: 28px; }
.ep-login-brand { font-family: var(--ceu-titulo); font-weight: 700; font-size: 18px; letter-spacing: -.01em; color: var(--ceu-tinta); }
.ep-login-brand .nd-tile { border-radius: 12px; }
.ep-login-title { font-size: 28px; margin: 14px 0 2px; }
.ep-login .nd-btn--primary { height: 44px; font-size: 14px; }
.ep-login .nd-input { height: 42px; }

/* --- Ajustes após conferência no navegador --- */
.nd-table-scroll { overflow-x: auto; }
.nd-table { width: 100%; }
.nd-table thead th, .nd-table td { padding-left: 10px; padding-right: 10px; }
@media (max-height: 760px) and (min-width: 861px) {
  .ep-stage .nd-sidebar { padding: 12px 10px; gap: 4px; }
  .nd-sidebar .nd-nav-item { height: 34px; margin-bottom: 1px; }
  .nd-sidebar .nd-nav-item > svg { width: 26px; height: 26px; flex-basis: 26px; padding: 6px; }
  .nd-sidebar .nd-nav-heading { padding: 8px 10px 3px; }
  .nd-switcher { padding: 4px 8px 4px 4px; }
  .nd-brand { padding-bottom: 6px; }
}

/* --- 2ª conferência: tabela cabe no cartão, selos longos quebram, menu cabe em 650 px --- */
.nd-panel > .nd-panel__body { padding: 0; }
.nd-table { font-size: 13px; }
.nd-table td { white-space: normal; }
.nd-table td.nd-cell-num, .nd-table td .nd-status, .nd-table td .nd-btn { white-space: nowrap; }
.nd-table td.nd-cell-primary { font-weight: 500; color: var(--ceu-tinta); }
.nd-status { max-width: 100%; height: auto; min-height: 22px; line-height: 1.25; padding: 2px 9px; white-space: normal; text-align: left; }
.nd-check { border-radius: 6px; }
.ep-delta { font-size: 11px; padding: 0 7px; }
@media (max-height: 700px) and (min-width: 861px) {
  .nd-sidebar .nd-nav-item { height: 30px; font-size: 13px; margin-bottom: 1px; padding-left: 4px; }
  .nd-sidebar .nd-nav-item > svg { width: 24px; height: 24px; flex-basis: 24px; padding: 5px; }
  .nd-sidebar .nd-nav-heading { padding: 6px 10px 2px; font-size: 11px; }
  .nd-brand { padding-bottom: 4px; min-height: 32px; } .nd-brand .nd-tile { width: 32px; height: 32px; }
  .ep-sidebar-nav { gap: 2px; }
}
.nd-table td, .nd-table td.nd-cell-primary { white-space: normal !important; }
.nd-table td.nd-cell-num, .nd-table td .nd-status, .nd-table td .nd-btn, .nd-table td .ep-link { white-space: nowrap !important; }

/* --- Visão geral organizada (17/10/2026): faixa de indicadores, avisos em lista, empresa com perfil e Sefaz --- */
.ep-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--ceu-sup); border: 1px solid var(--ceu-fio); border-radius: var(--ceu-r-cartao); box-shadow: var(--ceu-sombra-1); overflow: hidden; }
.ep-ind { --ind-vivo: var(--ceu-suave); display: flex; flex-direction: column; gap: 6px; padding: 14px 18px 12px; min-width: 0; color: inherit; border-right: 1px solid var(--ceu-fio-suave); transition: background var(--ceu-dur); }
.ep-ind:last-child { border-right: 0; }
.ep-ind:hover { background: var(--ceu-realce); }
.ep-ind--ok { --ind-vivo: var(--ep-ok-vivo); } .ep-ind--warn { --ind-vivo: var(--ep-warn-vivo); } .ep-ind--bad { --ind-vivo: var(--ep-bad-vivo); } .ep-ind--sinal { --ind-vivo: var(--ep-sinal-vivo); }
.ep-ind__label { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--ceu-nevoa); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-ind__label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ind-vivo); flex: none; }
.ep-ind__row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ep-ind__row b { font-family: var(--ceu-titulo); font-weight: 700; font-size: 26px; letter-spacing: -.02em; line-height: 1.1; color: var(--ceu-tinta); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-ind small { font-size: 11.5px; color: var(--ceu-nevoa); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-ind .ep-batt { width: 38px; height: 17px; color: var(--ind-vivo); }
.ep-ind .ep-batt::before { top: 3px; height: 7px; }
.ep-ind .ep-delta { margin-left: 0; }
@media (max-width: 1100px) { .ep-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ep-ind:nth-child(3) { border-right: 0; } .ep-ind:nth-child(n+4) { border-top: 1px solid var(--ceu-fio-suave); } }
@media (max-width: 640px) { .ep-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ep-ind { border-right: 1px solid var(--ceu-fio-suave) !important; } .ep-ind:nth-child(2n) { border-right: 0 !important; } .ep-ind:nth-child(n+3) { border-top: 1px solid var(--ceu-fio-suave); } .ep-ind:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0 !important; } }

.ep-avisos__n { margin-left: auto; }
.ep-aviso { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ceu-fio-suave); }
.ep-aviso:last-of-type { border-bottom: 0; }
.ep-aviso[hidden] { display: none; }
.ep-aviso__icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ceu-afundado); color: var(--ceu-nevoa); }
.ep-aviso__icon svg { width: 16px; height: 16px; }
.ep-aviso--ok .ep-aviso__icon { background: var(--ep-ok-soft); color: var(--ep-ok); } .ep-aviso--warn .ep-aviso__icon { background: var(--ep-warn-soft); color: var(--ep-warn); } .ep-aviso--bad .ep-aviso__icon { background: var(--ep-bad-soft); color: var(--ep-bad); }
.ep-aviso__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12.5px; color: var(--ceu-nevoa); line-height: 1.4; }
.ep-aviso__txt strong { font-size: 13.5px; font-weight: 600; color: var(--ceu-tinta); }
.ep-aviso__acoes { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ep-aviso__x { width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--ceu-suave); display: grid; place-items: center; cursor: pointer; transition: background var(--ceu-dur), color var(--ceu-dur); }
.ep-aviso__x svg { width: 14px; height: 14px; }
.ep-aviso__x:hover { background: var(--ep-bad-soft); color: var(--ep-bad); }
@media (max-width: 640px) { .ep-aviso { grid-template-columns: 34px 1fr; } .ep-aviso__acoes { grid-column: 2; justify-content: flex-start; } }

.ep-dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; margin: 0 0 14px; }
.ep-dl > div { min-width: 0; } .ep-dl dt { font-size: 11.5px; font-weight: 500; color: var(--ceu-nevoa); margin-bottom: 2px; } .ep-dl dd { margin: 0; font-size: 13.5px; color: var(--ceu-tinta); overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .ep-dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ep-linha { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ceu-fio-suave); flex-wrap: wrap; }
.ep-linha__icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ceu-afundado); color: var(--ceu-nevoa); flex: none; }
.ep-linha__icon svg { width: 14px; height: 14px; }
.ep-linha__txt { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; font-size: 12.5px; color: var(--ceu-nevoa); line-height: 1.35; }
.ep-linha__txt strong { font-size: 13px; font-weight: 600; color: var(--ceu-tinta); }
.ep-linha form { display: inline-flex; }
.ep-grid-2 { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
.ep-grid-2 > .nd-panel { min-height: 0; }

/* avisos: ações embaixo do texto (inline só em telas largas); grade de 1 coluna até 900 px; números menores no celular */
.ep-aviso { grid-template-columns: 34px 1fr; align-items: start; }
.ep-aviso__icon { margin-top: 2px; }
.ep-aviso__acoes { grid-column: 2; justify-content: flex-start; margin-top: 2px; }
.ep-aviso__acoes .ep-aviso__x { margin-left: auto; }
@media (min-width: 1500px) { .ep-aviso { grid-template-columns: 34px 1fr auto; align-items: center; } .ep-aviso__acoes { grid-column: auto; justify-content: flex-end; margin-top: 0; } .ep-aviso__acoes .ep-aviso__x { margin-left: 0; } }
@media (max-width: 900px) { .ep-grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ep-ind__row b { font-size: 22px; } .ep-ind { padding: 12px 14px 10px; } .ep-ind .ep-batt { width: 32px; height: 15px; } }

/* anel de validade do certificado (no lugar da bateria) */
.ep-ring { width: 32px; height: 32px; flex: none; transform: rotate(-90deg); }
.ep-ring__bg { fill: none; stroke: var(--ceu-afundado-2); stroke-width: 4; }
.ep-ring__val { fill: none; stroke: var(--ind-vivo); stroke-width: 4; stroke-linecap: round; transition: stroke-dasharray .9s var(--ceu-curva); }

/* --- Visão geral compacta (17/10/2026): sem avisos nem atividade; tudo menor --- */
.ep-compacto { gap: 12px; }
.ep-compacto .ep-hero { padding: 12px 18px; gap: 10px 16px; }
.ep-compacto .ep-hero__txt h1 { font-size: 20px; }
.ep-compacto .ep-hero__txt p { font-size: 12.5px; }
.ep-compacto .ep-live { height: 32px; font-size: 12.5px; }
.ep-compacto .ep-strip { border-radius: 16px; }
.ep-compacto .ep-ind { padding: 10px 16px 9px; gap: 3px; }
.ep-compacto .ep-ind__row b { font-size: 22px; }
.ep-compacto .ep-ind__label { font-size: 12px; }
.ep-compacto .ep-ind small { font-size: 11px; }
.ep-compacto .ep-ring { width: 26px; height: 26px; }
.ep-compacto .nd-panel { padding: 14px 16px; gap: 10px; border-radius: 16px; }
.ep-compacto .nd-panel__head { min-height: 30px; }
.ep-compacto .nd-panel__head .nd-tile { width: 26px; height: 26px; } .ep-compacto .nd-panel__head .nd-tile svg { width: 13px; height: 13px; }
.ep-compacto .nd-title { font-size: 14px; }
.ep-compacto .ep-kpi-line b { font-size: 22px; } .ep-compacto .ep-kpi-line span { font-size: 12px; }
.ep-compacto .ep-chart { height: 84px; margin: 4px 0 2px; }
.ep-compacto .ep-bar i { width: 14px; }
.ep-compacto .ep-bar small { font-size: 9.5px; }
.ep-compacto .ep-readings { padding-top: 2px; }
.ep-compacto .ep-reading { padding: 6px 0; font-size: 12px; }
.ep-compacto .ep-dl { gap: 8px 14px; margin-bottom: 8px; }
.ep-compacto .ep-dl dt { font-size: 11px; } .ep-compacto .ep-dl dd { font-size: 12.5px; }
.ep-compacto .ep-linha { padding: 7px 0; gap: 10px; }
.ep-compacto .ep-linha__icon { width: 26px; height: 26px; } .ep-compacto .ep-linha__icon svg { width: 13px; height: 13px; }
.ep-compacto .ep-linha__txt { font-size: 12px; } .ep-compacto .ep-linha__txt strong { font-size: 12.5px; }
.ep-compacto .ep-grid-2 { grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 900px) { .ep-compacto .ep-grid-2 { grid-template-columns: 1fr; } }

/* --- Totais do editor: card da casa, parcelas em grade, total em caixa "vidro" azul (nos dois temas) --- */
.ep-totais .nd-panel__head { flex-wrap: wrap; }
.ep-totais__estado { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.ep-totais__body { display: flex; flex-direction: row; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.ep-totais__dl { flex: 1 1 420px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; margin: 0; }
.ep-totais__dl dd { font-family: var(--nd-font-mono); font-size: 14px; color: var(--ceu-tinta); }
.ep-totais__total { flex: 0 0 auto; display: flex; flex-direction: column; gap: 2px; min-width: 200px; padding: 12px 18px; border-radius: 14px; background: var(--ep-accent-soft); border: 1px solid var(--ep-accent-ring); }
.ep-totais__total span { font-size: 12px; font-weight: 600; color: var(--ep-accent-deep); }
.ep-totais__total b { font-family: var(--ceu-titulo); font-weight: 700; font-size: 26px; letter-spacing: -.02em; line-height: 1.1; color: var(--ceu-tinta); font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .ep-totais__total span { color: #b9c3ff; }
@media (max-width: 640px) { .ep-totais__total { width: 100%; } }
@media (max-width: 640px) { .ep-totais__dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* fundo da página também no <html> (o Nightdesk pinta o html com --nd-canvas e o cinza vazava fora do body) */
html { background-color: var(--ceu-pagina); background-image: var(--ceu-fundo); background-attachment: fixed; background-size: cover; background-repeat: no-repeat; }
:root[data-theme="dark"] { --nd-canvas: #0F1011; }
/* editor: o invólucro do Alpine empilha as seções com o mesmo respiro do #conteudo */
#conteudo > div[x-data] { display: flex; flex-direction: column; gap: var(--nd-space-5); }

/* --- Paginação em pílulas (Gerenciar notas) --- */
.ep-pag { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 0 2px; }
.ep-pag__info { font-size: 12.5px; color: var(--ceu-nevoa); } .ep-pag__info b { font-weight: 600; color: var(--ceu-tinta); font-variant-numeric: tabular-nums; }
.ep-pag__btns { display: flex; align-items: center; gap: 4px; }
.ep-pag__num { min-width: 30px; padding: 0 10px; font-variant-numeric: tabular-nums; }
.ep-pag__num.is-atual, .ep-pag__num.is-atual:hover { background: var(--ceu-tinta); border-color: var(--ceu-tinta); color: var(--ceu-sobre-tinta); transform: none; box-shadow: none; cursor: default; }
.ep-pag .is-off { opacity: .4; pointer-events: none; }

/* --- Gerenciar notas: cards de situação, ações por linha, menu "mais", diálogo de cancelamento --- */
.ep-strip--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ep-ind.is-atual { background: var(--ceu-afundado); box-shadow: inset 0 -3px 0 var(--ind-vivo); }
@media (max-width: 1100px) { .ep-strip--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ep-strip--4 .ep-ind:nth-child(2) { border-right: 0; } .ep-strip--4 .ep-ind:nth-child(3) { border-right: 1px solid var(--ceu-fio-suave); } .ep-strip--4 .ep-ind:nth-child(n+3) { border-top: 1px solid var(--ceu-fio-suave); } }
.ep-acoes { text-align: right; white-space: nowrap; }
.ep-acoes > * { display: inline-flex; vertical-align: middle; margin-left: 4px; }
.ep-acoes__txt { margin-left: 2px; }
@media (max-width: 1280px) { .ep-acoes__txt { display: none; } .ep-acoes .nd-btn--sm:not(.nd-btn--icon) { width: 30px; padding: 0; } }
.ep-menu { position: relative; display: inline-block; }
.ep-menu > summary { list-style: none; cursor: pointer; }
.ep-menu > summary::-webkit-details-marker { display: none; }
.ep-menu[open] > summary { background: var(--ceu-tinta); color: var(--ceu-sobre-tinta); border-color: var(--ceu-tinta); }
.ep-menu__lista { position: fixed; z-index: 80; min-width: 200px; padding: 6px; border-radius: 16px; background: var(--ceu-sup); border: 1px solid var(--ceu-fio); box-shadow: var(--ceu-sombra-pop); display: flex; flex-direction: column; gap: 2px; animation: ep-surge .22s var(--ceu-curva); text-align: left; }
@keyframes ep-surge { from { opacity: 0; translate: 0 -4px; scale: .98; } to { opacity: 1; translate: 0 0; scale: 1; } }
.ep-menu__lista form { display: contents; }
.ep-menu__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ceu-corpo); font: inherit; font-size: 13px; font-weight: 500; text-align: left; cursor: pointer; white-space: nowrap; }
.ep-menu__item svg { width: 15px; height: 15px; color: var(--ceu-nevoa); }
.ep-menu__item:hover { background: var(--ceu-afundado); color: var(--ceu-tinta); }
.ep-menu__item--perigo { color: var(--ep-bad); } .ep-menu__item--perigo svg { color: var(--ep-bad); } .ep-menu__item--perigo:hover { background: var(--ep-bad-soft); color: var(--ep-bad); }
.ep-dialog { border: 1px solid var(--ceu-fio); border-radius: 24px; padding: 22px; width: min(480px, calc(100vw - 32px)); background: var(--ceu-sup); color: var(--ceu-corpo); box-shadow: var(--ceu-sombra-pop); }
.ep-dialog::backdrop { background: rgba(14,17,22,.45); backdrop-filter: blur(2px); }
.ep-dialog form { display: flex; flex-direction: column; gap: 14px; }
.ep-dialog__head { display: flex; gap: 12px; align-items: flex-start; }
.ep-dialog__head .nd-help { margin: 4px 0 0; }
.ep-dialog__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ep-bad-soft); color: var(--ep-bad); flex: none; }
.ep-dialog__icon svg { width: 18px; height: 18px; }
.ep-dialog__acoes { display: flex; justify-content: flex-end; gap: 8px; }
.ep-dialog .nd-btn--primary { background: var(--ep-bad); border-color: var(--ep-bad); color: #fff; }
.ep-dialog .nd-btn--primary:hover { background: #a3262c; border-color: #a3262c; }
