/*
 * NAVE4 UI v3 — adaptação visual fiel ao pacote nn.zip.
 * Mantém o HTML, formulários, rotas e comportamentos originais do Flux CRM.
 */
:root{
  --n4-navy:#061a35;
  --n4-navy-2:#0a2748;
  --n4-navy-3:#11375e;
  --n4-bg:#f4f7fb;
  --n4-panel:#ffffff;
  --n4-text:#101b35;
  --n4-muted:#6e7b91;
  --n4-line:#e4eaf2;
  --n4-blue:#0b67ff;
  --n4-blue-2:#e8f1ff;
  --n4-green:#16b364;
  --n4-green-2:#e9f9f0;
  --n4-red:#ef4444;
  --n4-red-2:#fff0f0;
  --n4-orange:#f59e0b;
  --n4-orange-2:#fff7e6;
  --n4-purple:#7c3aed;
  --n4-purple-2:#f2edff;
  --n4-shadow:0 8px 28px rgba(15,34,62,.08);
  --n4-radius:14px;
  --n4-sidebar-open:242px;
  --n4-sidebar-collapsed:76px;
  --n4-topbar-v3:76px;
}

html{scroll-behavior:smooth}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page){
  --n4-sidebar:var(--n4-sidebar-open);
  margin:0!important;
  background:var(--n4-bg)!important;
  color:var(--n4-text)!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:14px!important;
}
body[data-theme="crm-premium"].sidebar-collapsed:not(.standalone-focus-layout){--n4-sidebar:var(--n4-sidebar-collapsed)}
body[data-theme="crm-premium"] button,
body[data-theme="crm-premium"] input,
body[data-theme="crm-premium"] select,
body[data-theme="crm-premium"] textarea{font:inherit}

