/* ACAISAN CONTROL v4 — camada SÓ VISUAL no padrão ACAISAN PLAN.
   Não altera dados, consultas, permissões, navegação nem textos de fonte/aviso. Vale para control.html e para as páginas
   embutidas (atendimento, clientes, assinaturas) e a retenção de dados. Tudo fica sob html.ctl4. */
html.ctl4{
  --c4-bg:#09090b;--c4-side:#0c0c0e;--c4-s1:#111114;--c4-s2:#16161a;--c4-s3:#1c1c21;
  --c4-line:#232329;--c4-line2:#2f2f37;--c4-ink:#f4f4f5;--c4-ink2:#d4d4d8;--c4-mut:#a1a1aa;--c4-mut2:#71717a;
  --c4-lime:#a3e635;--c4-lime2:#bef264;--c4-limeA:#a3e6351f;--c4-gold:#f5c451;--c4-red:#f87171;--c4-blue:#7dd3fc;
  --c4-head:Manrope,Inter,system-ui,sans-serif;--c4-mono:'JetBrains Mono',ui-monospace,monospace;
  --c4-card:linear-gradient(160deg,#16161a 0%,#111114 60%,#0f0f12 100%);
  background:var(--c4-bg)!important;color:var(--c4-ink)!important;
}
html.ctl4 body{background:radial-gradient(ellipse 55% 40% at 70% -5%,#a3e63512,transparent 70%),radial-gradient(ellipse 40% 30% at 0% 100%,#a3e6350a,transparent 70%),var(--c4-bg)!important;color:var(--c4-ink);font-family:Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased}
html.ctl4 body{min-height:100vh}
html.ctl4 ::selection{background:#a3e63540}
html.ctl4 *{scrollbar-width:thin;scrollbar-color:#2f2f37 transparent}

/* ============ menu lateral ============ */
html.ctl4 aside.control-sidebar{background:linear-gradient(180deg,#0e0e11,#0a0a0c)!important;border-right:1px solid var(--c4-line)!important;padding:20px 14px!important}
html.ctl4 .control-brand{display:flex;align-items:center;gap:11px;padding:4px 8px 22px!important;margin-bottom:6px;border-bottom:1px solid var(--c4-line)}
html.ctl4 .control-brand-icon{display:grid;place-items:center;width:38px!important;height:38px!important;border-radius:12px!important;background:linear-gradient(135deg,#bef264,#65a30d)!important;color:#0a0a0a!important;font:800 18px/1 var(--c4-head)!important;border:0!important;box-shadow:0 8px 24px #a3e63533,inset 0 1px 0 #fff6}
html.ctl4 .control-brand-type span{color:var(--c4-mut)!important;font:700 10px/1 var(--c4-mono)!important;letter-spacing:.2em}
html.ctl4 .control-brand-type strong{color:var(--c4-ink)!important;font:800 17px/1.1 var(--c4-head)!important;letter-spacing:-.02em}
html.ctl4 .control-brand-edition{border:1px solid #a3e63555!important;background:var(--c4-limeA)!important;color:var(--c4-lime)!important;border-radius:6px!important;font:700 9px/1 var(--c4-mono)!important;padding:4px 6px!important}
html.ctl4 .control-nav-label{display:block;margin:18px 10px 8px!important;color:var(--c4-mut2)!important;font:700 9.5px/1 var(--c4-mono)!important;letter-spacing:.18em!important}
html.ctl4 .nav a{position:relative;gap:11px!important;margin:1px 0;padding:10px 12px!important;border:1px solid transparent!important;border-radius:11px!important;background:transparent!important;color:#b4b4bb!important;font-size:13px!important;font-weight:500!important;transition:background .18s,color .18s,border-color .18s}
html.ctl4 .nav a .nav-icon{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:#ffffff08;color:#8b8b93!important;font-size:12px;transition:inherit}
html.ctl4 .nav a:not(.disabled):hover{background:#ffffff07!important;color:var(--c4-ink)!important}
html.ctl4 .nav a:not(.disabled):hover .nav-icon{color:var(--c4-lime)!important}
html.ctl4 .nav a.active,html.ctl4 .nav a[aria-current=page]{background:linear-gradient(90deg,#a3e6351c,#a3e63508)!important;border-color:#a3e63533!important;color:var(--c4-ink)!important;font-weight:650!important}
html.ctl4 .nav a.active .nav-icon,html.ctl4 .nav a[aria-current=page] .nav-icon{background:var(--c4-lime)!important;color:#0a0a0a!important}
html.ctl4 .nav a.active:before,html.ctl4 .nav a[aria-current=page]:before{content:'';position:absolute;left:-14px;top:9px;bottom:9px;width:3px;border-radius:0 3px 3px 0;background:var(--c4-lime);box-shadow:0 0 12px #a3e635}
html.ctl4 .nav a.disabled{opacity:.42!important}
html.ctl4 .control-coming{margin-left:auto;white-space:nowrap;flex:0 0 auto;border:1px solid var(--c4-line2);border-radius:999px;padding:2px 7px;color:var(--c4-mut2)!important;font:600 9px/1.4 var(--c4-mono)!important;background:none!important}
html.ctl4 .control-support-nav-badge{margin-left:auto;min-width:20px;height:20px;display:grid!important;place-items:center;border-radius:999px!important;background:var(--c4-lime)!important;color:#0a0a0a!important;font:800 10px/1 var(--c4-mono)!important;box-shadow:0 0 0 3px #a3e63522}
html.ctl4 .control-support-nav-badge.hidden{display:none!important}
html.ctl4 .control-sidebar-bottom{margin:14px 0 0;padding:12px!important;border:1px solid var(--c4-line)!important;border-radius:12px!important;background:#ffffff05!important;color:var(--c4-mut)!important;font-size:11.5px!important}
html.ctl4 .control-sidebar-dot{background:var(--c4-lime)!important;box-shadow:0 0 0 3px #a3e63526,0 0 10px #a3e635!important}
html.ctl4 .control-sidebar-version{border:1px solid var(--c4-line2)!important;background:none!important;color:var(--c4-ink2)!important;border-radius:6px!important;font:700 9px/1 var(--c4-mono)!important;padding:4px 6px!important}

/* ============ barra superior ============ */
html.ctl4 header.top{background:#0b0b0dcc!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--c4-line)!important}
html.ctl4 .control-breadcrumb{color:var(--c4-mut2)!important;font:600 11px/1 var(--c4-mono)!important;letter-spacing:.08em}
html.ctl4 .control-breadcrumb strong{color:var(--c4-ink)!important;font-family:Inter,sans-serif;letter-spacing:0;font-size:13px}
html.ctl4 .control-top-environment{border:1px solid #a3e63540!important;background:var(--c4-limeA)!important;color:var(--c4-lime)!important;border-radius:999px!important;font:700 10px/1 var(--c4-mono)!important;letter-spacing:.1em}
html.ctl4 .control-header-actions>a{border:1px solid var(--c4-line2)!important;background:#ffffff06!important;border-radius:10px!important;color:var(--c4-ink2)!important;transition:border-color .2s,color .2s}
html.ctl4 .control-header-actions>a:hover{border-color:#a3e63580!important;color:var(--c4-lime)!important}

/* ============ títulos ============ */
html.ctl4 .content{max-width:1480px}
html.ctl4 .eyebrow,html.ctl4 .control-page-tag,html.ctl4 .tag{color:var(--c4-lime)!important;font:700 10.5px/1.3 var(--c4-mono)!important;letter-spacing:.16em!important;text-transform:uppercase}
html.ctl4 .content h1,html.ctl4 main h1{font-family:var(--c4-head)!important;font-weight:800!important;font-size:clamp(34px,3.4vw,48px)!important;letter-spacing:-.05em!important;line-height:1.02!important;color:var(--c4-ink)!important}
html.ctl4 .content h2,html.ctl4 main h2{font-family:var(--c4-head)!important;font-weight:800!important;letter-spacing:-.03em!important;color:var(--c4-ink)!important}
html.ctl4 .subtitle,html.ctl4 .control-overview-kpi-heading p,html.ctl4 .panel p{color:var(--c4-mut)!important}
html.ctl4 .dashboard-beta-label,html.ctl4 .control-page-hero .dashboard-beta-label{border:1px solid #a3e63559!important;background:var(--c4-limeA)!important;color:var(--c4-lime)!important;border-radius:999px!important;font:700 10px/1 var(--c4-mono)!important;letter-spacing:.14em;padding:9px 14px!important}
html.ctl4 .control-overview-metric-row>span,html.ctl4 .dashboard-section-head .eyebrow{color:var(--c4-mut)!important}
html.ctl4 .control-overview-metric-row a,html.ctl4 .control-overview-finance-link{color:var(--c4-lime)!important;font-weight:600}
html.ctl4 .dashboard-hint,html.ctl4 .dashboard-data-status{color:var(--c4-mut2)!important}

/* ============ cartões de indicador ============ */
html.ctl4 .metric{position:relative;overflow:hidden;border:1px solid var(--c4-line)!important;background:var(--c4-card)!important;border-radius:18px!important;box-shadow:inset 0 1px 0 #ffffff0a,0 18px 40px #0005;transition:border-color .25s,transform .25s,box-shadow .25s}
html.ctl4 .metric:before{content:'';position:absolute;inset:0 0 auto;height:1px;background:linear-gradient(90deg,transparent,#a3e63566,transparent);opacity:0;transition:opacity .25s}
html.ctl4 .metric:hover{border-color:#a3e63540!important;transform:translateY(-2px);box-shadow:inset 0 1px 0 #ffffff0d,0 24px 50px #0007,0 0 0 1px #a3e63514}
html.ctl4 .metric:hover:before{opacity:1}
html.ctl4 .metric .label{color:var(--c4-mut)!important;font-weight:500}
html.ctl4 .metric .value{font-family:var(--c4-head)!important;font-weight:800!important;letter-spacing:-.04em!important;color:var(--c4-ink)!important;font-variant-numeric:tabular-nums}
html.ctl4 .metric .note{color:var(--c4-mut2)!important}
html.ctl4 .metrics .metric:first-child .value{color:var(--c4-lime2)!important;text-shadow:0 0 30px #a3e63533}

/* ============ painéis ============ */
html.ctl4 .panel,html.ctl4 .dashboard-panels>*,html.ctl4 .finance-4-chart-card,html.ctl4 .finance-highlight{border:1px solid var(--c4-line)!important;background:var(--c4-card)!important;border-radius:20px!important;box-shadow:inset 0 1px 0 #ffffff0a,0 18px 44px #0005}
html.ctl4 .warning,html.ctl4 .notice{border:1px solid #f5c45140!important;background:#f5c4510d!important;color:#f3e3b6!important;border-radius:12px!important}

/* ============ botões ============ */
html.ctl4 .action,html.ctl4 .control-overview-support-actions a,html.ctl4 .directory-tools button,html.ctl4 .beta-save,html.ctl4 #overviewSupportRefresh,html.ctl4 .dashboard-secondary-actions a{border:1px solid #a3e63555!important;background:linear-gradient(180deg,#a3e6351f,#a3e6350c)!important;color:#e6f9c8!important;border-radius:11px!important;font-weight:650!important;transition:border-color .2s,background .2s,transform .2s}
html.ctl4 .action:hover,html.ctl4 .control-overview-support-actions a:hover,html.ctl4 .directory-tools button:not(:disabled):hover,html.ctl4 #overviewSupportRefresh:not(:disabled):hover,html.ctl4 .dashboard-secondary-actions a:hover{border-color:var(--c4-lime)!important;background:#a3e6352e!important;transform:translateY(-1px)}
html.ctl4 .control-chart-range,html.ctl4 .finance-3-range button{border:1px solid var(--c4-line2)!important;background:#ffffff05!important;color:var(--c4-mut)!important;border-radius:10px!important;font-weight:600}
html.ctl4 .control-chart-range.active,html.ctl4 .control-chart-range[aria-pressed=true]{border-color:var(--c4-lime)!important;background:var(--c4-lime)!important;color:#0a0a0a!important;box-shadow:0 6px 18px #a3e63530}

/* ============ campos ============ */
html.ctl4 input:not([type=checkbox]):not([type=radio]),html.ctl4 select,html.ctl4 textarea{background:#0c0c0f!important;border:1px solid var(--c4-line2)!important;border-radius:11px!important;color:var(--c4-ink)!important;transition:border-color .2s,box-shadow .2s}
html.ctl4 input:not([type=checkbox]):not([type=radio]):focus,html.ctl4 select:focus,html.ctl4 textarea:focus{outline:none!important;border-color:var(--c4-lime)!important;box-shadow:0 0 0 3px #a3e63522!important}
html.ctl4 input[type=checkbox],html.ctl4 input[type=radio]{accent-color:var(--c4-lime)}

/* ============ tabelas ============ */
html.ctl4 table{border-collapse:separate!important;border-spacing:0}
html.ctl4 .table-scroll{border:1px solid var(--c4-line);border-radius:16px;background:#0e0e11}
html.ctl4 th{background:#131316!important;color:var(--c4-mut2)!important;font:700 10px/1.3 var(--c4-mono)!important;letter-spacing:.14em;text-transform:uppercase;border-bottom:1px solid var(--c4-line)!important}
html.ctl4 td{border-bottom:1px solid #1b1b20!important;color:var(--c4-ink2)}
html.ctl4 tbody tr{transition:background .15s}
html.ctl4 tbody tr:hover{background:#a3e63508!important}

/* ============ visão geral ============ */
html.ctl4 .control-overview-support-item{border:1px solid var(--c4-line)!important;background:#0e0e11!important;border-radius:14px!important;transition:border-color .2s,background .2s}
html.ctl4 .control-overview-support-item:hover{border-color:#a3e63559!important;background:#a3e63508!important}
html.ctl4 .control-overview-support-desc strong{color:var(--c4-ink)!important}
html.ctl4 .control-overview-support-desc small{color:var(--c4-mut2)!important;font-family:var(--c4-mono)}
html.ctl4 .control-overview-support-flag{border:1px solid #a3e63559!important;background:var(--c4-limeA)!important;color:var(--c4-lime)!important;border-radius:999px!important;font:700 10.5px/1 Inter!important;padding:6px 11px!important}
html.ctl4 .control-overview-support-flag:before{content:'';display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:currentColor;vertical-align:1px;box-shadow:0 0 8px currentColor}
html.ctl4 .control-chart-total strong{font-family:var(--c4-head)!important;font-weight:800!important;font-size:clamp(28px,2.6vw,38px)!important;letter-spacing:-.04em;color:var(--c4-lime2)!important;text-shadow:0 0 34px #a3e63533}
html.ctl4 .control-stripe-chart{position:relative;padding-top:10px;background:repeating-linear-gradient(0deg,transparent 0 40px,#ffffff06 40px 41px)}
html.ctl4 .control-stripe-bar{border-radius:6px 6px 2px 2px!important;background:linear-gradient(180deg,#bef264,#65a30d)!important;opacity:.9;box-shadow:0 0 18px #a3e63526;transition:opacity .2s,filter .2s}
html.ctl4 .control-stripe-bar[style*="height: 2%"]{background:#26262c!important;box-shadow:none;opacity:1}
html.ctl4 .control-stripe-bar:hover{opacity:1;filter:brightness(1.15)}
html.ctl4 .dashboard-quick{border:1px solid var(--c4-line)!important;background:var(--c4-card)!important;border-radius:18px!important;transition:border-color .25s,transform .25s,background .25s!important}
html.ctl4 .dashboard-quick:hover{border-color:#a3e63566!important;background:linear-gradient(160deg,#18200f,#111114 70%)!important;transform:translateY(-3px)}
html.ctl4 .dashboard-quick-icon{width:40px!important;height:40px!important;border-radius:12px!important;border:1px solid #a3e63559!important;background:var(--c4-limeA)!important;color:var(--c4-lime)!important}
html.ctl4 .dashboard-quick strong{font-family:var(--c4-head);font-size:15px!important;color:var(--c4-ink)!important}
html.ctl4 .dashboard-quick small{color:var(--c4-mut)!important}
html.ctl4 .dashboard-quick-arrow{color:var(--c4-mut2)!important;transition:transform .2s,color .2s}
html.ctl4 .dashboard-quick:hover .dashboard-quick-arrow{color:var(--c4-lime)!important;transform:translate(2px,-2px)}
html.ctl4 .dashboard-source{border-color:var(--c4-line)!important}
html.ctl4 .dashboard-source-dot{background:#52525b!important}
html.ctl4 .dashboard-source-dot.available{background:var(--c4-lime)!important;box-shadow:0 0 0 3px #a3e63526,0 0 10px #a3e635}
html.ctl4 .dashboard-source-state{border:1px solid var(--c4-line2);border-radius:999px;padding:4px 9px;color:var(--c4-mut)!important;font-size:10.5px!important}
html.ctl4 .dashboard-source-dot.available~.dashboard-source-state{border-color:#a3e63559;color:var(--c4-lime)!important;background:var(--c4-limeA)}
html.ctl4 .footer{color:var(--c4-mut2)!important}

/* ============ financeiro (cartões já existentes) ============ */
html.ctl4 .finance-3-kpi,html.ctl4 .finance-3-category,html.ctl4 .finance-5-comparison,html.ctl4 .finance-hero,html.ctl4 .finance-3-breakdown,html.ctl4 .finance-3-secondary,html.ctl4 .finance-stripe-diagnostic,html.ctl4 .finance-details,html.ctl4 .finance-audit-primary{border-color:var(--c4-line)!important;background:var(--c4-card)!important;border-radius:18px!important}
html.ctl4 .finance-3-kpi{transition:border-color .25s,transform .25s}
html.ctl4 .finance-3-kpi:hover{border-color:#a3e63540!important;transform:translateY(-2px)}
html.ctl4 .finance-3-kpi-featured{background:radial-gradient(ellipse 90% 90% at 100% 0%,#a3e63526,transparent 60%),linear-gradient(160deg,#18200f,#111311)!important;border-color:#a3e6354d!important}
html.ctl4 .finance-3-kpi-glyph,html.ctl4 .finance-3-category-icon{border-radius:10px!important;border:1px solid #a3e63540!important;background:var(--c4-limeA)!important;color:var(--c4-lime)!important}
html.ctl4 .finance-3-kpi .value,html.ctl4 .finance-paid-amounts strong{font-family:var(--c4-head)!important;letter-spacing:-.04em}

/* superfícies internas que ainda usavam o azul-petróleo antigo */
html.ctl4 .finance-4-category-chart,html.ctl4 .finance-3-secondary-inner,html.ctl4 .finance-plan-row,html.ctl4 .finance-context,html.ctl4 .finance-paid-amounts,html.ctl4 .finance-3-breakdown-table,html.ctl4 .finance-3-data-note,html.ctl4 .control-finance-trend-chart,html.ctl4 .finance-4-chart-canvas,html.ctl4 .finance-4-type-rows,html.ctl4 .dir-foot,html.ctl4 .control-users-source-note,html.ctl4 .finance-4-period,html.ctl4 .finance-4-status{background-color:#0e0e11!important;background-image:none!important;border-color:var(--c4-line)!important}
html.ctl4 .finance-3-filter-search,html.ctl4 .finance-3-range,html.ctl4 .finance-3-breakdown-period{background:#0c0c0f!important;border-color:var(--c4-line2)!important}
html.ctl4 .content small,html.ctl4 .content .note,html.ctl4 .finance-section-hint,html.ctl4 .finance-hero-caption,html.ctl4 .control-finance-trend-key,html.ctl4 .control-finance-trend-foot,html.ctl4 .control-stripe-axis{color:var(--c4-mut2)!important}
html.ctl4 .content p{color:var(--c4-mut)}
html.ctl4 .content label{color:var(--c4-ink2)!important}
html.ctl4 .content button:not(.control-chart-range):not(.control-overview-support-item):not(.beta-save):not(#overviewSupportRefresh):not(.send){border:1px solid var(--c4-line2)!important;background:#ffffff06!important;color:var(--c4-ink2)!important;border-radius:10px!important;transition:border-color .2s,color .2s}
html.ctl4 .content button:not(.control-chart-range):not(.control-overview-support-item):not(:disabled):hover{border-color:#a3e63580!important;color:var(--c4-lime)!important}
html.ctl4 #userSearchButton{border-color:var(--c4-lime)!important;background:var(--c4-lime)!important;color:#0a0a0a!important;font-weight:800!important}

/* ============ usuários / beta ============ */
html.ctl4 .control-directory-pill,html.ctl4 .beta-presets button{border:1px solid var(--c4-line2)!important;background:#ffffff05!important;border-radius:999px!important;color:var(--c4-ink2)!important}
html.ctl4 .user-detail,html.ctl4 .control-user-profile,html.ctl4 .beta-enrollment{border:1px solid var(--c4-line)!important;background:#0e0e11!important;border-radius:18px!important}

/* ============ páginas embutidas (atendimento, clientes, assinaturas) ============ */
html.ctl4-embed body{background:transparent!important}
html.ctl4 .support-hero-mark,html.ctl4 .support-avatar{background:linear-gradient(135deg,#bef264,#65a30d)!important;color:#0a0a0a!important;border:0!important}
html.ctl4 .support-stat-attention{border-color:#f5c45155!important}
html.ctl4 .threads>*,html.ctl4 .support-notifications-list>*{border-radius:14px!important}
html.ctl4 .messages{background:#0c0c0f!important;border-radius:16px!important;border:1px solid var(--c4-line)!important}
html.ctl4 .send,html.ctl4 button.send{background:var(--c4-lime)!important;color:#0a0a0a!important;border:0!important;border-radius:11px!important;font-weight:800!important}
html.ctl4 #supportFrame,html.ctl4 #clientsLegacyFrame,html.ctl4 #reconciliationFrame{background:var(--c4-bg)!important}
html.ctl4 .support-stats>div{position:relative;border:1px solid var(--c4-line)!important;background:var(--c4-card)!important;border-radius:18px!important;box-shadow:inset 0 1px 0 #ffffff0a,0 18px 40px #0005;transition:border-color .25s,transform .25s}
html.ctl4 .support-stats>div:hover{border-color:#a3e63540!important;transform:translateY(-2px)}
html.ctl4 .support-stats>div strong,html.ctl4 .support-stats>div b{font-family:var(--c4-head);letter-spacing:-.04em}
html.ctl4 .support-stats>.support-stat-attention{border-color:#f5c45159!important;background:radial-gradient(ellipse 90% 90% at 100% 0%,#f5c4511a,transparent 60%),var(--c4-card)!important}
html.ctl4-embed body>header,html.ctl4 .support-notification-panel,html.ctl4 form.reply,html.ctl4 div.status#status{background:#0e0e11!important;border-color:var(--c4-line)!important}
html.ctl4 button.small,html.ctl4 .support-copy,html.ctl4 .support-bell{border:1px solid var(--c4-line2)!important;background:#ffffff06!important;color:var(--c4-ink2)!important;border-radius:10px!important}
html.ctl4 .support-bell{border-color:#a3e63559!important;background:var(--c4-limeA)!important;color:#e6f9c8!important}
html.ctl4 button.small:hover,html.ctl4 .support-copy:hover,html.ctl4 .support-bell:hover{border-color:var(--c4-lime)!important;color:var(--c4-lime)!important}
html.ctl4 .support-thread-status{border-radius:999px!important;font-weight:700!important}
html.ctl4 .support-thread-open{background:var(--c4-limeA)!important;color:var(--c4-lime)!important;border:1px solid #a3e63559!important}
html.ctl4 .support-thread-closed{background:#ffffff08!important;color:var(--c4-mut)!important;border:1px solid var(--c4-line2)!important}
html.ctl4 .control-beta-bar-track{background:#1c1c21!important}
html.ctl4 aside{background:linear-gradient(180deg,#0e0e11,#0a0a0c)!important;border-color:var(--c4-line)!important}
html.ctl4 .result{border:1px solid var(--c4-line)!important;background:#0e0e11!important;border-radius:14px!important}

/* ============ retenção de dados (página própria) ============ */
html.ctl4-retention main{max-width:1120px!important;padding:34px 24px!important}
html.ctl4-retention main>header{padding:14px 18px;border:1px solid var(--c4-line);border-radius:16px;background:#0e0e11cc;backdrop-filter:blur(10px)}
html.ctl4-retention main>header strong{font:800 15px/1 var(--c4-head);letter-spacing:-.01em}
html.ctl4-retention main>header strong:before{content:'A';display:inline-grid;place-items:center;width:28px;height:28px;margin-right:10px;border-radius:9px;background:linear-gradient(135deg,#bef264,#65a30d);color:#0a0a0a;font-size:13px;vertical-align:middle}
html.ctl4-retention section,html.ctl4-retention article{border:1px solid var(--c4-line)!important;background:var(--c4-card)!important;border-radius:18px!important}
html.ctl4-retention button{border:1px solid #a3e63555!important;background:#a3e63514!important;color:#e6f9c8!important;border-radius:11px!important;font-weight:650}
html.ctl4-retention button.danger{border-color:#f8717166!important;background:#f8717114!important;color:#ffc9c4!important}
html.ctl4-retention .muted,html.ctl4-retention small{color:var(--c4-mut)!important}

/* ============ movimento ============ */
@media (prefers-reduced-motion:reduce){html.ctl4 *{transition:none!important}html.ctl4 .metric:hover,html.ctl4 .dashboard-quick:hover,html.ctl4 .finance-3-kpi:hover{transform:none}}
@media (max-width:650px){
  html.ctl4 aside.control-sidebar{padding:12px!important}
  html.ctl4 .control-brand{border-bottom:0;padding-bottom:10px!important}
  html.ctl4 .control-nav-label{display:none!important}
  html.ctl4 .nav a.active:before,html.ctl4 .nav a[aria-current=page]:before{display:none}
  html.ctl4 .control-sidebar-bottom{display:none!important}
}

/* ============ Pré-inscrições (v4.1) ============ */
html.ctl4 #presignupsView .control-page-hero h1{margin-top:10px}
html.ctl4 #presignupsTotal{display:inline-flex;align-items:center;gap:8px;margin-top:6px;padding:7px 13px;border:1px solid #a3e63540;border-radius:999px;background:var(--c4-limeA);color:#e6f9c8!important;font-weight:600;font-size:13px}
html.ctl4 #presignupsTotal:before{content:'';width:7px;height:7px;border-radius:50%;background:var(--c4-lime);box-shadow:0 0 10px var(--c4-lime)}
html.ctl4 #presignupsSearch{display:flex!important;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:0 0 6px}
html.ctl4 #presignupsSearch label{display:flex!important;flex-direction:column;gap:8px;flex:1 1 320px;margin:0;color:var(--c4-mut2)!important;font:700 10px/1.2 var(--c4-mono)!important;letter-spacing:.14em;text-transform:uppercase}
html.ctl4 #presignupsQuery{width:100%!important;min-width:0!important;height:46px;padding:0 14px 0 42px!important;font:500 14px/1 Inter!important;letter-spacing:0;text-transform:none;background:#0c0c0f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 14px center/17px no-repeat!important}
html.ctl4 #presignupsView #presignupsSearch button[type=submit]{height:46px;padding:0 22px!important;border:0!important;background:var(--c4-lime)!important;color:#0a0a0a!important;font:800 14px/1 Inter!important;border-radius:11px!important;box-shadow:0 8px 22px #a3e63526}
html.ctl4 #presignupsView #presignupsSearch button[type=submit]:hover{background:var(--c4-lime2)!important;color:#0a0a0a!important}
html.ctl4 #presignupsStatus{margin:12px 0 14px;color:var(--c4-mut2)!important;font:600 12px/1 var(--c4-mono)}
html.ctl4 #presignupsView .finance-3-breakdown-table{border:1px solid var(--c4-line)!important;border-radius:16px!important;overflow:auto}
html.ctl4 #presignupsView table{min-width:940px;width:100%;table-layout:fixed}
html.ctl4 #presignupsView th:nth-child(1){width:17%}html.ctl4 #presignupsView th:nth-child(2){width:17%}html.ctl4 #presignupsView th:nth-child(3){width:11%}html.ctl4 #presignupsView th:nth-child(4){width:11%}html.ctl4 #presignupsView th:nth-child(5){width:6%}html.ctl4 #presignupsView th:nth-child(6){width:13%}html.ctl4 #presignupsView th:nth-child(7){width:13%}html.ctl4 #presignupsView th:nth-child(8){width:12%}
html.ctl4 #presignupsView td{overflow:hidden;text-overflow:ellipsis}
html.ctl4 #presignupsView th{padding:13px 11px!important;white-space:nowrap}
html.ctl4 #presignupsView td{padding:11px 11px!important;vertical-align:middle!important;white-space:nowrap;font-size:12.5px}
html.ctl4 #presignupsView th:last-child,html.ctl4 #presignupsView td:last-child{position:sticky;right:0;z-index:1;background:#101013!important;box-shadow:-12px 0 16px -10px #000c;text-align:right}
html.ctl4 #presignupsView th:last-child{background:#131316!important}
html.ctl4 .c4-ps-name{color:var(--c4-ink)!important;font-weight:650;max-width:180px;overflow:hidden;text-overflow:ellipsis}
html.ctl4 .c4-ps-name:before{content:attr(data-initial);display:inline-grid;place-items:center;width:30px;height:30px;margin-right:11px;vertical-align:middle;border-radius:50%;background:linear-gradient(135deg,#a3e63540,#a3e63514);border:1px solid #a3e63540;color:var(--c4-lime);font:800 12px/1 var(--c4-head)}
html.ctl4 .c4-ps-email{color:var(--c4-ink2)!important;max-width:180px;overflow:hidden;text-overflow:ellipsis}
html.ctl4 .c4-ps-mono{font-family:var(--c4-mono)!important;font-size:11.5px!important;color:var(--c4-mut)!important}
html.ctl4 .c4-ps-insta{color:#f0abfc!important;max-width:140px;overflow:hidden;text-overflow:ellipsis}
html.ctl4 .c4-ps-insta:before{content:'@';opacity:.7}
html.ctl4 .c4-ps-source{color:var(--c4-mut)!important}
html.ctl4 td.c4-ps-status{font-size:0!important;overflow:visible!important}
html.ctl4 td.c4-ps-status:after{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;font:700 11px/1 Inter}
html.ctl4 td.c4-ps-status.is-on:after{content:'● Na lista';border:1px solid #a3e63559;background:var(--c4-limeA);color:var(--c4-lime)}
html.ctl4 td.c4-ps-status.is-off:after{content:'○ Descadastrada';border:1px solid var(--c4-line2);background:#ffffff06;color:var(--c4-mut)}
html.ctl4 .c4-ps-more details{display:inline-block}
html.ctl4 .c4-ps-more details>p{display:none!important}
html.ctl4 .c4-ps-more summary{list-style:none;display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border:1px solid var(--c4-line2);border-radius:10px;background:#ffffff06;color:var(--c4-ink2);font-size:12px;font-weight:650;cursor:pointer;transition:border-color .2s,color .2s}
html.ctl4 .c4-ps-more summary::-webkit-details-marker{display:none}
html.ctl4 .c4-ps-more summary:after{content:'→';color:var(--c4-mut2);transition:transform .2s,color .2s}
html.ctl4 .c4-ps-more summary:hover{border-color:#a3e63580;color:var(--c4-lime)}
html.ctl4 .c4-ps-more summary:hover:after{color:var(--c4-lime);transform:translateX(2px)}
html.ctl4 .c4-ps-pager{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}

/* painel lateral de detalhes */
.c4-drawer{position:fixed;inset:0;z-index:1000}
.c4-drawer[hidden]{display:none}
.c4-drawer-backdrop{position:absolute;inset:0;background:#000a;backdrop-filter:blur(3px);opacity:0;transition:opacity .18s}
.c4-drawer-panel{position:absolute;top:0;right:0;bottom:0;width:min(460px,100%);display:flex;flex-direction:column;background:linear-gradient(180deg,#141417,#0d0d10);border-left:1px solid #2a2a31;box-shadow:-30px 0 80px #000a;transform:translateX(24px);opacity:0;transition:transform .18s ease,opacity .18s ease;outline:none;color:#f4f4f5;font-family:Inter,system-ui,sans-serif}
.c4-drawer.is-open .c4-drawer-backdrop{opacity:1}
.c4-drawer.is-open .c4-drawer-panel{transform:none;opacity:1}
.c4-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:24px 24px 18px;border-bottom:1px solid #232329;position:relative}
.c4-drawer-head:before{content:'';position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,transparent,#a3e635,transparent)}
.c4-drawer-id{display:flex;gap:14px;min-width:0}
.c4-drawer-avatar{display:grid;place-items:center;flex:0 0 48px;height:48px;border-radius:14px;background:linear-gradient(135deg,#bef264,#65a30d);color:#0a0a0a;font:800 20px/1 Manrope,Inter,sans-serif;box-shadow:0 8px 24px #a3e63533}
.c4-drawer-eyebrow{color:#a3e635;font:700 10px/1 'JetBrains Mono',monospace;letter-spacing:.16em;text-transform:uppercase}
.c4-drawer-head h2{margin:7px 0 4px;font:800 20px/1.15 Manrope,Inter,sans-serif;letter-spacing:-.03em;overflow-wrap:anywhere}
.c4-drawer-sub{margin:0;color:#a1a1aa;font-size:13px;overflow-wrap:anywhere}
.c4-drawer-x{flex:0 0 36px;height:36px;border:1px solid #2f2f37;border-radius:10px;background:#ffffff06;color:#d4d4d8;font-size:20px;line-height:1;cursor:pointer}
.c4-drawer-x:hover{border-color:#a3e635;color:#a3e635}
.c4-drawer-body{flex:1;overflow:auto;padding:18px 24px 28px}
.c4-drawer-status{display:inline-flex;margin:0 0 16px;padding:6px 12px;border-radius:999px;font:700 12px/1 Inter}
.c4-drawer-status.is-on{border:1px solid #a3e63559;background:#a3e6351f;color:#a3e635}
.c4-drawer-status.is-on:before{content:'●';margin-right:6px}
.c4-drawer-status.is-off{border:1px solid #2f2f37;background:#ffffff06;color:#a1a1aa}
.c4-drawer-sec{margin:0 0 14px;padding:14px 16px;border:1px solid #232329;border-radius:14px;background:#0e0e11}
.c4-drawer-sec h3{margin:0 0 10px;color:#71717a;font:700 10px/1 'JetBrains Mono',monospace;letter-spacing:.16em;text-transform:uppercase}
.c4-drawer-sec dl{margin:0}
.c4-drawer-sec dl>div{display:grid;grid-template-columns:130px 1fr;gap:12px;padding:9px 0;border-top:1px solid #1b1b20}
.c4-drawer-sec dl>div:first-child{border-top:0;padding-top:2px}
.c4-drawer-sec dt{color:#8b8b93;font-size:12px}
.c4-drawer-sec dd{margin:0;color:#e4e4e7;font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.c4-drawer-mono dd{font-family:'JetBrains Mono',monospace;font-size:12px}
@media (max-width:520px){html.ctl4 #presignupsView #presignupsSearch button[type=submit]{width:100%}.c4-drawer-sec dl>div{grid-template-columns:1fr;gap:3px}.c4-drawer-head{padding:20px 18px 16px}.c4-drawer-body{padding:16px 18px 24px}}
@media (prefers-reduced-motion:reduce){.c4-drawer-panel,.c4-drawer-backdrop{transition:none}}
