/* NEXEI v3.5.2 - revisão visual/UX geral, sidebar estável, Canvas, Perfil, Busca e Notificações. */
:root{--nexei-sidebar-v352:92px;--nexei-card-v352:#fff;--nexei-line-v352:#dce5f1;--nexei-text-v352:#172033;--nexei-muted-v352:#66758d;--nexei-soft-v352:#f6f8fc;--nexei-accent-v352:#4f46e5;}

/* Sidebar: largura fixa, ícones centralizados e tooltip flutuante sem reflow. */
@media(min-width:901px){
 body:not(.page-login):not(.page-two_factor):not(.page-forgot_password):not(.page-reset_password):not(.page-set_password):not(.page-password_expired):not(.page-select_organization) .sidebar.sidebar-v352,
 body.page-view .sidebar.sidebar-v352,body.nexei-view-mode .sidebar.sidebar-v352,
 body:not(.page-login) .sidebar.sidebar-v352:hover,body.page-view .sidebar.sidebar-v352:hover,body.nexei-view-mode .sidebar.sidebar-v352:hover{
   width:var(--nexei-sidebar-v352)!important;min-width:var(--nexei-sidebar-v352)!important;max-width:var(--nexei-sidebar-v352)!important;
   padding:16px 13px!important;overflow:visible!important;transition:none!important;transform:none!important;box-sizing:border-box!important;
 }
 body:not(.page-login) .sidebar-v352 .brand,body:not(.page-login) .sidebar-v352:hover .brand{
   width:62px!important;height:58px!important;min-width:62px!important;margin:0 auto 14px!important;padding:0!important;display:grid!important;place-items:center!important;gap:0!important;overflow:visible!important;
 }
 .sidebar-v352 .brand-mark{width:48px!important;height:48px!important;min-width:48px!important;display:grid!important;place-items:center!important;overflow:visible!important}
 .sidebar-v352 .brand-mark img{display:block!important;width:46px!important;height:46px!important;max-width:46px!important;max-height:46px!important;object-fit:contain!important}
 .sidebar-v352 .brand-copy-v351,.sidebar-v352 .nav-text{display:none!important;opacity:0!important;visibility:hidden!important;width:0!important;max-width:0!important;overflow:hidden!important}
 .sidebar-v352 nav,.sidebar-v352:hover nav{width:62px!important;margin:0 auto!important;display:grid!important;justify-items:center!important;align-content:start!important;gap:7px!important;overflow:visible!important}
 .sidebar-v352 nav a,.sidebar-v352:hover nav a{width:54px!important;height:48px!important;min-width:54px!important;min-height:48px!important;max-width:54px!important;margin:0!important;padding:0!important;display:grid!important;place-items:center!important;gap:0!important;border-radius:14px!important;overflow:visible!important;transition:background-color .14s ease,border-color .14s ease!important}
 .sidebar-v352 nav a .nav-icon{width:27px!important;height:27px!important;min-width:27px!important;display:grid!important;place-items:center!important;margin:0!important;overflow:visible!important}
 .sidebar-v352 nav a .nav-icon img{display:block!important;width:25px!important;height:25px!important;max-width:25px!important;max-height:25px!important;object-fit:contain!important}
 .sidebar-v352 .search-nav-v351::before{left:0!important;right:0!important;bottom:-5px!important}
 .sidebar-v352 .user-card-v351,.sidebar-v352:hover .user-card-v351{left:15px!important;right:auto!important;bottom:15px!important;width:62px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;overflow:visible!important}
 .sidebar-v352 .sidebar-profile-v351{width:42px!important;height:42px!important;display:grid!important;place-items:center!important;overflow:visible!important}
 .sidebar-v352 .sidebar-profile-v351 .sidebar-avatar{width:36px!important;height:36px!important;min-width:36px!important}
 .sidebar-v352 .sidebar-logout-v351 button{width:36px!important;height:34px!important}
 body:not(.page-login) .main,body:not(.page-login) .sidebar-v352 + .main,body.page-view .main,body.nexei-view-mode .main,
 body:not(.page-login) .sidebar-v352:hover ~ .main,body:not(.page-login) .sidebar-v352:hover + .main{
   margin-left:var(--nexei-sidebar-v352)!important;width:calc(100% - var(--nexei-sidebar-v352))!important;max-width:calc(100% - var(--nexei-sidebar-v352))!important;transition:none!important;
 }
 [data-tooltip-v351]::after{display:none!important;content:none!important}
}
.nexei-tooltip-v352{position:fixed;z-index:2147483000;pointer-events:none;padding:8px 11px;border-radius:9px;background:#101828;color:#fff;font:700 12px/1.2 Arial,sans-serif;white-space:nowrap;box-shadow:0 10px 28px rgba(15,23,42,.24);opacity:0;transform:translateX(-3px);transition:opacity .1s ease,transform .1s ease}
.nexei-tooltip-v352.is-visible{opacity:1;transform:translateX(0)}

/* Assistente: compositor em uma única linha limpa. */
.nexei-assistant-modal .assistant-form{display:grid!important;grid-template-columns:44px minmax(0,1fr) 86px!important;gap:8px!important;align-items:center!important;padding:12px 12px 13px!important;background:#fff!important;border-top:1px solid #e5eaf3!important}
.nexei-assistant-modal .assistant-form>input[type=file]{display:none!important}
.nexei-assistant-modal .assistant-file-btn-v350{grid-column:1!important;grid-row:1!important;width:44px!important;min-width:44px!important;height:44px!important;padding:0!important;border:1px solid #dbe4f0!important;border-radius:12px!important;background:#f7f9fd!important;color:#34415a!important;font-size:0!important;display:grid!important;place-items:center!important;box-shadow:none!important}
.nexei-assistant-modal .assistant-file-btn-v350::before{content:"";width:21px;height:21px;background:url("/?page=icon_asset&name=anexo.png") center/contain no-repeat;display:block}
.nexei-assistant-modal .assistant-form input[type=text],.nexei-assistant-modal .assistant-form input:not([type]){grid-column:2!important;grid-row:1!important;min-width:0!important;width:100%!important;height:44px!important;margin:0!important;border:1px solid #dbe4f0!important;border-radius:12px!important;padding:0 13px!important;background:#fff!important;box-sizing:border-box!important}
.nexei-assistant-modal .assistant-form button[type=submit]{grid-column:3!important;grid-row:1!important;width:86px!important;height:44px!important;margin:0!important;padding:0 12px!important;border-radius:12px!important}
.assistant-document-card-v350{overflow:visible!important}.assistant-document-card-v350 select{min-height:38px!important}
.assistant-workflow-card-v352{display:grid;gap:9px;margin-top:9px;padding:12px;border:1px solid #dbeafe;border-radius:14px;background:#f8fbff}.assistant-workflow-card-v352 select{width:100%;min-height:40px;border:1px solid #cbd5e1;border-radius:10px;padding:8px}.assistant-workflow-card-v352 .row-actions{display:flex;gap:7px;flex-wrap:wrap}.assistant-workflow-card-v352 small{color:#64748b;line-height:1.45}

/* Canvas: inspector sempre visível na área útil, empty state e cores dentro da edição. */
.canvas-page .canvas-color-tool-v350{display:none!important}
@media(min-width:1201px){
 .canvas-page .wf-inspector{position:fixed!important;right:22px!important;top:96px!important;width:330px!important;max-width:calc(100vw - 130px)!important;max-height:calc(100vh - 118px)!important;overflow:auto!important;z-index:1500!important;background:#fff!important;border:1px solid #dbe4f0!important;border-radius:16px!important;padding:15px!important;box-shadow:0 16px 44px rgba(15,23,42,.15)!important}
}
.canvas-page .wf-inspector-head{position:sticky;top:-15px;z-index:2;background:#fff;padding:10px 0 8px;margin-top:-6px!important;border-bottom:1px solid #eef2f7}
.canvas-node-color-v352{display:grid;gap:8px;margin:12px 0;padding:12px;border:1px solid #dbe4f0;border-radius:12px;background:#f8fafc}.canvas-node-color-v352>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.canvas-node-color-v352 b{font-size:12px}.canvas-node-color-v352 input[type=color]{width:46px;height:34px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:3px}.canvas-color-swatches-v352{display:flex!important;justify-content:flex-start!important;gap:6px!important;flex-wrap:wrap}.canvas-color-swatches-v352 button{width:25px;height:25px;border:2px solid #fff;border-radius:8px;box-shadow:0 0 0 1px #cbd5e1;padding:0}.canvas-node-color-v352 small{color:#64748b;line-height:1.4}
.canvas-empty-guide-v352{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);z-index:3;width:min(560px,calc(100% - 40px));padding:22px;border:1px dashed #bfcce1;border-radius:18px;background:rgba(255,255,255,.97);text-align:center;display:grid;gap:12px;box-shadow:0 14px 38px rgba(15,23,42,.08)}.canvas-empty-guide-v352 h3{margin:0;color:#172033}.canvas-empty-guide-v352 p{margin:0;color:#64748b;line-height:1.55}.canvas-empty-actions-v352{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.canvas-empty-guide-v352 code{display:block;text-align:left;white-space:pre-wrap;padding:11px;border-radius:10px;background:#0f172a;color:#e2e8f0;font-size:11px;line-height:1.5}
.canvas-ai-v350{border-color:#dbe4f0!important;border-radius:16px!important;background:#fff!important}.canvas-ai-head-v350{padding:14px 16px!important}.canvas-ai-tutorial-v352{display:grid;gap:10px;margin:10px 0 14px;padding:13px;border:1px solid #dbe4f0;border-radius:13px;background:#f8fafc}.canvas-ai-tutorial-v352 summary{cursor:pointer;font-weight:800;color:#334155}.canvas-ai-tutorial-v352 pre{white-space:pre-wrap;margin:8px 0 0;padding:11px;border-radius:10px;background:#0f172a;color:#e2e8f0;font-size:11px;line-height:1.5}.canvas-ai-tutorial-v352 ul{margin:6px 0 0;padding-left:18px;color:#64748b;font-size:12px;line-height:1.55}
.canvas-node.selected{outline:3px solid rgba(79,70,229,.34)!important;outline-offset:3px!important}

/* Meu perfil: superfícies consistentes, menos cru e melhor alinhado. */
.profile-panel-v309{background:transparent!important;border:0!important;padding:0!important}
.profile-panel-v309>.panel-head{padding:18px 20px!important;margin-bottom:14px!important;background:#fff;border:1px solid var(--nexei-line-v352);border-radius:16px}
.profile-panel-v309 .profile-layout-v309{grid-template-columns:270px minmax(0,1fr)!important;gap:16px!important;align-items:start!important}
.profile-panel-v309 .profile-hero-card{border:1px solid var(--nexei-line-v352)!important;border-radius:18px!important;padding:20px!important;background:#fff!important;box-shadow:none!important;position:sticky;top:76px}
.profile-panel-v309 .profile-avatar-xl{width:92px!important;height:92px!important;margin:0 auto 13px!important}.profile-panel-v309 .profile-hero-card h3{text-align:center;font-size:21px!important}.profile-panel-v309 .profile-hero-card>p{text-align:center}.profile-panel-v309 .profile-meta-list{gap:8px!important}.profile-panel-v309 .profile-meta-list div{padding:10px 12px!important;border-radius:12px!important;background:#f8fafc!important}
.profile-panel-v309 .profile-form-v309{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;padding:18px!important;background:#fff!important;border:1px solid var(--nexei-line-v352)!important;border-radius:18px!important;box-sizing:border-box!important}
.profile-panel-v309 .profile-avatar-upload-v311{grid-column:1/-1!important;padding:14px!important;border:1px solid #e6ebf3!important;border-radius:14px!important;background:#f8fafc!important}.profile-panel-v309 .profile-form-v309 label{min-width:0!important;display:grid!important;gap:6px!important;font-weight:700!important;color:#334155!important}.profile-panel-v309 .profile-form-v309 input,.profile-panel-v309 .profile-form-v309 textarea{width:100%!important;box-sizing:border-box!important;border:1px solid #cfd9e8!important;border-radius:10px!important;background:#fff!important}.profile-panel-v309 .profile-form-v309 input{min-height:42px!important}.profile-panel-v309 .profile-form-v309 textarea{min-height:112px!important}.profile-panel-v309 .profile-form-v309 .full{grid-column:1/-1!important}.profile-panel-v309 .form-actions{padding-top:4px!important}

/* Busca ampliada com ícones nativos do Nexei. */
.search-center-v352{max-width:1500px!important}.search-center-head-v352{align-items:center!important}.search-shortcut-v352{display:flex;align-items:center;gap:5px;color:#94a3b8;font-size:11px}.search-shortcut-v352 kbd{padding:4px 6px;border:1px solid #d8e0eb;border-bottom-width:2px;border-radius:6px;background:#fff;color:#475569;font-size:10px}.search-shortcut-v352 small{margin-left:4px}.search-center-form-v352{box-shadow:none!important}.search-center-query-v352{background:#f8fafc!important}.search-main-icon-v352{display:grid;place-items:center!important}.search-main-icon-v352 img{width:21px!important;height:21px!important;object-fit:contain}.search-filters-v352 summary::before{content:""!important;width:16px;height:16px;background:url("/?page=icon_asset&name=relatorio.png") center/contain no-repeat;display:inline-block}.search-tabs-v352 a i{width:19px;height:19px;display:grid;place-items:center}.search-tabs-v352 a i img{width:17px;height:17px;object-fit:contain}.search-result-icon-v351{overflow:hidden}.search-result-icon-v351 img{width:23px;height:23px;object-fit:contain}.search-empty-icon-v352{width:48px;height:48px;margin:0 auto 4px;display:grid;place-items:center;border-radius:14px;background:#eef2ff}.search-empty-icon-v352 img{width:24px;height:24px;object-fit:contain}

/* Usuários: modal em abas no estilo Nexei, sem formulário gigante. */
.user-admin-dialog-v307{max-width:1040px!important}.user-admin-modal-form-v307.is-tabbed-v352{display:flex!important;flex-direction:column!important;min-height:0!important}.user-tabs-v352{display:flex;gap:4px;padding:0 18px;border-bottom:1px solid #e4e9f2;overflow-x:auto;background:#fff}.user-tabs-v352 button{appearance:none;border:0;background:transparent;padding:12px 14px;color:#667085;font-weight:750;cursor:pointer;border-bottom:2px solid transparent;white-space:nowrap}.user-tabs-v352 button.active{color:#4f46e5;border-bottom-color:#4f46e5}.user-tab-panels-v352{padding:16px 18px 6px;overflow:auto;min-height:360px;max-height:calc(100vh - 225px)}.user-tab-panel-v352[hidden]{display:none!important}.user-tab-panel-v352{display:grid;gap:14px}.user-tab-panel-v352 .user-modal-grid-v307{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}.user-tab-panel-v352 .user-modal-section-v307{margin:0!important}.user-tab-panel-v352 .user-invite-note-v351{grid-column:1/-1!important}.user-tab-panel-v352 .user-modal-active-v307{min-height:48px!important}.user-admin-modal-actions-v307{margin-top:auto!important;border-top:1px solid #e4e9f2!important;background:#fff!important}

/* Preferências de notificação em switches. */
.notification-preferences-v352{border:1px solid var(--nexei-line-v352);border-radius:16px;background:#fff;overflow:hidden}.notification-pref-head-v352{padding:16px 18px;border-bottom:1px solid #edf1f6}.notification-pref-head-v352 h3{margin:3px 0 3px}.notification-pref-head-v352 p{margin:0;color:#64748b;font-size:12px}.notification-pref-grid-v352{display:grid}.notification-pref-grid-head-v352,.notification-pref-row-v352{display:grid;grid-template-columns:minmax(260px,1fr) 135px 135px;align-items:center;gap:10px;padding:10px 16px}.notification-pref-grid-head-v352{background:#f8fafc;color:#64748b;font-size:11px;text-transform:uppercase;letter-spacing:.04em;font-weight:800}.notification-pref-grid-head-v352 b{text-align:center}.notification-pref-row-v352{border-top:1px solid #eef2f7}.notification-pref-row-v352:first-of-type{border-top:0}.notification-pref-row-v352>div{display:grid;gap:3px}.notification-pref-row-v352>div>b{font-size:13px;color:#25324a}.notification-pref-row-v352>div>small{font-size:11px;color:#7a879a}.switch-v352{display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}.switch-v352 input{position:absolute;opacity:0;pointer-events:none}.switch-v352 span{position:relative;width:42px;height:23px;border-radius:999px;background:#cbd5e1;transition:.15s ease;box-shadow:inset 0 0 0 1px rgba(15,23,42,.05)}.switch-v352 span::after{content:"";position:absolute;width:17px;height:17px;left:3px;top:3px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.2);transition:.15s ease}.switch-v352 input:checked+span{background:#4f46e5}.switch-v352 input:checked+span::after{transform:translateX(19px)}.switch-v352 em{font-style:normal;font-size:10px;color:#64748b;display:none}.notification-pref-actions-v352{display:flex;justify-content:flex-end;margin-top:10px}.notification-history-v352{margin-top:18px;border-top:1px solid #edf1f6;padding-top:16px}.notification-history-head-v352{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.notification-history-head-v352 h3{margin:0}.notification-history-head-v352 p{margin:3px 0 0;color:#64748b;font-size:11px}

@media(max-width:1000px){.profile-panel-v309 .profile-layout-v309{grid-template-columns:1fr!important}.profile-panel-v309 .profile-hero-card{position:static!important}.profile-panel-v309 .profile-form-v309{grid-template-columns:repeat(2,minmax(0,1fr))!important}.notification-pref-grid-head-v352,.notification-pref-row-v352{grid-template-columns:minmax(200px,1fr) 110px 110px}}
@media(max-width:900px){.nexei-tooltip-v352{display:none!important}.sidebar-v352 .brand-copy-v351,.sidebar-v352 .nav-text{display:inline!important;width:auto!important;max-width:none!important;opacity:1!important;visibility:visible!important}.sidebar-v352 .brand-mark img{width:42px!important;height:42px!important}.sidebar-v352 nav a .nav-icon img{width:24px!important;height:24px!important}.canvas-page .wf-inspector{position:static!important;width:auto!important;max-height:none!important}.search-shortcut-v352{display:none}.user-tab-panels-v352{max-height:calc(100svh - 220px)}}
@media(max-width:700px){.nexei-assistant-modal .assistant-form{grid-template-columns:42px minmax(0,1fr) 74px!important;padding:10px!important;gap:6px!important}.nexei-assistant-modal .assistant-file-btn-v350{width:42px!important;min-width:42px!important}.nexei-assistant-modal .assistant-form button[type=submit]{width:74px!important;padding:0 7px!important}.profile-panel-v309 .profile-form-v309{grid-template-columns:1fr!important}.profile-panel-v309 .profile-form-v309>*{grid-column:1!important}.notification-pref-grid-head-v352{grid-template-columns:minmax(150px,1fr) 66px 66px;padding:9px 8px}.notification-pref-row-v352{grid-template-columns:minmax(150px,1fr) 66px 66px;padding:10px 8px}.notification-pref-row-v352>div>small{display:none}.switch-v352 span{width:38px;height:22px}.switch-v352 span::after{width:16px;height:16px}.switch-v352 input:checked+span::after{transform:translateX(16px)}.notification-history-head-v352{align-items:flex-start;flex-direction:column}.user-tab-panel-v352 .user-modal-grid-v307{grid-template-columns:1fr!important}.canvas-empty-guide-v352{top:43%;padding:16px}.canvas-empty-guide-v352 code{font-size:10px}}