/* Estrutura principal exatamente no padrão do layout de referência. */
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .sidebar{
  position:fixed!important;
  inset:0 auto 0 0!important;
  width:var(--n4-sidebar)!important;
  height:100dvh!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  transform:none!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  background:linear-gradient(180deg,#06172e 0%,#08294b 100%)!important;
  border:0!important;
  color:#fff!important;
  box-shadow:8px 0 30px rgba(3,17,37,.08)!important;
  z-index:1040!important;
  transition:width .25s ease,transform .25s ease!important;
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .nave4-brand-row{
  flex:0 0 76px!important;
  width:100%!important;
  height:76px!important;
  min-height:76px!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  border-bottom:1px solid rgba(255,255,255,.03)!important;
  background:transparent!important;
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .nave4-brand-row .brand{
  width:100%!important;
  height:76px!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  padding:0 22px!important;
  color:#fff!important;
  background:transparent!important;
  border:0!important;
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .brand-mark{
  width:32px!important;
  height:32px!important;
  min-width:32px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:10px!important;
  color:#fff!important;
  background:linear-gradient(135deg,#7847ff 0%,#248dff 100%)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.24)!important;
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .brand-mark .n4-icon{width:19px!important;height:19px!important;stroke-width:1.8!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .brand-logo{
  width:36px!important;height:36px!important;min-width:36px!important;border-radius:10px!important;object-fit:contain!important;background:#fff!important;padding:3px!important
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .brand-copy{min-width:0!important;display:block!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .brand-copy strong{
  display:block!important;max-width:166px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  color:#fff!important;font-size:23px!important;line-height:1!important;font-weight:800!important;letter-spacing:-.8px!important
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .brand-copy small{display:none!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .sidebar-menu-search{display:none!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .sidebar nav{
  flex:1 1 auto!important;
  min-height:0!important;
  width:100%!important;
  padding:12px 12px 22px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(255,255,255,.18) transparent!important;
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .sidebar nav::-webkit-scrollbar{width:5px}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .sidebar nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18);border-radius:99px}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .sidebar nav a{
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  min-height:42px!important;
  margin:2px 0!important;
  padding:0 12px!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:9px!important;
  background:transparent!important;
  color:#f7fbff!important;
  font-size:13px!important;
  font-weight:500!important;
  line-height:1.2!important;
  box-shadow:none!important;
  transition:background .18s ease,color .18s ease!important;
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .sidebar nav a:hover,
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .sidebar nav a.is-active{
  background:rgba(51,118,190,.24)!important;
  color:#fff!important;
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .sidebar nav a.is-active::before{
  content:""!important;position:absolute!important;left:0!important;top:10px!important;bottom:10px!important;width:3px!important;border-radius:4px!important;background:#1f7bff!important
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .sidebar nav a .menu-icon{
  flex:0 0 20px!important;width:20px!important;height:22px!important;display:grid!important;place-items:center!important;color:inherit!important;opacity:.96!important;background:transparent!important;border:0!important;border-radius:0!important
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .sidebar nav a .menu-icon .n4-icon{width:19px!important;height:19px!important;stroke-width:1.8!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .sidebar nav a .menu-label{
  display:block!important;flex:1 1 auto!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:inherit!important
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .menu-active-dot{display:none!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .sidebar .logout{
  flex:0 0 auto!important;margin:0!important;padding:10px 12px 14px!important;border-top:1px solid rgba(255,255,255,.06)!important;background:transparent!important
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .sidebar .logout button{
  width:100%!important;min-height:42px!important;padding:0 12px!important;display:flex!important;align-items:center!important;gap:12px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#f7fbff!important
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .sidebar .logout button:hover{background:rgba(255,255,255,.08)!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .logout-icon{width:20px!important;height:22px!important;display:grid!important;place-items:center!important}

body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .main{
  margin-left:var(--n4-sidebar)!important;
  padding-top:var(--n4-topbar-v3)!important;
  min-width:0!important;
  min-height:100dvh!important;
  overflow:visible!important;
  background:var(--n4-bg)!important;
  transition:margin-left .25s ease!important;
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .topbar{
  position:fixed!important;
  top:0!important;
  left:var(--n4-sidebar)!important;
  right:0!important;
  z-index:1030!important;
  width:auto!important;
  height:var(--n4-topbar-v3)!important;
  min-height:var(--n4-topbar-v3)!important;
  margin:0!important;
  padding:0 26px!important;
  display:flex!important;
  align-items:center!important;
  gap:20px!important;
  overflow:visible!important;
  background:linear-gradient(90deg,#071a34,#06162d)!important;
  border:0!important;
  box-shadow:none!important;
  transition:left .25s ease!important;
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .topbar-title{display:flex!important;align-items:center!important;flex:0 0 auto!important;min-width:auto!important;margin:0!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .menu-toggle,
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .mobile-menu-toggle{
  width:38px!important;height:38px!important;min-width:38px!important;padding:0!important;display:grid!important;place-items:center!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#fff!important;box-shadow:none!important
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .menu-toggle:hover,
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .mobile-menu-toggle:hover{background:rgba(255,255,255,.08)!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .menu-toggle .n4-icon,
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .mobile-menu-toggle .n4-icon{width:22px!important;height:22px!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .topbar-search{
  flex:1 1 510px!important;
  width:auto!important;
  max-width:510px!important;
  height:40px!important;
  min-height:40px!important;
  margin:0!important;
  padding:0 14px!important;
  display:grid!important;
  grid-template-columns:18px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  border:1px solid rgba(255,255,255,.025)!important;
  border-radius:8px!important;
  background:rgba(255,255,255,.06)!important;
  color:#dbe7f4!important;
  box-shadow:none!important;
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .topbar-search .n4-icon{width:18px!important;height:18px!important;color:#dbe7f4!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .topbar-search input{
  width:100%!important;height:auto!important;min-height:0!important;padding:0!important;border:0!important;outline:0!important;background:transparent!important;color:#fff!important;box-shadow:none!important;font-size:13px!important
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .topbar-search input::placeholder{color:#c0cada!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .topbar-search kbd{display:none!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .topbar-actions{
  margin-left:auto!important;display:flex!important;align-items:center!important;gap:8px!important;color:#fff!important
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .topbar-online{display:flex!important;align-items:center!important;gap:6px!important;color:#5ee772!important;font-weight:700!important;font-size:12px!important;margin-right:2px!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .topbar-online i{width:7px!important;height:7px!important;border-radius:50%!important;background:#5ee772!important;box-shadow:0 0 0 3px rgba(94,231,114,.12)!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .n4-top-action,
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .notice-top-button{
  position:relative!important;width:40px!important;height:40px!important;min-width:40px!important;padding:0!important;display:grid!important;place-items:center!important;border:0!important;border-radius:10px!important;background:transparent!important;color:#fff!important;box-shadow:none!important
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .n4-top-action:hover,
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .notice-top-button:hover{background:rgba(255,255,255,.08)!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .n4-top-action .n4-icon,
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .notice-top-button .n4-icon{width:20px!important;height:20px!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .speaking-user{
  width:36px!important;height:36px!important;min-width:36px!important;padding:0!important;margin-left:2px!important;display:grid!important;place-items:center!important;border:0!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;overflow:visible!important
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .speaking-user>div,
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .profile-chevron{display:none!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .speaking-avatar{
  width:36px!important;height:36px!important;min-width:36px!important;border:2px solid rgba(255,255,255,.78)!important;border-radius:50%!important;background:linear-gradient(135deg,#d3ebff,#8fc2ff)!important;color:#11345e!important;font-size:11px!important;font-weight:700!important;box-shadow:none!important
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .speaking-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:inherit!important}

/* Conteúdo e componentes de todas as páginas. */
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .content{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:calc(100dvh - var(--n4-topbar-v3))!important;
  margin:0!important;
  padding:26px 26px 120px!important;
  overflow:visible!important;
  background:var(--n4-bg)!important;
  color:var(--n4-text)!important;
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page).route-flows-edit .content{padding:0!important;height:calc(100dvh - var(--n4-topbar-v3))!important;min-height:0!important;overflow:hidden!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) :is(.page-head,.assistant-page-head,.custom-page-head){
  display:flex!important;align-items:center!important;gap:14px!important;margin:0 0 20px!important
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) :is(.page-head,.assistant-page-head,.custom-page-head)>div:first-child{min-width:0!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) :is(.page-head,.assistant-page-head,.custom-page-head) h1,
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) :is(.page-head,.assistant-page-head,.custom-page-head) h2{
  margin:0!important;color:var(--n4-text)!important;font-size:28px!important;line-height:1.15!important;letter-spacing:-.02em!important;font-weight:750!important
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) :is(.page-head,.assistant-page-head,.custom-page-head) p{margin:5px 0 0!important;color:var(--n4-muted)!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) :is(.page-head,.assistant-page-head,.custom-page-head) .actions{margin-left:auto!important;display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important}

/* Nenhum card escuro na área de conteúdo. */
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .content :is(
  .panel,.card,.stat-card,.metric-card,.metrics-kpi,.chart-card,.table-card,.summary-card,.dashboard-card,
  .lead-card,.deal-card,.sales-card,.company-card,.plan-card,.ticket-card,.queue-card,.goal-card,.pricing-card,
  .integration-card,.integration-service-card,.integration-request-card,.provider-card,.assistant-card,.tutorial-card,
  .finance-card,.finance-summary-card,.campaign-card,.flow-card,.flow-mode-card,.form-card,.health-card,.history-card,
  .kanban-column,.settings-card,.settings-panel,.settings-menu,.content-admin-card,.social-account-card,.social-content-card,
  .payment-provider-card,.profile-identity-card,.user-access-card,.legal-version-card,.system-module-card,.collector-card
){
  background:var(--n4-panel)!important;
  background-image:none!important;
  color:var(--n4-text)!important;
  border:1px solid var(--n4-line)!important;
  border-radius:var(--n4-radius)!important;
  box-shadow:0 3px 14px rgba(19,41,70,.035)!important;
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .content [class$="-card"]{
  background-color:var(--n4-panel)!important;
  background-image:none!important;
  color:var(--n4-text)!important;
  border-color:var(--n4-line)!important;
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .content [class$="-card"] :is(h1,h2,h3,h4,h5,h6,strong,b),
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .content :is(.panel,.card,.stat-card,.metric-card,.metrics-kpi) :is(h1,h2,h3,h4,h5,h6,strong,b){color:var(--n4-text)!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .content [class$="-card"] :is(p,small,.muted),
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .content :is(.panel,.card,.stat-card,.metric-card,.metrics-kpi) :is(p,small,.muted){color:var(--n4-muted)!important}

body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .btn{
  min-height:40px!important;height:auto!important;padding:9px 15px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
  border:1px solid #d9e1ec!important;border-radius:8px!important;background:#fff!important;color:#22314a!important;font-weight:600!important;box-shadow:none!important;white-space:nowrap!important;transition:.18s ease!important
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .btn:hover{transform:translateY(-1px)!important;box-shadow:0 5px 14px rgba(17,38,68,.08)!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .btn.primary,
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .btn.btn-primary{
  border-color:var(--n4-blue)!important;background:var(--n4-blue)!important;background-image:none!important;color:#fff!important
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .btn.small{min-height:34px!important;padding:7px 12px!important;font-size:13px!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
  border:1px solid #dce3ed!important;border-radius:8px!important;background:#fff!important;color:#24334d!important;box-shadow:none!important;outline:0!important
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) :is(input:not([type="checkbox"]):not([type="radio"]),select){min-height:40px!important;padding:8px 12px!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) textarea{padding:11px 12px!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) :is(input,select,textarea):focus{border-color:#70a9ff!important;box-shadow:0 0 0 3px rgba(11,103,255,.1)!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) label{color:#33415c!important}

body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .table-wrap{
  max-width:100%!important;overflow:auto!important;border:1px solid var(--n4-line)!important;border-radius:var(--n4-radius)!important;background:#fff!important
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) table{background:#fff!important;color:var(--n4-text)!important;border-collapse:collapse!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) table th{
  padding:12px 14px!important;background:#fbfcfe!important;color:#52617b!important;border-bottom:1px solid var(--n4-line)!important;font-size:12px!important;font-weight:650!important;white-space:nowrap!important
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) table td{padding:12px 14px!important;background:#fff!important;color:#27364f!important;border-bottom:1px solid #edf1f6!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) table tbody tr:hover td{background:#f6f9ff!important}

body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) :is(.tabs,.tabs-row,.admin-tabs,.drawer-tabs){
  border-bottom:1px solid var(--n4-line)!important;background:#fff!important;color:#56657c!important
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) :is(.tab,.admin-tab,.drawer-tab).active{color:var(--n4-blue)!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) :is(.badge,.status){border-radius:7px!important;font-weight:600!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .badge.green{background:var(--n4-green-2)!important;color:#0f8f4b!important;border:1px solid #c9efd8!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .badge:not(.green):not(.red):not(.orange):not(.purple){background:#edf4ff!important;color:#0962e5!important;border:1px solid #d5e6ff!important}

/* Modais com o mesmo acabamento do layout. */
body[data-theme="crm-premium"] .crud-modal-backdrop{background:rgba(6,22,45,.52)!important;backdrop-filter:blur(4px)!important}
body[data-theme="crm-premium"] :is(.crud-modal-dialog,.modal-card,.modal-content){
  background:#fff!important;color:var(--n4-text)!important;border:1px solid var(--n4-line)!important;border-radius:18px!important;box-shadow:0 28px 90px rgba(15,34,62,.22)!important
}
body[data-theme="crm-premium"] :is(.crud-modal-header,.modal-header){background:#fff!important;border-bottom:1px solid var(--n4-line)!important}
body[data-theme="crm-premium"] :is(.crud-modal-tabs,.modal-tabs){background:#f8faff!important;border-bottom:1px solid var(--n4-line)!important}
body[data-theme="crm-premium"] :is(.crud-modal-tab,.modal-tab).is-active{color:var(--n4-blue)!important;background:#fff!important}

/* Menu recolhido: permanece visível somente com os ícones, como no pacote de referência. */
body[data-theme="crm-premium"].sidebar-collapsed:not(.standalone-focus-layout):not(.is-public-page) .nave4-brand-row .brand{justify-content:center!important;padding:0!important}
body[data-theme="crm-premium"].sidebar-collapsed:not(.standalone-focus-layout):not(.is-public-page) :is(.brand-copy,.sidebar-menu-search,.menu-label,.logout-label,.embed-session-label){display:none!important}
body[data-theme="crm-premium"].sidebar-collapsed:not(.standalone-focus-layout):not(.is-public-page) .sidebar nav{padding-left:12px!important;padding-right:12px!important}
body[data-theme="crm-premium"].sidebar-collapsed:not(.standalone-focus-layout):not(.is-public-page) .sidebar nav a{justify-content:center!important;padding:0!important;gap:0!important;overflow:visible!important}
body[data-theme="crm-premium"].sidebar-collapsed:not(.standalone-focus-layout):not(.is-public-page) .sidebar nav a.is-active::before{top:8px!important;bottom:8px!important}
body[data-theme="crm-premium"].sidebar-collapsed:not(.standalone-focus-layout):not(.is-public-page) .sidebar .logout button{justify-content:center!important;padding:0!important}
body[data-theme="crm-premium"].sidebar-collapsed:not(.standalone-focus-layout):not(.is-public-page) .brand-logo{width:38px!important;height:38px!important;min-width:38px!important}

@media(max-width:1100px) and (min-width:851px){
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page){--n4-sidebar:var(--n4-sidebar-collapsed)}
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .nave4-brand-row .brand{justify-content:center!important;padding:0!important}
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) :is(.brand-copy,.sidebar-menu-search,.menu-label,.logout-label,.embed-session-label){display:none!important}
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .sidebar nav a{justify-content:center!important;padding:0!important;gap:0!important;overflow:visible!important}
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .sidebar .logout button{justify-content:center!important;padding:0!important}
}

@media(max-width:850px){
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page){--n4-sidebar:0px}
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .sidebar{
    width:242px!important;transform:translateX(-105%)!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important
  }
  body[data-theme="crm-premium"].mobile-nav-open:not(.standalone-focus-layout):not(.is-public-page) .sidebar{transform:translateX(0)!important}
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .nave4-brand-row .brand{justify-content:flex-start!important;padding:0 22px!important}
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) :is(.brand-copy,.menu-label,.logout-label){display:block!important}
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .sidebar nav a{justify-content:flex-start!important;padding:0 12px!important;gap:12px!important;overflow:hidden!important}
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .sidebar .logout button{justify-content:flex-start!important;padding:0 12px!important}
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .main{margin-left:0!important;padding-top:60px!important}
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .topbar{left:0!important;height:60px!important;min-height:60px!important;padding:0 12px!important;gap:10px!important}
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .topbar-search{max-width:none!important;flex:1 1 auto!important}
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .content{min-height:calc(100dvh - 60px)!important;padding:16px 14px 100px!important}
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page).route-flows-edit .content{height:calc(100dvh - 60px)!important;padding:0!important}
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) :is(.page-head,.assistant-page-head,.custom-page-head){align-items:flex-start!important;flex-wrap:wrap!important}
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) :is(.page-head,.assistant-page-head,.custom-page-head) h1,
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) :is(.page-head,.assistant-page-head,.custom-page-head) h2{font-size:24px!important}
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) :is(.page-head,.assistant-page-head,.custom-page-head) .actions{width:100%!important;margin-left:0!important}
}

@media(max-width:560px){
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .topbar-online,
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .n4-top-action{display:none!important}
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .topbar-search{width:40px!important;max-width:40px!important;flex:0 0 40px!important;padding:0!important;grid-template-columns:1fr!important;place-items:center!important}
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .topbar-search input{display:none!important}
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .content{padding:14px 10px 96px!important}
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .btn{white-space:normal!important}
}

/* Gaveta mobile acompanha o mesmo breakpoint de 850 px usado pelo layout de referência. */
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .mobile-nav-overlay{display:none!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .mobile-nav-close{display:none!important}
@media(max-width:850px){
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .mobile-nav-overlay{
    position:fixed!important;inset:0!important;z-index:1035!important;display:block!important;background:rgba(4,17,36,.55)!important;backdrop-filter:blur(2px)!important;opacity:0!important;pointer-events:none!important;transition:opacity .2s ease!important
  }
  body[data-theme="crm-premium"].mobile-nav-open:not(.standalone-focus-layout):not(.is-public-page) .mobile-nav-overlay{opacity:1!important;pointer-events:auto!important}
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .mobile-nav-close{
    position:absolute!important;top:10px!important;right:10px!important;z-index:3!important;width:34px!important;height:34px!important;display:grid!important;place-items:center!important;border:0!important;border-radius:9px!important;background:rgba(255,255,255,.08)!important;color:#fff!important;font-size:25px!important;line-height:1!important
  }
}

/* Preserva os modos especiais já existentes no sistema. */
body.is-embedded[data-theme="crm-premium"]:not(.standalone-focus-layout){--n4-sidebar:220px}
body.is-embedded[data-theme="crm-premium"].sidebar-collapsed:not(.standalone-focus-layout){--n4-sidebar:76px}
body.flow-editor-solo[data-theme="crm-premium"] .sidebar,
body.flow-editor-solo[data-theme="crm-premium"] .topbar,
body.flow-editor-solo[data-theme="crm-premium"] .mobile-nav-overlay{display:none!important}
body.flow-editor-solo[data-theme="crm-premium"] .main{margin-left:0!important;padding-top:0!important;width:100%!important;min-height:100dvh!important}
body.flow-editor-solo[data-theme="crm-premium"] .content{height:auto!important;min-height:100dvh!important;padding:10px 10px 24px!important;overflow:visible!important;background:var(--n4-bg)!important}

body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .content-page-head{
  display:flex!important;align-items:center!important;gap:14px!important;margin:0 0 20px!important;padding:0!important;border:0!important;background:transparent!important
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .content-page-head>div{min-width:0!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .content-page-head small{display:none!important}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .content-page-head h2{
  margin:0!important;color:var(--n4-text)!important;font-size:28px!important;line-height:1.15!important;letter-spacing:-.02em!important;font-weight:750!important
}
body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .content-page-status{margin-left:auto!important;color:var(--n4-green)!important;background:var(--n4-green-2)!important;border:1px solid #c9efd8!important;border-radius:999px!important;padding:6px 10px!important;font-size:12px!important;font-weight:650!important}
@media(max-width:850px){
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .content-page-head{align-items:flex-start!important;flex-wrap:wrap!important}
  body[data-theme="crm-premium"]:not(.standalone-focus-layout):not(.is-public-page) .content-page-head h2{font-size:24px!important}
}
