
.rsf { padding: 0; margin-bottom: 16px; overflow: visible; position: relative; z-index: 30; }
.rsf-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--nx-div, rgba(255,255,255,.08)); }
.rsf-l { flex: 1 1 280px; min-width: 0; } .rsf-l .rs-per { margin: 0; } .rsf-r { display: flex; align-items: center; gap: 14px; }
.rsf-bd { padding: 16px 20px 20px; } .rsf-row { display: flex; gap: 20px; align-items: flex-end; }
.rsf-cust { margin-top: 14px; width: 100%; }
.rsdd { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rsdd-lab { font-size: 12px; font-weight: 600; color: var(--nx-text); display: flex; align-items: center; gap: 6px; }
.rsdd-i { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--nx-muted, #919eab); color: var(--nx-muted, #919eab); font-size: 10px; font-style: italic; font-family: serif; cursor: help; }
.rsdd-b { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--nx-text); background: var(--nx-input, transparent); border: 1px solid var(--nx-solid-bd, rgba(255,255,255,.14)); border-radius: var(--nx-r-ctl, 8px); cursor: pointer; text-align: left; }
.rsdd-b:hover:not(:disabled) { background: var(--nx-hover, rgba(255,255,255,.06)); } .rsdd.open .rsdd-b, .rsdd-b:focus-visible { border-color: var(--nx-acc, #3b82f6); outline: none; }
.rsdd-b:disabled { cursor: not-allowed; opacity: .7; } .rsdd-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; } .rsdd-ch { flex: none; opacity: .75; transition: transform .15s; } .rsdd.open .rsdd-ch { transform: rotate(180deg); }
.rsdd-soon { flex: none; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 10px; background: var(--nx-tint, rgba(255,255,255,.1)); color: var(--nx-muted, #919eab); }
.rsdd-m { position: absolute; left: 0; right: 0; top: calc(100% + 6px); min-width: 220px; max-height: 340px; overflow: auto; z-index: 80; background: var(--nx-solid-bg, #161718); border: 1px solid var(--nx-solid-bd, rgba(255,255,255,.14)); border-radius: 10px; padding: 6px; box-shadow: 0 14px 36px rgba(0,0,0,.4); }
.rsdd-m[hidden] { display: none; }
.rsdd-hd { padding: 9px 12px; font-size: 13px; color: var(--nx-muted, #919eab); }
.rsdd-o { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 6px; background: none; color: var(--nx-text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.rsdd-o:hover { background: var(--nx-hover, rgba(255,255,255,.06)); } .rsdd-o.on { background: var(--nx-acc, #3b82f6); color: var(--nx-on-acc, #fff); font-weight: 700; }
.rsdd-o input[type=checkbox] { width: 18px; height: 18px; flex: none; accent-color: var(--nx-acc, #3b82f6); margin: 0; } .rsdd-o span { min-width: 0; overflow-wrap: anywhere; } .rsdd-all { font-weight: 700; }
.rsdd-s { padding: 4px 4px 8px; } .rsdd-q { width: 100%; box-sizing: border-box; min-height: 40px; padding: 0 12px; font: inherit; font-size: 14px; color: var(--nx-text); background: var(--nx-input, transparent); border: 1px solid var(--nx-solid-bd, rgba(255,255,255,.14)); border-radius: 8px; }
.rsdd-em { padding: 12px; font-size: 13px; color: var(--nx-muted, #919eab); }
/* números dos cards (referência do dono: preview final): Inter 600, grande, espaçamento apertado, algarismos tabulares. Vale para Dashboard, Vendas, Lucro e Escala, Criativos, Recuperação e Carteira. O Resumo também usa a Inter (pedido do dono), em 26px. */
:is(.pn-val, .vd-stat b, .es-val, .cr-val, .rc-card b, .ct-big, .rs-val) { font-family: 'Inter', 'DM Sans', system-ui, sans-serif !important; font-weight: 600 !important; letter-spacing: -.02em; line-height: 1.12 !important; font-variant-numeric: tabular-nums; color: var(--nx-text, #F4F6F8); }
.pn-val, .vd-stat b { font-size: clamp(26px, 2.3vw, 34px) !important; }
.es-val, .cr-val, .rc-card b { font-size: clamp(22px, 1.9vw, 28px) !important; }
.rs-val { font-size: 26px !important; }
@media (max-width: 800px) { .rs-val { font-size: 22px !important; } .pn-val, .vd-stat b { font-size: 24px !important; } .es-val, .cr-val, .rc-card b { font-size: 20px !important; } }
/* Vendas no padrão do preview final: filtros -> chips -> cards -> tabela (Data, Produto, Método, Valor, Status com o motivo embaixo). A ordem e o conteúdo dos chips e dos cards continuam os do dono; o detalhe (Venda, Cliente, Valores, Jornada) não muda. */
#page-vendas .vdp-top { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
#page-vendas .vdp-tool { padding: 0; align-items: flex-end; gap: 14px; }
#page-vendas .vdp-f { display: flex; flex-direction: column; gap: 6px; } #page-vendas .vdp-f label { font-size: 13px; color: var(--nx-muted, #9BA1A8); }
#page-vendas .vdp-tool :is(select.vd-input, input.vd-input, .vd-fbtn) { min-height: 44px; border-radius: var(--nx-r-ctl, 14px); background: var(--nx-input, rgba(0,0,0,.28)); border: 1px solid var(--nx-glass-bd, rgba(255,255,255,.13)); color: var(--nx-text); padding: 0 14px; }
#page-vendas .vdp-tool .vd-searchbox { min-height: 44px; } #page-vendas .vdp-tool .vd-searchbox input.vd-input { padding-left: 38px; }
#page-vendas .vd-stat b { font-size: clamp(22px, 13cqw, 34px) !important; }
#page-vendas .vd-tabs { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; overflow: visible; }
#page-vendas #vdStatuses .vd-chip { height: 40px; min-height: 40px; padding: 0 16px; margin: 0; border: 1px solid var(--nx-glass-bd, rgba(255,255,255,.13)); border-radius: var(--nx-r-pill, 999px); background: transparent; color: var(--nx-muted, #9BA1A8); font-weight: 500; font-size: 14px; }
#page-vendas #vdStatuses .vd-chip:hover { color: var(--nx-text); border-color: var(--nx-glass-bd); }
#page-vendas #vdStatuses .vd-chip.active { background: var(--nx-active-bg, rgba(255,255,255,.12)); border-color: var(--nx-muted, rgba(255,255,255,.3)); color: var(--nx-text); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
#page-vendas .vd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; padding: 0; margin: 0 0 16px; border: 0; }
#page-vendas .vd-stat { display: block; height: auto; min-height: 112px; padding: 20px 22px; border-radius: var(--nx-r-card, 20px); }
#page-vendas .vd-stat-h { display: block; } #page-vendas .vd-stat-h span { font-size: 13px; color: var(--nx-muted, #9BA1A8); white-space: normal; }
#page-vendas .vd-stat b { margin-top: 6px; } #page-vendas .vd-stat small { display: block; margin-top: 4px; font-size: 13px; color: var(--nx-muted, #9BA1A8); }
#page-vendas .vd-panel { border-radius: var(--nx-r-card, 20px); background: var(--nx-card-bg); border: 1px solid var(--nx-card-bd); box-shadow: var(--nx-card-sh); -webkit-backdrop-filter: var(--nx-card-blur); backdrop-filter: var(--nx-card-blur); overflow: hidden; }
#page-vendas .vd-row { grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr) minmax(0, .9fr) minmax(0, .9fr) minmax(0, 1.3fr) 44px; min-height: 56px; padding: 8px 22px; gap: 16px; border-bottom: 1px solid var(--nx-div, rgba(255,255,255,.08)); }
#page-vendas .vd-headrow { min-height: 44px; background: transparent; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--nx-muted, #9BA1A8); }
#page-vendas .vd-row:not(.vd-headrow):hover { background: var(--nx-hover, rgba(255,255,255,.04)); }
#page-vendas .vd-amt { text-align: right; font-variant-numeric: tabular-nums; }
#page-vendas .vd-badge { display: inline-flex; align-items: center; gap: 6px; height: auto; padding: 3px 10px; border-radius: var(--nx-r-pill, 999px); font-size: 13px; font-weight: 500; border: 0; width: max-content; background: var(--nx-ne-bg, rgba(155,161,168,.14)); color: var(--nx-ne, #9BA1A8); }
#page-vendas .vd-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
#page-vendas .vd-badge.vd-st-paid { background: var(--nx-ok-bg, rgba(74,222,128,.12)); color: var(--nx-ok, #4ADE80); }
#page-vendas .vd-badge.vd-st-pending { background: var(--nx-wa-bg, rgba(251,191,36,.12)); color: var(--nx-wa, #FBBF24); }
#page-vendas .vd-badge:is(.vd-st-failed, .vd-st-chargeback) { background: var(--nx-no-bg, rgba(248,113,113,.12)); color: var(--nx-no, #F87171); }
#page-vendas .vd-st .vd-reason { display: block; margin-top: 3px; font-size: 12px; color: var(--nx-muted, #9BA1A8); white-space: normal; }
@media (max-width: 800px) {
  #page-vendas .vd-row { grid-template-columns: minmax(0, 1fr) auto 36px; grid-template-areas: "prod amt act" "st st st" "date method method"; gap: 6px 12px; padding: 14px; }
  #page-vendas .vd-st { grid-area: st; justify-self: start; }
}
/* Dashboard e Vendas ocupam a largura toda (como o Resumo), respeitando só o respiro lateral da página e o menu */
#page-painel, #page-vendas { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
#rcRoot, #page-integrations .oh-wrap, #page-account > .ac-tabs, #page-account [style*="max-width:1100px"] { max-width: none !important; }
/* LOTE 2 (preview final): modais, avisos e confirmações em vidro. Vale para toda a plataforma (.pg-ov/.pg-modal, .nc-dlg-ov/.nc-dlg, .nc-toast). */
html body :is(.pg-ov, .nc-dlg-ov) { background: rgba(0, 0, 3, .80); }
html body :is(.pg-modal, .nc-dlg) { background: var(--nx-card-strong-bg); border: 1px solid var(--nx-glass-bd); border-radius: var(--nx-r-modal, 26px); box-shadow: var(--nx-card-sh), 0 30px 80px rgba(0, 0, 0, .45); -webkit-backdrop-filter: var(--nx-card-blur); backdrop-filter: var(--nx-card-blur); color: var(--nx-text); }
html body .pg-ov.drawer .pg-modal { border-radius: var(--nx-r-modal, 26px) 0 0 var(--nx-r-modal, 26px); }
html body .nc-dlg { padding: 26px; max-width: 460px; } html body .nc-dlg h3 { color: var(--nx-text); font-size: 20px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; } html body .nc-dlg-body { color: var(--nx-muted-hi, var(--nx-muted)); }
html body .nc-dlg-act { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--nx-div); }
html body .nc-dlg-btn { min-height: 44px; border-radius: var(--nx-r-ctl, 14px); border: 1px solid var(--nx-glass-bd); background: var(--nx-card-bg); color: var(--nx-text); font-weight: 600; box-shadow: var(--nx-card-sh); }
html body .nc-dlg-btn:hover { background: var(--nx-hover); }
html body .nc-dlg-btn.primary { background: var(--nx-acc); border-color: var(--nx-btn-bd); color: var(--nx-on-acc); box-shadow: var(--nx-btn-sh); }
html body .nc-dlg-btn.danger { background: var(--nx-no); border-color: var(--nx-no); color: #2A0A0A; box-shadow: none; }
#ncToasts { position: fixed; right: 24px; bottom: 24px; z-index: 100100; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.nc-toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--nx-card-strong-bg); border: 1px solid var(--nx-glass-bd); border-radius: var(--nx-r-ctl, 14px); box-shadow: var(--nx-card-sh), 0 10px 32px rgba(0, 0, 0, .35); -webkit-backdrop-filter: var(--nx-card-blur); backdrop-filter: var(--nx-card-blur); color: var(--nx-text); animation: ncToastIn .2s ease both; }
.nc-toast .ti { flex: none; color: var(--nx-ok); } .nc-toast p { margin: 0; flex: 1; font-size: 14px; line-height: 1.45; color: var(--nx-text); overflow-wrap: anywhere; }
.nc-toast .nc-toast-x { flex: none; display: grid; place-items: center; min-width: 44px; min-height: 44px; margin: -12px -12px -12px 0; border: 0; background: none; color: var(--nx-muted); cursor: pointer; }
.nc-toast .nc-toast-x:hover { color: var(--nx-text); }
.nc-toast.nc-toast-error { border-color: var(--nx-no); } .nc-toast.nc-toast-error .ti { color: var(--nx-no); }
@keyframes ncToastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nc-toast { animation: none; } }
@media (max-width: 640px) {
  #ncToasts { left: 16px; right: 16px; width: auto; bottom: calc(var(--p9-clear, 96px) + 12px); }
  html body .pg-ov:not(.drawer), html body .nc-dlg-ov { align-items: flex-end; padding: 0; }
  html body .pg-ov:not(.drawer) .pg-modal, html body .nc-dlg-ov .nc-dlg { width: 100%; max-width: none; max-height: 92%; border-radius: var(--nx-r-modal, 26px) var(--nx-r-modal, 26px) 0 0; }
  html body .nc-dlg-act .nc-dlg-btn { flex: 1; }
}
/* modal de formulário no padrão do preview: cabeçalho e rodapé fixos, miolo rolando, prévia ao lado */
html body .pg-modal.pgm { display: flex; flex-direction: column; padding: 0; overflow: hidden; max-height: min(92vh, 100%); }
html body .pg-modal.pgm .pgm-h { flex: none; padding: 24px 26px 6px; } html body .pg-modal.pgm .pgm-h .pg-h { margin: 0 0 4px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
html body .pg-modal.pgm .pgm-b { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 8px 26px 20px; }
html body .pg-modal.pgm .pgm-f { flex: none; padding: 14px 26px 18px; border-top: 1px solid var(--nx-div); }
html body .pg-modal.pgm .pgm-f .pg-acts { margin: 0; }
html body .pg-modal.pgm.pgm-wide { width: min(880px, 100%); }
html body .pg-modal.pgm .pgm-2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; align-items: start; }
html body .pg-modal.pgm .pgm-live { position: sticky; top: 0; border: 1px dashed var(--nx-glass-bd); border-radius: var(--nx-r-card, 20px); padding: 16px; background: var(--nx-input, rgba(0,0,0,.2)); display: flex; flex-direction: column; gap: 10px; }
html body .pg-modal.pgm .pgm-live .pg-prev-l { margin: 0; font-size: 12px; color: var(--nx-muted); }
@media (max-width: 900px) { html body .pg-modal.pgm .pgm-2 { grid-template-columns: minmax(0, 1fr); } html body .pg-modal.pgm .pgm-live { position: static; } }
@media (max-width: 640px) { html body .pg-modal.pgm .pgm-h, html body .pg-modal.pgm .pgm-b, html body .pg-modal.pgm .pgm-f { padding-left: 18px; padding-right: 18px; } html body .pg-modal.pgm .pgm-f .pg-acts .pg-btn { flex: 1; } }
/* LOTE 3 (preview final): botões, campos e chips com a mesma medida em todas as páginas (altura 44px, cantos --nx-r-ctl, anel de foco ciano) */
html body :is(.nx-refresh, .pg-btn, .acc-btn-ghost, .acc-btn-primary, .pn2-all) { min-height: 44px; border-radius: var(--nx-r-ctl, 14px); }
html body .nx-refresh { height: 44px !important; padding: 0 18px; border-radius: var(--nx-r-ctl, 14px) !important; }
html body :is(.pl2-search, .acc-field-input) { min-height: 44px !important; height: 44px; border-radius: var(--nx-r-ctl, 14px) !important; background: var(--nx-input, rgba(0,0,0,.28)); border: 1px solid var(--nx-glass-bd); color: var(--nx-text); }
html body :is(#page-integrations .mx-tabs button, .mx-on, #page-integrations [class*="mx-pill"]) { min-height: 40px; }
html body #page-integrations .nx-refresh { border-radius: var(--nx-r-ctl, 14px) !important; }
html body .pn-input { min-height: 44px; height: 44px; }
/* botão Atualizar em ciano em Campanhas e Recuperação, igual ao das outras páginas */
html body #page-campanhas #cmRefresh, html body #page-recuperacao .rc-act .pg-btn.pri { background: var(--nx-acc); color: var(--nx-on-acc); border: 1px solid var(--nx-btn-bd); box-shadow: var(--nx-btn-sh); font-weight: 600; }
html body #page-campanhas #cmRefresh:hover:not(:disabled), html body #page-recuperacao .rc-act .pg-btn.pri:hover:not(:disabled) { background: #CFFAFE; color: var(--nx-on-acc); }
html body .vd-more { min-height: 40px; min-width: 40px; border-radius: 10px; }
html body :is(.cp-input, .pg-sel, .vd-input, .pn-input, .acc-field-input, .pl2-search):hover { border-color: var(--nx-muted); }
html body :is(button, input, select, textarea, a, [role="button"]):focus-visible { outline: none; box-shadow: 0 0 0 2px var(--nx-bg), 0 0 0 4px var(--nx-ring); }
/* menu: o botão de recolher SOBE para a linha do logo (ao lado, na direita) quando o menu abre e desce para baixo do logo quando recolhe; o resto desliza junto */
@media (min-width:641px) {
  body #sidebar .logo-area { position: relative; padding-bottom: 56px !important; transition: padding-bottom .18s ease; }
  body #sidebar .sidebar-toggle-inner { position: absolute !important; grid-column: auto !important; grid-row: auto !important; left: 36px; top: 78px; margin: 0; transition: top .18s ease, left .18s ease; }
  html[data-sidebar="open"]:not(.nx-sb-force) body #sidebar .logo-area { padding-bottom: 10px !important; }
  html[data-sidebar="open"]:not(.nx-sb-force) body #sidebar .sidebar-toggle-inner { left: calc(var(--sbw) - 72px); top: 32px; }
}
@media (min-width: 641px) and (prefers-reduced-motion: reduce) { body #sidebar .logo-area, body #sidebar .sidebar-toggle-inner { transition: none !important; } }
/* sininho: só o ícone, sem borda nem fundo (o anel de foco do teclado continua) */
html body .nt-bell, html body .nt-bell:hover, html body .nt-bell[aria-expanded="true"] { background: transparent !important; border: 0 !important; }
html body .nt-bell:not(:focus-visible) { box-shadow: none !important; }
html body .nt-bell:hover, html body .nt-bell[aria-expanded="true"] { color: var(--nx-text); }
@media (max-width: 1100px) { .rsf-row { flex-wrap: wrap; gap: 14px; } .rsdd { flex: 1 1 calc(50% - 7px) !important; } }
@media (max-width: 640px) { .rsf-hd, .rsf-bd { padding-left: 14px; padding-right: 14px; } .rsdd { flex: 1 1 100% !important; } .rsf-r { width: 100%; justify-content: space-between; } .rsdd-b, .rsdd-o { min-height: 44px; } .rsdd-m { position: static; margin-top: 6px; max-height: 280px; } }
