/* Camada visual isolada para impedir conflitos com o CSS legado do PainelCentral. */
:root{--rg-bg:#eceff6;--rg-paper:#fdfdfe;--rg-paper2:#f1f4fb;--rg-line:#cdd6eb;--rg-line2:#abb9de;--rg-ink:#161d2f;--rg-muted:#2e52ad;--rg-gold:#284eae;--rg-gold2:#5f81d8;--rg-green:#32865a;--rg-nav:#103936;--rg-nav2:#092b29}
html,body{min-height:100%;background:var(--rg-bg)!important;color:var(--rg-ink)!important}
.layout{display:grid!important;grid-template-columns:84px minmax(0,1fr)!important;min-height:100vh!important;background:var(--rg-bg)!important}
.sidebar{position:sticky!important;inset:0 auto auto 0!important;height:100vh!important;width:84px!important;min-width:84px!important;flex:none!important;display:flex!important;flex-direction:column!important;padding:0!important;overflow:visible!important;background:linear-gradient(180deg,var(--rg-nav),var(--rg-nav2))!important;color:#e7efeb!important;border:0!important;z-index:50!important;transition:width .22s ease,min-width .22s ease!important}
.sidebar:hover,.sidebar.open{width:252px!important;min-width:252px!important}
.sidebar-shell{height:100%;width:252px;display:flex;flex-direction:column;padding:14px 12px 16px;overflow:hidden}
.brand{height:62px;min-height:62px;padding:0 8px 12px!important;gap:13px!important;display:flex!important;align-items:center!important;color:white!important}
.brand-mark{width:38px!important;height:38px!important;min-width:38px!important;border-radius:12px!important;background:#587bd4!important;color:#163936!important;box-shadow:none!important;font-size:18px!important}
.brand-copy,.sidebar-profile-copy{opacity:0;visibility:hidden;white-space:nowrap;transition:opacity .16s ease!important}
.sidebar:hover .brand-copy,.sidebar.open .brand-copy,.sidebar:hover .sidebar-profile-copy,.sidebar.open .sidebar-profile-copy{opacity:1;visibility:visible}
.brand strong{font-size:17px!important;color:#fff!important}.brand strong span{color:#7c99e4!important}.brand small{color:#b9ceca!important;font-size:9px!important}
.menu-nav{display:flex!important;flex-direction:column!important;gap:4px!important;overflow-y:auto!important;overflow-x:hidden!important;min-height:0;scrollbar-width:thin}
.nav-title{margin:12px 8px 5px!important;padding:0 4px!important;color:#83aaa3!important;opacity:0;visibility:hidden;white-space:nowrap;font-size:9px!important;letter-spacing:1.4px!important}
.sidebar:hover .nav-title,.sidebar.open .nav-title{opacity:1;visibility:visible}
.nav-item,.menu-group summary{height:48px!important;min-height:48px!important;width:100%!important;padding:0 12px!important;display:flex!important;align-items:center!important;gap:14px!important;border:0!important;border-radius:13px!important;background:transparent!important;color:#d1e1dd!important;font-size:13px!important;font-weight:600!important;white-space:nowrap!important;overflow:hidden!important}
.nav-item:hover,.menu-group summary:hover{background:rgba(255,255,255,.09)!important;color:#fff!important}
.nav-item.active{background:#587bd5!important;color:#172f2d!important;box-shadow:0 6px 18px #0002!important}
.nav-item .menu-icon,.menu-group .menu-icon{width:21px!important;height:21px!important;min-width:21px!important;flex:none!important;color:currentColor!important}
.menu-label,.nav-count,.menu-chevron{opacity:0;visibility:hidden;white-space:nowrap;transition:opacity .15s ease!important}
.sidebar:hover .menu-label,.sidebar:hover .nav-count,.sidebar:hover .menu-chevron,.sidebar.open .menu-label,.sidebar.open .nav-count,.sidebar.open .menu-chevron{opacity:1;visibility:visible}
.nav-count{margin-left:auto!important;background:#ffffff22!important;border-radius:99px!important;padding:3px 8px!important;color:inherit!important}
.menu-group{width:100%;border:0!important}.menu-group summary{list-style:none;cursor:pointer}.menu-group summary::-webkit-details-marker{display:none}.menu-group .menu-children{display:grid;gap:4px;padding:4px 0 0 8px}.menu-group .menu-children .nav-item{padding-left:42px!important}
.sidebar-footer{position:relative!important;margin-top:auto!important;padding-top:12px!important;border-top:1px solid #ffffff18}
.sidebar-profile{height:52px!important;width:100%!important;display:flex!important;align-items:center!important;gap:12px!important;padding:6px 7px!important;background:transparent!important;color:#fff!important;border:0!important;border-radius:13px!important;text-align:left!important;cursor:pointer!important}
.sidebar-profile:hover{background:#ffffff12!important}.system-mark{width:38px!important;height:38px!important;min-width:38px!important;display:grid!important;place-items:center!important;border-radius:12px!important;background:#ffffff16!important;color:#819ee7!important;font-weight:800!important}
.sidebar-profile-copy strong{font-size:12px!important}.sidebar-profile-copy small{font-size:11px!important;color:#b5c8c3!important}
.profile-flyout[hidden]{display:none!important}.profile-flyout{position:absolute!important;left:70px!important;bottom:0!important;width:285px!important;z-index:100!important;background:#fdfdfe!important;color:#171e2f!important;border:1px solid var(--rg-line)!important;border-radius:20px!important;padding:14px!important;box-shadow:0 20px 60px #17231f30!important;display:grid!important;gap:5px!important}
.profile-flyout-head{display:grid!important;gap:4px!important;padding:5px 7px 10px!important}.profile-flyout-head strong{font-size:15px!important}.profile-flyout-head small{font-size:12px!important;color:var(--rg-muted)!important}.profile-action{display:flex!important;align-items:center!important;gap:12px!important;padding:11px 10px!important;border:0!important;border-radius:12px!important;background:transparent!important;color:#2d3b5e!important;font:inherit!important;text-align:left!important;cursor:pointer!important}.profile-action:hover{background:#ecf0f8!important}.profile-action i{width:18px;height:18px}
.main-wrap{min-width:0!important;width:100%!important;display:flex!important;flex-direction:column!important;background:var(--rg-bg)!important}
.topbar{display:none!important}
.top-location{font-size:11px!important;letter-spacing:1.2px!important;color:#3259be!important}.top-location b{color:#253f78!important}.date{font-size:12px!important;color:#3157b9!important}
main{flex:1!important;padding:18px 18px 22px!important;max-width:none!important;width:100%!important;margin:0!important}
.view.active{display:block!important}.card,.dashboard-card,.dashboard-side-card,.agenda-sidebar,.agenda-board,.agenda-detail{background:var(--rg-paper)!important;border:1px solid var(--rg-line)!important;border-radius:19px!important;box-shadow:0 7px 22px #2130570c!important}
.button{border-radius:12px!important}.button.primary{background:#496ece!important;border-color:#3961ca!important;color:#141b2b!important;box-shadow:0 5px 14px #3158ba22!important}.button.primary:hover{background:#5c7ed6!important}.button.outline,.button.ghost{background:#fdfdfe!important;border-color:#c5cee6!important;color:#2c395c!important}.text-link{font-size:12px!important;color:#284eae!important;font-weight:700!important;background:transparent!important;border:0!important;cursor:pointer}
/* Dashboard — proporções e hierarquia da referência */
.dashboard-shell{display:grid!important;grid-template-columns:minmax(0,1fr) 318px!important;gap:17px!important;align-items:stretch!important}.dashboard-main{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important;min-width:0!important}.dashboard-hero{display:grid!important;grid-template-columns:minmax(0,1fr) 430px!important;gap:24px!important;padding:24px 26px!important;min-height:270px!important;background:linear-gradient(180deg,#fbfdff,#edf3ff)!important;border:1px solid #c8d5f0!important;border-radius:18px!important;position:relative!important;overflow:hidden!important}.dashboard-hero-copy{min-width:0!important;display:flex!important;flex-direction:column!important}.dashboard-hero .eyebrow{font-size:11px!important;letter-spacing:.02em!important;color:#2d50a9!important}.dashboard-hero h1{font-size:30px!important;line-height:1.15!important;letter-spacing:-.7px!important;margin:8px 0 12px!important;color:#1e2229!important}.dashboard-live{display:inline-flex!important;align-self:flex-start!important;background:#2f63e0!important;color:white!important;border-radius:10px!important;padding:5px 10px!important;font-size:12px!important;font-weight:700!important}.dashboard-wave{height:118px!important;margin:16px 0 0!important;border:1px solid #d6e1f7!important;border-radius:16px!important;background:radial-gradient(circle at 12px 12px,rgba(47,99,224,.22) 2px,transparent 2px) 0 0/18px 18px,linear-gradient(180deg,rgba(77,114,208,.05),rgba(77,114,208,.02))!important;mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)!important}.dashboard-foot{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;margin-top:auto!important;padding-top:12px!important;border-top:1px solid #d8e3f8!important;font-size:12px!important;color:#365ebd!important}.dashboard-foot strong{font-size:18px!important;color:#234ea9!important}.dashboard-metrics{display:grid!important;grid-template-columns:1fr 1fr!important;align-content:center!important;gap:18px 24px!important}.dashboard-mini-toggle{grid-column:1/-1!important;justify-self:end!important;display:inline-flex!important;align-items:center!important;gap:9px!important;padding:7px 12px!important;border:1px solid #bfd0ef!important;border-radius:12px!important;background:#f7faff!important;color:#25479e!important;font-size:11px!important;font-weight:700!important;cursor:pointer!important}.status-dot{width:8px!important;height:8px!important;border-radius:50%!important;background:#2fa85c!important;box-shadow:0 0 0 4px rgba(47,168,92,.12)!important}.hero-metric{padding:0!important;border:0!important;display:grid!important;gap:4px!important}.hero-metric strong{font-size:38px!important;line-height:1!important;color:#234ea9!important;font-weight:600!important}.hero-metric small{font-size:11px!important;color:#2d50ab!important}
.dashboard-grid-top{display:grid!important;grid-template-columns:1fr 1fr 1fr!important;gap:16px!important}.dashboard-grid-bottom{display:grid!important;grid-template-columns:minmax(390px,.9fr) minmax(0,1.1fr)!important;gap:16px!important}.dashboard-card,.dashboard-side-card{padding:17px 18px!important;border-radius:17px!important;min-width:0!important}.dashboard-card .card-title-line,.dashboard-side-card .card-title-line{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:10px!important;margin:0 0 13px!important}.dashboard-card .card-title-line h2,.dashboard-side-card .card-title-line h2{font-size:16px!important;line-height:1.2!important;margin:0!important;font-weight:650!important;letter-spacing:-.2px!important;color:#1a2135!important}.dashboard-card .card-title-line small,.dashboard-side-card .card-title-line small{font-size:11px!important;color:#345cc4!important}.contract-counters{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:10px!important;margin:0 0 12px!important}.contract-counters div{padding:9px 10px!important;border:1px solid #d7dff1!important;border-radius:10px!important;background:#fafbfe!important}.contract-counters strong{display:block!important;font-size:24px!important;line-height:1.1!important;color:#284eae!important}.contract-counters small{font-size:10px!important;color:#3055b3!important}.contracts-chart{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:10px!important;align-items:end!important;min-height:140px!important;padding:8px 0 0!important;border-bottom:1px solid #d8e3f8!important}.contracts-col{display:grid!important;grid-template-rows:90px auto!important;gap:8px!important;align-items:end!important}.contracts-bars{height:90px!important;display:flex!important;align-items:flex-end!important;justify-content:center!important;gap:4px!important}.contracts-bar{width:10px!important;border-radius:6px 6px 0 0!important;min-height:3px!important}.contracts-bar.sent{background:#d2a949!important}.contracts-bar.signed{background:#365ebd!important}.contracts-label{display:grid!important;gap:3px!important;justify-items:center!important;font-size:10px!important;color:#365ebd!important}.contracts-axis-foot{display:flex!important;justify-content:space-between!important;align-items:center!important;margin-top:10px!important;color:#365ebd!important;font-size:11px!important}.funnel-bars{display:grid!important;gap:12px!important}.funnel-row{display:grid!important;grid-template-columns:130px minmax(50px,1fr) 32px!important;align-items:center!important;gap:9px!important;font-size:12px!important;color:#234ea9!important}.funnel-track{height:9px!important;background:#dfebfb!important;border-radius:999px!important;overflow:hidden!important}.funnel-track i{height:100%!important;display:block!important;background:linear-gradient(90deg,#2f63e0,#8fb4ff)!important;border-radius:999px!important}.funnel-row strong{font-size:11px!important;text-align:right!important;color:#263250!important}
.map-layout{display:grid!important;grid-template-columns:minmax(270px,.95fr) minmax(200px,1fr)!important;gap:18px!important;align-items:center!important}.brazil-shape{height:300px!important;position:relative!important;border:1px solid #dde8fb!important;border-radius:20px!important;background:linear-gradient(180deg,#fafdff,#eef4ff)!important;overflow:hidden!important}.brazil-shape svg{position:absolute!important;inset:10px 12px 12px!important;width:calc(100% - 24px)!important;height:calc(100% - 22px)!important}.brazil-core{position:absolute!important;left:50%!important;top:66%!important;transform:translate(-50%,-50%)!important;background:#ffffff!important;border:1px solid #cfe0fb!important;color:#234ea9!important;padding:8px 12px!important;border-radius:999px!important;font-size:11px!important;font-weight:700!important;z-index:2!important}.map-pin{position:absolute!important;display:grid!important;place-items:center!important;width:44px!important;height:44px!important;border-radius:50%!important;background:#d9e7ff!important;border:2px solid #ffffff!important;color:#173c8e!important;transform:translate(-50%,-50%) scale(var(--scale,1))!important;text-align:center!important;box-shadow:0 10px 16px rgba(35,78,169,.18)!important;z-index:3!important}.map-pin b{font-size:12px!important;line-height:1!important}.map-pin small{font-size:7px!important}.map-list{display:grid!important;gap:0!important}.map-row{display:grid!important;grid-template-columns:minmax(0,1fr) 34px 34px!important;gap:8px!important;align-items:center!important;padding:9px 0!important;border-bottom:1px solid #dde7f8!important;font-size:11px!important}.map-row span{font-weight:600!important;color:#264ba8!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.map-row strong{font-size:14px!important;color:#234ea9!important}.map-row small{text-align:right!important;color:#5678c7!important}
.process-summary{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;margin:0 -18px 12px!important;border-top:1px solid #d3daee!important;border-bottom:1px solid #d3daee!important}.process-summary div{padding:10px 12px!important;background:transparent!important;border:0!important;border-right:1px solid #d3daee!important;border-radius:0!important}.process-summary div:last-child{border:0!important}.process-summary strong{display:block!important;font-size:22px!important;font-weight:500!important;color:#1f2840!important}.process-summary small{font-size:10px!important;color:#2e52ad!important}.process-feed{display:grid!important;gap:0!important;max-height:190px!important;overflow:auto!important;color:#2e52ad!important;font-size:12px!important}.process-item{padding:10px 2px!important;border-bottom:1px solid #dfe4f2!important}.process-item strong{font-size:11px!important}.process-item p{font-size:11px!important;line-height:1.4!important}.process-item small{font-size:10px!important}
.dashboard-side{display:grid!important;align-content:start!important;gap:16px!important;min-width:0!important}.dashboard-side-card{padding:17px!important}.stack-list{font-size:12px!important}.stack-item{display:grid!important;gap:4px!important;padding:10px 0!important;border-bottom:1px solid #dfe4f2!important}.stack-item strong{font-size:12px!important}.stack-item small{font-size:10px!important;color:#335bc2!important}.areas-list{display:grid!important;gap:0!important}.area-row{display:grid!important;grid-template-columns:minmax(80px,1fr) minmax(50px,.9fr) 32px!important;gap:8px!important;align-items:center!important;padding:9px 0!important;border-bottom:1px solid #dfe4f2!important;font-size:11px!important}.area-row>div:first-child{display:grid!important;gap:3px!important}.area-row strong{font-size:11px!important}.area-row small{font-size:9px!important;color:#355ec8!important}.area-meter{height:4px!important;border-radius:0!important;background:#dfe4ee!important}.area-meter i{display:block!important;height:100%!important;background:#3156b7!important}.area-row>span{text-align:right!important;color:#2d50a9!important}.dashboard-unread-highlight{background:#f4f6fc!important}.unread-highlight-value{display:grid!important;gap:3px!important;margin:10px 0 15px!important}.unread-highlight-value strong{font-size:44px!important;color:#264cb1!important}.unread-highlight-value span{font-size:11px!important;color:#2d50aa!important}
/* CRM ocupa a área útil inteira e preserva o scroll independente de cada coluna. */
body.crm-fullscreen .main-wrap>main{max-width:none!important;width:100%!important;padding:14px 18px 18px!important;margin:0!important}body.crm-fullscreen #view-crmkanban.active{display:block!important;width:100%!important}body.crm-fullscreen #view-crmkanban .kb-heading{display:flex!important;justify-content:space-between!important;align-items:end!important;margin:0 0 14px!important}body.crm-fullscreen .kb-heading h1{font-size:34px!important;margin:5px 0!important;color:#161c2d!important}body.crm-fullscreen .kb-heading small{font-size:11px!important;color:#3156b6!important}body.crm-fullscreen .kb-toolbar{display:flex!important;align-items:center!important;gap:9px!important;margin-bottom:12px!important}body.crm-fullscreen .kb-toolbar input{max-width:360px!important;background:#fdfdfe!important;border:1px solid var(--rg-line)!important;border-radius:12px!important;padding:11px 14px!important}body.crm-fullscreen .kb-filterbar{display:flex!important;gap:9px!important;padding:10px!important;margin-bottom:12px!important;background:#f9fafd!important;border:1px solid var(--rg-line)!important;border-radius:14px!important}body.crm-fullscreen .kb-filterbar select{background:#fdfdfe!important;border:1px solid var(--rg-line)!important;border-radius:10px!important;padding:9px 12px!important}body.crm-fullscreen .kb-board{display:flex!important;align-items:stretch!important;gap:12px!important;height:calc(100dvh - 230px)!important;min-height:430px!important;padding:0 0 8px!important;overflow-x:auto!important;overflow-y:hidden!important}body.crm-fullscreen .kb-col{display:flex!important;flex:1 0 285px!important;flex-direction:column!important;width:285px!important;min-width:285px!important;min-height:0!important;padding:13px!important;border:1px solid var(--rg-line)!important;border-radius:17px!important;background:#fbfcfe!important}body.crm-fullscreen .kb-col h3{font-size:14px!important;color:#1f2941!important;padding:8px 2px 13px!important;border-bottom:2px solid var(--stage-color)!important}body.crm-fullscreen .kb-scroll{flex:1!important;min-height:0!important;overflow-y:auto!important;padding-right:3px!important}body.crm-fullscreen .kb-item{background:#fdfdfe!important;border:1px solid #d4dbec!important;border-left:4px solid var(--stage-color)!important;border-radius:14px!important;padding:13px!important;margin:9px 0!important;gap:8px!important}body.crm-fullscreen .kb-item strong{font-size:14px!important;color:#171e2f!important}body.crm-fullscreen .kb-item small{font-size:11px!important;color:#3158ba!important}body.crm-fullscreen .kb-tags{display:flex!important;flex-wrap:wrap!important;gap:6px!important}body.crm-fullscreen .kb-tags span{font-size:10px!important;border-radius:999px!important;padding:5px 8px!important;background:#ecf0f8!important;border:1px solid #d2d9ed!important;color:#2d50a9!important}body.crm-fullscreen .kb-card-footer{display:flex!important;align-items:center!important;gap:8px!important;border-top:1px solid #e0e5f2!important;padding-top:9px!important}body.crm-fullscreen .kb-item select{width:100%!important;border:1px solid #ccd4e9!important;border-radius:9px!important;background:#fdfdfe!important;padding:8px!important;font-size:11px!important}
/* Conversas: lista larga com etiquetas e metadados legíveis. */
body.chat-fullscreen .main-wrap>main{max-width:none!important;margin:0!important;padding:0!important;width:100%!important}body.chat-fullscreen #view-conversas.active{display:block!important;width:100%!important}body.chat-fullscreen #view-conversas .chat-shell{display:grid!important;grid-template-columns:400px minmax(0,1fr) 280px!important;grid-template-rows:minmax(0,1fr)!important;gap:0!important;width:100%!important;height:calc(100dvh - 68px)!important;min-height:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fbfcfe!important}body.chat-fullscreen .chat-list-panel,body.chat-fullscreen .message-panel,body.chat-fullscreen .chat-settings-panel{min-width:0!important;min-height:0!important;max-height:none!important;overflow:hidden!important;background:#fdfdfe!important;border:0!important;border-right:1px solid var(--rg-line)!important;border-radius:0!important;box-shadow:none!important}body.chat-fullscreen .chat-list-panel{display:flex!important;flex-direction:column!important;padding:18px!important}body.chat-fullscreen .chat-list-heading{min-height:52px!important;padding:0 0 14px!important;border-bottom:0!important}body.chat-fullscreen .chat-list-heading h2{font-size:28px!important;color:#181f31!important}body.chat-fullscreen .chat-list-heading small{font-size:11px!important}body.chat-fullscreen .history-status{font-size:10px!important;color:#345dc5!important;margin-bottom:10px!important}body.chat-fullscreen .chat-search-modern{display:grid!important;gap:10px!important;margin:0 0 12px!important}body.chat-fullscreen .chat-search-field{display:flex!important;align-items:center!important;gap:9px!important;padding:0 12px!important;border:1px solid var(--rg-line)!important;border-radius:13px!important;background:#fdfdfe!important}body.chat-fullscreen .chat-search-field input{height:43px!important;background:transparent!important;border:0!important;font-size:13px!important}body.chat-fullscreen .chat-filter-pills{display:flex!important;gap:6px!important;flex-wrap:wrap!important}body.chat-fullscreen .chat-filter-pills button{border:1px solid #d3daec!important;border-radius:999px!important;background:#f1f4fb!important;color:#2d50a9!important;padding:8px 10px!important;font-size:10px!important;font-weight:700!important}body.chat-fullscreen .chat-filter-pills button[aria-pressed=true]{background:#25302d!important;border-color:#25302d!important;color:#fff!important}body.chat-fullscreen .chat-list{flex:1!important;min-height:0!important;max-height:none!important;overflow:auto!important;display:grid!important;align-content:start!important;gap:8px!important}body.chat-fullscreen .chat-item-rich{display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;gap:11px!important;padding:13px!important;border:1px solid #d5dbec!important;border-radius:15px!important;background:#fdfdfe!important;text-align:left!important}body.chat-fullscreen .chat-item-rich.selected{background:#eaeef8!important;border-color:#4d72d0!important;outline:0!important}body.chat-fullscreen .chat-item-rich .avatar,body.chat-fullscreen .chat-item-rich .chat-avatar{width:46px!important;height:46px!important}body.chat-fullscreen .chat-item-top{display:flex!important;justify-content:space-between!important;gap:8px!important}body.chat-fullscreen .chat-item-rich .chat-info strong{font-size:13px!important;color:#181f31!important}body.chat-fullscreen .chat-item-rich .chat-info>small{font-size:10px!important;line-height:1.4!important;white-space:normal!important}body.chat-fullscreen .chat-tags{display:flex!important;flex-wrap:wrap!important;gap:5px!important;margin-top:9px!important}body.chat-fullscreen .chat-tags span{display:inline-flex!important;padding:4px 7px!important;border:1px solid #d3daed!important;border-radius:999px!important;background:#f2f4fb!important;font-size:9px!important;line-height:1.3!important;color:#2d50a9!important}body.chat-fullscreen .chat-tags .tag-ai{background:#edf5ed!important;color:#36784e!important;border-color:#cce1ce!important}body.chat-fullscreen .chat-tags .tag-warn{background:#f1f4fb!important;color:#214ab5!important;border-color:#beccef!important}body.chat-fullscreen .message-panel{display:flex!important;flex-direction:column!important;overflow:hidden!important}body.chat-fullscreen .conversation-heading{min-height:70px!important;padding:12px 18px!important;display:flex!important;align-items:center!important;gap:12px!important;flex-shrink:0!important;border-bottom:1px solid #d7dded!important}body.chat-fullscreen .conversation-heading h3{font-size:18px!important;color:#171e2f!important;margin:0 0 4px!important}body.chat-fullscreen .conversation-heading small{font-size:11px!important}body.chat-fullscreen .conversation-meta-bar{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;padding:10px 14px!important;background:#fdfdfe!important;border-bottom:1px solid #d7dded!important;flex-shrink:0!important}body.chat-fullscreen .conversation-meta-bar>div{display:grid!important;gap:4px!important;padding:5px 12px!important;border-right:1px solid #d7dded!important}body.chat-fullscreen .conversation-meta-bar>div:last-child{border:0!important}body.chat-fullscreen .conversation-meta-bar .meta-label{font-size:9px!important;text-transform:uppercase!important;letter-spacing:.08em!important;color:#3259bc!important}body.chat-fullscreen .conversation-meta-bar strong{font-size:12px!important;color:#212b45!important}body.chat-fullscreen .message-filter{flex-shrink:0!important;padding:9px 16px!important;border-bottom:1px solid #e0e5f2!important;background:#fdfdfe!important}body.chat-fullscreen .messages-area{flex:1!important;min-height:0!important;max-height:none!important;overflow:auto!important;padding:22px!important;background-color:#edf0f8!important;background-image:radial-gradient(#d3dbed 1px,transparent 1px)!important;background-size:20px 20px!important}body.chat-fullscreen .bubble{max-width:min(72%,650px)!important;padding:12px 15px!important;border-radius:13px!important;font-size:13px!important;background:#fff!important;border-color:#d7ddee!important;color:#171e2f!important}body.chat-fullscreen .bubble.out{background:#d5ddf2!important;border-color:#c2ceec!important}body.chat-fullscreen .compose{display:flex!important;flex-shrink:0!important;align-items:center!important;padding:11px 16px!important;gap:9px!important;border-top:1px solid #d7dded!important;background:#fdfdfe!important}body.chat-fullscreen .compose input{height:46px!important;border:1px solid #d2d8e9!important;border-radius:12px!important;background:#fff!important;font-size:13px!important}body.chat-fullscreen .compose .button{height:46px!important}body.chat-fullscreen .chat-settings-panel{display:block!important;padding:18px!important;overflow:auto!important}body.chat-fullscreen .crm-links{display:grid!important;gap:8px!important}body.chat-fullscreen .crm-links .button{width:100%!important;justify-content:center!important}body.chat-fullscreen .chat-ai-toggle{display:flex!important;justify-content:space-between!important;align-items:center!important;padding:18px 0!important;border-bottom:1px solid #e0e5f2!important;font-size:12px!important;font-weight:700!important}body.chat-fullscreen .chat-settings-panel .form-field{display:grid!important;gap:8px!important;margin-top:16px!important;font-size:11px!important}body.chat-fullscreen .chat-settings-panel select{width:100%!important;border:1px solid #ced6ea!important;border-radius:11px!important;background:#fdfdfe!important;padding:11px!important;font-size:12px!important}
/* Agenda semanal */
.agenda-shell{width:100%!important;min-width:0!important}.agenda-layout{display:grid!important;grid-template-columns:260px minmax(0,1fr) 300px!important;gap:15px!important;min-height:calc(100dvh - 112px)!important;align-items:stretch!important}.agenda-sidebar,.agenda-board,.agenda-detail{padding:17px!important;min-width:0!important}.agenda-sidebar{display:flex!important;flex-direction:column!important}.agenda-mini-month .card-title-line{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}.agenda-mini-month .card-title-line h2{font-size:16px!important;text-transform:capitalize!important;margin:0!important}.calendar-nav{display:flex!important;gap:5px!important}.calendar-nav button{width:31px!important;height:31px!important;border:1px solid var(--rg-line)!important;border-radius:9px!important;background:#fdfdfe!important;color:#2a3d6e!important}.mini-calendar-grid{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:4px!important;margin-top:13px!important;font-size:11px!important}.mini-calendar-grid>div{text-align:center!important;font-weight:700!important;color:#345cc4!important;padding:4px 0!important}.mini-day{height:31px!important;width:100%!important;border:1px solid transparent!important;border-radius:8px!important;background:transparent!important;color:#303f64!important;font-size:11px!important;cursor:pointer!important}.mini-day:hover,.mini-day.selected{background:#dde4f4!important;border-color:#5477d1!important;color:#1c377d!important}.mini-day.muted{opacity:.35!important}.agenda-sidebar-stats{display:grid!important;gap:8px!important;margin-top:22px!important;border-top:1px solid #dbe1f1!important;padding-top:16px!important;font-size:12px!important}.agenda-sidebar-stats>strong{font-size:12px!important;color:#2d50a9!important}.agenda-stat-line{display:flex!important;justify-content:space-between!important;padding:6px 0!important;color:#2d50a9!important}.agenda-stat-line b{font-size:16px!important;font-weight:500!important;color:#181f31!important}.agenda-legend{display:flex!important;flex-wrap:wrap!important;gap:6px!important;margin-top:10px!important}.ag-tag{padding:5px 8px!important;border-radius:8px!important;font-size:9px!important;border:0!important}.ag-tag.meeting{background:#d7def2!important;color:#2b4fab!important}.ag-tag.ok{background:#e5f1e5!important;color:#3b8557!important}.ag-tag.neutral{background:#f0f1f4!important;color:#2e52ad!important}.ag-tag.danger{background:#f7e5e2!important;color:#a35c50!important}.agenda-board{display:flex!important;flex-direction:column!important;overflow:hidden!important}.agenda-board-head{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:10px!important;margin-bottom:14px!important}.agenda-board-head h1{font-size:32px!important;margin:3px 0 0!important;color:#181f31!important}.agenda-board-head small{font-size:11px!important;color:#2f54b3!important}.agenda-board-actions{display:flex!important;gap:7px!important;flex-wrap:wrap!important}.agenda-week{flex:1!important;min-height:0!important;overflow:auto!important;border:1px solid #d3daee!important;border-radius:13px!important;background:#fdfdfe!important}.agenda-week-header,.agenda-week-row{display:grid!important;grid-template-columns:54px repeat(5,minmax(115px,1fr))!important}.agenda-week-header{position:sticky!important;top:0!important;z-index:2!important;background:#f0f3fa!important;border-bottom:1px solid #d3daee!important}.agenda-week-header>div{padding:11px 9px!important;border-right:1px solid #d8deed!important;font-size:11px!important;font-weight:700!important;color:#2d50a9!important}.agenda-week-row{min-height:68px!important;border-bottom:1px solid #e3e8f4!important}.agenda-hour{padding:9px 7px!important;font-size:10px!important;color:#345dc5!important;background:#fbfcfe!important;border-right:1px solid #e0e5f2!important}.agenda-cell{padding:4px!important;min-width:0!important;border-right:1px solid #e3e8f4!important;position:relative!important}.agenda-event{display:grid!important;gap:3px!important;width:100%!important;margin:2px 0!important;padding:7px!important;text-align:left!important;border:1px solid #a1b4e4!important;border-radius:8px!important;background:#dfe5f5!important;color:#1f3365!important;cursor:pointer!important}.agenda-event span{font-size:9px!important}.agenda-event strong{font-size:10px!important;line-height:1.25!important}.agenda-event.audiencia{background:#edf1f9!important;border-color:#cbd5e7!important;color:#435b82!important}.agenda-event.prazo{background:#f8e9e5!important;border-color:#e9c9c0!important;color:#8b5145!important}.agenda-detail{display:flex!important;flex-direction:column!important;gap:12px!important}.agenda-detail .card-title-line h2{font-size:15px!important;margin:0!important}.agenda-detail-list{font-size:12px!important;color:#2f54b2!important;line-height:1.6!important}.agenda-detail-item{padding:13px!important;border:1px solid #d3daee!important;border-radius:12px!important;background:#fdfdfe!important;display:grid!important;gap:5px!important}.agenda-detail-time{font-size:10px!important;color:#2d50a9!important}.agenda-detail-item strong{font-size:13px!important;color:#1a2236!important}.agenda-detail-item p{font-size:11px!important;margin:0!important}
@media(max-width:1350px){.dashboard-shell{grid-template-columns:minmax(0,1fr)!important}.dashboard-grid-top{grid-template-columns:1fr 1fr!important}.dashboard-side{grid-template-columns:repeat(3,minmax(0,1fr))!important}.agenda-layout{grid-template-columns:230px minmax(0,1fr)!important}.agenda-detail{grid-column:1/-1!important}.agenda-detail-list{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:8px!important}}
@media(max-width:1050px){.dashboard-hero{grid-template-columns:minmax(0,1fr) 300px!important}.dashboard-grid-top,.dashboard-grid-bottom{grid-template-columns:1fr!important}.chat-fullscreen .chat-shell{grid-template-columns:310px minmax(0,1fr) 240px!important}.dashboard-side{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:850px){.layout{grid-template-columns:1fr!important}.sidebar{position:fixed!important;left:0!important;top:0!important;transform:translateX(-100%)!important;width:252px!important;min-width:252px!important}.sidebar.open{transform:translateX(0)!important}.sidebar .brand-copy,.sidebar .menu-label,.sidebar .nav-count,.sidebar .nav-title,.sidebar .sidebar-profile-copy{opacity:1!important;visibility:visible!important}.topbar{padding:0 14px!important}.mobile-only{display:inline-flex!important}.dashboard-hero{grid-template-columns:1fr!important}.dashboard-metrics{grid-template-columns:repeat(2,1fr)!important}.dashboard-grid-top,.dashboard-grid-bottom{grid-template-columns:1fr!important}.dashboard-side{grid-template-columns:1fr!important}.agenda-layout{grid-template-columns:1fr!important}.agenda-detail{grid-column:auto!important}.agenda-detail-list{grid-template-columns:1fr!important}body.chat-fullscreen .chat-shell{grid-template-columns:280px minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) auto!important}body.chat-fullscreen .chat-settings-panel{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}body.crm-fullscreen .kb-board{height:auto!important;min-height:55vh!important}}
@media(max-width:600px){main{padding:12px!important}.dashboard-hero{padding:17px!important}.dashboard-hero h1{font-size:25px!important}.dashboard-metrics{gap:12px!important}.hero-metric strong{font-size:30px!important}.process-summary{grid-template-columns:repeat(2,1fr)!important}.map-layout{grid-template-columns:1fr!important}.brazil-shape{height:190px!important}body.chat-fullscreen .chat-shell{grid-template-columns:1fr!important;grid-template-rows:34dvh 60dvh auto!important;height:auto!important}body.chat-fullscreen .chat-settings-panel{grid-column:1!important;grid-template-columns:1fr!important}body.chat-fullscreen .conversation-meta-bar{grid-template-columns:1fr!important;gap:4px!important}body.chat-fullscreen .conversation-meta-bar>div{border-right:0!important;border-bottom:1px solid #dbe1f1!important}.agenda-week-header,.agenda-week-row{grid-template-columns:45px repeat(5,minmax(100px,1fr))!important}}
/* O acesso e a saída ficam no menu do perfil, não na barra superior. */
#authButton{display:none!important}
/* Identidade oficial azul e branco; navegação sem submenus. */
:root{--rg-bg:#f2f5fa;--rg-paper:#fff;--rg-paper2:#f6f8fc;--rg-line:#dce5f2;--rg-line2:#c9d8ee;--rg-ink:#18263d;--rg-muted:#64748b;--rg-gold:#315fe8;--rg-gold2:#7394f4;--rg-nav:#14223d;--rg-nav2:#101b30;--nav:#14223d;--nav-2:#101b30;--accent:#315fe8;--accent-2:#7394f4}
.sidebar{background:linear-gradient(180deg,#14223d,#101b30)!important;overflow:visible!important}
.sidebar-shell{width:100%!important;min-width:0!important;overflow:visible!important;padding:12px 10px!important;box-sizing:border-box!important}
.sidebar .menu-nav{width:100%!important;min-width:0!important;flex:1 1 auto!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:none!important;gap:3px!important;padding:0!important}
.sidebar .menu-nav::-webkit-scrollbar{display:none!important}
.sidebar .nav-item{box-sizing:border-box!important;flex:0 0 43px!important;height:43px!important;min-height:43px!important;width:100%!important;min-width:0!important;max-width:100%!important;gap:11px!important;padding:0 10px!important;color:#dce5f7!important;position:relative!important}
.sidebar .nav-item.active{background:#31558f!important;color:#fff!important;box-shadow:none!important}
.sidebar .nav-item .menu-label{min-width:0!important;flex:1!important;white-space:normal!important;line-height:1.2!important;overflow:visible!important}
.sidebar .nav-title{color:#a1b5d5!important;margin:7px 6px 2px!important;padding:0!important;flex:none!important}
.sidebar .brand-mark{background:linear-gradient(135deg,#7486fa,#3757dc)!important;color:#fff!important}
.sidebar .brand strong span{color:#9bb5ff!important}.sidebar .brand small,.sidebar .sidebar-profile-copy small{color:#a1b5d5!important}.sidebar .system-mark{color:#dce5ff!important;background:#29436d!important}
.sidebar .brand,.sidebar .sidebar-profile{min-width:0!important;overflow:hidden!important}
.sidebar .sidebar-profile-copy{white-space:normal!important;line-height:1.3!important}
@media(min-width:851px){.sidebar{width:84px!important;min-width:84px!important}.sidebar:hover,.sidebar:has(:focus-visible),.sidebar.open{width:280px!important;min-width:280px!important}.sidebar:not(:hover):not(:has(:focus-visible)):not(.open) .nav-title{display:none!important}.sidebar:not(:hover):not(:has(:focus-visible)):not(.open) .menu-label,.sidebar:not(:hover):not(:has(:focus-visible)):not(.open) .brand-copy,.sidebar:not(:hover):not(:has(:focus-visible)):not(.open) .sidebar-profile-copy{display:none!important}.sidebar:not(:hover):not(:has(:focus-visible)):not(.open) .nav-item{justify-content:center!important;padding:0!important}.sidebar:not(:hover):not(:has(:focus-visible)):not(.open) .nav-count{position:absolute!important;top:1px!important;right:1px!important;opacity:1!important;visibility:visible!important;font-size:9px!important;padding:2px 4px!important;background:#315fe8!important;color:#fff!important}.sidebar:has(:focus-visible) .menu-label,.sidebar:has(:focus-visible) .brand-copy,.sidebar:has(:focus-visible) .sidebar-profile-copy,.sidebar:has(:focus-visible) .nav-count,.sidebar:has(:focus-visible) .nav-title{opacity:1!important;visibility:visible!important;transform:none!important}}
.button.primary{background:#315fe8!important;border-color:#315fe8!important;color:#fff!important}.button.outline,.button.ghost{background:#fff!important;border-color:#d5e0f0!important;color:#263e65!important}.chat-filter-pills button[aria-pressed=true]{background:#315fe8!important;color:#fff!important;border-color:#315fe8!important}

.usage-card-grid{display:grid!important;grid-template-columns:118px minmax(0,1fr)!important;gap:16px!important;align-items:center!important}.usage-ring-wrap{display:grid!important;place-items:center!important}.usage-ring{--usage:5;position:relative!important;width:92px!important;height:92px!important;border-radius:50%!important;background:conic-gradient(#2f63e0 calc(var(--usage)*1%), #e3edff 0)!important;display:grid!important;place-items:center!important}.usage-ring::after{content:""!important;position:absolute!important;inset:11px!important;background:#fff!important;border-radius:50%!important;border:1px solid #d7e4fb!important}.usage-ring span{position:relative!important;z-index:1!important;font-size:24px!important;font-weight:700!important;color:#234ea9!important}.usage-copy h3{margin:8px 0 10px!important;font-size:24px!important;color:#14253f!important}.usage-copy p{margin:4px 0!important;font-size:13px!important;color:#4363b0!important}.usage-badge{display:inline-flex!important;align-items:center!important;gap:8px!important;padding:6px 10px!important;border-radius:999px!important;background:#eef4ff!important;color:#8b6e17!important;border:1px solid #d7e3fb!important;font-size:12px!important}.usage-card-foot{display:flex!important;justify-content:space-between!important;align-items:center!important;margin-top:12px!important;padding-top:12px!important;border-top:1px solid #dde7f8!important;color:#365ebd!important;font-size:12px!important}.dashboard-mini-toggle.off{background:#f8faff!important;color:#5c729f!important;border-color:#d7e1f3!important}.dashboard-mini-toggle.off .status-dot{background:#8aa0c9!important;box-shadow:none!important}
/* Dashboard compacto, referência de 26/11: somente azul e branco. */
.dashboard-hero{min-height:0!important;padding:18px 22px 12px!important;grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr)!important;gap:12px 24px!important;border-radius:12px!important;background:#f5f8fd!important}
.dashboard-hero h1{font-size:27px!important;margin:5px 0 9px!important}.dashboard-wave{height:120px!important;background:none!important;mask-image:none!important;border:0!important;margin:8px 0!important}.dashboard-wave svg{width:100%;height:100%;display:block}.dashboard-foot{flex-wrap:wrap!important;gap:6px 12px!important;padding-top:8px!important}.dashboard-metrics{align-content:center!important;gap:12px!important;padding-top:24px!important}.dashboard-mini-toggle{position:absolute!important;top:14px;right:18px;border-radius:8px!important}.global-switch{width:29px;height:16px;border-radius:20px;background:#315fe8;position:relative}.global-switch:after{content:'';position:absolute;width:12px;height:12px;background:white;border-radius:50%;right:2px;top:2px}.off .global-switch{background:#aab8ce}.off .global-switch:after{right:15px}.hero-metric strong{font-size:34px!important}
.dashboard-grid-top{gap:12px!important;align-items:stretch!important}.dashboard-grid-top .dashboard-card{padding:12px 14px!important;min-height:0!important}.dashboard-grid-top .card-title-line{margin-bottom:8px!important}.contract-counters{gap:8px!important;margin:0!important}.contract-counters div{background:transparent!important;border:0!important;padding:0!important;text-align:right}.contract-counters strong{font-size:21px!important}.contracts-chart{min-height:64px!important;padding:0!important;gap:5px!important}.contracts-col{grid-template-rows:54px auto!important;gap:3px!important}.contracts-bars{height:54px!important;gap:3px!important}.contracts-bar{max-height:54px!important;width:12px!important;border-radius:2px 2px 0 0!important}.contracts-bar.sent{background:#90aef0!important}.contracts-bar.signed{background:#234a9a!important}.contracts-label{font-size:9px!important;gap:0!important}.contracts-axis-foot{margin-top:5px!important;font-size:10px!important}.usage-card-grid{grid-template-columns:90px minmax(0,1fr)!important;gap:10px!important}.usage-ring{width:76px!important;height:76px!important}.usage-copy h3{font-size:16px!important;margin:5px 0!important}.usage-copy p{font-size:11px!important;margin:2px 0!important}.usage-badge{color:#315fe8!important;font-size:10px!important;padding:3px 6px!important}.usage-card-foot{margin-top:8px!important;padding-top:7px!important;font-size:10px!important}.funnel-bars{gap:7px!important}.funnel-row{grid-template-columns:minmax(75px,1fr) minmax(65px,1fr) 24px!important;font-size:10px!important}.funnel-track{height:7px!important}.map-layout{grid-template-columns:minmax(150px,1.2fr) minmax(120px,1fr)!important;gap:10px!important}.brazil-shape{height:280px!important;background:transparent!important;border:0!important;clip-path:none!important;overflow:visible!important;display:flex!important;flex-direction:column;align-items:center}.brazil-shape svg{position:static!important;width:100%!important;height:255px!important}.geo-count{font-size:8px;fill:#14223d;paint-order:stroke;stroke:#fff;stroke-width:1.5px;stroke-linejoin:round}.map-note{font-size:10px;color:#62728a;display:block;padding-top:6px}.map-list{max-height:280px;overflow:auto}.map-row{padding:5px 0!important}.map-row span{white-space:normal!important}.map-card .card-title-line{align-items:flex-start!important;flex-wrap:wrap}.dashboard-grid-bottom{gap:12px!important}
@media(max-width:650px){.dashboard-hero{grid-template-columns:1fr!important}.dashboard-mini-toggle{position:static!important}.dashboard-metrics{padding-top:0!important}.map-layout{grid-template-columns:1fr!important}}

/* Conversas simplificado */
body.chat-fullscreen #view-conversas .chat-shell{grid-template-columns:clamp(320px,25vw,420px) minmax(0,1fr) 250px!important;background:#f8faff!important}
body.chat-fullscreen .chat-list-panel{padding:18px 16px!important;background:#ffffff!important}
body.chat-fullscreen .chat-list-heading{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;padding-bottom:10px!important}
body.chat-fullscreen .chat-list-heading h2{font-size:24px!important;margin:0!important}
body.chat-fullscreen .chat-list-heading small{font-size:12px!important;color:#5e73b8!important}
body.chat-fullscreen .chat-list-actions{display:flex;align-items:center;gap:8px}
body.chat-fullscreen .chat-unread-badge{border:1px solid #d7e1fb;background:#f3f7ff;color:#315fd7;border-radius:999px;padding:8px 10px;font-size:11px;font-weight:800}
body.chat-fullscreen .chat-unread-badge span{font-size:12px}
body.chat-fullscreen .history-status{margin-bottom:14px!important}
body.chat-fullscreen .message-panel{background:#fff!important;border-right:1px solid #d7dded!important}
body.chat-fullscreen .conversation-heading{justify-content:space-between!important;align-items:center!important;padding:12px 16px!important;min-height:78px!important}
body.chat-fullscreen .conversation-heading .contact-heading-row{display:flex;align-items:center;gap:8px}
body.chat-fullscreen .conversation-heading .contact-heading-info{display:grid;gap:4px;min-width:0}
body.chat-fullscreen .conversation-heading .contact-heading-info h3{font-size:16px!important;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.chat-fullscreen .conversation-heading .contact-heading-info small{font-size:11px!important;color:#6f7fa8!important}
.contact-edit-icon{height:34px!important;width:34px!important;padding:0!important;border-radius:10px!important}
.conversation-header-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
.conversation-status-pill{display:inline-flex;align-items:center;height:34px;padding:0 12px;border-radius:999px;font-size:12px;font-weight:700;border:1px solid #dae3fb}
.conversation-status-pill.ai{background:#eff5ff;color:#315fd7}
.conversation-status-pill.human{background:#fff5e6;color:#9b6d00}
.icon-only{width:36px;height:36px;padding:0!important;display:inline-grid!important;place-items:center;border-radius:12px!important}
.whatsapp-launch{width:100%;justify-content:center;gap:8px}
.chat-settings-panel{padding:18px 16px!important;background:#fff!important}
.chat-settings-panel.no-selection{opacity:1!important}
.chat-ai-toggle{display:flex;align-items:center;justify-content:space-between;margin:18px 0 20px;padding-bottom:14px;border-bottom:1px solid #e7ecfa}
.chat-ai-toggle span{font-size:14px;font-weight:700;color:#243b76}
.chat-switch{position:relative;width:50px;height:28px;border-radius:999px;background:#cfd8ee;display:inline-block}
.chat-ai-toggle input{position:absolute;opacity:0;pointer-events:none}
.chat-ai-toggle input:checked + .chat-switch{background:#28b46c}
.chat-switch::after{content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:transform .2s ease}
.chat-ai-toggle input:checked + .chat-switch::after{transform:translateX(22px)}
body.chat-fullscreen .messages-area{padding:18px 20px 88px!important;background-color:#f4f7ff!important;background-image:radial-gradient(#d9e2f8 1px,transparent 1px)!important;background-size:18px 18px!important}
body.chat-fullscreen .compose{position:relative;padding:12px 14px!important;gap:10px!important;background:#fff!important}
body.chat-fullscreen .compose input{height:48px!important;border-radius:14px!important}
body.chat-fullscreen .compose .button.primary{border-radius:14px!important;padding:0 18px!important;height:48px!important}
.contact-modal-tools{margin-bottom:14px;display:flex;justify-content:flex-end}
.wa-open-chooser{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:18px}
.wa-open-chooser .button.large{display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px}
@media(max-width:1100px){body.chat-fullscreen #view-conversas .chat-shell{grid-template-columns:320px minmax(0,1fr)!important}body.chat-fullscreen .chat-settings-panel{display:none!important}}


/* CORREÇÃO DEFINITIVA — Conversas sem painel lateral direito. */
body.chat-fullscreen #view-conversas,
body.chat-fullscreen #view-conversas.active{
  display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
}
body.chat-fullscreen .main-wrap,
body.chat-fullscreen .main-wrap>main{
  width:100%!important;max-width:none!important;margin:0!important;padding:0!important;
}
body.chat-fullscreen #view-conversas .chat-shell{
  display:grid!important;
  grid-template-columns:clamp(320px,26vw,430px) minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr)!important;
  width:100%!important;max-width:none!important;
  height:calc(100dvh - 76px)!important;
  min-height:0!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  overflow:hidden!important;background:#fff!important;
}
body.chat-fullscreen #view-conversas .chat-list-panel,
body.chat-fullscreen #view-conversas .message-panel{
  display:flex!important;flex-direction:column!important;min-width:0!important;
  min-height:0!important;height:100%!important;max-height:none!important;overflow:hidden!important;
  border-radius:0!important;
}
body.chat-fullscreen #view-conversas .chat-list-panel{grid-column:1!important;grid-row:1!important;border-right:1px solid #dce5f5!important}
body.chat-fullscreen #view-conversas .message-panel{grid-column:2!important;grid-row:1!important;width:100%!important;border-right:0!important}
body.chat-fullscreen #view-conversas #chatSide{display:none!important}
body.chat-fullscreen #view-conversas .chat-list{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important}
body.chat-fullscreen #view-conversas .messages-area{flex:1 1 auto!important;min-height:0!important;max-height:none!important;height:auto!important;overflow-y:auto!important}
body.chat-fullscreen #view-conversas .conversation-heading{flex:0 0 auto!important}
body.chat-fullscreen #view-conversas .compose{flex:0 0 auto!important;margin:0!important}
@media(max-width:760px){
 body.chat-fullscreen #view-conversas .chat-shell{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(150px,30dvh) minmax(0,1fr)!important;height:calc(100dvh - var(--topbar-height, 4px))!important}
 body.chat-fullscreen #view-conversas .chat-list-panel{grid-column:1!important;grid-row:1!important;border-right:0!important;border-bottom:1px solid #dce5f5!important}
 body.chat-fullscreen #view-conversas .message-panel{grid-column:1!important;grid-row:2!important}
}

/* Ajuste final da tela Conversas — referência visual 26/11: lista limpa + conversa ampla. */
@media (min-width: 761px) {
  body.chat-fullscreen .topbar { display:none !important; }
  body.chat-fullscreen .main-wrap { height:100dvh !important; min-height:0 !important; overflow:hidden !important; }
  body.chat-fullscreen .main-wrap > main { height:100dvh !important; min-height:0 !important; flex:1 1 auto !important; overflow:hidden !important; }
  body.chat-fullscreen #view-conversas,
  body.chat-fullscreen #view-conversas.active { height:100% !important; min-height:0 !important; overflow:hidden !important; }
  body.chat-fullscreen #view-conversas .chat-shell {
    display:grid !important;
    grid-template-columns:410px minmax(0,1fr) !important;
    grid-template-rows:minmax(0,1fr) !important;
    width:100% !important; height:100dvh !important; min-height:0 !important;
    margin:0 !important; padding:0 !important; gap:0 !important;
    overflow:hidden !important; background:#fff !important;
  }
  body.chat-fullscreen #view-conversas .chat-list-panel {
    grid-column:1 !important; grid-row:1 !important; height:100% !important;
    min-height:0 !important; padding:20px 18px 0 !important;
    border:0 !important; border-right:1px solid #dce4f3 !important;
    border-radius:0 !important; box-shadow:none !important; background:#fff !important;
  }
  body.chat-fullscreen #view-conversas .message-panel {
    grid-column:2 !important; grid-row:1 !important; display:flex !important;
    flex-direction:column !important; width:100% !important; height:100% !important;
    min-width:0 !important; min-height:0 !important; overflow:hidden !important;
    border:0 !important; border-radius:0 !important; box-shadow:none !important;
    background:#fff !important;
  }
  body.chat-fullscreen #view-conversas #chatSide { display:none !important; }
  body.chat-fullscreen #view-conversas .chat-list-heading { padding:0 0 12px !important; min-height:48px !important; }
  body.chat-fullscreen #view-conversas .chat-list-heading h2 { font-size:25px !important; letter-spacing:-.04em !important; }
  body.chat-fullscreen #view-conversas .history-status { margin:0 0 12px !important; font-size:10px !important; }
  body.chat-fullscreen #view-conversas .chat-search-modern { margin:8px 0 12px !important; gap:10px !important; }
  body.chat-fullscreen #view-conversas .chat-search-field { height:44px !important; border-radius:13px !important; background:#fff !important; border:1px solid #d8e1f1 !important; }
  body.chat-fullscreen #view-conversas .chat-search-field input { height:42px !important; font-size:13px !important; }
  body.chat-fullscreen #view-conversas .chat-filter-pills { gap:7px !important; flex-wrap:nowrap !important; }
  body.chat-fullscreen #view-conversas .chat-filter-pills button { padding:8px 11px !important; font-size:10px !important; white-space:nowrap !important; }
  body.chat-fullscreen #view-conversas .chat-list {
    display:block !important; flex:1 1 auto !important; min-height:0 !important;
    max-height:none !important; overflow-y:auto !important; padding:0 !important;
    margin:4px -18px 0 !important; border-top:1px solid #e5eaf3 !important;
  }
  body.chat-fullscreen #view-conversas .chat-item-rich {
    display:grid !important; grid-template-columns:48px minmax(0,1fr) !important;
    gap:12px !important; width:100% !important; min-height:104px !important;
    padding:16px 18px !important; border:0 !important;
    border-bottom:1px solid #e5eaf3 !important; border-radius:0 !important;
    background:#fff !important; text-align:left !important; outline:0 !important;
  }
  body.chat-fullscreen #view-conversas .chat-item-rich.selected { background:#f1f5ff !important; box-shadow:inset 3px 0 #315fe8 !important; }
  body.chat-fullscreen #view-conversas .chat-item-rich:hover { background:#f7f9fe !important; }
  body.chat-fullscreen #view-conversas .chat-item-rich .avatar,
  body.chat-fullscreen #view-conversas .chat-item-rich .chat-avatar { width:48px !important; height:48px !important; align-self:center !important; }
  body.chat-fullscreen #view-conversas .chat-item-rich .chat-info strong { font-size:14px !important; color:#17233b !important; }
  body.chat-fullscreen #view-conversas .chat-item-rich .chat-info>small { font-size:12px !important; line-height:1.45 !important; color:#71809a !important; margin-top:7px !important; }
  body.chat-fullscreen #view-conversas .chat-tags { gap:6px !important; margin-top:9px !important; }
  body.chat-fullscreen #view-conversas .chat-tags span { padding:4px 8px !important; font-size:10px !important; border-radius:8px !important; }
  body.chat-fullscreen #view-conversas .conversation-heading {
    display:flex !important; flex:0 0 76px !important; min-height:76px !important;
    padding:12px 20px !important; border-bottom:1px solid #e3e8f2 !important;
    background:#fff !important;
  }
  body.chat-fullscreen #view-conversas .conversation-heading h3 { font-size:17px !important; }
  body.chat-fullscreen #view-conversas .conversation-meta-bar {
    display:grid !important; grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    flex:0 0 auto !important; gap:0 !important; padding:0 !important;
    min-height:60px !important; border-bottom:1px solid #e1e7f1 !important;
    background:#fff !important;
  }
  body.chat-fullscreen #view-conversas .conversation-meta-bar[hidden] { display:grid !important; }
  body.chat-fullscreen #view-conversas .conversation-meta-bar>div {
    display:flex !important; flex-direction:column !important; justify-content:center !important;
    gap:5px !important; min-width:0 !important; padding:8px 16px !important;
    border:0 !important; border-right:1px solid #e5eaf2 !important; border-radius:0 !important;
    background:#fff !important;
  }
  body.chat-fullscreen #view-conversas .conversation-meta-bar>div:last-child { border-right:0 !important; }
  body.chat-fullscreen #view-conversas .conversation-meta-bar .meta-label { margin:0 !important; font-size:10px !important; color:#71809a !important; letter-spacing:.04em !important; }
  body.chat-fullscreen #view-conversas .conversation-meta-bar strong { font-size:13px !important; color:#243653 !important; }
  body.chat-fullscreen #view-conversas .messages-area {
    flex:1 1 auto !important; min-height:0 !important; height:auto !important;
    max-height:none !important; overflow-y:auto !important; padding:22px 24px !important;
    background-color:#f5f8ff !important;
    background-image:radial-gradient(#d8e2f7 1px,transparent 1px) !important;
    background-size:18px 18px !important;
  }
  body.chat-fullscreen #view-conversas .compose { flex:0 0 auto !important; margin:0 !important; padding:12px 16px !important; background:#fff !important; border-top:1px solid #e1e7f1 !important; }
  body.chat-fullscreen #view-conversas .compose input { height:46px !important; }
}
@media (max-width:760px) {
  body.chat-fullscreen .topbar { display:none !important; }
  body.chat-fullscreen .main-wrap, body.chat-fullscreen .main-wrap>main { height:100dvh !important; min-height:0 !important; padding:0 !important; overflow:hidden !important; }
  body.chat-fullscreen #view-conversas.active { height:100dvh !important; overflow:hidden !important; }
  body.chat-fullscreen #view-conversas .chat-shell { height:100dvh !important; min-height:0 !important; grid-template-columns:minmax(0,1fr) !important; grid-template-rows:34dvh minmax(0,1fr) !important; }
  body.chat-fullscreen #view-conversas .chat-list-panel { grid-column:1 !important; grid-row:1 !important; padding:10px 12px 0 !important; }
  body.chat-fullscreen #view-conversas .message-panel { grid-column:1 !important; grid-row:2 !important; }
  body.chat-fullscreen #view-conversas .conversation-meta-bar { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  body.chat-fullscreen #view-conversas .conversation-meta-bar>div { padding:6px 10px !important; }
}
/* CRM: toolbar compacta e filtros sob demanda */
body.crm-fullscreen .kb-toolbar{justify-content:flex-start!important;flex-wrap:wrap!important;gap:8px!important}
body.crm-fullscreen .kb-toolbar input{flex:0 1 380px!important;margin:0!important}
body.crm-fullscreen .kb-filterbar[hidden],body.crm-fullscreen .kb-toolbar [hidden]{display:none!important}
body.crm-fullscreen .kb-filterbar{justify-content:flex-start!important;flex-wrap:wrap!important}
body.crm-fullscreen .kb-filterbar select{flex:0 1 auto!important;width:auto!important;min-width:155px!important}
body.crm-fullscreen .kb-col{border-radius:5px!important;background:#eef2f8!important;box-shadow:none!important}
body.crm-fullscreen .kb-item{padding:10px!important;margin:6px 0!important;border-radius:10px!important;gap:5px!important}
body.crm-fullscreen .kb-board{height:calc(100dvh - 145px)!important;min-height:0!important}
body.crm-fullscreen .kb-filterbar:not([hidden]) + .kb-board{height:calc(100dvh - 210px)!important}
/* Agenda: grade contínua, navegação e formulário */
#view-agenda .agenda-v2{display:grid!important;grid-template-columns:240px minmax(0,1fr) 280px!important;gap:0!important;min-height:calc(100dvh - 36px)!important;background:#fff;border:1px solid #dbe3f0;border-radius:8px;overflow:hidden}
#view-agenda .agenda-v2>*{padding:18px!important;min-width:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important}
#view-agenda .agenda-v2 .agenda-sidebar{border-right:1px solid #dbe3f0!important}
#view-agenda .agenda-v2 .agenda-detail{border-left:1px solid #dbe3f0!important}
.agenda-v2 .agenda-board-head{flex-wrap:wrap!important}.agenda-v2 .agenda-board-actions{align-items:center!important;gap:5px!important}
.agenda-modes{display:inline-flex;border:1px solid #d7e1f1;border-radius:6px;overflow:hidden}.agenda-modes button{padding:8px 10px;border:0;background:#f4f7fc;color:#243c6a;cursor:pointer}.agenda-modes button[aria-pressed=true]{background:#dce8ff;font-weight:700}
.agenda-v2 .agenda-week{border-radius:0!important;overflow:auto!important;max-height:calc(100dvh - 145px)}
.agenda-v2 .agenda-week-header,.agenda-v2 .agenda-week-row{display:grid!important;grid-template-columns:54px repeat(var(--agenda-days),minmax(95px,1fr))!important}
.agenda-v2 .agenda-week-row{min-height:64px!important}.agenda-v2 .all-day{min-height:34px!important}.agenda-v2 .agenda-cell{cursor:pointer;padding:3px!important}.agenda-v2 .selected-day{background:#e7efff!important}
.agenda-v2 .agenda-event{display:block!important;width:100%;border:1px solid #c7d7f3!important;border-left:3px solid #315fe8!important;border-radius:3px!important;background:#f2f6ff!important;color:#233e70!important;text-align:left;padding:5px!important;margin:2px 0!important;overflow-wrap:anywhere;font-size:12px!important;cursor:pointer}.agenda-v2 .agenda-event.Confirmado{border-left-color:#24966a!important}.agenda-v2 .agenda-event.Cancelado{border-left-color:#c85b5b!important;opacity:.65}.agenda-v2 .agenda-event.Realizado{border-left-color:#75869f!important}.agenda-v2 .agenda-event.chosen{outline:1px solid #315fe8}
.agenda-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid #dbe3f0;border-left:1px solid #dbe3f0;min-height:65vh}.month-head,.month-cell{border-right:1px solid #dbe3f0;border-bottom:1px solid #dbe3f0;padding:7px;min-width:0}.month-head{background:#f3f6fb;font-size:12px}.month-cell{min-height:95px}.month-cell.muted{background:#f7f9fc}.month-date{border:0;background:none;color:#3158a0;cursor:pointer}.mini-day.has-events:after{content:'•';display:block;color:#315fe8;line-height:5px}.agenda-selected dl{display:grid;grid-template-columns:auto 1fr;gap:12px;font-size:13px}.agenda-selected dd{text-align:right;margin:0}.agenda-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.agenda-dialog{width:min(460px,92vw);border:1px solid #d4deef;border-radius:14px;padding:24px;background:white;color:#182a48;box-shadow:0 16px 70px #14223d44}.agenda-dialog::backdrop{background:#14223d99}.agenda-dialog form{display:grid;gap:15px}.agenda-dialog label{display:grid;gap:6px;font-size:14px}.agenda-dialog input,.agenda-dialog select,.agenda-dialog textarea{width:100%;padding:10px;border:1px solid #cbd8ef;border-radius:7px;font:inherit}.agenda-error{color:#a52b37;margin:0}.agenda-dialog h2{font-size:20px;margin:0}
@media(max-width:1100px){#view-agenda .agenda-v2{grid-template-columns:200px minmax(0,1fr)!important}#view-agenda .agenda-detail{grid-column:1/-1}}@media(max-width:700px){#view-agenda .agenda-v2{grid-template-columns:1fr!important}.agenda-month-grid{overflow:auto;grid-template-columns:repeat(7,minmax(75px,1fr))}}

/* Dashboard analítico — referência visual solicitada em 27/11/2026 */
body:has(#view-dashboard.active) .main-wrap{background:#f3ecdf}
body:has(#view-dashboard.active) .topbar{display:none}
body:has(#view-dashboard.active) .main-wrap>main{padding:28px clamp(22px,4vw,64px) 48px;background:#f3ecdf;min-height:100dvh}
#view-dashboard.active{width:100%;max-width:none;margin:0;padding:0}
.dashboard-redesign{width:min(100%,1500px);margin:0 auto;display:grid;gap:18px;color:#171717}
.dashboard-redesign-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:2px 4px 8px}
.dashboard-greeting{font-size:14px;color:#75675b;margin-bottom:5px}
.dashboard-redesign-head h1{margin:0;font-family:Georgia,'Times New Roman',serif;font-size:clamp(26px,2.1vw,34px);line-height:1.15;letter-spacing:-.035em;color:#241a18}
.dashboard-head-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.dashboard-range,.dashboard-ai-control{height:42px;display:flex;align-items:center;padding:4px;border:1px solid #e9dfd1;border-radius:999px;background:#fff;box-shadow:0 2px 7px #2b1b1208}
.dashboard-range button{height:32px;padding:0 16px;border:0;border-radius:999px;background:transparent;color:#4d4039;font-size:13px;cursor:pointer}
.dashboard-range button.active{background:#702333;color:#fff;font-weight:700;box-shadow:0 2px 5px #70233330}
.dashboard-ai-control{gap:9px;padding:4px 10px 4px 12px;color:#251b19;font-size:13px;font-weight:700;cursor:pointer}
.dashboard-ai-control .status-dot{width:9px;height:9px;background:#2db66b;box-shadow:0 0 0 4px #2db66b20}
.dashboard-ai-control.off .status-dot{background:#aab2bd;box-shadow:none}
.dashboard-ai-control .global-switch{position:relative;width:38px;height:22px;border-radius:999px;background:#702333;transition:background .2s}
.dashboard-ai-control .global-switch:after{content:'';position:absolute;top:3px;right:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .2s}
.dashboard-ai-control.off .global-switch{background:#c9c2ba}
.dashboard-ai-control.off .global-switch:after{transform:translateX(-16px)}
.dashboard-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.dashboard-kpi{min-width:0;min-height:178px;padding:20px 22px;border:1px solid #e8dfd3;border-radius:20px;background:#fff;box-shadow:0 8px 22px #3524170d;display:flex;flex-direction:column;align-items:flex-start}
.dashboard-kpi .kpi-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:#f5e9e9;color:#702333;margin-bottom:14px}
.dashboard-kpi .kpi-icon svg{width:20px;height:20px}
.dashboard-kpi>small{font-size:13px;color:#54443d}
.dashboard-kpi>strong{font-size:38px;line-height:1.1;font-weight:750;letter-spacing:-.04em;color:#151515;margin:5px 0}
.dashboard-kpi>p{margin:auto 0 0;font-size:12px;color:#84766d;line-height:1.4}
.dashboard-kpi-accent{background:linear-gradient(145deg,#873143,#48131d);border-color:#702333;color:#fff}
.dashboard-kpi-accent .kpi-icon{background:#ffffff20;color:#f2d5a4}
.dashboard-kpi-accent>small,.dashboard-kpi-accent>p{color:#f3dfe0}
.dashboard-kpi-accent>strong{color:#fff}
.dashboard-analytics-row{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(340px,.95fr);gap:18px;align-items:stretch}
.dashboard-panel{min-width:0;padding:24px;border:1px solid #e8dfd3;border-radius:21px;background:#fff;box-shadow:0 8px 22px #3524170d}
.dashboard-panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.dashboard-panel-heading h2{margin:0;color:#1e1715;font-size:18px;letter-spacing:-.025em}
.dashboard-panel-heading p{margin:6px 0 0;color:#83766f;font-size:12px;line-height:1.5}
.dashboard-period-caption{color:#927f73;font-size:11px;white-space:nowrap;padding-top:4px}
.dashboard-text-link{padding:0;border:0;background:transparent;color:#702333;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer}
.dashboard-chart-stats{display:flex;gap:34px;margin:24px 0 12px}
.dashboard-chart-stats>div{display:grid;gap:4px}
.dashboard-chart-stats strong{font-size:25px;line-height:1;color:#1e1715}
.dashboard-chart-stats small{font-size:11px;color:#83766f}
.dashboard-bar-chart{height:235px;display:flex;align-items:stretch;gap:clamp(3px,1vw,12px);padding:12px 4px 0;border-bottom:1px solid #eee4d8;background:repeating-linear-gradient(to bottom,transparent 0,transparent 24.5%,#eee5db 25%,transparent 25.5%)}
.dashboard-bar-slot{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:8px}
.dashboard-bar-area{height:100%;width:100%;display:flex;align-items:flex-end;justify-content:center}
.dashboard-bar-area i{display:block;width:min(58%,18px);min-width:5px;border-radius:7px 7px 2px 2px;background:#d9c9b9;transition:height .25s ease}
.dashboard-bar-area i.has-value{background:linear-gradient(180deg,#8a3446,#4b1420)}
.dashboard-bar-slot small{height:15px;font-size:10px;color:#83766f;white-space:nowrap}
.dashboard-chart-legend{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;color:#8a786b;font-size:11px}
.dashboard-chart-legend span{display:flex;align-items:center;gap:8px}
.dashboard-chart-legend i{width:10px;height:10px;border-radius:3px;background:#702333}
.dashboard-funnel{display:grid;gap:27px;margin-top:30px}
.dashboard-funnel .funnel-row{display:grid;grid-template-columns:minmax(100px,1fr) minmax(70px,2fr) 28px;align-items:center;gap:12px}
.dashboard-funnel .funnel-row>span{font-size:12px;color:#302421}
.dashboard-funnel .funnel-row>strong{font-size:16px;text-align:right;color:#1c1715}
.dashboard-funnel .funnel-track{height:12px;border-radius:999px;background:#f4eee5;overflow:hidden}
.dashboard-funnel .funnel-track i{display:block;height:100%;min-width:0;border-radius:999px;background:linear-gradient(90deg,#702333,#9a4c5a)}
.dashboard-lower-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:stretch}
.dashboard-map-usage-row{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:stretch}
.dashboard-right-stack{display:grid;grid-template-rows:auto minmax(0,1fr);gap:18px;min-width:0}
.dashboard-usage-panel{min-height:150px}
.dashboard-process-panel{min-height:0}
.dashboard-process-panel .process-feed{max-height:190px}
.dashboard-map-panel .map-layout{grid-template-columns:minmax(150px,.85fr) minmax(180px,1fr);gap:14px;margin-top:18px;min-height:280px}
.dashboard-map-panel .brazil-shape{min-height:260px}
.dashboard-map-panel .map-list{max-height:290px;overflow:auto;padding-right:4px}
.dashboard-map-panel .map-row{padding:8px 0;border-bottom:1px solid #eee5db;font-size:11px}
.dashboard-map-panel .map-row strong{font-size:14px;color:#702333}
.dashboard-process-panel .process-summary{margin:20px -24px 0;padding:0 24px 16px;border-bottom:1px solid #eee5db}
.dashboard-process-panel .process-summary>div{border-right:1px solid #e8dfd3}
.dashboard-process-panel .process-summary strong{color:#211816}
.dashboard-process-panel .process-feed{max-height:290px;overflow:auto;margin-top:8px;padding-right:4px}
.dashboard-process-panel .process-item{padding:13px 0;border-bottom:1px solid #eee5db}
.dashboard-process-panel .process-item strong{color:#702333;font-size:12px}
.dashboard-process-panel .process-item p{margin:6px 0;color:#796b63;font-size:12px;line-height:1.5}
.dashboard-process-panel .process-item small{font-size:10px;color:#98877b}
.dashboard-usage-content{display:flex;align-items:center;gap:14px;margin-top:20px}
.dashboard-usage-content .kpi-icon{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;border-radius:13px;background:#f5e9e9;color:#702333}
.dashboard-usage-content>div{flex:1;min-width:0}
.dashboard-usage-content strong{font-size:13px;color:#261b18}
.dashboard-usage-content p{font-size:11px;color:#83766f;line-height:1.5;margin:5px 0 0}
.dashboard-usage-content .button{white-space:nowrap}
@media(max-width:1100px){.dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-analytics-row,.dashboard-lower-row,.dashboard-map-usage-row{grid-template-columns:1fr}.dashboard-funnel{gap:20px}.dashboard-map-panel .map-layout{grid-template-columns:minmax(130px,.7fr) minmax(180px,1fr)}}
@media(max-width:700px){body:has(#view-dashboard.active) .main-wrap>main{padding:18px 12px 32px}.dashboard-redesign{gap:12px}.dashboard-redesign-head{align-items:flex-start;flex-direction:column}.dashboard-head-actions{width:100%;justify-content:space-between}.dashboard-kpis{gap:10px}.dashboard-kpi{min-height:150px;padding:15px;border-radius:16px}.dashboard-kpi>strong{font-size:30px}.dashboard-kpi .kpi-icon{width:34px;height:34px;margin-bottom:10px}.dashboard-panel{padding:17px;border-radius:17px}.dashboard-panel-heading h2{font-size:16px}.dashboard-chart-stats{gap:20px;margin-top:20px}.dashboard-bar-chart{height:180px;gap:3px}.dashboard-lower-row,.dashboard-map-usage-row{grid-template-columns:1fr}.dashboard-right-stack{grid-template-rows:auto auto}.dashboard-map-panel .map-layout{grid-template-columns:1fr 1fr;min-height:220px}.dashboard-map-panel .brazil-shape{min-height:220px}.dashboard-process-panel .process-summary{margin-left:-17px;margin-right:-17px;padding-left:17px;padding-right:17px;grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-funnel{gap:18px}.dashboard-funnel .funnel-row{grid-template-columns:105px minmax(50px,1fr) 24px;gap:8px}.dashboard-usage-content{align-items:flex-start;flex-wrap:wrap}.dashboard-usage-content .button{margin-left:58px}}
.dashboard-bar-area{flex:1 1 auto;min-height:0}
.dashboard-map-panel .brazil-shape{height:260px}

/* Dashboard: identidade azul e funil compacto conforme referências de 27/11/2026 */
body:has(#view-dashboard.active) .main-wrap,
body:has(#view-dashboard.active) .main-wrap>main{background:#edf3fa!important}
.dashboard-redesign{color:#17243b}
.dashboard-greeting{color:#526b8c}
.dashboard-redesign-head h1{color:#17243b}
.dashboard-range,.dashboard-ai-control{border-color:#d9e4f2}
.dashboard-range button{color:#365578}
.dashboard-range button.active{background:#244d7e;color:#fff;box-shadow:0 2px 5px #244d7e30}
.dashboard-ai-control{color:#203b5d}
.dashboard-ai-control .global-switch{background:#244d7e}
.dashboard-kpi{border-color:#d9e4f1;box-shadow:0 8px 22px #183b6410}
.dashboard-kpi .kpi-icon,.dashboard-usage-content .kpi-icon{background:#eaf1f9;color:#285987}
.dashboard-kpi>small{color:#526b8c}
.dashboard-kpi>strong{color:#172b45}
.dashboard-kpi>p{color:#71839b}
.dashboard-kpi-accent{background:linear-gradient(145deg,#2d5b88,#173653);border-color:#244d7e;color:#fff}
.dashboard-kpi-accent .kpi-icon{background:#ffffff20;color:#d9eaff}
.dashboard-kpi-accent>small,.dashboard-kpi-accent>p{color:#e1edf9}
.dashboard-kpi-accent>strong{color:#fff}
.dashboard-panel{border-color:#d9e4f1;box-shadow:0 8px 22px #183b640c}
.dashboard-panel-heading h2{color:#17243b}
.dashboard-panel-heading p,.dashboard-period-caption{color:#71839b}
.dashboard-text-link{color:#285987}
.dashboard-chart-stats strong{color:#172b45}
.dashboard-chart-stats small,.dashboard-bar-slot small,.dashboard-chart-legend{color:#71839b}
.dashboard-bar-chart{border-bottom-color:#d9e4f1;background:repeating-linear-gradient(to bottom,transparent 0,transparent 24.5%,#dce6f1 25%,transparent 25.5%)}
.dashboard-bar-area i{background:#d7e3f0}
.dashboard-bar-area i.has-value{background:linear-gradient(180deg,#376b9e,#1d466e)}
.dashboard-chart-legend i{background:#376b9e}
.dashboard-funnel{display:grid;gap:25px;margin-top:28px}
.dashboard-funnel .funnel-row{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;align-items:stretch}
.dashboard-funnel .funnel-row-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.dashboard-funnel .funnel-row-heading>span{font-size:13px;color:#17243b}
.dashboard-funnel .funnel-row-heading>strong{font-size:20px;line-height:1;color:#17243b;text-align:right}
.dashboard-funnel .funnel-row>small{font-size:11px;color:#71839b;margin-top:-4px}
.dashboard-funnel .funnel-track{height:12px;border-radius:999px;background:#eaf1f8;overflow:hidden}
.dashboard-funnel .funnel-track i{display:block;height:100%;min-width:0;border-radius:999px;background:#477baa}
.dashboard-usage-content .kpi-icon{background:#eaf1f9;color:#285987}
.dashboard-usage-content strong{color:#172b45}
.dashboard-usage-content p{color:#71839b}
.dashboard-map-panel .map-row{border-bottom-color:#dce6f1}
.dashboard-map-panel .map-row strong{color:#285987}
.dashboard-process-panel .process-summary{border-bottom-color:#dce6f1}
.dashboard-process-panel .process-summary>div{border-right-color:#dce6f1}
.dashboard-process-panel .process-summary strong{color:#172b45}
.dashboard-process-panel .process-item{border-bottom-color:#dce6f1}
.dashboard-process-panel .process-item strong{color:#285987}
.dashboard-process-panel .process-item p{color:#71839b}
.dashboard-process-panel .process-item small{color:#8b9bb0}
.dashboard-quick-link-panel{min-height:150px}
.dashboard-quick-link-panel .dashboard-usage-content{margin-top:20px}
.dashboard-quick-link-panel .dashboard-usage-content .button{flex:none}
@media(max-width:700px){.dashboard-funnel{gap:20px}.dashboard-funnel .funnel-row-heading>strong{font-size:18px}.dashboard-quick-link-panel .dashboard-usage-content{align-items:center}.dashboard-quick-link-panel .dashboard-usage-content .button{margin-left:58px}}


/* Conversas — dimensões e tipografia conforme referências enviadas em 27/11/2026 */
@media (min-width: 761px) {
  body.chat-fullscreen #view-conversas .chat-shell {
    grid-template-columns: clamp(400px, 31.6vw, 460px) minmax(0, 1fr) !important;
  }
  body.chat-fullscreen #view-conversas .chat-list-panel {
    padding: 20px 18px 0 !important;
  }
  body.chat-fullscreen #view-conversas .chat-list-heading {
    min-height: 48px !important;
    padding-bottom: 12px !important;
  }
  body.chat-fullscreen #view-conversas .chat-list-heading h2 {
    font-size: 25px !important;
    letter-spacing: -0.035em !important;
  }
  body.chat-fullscreen #view-conversas .chat-unread-badge {
    font-size: 12px !important;
    padding: 7px 10px !important;
  }
  body.chat-fullscreen #view-conversas .history-status {
    font-size: 10px !important;
    margin: 0 0 12px !important;
  }
  body.chat-fullscreen #view-conversas .chat-search-modern {
    margin: 8px 0 12px !important;
  }
  body.chat-fullscreen #view-conversas .chat-search-field {
    height: 42px !important;
    border-radius: 12px !important;
  }
  body.chat-fullscreen #view-conversas .chat-search-field input {
    height: 40px !important;
    font-size: 13px !important;
  }
  body.chat-fullscreen #view-conversas .chat-filter-pills {
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }
  body.chat-fullscreen #view-conversas .chat-filter-pills button {
    padding: 9px 12px !important;
    font-size: 11px !important;
  }
  body.chat-fullscreen #view-conversas .chat-list {
    margin: 4px -18px 0 !important;
    border-top: 1px solid #e5eaf3 !important;
  }
  body.chat-fullscreen #view-conversas .chat-item-rich {
    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: 13px !important;
    min-height: 0 !important;
    padding: 14px 18px !important;
    border: 0 !important;
    border-bottom: 1px solid #e5eaf3 !important;
    border-radius: 0 !important;
    background: #fff !important;
  }
  body.chat-fullscreen #view-conversas .chat-item-rich.selected {
    background: #f1f5ff !important;
    box-shadow: inset 3px 0 #315fe8 !important;
  }
  body.chat-fullscreen #view-conversas .chat-item-rich .avatar,
  body.chat-fullscreen #view-conversas .chat-item-rich .chat-avatar {
    width: 48px !important;
    height: 48px !important;
  }
  body.chat-fullscreen #view-conversas .chat-item-rich .chat-info strong {
    font-size: 15px !important;
    line-height: 1.35 !important;
  }
  body.chat-fullscreen #view-conversas .chat-item-rich .chat-date {
    font-size: 11px !important;
  }
  body.chat-fullscreen #view-conversas .chat-item-rich .chat-info > small {
    margin-top: 8px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    color: #63748f !important;
  }
  body.chat-fullscreen #view-conversas .chat-tags {
    gap: 6px !important;
    margin-top: 9px !important;
  }
  body.chat-fullscreen #view-conversas .chat-tags span {
    padding: 4px 8px !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    border-radius: 8px !important;
  }
  body.chat-fullscreen #view-conversas .messages-area {
    padding: 22px 28px !important;
    gap: 14px !important;
  }
  body.chat-fullscreen #view-conversas .bubble {
    max-width: min(68%, 720px) !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
  }
  body.chat-fullscreen #view-conversas .bubble-meta {
    font-size: 11px !important;
    line-height: 1.3 !important;
    margin-top: 7px !important;
  }
  body.chat-fullscreen #view-conversas .bubble .media-caption,
  body.chat-fullscreen #view-conversas .bubble .wa-media-label,
  body.chat-fullscreen #view-conversas .bubble .wa-file-card {
    font-size: 15px !important;
  }
}
@media (max-width: 760px) {
  body.chat-fullscreen #view-conversas .chat-item-rich .chat-info strong { font-size: 14px !important; }
  body.chat-fullscreen #view-conversas .chat-item-rich .chat-info > small { font-size: 12px !important; }
  body.chat-fullscreen #view-conversas .bubble {
    max-width: 88% !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
  }
}
/* Funil: texto e espaçamento iguais ao cartão de referência enviado */
.dashboard-funnel-panel .dashboard-panel-heading p {
  font-size: 12px !important;
}
.dashboard-funnel-panel .dashboard-funnel {
  gap: 25px !important;
  margin-top: 28px !important;
}
.dashboard-funnel-panel .funnel-row-heading > span {
  font-size: 14px !important;
}
.dashboard-funnel-panel .funnel-row-heading > strong {
  font-size: 21px !important;
}
.dashboard-funnel-panel .funnel-track {
  height: 12px !important;
}
.dashboard-funnel-panel .funnel-row > small {
  font-size: 11px !important;
}


/* Correções solicitadas em 27/11/2026 — mensagens, dashboard e marketing */
.history-status, #historyStatus { display:none !important; }
body.chat-fullscreen #view-conversas .reaction-bubble {
  align-self:flex-start !important; width:max-content !important; min-width:58px !important;
  max-width:120px !important; padding:9px 13px !important; background:#fff !important;
  border:1px solid #d8e4f2 !important; box-shadow:0 2px 5px rgba(27,58,91,.08) !important;
}
body.chat-fullscreen #view-conversas .reaction-emoji {
  display:block !important; font-family:"Apple Color Emoji","Segoe UI Emoji",sans-serif !important;
  font-size:27px !important; line-height:1.2 !important; text-align:center !important;
}
body.chat-fullscreen #view-conversas .reaction-bubble .bubble-meta {
  margin-top:5px !important; text-align:right !important; font-size:10px !important;
}
.dashboard-funnel-panel .dashboard-panel-heading p { margin:0 0 27px !important; }
.dashboard-funnel-panel .dashboard-funnel {
  display:flex !important; flex-direction:column !important; gap:22px !important; margin-top:0 !important;
}
.dashboard-funnel-panel .dashboard-funnel .funnel-row {
  display:grid !important; grid-template-columns:minmax(0,1fr) !important;
  gap:9px !important; margin:0 !important; align-items:stretch !important;
}
.dashboard-funnel-panel .funnel-row-heading {
  display:flex !important; justify-content:space-between !important; align-items:center !important;
  gap:12px !important; margin:0 !important;
}
.dashboard-funnel-panel .funnel-row-heading > span {
  font-size:14px !important; font-weight:500 !important; color:#17243b !important;
}
.dashboard-funnel-panel .funnel-row-heading > strong {
  font-size:21px !important; line-height:1 !important; font-weight:700 !important;
  color:#17243b !important; text-align:right !important;
}
.dashboard-funnel-panel .funnel-track {
  width:100% !important; height:12px !important; border-radius:999px !important;
  background:#eaf1f8 !important; overflow:hidden !important;
}
.dashboard-funnel-panel .funnel-track i {
  display:block !important; height:100% !important; min-width:0 !important;
  border-radius:999px !important; background:linear-gradient(90deg,#315f91,#4777a9) !important;
}
.dashboard-funnel-panel .funnel-row > small {
  display:block !important; margin-top:-4px !important; font-size:11px !important; color:#71839b !important;
}
.dashboard-bar-area i {
  width:min(82%,26px) !important; min-width:8px !important; border-radius:7px 7px 1px 1px !important;
}
.dashboard-right-stack { grid-template-rows:auto auto auto !important; align-content:start !important; }
.dashboard-quick-link-panel, .dashboard-marketing-panel { min-height:140px !important; }
.dashboard-marketing-panel .dashboard-usage-content { margin-top:20px !important; }
.dashboard-marketing-panel .dashboard-usage-content .kpi-icon { background:#eaf1f9 !important; color:#285987 !important; }
@media(max-width:700px) {
  .dashboard-funnel-panel .dashboard-funnel { gap:19px !important; }
  .dashboard-funnel-panel .funnel-row-heading > span { font-size:13px !important; }
  .dashboard-funnel-panel .funnel-row-heading > strong { font-size:19px !important; }
  .dashboard-bar-area i { width:min(82%,20px) !important; }
}


/* Ajustes visuais solicitados em 27/11/2026 — tabela, temas, mídia e CRM */
.dashboard-shortcuts-panel{min-width:0!important}
.dashboard-shortcuts-panel .dashboard-panel-heading{margin-bottom:12px!important}
.dashboard-shortcuts-table-wrap{width:100%;overflow-x:auto}
.dashboard-shortcuts-table{width:100%;border-collapse:collapse;table-layout:auto}
.dashboard-shortcuts-table tr+tr{border-top:1px solid #e2eaf4}
.dashboard-shortcuts-table td{padding:13px 10px;vertical-align:middle}
.dashboard-shortcuts-table td:first-child{padding-left:0;width:54px}
.dashboard-shortcuts-table td:last-child{padding-right:0}
.dashboard-shortcuts-table .kpi-icon{display:grid;width:42px;height:42px;place-items:center;border-radius:13px;background:#eaf1f9;color:#285987}
.dashboard-shortcuts-table td strong{display:block;color:#172b45;font-size:13px;line-height:1.35}
.dashboard-shortcuts-table td small{display:block;margin-top:4px;color:#71839b;font-size:11px;line-height:1.45}
.dashboard-shortcuts-table .shortcut-action-cell{text-align:right;white-space:nowrap}
.dashboard-shortcuts-table .button{white-space:nowrap}
@media(max-width:760px){
 .dashboard-shortcuts-table td{padding:11px 7px}
 .dashboard-shortcuts-table td:first-child{width:46px}
 .dashboard-shortcuts-table .kpi-icon{width:36px;height:36px}
 .dashboard-shortcuts-table td strong{font-size:12px}
 .dashboard-shortcuts-table td small{font-size:10px}
 .dashboard-shortcuts-table .button{font-size:10px;padding:8px}
}

/* Conversa com identidade contextual: Autismo e Seguros */
body.chat-fullscreen .message-panel.audience-autismo .messages-area{
 background-color:#edf5ff!important;
 background-image:
   radial-gradient(circle at 18px 18px,rgba(59,112,190,.13) 1.5px,transparent 2px),
   radial-gradient(circle at 48px 48px,rgba(72,142,214,.10) 1.5px,transparent 2px),
   linear-gradient(145deg,rgba(255,255,255,.56),rgba(226,239,255,.72))!important;
 background-size:30px 30px,30px 30px,100% 100%!important;
}
body.chat-fullscreen .message-panel.audience-seguros .messages-area{
 background-color:#eaf1fa!important;
 background-image:
   linear-gradient(135deg,rgba(255,255,255,.55) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.34) 50%,rgba(255,255,255,.34) 75%,transparent 75%) ,
   radial-gradient(circle at 85% 15%,rgba(69,111,166,.16),transparent 38%),
   linear-gradient(145deg,#edf3fb,#e1ebf7)!important;
 background-size:34px 34px,100% 100%,100% 100%!important;
}
body.chat-fullscreen .message-panel.audience-autismo .bubble,
body.chat-fullscreen .message-panel.audience-seguros .bubble{box-shadow:0 3px 10px rgba(32,67,112,.07)!important}

/* Quatro etiquetas da lista de conversas com cores próprias e contraste consistente */
body.chat-fullscreen #view-conversas .chat-tags span:nth-child(1){
 background:#e5f0ff!important;border-color:#b8d2f5!important;color:#174b88!important
}
body.chat-fullscreen #view-conversas .chat-tags span:nth-child(2){
 background:#eeeaff!important;border-color:#d0c5fa!important;color:#51409b!important
}
body.chat-fullscreen #view-conversas .chat-tags span:nth-child(3){
 background:#e3f5ed!important;border-color:#b5e2cd!important;color:#176746!important
}
body.chat-fullscreen #view-conversas .chat-tags span:nth-child(4){
 background:#fff1dc!important;border-color:#f0d2a2!important;color:#8a5511!important
}

/* Modal de mídia: dimensões proporcionais ao arquivo, sem grande área vazia */
#waPreviewDialog.wa-modal{
 width:min(780px,90vw)!important;max-width:90vw!important;
 max-height:86dvh!important;height:auto!important;overflow:hidden!important;
}
#waPreviewDialog .wa-preview-body{
 min-height:0!important;max-height:64dvh!important;padding:12px!important;
 overflow:auto!important;
}
#waPreviewDialog .wa-preview-content{
 display:block!important;width:auto!important;height:auto!important;
 max-width:100%!important;max-height:58dvh!important;
 object-fit:contain!important;margin:auto!important;
}
#waPreviewDialog .wa-preview-body iframe{width:min(100%,720px)!important;height:60dvh!important}
#waPreviewDialog .wa-modal-header,#waPreviewDialog .wa-modal-footer{padding:11px 16px!important;flex:none!important}
#waPreviewDialog .wa-preview-note{margin:14px!important}

/* CRM ampliado: colunas e cartões no padrão de dimensão da referência */
body.crm-fullscreen .main-wrap>main{
 width:100%!important;max-width:none!important;margin:0!important;
 padding:18px 20px 12px!important;
}
body.crm-fullscreen #view-crmkanban{width:100%!important;max-width:none!important}
body.crm-fullscreen #view-crmkanban .kb-heading h1{font-size:36px!important}
body.crm-fullscreen #view-crmkanban .kb-board{
 width:100%!important;height:calc(100dvh - 175px)!important;
 min-height:560px!important;gap:16px!important;padding:4px 0 12px!important;
 overflow-x:auto!important;overflow-y:hidden!important;align-items:stretch!important;
}
body.crm-fullscreen #view-crmkanban .kb-col{
 flex:0 0 330px!important;width:330px!important;min-width:330px!important;
 padding:15px!important;border-radius:12px!important;background:#edf2f8!important;
}
body.crm-fullscreen #view-crmkanban .kb-col h3{
 font-size:16px!important;padding:10px 4px 15px!important;
}
body.crm-fullscreen #view-crmkanban .kb-item{
 min-height:158px!important;padding:15px!important;margin:9px 0!important;
 gap:10px!important;border-radius:15px!important;background:#fff!important;
}
body.crm-fullscreen #view-crmkanban .kb-item strong{font-size:16px!important}
body.crm-fullscreen #view-crmkanban .kb-item small{font-size:12px!important}
body.crm-fullscreen #view-crmkanban .kb-tags span{font-size:11px!important;padding:6px 9px!important}
body.crm-fullscreen #view-crmkanban .kb-card-footer{padding-top:11px!important;gap:10px!important}
body.crm-fullscreen #view-crmkanban .kb-item select{display:none!important}
@media(max-width:760px){
 body.crm-fullscreen .main-wrap>main{padding:12px!important}
 body.crm-fullscreen #view-crmkanban .kb-board{height:calc(100dvh - 190px)!important;min-height:440px!important}
 body.crm-fullscreen #view-crmkanban .kb-col{flex-basis:300px!important;width:300px!important;min-width:300px!important}
}


/* Configurações da IA + Fluxos em uma única página — layout inspirado na referência */
#view-ia{max-width:none!important;width:100%!important;padding:0!important}
.ai-workspace-heading{
 display:flex;align-items:flex-end;justify-content:space-between;gap:18px;
 margin:0 0 22px;padding:4px 0 18px;border-bottom:1px solid #dce4ef
}
.ai-workspace-heading h1{font-size:34px;letter-spacing:-.045em;margin:4px 0 7px;color:#172b45}
.ai-workspace-heading p{margin:0;color:#718198;font-size:13px}
.ai-workspace-chip{
 display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid #d9e3f0;
 border-radius:999px;background:#f7f9fc;color:#35577f;font-size:11px;font-weight:700;white-space:nowrap
}
.ai-workspace-chip svg,.ai-workspace-chip i{width:15px;height:15px}
.ai-workspace-layout{display:grid;grid-template-columns:minmax(0,1fr) 238px;gap:24px;align-items:start}
.ai-workspace-content{display:grid;gap:20px;min-width:0}
.ai-workspace-card{
 background:#fff;border:1px solid #dce4ee;border-radius:14px;overflow:visible;
 box-shadow:0 5px 18px rgba(25,48,82,.035);padding:0;min-width:0
}
.ai-card-heading{
 display:flex;align-items:center;justify-content:space-between;gap:16px;
 padding:18px 22px;border-bottom:1px solid #e5ebf2
}
.ai-card-heading h2{font-size:19px;letter-spacing:-.025em;margin:4px 0 5px;color:#1c2e47}
.ai-card-heading p{margin:0;color:#718198;font-size:12px;line-height:1.5}
.ai-section-kicker{font-size:9px;font-weight:800;letter-spacing:1.2px;color:#8a6b39}
.ai-section-icon{
 display:grid;place-items:center;width:40px;height:40px;border-radius:12px;
 color:#315b91;background:#edf3fa;flex:none
}
.ai-section-icon svg{width:19px;height:19px}
.ai-workspace-card>.form-field,.ai-workspace-card>.ai-helper,.ai-workspace-card>.ai-feedback,
.ai-workspace-card>.automation-info,.ai-workspace-card>.ai-flow-settings{margin:18px 22px}
.ai-workspace-card .ai-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px;padding:20px 22px}
.ai-workspace-card .ai-form-grid .form-field{min-width:0;display:grid;gap:7px;color:#4d6078;font-size:12px}
.ai-workspace-card input:not([type=checkbox]),.ai-workspace-card select,.ai-workspace-card textarea{
 width:100%;min-width:0;box-sizing:border-box;border:1px solid #d7e0eb;border-radius:10px;
 background:#fff;padding:11px 13px;color:#23364f;font-family:inherit;font-size:13px;font-weight:400;line-height:1.5;
 box-shadow:0 2px 5px rgba(22,40,65,.035)
}
.ai-workspace-card textarea{resize:vertical}
.ai-workspace-card input:focus,.ai-workspace-card select:focus,.ai-workspace-card textarea:focus{
 outline:2px solid #b7cce8;outline-offset:1px;border-color:#9bb6d8
}
.ai-workspace-card .ai-field-full{grid-column:1/-1}
.ai-main-toggle{
 display:flex;align-items:center;justify-content:space-between;gap:18px;
 margin:18px 22px 4px!important;padding:15px 16px;border:1px solid #e0e7ef;
 border-radius:11px;background:#f8fafc
}
.ai-main-toggle strong{font-size:13px;color:#253a55}
.ai-main-toggle small{display:block;margin-top:4px;color:#718198;font-size:11px;font-weight:400}
.ai-main-toggle input{width:40px;height:22px;accent-color:#315a91;flex:none}
.ai-workspace-card .automation-info{
 padding:11px 13px;border-radius:9px;background:#eef4fb;border:1px solid #dce8f5;
 color:#4d6786;font-size:11px;line-height:1.55
}
.ai-workspace-card .ai-helper{font-size:11px;color:#718198;line-height:1.6}
.ai-workspace-card .ai-feedback{font-size:11px;color:#315a91}
.ai-flow-settings{display:grid;gap:16px}
.ai-flow-settings>.ai-main-toggle{margin:0!important}
.ai-flow-help{margin:0;color:#718198;font-size:11px;line-height:1.6}
.ai-flow-intro-fields{padding:0!important}
.ai-flow-area-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ai-flow-area{
 min-width:0;padding:16px;border:1px solid #e0e7ef;border-radius:12px;background:#fbfcfe;
 display:grid;align-content:start;gap:12px
}
.ai-flow-area-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ai-flow-area-heading h3{margin:0;color:#243a57;font-size:15px}
.ai-flow-area-heading span{font-size:9px;color:#7b8ca2;text-transform:uppercase;letter-spacing:.7px}
.ai-flow-area>.form-field{display:grid;gap:6px;font-size:11px;color:#4d6078}
.ai-flow-menu{display:grid;gap:10px}
.ai-flow-row{margin:0!important;padding:13px!important;border-radius:10px!important;border-color:#dfe6ef!important;gap:9px!important}
.ai-flow-row-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ai-flow-row-title strong{font-size:11px;color:#3c587a}
.ai-flow-row .form-field{display:grid;gap:6px;font-size:10px;color:#60728a}
.ai-flow-row input,.ai-flow-row textarea{font-size:11px!important;padding:9px 10px!important}
.ai-flow-row .button{font-size:10px!important;padding:6px 9px!important}
.ai-flow-empty{margin:0;padding:14px;border:1px dashed #d7e0eb;border-radius:9px;color:#8795a7;font-size:11px;text-align:center}
.ai-flow-final-fields{padding:0!important}
.ai-flow-status{margin:0;padding:10px 12px;border-radius:8px;background:#f3f6fa;color:#6b7e95;font-size:10px;line-height:1.5}
.ai-flow-loading{padding:20px;color:#73849a;font-size:12px}
.ai-workspace-aside{min-width:0}
.ai-aside-sticky{position:sticky;top:24px;padding:14px 0 0}
.ai-aside-title{display:block;margin:0 0 14px;color:#6e7e91;font-size:10px;font-weight:800;letter-spacing:1px}
.ai-anchor-nav{display:grid;gap:0;border-left:1px solid #d7e0eb;margin:0 0 20px 2px;padding:0 0 0 12px}
.ai-anchor-nav a{
 display:block;padding:9px 7px;color:#65758a;text-decoration:none;font-size:12px;
 border-radius:7px;transition:background .15s,color .15s
}
.ai-anchor-nav a:hover,.ai-anchor-nav a:focus{background:#edf3fa;color:#244e80;outline:none}
.ai-save-all,.ai-discard{width:100%;justify-content:center;min-height:42px;margin:0 0 9px!important}
.ai-save-all{background:#315889!important;border-color:#315889!important;color:#fff!important}
.ai-discard{background:#fff!important;border-color:#cfd9e6!important;color:#405873!important}
.ai-aside-note{margin:8px 2px;color:#7d8b9c;font-size:10px;line-height:1.6}
.ai-anchor-section{scroll-margin-top:24px}
@media(max-width:1050px){
 .ai-workspace-layout{grid-template-columns:minmax(0,1fr) 205px;gap:16px}
 .ai-flow-area-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
 .ai-workspace-heading{align-items:flex-start;flex-direction:column}
 .ai-workspace-heading h1{font-size:28px}
 .ai-workspace-layout{grid-template-columns:1fr}
 .ai-workspace-aside{grid-row:1}
 .ai-aside-sticky{position:relative;top:auto;padding:12px;border:1px solid #dce4ee;border-radius:12px;background:#fff}
 .ai-anchor-nav{grid-template-columns:repeat(2,minmax(0,1fr));border-left:0;padding:0;margin-bottom:12px}
 .ai-anchor-nav a{padding:8px 9px;background:#f6f8fb}
 .ai-workspace-card .ai-form-grid{grid-template-columns:1fr;padding:16px}
 .ai-workspace-card .ai-field-full{grid-column:auto}
 .ai-card-heading{padding:15px 16px}
 .ai-workspace-card>.form-field,.ai-workspace-card>.ai-helper,.ai-workspace-card>.ai-feedback,
 .ai-workspace-card>.automation-info,.ai-workspace-card>.ai-flow-settings{margin:15px 16px}
 .ai-main-toggle{margin:15px 16px 4px!important}
 .ai-flow-area-grid{grid-template-columns:1fr}
}


/* ===== Ajustes de navegação, Petições, conversas e perfil (27/11/2026) ===== */
/* Dimensões e acabamento da navegação. O recolhimento/expansão é definido no bloco final. */
.sidebar-shell{width:100%!important;min-width:0!important;padding:14px 12px 16px!important}
.brand{padding-bottom:12px!important}
.menu-nav{gap:3px!important;overflow-y:auto!important;overflow-x:hidden!important;min-height:0!important}
.nav-title{margin:10px 8px 4px!important}
.nav-item,.menu-group summary{height:43px!important;min-height:43px!important;padding:0 12px!important;gap:13px!important}
.nav-item .menu-icon,.menu-group .menu-icon{width:21px!important;height:21px!important;min-width:21px!important}
body:not(.technical-admin) .nav-item[data-admin-hidden="true"]{display:none!important}
.sidebar-profile{width:100%!important}
.system-mark{overflow:hidden!important;position:relative!important}
.system-mark img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.profile-flyout{left:calc(100% - 8px)!important;bottom:12px!important;z-index:1000!important}
@media(max-width:800px){
  .sidebar,.sidebar:hover,.sidebar.open{width:280px!important;min-width:280px!important}
  .sidebar:not(.open){transform:translateX(-100%)}
  .sidebar.open{transform:translateX(0)}
}
/* Contador de não lidas com vermelho e estado ativo evidente. */
.chat-unread-badge{border-color:#f1b9bd!important;background:#fff0f1!important;color:#b4232e!important}
.chat-unread-badge span{color:#b4232e!important}
.chat-unread-badge.active,.chat-unread-badge[aria-pressed="true"]{background:#c92d3a!important;border-color:#b91f2d!important;color:#fff!important;box-shadow:0 4px 12px #c92d3a30!important}
.chat-unread-badge.active span,.chat-unread-badge[aria-pressed="true"] span{color:#fff!important}
.chat-filter-pills button[aria-pressed="true"]{outline:2px solid #b7c8ee!important;outline-offset:1px}
/* Workspace de Petições no mesmo padrão visual da Central de IA. */
.pt-workspace-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin:12px 0 22px}
.pt-workspace-heading h1{font:800 clamp(28px,3vw,38px)/1.12 system-ui,sans-serif;letter-spacing:-1.2px;color:var(--ink);margin:7px 0}
.pt-workspace-heading p{margin:0;color:var(--muted);font-size:13px}
.pt-workspace-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:24px;align-items:start}
.pt-workspace-content{min-width:0}
.pt-shell{padding:0!important;overflow:hidden}
.pt-shell-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 24px;border-bottom:1px solid var(--line)}
.pt-shell-heading h2{font-size:19px;margin:0 0 4px}
.pt-shell-heading p{margin:0;color:var(--muted);font-size:12px}
.pt-shell-heading #pt-status{max-width:48%;text-align:right}
.pt-shell>.pt-row,.pt-shell>.pt-consent,.pt-shell>section{margin:18px 24px}
.pt-shell>.pt-row:first-of-type{padding-top:16px}
.pt-shell>section{padding:20px 0;border-top:1px solid var(--line);scroll-margin-top:24px}
.pt-shell>section[hidden]{display:none!important}
.pt-shell>section h3{margin-top:0}
.pt-workspace-aside{min-width:0}
.pt-aside-sticky{position:sticky;top:22px;padding:12px 4px}
.pt-aside-title{display:block;font-size:10px;font-weight:800;letter-spacing:1.2px;color:var(--muted);margin:0 0 16px}
.pt-anchor-nav{display:grid;gap:2px;border-left:1px solid var(--line);padding:0 0 0 12px}
.pt-anchor-nav a{display:block;padding:9px 10px;border-radius:8px;text-decoration:none;color:var(--muted);font-size:13px}
.pt-anchor-nav a:hover{background:var(--soft);color:var(--primary)}
.pt-aside-help{margin-top:24px;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.pt-aside-help>i{color:var(--primary);width:22px;height:22px}
.pt-aside-help strong{display:block;margin:8px 0 4px;font-size:13px}
.pt-aside-help p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}
@media(max-width:1050px){.pt-workspace-layout{grid-template-columns:minmax(0,1fr) 210px;gap:14px}}
@media(max-width:760px){.pt-workspace-layout{grid-template-columns:1fr}.pt-workspace-aside{order:-1}.pt-aside-sticky{position:static;padding:10px 0}.pt-anchor-nav{grid-template-columns:repeat(2,minmax(0,1fr));border-left:0;padding:0}.pt-shell-heading{align-items:flex-start;flex-direction:column}.pt-shell-heading #pt-status{max-width:none;text-align:left}}
/* Modal de perfil e equipe */
.profile-dialog{width:min(680px,calc(100vw - 28px));max-width:none;max-height:min(86vh,780px);padding:0;border:1px solid var(--line);border-radius:20px;background:var(--panel);color:var(--ink);box-shadow:0 28px 90px #0b173c40}
.profile-dialog::backdrop{background:#0c1830a6;backdrop-filter:blur(3px)}
.profile-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px 16px;border-bottom:1px solid var(--line)}
.profile-dialog-head h2{font-size:22px;margin:6px 0}
.profile-dialog-head p{margin:0;color:var(--muted);font-size:13px}
.profile-dialog-body{padding:22px 24px;max-height:calc(86vh - 150px);overflow:auto}
.profile-editor{display:grid;grid-template-columns:88px minmax(0,1fr);gap:18px;align-items:center}
.profile-avatar-upload{width:84px;height:84px;border-radius:22px;background:#eaf1ff;color:#315dbb;display:grid;place-items:center;position:relative;overflow:hidden;cursor:pointer;font-size:25px;font-weight:800}
.profile-avatar-upload img{width:100%;height:100%;object-fit:cover}
.profile-avatar-edit{position:absolute;right:5px;bottom:5px;width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#315dbb;box-shadow:0 2px 8px #14264a30}
.profile-avatar-edit svg{width:14px;height:14px}
.profile-fields{min-width:0}.profile-fields small{display:block;color:var(--muted);font-size:11px;margin-top:6px}
.profile-users-section{margin-top:26px;border-top:1px solid var(--line);padding-top:20px}
.profile-users-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.profile-users-heading h3{font-size:15px;margin:0 0 4px}
.profile-users-heading p{margin:0;color:var(--muted);font-size:12px}
.profile-users-count{border-radius:99px;background:var(--soft);padding:5px 10px;font-size:12px;font-weight:800}
.profile-users-list{display:grid;gap:8px;margin-top:14px}
.profile-user-row{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:12px}
.profile-user-avatar{width:34px;height:34px;border-radius:11px;background:#e9efff;color:#315dbb;display:grid;place-items:center;font-weight:800;flex:none}
.profile-user-copy{display:grid;gap:2px;min-width:0;flex:1}
.profile-user-copy strong{font-size:12px}.profile-user-copy small{font-size:11px;color:var(--muted)}
.profile-role,.profile-user-state{font-size:10px;padding:5px 8px;border-radius:99px;white-space:nowrap;font-weight:700}
.profile-role.admin{background:#e8efff;color:#244da3}.profile-role.employee{background:#e7f6ee;color:#167448}
.profile-user-state.online{color:#167448;background:#e7f6ee}.profile-user-state.inactive{color:#9a4a12;background:#fff1df}
.profile-dialog-actions{display:flex;justify-content:flex-end;gap:10px;padding:16px 24px;border-top:1px solid var(--line)}



/* Menu lateral: compacto por padrão e expandido ao passar o mouse. */
@media(min-width:851px){
  .layout{grid-template-columns:84px minmax(0,1fr)!important;transition:grid-template-columns .24s ease!important}
  .sidebar,.sidebar:not(:hover):not(:has(:focus-visible)):not(.open){width:84px!important;min-width:84px!important;max-width:84px!important;overflow:visible!important;transition:width .24s ease,min-width .24s ease,max-width .24s ease!important}
  .sidebar:hover,.sidebar:has(:focus-visible),.sidebar.open{width:280px!important;min-width:280px!important;max-width:280px!important}
  .layout:has(.sidebar:hover),.layout:has(.sidebar:has(:focus-visible)),.layout:has(.sidebar.open){grid-template-columns:280px minmax(0,1fr)!important}
  .sidebar-shell{width:100%!important;min-width:0!important;overflow:hidden!important}
  .sidebar:not(:hover):not(:has(:focus-visible)):not(.open) .brand{justify-content:center!important;padding-left:0!important;padding-right:0!important}
  .sidebar:not(:hover):not(:has(:focus-visible)):not(.open) .brand-copy,
  .sidebar:not(:hover):not(:has(:focus-visible)):not(.open) .sidebar-profile-copy,
  .sidebar:not(:hover):not(:has(:focus-visible)):not(.open) .nav-title,
  .sidebar:not(:hover):not(:has(:focus-visible)):not(.open) .menu-label,
  .sidebar:not(:hover):not(:has(:focus-visible)):not(.open) .menu-chevron{display:none!important;opacity:0!important;visibility:hidden!important}
  .sidebar:not(:hover):not(:has(:focus-visible)):not(.open) .menu-nav{width:100%!important;align-items:stretch!important}
  .sidebar:not(:hover):not(:has(:focus-visible)):not(.open) .nav-item,
  .sidebar:not(:hover):not(:has(:focus-visible)):not(.open) .menu-group summary{width:100%!important;justify-content:center!important;padding:0!important;gap:0!important}
  .sidebar:not(:hover):not(:has(:focus-visible)):not(.open) .nav-item .menu-icon,
  .sidebar:not(:hover):not(:has(:focus-visible)):not(.open) .menu-group .menu-icon{width:22px!important;height:22px!important;min-width:22px!important}
  .sidebar:not(:hover):not(:has(:focus-visible)):not(.open) .nav-count{position:absolute!important;top:1px!important;right:1px!important;display:block!important;opacity:1!important;visibility:visible!important;font-size:9px!important;padding:2px 4px!important;min-width:15px!important;text-align:center!important;background:#315fe8!important;color:#fff!important}
  .sidebar:not(:hover):not(:has(:focus-visible)):not(.open) .sidebar-profile{justify-content:center!important;padding:6px 0!important}
  .sidebar:not(:hover):not(:has(:focus-visible)):not(.open) .sidebar-footer{padding-left:0!important;padding-right:0!important}
  .sidebar:not(:hover):not(:has(:focus-visible)):not(.open) .system-mark{margin:0 auto!important}
}

/* Petições: blocos de entrada e histórico tabular compacto. */
#view-peticoes .pt-workspace-layout{grid-template-columns:minmax(0,1fr) 210px;gap:20px}
#view-peticoes .pt-shell{max-width:none;width:100%;min-width:0;gap:0}
#view-peticoes .pt-shell>.pt-row{margin:14px 24px;padding:0}
#view-peticoes .pt-shell>section{margin:0 24px 24px;padding:20px 0 0;gap:20px;min-width:0}
#view-peticoes .pt-input-block{border:1px solid var(--line);border-radius:12px;padding:18px 20px;display:grid;gap:12px;background:var(--panel);min-width:0}
#view-peticoes .pt-input-block h3{font-size:15px;margin:0;color:var(--ink)}
#view-peticoes .pt-consent{padding:12px 0;line-height:1.5;margin:0}
#view-peticoes #pt-history-list{overflow-x:auto;border:1px solid var(--line);border-radius:10px}
#view-peticoes .pt-history-table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}
#view-peticoes .pt-history-table th{background:var(--soft);color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.3px;white-space:nowrap}
#view-peticoes .pt-history-table td,#view-peticoes .pt-history-table th{padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:middle}
#view-peticoes .pt-history-table td small{display:block;font-size:11px;color:var(--muted);margin-top:4px}
#view-peticoes .pt-history-table tr:last-child td{border-bottom:0}
#view-peticoes .pt-history-actions{min-width:180px}
#view-peticoes .pt-history-actions .button{font-size:11px;min-height:30px;padding:6px 9px;margin:2px;white-space:nowrap}
@media(max-width:1050px){#view-peticoes .pt-workspace-layout{grid-template-columns:minmax(0,1fr)}#view-peticoes .pt-workspace-aside{order:-1}#view-peticoes .pt-aside-sticky{position:static}#view-peticoes .pt-anchor-nav{display:flex;flex-wrap:wrap}#view-peticoes .pt-aside-help{display:none}}

#view-peticoes .pt-history-placeholder td{height:58px;padding:0;border-bottom:1px solid var(--line);}

/* CRM: square profile thumbnails only; other avatars remain circular. */
#view-crmkanban .kb-card-identify .chat-avatar,#view-crmkanban .kb-card-identify .contact-avatar-photo,#view-crmkanban .kb-card-identify .avatar-photo-frame{border-radius:3px!important;}
#conversationOpenProcess[hidden]{display:none!important;}
#conversationOpenProcess{margin-top:5px;padding:3px 8px;min-height:24px;font-size:11px;max-width:100%;white-space:normal;}
.ti-sync-progress{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:6px 0 12px;}
.ti-sync-progress small{color:#587397;}
.pt-pending-count{font-size:12px;color:#587397;margin:4px 0 10px;}

/* Perfil fora do contêiner recortado; não altera a animação lateral. */
body > .profile-flyout{position:fixed!important;z-index:10000!important;width:min(284px,calc(100vw - 16px))!important;box-sizing:border-box!important;max-height:calc(100vh - 16px);overflow:auto;}
body > .profile-flyout[hidden],#profileChooser[hidden],#loginForm[hidden],#conversationOpenProcess[hidden]{display:none!important;}
#profileChooser{display:grid;gap:14px;}
.profile-choice{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #d6dceb;border-radius:12px;background:#f5f8fd;color:#183456;font:inherit;text-align:left;cursor:pointer;}
.profile-choice .system-mark{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#29436d;color:white;}
.profile-choice:hover{background:#e8effb;}
.conversation-cnj-line{display:flex;align-items:center;gap:6px;min-width:0;}
#conversationOpenProcess{display:inline-flex!important;align-items:center;justify-content:center;width:26px!important;height:26px!important;min-width:26px!important;padding:0!important;margin:0!important;}
#conversationOpenProcess svg{width:14px;height:14px;}

/* Cores do público-alvo, mantendo as fotos reais quando disponíveis. */
body.chat-fullscreen #view-conversas .chat-filter-pills{display:flex!important;gap:4px!important;flex-wrap:nowrap!important;overflow-x:auto!important;max-width:100%!important;padding:2px!important}
body.chat-fullscreen #view-conversas .chat-filter-pills button{font-size:10px!important;padding:8px 6px!important;white-space:nowrap!important;flex:0 0 auto!important}
body.chat-fullscreen #view-conversas .chat-filter-pills .chat-unread-filter{color:#b42332!important;background:#fff1f2!important;border-color:#ffc5cb!important}
body.chat-fullscreen #view-conversas .chat-filter-pills .chat-unread-filter[aria-pressed=true]{background:#b42332!important;color:white!important;border-color:#b42332!important}
.profile-password-section{display:grid;gap:10px;margin-top:16px}.profile-password-section[hidden]{display:none!important}.profile-password-section h3{margin:0}.profile-dialog-body{overflow:auto;min-height:0}.profile-dialog{max-height:90dvh}

/* Independent audience marker: preserve the original multicolored initials and real photos. */
.audience-avatar.avatar-photo-frame{overflow:hidden!important;position:relative;flex-shrink:0}
.audience-avatar>.avatar-initials{border-radius:inherit!important}
.audience-avatar>.contact-avatar-photo{border-radius:inherit!important}
.audience-dot{position:absolute;right:-2px;bottom:-2px;width:13px;height:13px;border:2px solid #fff;border-radius:50%;z-index:2;box-shadow:0 0 0 1px #a5b4c8;pointer-events:none}
.audience-dot.audience-seguros{background:#dc2626}
.audience-dot.audience-autismo{background:#2563eb}
.audience-dot.audience-nenhum{background:#fff}
.audience-dot.audience-outro{background:#8b5cf6}
.ai-safe-test{align-self:stretch;margin:0!important;gap:12px}

/* Público-alvo nas tags, nunca como status de presença. */
body.chat-fullscreen #view-conversas .chat-tags span[data-audience="Seguros"],body.crm-fullscreen #view-crmkanban .kb-tags span[data-audience="Seguros"]{background:#fee2e2!important;color:#991b1b!important;border-color:#fca5a5!important}
body.chat-fullscreen #view-conversas .chat-tags span[data-audience="Autismo"],body.crm-fullscreen #view-crmkanban .kb-tags span[data-audience="Autismo"]{background:#dbeafe!important;color:#1d4ed8!important;border-color:#93c5fd!important}
body.chat-fullscreen #view-conversas .chat-tags span[data-audience="Nenhum"],body.crm-fullscreen #view-crmkanban .kb-tags span[data-audience="Nenhum"]{background:#fff!important;color:#475569!important;border-color:#cbd5e1!important}
body.chat-fullscreen #view-conversas .chat-tags span[data-audience="Outro"],body.crm-fullscreen #view-crmkanban .kb-tags span[data-audience="Outro"]{background:#f3e8ff!important;color:#6b21a8!important;border-color:#d8b4fe!important}
#recentProfileChoices{display:grid;gap:10px;max-height:45vh;overflow:auto}#recentProfileChoices .profile-choice{width:100%}

.brand-mark img,.profile-user-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.brand-mark{overflow:hidden}.brand-mark img[hidden],.profile-avatar-upload img[hidden],.profile-avatar-upload span[hidden],#officeBrandFallback[hidden]{display:none!important}.profile-editor input:not([type=file]),.profile-users-section input{width:100%;padding:10px 12px;border:1px solid #cbd8eb;border-radius:8px;font:inherit}.profile-avatar-upload:has(+input:disabled){cursor:default;opacity:.75}

.profile-editor + .profile-editor{margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}.sidebar .brand-copy{min-width:0}.sidebar #officeBrandName{font-size:14px;overflow:hidden;text-overflow:ellipsis;max-width:180px}.profile-fields>small{display:block;margin-top:7px}

body.chat-fullscreen #view-conversas .chat-tags .tag-lawyer[data-lawyer="yes"],body.crm-fullscreen #view-crmkanban .kb-tags .kb-law-tag-yes{background:#dcfce7!important;color:#166534!important;border-color:#86efac!important}
body.chat-fullscreen #view-conversas .chat-tags .tag-lawyer[data-lawyer="no"],body.crm-fullscreen #view-crmkanban .kb-tags .kb-law-tag-no{background:#ffedd5!important;color:#9a3412!important;border-color:#fdba74!important}
body.chat-fullscreen #view-conversas .chat-tags .tag-lawyer[data-lawyer="unknown"],body.crm-fullscreen #view-crmkanban .kb-tags .kb-law-tag-unknown{background:#ede9fe!important;color:#5b21b6!important;border-color:#c4b5fd!important}
.sidebar .brand-mark .loading-scales{font-size:18px!important}
body:not(.technical-admin) tr[data-admin-hidden="true"]{display:none!important}

/* Programmer-only Neon management, no changes to other views. */
.resource-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.resource-metrics:not([hidden]){display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:18px 0}.resource-metrics>div{border:1px solid #d6e1ef;background:#f2f6fb;border-radius:12px;padding:14px;display:grid;gap:8px;color:#173a61}.resource-metrics strong{font-size:22px}.resource-metrics small{font-size:12px}.resource-actions button[aria-pressed="true"]{background:#e5eefb;color:#173a61;border-color:#b8cce4}
