/* AdvCorp Ecosystem v13 — contrato visual único baseado no AdvFinance */
:root{--eco-sidebar-width:214px;--eco-radius:2px;--eco-radius-sm:2px;--eco-page-x:12px;--eco-page-y:10px;--eco-content:1800px;--eco-bg:#eef3f8;--eco-panel:#fff;--eco-ink:#132238;--eco-muted:#66758b;--eco-line:#cfd9e6;--eco-accent:#1769e0;--eco-accent-strong:#0e55bd;--eco-accent-soft:#eaf2ff;--eco-sidebar:#071e3a;--eco-sidebar-active:#0b315d;--eco-sidebar-muted:#b9cbe0;--eco-accent-contrast:#fff;--eco-success:#14815f;--eco-danger:#b33849;--eco-shadow:none;--eco-shadow-lg:none}
body.portal-finance{--eco-bg:#eef3f8;--eco-ink:#132238;--eco-muted:#66758b;--eco-line:#cfd9e6;--eco-accent:#1769e0;--eco-accent-strong:#0e55bd;--eco-accent-soft:#eaf2ff;--eco-sidebar:#071e3a;--eco-sidebar-active:#0b315d;--eco-sidebar-muted:#b9cbe0;--eco-accent-contrast:#fff;--eco-shadow:none}
body.portal-jus{--eco-bg:#eef3f8;--eco-ink:#132238;--eco-muted:#66758b;--eco-line:#cfd9e6;--eco-accent:#1769e0;--eco-accent-strong:#0e55bd;--eco-accent-soft:#eaf2ff;--eco-sidebar:#071e3a;--eco-sidebar-active:#0b315d;--eco-sidebar-muted:#b9cbe0;--eco-accent-contrast:#fff;--eco-shadow:none}
body.portal-zap{--eco-bg:#eef3f8;--eco-ink:#132238;--eco-muted:#66758b;--eco-line:#cfd9e6;--eco-accent:#1769e0;--eco-accent-strong:#0e55bd;--eco-accent-soft:#eaf2ff;--eco-sidebar:#071e3a;--eco-sidebar-active:#0b315d;--eco-sidebar-muted:#b9cbe0;--eco-accent-contrast:#fff;--eco-shadow:none}
body.portal-corp{--eco-bg:#eef3f8;--eco-ink:#132238;--eco-muted:#66758b;--eco-line:#cfd9e6;--eco-accent:#1769e0;--eco-accent-strong:#0e55bd;--eco-accent-soft:#eaf2ff;--eco-sidebar:#071e3a;--eco-sidebar-active:#0b315d;--eco-sidebar-muted:#b9cbe0;--eco-accent-contrast:#fff;--eco-shadow:none}
body.portal-superadmin{--eco-bg:#f5f6fa;--eco-ink:#202237;--eco-muted:#72758b;--eco-line:#e0e2eb;--eco-accent:#5b4bd8;--eco-accent-strong:#4032ad;--eco-accent-soft:#efedff;--eco-sidebar:#18162d;--eco-sidebar-active:#343052;--eco-sidebar-muted:#c3c0db;--eco-accent-contrast:#fff}
html:root{--eco-scale:.9064;--eco-vh:110.326567vh;--eco-dvh:110.326567dvh;--eco-vw:110.326567vw;zoom:var(--eco-scale)!important;background:var(--eco-bg)}
body.portal{margin:0;background:var(--eco-bg)!important;color:var(--eco-ink)!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;font-size:14px!important;line-height:1.45;overflow-x:hidden}
body.portal *,body.portal *::before,body.portal *::after{box-sizing:border-box}
body.portal button,body.portal input,body.portal select,body.portal textarea{font:inherit}
body.portal button{cursor:pointer}
body.portal button:disabled{cursor:not-allowed;opacity:.55}
body.portal h1,body.portal h2,body.portal h3,body.portal h4{color:var(--eco-ink);letter-spacing:-.025em}
body.portal .boot{min-height:var(--eco-vh);display:grid;place-content:center;justify-items:center;gap:14px;text-align:center;color:var(--eco-muted);font-weight:800}
body.portal .boot span{width:40px;height:40px;border-radius:50%;border:4px solid var(--eco-line);border-top-color:var(--eco-accent);animation:eco-spin .8s linear infinite}
@keyframes eco-spin{to{transform:rotate(360deg)}}

/* Estrutura dos três produtos operacionais */
body.portal-finance .shell,body.portal-jus .shell,body.portal-zap .shell{display:block!important;min-height:var(--eco-vh)!important;width:100%!important;min-width:0!important}
body.portal-finance .sidebar,body.portal-jus .sidebar,body.portal-zap .sidebar{position:fixed!important;inset:0 auto 0 0!important;z-index:40!important;width:var(--eco-sidebar-width)!important;height:var(--eco-vh)!important;padding:24px 18px 18px!important;background:var(--eco-sidebar)!important;color:#fff!important;display:flex!important;flex-direction:column!important;box-shadow:none!important;overflow-y:auto!important;transform:none}
body.portal-finance .main,body.portal-jus .main{margin-left:var(--eco-sidebar-width)!important;width:calc(100% - var(--eco-sidebar-width))!important;min-width:0!important;padding:0!important}
body.portal-finance .main>.content,body.portal-jus .main>.content{width:min(100%,calc(var(--eco-content) + (var(--eco-page-x) * 2)))!important;max-width:none!important;margin:0 auto!important;padding:var(--eco-page-y) var(--eco-page-x) 80px!important;min-width:0!important}
body.portal-zap main.content{margin-left:var(--eco-sidebar-width)!important;width:calc(100% - var(--eco-sidebar-width))!important;max-width:none!important;min-width:0!important;padding:var(--eco-page-y) var(--eco-page-x) 80px!important;background:var(--eco-bg)!important}
body.portal-zap main.content>*:not(.assistant-trigger):not(.assistant-panel){max-width:var(--eco-content);margin-left:auto;margin-right:auto}

/* Marca com área visual idêntica */
body.portal .brand{width:100%!important;min-height:64px!important;padding:0 6px 24px!important;margin:0!important;border:0!important;background:transparent!important;color:#fff!important;display:flex!important;align-items:center!important;gap:12px!important;text-align:left!important;text-decoration:none!important}
body.portal .brand>img,body.portal .brand-logo,body.portal .brand-image{width:52px!important;height:52px!important;min-width:52px!important;max-width:52px!important;min-height:52px!important;max-height:52px!important;flex:0 0 52px!important;border-radius:15px!important;object-fit:cover!important;object-position:center!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:hidden!important;transform:none!important}
body.portal .brand-logo img,body.portal .brand>img,body.portal img.brand-image{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;padding:0!important;margin:0!important;border:0!important;border-radius:15px!important;background:transparent!important;transform:none!important}
body.portal .brand strong,body.portal .brand small{display:block!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.portal .brand strong{font-size:19px!important;line-height:1.15!important;font-weight:850!important;letter-spacing:-.035em!important;color:#fff!important}
body.portal .brand small{margin-top:4px!important;font-size:11px!important;line-height:1.2!important;color:var(--eco-sidebar-muted)!important}

/* Navegação */
body.portal-finance .nav,body.portal-jus .nav,body.portal-zap .sidebar nav{display:flex!important;flex-direction:column!important;gap:7px!important;flex:1!important}
body.portal-finance .nav button,body.portal-jus .nav button,body.portal-zap .sidebar nav>a,body.portal-zap .sidebar-management-trigger{min-height:43px!important;padding:11px 13px!important;border:0!important;border-radius:12px!important;background:transparent!important;color:var(--eco-sidebar-muted)!important;display:flex!important;align-items:center!important;gap:10px!important;text-align:left!important;text-decoration:none!important;font-size:13px!important;font-weight:720!important;line-height:1.2!important;transition:background .15s ease,color .15s ease,transform .15s ease!important}
body.portal-finance .nav button:hover,body.portal-finance .nav button.active,body.portal-jus .nav button:hover,body.portal-jus .nav button.active,body.portal-zap .sidebar nav>a:hover,body.portal-zap .sidebar nav>a.active,body.portal-zap .sidebar-management-trigger:hover,body.portal-zap .sidebar-management-trigger.active{background:var(--eco-sidebar-active)!important;color:#fff!important;box-shadow:inset 3px 0 var(--eco-accent)!important}
body.portal-finance .nav-icon,body.portal-jus .nav-icon,body.portal-zap .sidebar nav svg{width:20px!important;height:20px!important;min-width:20px!important;max-width:20px!important;flex:0 0 20px!important;display:block!important;font-size:18px!important;text-align:center!important}
body.portal-zap .sidebar-submenu{padding:4px 0 7px 28px!important;gap:3px!important}
body.portal-zap .sidebar nav .sidebar-submenu a{min-height:34px!important;padding:8px 10px!important;border-radius:10px!important;font-size:11px!important;color:var(--eco-sidebar-muted)!important}
body.portal-zap .sidebar nav .sidebar-submenu a.active,body.portal-zap .sidebar nav .sidebar-submenu a:hover{background:var(--eco-sidebar-active)!important;color:#fff!important}

/* Usuário no rodapé */
body.portal .sidebar-footer,body.portal-zap .sidebar-user{margin-top:auto!important;padding:18px 6px 0!important;border-top:1px solid rgba(255,255,255,.14)!important;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;color:#fff!important}
body.portal .sidebar-footer .avatar,body.portal-zap .sidebar-user .avatar{width:39px!important;height:39px!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:var(--eco-accent)!important;color:var(--eco-accent-contrast)!important;font-size:13px!important;font-weight:900!important}
body.portal .sidebar-footer strong,body.portal .sidebar-footer small,body.portal-zap .sidebar-user strong,body.portal-zap .sidebar-user small{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.portal .sidebar-footer strong,body.portal-zap .sidebar-user strong{font-size:12px!important;color:#fff!important}
body.portal .sidebar-footer small,body.portal-zap .sidebar-user small{margin-top:2px!important;font-size:10px!important;color:var(--eco-sidebar-muted)!important}
body.portal .sidebar-footer button,body.portal-zap .sidebar-user button{border:0!important;background:transparent!important;color:#fff!important;width:34px!important;height:34px!important;padding:6px!important;border-radius:9px!important;display:grid!important;place-items:center!important}
body.portal .sidebar-footer button:hover,body.portal-zap .sidebar-user button:hover{background:rgba(255,255,255,.1)!important}

/* Título e descrição sempre visíveis */
body.portal .page-title,body.portal .page-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:24px!important;margin:0 0 22px!important;padding:0!important;background:transparent!important;border:0!important;min-height:0!important}
body.portal .page-title>div,body.portal .page-head>div{min-width:0!important}
body.portal .eyebrow{display:block!important;margin:0!important;text-transform:uppercase!important;letter-spacing:.14em!important;font-size:11px!important;line-height:1.3!important;font-weight:900!important;color:var(--eco-accent-strong)!important}
body.portal .page-title h1,body.portal .page-head h1{display:block!important;margin:5px 0 5px!important;font-size:31px!important;line-height:1.12!important;letter-spacing:-.045em!important;color:var(--eco-ink)!important;font-weight:850!important}
body.portal .page-title p,body.portal .page-head p{display:block!important;margin:0!important;max-width:780px!important;color:var(--eco-muted)!important;font-size:14px!important;line-height:1.55!important}
body.portal .page-toolbar{display:flex;justify-content:flex-end;margin:0 0 18px}

/* Superfícies */
body.portal .card,body.portal .panel,body.portal .metric,body.portal .stat{background:var(--eco-panel)!important;border:1px solid var(--eco-line)!important;border-radius:var(--eco-radius)!important;box-shadow:var(--eco-shadow)!important;color:var(--eco-ink)!important}
body.portal .card,body.portal .panel{padding:20px!important}
body.portal .metric,body.portal .stat{padding:19px!important}
body.portal .metric-grid,body.portal .stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;margin:0 0 20px!important}
body.portal .metric small,body.portal .stat small{display:block!important;color:var(--eco-muted)!important;font-size:11px!important;font-weight:750!important}
body.portal .metric strong,body.portal .stat strong{display:block!important;margin-top:8px!important;font-size:26px!important;line-height:1.1!important;letter-spacing:-.04em!important;color:var(--eco-ink)!important}
body.portal .section-head,body.portal .card-title,body.portal .toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;margin-bottom:15px!important}
body.portal .section-head h2,body.portal .section-head h3,body.portal .card-title h2,body.portal .card-title h3{margin:0!important;color:var(--eco-ink)!important}
body.portal .section-head p,body.portal .card-title p{margin:4px 0 0!important;color:var(--eco-muted)!important}
body.portal .empty{padding:35px!important;text-align:center!important;color:var(--eco-muted)!important}

/* Botões */
body.portal .primary,body.portal .secondary,body.portal .ghost,body.portal .icon-btn{min-height:40px!important;border-radius:var(--eco-radius-sm)!important;padding:9px 14px!important;border:1px solid transparent!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;font-size:13px!important;line-height:1.2!important;font-weight:820!important;text-decoration:none!important;white-space:nowrap!important}
body.portal .primary{background:var(--eco-accent)!important;color:var(--eco-accent-contrast)!important;border-color:var(--eco-accent)!important;box-shadow:none!important}
body.portal .primary:hover{filter:brightness(1.06)!important;transform:translateY(-1px)}
body.portal .secondary{background:#fff!important;color:var(--eco-ink)!important;border-color:var(--eco-line)!important}
body.portal .secondary:hover{background:var(--eco-accent-soft)!important;border-color:color-mix(in srgb,var(--eco-accent) 45%,var(--eco-line))!important}
body.portal .ghost{background:transparent!important;color:var(--eco-ink)!important;border-color:var(--eco-line)!important}
body.portal .icon-btn{width:40px!important;padding:0!important;background:#fff!important;color:var(--eco-ink)!important;border-color:var(--eco-line)!important}
body.portal .primary svg,body.portal .secondary svg,body.portal .ghost svg{width:17px!important;height:17px!important}

/* Formulários */
body.portal .field,body.portal label.field{display:grid!important;gap:7px!important}
body.portal .field>span,body.portal label.field>span,body.portal form label:not(.check-line):not(.confirm-row)>span{font-size:12px!important;font-weight:800!important;color:color-mix(in srgb,var(--eco-ink) 75%,var(--eco-muted))!important}
body.portal input,body.portal select,body.portal textarea{width:100%;min-height:43px;border:1px solid var(--eco-line)!important;border-radius:var(--eco-radius-sm)!important;padding:10px 12px!important;background:#fff!important;color:var(--eco-ink)!important;outline:0!important;box-shadow:none!important}
body.portal textarea{min-height:100px;resize:vertical}
body.portal input:focus,body.portal select:focus,body.portal textarea:focus{border-color:color-mix(in srgb,var(--eco-accent) 66%,#fff)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--eco-accent) 14%,transparent)!important}
body.portal input::placeholder,body.portal textarea::placeholder{color:#9b958b!important}
body.portal .form-grid,body.portal .dialog-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
body.portal .form-grid .wide,body.portal .dialog-grid .wide{grid-column:1/-1!important}
body.portal .actions,body.portal .form-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;margin-top:20px!important}

/* Tabelas e listas */
body.portal .table-wrap{width:100%;overflow:auto;border-radius:14px}
body.portal .table{width:100%!important;border-collapse:collapse!important;background:#fff!important}
body.portal .table th{padding:11px!important;border-bottom:1px solid var(--eco-line)!important;text-align:left!important;color:var(--eco-muted)!important;font-size:11px!important;font-weight:850!important;text-transform:uppercase!important;letter-spacing:.08em!important;white-space:nowrap!important}
body.portal .table td{padding:13px 11px!important;border-bottom:1px solid color-mix(in srgb,var(--eco-line) 70%,#fff)!important;vertical-align:top!important;color:var(--eco-ink)!important}
body.portal .table tr:last-child td{border-bottom:0!important}
body.portal .table tbody tr:hover{background:color-mix(in srgb,var(--eco-accent-soft) 45%,#fff)!important}
body.portal .badge{display:inline-flex!important;align-items:center!important;min-height:25px!important;padding:5px 9px!important;border:0!important;border-radius:999px!important;background:#edf2f7!important;color:#52647c!important;font-size:11px!important;font-weight:900!important;line-height:1!important;white-space:nowrap!important}

/* Diálogos */
body.portal dialog,body.portal .dialog,body.portal .modal-dialog{width:min(760px,calc(var(--eco-vw) - 30px))!important;max-height:calc(var(--eco-vh) - 36px)!important;overflow:auto!important;border:0!important;border-radius:22px!important;padding:24px!important;background:#fff!important;color:var(--eco-ink)!important;box-shadow:var(--eco-shadow-lg)!important}
body.portal dialog::backdrop{background:rgba(22,17,13,.62)!important;backdrop-filter:blur(4px)!important}
body.portal .dialog-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:20px!important;margin-bottom:18px!important}
body.portal .dialog-head h2{margin:4px 0!important;font-size:24px!important}
body.portal .dialog-head p{margin:0!important;color:var(--eco-muted)!important}
body.portal .dialog-close,body.portal .dialog-head>button{width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border:0!important;border-radius:50%!important;background:#eef3f8!important;color:var(--eco-ink)!important;font-size:22px!important;display:grid!important;place-items:center!important}
body.portal .notice{position:fixed!important;right:24px!important;bottom:24px!important;z-index:100!important;padding:13px 17px!important;border-radius:12px!important;background:#071e3a!important;color:#fff!important;box-shadow:var(--eco-shadow-lg)!important;font-weight:750!important}
body.portal .notice.error{background:#8f1d17!important}

/* AdvJus alinhado ao grid do AdvFinance */
body.portal-jus .matter-header{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:24px!important;margin:0 0 22px!important}
body.portal-jus .matter-header h2{font-size:31px!important;margin:5px 0!important}
body.portal-jus .matter-header p{color:var(--eco-muted)!important;margin:0!important}
body.portal-jus .matter-row{border-radius:0!important;padding:13px 15px!important}
body.portal-jus .matter-row:hover{background:var(--eco-accent-soft)!important}
body.portal-jus .tabs,body.portal-zap .page-tabs{display:flex!important;gap:8px!important;width:100%!important;margin:0 0 18px!important;padding:4px!important;border:1px solid var(--eco-line)!important;border-radius:14px!important;background:#fff!important;overflow-x:auto!important}
body.portal-jus .tabs button,body.portal-zap .page-tabs button{min-height:38px!important;padding:8px 13px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:var(--eco-muted)!important;font-size:12px!important;font-weight:800!important;white-space:nowrap!important}
body.portal-jus .tabs button.active,body.portal-zap .page-tabs button.active{background:var(--eco-accent-soft)!important;color:var(--eco-accent-strong)!important;box-shadow:none!important}
body.portal-jus .assistant-trigger{background:var(--eco-accent)!important;color:var(--eco-accent-contrast)!important}

/* AdvZap: remove escalas e excesso de patches antigos */
body.portal-zap .page-head{max-width:var(--eco-content)!important}
body.portal-zap .page-head::before{display:none!important}
body.portal-zap .page-head .page-eyebrow{display:block!important}
body.portal-zap .card{margin-bottom:14px!important}
body.portal-zap .mobile-menu,body.portal-finance .mobile-menu,body.portal-jus .mobile-menu{display:none!important}
body.portal-zap .assistant-trigger{background:var(--eco-accent)!important;color:#fff!important}

@media(max-width:1050px){
 body.portal .metric-grid,body.portal .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:840px){
 :root{--eco-page-x:15px;--eco-page-y:72px}
 body.portal-finance .sidebar,body.portal-jus .sidebar,body.portal-zap .sidebar{transform:translateX(-100%)!important;transition:transform .2s ease!important;width:280px!important}
 body.portal-finance .sidebar.open,body.portal-jus .sidebar.open,body.portal-zap .sidebar.open{transform:translateX(0)!important}
 body.portal-finance .main,body.portal-jus .main,body.portal-zap main.content{margin-left:0!important;width:100%!important}
 body.portal-finance .mobile-menu,body.portal-jus .mobile-menu,body.portal-zap .mobile-menu{display:grid!important;place-items:center!important;position:fixed!important;z-index:60!important;top:12px!important;left:12px!important;width:42px!important;height:42px!important;padding:0!important;border:0!important;border-radius:11px!important;background:var(--eco-sidebar)!important;color:#fff!important;box-shadow:0 10px 24px rgba(0,0,0,.16)!important}
 body.portal .page-title,body.portal .page-head,body.portal-jus .matter-header{flex-direction:column!important;align-items:stretch!important}
 body.portal .page-title .primary,body.portal .page-head .primary{width:100%!important}
 body.portal .form-grid,body.portal .dialog-grid{grid-template-columns:1fr!important}
 body.portal .form-grid .wide,body.portal .dialog-grid .wide{grid-column:auto!important}
 body.portal .actions,body.portal .form-actions{align-items:stretch!important;flex-direction:column-reverse!important}
 body.portal .actions>* ,body.portal .form-actions>*{width:100%!important}
}
@media(max-width:600px){
 body.portal .metric-grid,body.portal .stats{grid-template-columns:1fr!important}
 body.portal .page-title h1,body.portal .page-head h1,body.portal-jus .matter-header h2{font-size:27px!important}
 body.portal .card,body.portal .panel{padding:16px!important;border-radius:15px!important}
 body.portal .brand>img,body.portal .brand-logo,body.portal .brand-image{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;flex-basis:48px!important}
}

/* Falha controlada: evita tela branca quando um componente quebra. */
body.portal-zap .portal-fatal{min-height:var(--eco-vh);display:grid;place-content:center;justify-items:start;gap:12px;width:min(680px,calc(100% - 32px));margin:auto;padding:36px;color:var(--eco-ink)}
body.portal-zap .portal-fatal>img{width:68px;height:68px;border-radius:18px;object-fit:cover;margin-bottom:8px}
body.portal-zap .portal-fatal h1{margin:0;font-size:34px}
body.portal-zap .portal-fatal p{max-width:620px;margin:0;color:var(--eco-muted);font-size:16px}
body.portal-zap .portal-fatal-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
body.portal-zap .portal-fatal-actions a{text-decoration:none}
body.portal-zap .portal-fatal details{margin-top:8px;color:var(--eco-muted)}
body.portal-zap .portal-fatal code{display:block;max-width:620px;margin-top:8px;padding:12px;border-radius:10px;background:#fff;border:1px solid var(--eco-line);overflow-wrap:anywhere}

/* Contrato de tamanho visual das marcas em todo o ecossistema. */
body.portal-corp .portal-shell .quantum-logo.compact,
body.portal-superadmin .portal-shell .quantum-logo.compact{
  width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;
  flex:0 0 52px!important;padding:0!important;border:0!important;border-radius:15px!important;
  background:transparent!important;box-shadow:none!important;overflow:hidden!important;
}
body.portal-corp .portal-shell .quantum-logo.compact img,
body.portal-superadmin .portal-shell .quantum-logo.compact img{
  display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;
  object-position:center!important;padding:0!important;margin:0!important;border:0!important;
  border-radius:15px!important;background:transparent!important;transform:none!important;
}
body.portal-corp .product-status-logo{width:68px!important;height:68px!important;min-width:68px!important;flex:0 0 68px!important;padding:0!important;border-radius:18px!important;overflow:hidden!important}
body.portal-corp .product-status-logo img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;padding:0!important;transform:none!important}

/* v13 — correções de legibilidade e consistência do AdvCorp */
body.portal-corp .auth-brand-copy h1,
body.portal-corp .auth-brand-copy h2,
body.portal-corp .auth-brand-copy h3,
body.portal-corp .auth-brand-copy .eyebrow,
body.portal-corp .auth-brand-top strong,
body.portal-corp .about-hero h1,
body.portal-corp .about-hero h2,
body.portal-corp .about-hero h3,
body.portal-corp .about-hero .eyebrow,
body.portal-corp .about-hero-mark strong,
body.portal-corp .principles-panel.dark h1,
body.portal-corp .principles-panel.dark h2,
body.portal-corp .principles-panel.dark h3,
body.portal-corp .principles-panel.dark .eyebrow{
  color:#fff!important;
}
body.portal-corp .auth-brand-copy>p,
body.portal-corp .about-hero p,
body.portal-corp .about-hero-mark span,
body.portal-corp .principles-panel.dark p,
body.portal-corp .principles-panel.dark li{color:#d6e3f2!important}
body.portal-corp .portal-shell .page-intro{
  display:flex!important;align-items:flex-start!important;justify-content:space-between!important;
  gap:24px!important;margin:0 0 22px!important;padding:0!important;min-height:84px!important;
  overflow:visible!important;scroll-margin-top:96px!important;
}
body.portal-corp .portal-shell .page-intro>div{min-width:0!important}
body.portal-corp .portal-shell .page-intro .eyebrow{display:block!important;color:var(--eco-accent-strong)!important}
body.portal-corp .portal-shell .page-intro h1{
  display:block!important;margin:5px 0 5px!important;font-size:31px!important;line-height:1.12!important;
  letter-spacing:-.045em!important;color:var(--eco-ink)!important;font-weight:850!important;
}
body.portal-corp .portal-shell .page-intro p{
  display:block!important;margin:0!important;max-width:780px!important;color:var(--eco-muted)!important;
  font-size:14px!important;line-height:1.55!important;
}
body.portal-corp .portal-shell .tools{
  width:100%!important;max-width:1240px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
}
body.portal-corp .portal-shell .tool{min-height:232px!important;padding:19px!important}
body.portal-corp .portal-shell .tool-copy h2{font-size:22px!important}
body.portal-corp .portal-shell .navigation-error{max-width:760px;margin:0 auto;padding:28px!important}
body.portal-corp .portal-shell .navigation-error h2{margin:7px 0 8px;font-size:24px}
body.portal-corp .portal-shell .navigation-error p{color:var(--eco-muted);margin:0;line-height:1.55}
body.portal-corp .portal-shell .navigation-error-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
@media(max-width:1050px){body.portal-corp .portal-shell .tools{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){
  body.portal-corp .portal-shell .tools{grid-template-columns:1fr!important}
  body.portal-corp .portal-shell .page-intro{min-height:0!important}
  body.portal-corp .portal-shell .navigation-error-actions{flex-direction:column}
  body.portal-corp .portal-shell .navigation-error-actions>*{width:100%}
}

/* v13 — ajuda contextual do AdvFinance */
body.portal-finance .assistant-trigger{
  position:fixed!important;right:20px!important;bottom:18px!important;z-index:70!important;
  min-height:42px!important;padding:9px 13px!important;border:0!important;border-radius:999px!important;
  display:flex!important;align-items:center!important;gap:8px!important;background:var(--eco-accent)!important;
  color:var(--eco-accent-contrast)!important;font-weight:850!important;box-shadow:0 14px 30px rgba(120,80,0,.24)!important;
}
body.portal-finance .assistant-trigger span{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.48);font-size:13px}
body.portal-finance .assistant-trigger b{font-size:11px}
body.portal-finance .assistant-panel{
  position:fixed!important;right:20px!important;bottom:70px!important;z-index:75!important;
  width:min(380px,calc(var(--eco-vw) - 28px))!important;max-height:min(76vh,680px)!important;overflow:auto!important;
  background:#fff!important;border:1px solid var(--eco-line)!important;border-radius:20px!important;
  box-shadow:0 28px 70px rgba(73,49,0,.22)!important;color:var(--eco-ink)!important;
}
body.portal-finance .assistant-panel[hidden]{display:none!important}
body.portal-finance .assistant-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--eco-line);color:var(--eco-accent-strong)}
body.portal-finance .assistant-head strong{font-size:13px}
body.portal-finance .assistant-head button{width:32px;height:32px;padding:0;border:0;border-radius:50%;background:var(--eco-accent-soft);color:var(--eco-ink);font-size:20px}
body.portal-finance .assistant-body{padding:17px}
body.portal-finance .assistant-body h2{margin:0 0 7px;font-size:21px}
body.portal-finance .assistant-body>p{margin:0;color:var(--eco-muted);line-height:1.55}
body.portal-finance .assistant-note{margin-top:15px;padding:13px 14px;border-radius:13px;background:var(--eco-accent-soft);border:1px solid color-mix(in srgb,var(--eco-accent) 24%,var(--eco-line))}
body.portal-finance .assistant-note strong{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--eco-accent-strong)}
body.portal-finance .assistant-note p{margin:5px 0 0;color:var(--eco-ink);font-size:12px;line-height:1.5}
@media(max-width:720px){
  body.portal-finance .assistant-trigger{right:12px!important;bottom:12px!important;width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;justify-content:center!important}
  body.portal-finance .assistant-trigger b{display:none!important}
  body.portal-finance .assistant-trigger span{width:22px;height:22px}
  body.portal-finance .assistant-panel{right:10px!important;bottom:60px!important;width:calc(var(--eco-vw) - 20px)!important}
}

/* v14 — AdvZap com a mesma estrutura visual do AdvFinance. */
body.portal-zap .sidebar{padding:24px 18px 18px!important}
body.portal-zap .sidebar nav{display:flex!important;flex-direction:column!important;gap:7px!important;overflow-y:auto!important;padding:0!important}
body.portal-zap .sidebar nav>a{min-height:43px!important;padding:11px 13px!important;border-radius:12px!important;font-size:13px!important}
body.portal-zap .sidebar nav>a.active{box-shadow:inset 3px 0 var(--eco-accent)!important}
body.portal-zap main.content{padding:34px 34px 80px!important}
body.portal-zap main.content>*:not(.assistant-trigger):not(.assistant-panel){width:100%!important;max-width:1450px!important}
body.portal-zap .page-head,body.portal-zap .page-title{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:24px!important;margin:0 auto 22px!important}
body.portal-zap .page-head h1,body.portal-zap .page-title h1{font-size:31px!important;line-height:1.12!important;margin:5px 0!important}
body.portal-zap .card,body.portal-zap .panel,body.portal-zap .stat{border-radius:18px!important;box-shadow:var(--eco-shadow)!important}
body.portal-zap .management-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
body.portal-zap .management-card{min-height:170px!important;padding:20px!important}
body.portal-zap .management-link{text-decoration:none!important;color:inherit!important}
body.portal-zap .management-card h3{margin:0 0 6px!important;font-size:18px!important}
body.portal-zap .management-card p{margin:0!important;color:var(--eco-muted)!important;line-height:1.5!important}
body.portal-zap .management-open{margin-top:auto!important;color:var(--eco-accent-strong)!important;font-weight:850!important}
@media(max-width:1050px){body.portal-zap .management-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){
  body.portal-zap main.content{padding:70px 14px 76px!important}
  body.portal-zap .management-grid{grid-template-columns:1fr!important}
  body.portal-zap .page-head,body.portal-zap .page-title{flex-direction:column!important}
}

body.portal-zap .brand strong{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important}

/* ========================================================================== 
   v15 — shell visual único e restauração do menu Gestão do AdvZap
   AdvFinance é a referência estrutural para AdvZap e AdvJus.
   ========================================================================== */
:root{
  --eco-sidebar-width:270px;
  --eco-page-x:34px;
  --eco-page-y:32px;
  --eco-content:1450px;
  --eco-card-radius:18px;
  --eco-control-radius:11px;
}

/* O mesmo esqueleto em todos os produtos operacionais. */
body.portal-finance .shell,
body.portal-jus .shell,
body.portal-zap .shell{
  display:block!important;
  min-height:var(--eco-vh)!important;
  width:100%!important;
  background:var(--eco-bg)!important;
}
body.portal-finance .sidebar,
body.portal-jus .sidebar,
body.portal-zap .sidebar{
  position:fixed!important;
  inset:0 auto 0 0!important;
  width:var(--eco-sidebar-width)!important;
  height:var(--eco-vh)!important;
  padding:24px 18px 18px!important;
  display:flex!important;
  flex-direction:column!important;
  overflow-y:auto!important;
  background:var(--eco-sidebar)!important;
  color:#fff!important;
  z-index:50!important;
}
body.portal-finance .main,
body.portal-jus .main{
  margin-left:var(--eco-sidebar-width)!important;
  width:calc(100% - var(--eco-sidebar-width))!important;
  min-width:0!important;
  padding:0!important;
  background:var(--eco-bg)!important;
}
body.portal-finance .main>.content,
body.portal-jus .main>.content,
body.portal-zap main.content{
  width:calc(100% - var(--eco-sidebar-width))!important;
  max-width:none!important;
  min-width:0!important;
  margin:0 0 0 var(--eco-sidebar-width)!important;
  padding:var(--eco-page-y) var(--eco-page-x) 84px!important;
  background:var(--eco-bg)!important;
}
body.portal-finance .main>.content,
body.portal-jus .main>.content{
  width:100%!important;
  margin:0!important;
}
body.portal-finance .main>.content>*:not(.assistant-trigger):not(.assistant-panel),
body.portal-jus .main>.content>*:not(.assistant-trigger):not(.assistant-panel),
body.portal-zap main.content>*:not(.assistant-trigger):not(.assistant-panel){
  width:100%!important;
  max-width:var(--eco-content)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Marca: mesma caixa, mesma ocupação e mesma hierarquia. */
body.portal-finance .brand,
body.portal-jus .brand,
body.portal-zap .brand{
  width:100%!important;
  min-height:70px!important;
  padding:0 6px 24px!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  color:#fff!important;
  text-align:left!important;
}
body.portal-finance .brand>img,
body.portal-jus .brand-logo,
body.portal-zap .brand-image{
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  min-height:52px!important;
  flex:0 0 52px!important;
  padding:0!important;
  border:0!important;
  border-radius:15px!important;
  overflow:hidden!important;
  background:transparent!important;
  box-shadow:0 8px 22px rgba(0,0,0,.17)!important;
}
body.portal-finance .brand>img,
body.portal-jus .brand-logo img,
body.portal-zap .brand-image{
  display:block!important;
  width:52px!important;
  height:52px!important;
  object-fit:cover!important;
  object-position:center!important;
  border-radius:15px!important;
  transform:none!important;
}
body.portal-finance .brand strong,
body.portal-jus .brand strong,
body.portal-zap .brand strong{
  display:block!important;
  margin:0!important;
  color:#fff!important;
  font-size:19px!important;
  line-height:1.1!important;
  font-weight:850!important;
  letter-spacing:-.035em!important;
}
body.portal-finance .brand small,
body.portal-jus .brand small,
body.portal-zap .brand small{
  display:block!important;
  margin-top:4px!important;
  color:var(--eco-sidebar-muted)!important;
  font-size:11px!important;
  line-height:1.2!important;
}

/* Navegação idêntica. */
body.portal-finance .nav,
body.portal-jus .nav,
body.portal-zap .sidebar nav{
  display:flex!important;
  flex-direction:column!important;
  gap:7px!important;
  flex:1 1 auto!important;
  min-height:0!important;
}
body.portal-finance .nav button,
body.portal-jus .nav button,
body.portal-zap .sidebar nav>a,
body.portal-zap .sidebar-management-trigger{
  width:100%!important;
  min-height:43px!important;
  padding:11px 13px!important;
  border:0!important;
  border-radius:12px!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  background:transparent!important;
  color:var(--eco-sidebar-muted)!important;
  text-decoration:none!important;
  text-align:left!important;
  font-size:13px!important;
  line-height:1.2!important;
  font-weight:750!important;
  box-shadow:none!important;
}
body.portal-finance .nav button:hover,
body.portal-finance .nav button.active,
body.portal-jus .nav button:hover,
body.portal-jus .nav button.active,
body.portal-zap .sidebar nav>a:hover,
body.portal-zap .sidebar nav>a.active,
body.portal-zap .sidebar-management-trigger:hover,
body.portal-zap .sidebar-management-trigger.active{
  background:var(--eco-sidebar-active)!important;
  color:#fff!important;
  box-shadow:inset 3px 0 var(--eco-accent)!important;
}
body.portal-finance .nav-icon,
body.portal-jus .nav-icon,
body.portal-zap .sidebar nav>a>svg,
body.portal-zap .sidebar-management-trigger>svg:first-child{
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  flex:0 0 20px!important;
}

/* Gestão volta a abrir as abas abaixo do item principal. */
body.portal-zap .sidebar-management{display:block!important;width:100%!important}
body.portal-zap .sidebar-management-trigger{position:relative!important}
body.portal-zap .sidebar-management-chevron{
  width:16px!important;
  height:16px!important;
  margin-left:auto!important;
  transition:transform .18s ease!important;
}
body.portal-zap .sidebar-management.open .sidebar-management-chevron{transform:rotate(180deg)!important}
body.portal-zap .sidebar-submenu{
  display:flex!important;
  flex-direction:column!important;
  gap:3px!important;
  padding:5px 0 7px 29px!important;
}
body.portal-zap .sidebar-submenu[hidden]{display:none!important}
body.portal-zap .sidebar nav .sidebar-submenu a{
  min-height:35px!important;
  padding:8px 10px!important;
  border-radius:10px!important;
  color:var(--eco-sidebar-muted)!important;
  font-size:11px!important;
  font-weight:700!important;
}
body.portal-zap .sidebar nav .sidebar-submenu a svg{
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  flex:0 0 16px!important;
}
body.portal-zap .sidebar nav .sidebar-submenu a:hover,
body.portal-zap .sidebar nav .sidebar-submenu a.active{
  background:var(--eco-sidebar-active)!important;
  color:#fff!important;
  box-shadow:none!important;
}

/* Cabeçalhos de página com a mesma geometria. */
body.portal-finance .page-title,
body.portal-jus .page-title,
body.portal-zap .page-head{
  min-height:86px!important;
  margin:0 auto 22px!important;
  padding:0!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:24px!important;
}
body.portal-finance .page-title>div,
body.portal-jus .page-title>div,
body.portal-zap .page-head>div{min-width:0!important}
body.portal-finance .eyebrow,
body.portal-jus .eyebrow,
body.portal-zap .page-eyebrow{
  display:block!important;
  margin:0!important;
  color:var(--eco-accent-strong)!important;
  font-size:11px!important;
  line-height:1.2!important;
  font-weight:900!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
}
body.portal-finance .page-title h1,
body.portal-jus .page-title h1,
body.portal-zap .page-head h1{
  margin:6px 0 6px!important;
  color:var(--eco-ink)!important;
  font-size:31px!important;
  line-height:1.1!important;
  font-weight:850!important;
  letter-spacing:-.045em!important;
}
body.portal-finance .page-title p,
body.portal-jus .page-title p,
body.portal-zap .page-head p{
  max-width:780px!important;
  margin:0!important;
  color:var(--eco-muted)!important;
  font-size:14px!important;
  line-height:1.55!important;
}

/* Cards, tabelas, formulários e estados vazios com o mesmo contrato. */
body.portal-finance :is(.card,.panel,.stat),
body.portal-jus :is(.card,.panel,.stat),
body.portal-zap :is(.card,.panel,.stat,.metric){
  border:1px solid var(--eco-line)!important;
  border-radius:var(--eco-card-radius)!important;
  background:#fff!important;
  box-shadow:var(--eco-shadow)!important;
}
body.portal-finance :is(.card,.panel),
body.portal-jus :is(.card,.panel),
body.portal-zap :is(.card,.panel){padding:20px!important}
body.portal-finance :is(input,select,textarea),
body.portal-jus :is(input,select,textarea),
body.portal-zap :is(input,select,textarea){
  min-height:42px!important;
  border:1px solid var(--eco-line)!important;
  border-radius:var(--eco-control-radius)!important;
  background:#fff!important;
  color:var(--eco-ink)!important;
  outline:0!important;
}
body.portal-finance :is(input,select,textarea):focus,
body.portal-jus :is(input,select,textarea):focus,
body.portal-zap :is(input,select,textarea):focus{
  border-color:var(--eco-accent)!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--eco-accent) 15%,transparent)!important;
}
body.portal-finance :is(.table-wrap,.table-container),
body.portal-jus :is(.table-wrap,.table-container),
body.portal-zap .table-wrap{
  border:1px solid var(--eco-line)!important;
  border-radius:15px!important;
  overflow:auto!important;
  background:#fff!important;
}
body.portal-finance table,
body.portal-jus table,
body.portal-zap table{width:100%!important;border-collapse:collapse!important}
body.portal-finance th,
body.portal-jus th,
body.portal-zap th{
  padding:12px 14px!important;
  background:color-mix(in srgb,var(--eco-bg) 72%,#fff)!important;
  color:var(--eco-muted)!important;
  border-bottom:1px solid var(--eco-line)!important;
  font-size:11px!important;
  letter-spacing:.05em!important;
  text-transform:uppercase!important;
}
body.portal-finance td,
body.portal-jus td,
body.portal-zap td{
  padding:14px!important;
  color:var(--eco-ink)!important;
  border-bottom:1px solid color-mix(in srgb,var(--eco-line) 65%,#fff)!important;
}
body.portal-finance .empty,
body.portal-jus .empty,
body.portal-zap .empty{
  padding:42px 18px!important;
  color:var(--eco-muted)!important;
  text-align:center!important;
}

/* Abas internas iguais em páginas que as utilizam. */
body.portal-finance .tabs,
body.portal-jus .tabs,
body.portal-zap .page-tabs{
  display:flex!important;
  width:100%!important;
  gap:6px!important;
  margin:0 auto 18px!important;
  padding:5px!important;
  overflow-x:auto!important;
  border:1px solid var(--eco-line)!important;
  border-radius:14px!important;
  background:#fff!important;
}
body.portal-finance .tabs button,
body.portal-jus .tabs button,
body.portal-zap .page-tabs button{
  min-height:38px!important;
  padding:9px 13px!important;
  border:0!important;
  border-radius:10px!important;
  background:transparent!important;
  color:var(--eco-muted)!important;
  font-weight:750!important;
  white-space:nowrap!important;
}
body.portal-finance .tabs button.active,
body.portal-jus .tabs button.active,
body.portal-zap .page-tabs button.active{
  background:var(--eco-accent-soft)!important;
  color:var(--eco-accent-strong)!important;
  box-shadow:none!important;
}

/* Gestão: cards continuam disponíveis e com o mesmo grid do produto financeiro. */
body.portal-zap .management-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
}
body.portal-zap .management-card{
  min-height:174px!important;
  height:100%!important;
  padding:20px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
}
body.portal-zap .management-icon{
  width:42px!important;
  height:42px!important;
  display:grid!important;
  place-items:center!important;
  margin-bottom:15px!important;
  border-radius:12px!important;
  background:var(--eco-accent-soft)!important;
  color:var(--eco-accent-strong)!important;
}
body.portal-zap .management-open{margin-top:auto!important;padding-top:15px!important}

@media(max-width:1100px){
  body.portal-zap .management-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:840px){
  :root{--eco-page-x:15px;--eco-page-y:72px}
  body.portal-finance .sidebar,
  body.portal-jus .sidebar,
  body.portal-zap .sidebar{
    width:280px!important;
    transform:translateX(-100%)!important;
    transition:transform .2s ease!important;
  }
  body.portal-finance .sidebar.open,
  body.portal-jus .sidebar.open,
  body.portal-zap .sidebar.open{transform:translateX(0)!important}
  body.portal-finance .main,
  body.portal-jus .main,
  body.portal-zap main.content{
    width:100%!important;
    margin-left:0!important;
  }
  body.portal-finance .main>.content,
  body.portal-jus .main>.content,
  body.portal-zap main.content{padding:var(--eco-page-y) var(--eco-page-x) 82px!important}
  body.portal-finance .mobile-menu,
  body.portal-jus .mobile-menu,
  body.portal-zap .mobile-menu{
    display:grid!important;
    place-items:center!important;
    position:fixed!important;
    top:12px!important;
    left:12px!important;
    z-index:70!important;
    width:42px!important;
    height:42px!important;
    padding:0!important;
    border:0!important;
    border-radius:11px!important;
    background:var(--eco-sidebar)!important;
    color:#fff!important;
    box-shadow:0 10px 24px rgba(0,0,0,.16)!important;
  }
  body.portal-finance .page-title,
  body.portal-jus .page-title,
  body.portal-zap .page-head{min-height:0!important;flex-direction:column!important}
}
@media(max-width:700px){
  body.portal-zap .management-grid{grid-template-columns:1fr!important}
  body.portal-finance .page-title h1,
  body.portal-jus .page-title h1,
  body.portal-zap .page-head h1{font-size:27px!important}
}

/* v15 — ajuda flutuante com a mesma geometria nos três produtos. */
body.portal-finance .assistant-trigger,
body.portal-jus .assistant-trigger,
body.portal-zap .assistant-trigger{
  position:fixed!important;
  right:20px!important;
  bottom:18px!important;
  z-index:70!important;
  min-width:82px!important;
  min-height:42px!important;
  padding:9px 13px!important;
  border:0!important;
  border-radius:999px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  background:var(--eco-accent)!important;
  color:var(--eco-accent-contrast)!important;
  font-size:11px!important;
  font-weight:850!important;
  box-shadow:0 14px 30px color-mix(in srgb,var(--eco-accent) 28%,transparent)!important;
}
body.portal-zap .assistant-trigger b,
body.portal-finance .assistant-trigger b,
body.portal-jus .assistant-trigger b{font-size:11px!important;font-weight:850!important}
body.portal-finance .assistant-trigger>span,
body.portal-jus .assistant-trigger>span,
body.portal-zap .assistant-trigger>span{
  width:22px!important;
  height:22px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.28)!important;
  font-size:13px!important;
}
body.portal-finance .assistant-panel,
body.portal-jus .assistant-panel,
body.portal-zap .assistant-panel{
  position:fixed!important;
  right:20px!important;
  bottom:70px!important;
  z-index:75!important;
  width:min(380px,calc(var(--eco-vw) - 28px))!important;
  max-height:min(76vh,680px)!important;
  overflow:auto!important;
  border:1px solid var(--eco-line)!important;
  border-radius:20px!important;
  background:#fff!important;
  color:var(--eco-ink)!important;
  box-shadow:0 28px 70px rgba(20,20,20,.2)!important;
}
body.portal-finance .assistant-panel[hidden],
body.portal-jus .assistant-panel[hidden]{display:none!important}
body.portal-finance .assistant-head,
body.portal-jus .assistant-head,
body.portal-zap .assistant-head{
  min-height:58px!important;
  padding:13px 16px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  border-bottom:1px solid var(--eco-line)!important;
  color:var(--eco-accent-strong)!important;
}
body.portal-finance .assistant-body,
body.portal-jus .assistant-body,
body.portal-zap .assistant-body{padding:17px!important}
@media(max-width:720px){
  body.portal-finance .assistant-trigger,
  body.portal-jus .assistant-trigger,
  body.portal-zap .assistant-trigger{
    right:12px!important;
    bottom:12px!important;
    min-width:42px!important;
    width:42px!important;
    height:42px!important;
    padding:0!important;
  }
  body.portal-finance .assistant-trigger b,
  body.portal-jus .assistant-trigger b,
  body.portal-zap .assistant-trigger b{display:none!important}
  body.portal-finance .assistant-panel,
  body.portal-jus .assistant-panel,
  body.portal-zap .assistant-panel{right:10px!important;bottom:62px!important;width:calc(var(--eco-vw) - 20px)!important}
}


/* v16 — tipografia operacional única e submenu Gestão reversível. */
body.portal-zap *,
body.portal-zap *::before,
body.portal-zap *::after{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;
}
body.portal-zap,
body.portal-zap button,
body.portal-zap input,
body.portal-zap select,
body.portal-zap textarea,
body.portal-zap a,
body.portal-zap label,
body.portal-zap table{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  font-synthesis:none!important;
}
body.portal-zap h1,
body.portal-zap h2,
body.portal-zap h3,
body.portal-zap h4,
body.portal-zap .brand strong,
body.portal-zap .metric strong,
body.portal-zap .visual-kpi strong,
body.portal-zap .revenue-main-value strong,
body.portal-zap .dashboard-ring span,
body.portal-zap .conversion-visual strong,
body.portal-zap .schedule-strip strong,
body.portal-zap .team-load-numbers strong,
body.portal-zap .operation-progress-row strong,
body.portal-zap .operation-stat strong{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;
}
body.portal-zap .sidebar-management-chevron{
  transition:transform .18s ease!important;
}
body.portal-zap .sidebar-management.open .sidebar-management-chevron{
  transform:rotate(180deg)!important;
}
body.portal-zap .sidebar-submenu[hidden]{display:none!important}

/* v17 — painel AdvZap revisado, contraste tipográfico e escala final das marcas. */
body.portal-zap .executive-dashboard{
  display:flex!important;
  flex-direction:column!important;
  gap:16px!important;
  color:var(--eco-ink)!important;
}
body.portal-zap .executive-dashboard :is(a,button,span,strong,small,p,div){
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;
}
body.portal-zap .executive-dashboard svg{
  display:block!important;
  flex:0 0 auto!important;
  stroke-width:2!important;
}
body.portal-zap .dashboard-controlbar{
  min-height:48px!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
}
body.portal-zap .dashboard-view-tabs{
  width:auto!important;
  min-width:430px!important;
  padding:5px!important;
  gap:5px!important;
  border:1px solid var(--eco-line)!important;
  border-radius:15px!important;
  background:#fff!important;
  box-shadow:0 5px 18px rgba(5,76,37,.035)!important;
}
body.portal-zap .dashboard-view-tabs button{
  min-height:38px!important;
  padding:9px 17px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  border:0!important;
  border-radius:10px!important;
  background:transparent!important;
  color:#61746a!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:750!important;
}
body.portal-zap .dashboard-view-tabs button svg{
  width:17px!important;
  height:17px!important;
  color:currentColor!important;
}
body.portal-zap .dashboard-view-tabs button.active{
  background:var(--eco-accent-soft)!important;
  color:var(--eco-accent-strong)!important;
  box-shadow:none!important;
}
body.portal-zap .dashboard-period{
  min-height:40px!important;
  margin:0!important;
  padding:0 14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  border:1px solid var(--eco-line)!important;
  border-radius:12px!important;
  background:#fff!important;
  color:#52685b!important;
  font-size:11px!important;
  font-weight:750!important;
}
body.portal-zap .dashboard-period svg{width:16px!important;height:16px!important;color:var(--eco-accent-strong)!important}

body.portal-zap .operation-command-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
}
body.portal-zap .operation-stat{
  min-height:116px!important;
  padding:18px!important;
  grid-template-columns:46px minmax(0,1fr) 18px!important;
  align-items:center!important;
  gap:13px!important;
  border:1px solid var(--eco-line)!important;
  border-radius:18px!important;
  background:#fff!important;
  color:var(--eco-ink)!important;
  box-shadow:0 8px 25px rgba(5,76,37,.045)!important;
}
body.portal-zap .operation-stat::after{height:4px!important;opacity:1!important}
body.portal-zap .operation-stat-icon{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  border-radius:13px!important;
  display:grid!important;
  place-items:center!important;
}
body.portal-zap .operation-stat-icon svg{width:21px!important;height:21px!important}
body.portal-zap .operation-stat>div{display:flex!important;min-width:0!important;flex-direction:column!important;justify-content:center!important}
body.portal-zap .operation-stat small{
  margin:0!important;
  color:#5f7467!important;
  font-size:10px!important;
  line-height:1.2!important;
  font-weight:850!important;
  letter-spacing:.055em!important;
  text-transform:uppercase!important;
}
body.portal-zap .operation-stat strong{
  margin:6px 0 0!important;
  color:#143924!important;
  font-size:30px!important;
  line-height:1!important;
  font-weight:850!important;
  letter-spacing:-.035em!important;
}
body.portal-zap .operation-stat>div>span{
  margin-top:6px!important;
  color:#74877c!important;
  font-size:10px!important;
  line-height:1.25!important;
}
body.portal-zap .operation-stat-arrow{width:17px!important;height:17px!important;color:#82968a!important}

body.portal-zap .operation-workspace{
  display:grid!important;
  grid-template-columns:minmax(0,1.45fr) minmax(330px,.55fr)!important;
  gap:14px!important;
  align-items:stretch!important;
}
body.portal-zap .operation-workspace>.card{
  height:100%!important;
  min-height:310px!important;
  margin:0!important;
  border:1px solid var(--eco-line)!important;
  border-radius:18px!important;
  background:#fff!important;
  color:var(--eco-ink)!important;
  box-shadow:0 8px 25px rgba(5,76,37,.05)!important;
}
body.portal-zap .operation-queue-v2{padding:0!important;overflow:hidden!important}
body.portal-zap .operation-section-head{
  min-height:72px!important;
  padding:17px 19px!important;
  border-bottom:1px solid var(--eco-line)!important;
}
body.portal-zap .operation-section-head>div strong{
  color:var(--eco-ink)!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:850!important;
}
body.portal-zap .operation-section-head>div span{
  margin-top:4px!important;
  color:var(--eco-muted)!important;
  font-size:11px!important;
  line-height:1.3!important;
}
body.portal-zap .operation-section-head>.badge{
  min-width:28px!important;
  min-height:28px!important;
  padding:5px 9px!important;
  justify-content:center!important;
  font-size:11px!important;
}
body.portal-zap .operation-queue-list-v2>a{
  min-height:66px!important;
  padding:12px 19px!important;
  grid-template-columns:38px minmax(0,1fr) auto 18px!important;
  gap:12px!important;
  border-bottom:1px solid color-mix(in srgb,var(--eco-line) 70%,#fff)!important;
}
body.portal-zap .operation-queue-list-v2 .avatar{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  display:grid!important;
  place-items:center!important;
  font-size:12px!important;
  line-height:1!important;
}
body.portal-zap .operation-queue-list-v2 strong{
  color:var(--eco-ink)!important;
  font-size:12px!important;
  line-height:1.25!important;
  font-weight:800!important;
}
body.portal-zap .operation-queue-list-v2 small{
  margin-top:4px!important;
  color:var(--eco-muted)!important;
  font-size:10px!important;
  line-height:1.25!important;
}
body.portal-zap .operation-queue-list-v2>a>svg{width:17px!important;height:17px!important;color:#7c9184!important}
body.portal-zap .operation-queue-status{
  min-height:26px!important;
  padding:6px 9px!important;
  display:inline-flex!important;
  align-items:center!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:850!important;
}

body.portal-zap .operation-ai-card{
  position:relative!important;
  padding:20px!important;
  overflow:hidden!important;
  border:1px solid var(--eco-line)!important;
  background:#fff!important;
  color:var(--eco-ink)!important;
}
body.portal-zap .operation-ai-card::after{
  width:170px!important;
  height:170px!important;
  right:-88px!important;
  top:-94px!important;
  background:var(--eco-accent-soft)!important;
}
body.portal-zap .operation-ai-head{
  min-height:46px!important;
  grid-template-columns:42px minmax(0,1fr) 10px!important;
  gap:12px!important;
}
body.portal-zap .operation-ai-icon{
  width:42px!important;
  height:42px!important;
  border-radius:12px!important;
  background:var(--eco-accent-soft)!important;
  color:var(--eco-accent-strong)!important;
}
body.portal-zap .operation-ai-icon svg{width:20px!important;height:20px!important}
body.portal-zap .operation-ai-head strong{
  color:var(--eco-ink)!important;
  font-size:14px!important;
  line-height:1.2!important;
  font-weight:850!important;
}
body.portal-zap .operation-ai-head small{
  margin-top:4px!important;
  color:var(--eco-muted)!important;
  font-size:10px!important;
  line-height:1.25!important;
}
body.portal-zap .operation-ai-head>i{
  width:9px!important;
  height:9px!important;
  background:#36b968!important;
  box-shadow:0 0 0 5px rgba(54,185,104,.13)!important;
}
body.portal-zap .operation-ai-overview{
  min-height:132px!important;
  padding:20px 0 16px!important;
  justify-content:flex-start!important;
  gap:18px!important;
}
body.portal-zap .automation-ring{
  width:100px!important;
  height:100px!important;
  min-width:100px!important;
  background:conic-gradient(var(--eco-accent) var(--automation-value),#e6efe9 0)!important;
}
body.portal-zap .automation-ring::before{inset:10px!important;background:#fff!important}
body.portal-zap .automation-ring strong{
  color:var(--eco-ink)!important;
  font-size:23px!important;
  line-height:1!important;
  font-weight:850!important;
}
body.portal-zap .operation-ai-overview>div:last-child small{
  color:var(--eco-muted)!important;
  font-size:10px!important;
  line-height:1.2!important;
  font-weight:800!important;
}
body.portal-zap .operation-ai-overview>div:last-child strong{
  margin-top:5px!important;
  color:var(--eco-ink)!important;
  font-size:14px!important;
  line-height:1.25!important;
  font-weight:850!important;
}
body.portal-zap .operation-ai-counts{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:9px!important;
}
body.portal-zap .operation-ai-counts>div{
  padding:11px 12px!important;
  border:1px solid var(--eco-line)!important;
  border-radius:12px!important;
  background:#f8fbf9!important;
}
body.portal-zap .operation-ai-counts small{
  display:block!important;
  color:var(--eco-muted)!important;
  font-size:9px!important;
  line-height:1.2!important;
  font-weight:750!important;
}
body.portal-zap .operation-ai-counts strong{
  display:block!important;
  margin-top:5px!important;
  color:var(--eco-ink)!important;
  font-size:18px!important;
  line-height:1!important;
  font-weight:850!important;
}
body.portal-zap .operation-ai-link{
  min-height:39px!important;
  margin-top:12px!important;
  padding:9px 12px!important;
  border:1px solid color-mix(in srgb,var(--eco-accent) 22%,var(--eco-line))!important;
  border-radius:11px!important;
  background:var(--eco-accent-soft)!important;
  color:var(--eco-accent-strong)!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:850!important;
}
body.portal-zap .operation-ai-link:hover{background:color-mix(in srgb,var(--eco-accent-soft) 70%,#fff)!important}
body.portal-zap .operation-ai-link svg{width:15px!important;height:15px!important}

/* Receita e capacidade: elimina cores herdadas e ícones deslocados. */
body.portal-zap :is(.revenue-hero,.conversion-card,.trend-card,.funnel-visual-card,.schedule-card,.team-load-card){
  color:var(--eco-ink)!important;
}
body.portal-zap :is(.card-compact-head,.revenue-hero-head){
  min-height:36px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
}
body.portal-zap :is(.card-compact-head,.revenue-hero-head) svg{width:18px!important;height:18px!important}
body.portal-zap :is(.card-compact-head strong,.revenue-hero-head span){color:var(--eco-ink)!important;font-size:13px!important;font-weight:850!important}
body.portal-zap .card-compact-head small{color:var(--eco-muted)!important;font-size:10px!important}
body.portal-zap .revenue-mini-grid svg{width:20px!important;height:20px!important;align-self:center!important}
body.portal-zap .visual-kpi-icon{display:grid!important;place-items:center!important}
body.portal-zap .visual-kpi-icon svg{width:21px!important;height:21px!important}
body.portal-zap .team-load-row>.avatar{display:grid!important;place-items:center!important}
body.portal-zap .dashboard-limit-warning{color:#315f93!important;font-size:11px!important}
body.portal-zap .revenue-main-value small{color:#547363!important;font-size:11px!important;font-weight:780!important}
body.portal-zap .revenue-main-value span{color:#4d6a5b!important;font-size:11px!important;font-weight:650!important}
body.portal-zap .revenue-mini-grid small{color:#5b7768!important;font-size:10px!important;font-weight:700!important}
body.portal-zap .revenue-mini-grid strong{color:var(--eco-ink)!important}
body.portal-zap .revenue-mini-grid>div{background:#f7fbf8!important;border-color:#dce8e1!important}
body.portal-zap .revenue-mini-grid>div>svg{color:var(--eco-accent-strong)!important}

/* AdvCorp: a arte oficial deve aparecer sobre fundo branco opaco. */
body.portal-corp :is(.quantum-logo.compact,.auth-brand-logo,.about-hero-mark-logo),
body.portal-superadmin .quantum-logo.compact{
  background:#fff!important;
}
body.portal-corp :is(.quantum-logo.compact img,.auth-brand-logo img,.about-hero-mark-logo img),
body.portal-superadmin .quantum-logo.compact img{
  background:#fff!important;
  object-fit:cover!important;
}

/* AdvJus: mesma caixa e mesma ocupação real de AdvZap e AdvFinance. */
body.portal-jus .brand-logo,
body.portal-jus .brand-logo img{
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  min-height:52px!important;
  max-width:52px!important;
  max-height:52px!important;
  margin:0!important;
  padding:0!important;
  border-radius:15px!important;
  object-fit:cover!important;
  object-position:center!important;
  transform:none!important;
}

@media(max-width:1180px){
  body.portal-zap .operation-command-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.portal-zap .operation-workspace{grid-template-columns:1fr!important}
  body.portal-zap .operation-workspace>.card{min-height:auto!important}
}
@media(max-width:760px){
  body.portal-zap .dashboard-controlbar{align-items:stretch!important;flex-direction:column!important}
  body.portal-zap .dashboard-view-tabs{width:100%!important;min-width:0!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body.portal-zap .dashboard-view-tabs button{padding:9px 7px!important}
  body.portal-zap .dashboard-period{align-self:flex-end!important}
  body.portal-zap .operation-command-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.portal-zap .operation-queue-list-v2>a{grid-template-columns:38px minmax(0,1fr) 18px!important}
  body.portal-zap .operation-queue-status{display:none!important}
}
@media(max-width:520px){
  body.portal-zap .operation-command-grid{grid-template-columns:1fr!important}
  body.portal-zap .dashboard-view-tabs button span{font-size:10px!important}
  body.portal-zap .operation-ai-overview{align-items:flex-start!important;flex-direction:column!important}
}

/* P7 — nested input shells: apenas o container externo desenha a caixa */
body.portal .command-search>input,
body.portal .office-search-field>input,
body.portal .search>input,
body.portal .input-icon>input,
body.portal .conversation-search>input{
  min-height:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;outline:0!important
}
body.portal .command-search>input,body.portal .office-search-field>input{padding:0!important}
body.portal .command-search>input:focus,
body.portal .office-search-field>input:focus,
body.portal .search>input:focus,
body.portal .input-icon>input:focus,
body.portal .conversation-search>input:focus{border:0!important;box-shadow:none!important;background:transparent!important}

/* P9 — controles booleanos nunca herdam dimensões de campos de texto */
body.portal input[type="checkbox"],
body.portal input[type="radio"]{
  width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;
  max-width:18px!important;padding:0!important;margin:0!important;flex:0 0 18px!important;
  background:#fff!important;box-shadow:none!important;accent-color:var(--eco-accent)!important;appearance:auto!important;-webkit-appearance:auto!important
}
body.portal input[type="checkbox"]{border-radius:4px!important}
body.portal input[type="radio"]{border-radius:50%!important}
body.portal label.check,body.portal .terms-check,body.portal .billing-terms-check,body.portal .check-line,body.portal .confirm-row{
  align-items:flex-start!important
}

/* P9 — shells de busca possuem uma única borda visual */
body.portal .command-search>input,
body.portal .office-search-field>input,
body.portal .search>input,
body.portal .conversation-search>input,
body.portal .input-icon>input,
body.portal .search-box>input,
body.portal .toolbar-search>input{min-height:0!important;height:auto!important;border:0!important;border-radius:0!important;padding:0!important;background:transparent!important;box-shadow:none!important;outline:0!important}
body.portal .command-search>input:focus,
body.portal .office-search-field>input:focus,
body.portal .search>input:focus,
body.portal .conversation-search>input:focus,
body.portal .input-icon>input:focus,
body.portal .search-box>input:focus,
body.portal .toolbar-search>input:focus{border:0!important;box-shadow:none!important;background:transparent!important}

/* R27.3 — padrão visual único do botão flutuante Ajuda. */
html body.portal button#assistant-trigger.assistant-trigger,
html body.portal button#studio-help.studio-help{
  position:fixed!important;
  right:20px!important;
  bottom:18px!important;
  z-index:90!important;
  width:auto!important;
  min-width:84px!important;
  height:40px!important;
  min-height:40px!important;
  padding:0 13px!important;
  margin:0!important;
  border:0!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  background:var(--ac-blue,var(--eco-accent,#1769e0))!important;
  color:#fff!important;
  box-shadow:0 4px 14px rgba(23,105,224,.14)!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1!important;
  letter-spacing:0!important;
  text-transform:none!important;
  cursor:pointer!important;
}
html body.portal button#assistant-trigger.assistant-trigger>span:first-child,
html body.portal button#studio-help.studio-help>span:first-child{
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  flex:0 0 20px!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border-radius:50%!important;
  background:rgba(255,255,255,.18)!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1!important;
}
html body.portal button#assistant-trigger.assistant-trigger>b,
html body.portal button#studio-help.studio-help>b{
  display:block!important;
  margin:0!important;
  padding:0!important;
  color:#fff!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1!important;
}
html body.portal button#assistant-trigger.assistant-trigger:hover,
html body.portal button#studio-help.studio-help:hover{
  background:var(--ac-blue-2,var(--eco-accent-strong,#0e55bd))!important;
}
html body.portal button#assistant-trigger.assistant-trigger:focus-visible,
html body.portal button#studio-help.studio-help:focus-visible{
  outline:2px solid var(--ac-blue,var(--eco-accent,#1769e0))!important;
  outline-offset:3px!important;
}
html body.portal.portal-studio:has(.wix-inspector.open) button#studio-help.studio-help,
html body.portal.portal-studio .studio-shell:has(.wix-inspector.open)~button#studio-help.studio-help{
  right:374px!important;
}
@media(max-width:720px){
  html body.portal button#assistant-trigger.assistant-trigger,
  html body.portal button#studio-help.studio-help{
    right:12px!important;
    bottom:12px!important;
    width:40px!important;
    min-width:40px!important;
    height:40px!important;
    min-height:40px!important;
    padding:0!important;
    gap:0!important;
  }
  html body.portal button#assistant-trigger.assistant-trigger>b,
  html body.portal button#studio-help.studio-help>b{display:none!important}
}

/* R29.7 — resposta compacta: mesma altura do botão Enviar. */
.advzap-inbox-r297 .reply-composer-r297{box-sizing:border-box!important;padding:10px 12px 12px!important;border-top:1px solid #dce1e7!important;background:#fff!important;overflow:visible!important}
.advzap-inbox-r297 .reply-composer-r297>.composer-entry-row{align-items:center!important;overflow:visible!important}
.advzap-inbox-r297 .reply-composer-r297>.composer-entry-row>.composer-textarea{height:44px!important;min-height:44px!important;max-height:44px!important;padding:10px 12px!important;line-height:22px!important;resize:none!important;overflow-y:auto!important;border-radius:10px!important;box-sizing:border-box!important}
.advzap-inbox-r297 .reply-composer-r297>.composer-entry-row>.composer-send{height:44px!important;align-self:center!important}
.advzap-inbox-r297 .reply-composer-r297>.composer-entry-row>.composer-template-ready{height:44px!important;min-height:44px!important;box-sizing:border-box!important}
/* Ponte de compatibilidade: mantém os resets legados fortes, mas deixa o contrato de busca parametrizá-los sem novos !important. */
body.portal input{
  background-image:var(--ac-input-background-image,none)!important;
  background-repeat:var(--ac-input-background-repeat,repeat)!important;
  background-position:var(--ac-input-background-position,0% 0%)!important;
  background-size:var(--ac-input-background-size,auto)!important;
  padding-left:var(--ac-input-padding-left,12px)!important
}
