/*
 * Flux CRM / Nave4 — tema operacional claro
 * Camada visual não destrutiva aplicada sobre app.css.
 * Mantém rotas, formulários, AJAX e permissões existentes.
 */

[data-theme="crm-premium"]{
  --navy-950:#061426;
  --navy-900:#081a31;
  --navy-850:#0b203b;
  --navy-800:#102846;
  --canvas:#f3f6fb;
  --surface:#ffffff;
  --surface-soft:#f8fafc;
  --surface-muted:#eef3f8;
  --line:#e2e8f0;
  --line-strong:#d4dde8;
  --text:#172033;
  --text-strong:#0f172a;
  --muted:#66758a;
  --primary:#1677ff;
  --primary2:#3b82f6;
  --accent:#1677ff;
  --accent-soft:rgba(22,119,255,.10);
  --green:#16a96f;
  --warning:#e99a16;
  --danger:#e5485d;
  --cyan:#08a7c5;
  --shadow:0 10px 30px rgba(25,45,75,.08);
  --shadow-soft:0 4px 16px rgba(25,45,75,.06);
  color:var(--text)!important;
  color-scheme:light;
  background:var(--canvas)!important;
}

html{background:var(--canvas,#f3f6fb)!important;color-scheme:light}
body[data-theme="crm-premium"]{
  background:
    radial-gradient(circle at 100% 0,rgba(22,119,255,.07),transparent 24rem),
    linear-gradient(180deg,#f6f8fc 0,#f2f5fa 100%)!important;
  color:var(--text)!important;
  font-size:13px;
  letter-spacing:-.005em;
}
body[data-theme="crm-premium"]::before{display:none!important}
[data-theme="crm-premium"] ::selection{background:rgba(22,119,255,.18)!important;color:#0f172a!important}
[data-theme="crm-premium"] *{scrollbar-width:thin;scrollbar-color:#c8d3e0 transparent}
[data-theme="crm-premium"] *::-webkit-scrollbar{width:9px;height:9px}
[data-theme="crm-premium"] *::-webkit-scrollbar-thumb{background:#c8d3e0;border:2px solid transparent;border-radius:99px;background-clip:padding-box}
[data-theme="crm-premium"] *::-webkit-scrollbar-track{background:transparent}

/* Shell principal */
[data-theme="crm-premium"] .sidebar{
  width:228px!important;
  padding:14px 10px 12px!important;
  background:
    radial-gradient(circle at 0 0,rgba(28,125,255,.14),transparent 13rem),
    linear-gradient(180deg,var(--navy-900),var(--navy-950))!important;
  border-right:1px solid rgba(255,255,255,.06)!important;
  box-shadow:8px 0 28px rgba(3,13,28,.12)!important;
  z-index:50!important;
}
[data-theme="crm-premium"] .sidebar::before{display:none!important}
[data-theme="crm-premium"] .sidebar .brand{
  min-height:48px!important;
  padding:2px 8px 12px!important;
  gap:9px!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;
}
[data-theme="crm-premium"] .sidebar .brand-mark,
[data-theme="crm-premium"] .public-topbar-brand .brand-mark{
  position:relative;
  width:34px!important;
  height:34px!important;
  min-width:34px;
  border-radius:10px!important;
  border:1px solid rgba(96,174,255,.35)!important;
  background:linear-gradient(145deg,#0a6fff,#42a4ff)!important;
  box-shadow:0 8px 20px rgba(12,111,255,.27)!important;
  color:transparent!important;
  font-size:0!important;
  overflow:hidden;
}
[data-theme="crm-premium"] .sidebar .brand-mark::before,
[data-theme="crm-premium"] .public-topbar-brand .brand-mark::before{
  content:"";
  width:17px;height:17px;
  background:
    radial-gradient(circle,#fff 0 2.5px,transparent 3px) 0 0/8.5px 8.5px;
  opacity:.96;
}
[data-theme="crm-premium"] .sidebar .brand-logo{width:38px!important;height:38px!important;border-radius:10px!important;background:#fff!important;border:0!important;padding:4px!important}
[data-theme="crm-premium"] .sidebar .brand-copy{min-width:0}
[data-theme="crm-premium"] .sidebar .brand strong{color:#fff!important;font-size:16px!important;line-height:1.1;letter-spacing:.015em!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
[data-theme="crm-premium"] .sidebar .brand small{margin-top:3px;color:#7f98b7!important;font-size:8px!important;letter-spacing:.13em!important}
[data-theme="crm-premium"] .sidebar-menu-search{
  display:grid!important;
  grid-template-columns:17px minmax(0,1fr)!important;
  min-height:35px;
  margin:10px 3px 9px!important;
  padding:0 9px!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:9px!important;
  background:rgba(255,255,255,.045)!important;
  box-shadow:none!important;
}
[data-theme="crm-premium"] .sidebar-menu-search:focus-within{border-color:rgba(71,158,255,.65)!important;background:rgba(255,255,255,.07)!important;box-shadow:0 0 0 3px rgba(33,133,255,.12)!important}
[data-theme="crm-premium"] .sidebar-menu-search span{color:#7f9ab9!important}
[data-theme="crm-premium"] .sidebar-menu-search input{
  height:34px!important;min-height:34px!important;
  color:#eaf3ff!important;
  font-size:11px!important;
}
[data-theme="crm-premium"] .sidebar-menu-search input::placeholder{color:#7189a7!important}
[data-theme="crm-premium"] .sidebar nav{
  gap:2px!important;
  margin:0!important;
  padding:0 2px 10px!important;
}
[data-theme="crm-premium"] .sidebar nav a{
  min-height:34px!important;
  padding:6px 8px!important;
  gap:8px!important;
  border:1px solid transparent!important;
  border-radius:8px!important;
  color:#aebed1!important;
  font-size:11.5px!important;
  font-weight:500;
  transform:none!important;
}
[data-theme="crm-premium"] .sidebar nav a:hover{
  color:#fff!important;
  background:rgba(255,255,255,.055)!important;
  border-color:rgba(255,255,255,.06)!important;
}
[data-theme="crm-premium"] .sidebar nav a.is-active{
  color:#fff!important;
  background:linear-gradient(90deg,rgba(31,125,255,.25),rgba(31,125,255,.09))!important;
  border-color:rgba(78,160,255,.20)!important;
  box-shadow:inset 3px 0 #2589ff!important;
}
[data-theme="crm-premium"] .sidebar nav a .menu-icon{
  display:grid!important;place-items:center!important;
  width:22px!important;height:22px!important;min-width:22px;
  border-radius:6px!important;
  background:transparent!important;
  color:#8ea9c9!important;
  font-size:13px!important;
  box-shadow:none!important;
}
[data-theme="crm-premium"] .sidebar nav a.is-active .menu-icon{color:#65b4ff!important;background:rgba(58,147,255,.12)!important}
[data-theme="crm-premium"] .sidebar nav a .menu-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
[data-theme="crm-premium"] .logout{padding:8px 3px 0!important;border-top:1px solid rgba(255,255,255,.07)!important}
[data-theme="crm-premium"] .logout button{
  min-height:36px!important;
  padding:7px 9px!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:8px!important;
  background:rgba(255,255,255,.025)!important;
  color:#91a6be!important;
}
[data-theme="crm-premium"] .logout button:hover{background:rgba(229,72,93,.10)!important;border-color:rgba(229,72,93,.22)!important;color:#ff9bab!important}

[data-theme="crm-premium"] .main{margin-left:228px!important;background:var(--canvas)!important;min-height:100dvh!important}
[data-theme="crm-premium"] .topbar{
  height:64px!important;min-height:64px!important;
  padding:9px 18px!important;
  gap:14px!important;
  border-bottom:1px solid rgba(255,255,255,.07)!important;
  background:linear-gradient(90deg,#07172b,#0a1f3a)!important;
  box-shadow:0 3px 14px rgba(6,18,37,.14)!important;
  backdrop-filter:none!important;
  z-index:40!important;
}
[data-theme="crm-premium"] .topbar-title{min-width:42px!important;gap:8px!important}
[data-theme="crm-premium"] .topbar-title>div{display:none!important}
[data-theme="crm-premium"] .mobile-menu-toggle{
  width:35px!important;height:35px!important;min-width:35px;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:9px!important;
  background:rgba(255,255,255,.04)!important;
  color:#dce8f7!important;
  box-shadow:none!important;
}
[data-theme="crm-premium"] .mobile-menu-toggle:hover{background:rgba(255,255,255,.08)!important}
[data-theme="crm-premium"] .topbar-search{
  display:grid!important;
  grid-template-columns:18px minmax(120px,1fr) auto!important;
  width:min(520px,45vw)!important;
  min-height:36px;
  margin:0 auto 0 0!important;
  padding:0 10px!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:9px!important;
  background:rgba(255,255,255,.045)!important;
  box-shadow:none!important;
}
[data-theme="crm-premium"] .topbar-search:focus-within{border-color:rgba(83,166,255,.55)!important;background:rgba(255,255,255,.07)!important;box-shadow:0 0 0 3px rgba(35,131,255,.11)!important}
[data-theme="crm-premium"] .topbar-search>span{color:#8ca3be!important}
[data-theme="crm-premium"] .topbar-search input{height:34px!important;min-height:34px!important;padding:0!important;border:0!important;background:transparent!important;color:#eef6ff!important;box-shadow:none!important;font-size:11px!important}
[data-theme="crm-premium"] .topbar-search input::placeholder{color:#7e93ad!important}
[data-theme="crm-premium"] .topbar-search kbd{padding:3px 6px!important;border:1px solid rgba(255,255,255,.08)!important;border-radius:5px!important;background:rgba(255,255,255,.04)!important;color:#7891ad!important;font-size:8px!important;box-shadow:none!important}
[data-theme="crm-premium"] .topbar-actions{gap:8px!important}
[data-theme="crm-premium"] .topbar-kpi{display:none!important}
[data-theme="crm-premium"] .notice-top-button{
  width:35px!important;height:35px!important;
  border:1px solid rgba(255,255,255,.08)!important;
  border-radius:9px!important;
  background:rgba(255,255,255,.04)!important;
  color:#c9d9eb!important;
}
[data-theme="crm-premium"] .notice-top-button:hover{background:rgba(255,255,255,.08)!important}
[data-theme="crm-premium"] .notice-top-button svg{stroke:currentColor!important}
[data-theme="crm-premium"] .speaking-user{
  min-height:38px!important;
  padding:3px 5px 3px 4px!important;
  border:1px solid rgba(255,255,255,.07)!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.035)!important;
  color:#fff!important;
}
[data-theme="crm-premium"] .speaking-user:hover{background:rgba(255,255,255,.07)!important}
[data-theme="crm-premium"] .speaking-avatar{width:29px!important;height:29px!important;min-width:29px!important;border-radius:8px!important;background:linear-gradient(145deg,#2588ff,#7857ef)!important;color:#fff!important;font-size:9px!important}
[data-theme="crm-premium"] .speaking-user small{color:#7f96b2!important;font-size:8px!important}
[data-theme="crm-premium"] .speaking-user strong{max-width:115px;color:#edf5ff!important;font-size:10px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Cabeçalho interno de todas as telas */
[data-theme="crm-premium"] .content{
  width:100%;
  min-height:calc(100dvh - 64px)!important;
  padding:18px 18px 90px!important;
  background:var(--canvas)!important;
  color:var(--text)!important;
}
[data-theme="crm-premium"] .content-page-head{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  min-height:55px;
  margin:0 0 14px;
  padding:0 1px;
}
[data-theme="crm-premium"] .content-page-head>div:first-child{min-width:0}
[data-theme="crm-premium"] .content-page-head small{display:block;margin-bottom:2px;color:#8290a3;font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
[data-theme="crm-premium"] .content-page-head h2{margin:0;color:var(--text-strong)!important;font-size:22px;line-height:1.15;letter-spacing:-.025em}
[data-theme="crm-premium"] .content-page-status{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #dce6f1;border-radius:9px;background:#fff;color:#5f6e82;font-size:10px;box-shadow:var(--shadow-soft)}
[data-theme="crm-premium"] .content-page-status i{width:7px;height:7px;border-radius:50%;background:#18b676;box-shadow:0 0 0 4px rgba(24,182,118,.10)}

/* Componentes globais */
[data-theme="crm-premium"] .panel,
[data-theme="crm-premium"] .stat-card,
[data-theme="crm-premium"] .login-card,
[data-theme="crm-premium"] .install-card{
  border:1px solid var(--line)!important;
  border-radius:11px!important;
  background:var(--surface)!important;
  color:var(--text)!important;
  box-shadow:var(--shadow-soft)!important;
}
[data-theme="crm-premium"] .panel{padding:16px!important}
[data-theme="crm-premium"] .panel::before,[data-theme="crm-premium"] .panel::after{pointer-events:none}
[data-theme="crm-premium"] .panel h1,
[data-theme="crm-premium"] .panel h2,
[data-theme="crm-premium"] .panel h3,
[data-theme="crm-premium"] .panel h4{color:var(--text-strong)!important}
[data-theme="crm-premium"] .panel h2{font-size:14px!important;font-weight:700!important;letter-spacing:-.01em}
[data-theme="crm-premium"] .panel p,[data-theme="crm-premium"] .panel small,[data-theme="crm-premium"] .muted{color:var(--muted)!important}
[data-theme="crm-premium"] .panel-head{gap:12px!important;margin-bottom:12px!important}
[data-theme="crm-premium"] .panel-head>div{min-width:0}
[data-theme="crm-premium"] .panel-head p{margin:3px 0 0!important;font-size:10.5px!important}
[data-theme="crm-premium"] hr,[data-theme="crm-premium"] .sep{border:0!important;border-top:1px solid var(--line)!important}
[data-theme="crm-premium"] .grid-2{gap:13px!important;margin-top:13px!important}
[data-theme="crm-premium"] .stats-grid{gap:11px!important}
[data-theme="crm-premium"] .actions{gap:7px!important}

[data-theme="crm-premium"] .btn{
  min-height:35px;
  padding:8px 12px!important;
  border:1px solid var(--line-strong)!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#364258!important;
  font-size:11px!important;
  font-weight:650!important;
  box-shadow:0 1px 2px rgba(15,23,42,.03)!important;
  transition:transform .14s,box-shadow .14s,border-color .14s,background .14s!important;
}
[data-theme="crm-premium"] .btn:hover{transform:translateY(-1px);border-color:#b8c7d9!important;background:#f8fafc!important;box-shadow:0 5px 14px rgba(31,51,81,.08)!important}
[data-theme="crm-premium"] .btn.primary{
  border-color:#126ce5!important;
  background:linear-gradient(135deg,#1680ff,#176ce8)!important;
  color:#fff!important;
  box-shadow:0 6px 14px rgba(22,119,255,.18)!important;
}
[data-theme="crm-premium"] .btn.primary:hover{background:linear-gradient(135deg,#0875f5,#1262d4)!important;border-color:#0c5fcf!important}
[data-theme="crm-premium"] .btn.danger{border-color:#f3c2ca!important;background:#fff5f6!important;color:#cf334a!important;box-shadow:none!important}
[data-theme="crm-premium"] .btn.danger:hover{background:#ffecee!important;border-color:#ec9fad!important}
[data-theme="crm-premium"] .btn.small{min-height:29px!important;padding:5px 9px!important;font-size:9.5px!important;border-radius:7px!important}
[data-theme="crm-premium"] .btn:disabled{opacity:.55;transform:none!important;box-shadow:none!important;cursor:not-allowed}

[data-theme="crm-premium"] input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
[data-theme="crm-premium"] select,
[data-theme="crm-premium"] textarea{
  min-height:38px;
  padding:9px 10px!important;
  border:1px solid var(--line-strong)!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#243046!important;
  font-size:11.5px!important;
  box-shadow:inset 0 1px 1px rgba(15,23,42,.02)!important;
}
[data-theme="crm-premium"] textarea{min-height:90px}
[data-theme="crm-premium"] input::placeholder,[data-theme="crm-premium"] textarea::placeholder{color:#9aa6b7!important}
[data-theme="crm-premium"] input:focus,[data-theme="crm-premium"] select:focus,[data-theme="crm-premium"] textarea:focus{
  border-color:#66a7f6!important;
  box-shadow:0 0 0 3px rgba(22,119,255,.10)!important;
  outline:0!important;
}
[data-theme="crm-premium"] input[type="checkbox"],[data-theme="crm-premium"] input[type="radio"]{accent-color:#1677ff}
[data-theme="crm-premium"] input[type="file"]{padding:5px!important}
[data-theme="crm-premium"] input[type="file"]::file-selector-button{margin-right:9px;padding:7px 9px;border:0;border-radius:6px;background:#eaf3ff;color:#1765bd;font-weight:700;cursor:pointer}
[data-theme="crm-premium"] label{color:#536176!important;font-size:10.5px!important;font-weight:600}
[data-theme="crm-premium"] fieldset{border-color:var(--line)!important;background:#fbfcfe!important}

[data-theme="crm-premium"] .badge{
  align-items:center;justify-content:center;
  min-height:22px;
  padding:3px 8px!important;
  border:1px solid #dce7f2!important;
  border-radius:99px!important;
  background:#f2f6fb!important;
  color:#607187!important;
  font-size:8.5px!important;
  font-weight:700!important;
}
[data-theme="crm-premium"] .badge.green{border-color:#c8ecdd!important;background:#edf9f4!important;color:#11855a!important}
[data-theme="crm-premium"] .badge.warning{border-color:#f3dfb8!important;background:#fff8e9!important;color:#b16e00!important}
[data-theme="crm-premium"] .badge.danger{border-color:#f3c9d0!important;background:#fff1f3!important;color:#c9364d!important}
[data-theme="crm-premium"] .alert{border-radius:9px!important;color:#354157!important;font-size:11px!important}
[data-theme="crm-premium"] .alert.success{border-color:#c3ead9!important;background:#eefaf5!important;color:#167753!important}
[data-theme="crm-premium"] .alert.danger{border-color:#f2c5cd!important;background:#fff1f3!important;color:#ba3147!important}
[data-theme="crm-premium"] .alert-info-soft{border-color:#c9ddf7!important;background:#eef6ff!important;color:#315c91!important}

[data-theme="crm-premium"] .table-wrap{border:1px solid var(--line)!important;border-radius:9px!important;background:#fff!important}
[data-theme="crm-premium"] table{background:#fff!important;color:#334056!important}
[data-theme="crm-premium"] th{padding:10px 11px!important;border-bottom:1px solid #dbe3ed!important;background:#f7f9fc!important;color:#77869a!important;font-size:8.5px!important;letter-spacing:.06em!important}
[data-theme="crm-premium"] td{padding:10px 11px!important;border-bottom:1px solid #edf1f5!important;color:#3c485c!important;font-size:10.5px!important}
[data-theme="crm-premium"] tbody tr:hover td{background:#f8fbff!important}
[data-theme="crm-premium"] tbody tr:last-child td{border-bottom:0!important}
[data-theme="crm-premium"] code,[data-theme="crm-premium"] pre{border-color:#dce4ee!important;background:#f6f8fb!important;color:#33465f!important}

/* Dashboard */
[data-theme="crm-premium"] .stat-card{
  min-height:88px!important;
  padding:13px 14px!important;
  overflow:hidden;
}
[data-theme="crm-premium"] .stat-card::after{
  width:62px!important;height:62px!important;right:-12px!important;top:-12px!important;
  background:var(--accent)!important;filter:blur(40px)!important;opacity:.13!important;
}
[data-theme="crm-premium"] .stat-card::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--accent);opacity:.85;
}
[data-theme="crm-premium"] .stat-card span{color:#758399!important;font-size:9px!important;font-weight:650}
[data-theme="crm-premium"] .stat-card strong{margin:6px 0 4px!important;color:#172033!important;font-size:23px!important;line-height:1!important;letter-spacing:-.03em}
[data-theme="crm-premium"] .stat-card small{color:#8a97a8!important;font-size:8.5px!important}
[data-theme="crm-premium"] .dashboard-live-grid{gap:13px!important;margin-top:13px!important}
[data-theme="crm-premium"] .live-summary-grid{gap:8px!important}
[data-theme="crm-premium"] .live-summary-card,
[data-theme="crm-premium"] .insight,
[data-theme="crm-premium"] .live-feed-item{
  border:1px solid var(--line)!important;
  border-radius:8px!important;
  background:#f9fbfd!important;
  color:var(--text)!important;
}
[data-theme="crm-premium"] .live-summary-card strong{color:#172033!important}
[data-theme="crm-premium"] .live-chart{border-color:var(--line)!important;background:linear-gradient(180deg,#fbfdff,#f5f8fc)!important}
[data-theme="crm-premium"] .live-chart::before{opacity:.35!important}
[data-theme="crm-premium"] .live-chart-day>span,[data-theme="crm-premium"] .live-updated-line{color:#8592a3!important}
[data-theme="crm-premium"] .live-feed-item b,[data-theme="crm-premium"] .insight b{color:#273349!important}
[data-theme="crm-premium"] .live-feed-item p,[data-theme="crm-premium"] .insight p{color:#738095!important}
[data-theme="crm-premium"] .live-chart-legend span{color:#67758a!important}

/* Inbox omnichannel */
[data-theme="crm-premium"] .inbox-layout-toolbar{
  margin-bottom:8px!important;padding:8px 10px!important;
  border:1px solid var(--line)!important;border-radius:9px!important;
  background:#fff!important;color:#334056!important;box-shadow:var(--shadow-soft)!important;
}
[data-theme="crm-premium"] .inbox-layout-toolbar small{color:#78869a!important}
[data-theme="crm-premium"] .inbox-layout{
  height:calc(100dvh - 191px)!important;
  min-height:570px!important;
  border:1px solid var(--line)!important;
  border-radius:11px!important;
  background:#fff!important;
  box-shadow:var(--shadow)!important;
}
[data-theme="crm-premium"] .conversation-list{border-color:var(--line)!important;background:#fbfcfe!important}
[data-theme="crm-premium"] .inbox-channel-tabs{border-color:var(--line)!important;background:#fff!important}
[data-theme="crm-premium"] .inbox-channel-tabs a{color:#657489!important}
[data-theme="crm-premium"] .inbox-channel-tabs a.active{background:#eef6ff!important;color:#1267c4!important;border-color:#cde2fb!important}
[data-theme="crm-premium"] .search{background:#fbfcfe!important;border-color:var(--line)!important}
[data-theme="crm-premium"] .conversation{border-color:#ebf0f5!important;color:#303d52!important}
[data-theme="crm-premium"] .conversation:hover{background:#f4f8fd!important}
[data-theme="crm-premium"] .conversation.active{background:#eaf4ff!important;box-shadow:inset 3px 0 #1680ff!important}
[data-theme="crm-premium"] .conversation b{color:#273349!important}
[data-theme="crm-premium"] .conversation p,[data-theme="crm-premium"] .conversation small,[data-theme="crm-premium"] .conversation time{color:#7b889a!important}
[data-theme="crm-premium"] .chat-panel{background:#fff!important}
[data-theme="crm-premium"] .chat-head{border-color:var(--line)!important;background:#fff!important;color:#263248!important}
[data-theme="crm-premium"] .chat-head small{color:#7c899b!important}
[data-theme="crm-premium"] .messages{
  background:
    linear-gradient(rgba(255,255,255,.88),rgba(255,255,255,.88)),
    radial-gradient(circle at 1px 1px,#d6e0eb 1px,transparent 1.2px)!important;
  background-size:auto,20px 20px!important;
}
[data-theme="crm-premium"] .message{
  border:1px solid #e1e7ef!important;
  border-radius:11px 11px 11px 3px!important;
  background:#fff!important;
  color:#364257!important;
  box-shadow:0 3px 10px rgba(29,48,77,.06)!important;
}
[data-theme="crm-premium"] .message.out{
  border-color:#c5e4ca!important;
  border-radius:11px 11px 3px 11px!important;
  background:#e9f8ec!important;
  color:#28533a!important;
  box-shadow:0 3px 10px rgba(31,113,59,.05)!important;
}
[data-theme="crm-premium"] .message small{color:#8190a3!important}
[data-theme="crm-premium"] .composer{border-color:var(--line)!important;background:#fafbfd!important}
[data-theme="crm-premium"] .composer textarea{background:#fff!important}
[data-theme="crm-premium"] .message-view-tools{border-color:var(--line)!important;background:#f8fafc!important;color:#66758a!important}
[data-theme="crm-premium"] .message-view-tools button.is-active{background:#e9f5ff!important;color:#106cbf!important}
[data-theme="crm-premium"] .flux-split-handle{background:linear-gradient(90deg,transparent 3px,#d8e2ed 4px,#d8e2ed 6px,transparent 7px)!important}
[data-theme="crm-premium"] .flux-split-handle::after{border-color:#d1dce8!important;background:#fff!important;color:#7290ad!important;box-shadow:0 2px 8px rgba(35,55,85,.08)!important}

/* Kanban, vendas e cartões */
[data-theme="crm-premium"] .kanban,[data-theme="crm-premium"] .sales-kanban{gap:9px!important}
[data-theme="crm-premium"] .kanban-column,[data-theme="crm-premium"] .sales-column{
  border:1px solid var(--line)!important;
  border-radius:10px!important;
  background:#f8fafc!important;
  box-shadow:none!important;
}
[data-theme="crm-premium"] .kanban-column>header,[data-theme="crm-premium"] .sales-column>header{
  border-bottom-width:2px!important;
  color:#334056!important;
}
[data-theme="crm-premium"] .kanban-column>header span{background:#eaf1f8!important;color:#66758a!important}
[data-theme="crm-premium"] .lead-card,[data-theme="crm-premium"] .sales-card{
  border:1px solid #e0e7ef!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#334056!important;
  box-shadow:0 4px 12px rgba(25,45,75,.055)!important;
}
[data-theme="crm-premium"] .lead-card:hover,[data-theme="crm-premium"] .sales-card:hover{transform:translateY(-2px)!important;border-color:#bed6f1!important;box-shadow:0 8px 18px rgba(25,45,75,.08)!important}
[data-theme="crm-premium"] .lead-card p,[data-theme="crm-premium"] .sales-card p{color:#778599!important}
[data-theme="crm-premium"] .lead-card footer{border-color:#edf1f5!important;color:#7b889a!important}
[data-theme="crm-premium"] .growth-tabs button,[data-theme="crm-premium"] .growth-tab-link{
  border-color:var(--line)!important;background:#fff!important;color:#5b697e!important;border-radius:8px!important;
}
[data-theme="crm-premium"] .growth-tabs button.active,[data-theme="crm-premium"] .growth-tab-link.active{border-color:#bbd9fb!important;background:#eaf4ff!important;color:#1268c4!important}
[data-theme="crm-premium"] .sales-summary span,[data-theme="crm-premium"] .pipeline-list article,[data-theme="crm-premium"] .quote-row{
  border-color:var(--line)!important;background:#fff!important;color:#344056!important;
}
[data-theme="crm-premium"] .sales-summary b{color:#1677ff!important}

/* Listas e cards de módulos */
[data-theme="crm-premium"] .ticket-card,
[data-theme="crm-premium"] .plan-card,
[data-theme="crm-premium"] .company-card,
[data-theme="crm-premium"] .content-admin-card,
[data-theme="crm-premium"] .ranking .rank,
[data-theme="crm-premium"] .calendar-day,
[data-theme="crm-premium"] .calendar-event,
[data-theme="crm-premium"] .integration-service-card,
[data-theme="crm-premium"] .tutorial-library-card,
[data-theme="crm-premium"] .provider-card,
[data-theme="crm-premium"] .provider-option,
[data-theme="crm-premium"] .history-card,
[data-theme="crm-premium"] .health-card,
[data-theme="crm-premium"] .extension-item,
[data-theme="crm-premium"] .cron-card,
[data-theme="crm-premium"] .system-module-card{
  border-color:var(--line)!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#334056!important;
  box-shadow:none!important;
}
[data-theme="crm-premium"] .ticket-card:hover,
[data-theme="crm-premium"] .company-card:hover,
[data-theme="crm-premium"] .history-card:hover{border-color:#c3d8ef!important;background:#fbfdff!important}
[data-theme="crm-premium"] .avatar{background:linear-gradient(145deg,#e6f2ff,#dbe9ff)!important;color:#1769c4!important;border:1px solid #cce1fa!important}
[data-theme="crm-premium"] .contact-tabs a{border-color:var(--line)!important;background:#fff!important;color:#627086!important}
[data-theme="crm-premium"] .contact-tabs a.active{border-color:#c7ddf7!important;background:#edf6ff!important;color:#1767bb!important}
[data-theme="crm-premium"] .calendar-day.is-today{border-color:#8fc3ff!important;background:#eff7ff!important}
[data-theme="crm-premium"] .integration-service-card code{background:#f1f6fb!important;color:#176abf!important}
[data-theme="crm-premium"] .business-search-hero,[data-theme="crm-premium"] .social-hero{border-color:var(--line)!important;background:#fff!important;color:#334056!important;box-shadow:var(--shadow-soft)!important}
[data-theme="crm-premium"] .domain-status-box,[data-theme="crm-premium"] .domain-dns-grid>div{border-color:var(--line)!important;background:#fff!important;color:#334056!important}
[data-theme="crm-premium"] .branding-preview{border-color:var(--line)!important;background:#fff!important}

/* Editor de fluxos */
[data-theme="crm-premium"] .flow-editor-topbar{
  padding:10px!important;
  border:1px solid var(--line)!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#334056!important;
  box-shadow:var(--shadow-soft)!important;
}
[data-theme="crm-premium"] .flow-editor-shell{
  border:1px solid var(--line)!important;
  border-radius:11px!important;
  background:#fff!important;
  box-shadow:var(--shadow)!important;
}
[data-theme="crm-premium"] .flow-editor-controls,
[data-theme="crm-premium"] .flow-properties,
[data-theme="crm-premium"] .flow-node-library{
  border-color:var(--line)!important;
  background:#fbfcfe!important;
  color:#344056!important;
}
[data-theme="crm-premium"] .flow-layout-tip{border-color:var(--line)!important;background:#f7faff!important;color:#617087!important}
[data-theme="crm-premium"] .flow-canvas-viewport,
[data-theme="crm-premium"] .flow-canvas{
  background-color:#f8fafc!important;
  background-image:radial-gradient(#cfd8e4 1px,transparent 1px)!important;
  background-size:18px 18px!important;
}
[data-theme="crm-premium"] .flow-visual-node{
  border-color:#d9e2ed!important;
  background:#fff!important;
  color:#334056!important;
  box-shadow:0 8px 18px rgba(30,49,78,.08)!important;
}
[data-theme="crm-premium"] .flow-visual-node.selected{border-color:#4f9cf5!important;box-shadow:0 0 0 3px rgba(22,119,255,.10),0 8px 18px rgba(30,49,78,.08)!important}
[data-theme="crm-premium"] .flow-visual-node small,[data-theme="crm-premium"] .flow-visual-node p{color:#758398!important}
[data-theme="crm-premium"] .flow-node-option,[data-theme="crm-premium"] .flow-action-item{border-color:var(--line)!important;background:#fff!important;color:#445066!important}
[data-theme="crm-premium"] .flow-node-option:hover,[data-theme="crm-premium"] .flow-action-item:hover{border-color:#bdd7f4!important;background:#f3f8ff!important}
body.flow-editor-solo[data-theme="crm-premium"]{background:#f3f6fb!important}
body.flow-editor-solo[data-theme="crm-premium"] .flow-editor-topbar{background:#fff!important;border-color:var(--line)!important}

/* Modais, notificações e ajuda */
[data-theme="crm-premium"] .flux-modal,[data-theme="crm-premium"] .flux-system-modal{background:rgba(7,18,35,.54)!important;backdrop-filter:blur(8px)!important}
[data-theme="crm-premium"] .flux-modal-dialog,[data-theme="crm-premium"] .flux-system-modal-dialog{
  border:1px solid #d9e3ee!important;
  border-radius:13px!important;
  background:#fff!important;
  color:#334056!important;
  box-shadow:0 28px 80px rgba(11,27,48,.24)!important;
}
[data-theme="crm-premium"] .flux-system-modal-dialog>header,[data-theme="crm-premium"] .flux-system-modal-dialog>footer{border-color:var(--line)!important;background:#fbfcfe!important}
[data-theme="crm-premium"] .flux-system-modal-dialog h2,[data-theme="crm-premium"] .flux-system-modal-dialog small{color:#273349!important}
[data-theme="crm-premium"] .flux-system-modal-dialog>header button{border-color:var(--line)!important;background:#fff!important;color:#526177!important}
[data-theme="crm-premium"] .notice-popover{border-color:#d9e3ef!important;background:#fff!important;color:#334056!important;box-shadow:0 20px 60px rgba(9,25,48,.22)!important}
[data-theme="crm-premium"] .notice-popover header,[data-theme="crm-premium"] .notice-popover footer{border-color:var(--line)!important;background:#fbfcfe!important}
[data-theme="crm-premium"] .notice-popover h3,[data-theme="crm-premium"] .notice-popover b{color:#273349!important}
[data-theme="crm-premium"] .notice-popover small,[data-theme="crm-premium"] .notice-popover p{color:#778599!important}
[data-theme="crm-premium"] .notice-popover-item{border-color:#edf1f5!important;background:#fff!important}
[data-theme="crm-premium"] .notice-popover-item:hover{background:#f7faff!important}
[data-theme="crm-premium"] .dashboard-notice{border-color:var(--line)!important;background:#fff!important;color:#334056!important;box-shadow:var(--shadow-soft)!important}
[data-theme="crm-premium"] .assistant-panel{border-color:#d6e1ed!important;background:#fff!important;color:#334056!important;box-shadow:0 22px 70px rgba(9,25,48,.24)!important}
[data-theme="crm-premium"] .assistant-panel>header{border-color:var(--line)!important;background:#fbfcfe!important}
[data-theme="crm-premium"] .assistant-panel h2,[data-theme="crm-premium"] .assistant-close{color:#273349!important}
[data-theme="crm-premium"] .assistant-context,[data-theme="crm-premium"] .assistant-current-tutorials article{border-color:var(--line)!important;background:#f7faff!important;color:#334056!important}
[data-theme="crm-premium"] .tour-tooltip{border-color:#c9dced!important;background:#fff!important;color:#334056!important;box-shadow:0 24px 80px rgba(9,25,48,.28)!important}
[data-theme="crm-premium"] .tour-tooltip h3{color:#273349!important}
[data-theme="crm-premium"] .tour-tooltip p{color:#68768a!important}

/* Login, cadastro e páginas públicas */
[data-theme="crm-premium"].is-public-page{background:#f3f6fb!important}
[data-theme="crm-premium"] .auth-experience{background:#f3f6fb!important}
[data-theme="crm-premium"] .auth-showcase{
  background:
    radial-gradient(circle at 18% 12%,rgba(45,139,255,.20),transparent 23rem),
    linear-gradient(145deg,#07172c,#0a2341)!important;
}
[data-theme="crm-premium"] .auth-panel{background:#f5f7fb!important;color:#243046!important}
[data-theme="crm-premium"] .auth-panel .login-card,[data-theme="crm-premium"] .auth-panel .register-card{border-color:#e0e7ef!important;background:#fff!important;color:#273349!important;box-shadow:0 18px 50px rgba(28,50,82,.10)!important}
[data-theme="crm-premium"] .auth-panel h1,[data-theme="crm-premium"] .auth-panel h2,[data-theme="crm-premium"] .auth-panel h3{color:#172033!important}
[data-theme="crm-premium"] .auth-panel p,[data-theme="crm-premium"] .auth-panel small{color:#738095!important}
[data-theme="crm-premium"] .login-shell{color:#334056!important}
[data-theme="crm-premium"] .login-hero h2{color:#fff!important}
[data-theme="crm-premium"] .login-hero p,[data-theme="crm-premium"] .feature-pills span{color:#b6c8dc!important}
[data-theme="crm-premium"] .system-footer{border-color:#dfe6ef!important;background:#f7f9fc!important;color:#8190a3!important}
[data-theme="crm-premium"] .system-footer a:hover{color:#176bc5!important}

/* Saúde, API e documentação */
[data-theme="crm-premium"] .health-card.ok{border-left:3px solid #17aa70!important}
[data-theme="crm-premium"] .health-card.warning{border-left:3px solid #e99a16!important}
[data-theme="crm-premium"] .health-card.danger{border-left:3px solid #e5485d!important}
[data-theme="crm-premium"] .health-icon{background:#eef5fd!important;color:#1769c4!important}
[data-theme="crm-premium"] .status-light{box-shadow:none!important}
[data-theme="crm-premium"] .code-copy-row code{border-color:var(--line)!important;background:#f5f8fb!important;color:#40526a!important}
[data-theme="crm-premium"] .filesystem-list>div,[data-theme="crm-premium"] .health-details>div{border-color:#edf1f5!important}
[data-theme="crm-premium"] .legal-rich-content{color:#4d5b70!important}
[data-theme="crm-premium"] .legal-rich-content h1,[data-theme="crm-premium"] .legal-rich-content h2,[data-theme="crm-premium"] .legal-rich-content h3{color:#172033!important}
[data-theme="crm-premium"] .legal-rich-content.compact{background:#f8fafc!important}
[data-theme="crm-premium"] .legal-check{border-color:var(--line)!important;background:#fbfcfe!important}

/* Barra de acesso administrativo */
[data-theme="crm-premium"] .impersonation-bar{background:#fff8e6!important;color:#76500b!important;border-bottom:1px solid #f0dfb3!important}

/* Menu oculto */
@media(min-width:761px){
  body[data-theme="crm-premium"]:not(.sidebar-hidden) .main{margin-left:228px!important}
  body[data-theme="crm-premium"].sidebar-hidden .main{margin-left:0!important}
  body[data-theme="crm-premium"].sidebar-hidden .sidebar{transform:translateX(-105%)!important;opacity:0!important;pointer-events:none!important}
}

/* Tablet */
@media(max-width:1100px){
  [data-theme="crm-premium"] .sidebar{width:215px!important}
  [data-theme="crm-premium"] .main{margin-left:215px!important}
  body[data-theme="crm-premium"]:not(.sidebar-hidden) .main{margin-left:215px!important}
  [data-theme="crm-premium"] .topbar-search{width:min(430px,42vw)!important}
  [data-theme="crm-premium"] .speaking-user>div{display:none!important}
  [data-theme="crm-premium"] .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* Mobile */
@media(max-width:760px){
  body[data-theme="crm-premium"]{font-size:13px}
  [data-theme="crm-premium"] .sidebar{
    width:min(310px,88vw)!important;
    transform:translateX(-105%)!important;
    opacity:0;
    pointer-events:none;
    transition:transform .2s ease,opacity .2s ease!important;
  }
  body[data-theme="crm-premium"].mobile-nav-open .sidebar{transform:none!important;opacity:1!important;pointer-events:auto!important}
  [data-theme="crm-premium"] .main{margin-left:0!important}
  [data-theme="crm-premium"] .topbar{height:58px!important;min-height:58px!important;padding:8px 10px!important}
  [data-theme="crm-premium"] .topbar-title{min-width:36px!important}
  [data-theme="crm-premium"] .mobile-menu-toggle{width:34px!important;height:34px!important}
  [data-theme="crm-premium"] .topbar-search{width:auto!important;flex:1!important;margin:0!important;grid-template-columns:17px 1fr!important}
  [data-theme="crm-premium"] .topbar-search kbd{display:none!important}
  [data-theme="crm-premium"] .notice-top-button{width:34px!important;height:34px!important}
  [data-theme="crm-premium"] .speaking-user{display:none!important}
  [data-theme="crm-premium"] .content{min-height:calc(100dvh - 58px)!important;padding:12px 10px 80px!important}
  [data-theme="crm-premium"] .content-page-head{min-height:auto;margin-bottom:10px}
  [data-theme="crm-premium"] .content-page-head h2{font-size:19px}
  [data-theme="crm-premium"] .content-page-status{display:none}
  [data-theme="crm-premium"] .panel{padding:12px!important}
  [data-theme="crm-premium"] .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  [data-theme="crm-premium"] .stat-card{min-height:82px!important;padding:11px!important}
  [data-theme="crm-premium"] .stat-card strong{font-size:19px!important}
  [data-theme="crm-premium"] .grid-2,[data-theme="crm-premium"] .cols{grid-template-columns:1fr!important}
  [data-theme="crm-premium"] .inbox-layout{height:calc(100dvh - 147px)!important;min-height:520px!important}
  [data-theme="crm-premium"] .system-footer{padding:14px 12px!important;display:grid!important}
  [data-theme="crm-premium"] .notice-popover{position:fixed!important;left:8px!important;right:8px!important;top:62px!important;width:auto!important;max-height:calc(100dvh - 72px)!important}
}

@media(max-width:430px){
  [data-theme="crm-premium"] .stats-grid{grid-template-columns:1fr 1fr!important}
  [data-theme="crm-premium"] .stat-card span{font-size:8.5px!important}
  [data-theme="crm-premium"] .stat-card strong{font-size:17px!important}
  [data-theme="crm-premium"] .btn{padding:8px 10px!important}
}

/* Nave4 5.3.4 · alinhamento definitivo, Inbox focado e editor visual em três áreas */
[data-theme="crm-premium"] .sidebar{overflow:hidden!important}
[data-theme="crm-premium"] .sidebar nav{
  display:flex!important;flex:1 1 auto!important;flex-direction:column!important;
  align-items:stretch!important;gap:3px!important;min-height:0!important;
  overflow-x:hidden!important;overflow-y:auto!important;scrollbar-gutter:stable;
}
[data-theme="crm-premium"] .sidebar nav a{
  position:relative!important;display:flex!important;flex:0 0 auto!important;
  align-items:center!important;width:100%!important;min-width:0!important;
  min-height:36px!important;height:auto!important;margin:0!important;
  padding:7px 9px!important;line-height:1.2!important;overflow:hidden!important;
}
[data-theme="crm-premium"] .sidebar nav a .menu-icon{flex:0 0 22px!important}
[data-theme="crm-premium"] .sidebar nav a .menu-label{display:block!important;flex:1 1 auto!important;min-width:0!important;line-height:1.25!important}
[data-theme="crm-premium"] .sidebar .logout{flex:0 0 auto!important;margin-top:8px!important}

/* Todos os cartões operacionais permanecem claros e legíveis. */
[data-theme="crm-premium"] .content [class$="-card"],
[data-theme="crm-premium"] .content [class*="-card "],
[data-theme="crm-premium"] .content .field-builder,
[data-theme="crm-premium"] .content .message-builder,
[data-theme="crm-premium"] .content .channel-config-group,
[data-theme="crm-premium"] .content .payment-config-box,
[data-theme="crm-premium"] .content .flow-builder-intro,
[data-theme="crm-premium"] .content .flow-layout-tip,
[data-theme="crm-premium"] .content .feature-list>div,
[data-theme="crm-premium"] .content .flow-manual-steps>div{
  border-color:#e0e7ef!important;background:#fff!important;color:#334056!important;
  box-shadow:0 4px 14px rgba(30,49,78,.055)!important;
}
[data-theme="crm-premium"] .content [class$="-card"] :is(h1,h2,h3,h4,b,strong),
[data-theme="crm-premium"] .content [class*="-card "] :is(h1,h2,h3,h4,b,strong){color:#172033!important}
[data-theme="crm-premium"] .content [class$="-card"] :is(p,small),
[data-theme="crm-premium"] .content [class*="-card "] :is(p,small){color:#738095!important}
[data-theme="crm-premium"] .content .notice{border-color:#dce6f1!important;background:#f5f9fe!important;color:#526177!important}
[data-theme="crm-premium"] .content label{color:#4d5b70!important}

/* Inbox: a tela abre sem o menu principal, usando somente a barra de canais. */
body.inbox-focus-layout[data-theme="crm-premium"]{height:100dvh!important;overflow:hidden!important;background:#07172b!important}
body.inbox-focus-layout[data-theme="crm-premium"] .main{height:100dvh!important;min-height:0!important;margin-left:0!important;overflow:hidden!important;background:#fff!important}
body.inbox-focus-layout[data-theme="crm-premium"] .topbar{position:relative!important;height:60px!important;min-height:60px!important;padding:8px 16px!important}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-topbar-brand{display:flex;align-items:center;gap:9px;min-width:136px;color:#fff}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-topbar-brand img{width:30px;height:30px;object-fit:contain;border-radius:8px;background:#fff;padding:3px}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-topbar-brand .brand-mark{width:30px!important;height:30px!important;min-width:30px!important;border-radius:8px!important}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-topbar-brand strong{font-size:17px;letter-spacing:.02em}
body.inbox-focus-layout[data-theme="crm-premium"] .topbar-title{min-width:34px!important}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-main-menu-link{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;color:#dbe8f7;font-size:14px}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-main-menu-link:hover{background:rgba(255,255,255,.08)}
body.inbox-focus-layout[data-theme="crm-premium"] .content{height:calc(100dvh - 60px)!important;min-height:0!important;padding:0!important;overflow:hidden!important;background:#fff!important}
body.inbox-focus-layout[data-theme="crm-premium"] .dashboard-notices,
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-layout-toolbar{display:none!important}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-layout{
  display:grid!important;grid-template-columns:132px minmax(0,1fr)!important;
  width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;
  border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;overflow:hidden!important;
}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-channel-rail{
  min-width:0;overflow-y:auto;padding:14px 10px;background:linear-gradient(180deg,#091c34,#07172b);border-right:1px solid rgba(255,255,255,.07);color:#fff;
}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-channel-rail>header{display:grid;gap:2px;padding:0 7px 12px}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-channel-rail>header strong{font-size:13px}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-channel-rail>header small{color:#718aa8;font-size:8px;text-transform:uppercase;letter-spacing:.12em}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-channel-tabs{display:grid!important;gap:3px!important;padding:0!important;border:0!important;background:transparent!important}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-channel-tabs a{
  display:grid!important;grid-template-columns:25px minmax(0,1fr) auto!important;align-items:center!important;gap:7px!important;
  min-height:35px!important;padding:5px 6px!important;border:1px solid transparent!important;border-radius:8px!important;
  color:#afc0d3!important;font-size:10px!important;line-height:1.1!important;
}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-channel-tabs a:hover{background:rgba(255,255,255,.055)!important;color:#fff!important}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-channel-tabs a.is-active{background:rgba(37,137,255,.18)!important;border-color:rgba(74,158,255,.22)!important;color:#fff!important}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-channel-tabs a>b{min-width:18px;padding:2px 4px;border-radius:99px;background:rgba(255,255,255,.07);color:#9fb1c7;text-align:center;font-size:8px}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-channel-icon{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;color:#fff}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-channel-icon svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.inbox-focus-layout[data-theme="crm-premium"] .network-all .inbox-channel-icon{background:#3e73a8}
body.inbox-focus-layout[data-theme="crm-premium"] .network-whatsapp .inbox-channel-icon{background:#22b573}
body.inbox-focus-layout[data-theme="crm-premium"] .network-instagram .inbox-channel-icon{background:linear-gradient(145deg,#7b3fe4,#f04c7d,#ff9a42)}
body.inbox-focus-layout[data-theme="crm-premium"] .network-messenger .inbox-channel-icon{background:#1687ff}
body.inbox-focus-layout[data-theme="crm-premium"] .network-telegram .inbox-channel-icon{background:#2b9ed8}
body.inbox-focus-layout[data-theme="crm-premium"] .network-web .inbox-channel-icon{background:#2f80ed}
body.inbox-focus-layout[data-theme="crm-premium"] .network-voice .inbox-channel-icon{background:#16a96f}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-workspace{
  --flux-pane-size:330px;display:grid!important;grid-template-columns:var(--flux-pane-size) 8px minmax(0,1fr)!important;
  min-width:0;min-height:0;height:100%;overflow:hidden;background:#fff;
}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-workspace:not(.flux-split-ready){grid-template-columns:minmax(285px,330px) minmax(0,1fr)!important}
body.inbox-focus-layout[data-theme="crm-premium"] .conversation-list{display:flex!important;flex-direction:column!important;min-width:0;min-height:0;max-height:none!important;overflow:hidden!important;border-right:1px solid #e4eaf1!important;background:#fff!important}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-list-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:56px;padding:11px 14px;border-bottom:1px solid #e9eef4;background:#fff}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-list-heading>div{display:grid;gap:1px}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-list-heading strong{color:#172033;font-size:14px}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-list-heading small{color:#8491a2;font-size:9px}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-live-dot{width:8px;height:8px;border-radius:50%;background:#1ab779;box-shadow:0 0 0 4px rgba(26,183,121,.11)}
body.inbox-focus-layout[data-theme="crm-premium"] .conversation-list .search{position:relative!important;top:auto!important;padding:10px 12px!important;border-bottom:1px solid #edf1f5!important;background:#fff!important}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-filters{grid-template-columns:1fr 1fr!important;gap:6px!important}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-filters input,
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-filters select{min-height:34px!important;padding:7px 9px!important;border-color:#dfe6ee!important;border-radius:7px!important;background:#fff!important;color:#425067!important;font-size:9.5px!important}
body.inbox-focus-layout[data-theme="crm-premium"] [data-conversation-list]{flex:1 1 auto;min-height:0;overflow-y:auto;background:#fff}
body.inbox-focus-layout[data-theme="crm-premium"] .conversation-row{position:relative;border-bottom:1px solid #edf1f5}
body.inbox-focus-layout[data-theme="crm-premium"] .conversation{grid-template-columns:36px minmax(0,1fr) auto!important;gap:9px!important;padding:10px 12px!important;border:0!important;background:#fff!important}
body.inbox-focus-layout[data-theme="crm-premium"] .conversation:hover{background:#f7faff!important}
body.inbox-focus-layout[data-theme="crm-premium"] .conversation.active{background:#edf6ff!important;box-shadow:inset 3px 0 #1680ff!important}
body.inbox-focus-layout[data-theme="crm-premium"] .conversation .avatar{width:34px!important;height:34px!important;min-width:34px!important;font-size:9px!important}
body.inbox-focus-layout[data-theme="crm-premium"] .conversation b{display:block;font-size:10.5px!important;line-height:1.2}
body.inbox-focus-layout[data-theme="crm-premium"] .conversation p{max-width:none!important;margin:3px 0!important;font-size:9px!important}
body.inbox-focus-layout[data-theme="crm-premium"] .conversation small,body.inbox-focus-layout[data-theme="crm-premium"] .conversation time{font-size:8px!important}
body.inbox-focus-layout[data-theme="crm-premium"] .conversation-spy{position:absolute;right:8px;bottom:4px;font-size:7px;color:#71849b}
body.inbox-focus-layout[data-theme="crm-premium"] .chat-panel{min-width:0!important;min-height:0!important;height:100%!important;overflow:hidden!important;background:#fff!important}
body.inbox-focus-layout[data-theme="crm-premium"] .chat-head{min-height:62px!important;padding:9px 14px!important;overflow:auto!important;border-bottom:1px solid #e7edf3!important;background:#fff!important}
body.inbox-focus-layout[data-theme="crm-premium"] .chat-contact>b{font-size:12px!important;color:#172033!important}
body.inbox-focus-layout[data-theme="crm-premium"] .chat-contact small{font-size:8.5px!important}
body.inbox-focus-layout[data-theme="crm-premium"] .chat-actions .btn,body.inbox-focus-layout[data-theme="crm-premium"] .chat-actions select{min-height:30px!important;padding:5px 8px!important;font-size:8px!important}
body.inbox-focus-layout[data-theme="crm-premium"] .message-view-tools{min-height:35px!important;padding:5px 12px!important}
body.inbox-focus-layout[data-theme="crm-premium"] .message-view-tools button{padding:5px 8px!important;font-size:8px!important}
body.inbox-focus-layout[data-theme="crm-premium"] .messages{padding:15px 18px!important;gap:9px!important;background-color:#f7f9fc!important}
body.inbox-focus-layout[data-theme="crm-premium"] .message{max-width:72%!important;padding:9px 11px!important;border-radius:10px 10px 10px 3px!important;font-size:9.5px!important}
body.inbox-focus-layout[data-theme="crm-premium"] .message.out{border-radius:10px 10px 3px 10px!important;background:#e9f7eb!important}
body.inbox-focus-layout[data-theme="crm-premium"] .message-author{font-size:8px!important}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-send-composer{padding:9px 12px!important;gap:7px!important;border-top:1px solid #e5ebf2!important;background:#fff!important}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-composer-main textarea{min-height:42px!important;max-height:92px!important;padding:10px!important;border-radius:8px!important;font-size:10px!important}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-send-button{min-width:72px!important;font-size:9px!important}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-composer-options{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-composer-options label{font-size:8px!important}
body.inbox-focus-layout[data-theme="crm-premium"] .inbox-composer-options :is(input,select,textarea){min-height:31px!important;padding:5px 7px!important;font-size:8px!important}
body.inbox-focus-layout[data-theme="crm-premium"] .empty-chat-icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 12px;border-radius:18px;background:#edf5ff;color:#1677ff;font-size:24px}

/* Editor de fluxos com biblioteca à esquerda, canvas central e propriedades à direita. */
body.route-flows-edit[data-theme="crm-premium"] .content-page-head,
body.route-flows-edit[data-theme="crm-premium"] .flow-editor-intro{display:none!important}
body.route-flows-edit[data-theme="crm-premium"] .content{padding:12px!important}
[data-theme="crm-premium"] .flow-editor-topbar{
  display:grid!important;grid-template-columns:minmax(260px,1fr) auto auto!important;align-items:center!important;gap:12px!important;
  min-height:58px!important;margin-bottom:10px!important;padding:7px 10px!important;
}
[data-theme="crm-premium"] .flow-editor-heading{display:flex;align-items:center;gap:10px;min-width:0}
[data-theme="crm-premium"] .flow-back-link{display:grid;place-items:center;width:30px;height:30px;border:1px solid #dfe7ef;border-radius:7px;color:#526177;background:#fff;font-size:16px}
[data-theme="crm-premium"] .flow-editor-heading>div{display:grid;gap:4px;min-width:0}
[data-theme="crm-premium"] .flow-editor-heading strong{color:#172033;font-size:13px}
[data-theme="crm-premium"] .flow-editor-tabs{display:flex;align-items:center;gap:14px}
[data-theme="crm-premium"] .flow-editor-tabs :is(a,button,span){position:relative;border:0;background:transparent;padding:0 0 6px;color:#718096;font:600 8px/1 system-ui;cursor:pointer}
[data-theme="crm-premium"] .flow-editor-tabs .is-active{color:#1677ff}
[data-theme="crm-premium"] .flow-editor-tabs .is-active:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;border-radius:99px;background:#1677ff}
[data-theme="crm-premium"] .flow-editor-status{display:flex;align-items:center;gap:7px;color:#18a86f;font-size:8px}
[data-theme="crm-premium"] .flow-editor-status i{position:relative;width:26px;height:14px;border-radius:99px;background:#d8e1ea}
[data-theme="crm-premium"] .flow-editor-status i:after{content:"";position:absolute;left:2px;top:2px;width:10px;height:10px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.18)}
[data-theme="crm-premium"] .flow-editor-status i.is-active{background:#20bc78}
[data-theme="crm-premium"] .flow-editor-status i.is-active:after{left:14px}
[data-theme="crm-premium"] .flow-editor-topbar>.actions{justify-content:flex-end!important;flex-wrap:wrap!important;gap:5px!important}
[data-theme="crm-premium"] .flow-editor-topbar>.actions .btn{min-height:30px!important;padding:6px 9px!important;border-radius:7px!important;font-size:8px!important}
[data-theme="crm-premium"] .flow-editor-topbar>.actions form{display:flex;margin:0}
[data-theme="crm-premium"] .flow-editor-topbar>.actions button:disabled{opacity:.65;cursor:default}
[data-theme="crm-premium"] .flow-editor-shell{
  display:grid!important;grid-template-columns:164px minmax(0,1fr) 248px!important;grid-template-rows:46px minmax(570px,calc(100dvh - 206px))!important;
  width:100%!important;height:auto!important;min-height:616px!important;padding:0!important;overflow:hidden!important;resize:none!important;
}
[data-theme="crm-premium"] .flow-editor-shell .flow-editor-controls,
[data-theme="crm-premium"] .flow-editor-shell .flow-visual-toolbar{display:contents!important}
[data-theme="crm-premium"] .flow-editor-shell .panel-head{display:none!important}
[data-theme="crm-premium"] .flow-editor-shell .flow-palette{
  grid-column:1!important;grid-row:1/3!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:4px!important;
  min-width:0!important;max-height:none!important;padding:11px 9px!important;overflow-y:auto!important;border-right:1px solid #e2e8f0!important;background:#fbfcfe!important;
}
[data-theme="crm-premium"] .flow-palette-title{display:grid;gap:2px;padding:1px 3px 7px;margin-bottom:2px;border-bottom:1px solid #edf1f5}
[data-theme="crm-premium"] .flow-palette-title strong{color:#172033;font-size:10px}
[data-theme="crm-premium"] .flow-palette-title small{color:#8491a2;font-size:7px}
[data-theme="crm-premium"] .flow-palette-item{
  display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;align-items:center!important;justify-content:stretch!important;gap:7px!important;
  width:100%!important;min-height:31px!important;margin:0!important;padding:4px 7px!important;border:1px solid #e1e7ee!important;border-radius:7px!important;
  background:#fff!important;color:#445066!important;text-align:left!important;font-size:8px!important;box-shadow:none!important;
}
[data-theme="crm-premium"] .flow-palette-item:hover{border-color:#bad5f4!important;background:#f2f8ff!important;color:#176bc5!important}
[data-theme="crm-premium"] .flow-palette-item>span{display:grid;place-items:center;width:22px;height:22px;border-radius:6px;background:#eef6ff;color:#1677ff;font-size:9px}
[data-theme="crm-premium"] .flow-visual-toolbar>.actions{
  grid-column:2!important;grid-row:1!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;
  min-width:0!important;padding:7px 10px!important;border-bottom:1px solid #e2e8f0!important;background:#fff!important;
}
[data-theme="crm-premium"] .flow-visual-toolbar>.actions .btn{min-height:28px!important;padding:5px 8px!important;font-size:7.5px!important}
[data-theme="crm-premium"] .flow-visual-toolbar>.actions small{margin-right:auto;font-size:7px!important}
[data-theme="crm-premium"] .flow-canvas-viewport{
  grid-column:2!important;grid-row:2!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;
  border:0!important;border-radius:0!important;overflow:auto!important;background:#f8fafc!important;
}
[data-theme="crm-premium"] .flow-visual-canvas{min-width:100%!important;min-height:100%!important;background-color:#f8fafc!important;background-image:radial-gradient(#d5dde7 1px,transparent 1px)!important;background-size:18px 18px!important}
[data-theme="crm-premium"] .flow-start-node{border:1px solid #afe0bd!important;background:#edf9f0!important;color:#247b44!important;box-shadow:none!important}
[data-theme="crm-premium"] .flow-visual-node{width:210px!important;border-radius:8px!important;box-shadow:0 5px 14px rgba(30,49,78,.07)!important}
[data-theme="crm-premium"] .flow-visual-node-head{padding:9px 10px!important;border-bottom:1px solid #edf1f5!important}
[data-theme="crm-premium"] .flow-visual-node>p{padding:8px 10px!important;font-size:8.5px!important}
[data-theme="crm-premium"] .flow-properties{
  grid-column:3!important;grid-row:1/3!important;min-width:0;overflow-y:auto;border-left:1px solid #e2e8f0;background:#fbfcfe;color:#334056;
}
[data-theme="crm-premium"] .flow-properties>header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:46px;padding:8px 12px;border-bottom:1px solid #e2e8f0;background:#fff}
[data-theme="crm-premium"] .flow-properties>header>div{display:grid;gap:1px}
[data-theme="crm-premium"] .flow-properties>header strong{font-size:10px;color:#172033}
[data-theme="crm-premium"] .flow-properties>header small{font-size:7px;color:#8390a2}
[data-theme="crm-premium"] .flow-property-state{max-width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:3px 6px;border-radius:99px;background:#eef5fd;color:#1769c4;font-size:7px}
[data-theme="crm-premium"] .flow-property-empty{display:grid;place-items:center;gap:7px;padding:44px 18px;text-align:center}
[data-theme="crm-premium"] .flow-property-empty>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#edf5ff;color:#1677ff;font-size:20px}
[data-theme="crm-premium"] .flow-property-empty b{color:#273349;font-size:10px}
[data-theme="crm-premium"] .flow-property-empty p{margin:0;color:#7b889a;font-size:8px}
[data-theme="crm-premium"] .flow-property-fields{display:grid;gap:10px;padding:12px}
[data-theme="crm-premium"] .flow-property-fields[hidden],
[data-theme="crm-premium"] .flow-property-empty[hidden]{display:none!important}
[data-theme="crm-premium"] .flow-property-fields label{display:grid;gap:5px;color:#526177;font-size:8px}
[data-theme="crm-premium"] .flow-property-fields :is(input,textarea){padding:8px!important;border-color:#dfe6ee!important;border-radius:7px!important;background:#fff!important;color:#334056!important;font-size:8.5px!important}
[data-theme="crm-premium"] .flow-property-options{display:grid;gap:7px}
[data-theme="crm-premium"] .flow-property-options span{display:flex;align-items:center;gap:7px;color:#8995a5;font-size:8px}
[data-theme="crm-premium"] .flow-property-options i{position:relative;width:24px;height:13px;border-radius:99px;background:#dbe3eb}
[data-theme="crm-premium"] .flow-property-options i:after{content:"";position:absolute;left:2px;top:2px;width:9px;height:9px;border-radius:50%;background:#fff}
[data-theme="crm-premium"] .flow-property-options span.is-active{color:#2f704a}
[data-theme="crm-premium"] .flow-property-options span.is-active i{background:#25bd79}
[data-theme="crm-premium"] .flow-property-options span.is-active i:after{left:13px}
[data-theme="crm-premium"] .flow-editor-shell.controls-collapsed{grid-template-columns:0 minmax(0,1fr) 248px!important}
[data-theme="crm-premium"] .flow-editor-shell.controls-collapsed .flow-palette{visibility:hidden!important;padding:0!important;border:0!important}

@media(max-width:1050px){
  [data-theme="crm-premium"] .flow-editor-topbar{grid-template-columns:1fr auto!important}
  [data-theme="crm-premium"] .flow-editor-topbar>.actions{grid-column:1/-1!important;justify-content:flex-start!important}
  [data-theme="crm-premium"] .flow-editor-shell{grid-template-columns:148px minmax(0,1fr) 220px!important}
  body.inbox-focus-layout[data-theme="crm-premium"] .inbox-composer-options{grid-template-columns:1fr 1fr!important}
}
@media(max-width:760px){
  body.inbox-focus-layout[data-theme="crm-premium"]{overflow:auto!important}
  body.inbox-focus-layout[data-theme="crm-premium"] .topbar{height:56px!important;min-height:56px!important;padding:7px 8px!important}
  body.inbox-focus-layout[data-theme="crm-premium"] .inbox-topbar-brand{min-width:auto}
  body.inbox-focus-layout[data-theme="crm-premium"] .inbox-topbar-brand strong{display:none}
  body.inbox-focus-layout[data-theme="crm-premium"] .content{height:calc(100dvh - 56px)!important}
  body.inbox-focus-layout[data-theme="crm-premium"] .inbox-layout{grid-template-columns:1fr!important;grid-template-rows:57px minmax(0,1fr)!important}
  body.inbox-focus-layout[data-theme="crm-premium"] .inbox-channel-rail{padding:6px 8px;overflow-x:auto;overflow-y:hidden;border-right:0;border-bottom:1px solid rgba(255,255,255,.08)}
  body.inbox-focus-layout[data-theme="crm-premium"] .inbox-channel-rail>header{display:none}
  body.inbox-focus-layout[data-theme="crm-premium"] .inbox-channel-tabs{display:flex!important;min-width:max-content}
  body.inbox-focus-layout[data-theme="crm-premium"] .inbox-channel-tabs a{grid-template-columns:25px auto!important;min-height:43px!important}
  body.inbox-focus-layout[data-theme="crm-premium"] .inbox-channel-tabs a>span:nth-child(2),body.inbox-focus-layout[data-theme="crm-premium"] .inbox-channel-tabs a>b{display:none}
  body.inbox-focus-layout[data-theme="crm-premium"] .inbox-workspace,body.inbox-focus-layout[data-theme="crm-premium"] .inbox-workspace:not(.flux-split-ready){display:block!important;height:100%}
  body.inbox-focus-layout[data-theme="crm-premium"] .inbox-layout.no-selection .conversation-list{display:flex!important;height:100%!important}
  body.inbox-focus-layout[data-theme="crm-premium"] .inbox-layout.has-selection .conversation-list{display:none!important}
  body.inbox-focus-layout[data-theme="crm-premium"] .inbox-layout.no-selection .chat-panel{display:none!important}
  body.inbox-focus-layout[data-theme="crm-premium"] .inbox-layout.has-selection .chat-panel{display:flex!important;height:100%!important}
  body.inbox-focus-layout[data-theme="crm-premium"] .inbox-composer-options{grid-template-columns:1fr!important}
  [data-theme="crm-premium"] .flow-editor-topbar{display:flex!important;align-items:flex-start!important;flex-wrap:wrap!important}
  [data-theme="crm-premium"] .flow-editor-heading{width:100%}
  [data-theme="crm-premium"] .flow-editor-topbar>.actions{width:100%!important;overflow-x:auto!important;flex-wrap:nowrap!important;padding-bottom:2px}
  [data-theme="crm-premium"] .flow-editor-shell{display:block!important;min-height:640px!important;overflow:visible!important}
  [data-theme="crm-premium"] .flow-editor-shell .flow-palette{display:flex!important;flex-direction:row!important;overflow-x:auto!important;overflow-y:hidden!important;border-right:0!important;border-bottom:1px solid #e2e8f0!important}
  [data-theme="crm-premium"] .flow-palette-title{min-width:95px;border-bottom:0!important}
  [data-theme="crm-premium"] .flow-palette-item{min-width:105px!important}
  [data-theme="crm-premium"] .flow-visual-toolbar>.actions{display:flex!important;position:relative!important}
  [data-theme="crm-premium"] .flow-canvas-viewport{height:520px!important}
  [data-theme="crm-premium"] .flow-properties{border-left:0;border-top:1px solid #e2e8f0;max-height:360px}
}
