/* v255 - paginação e navegação mais leve */
.pagination-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;padding:12px 14px;border:1px solid #dbe7ff;border-radius:14px;background:#f8fbff;color:#334155;font-size:13px}
.pagination-bar>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.doc-thumb-fast{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-weight:800;font-size:13px;letter-spacing:.08em;color:#2563eb;background:linear-gradient(180deg,#eef6ff,#fff);border-radius:inherit}
/* v259 - runtime mais leve */
.nexei-icon-lite{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;font-size:18px;line-height:1;background:#f1f5f9;border-radius:8px;color:#0f172a;font-family:Arial, sans-serif}
.file-thumb-mini,.doc-thumb-fast{display:inline-flex!important;align-items:center;justify-content:center;min-width:46px;min-height:58px;border-radius:8px;background:#f1f5f9;color:#334155;font-weight:800;font-size:13px;border:1px solid #e2e8f0}
img.doc-thumb-img{display:none!important}
.nexa-thumb-wait{opacity:1!important;filter:none!important}
.nexa-thumbs-batching img.doc-thumb-img{display:none!important}


/* v260 - runtime leve real */
html.nexei-v260-runtime-leve img.doc-thumb-img,
img.doc-thumb-img{display:none!important;visibility:hidden!important;width:0!important;height:0!important;opacity:0!important}
.doc-thumb-fast{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:72px!important;background:#f8fafc!important;color:#2563eb!important;border:1px solid #dbeafe!important;border-radius:10px!important;font-weight:900!important;letter-spacing:.08em}
.thumb .doc-thumb-fast,.dashboard-thumb .doc-thumb-fast{min-height:110px!important}
.nexa-thumbs-batching img{opacity:1!important;filter:none!important}


/* v263 - miniaturas e ícones personalizados */
.action-icon-img.nexei-icon-real{width:20px;height:20px;object-fit:contain;display:inline-block;vertical-align:middle;}
.pdf-thumb-frame{width:100%;height:100%;border:0;background:#fff;border-radius:inherit;display:block;pointer-events:none;}
.file-thumb-mini .pdf-thumb-frame{width:100%;height:100%;}
.dashboard-thumb .pdf-thumb-frame{width:100%;height:100%;}


/* v264 - miniatura real usando o visualizador nativo do PDF, sem gerar JPG/PNG no servidor */
html.nexei-v264-runtime-leve img.doc-thumb-img,
img.doc-thumb-img{display:none!important;visibility:hidden!important;width:0!important;height:0!important;opacity:0!important}
.pdf-thumb-frame{display:block!important;width:100%!important;height:100%!important;border:0!important;background:#fff!important;border-radius:inherit!important;pointer-events:none!important;overflow:hidden!important;opacity:1!important;visibility:visible!important;filter:none!important;transform:scale(1.02);transform-origin:center top;}
.dashboard-thumb .pdf-thumb-frame,.dashboard-pdf-thumb{width:100%!important;height:100%!important;min-height:110px!important;border-radius:14px!important;background:#fff!important;}
.file-thumb-mini .pdf-thumb-frame,.file-pdf-thumb{width:100%!important;height:100%!important;min-width:92px!important;min-height:120px!important;border-radius:10px!important;background:#fff!important;}
.file-thumb-mini{overflow:hidden!important;background:#fff!important;}
.dashboard-thumb{overflow:hidden!important;background:#fff!important;}

/* v265 - ajuste visual geral, responsividade, multi-filtro e aprovacoes */
@media (min-width: 901px){
  body:not(.page-login){ zoom:.86; }
}
body:not(.page-login) .main{max-width:none;}
.login-logo img,.brand-mark img{object-fit:contain!important;}
.login-logo img{width:112px!important;height:112px!important;}
.brand-mark img{width:100%!important;height:100%!important;}
.multi-select{min-height:46px!important;height:auto!important;padding:8px 12px!important;border-radius:14px!important;background:#fff!important;border:1px solid #d6e3f8!important;color:#08152f!important;}
.multi-select option{padding:6px 8px;}
.multi-process-filter{min-width:180px!important;}
.top-search-popover.advanced .multi-select{min-height:120px!important;}
.approval{display:grid!important;grid-template-columns:minmax(150px,1fr) auto!important;align-items:center!important;gap:10px!important;padding:14px!important;border-radius:16px!important;background:#f8fbff!important;border:1px solid #dbe7fb!important;box-shadow:0 8px 22px rgba(15,23,42,.04)!important;}
.approval>b{font-size:14px!important;line-height:1.2!important;color:#06152f!important;}
.approval>span{font-size:13px!important;color:#7c3d00!important;display:inline-flex!important;align-items:center!important;gap:4px!important;}
.approval-admin-move{display:flex!important;align-items:center!important;gap:8px!important;justify-content:flex-end!important;flex-wrap:wrap!important;}
.approval-admin-move form{display:flex!important;gap:6px!important;margin:0!important;}
.approval-admin-move .mini,.approval .mini,.decision-box button{border-radius:10px!important;min-height:36px!important;padding:8px 12px!important;font-weight:800!important;}
.approval-admin-move .danger-mini,.approval .danger-mini{background:#fff1f2!important;border-color:#fecdd3!important;color:#be123c!important;}
.approval-edit-form{grid-column:1/-1!important;background:#fff!important;border:1px dashed #cbd5e1!important;border-radius:14px!important;padding:12px!important;}
.decision-box{border-radius:18px!important;border:1px solid #c9d8ff!important;background:#f8fbff!important;}
.decision-box textarea{min-height:74px!important;border-radius:12px!important;}
.file-item .file-thumb-mini,.file-pdf-thumb{border-radius:14px!important;box-shadow:0 12px 28px rgba(15,23,42,.08)!important;}

@media (max-width: 900px){
  body:not(.page-login){zoom:1!important;overflow-x:hidden!important;}
  .sidebar{position:relative!important;width:100%!important;min-height:auto!important;height:auto!important;padding:12px!important;display:block!important;}
  .sidebar nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  .sidebar .brand{margin-bottom:10px!important;}
  .sidebar .user-card{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;margin-top:10px!important;}
  .main{margin-left:0!important;width:100%!important;padding:14px!important;}
  .topbar{position:relative!important;display:block!important;padding:10px 0!important;}
  .top-actions{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;width:100%!important;}
  .top-search-form{width:100%!important;display:grid!important;grid-template-columns:1fr auto auto!important;gap:8px!important;}
  .top-search-form input[name=q]{width:100%!important;min-width:0!important;}
  .top-search-popover{position:fixed!important;left:12px!important;right:12px!important;top:72px!important;width:auto!important;max-height:75vh!important;overflow:auto!important;z-index:9999!important;}
  .filters,.document-filters{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;}
  .filters select,.filters input,.filters button,.filters a{width:100%!important;min-width:0!important;}
  .doc-card{display:grid!important;grid-template-columns:90px 1fr!important;gap:12px!important;padding:14px!important;}
  .doc-card .thumb{width:86px!important;height:110px!important;min-width:86px!important;}
  .doc-actions{grid-column:1/-1!important;justify-content:flex-start!important;display:flex!important;gap:8px!important;}
  .viewer{display:grid!important;grid-template-columns:1fr!important;height:auto!important;min-height:100vh!important;}
  .viewer .files,.viewer .details{width:100%!important;max-width:none!important;order:2!important;}
  .viewer .doc-frame{order:1!important;height:70vh!important;min-height:420px!important;}
  .viewer .doc-frame iframe{height:100%!important;min-height:420px!important;}
  .details .actions{position:sticky!important;top:0!important;background:#fff!important;z-index:5!important;display:flex!important;flex-wrap:wrap!important;gap:8px!important;padding:8px 0!important;}
  .approval{grid-template-columns:1fr!important;}
  .approval-admin-move{justify-content:flex-start!important;}
  .login-card{width:min(94vw,420px)!important;padding:26px 22px!important;}
  .login-logo img{width:92px!important;height:92px!important;}
}

@media (max-width: 560px){
  .sidebar nav{grid-template-columns:1fr!important;}
  .doc-card{grid-template-columns:1fr!important;}
  .doc-card .thumb{width:100%!important;height:150px!important;}
  .panel-head{display:grid!important;gap:10px!important;}
  .panel-actions{display:grid!important;grid-template-columns:1fr!important;width:100%!important;}
  .top-search-form{grid-template-columns:1fr auto auto!important;}
}



/* v266 - ajustes finais de UI, logo, visualizacao e responsividade */
html{font-size:14.5px;}
body:not(.page-login){zoom:1!important;}
.login-logo{width:122px!important;height:122px!important;margin:0 auto 14px!important;border-radius:28px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;background:transparent!important;box-shadow:0 18px 44px rgba(37,99,235,.18)!important;}
.login-logo img{width:122px!important;height:122px!important;max-width:122px!important;max-height:122px!important;object-fit:contain!important;display:block!important;transform:none!important;}
.brand-mark{width:54px!important;height:54px!important;min-width:54px!important;border-radius:16px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;background:linear-gradient(135deg,#4b5cf6,#34b8d4)!important;}
.brand-mark img{width:54px!important;height:54px!important;max-width:54px!important;max-height:54px!important;object-fit:contain!important;display:block!important;transform:none!important;}
.sidebar .brand{align-items:center!important;gap:12px!important;}
.sidebar .brand-text strong{font-size:17px!important;line-height:1.05!important;}
.sidebar .brand-text span{font-size:12px!important;line-height:1.2!important;}

.doc-card .thumb,.dashboard-thumb,.file-thumb-mini{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;}
.dashboard-thumb .pdf-thumb-frame,.dashboard-pdf-thumb{width:86px!important;height:116px!important;min-width:86px!important;min-height:116px!important;max-width:86px!important;max-height:116px!important;margin:auto!important;border-radius:12px!important;background:#fff!important;box-shadow:0 10px 24px rgba(15,23,42,.08)!important;transform:none!important;}
.file-thumb-mini .pdf-thumb-frame,.file-pdf-thumb{width:86px!important;height:116px!important;min-width:86px!important;min-height:116px!important;max-width:86px!important;max-height:116px!important;margin:auto!important;border-radius:10px!important;background:#fff!important;transform:none!important;}
.file-thumb-mini{display:flex!important;align-items:center!important;justify-content:center!important;padding:8px!important;}

.viewer{width:100%!important;max-width:none!important;min-height:calc(100vh - 24px)!important;height:calc(100vh - 24px)!important;display:grid!important;grid-template-columns:220px minmax(720px,1fr) 390px!important;gap:14px!important;padding:0!important;box-sizing:border-box!important;}
.viewer .files{width:220px!important;max-width:220px!important;min-width:220px!important;}
.viewer .doc-frame{height:calc(100vh - 36px)!important;min-height:640px!important;width:100%!important;}
.viewer .doc-frame iframe{height:100%!important;width:100%!important;min-height:640px!important;}
.viewer .details{width:390px!important;max-width:390px!important;min-width:360px!important;}
.details .actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;justify-content:flex-start!important;align-items:center!important;}
.action-icon-img.nexei-icon-real{width:22px!important;height:22px!important;object-fit:contain!important;}
.icon-btn,.details .actions a,.details .actions button{min-width:38px!important;min-height:38px!important;border-radius:12px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
.approval{display:grid!important;grid-template-columns:minmax(145px,1fr) auto!important;align-items:center!important;gap:10px!important;margin-bottom:10px!important;}
.approval-admin-move{display:flex!important;gap:8px!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important;}
.approval-admin-move form{display:inline-flex!important;gap:6px!important;margin:0!important;}
.approval-admin-move .mini,.approval .mini{min-height:34px!important;border-radius:10px!important;padding:7px 10px!important;}

.twofa-card{max-width:520px!important}.twofa-secret{background:#eef4ff;border:1px solid #c7d8ff;border-radius:12px;padding:12px;font-weight:800;letter-spacing:.08em;word-break:break-all;color:#1e3a8a;margin:10px 0}.twofa-hint{font-size:13px;color:#475569;line-height:1.4}.twofa-card input[name=code]{text-align:center;font-size:22px;font-weight:800;letter-spacing:.18em}

@media (min-width:1400px){
  .app-main{padding:22px 28px!important;}
  .doc-card{min-height:132px!important;}
}
@media (max-width:1100px){
  .viewer{grid-template-columns:1fr!important;height:auto!important;min-height:100vh!important;gap:12px!important;}
  .viewer .files,.viewer .details{width:100%!important;min-width:0!important;max-width:none!important;}
  .viewer .doc-frame{height:72vh!important;min-height:440px!important;}
  .viewer .doc-frame iframe{min-height:440px!important;}
}
@media (max-width:760px){
  html{font-size:14px!important;}
  body:not(.page-login){zoom:1!important;}
  .login-card{width:min(92vw,430px)!important;padding:28px 22px!important;}
  .login-logo,.login-logo img{width:96px!important;height:96px!important;}
  .sidebar{position:relative!important;width:100%!important;min-height:auto!important;display:block!important;padding:14px!important;}
  .sidebar nav{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;}
  .sidebar nav a{padding:10px!important;}
  .app-shell{display:block!important;}
  .app-main{padding:14px!important;}
  .filters,.filter-grid,form.filters{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;}
  .doc-card{grid-template-columns:96px 1fr!important;gap:12px!important;padding:14px!important;}
  .doc-actions{grid-column:1/-1!important;justify-content:flex-start!important;}
  .dashboard-thumb .pdf-thumb-frame,.dashboard-pdf-thumb{width:72px!important;height:96px!important;min-width:72px!important;min-height:96px!important;}
}


/* v267 - 2FA com QR Code sem URL estourando layout */
.twofa-card{max-width:480px!important;overflow:hidden!important}
.twofa-qr-box{display:flex;justify-content:center;align-items:center;margin:14px auto 16px;padding:12px;background:#fff;border:1px solid #dbeafe;border-radius:18px;box-shadow:0 12px 28px rgba(15,23,42,.08);width:max-content;max-width:100%}
.twofa-qr{width:220px;height:220px;max-width:74vw;display:block;object-fit:contain;border-radius:10px}
.twofa-manual{margin:6px 0 12px;text-align:left;font-size:13px;color:#475569}
.twofa-manual summary{cursor:pointer;font-weight:800;color:#334155;text-align:center;list-style:none}
.twofa-manual summary::-webkit-details-marker{display:none}
.twofa-manual summary:after{content:' ▾';font-weight:900;color:#6366f1}
.twofa-manual[open] summary:after{content:' ▴'}
.twofa-secret{font-size:13px!important;letter-spacing:.04em!important;text-align:center;overflow-wrap:anywhere;word-break:break-word}
@media(max-width:640px){.twofa-qr{width:190px;height:190px}.twofa-card{max-width:calc(100vw - 28px)!important}}

/* v268 - revisão visual desktop/mobile sem alterar regras de negócio */
@media (min-width:901px){
  body:not(.page-login){zoom:.9!important;}
  .app-main,.main{max-width:none!important;width:100%!important;}
}

/* Logo/login/sidebar: volta a ter presença visual sem ficar minúscula */
.login-logo{width:132px!important;height:132px!important;margin:0 auto 16px!important;border-radius:30px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:visible!important;background:transparent!important;box-shadow:none!important;}
.login-logo img{width:132px!important;height:132px!important;max-width:132px!important;max-height:132px!important;object-fit:contain!important;display:block!important;transform:scale(1.18)!important;filter:none!important;}
.brand-mark{width:62px!important;height:62px!important;min-width:62px!important;border-radius:18px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:visible!important;background:transparent!important;box-shadow:none!important;}
.brand-mark img{width:62px!important;height:62px!important;max-width:62px!important;max-height:62px!important;object-fit:contain!important;display:block!important;transform:scale(1.16)!important;}
.sidebar .brand{gap:13px!important;align-items:center!important;}
.sidebar .brand-text strong{font-size:18px!important;}
.sidebar .brand-text span{font-size:12px!important;letter-spacing:.04em!important;}

/* Miniaturas PDF nativas centralizadas e ampliadas dentro do card */
.doc-card .thumb,.dashboard-thumb,.file-thumb-mini{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;background:#fff!important;border-radius:16px!important;}
.dashboard-thumb .pdf-thumb-frame,.dashboard-pdf-thumb{position:absolute!important;top:0!important;left:50%!important;width:760px!important;height:980px!important;min-width:760px!important;min-height:980px!important;max-width:none!important;max-height:none!important;border:0!important;background:#fff!important;border-radius:0!important;transform:translateX(-50%) scale(.16)!important;transform-origin:top center!important;box-shadow:none!important;pointer-events:none!important;}
.file-thumb-mini .pdf-thumb-frame,.file-pdf-thumb{position:absolute!important;top:0!important;left:50%!important;width:560px!important;height:740px!important;min-width:560px!important;min-height:740px!important;max-width:none!important;max-height:none!important;border:0!important;background:#fff!important;border-radius:0!important;transform:translateX(-50%) scale(.16)!important;transform-origin:top center!important;box-shadow:none!important;pointer-events:none!important;}
.file-thumb-mini{min-width:96px!important;min-height:128px!important;width:96px!important;height:128px!important;padding:0!important;margin:0 auto 10px!important;}

/* Visualizar processo: desktop ocupa a largura e ações ficam alinhadas no topo */
@media (min-width:1101px){
  .viewer{width:100%!important;max-width:none!important;height:calc(100vh - 18px)!important;min-height:calc(100vh - 18px)!important;display:grid!important;grid-template-columns:230px minmax(760px,1fr) 420px!important;gap:14px!important;padding:0!important;box-sizing:border-box!important;}
  .viewer .files{width:230px!important;min-width:230px!important;max-width:230px!important;}
  .viewer .doc-frame{height:calc(100vh - 28px)!important;min-height:640px!important;width:100%!important;}
  .viewer .doc-frame iframe{height:100%!important;min-height:640px!important;width:100%!important;}
  .viewer .details{width:420px!important;min-width:390px!important;max-width:420px!important;}
  .viewer .details .actions,.details .actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;padding:4px 0 10px!important;scrollbar-width:thin!important;}
  .details .actions a,.details .actions button,.icon-btn{flex:0 0 38px!important;width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;border-radius:12px!important;}
  .action-icon-img.nexei-icon-real{width:23px!important;height:23px!important;}
}

/* Cards e textos sem estourar blocos */
.doc-main,.doc-title,.doc-meta,.doc-card{min-width:0!important;}
.doc-title{white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;}
.doc-meta{display:flex!important;flex-wrap:wrap!important;gap:10px 18px!important;min-width:0!important;}
.badge{white-space:normal!important;line-height:1.2!important;}

/* Mobile: menu hamburguer real, blocos empilhados e visualização limpa */
.nexei-mobile-toggle{display:none;}
@media (max-width:760px){
  html{font-size:14px!important;}
  body:not(.page-login){zoom:1!important;overflow-x:hidden!important;}
  .nexei-mobile-toggle{display:flex!important;position:fixed!important;left:12px!important;top:12px!important;width:44px!important;height:44px!important;z-index:10050!important;border:0!important;border-radius:14px!important;background:#172b55!important;color:#fff!important;align-items:center!important;justify-content:center!important;font-size:22px!important;font-weight:900!important;box-shadow:0 12px 28px rgba(15,23,42,.28)!important;}
  .sidebar{position:fixed!important;left:0!important;top:0!important;bottom:0!important;width:284px!important;max-width:86vw!important;min-height:100vh!important;height:100vh!important;z-index:10040!important;transform:translateX(-105%)!important;transition:transform .2s ease!important;overflow:auto!important;padding:70px 14px 18px!important;display:block!important;}
  .sidebar.nexei-mobile-open{transform:translateX(0)!important;}
  body.nexei-mobile-open:before{content:'';position:fixed;inset:0;background:rgba(15,23,42,.46);z-index:10030;}
  .sidebar nav{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;}
  .sidebar .brand{margin-bottom:16px!important;}
  .sidebar .user-card{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;margin-top:16px!important;}
  .main,.app-main{margin-left:0!important;width:100%!important;padding:68px 12px 18px!important;box-sizing:border-box!important;}
  .topbar{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;}
  .top-actions,.top-search-form{width:100%!important;display:grid!important;grid-template-columns:1fr auto auto!important;gap:8px!important;}
  .filters,.document-filters,.filter-grid,form.filters{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;width:100%!important;}
  .filters select,.filters input,.filters button,.document-filters select,.document-filters input,.document-filters button{width:100%!important;min-width:0!important;}
  .doc-card{display:grid!important;grid-template-columns:82px minmax(0,1fr)!important;gap:12px!important;padding:12px!important;align-items:center!important;}
  .doc-card .thumb{width:78px!important;height:104px!important;min-width:78px!important;}
  .dashboard-thumb .pdf-thumb-frame,.dashboard-pdf-thumb{width:560px!important;height:740px!important;min-width:560px!important;min-height:740px!important;transform:translateX(-50%) scale(.14)!important;}
  .doc-actions{grid-column:1/-1!important;display:flex!important;justify-content:flex-start!important;gap:8px!important;flex-wrap:wrap!important;}
  .doc-title{font-size:15px!important;line-height:1.25!important;}
  .doc-meta{font-size:12px!important;gap:6px 10px!important;}
  .panel-head,.panel-actions{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;width:100%!important;}
  .viewer{display:flex!important;flex-direction:column!important;width:100%!important;height:auto!important;min-height:100vh!important;gap:12px!important;padding:0!important;}
  .viewer .files{order:1!important;width:100%!important;max-width:none!important;min-width:0!important;display:block!important;}
  .viewer .doc-frame{order:2!important;width:100%!important;height:68vh!important;min-height:420px!important;}
  .viewer .doc-frame iframe{height:100%!important;min-height:420px!important;width:100%!important;}
  .viewer .details{order:3!important;width:100%!important;max-width:none!important;min-width:0!important;}
  .viewer .details .actions,.details .actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important;justify-content:flex-start!important;position:sticky!important;top:0!important;background:#fff!important;z-index:5!important;padding:8px 0!important;}
  .approval{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;}
  .approval-admin-move{justify-content:flex-start!important;flex-wrap:wrap!important;}
}

@media (max-width:480px){
  .doc-card{grid-template-columns:1fr!important;}
  .doc-card .thumb{width:100%!important;height:138px!important;}
  .dashboard-thumb .pdf-thumb-frame,.dashboard-pdf-thumb{width:760px!important;height:980px!important;transform:translateX(-50%) scale(.15)!important;}
  .login-card{width:min(94vw,420px)!important;padding:26px 20px!important;}
  .login-logo,.login-logo img{width:108px!important;height:108px!important;}
}


/* v269 - revisão geral de interface sem alterar arquivos PNG/ICO */
html,body{max-width:100%!important;overflow-x:hidden!important;}
*{box-sizing:border-box;}
@media (min-width:901px){
  body:not(.page-login){zoom:1!important;font-size:90%!important;}
  body:not(.page-login) .main, body:not(.page-login) .app-main{max-width:calc(100vw - 220px)!important;width:calc(100vw - 220px)!important;overflow-x:hidden!important;}
  .panel,.hero,.topbar,.doc-list,.cards,.admin-hub,.workflow-cards{max-width:100%!important;}
  .cards,.admin-hub{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important;}
}

/* Logo: tamanho e posicionamento apenas por CSS. Não sobrescreve PNG/ICO. */
.login-logo{width:132px!important;height:132px!important;margin:0 auto 18px!important;border-radius:30px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:visible!important;background:transparent!important;box-shadow:none!important;}
.login-logo img{width:132px!important;height:132px!important;max-width:132px!important;max-height:132px!important;object-fit:contain!important;object-position:center!important;display:block!important;transform:none!important;filter:none!important;border:0!important;background:transparent!important;}
.brand-mark{width:54px!important;height:54px!important;min-width:54px!important;border-radius:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:visible!important;background:transparent!important;box-shadow:none!important;border:0!important;}
.brand-mark img{width:54px!important;height:54px!important;max-width:54px!important;max-height:54px!important;object-fit:contain!important;object-position:center!important;display:block!important;transform:none!important;background:transparent!important;border:0!important;}
.sidebar .brand{gap:12px!important;min-width:0!important;}
.sidebar .brand strong{font-size:18px!important;line-height:1.05!important;}
.sidebar .brand small{font-size:12px!important;line-height:1.1!important;letter-spacing:.04em!important;}

/* Loading com nexei.gif após iniciar login */
.nexei-login-loading{position:fixed;inset:0;z-index:99999;background:linear-gradient(135deg,rgba(15,35,75,.88),rgba(80,55,210,.84));display:flex;align-items:center;justify-content:center;backdrop-filter:blur(8px);}
.nexei-login-loading>div{width:min(360px,88vw);padding:34px 26px;border-radius:30px;background:rgba(255,255,255,.94);box-shadow:0 28px 80px rgba(15,23,42,.38);display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;color:#172554;}
.nexei-login-loading img{width:116px;height:116px;object-fit:contain;display:block;border-radius:24px;}
.nexei-login-loading strong{font-size:22px;color:#4338ca;}
.nexei-login-loading span{font-size:13px;color:#64748b;}

/* Thumbs de PDF e ícones padronizados */
.doc-card .thumb,.dashboard-thumb,.file-thumb-mini{display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;background:#fff!important;border-radius:16px!important;}
.pdf-thumb-frame{display:block!important;margin:auto!important;border:0!important;background:#fff!important;object-position:center!important;}
.dashboard-thumb .pdf-thumb-frame,.dashboard-pdf-thumb{left:50%!important;top:50%!important;transform:translate(-50%,-50%) scale(.16)!important;transform-origin:center center!important;}
.file-thumb-mini .pdf-thumb-frame,.file-pdf-thumb{left:50%!important;top:50%!important;transform:translate(-50%,-50%) scale(.18)!important;transform-origin:center center!important;}
.action-icon-img.nexei-icon-real{width:22px!important;height:22px!important;max-width:22px!important;max-height:22px!important;object-fit:contain!important;object-position:center!important;display:block!important;}
.details .actions a,.details .actions button,.icon-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;}
.details .actions{max-width:100%!important;}

/* Visualização do processo: ocupa a tela sem barra horizontal no desktop */
@media (min-width:1101px){
  .viewer{width:100%!important;max-width:100%!important;grid-template-columns:minmax(190px,230px) minmax(0,1fr) minmax(360px,420px)!important;overflow:hidden!important;}
  .viewer .doc-frame{min-width:0!important;overflow:hidden!important;}
  .viewer .details,.viewer .files{min-width:0!important;}
  .viewer .details .actions{justify-content:flex-end!important;flex-wrap:nowrap!important;overflow-x:auto!important;}
}

/* Admin/painéis mais limpos e modernos */
.panel,.hub-card,.workflow-card,.doc-card,.system-health-card{border-color:#dbe7ff!important;box-shadow:0 10px 28px rgba(15,23,42,.04)!important;}
.hub-card,.workflow-card,.system-health-card{transition:transform .15s ease, box-shadow .15s ease;}
.hub-card:hover,.workflow-card:hover,.system-health-card:hover{transform:translateY(-1px);box-shadow:0 18px 38px rgba(15,23,42,.08)!important;}
.system-health-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;gap:14px!important;}
.system-health-card{position:relative;padding-left:18px!important;background:linear-gradient(180deg,#fff,#f8fbff)!important;}
.system-health-card:before{content:'';position:absolute;left:12px;top:18px;width:9px;height:9px;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 4px rgba(148,163,184,.12);}
.system-health-card.health-ok:before{background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.14);}
.system-health-card.health-warn:before{background:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.14);}
.system-health-card.health-bad:before{background:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.14);}
.nexei-health-summary,.nexei-dashboard-chart{display:flex;align-items:center;gap:22px;padding:18px;border:1px solid #dbe7ff;border-radius:22px;background:linear-gradient(135deg,#ffffff,#f5f9ff);box-shadow:0 12px 34px rgba(15,23,42,.05);margin:14px 0;}
.nexei-donut{width:116px;height:116px;border-radius:50%;background:conic-gradient(#22c55e 0 var(--okdeg,280deg),#f59e0b var(--okdeg,280deg) 330deg,#ef4444 330deg 360deg);display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;flex:0 0 116px;}
.nexei-donut:after{content:'';position:absolute;inset:16px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 1px #e2e8f0;}
.nexei-donut b,.nexei-donut span{position:relative;z-index:1;line-height:1;}
.nexei-donut b{font-size:26px;color:#172554;}.nexei-donut span{font-size:11px;color:#64748b;font-weight:800;text-transform:uppercase;}
.nexei-chart-legend{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:8px;}.nexei-chart-legend span{display:inline-flex;align-items:center;gap:6px;color:#475569}.nexei-chart-legend i{width:10px;height:10px;border-radius:50%;display:inline-block;}

/* Mobile: menu hambúrguer real e blocos sem estourar */
@media (max-width:760px){
  html,body{overflow-x:hidden!important;}
  .nexei-mobile-toggle{display:flex!important;position:fixed!important;left:12px!important;top:12px!important;z-index:10050!important;}
  .sidebar{position:fixed!important;left:0!important;top:0!important;bottom:0!important;width:292px!important;max-width:86vw!important;transform:translateX(-105%)!important;transition:transform .2s ease!important;z-index:10040!important;overflow:auto!important;padding:70px 14px 18px!important;}
  .sidebar.nexei-mobile-open{transform:translateX(0)!important;}
  .main,.app-main{margin-left:0!important;width:100%!important;max-width:100%!important;padding:68px 12px 18px!important;overflow-x:hidden!important;}
  .doc-card{grid-template-columns:92px minmax(0,1fr)!important;max-width:100%!important;}
  .doc-title,.doc-meta,.badge{overflow-wrap:anywhere!important;word-break:normal!important;}
  .viewer{display:flex!important;flex-direction:column!important;width:100%!important;max-width:100%!important;overflow-x:hidden!important;}
  .viewer .files,.viewer .doc-frame,.viewer .details{width:100%!important;max-width:100%!important;min-width:0!important;}
  .viewer .doc-frame{height:68vh!important;min-height:420px!important;}
  .nexei-health-summary,.nexei-dashboard-chart{flex-direction:column;align-items:flex-start;}
}


/* v270 - refinamento visual, sem alterar PNG/ICO */
:root{--nexei-sidebar:206px;--nexei-gap:16px;--nexei-radius:18px;}
html,body{max-width:100%!important;overflow-x:hidden!important;}
body:not(.page-login){zoom:1!important;font-size:90%!important;background:#f4f7fb!important;}
body:not(.page-login) .main,body:not(.page-login) .app-main{margin-left:var(--nexei-sidebar)!important;width:calc(100vw - var(--nexei-sidebar))!important;max-width:calc(100vw - var(--nexei-sidebar))!important;overflow-x:hidden!important;padding:18px 18px 24px!important;}
.sidebar{width:var(--nexei-sidebar)!important;min-width:var(--nexei-sidebar)!important;}
.panel,.doc-card,.hub-card,.workflow-card,.system-health-card{border-radius:var(--nexei-radius)!important;}

/* Login: apenas a logo, maior, com subtítulo discreto */
.page-login .login-logo{width:150px!important;height:150px!important;margin:0 auto 8px!important;border-radius:32px!important;overflow:visible!important;background:transparent!important;box-shadow:none!important;}
.page-login .login-logo img{width:150px!important;height:150px!important;max-width:150px!important;max-height:150px!important;object-fit:contain!important;object-position:center!important;transform:none!important;border:0!important;background:transparent!important;}
.page-login .login-card h1{display:none!important;}
.page-login .login-subtitle-only{margin:4px 0 22px!important;color:#475569!important;font-size:14px!important;text-align:center!important;}
.nexei-login-loading img{width:138px!important;height:138px!important;object-fit:contain!important;}

/* Saúde do sistema: status alinhados e cores mais claras */
.system-health-grid{align-items:stretch!important;}
.system-health-card{padding:20px 20px 20px 26px!important;min-height:116px!important;display:flex!important;flex-direction:column!important;gap:6px!important;}
.system-health-card:before{left:14px!important;top:24px!important;width:10px!important;height:10px!important;}
.system-health-card span{padding-left:8px!important;display:block!important;color:#334155!important;font-weight:700!important;line-height:1.2!important;}
.system-health-card b{font-size:24px!important;line-height:1.05!important;}
.system-health-card .health-ok,.health-value.health-ok{color:#16a34a!important;}
.system-health-card .health-warn,.health-value.health-warn{color:#d97706!important;}
.system-health-card .health-bad,.health-value.health-bad{color:#dc2626!important;}
.nexei-dashboard-chart{display:none!important;}

/* Filtros compactos e modernos */
.filters,.document-filters,form.filters,.filter-grid{gap:8px!important;align-items:end!important;}
.filters select,.filters input,.document-filters select,.document-filters input,.filter-grid select,.filter-grid input{min-height:42px!important;height:42px!important;padding:8px 14px!important;border-radius:14px!important;font-size:13px!important;}
.filters button,.filters a,.document-filters button,.filter-grid button{min-height:42px!important;height:42px!important;border-radius:14px!important;padding:8px 16px!important;font-size:13px!important;}
.multi-select{min-height:44px!important;height:auto!important;max-height:88px!important;overflow:auto!important;padding:8px 12px!important;}

/* Visualização do processo: ações no topo direito, sem quebra agressiva */
@media (min-width:1101px){
  .viewer{grid-template-columns:220px minmax(0,1fr) 430px!important;gap:14px!important;width:100%!important;max-width:100%!important;overflow:hidden!important;}
  .viewer .details{min-width:390px!important;max-width:430px!important;overflow:auto!important;}
  .viewer .details .actions,.details .actions{display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:7px!important;flex-wrap:nowrap!important;overflow-x:auto!important;padding:4px 0 12px!important;max-width:100%!important;}
  .details .actions a,.details .actions button,.icon-btn{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;border-radius:11px!important;padding:0!important;}
  .action-icon-img.nexei-icon-real,.details .actions img{width:20px!important;height:20px!important;object-fit:contain!important;object-position:center!important;}
}
.approval{padding:12px!important;border-radius:15px!important;gap:8px!important;}
.approval>b,.approval strong{font-size:13px!important;line-height:1.2!important;}
.approval>span,.approval small{font-size:12px!important;}
.approval-admin-move .mini,.approval .mini{min-height:30px!important;height:30px!important;padding:5px 9px!important;font-size:12px!important;border-radius:9px!important;}
.approval-admin-move .danger-mini,.approval .danger-mini{width:30px!important;min-width:30px!important;padding:0!important;}

/* Administração > Acessos e governança: cards de permissões mais legíveis */
.governance-v3 .gov-selector-grid,.governance-v3 .gov-create-grid{gap:14px!important;}
.gov-editor-card,.gov-section,.gov-picker,.gov-mini-card{border-radius:20px!important;border:1px solid #dbe7ff!important;background:linear-gradient(180deg,#fff,#f8fbff)!important;box-shadow:0 12px 30px rgba(15,23,42,.04)!important;}
.gov-section{padding:16px!important;margin-top:14px!important;}
.gov-section-head{display:flex!important;justify-content:space-between!important;gap:14px!important;align-items:flex-start!important;margin-bottom:12px!important;}
.gov-section-head h4{font-size:17px!important;margin:0 0 4px!important;}
.gov-section-head p{font-size:13px!important;color:#64748b!important;margin:0!important;}
.gov-check-grid.functions{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(300px,1fr))!important;gap:10px!important;}
.gov-check{display:flex!important;align-items:flex-start!important;gap:10px!important;padding:12px!important;border:1px solid #dbe7ff!important;border-radius:14px!important;background:#fff!important;min-height:72px!important;}
.gov-check input[type=checkbox]{appearance:none!important;width:20px!important;height:20px!important;min-width:20px!important;margin-top:2px!important;border:2px solid #bfdbfe!important;border-radius:7px!important;background:#fff!important;display:inline-grid!important;place-content:center!important;}
.gov-check input[type=checkbox]:checked{background:#4f46e5!important;border-color:#4f46e5!important;}
.gov-check input[type=checkbox]:checked:after{content:'✓';color:#fff;font-size:13px;font-weight:900;line-height:1;}
.gov-check span{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important;}
.gov-check b{font-size:13px!important;color:#0f172a!important;line-height:1.2!important;}
.gov-check small{font-size:12px!important;color:#64748b!important;line-height:1.25!important;}
.gov-process-group summary{padding:12px 14px!important;border-radius:14px!important;background:#eef5ff!important;}

/* Mobile refinado */
@media (max-width:760px){
  body:not(.page-login) .main,body:not(.page-login) .app-main{margin-left:0!important;width:100%!important;max-width:100%!important;padding:68px 12px 18px!important;}
  .filters,.document-filters,form.filters,.filter-grid{grid-template-columns:1fr!important;gap:8px!important;}
  .doc-card{grid-template-columns:86px minmax(0,1fr)!important;gap:12px!important;}
  .doc-title{font-size:14px!important;overflow-wrap:anywhere!important;}
  .viewer{display:flex!important;flex-direction:column!important;gap:12px!important;}
  .viewer .files{order:1!important;display:block!important;width:100%!important;}
  .viewer .doc-frame{order:2!important;height:66vh!important;min-height:400px!important;}
  .viewer .details{order:3!important;width:100%!important;min-width:0!important;max-width:none!important;}
  .viewer .details .actions{justify-content:flex-start!important;flex-wrap:wrap!important;position:sticky!important;top:0!important;}
  .gov-check-grid.functions{grid-template-columns:1fr!important;}
  .gov-section-head{display:grid!important;grid-template-columns:1fr!important;}
}


/* v271 - correção precisa de layout, filtros, governança e mobile sem alterar imagens */
:root{--nexei-sidebar:206px;--nexei-ui-font:90%;}
html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important;}
body:not(.page-login){zoom:1!important;font-size:var(--nexei-ui-font)!important;}
body:not(.page-login) .main,body:not(.page-login) .app-main{box-sizing:border-box!important;margin-left:var(--nexei-sidebar)!important;width:calc(100vw - var(--nexei-sidebar))!important;max-width:calc(100vw - var(--nexei-sidebar))!important;min-width:0!important;overflow-x:hidden!important;padding:18px!important;}
.panel,.topbar,.doc-list,.cards,.admin-hub,.governance-v3{max-width:100%!important;box-sizing:border-box!important;overflow-x:clip!important;}

/* Filtros compactos com seleção múltipla sem abrir o select gigante */
.filters,.document-filters{display:grid!important;grid-template-columns:repeat(9,minmax(110px,1fr))!important;gap:8px!important;align-items:start!important;position:relative!important;overflow:visible!important;}
.document-filters select,.document-filters input,.document-filters button,.document-filters a,.type-filter-menu>summary{height:42px!important;min-height:42px!important;border-radius:14px!important;font-size:13px!important;padding:8px 12px!important;box-sizing:border-box!important;}
.type-filter-menu{position:relative!important;min-width:0!important;height:42px!important;display:block!important;z-index:20!important;}
.type-filter-menu>summary{list-style:none!important;cursor:pointer!important;background:#fff!important;border:1px solid #cfe0ff!important;color:#0f172a!important;display:flex!important;align-items:center!important;justify-content:space-between!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.type-filter-menu>summary::-webkit-details-marker{display:none!important;}
.type-filter-menu>summary:after{content:'▾';font-size:11px;color:#0f172a;margin-left:8px;}
.type-filter-menu[open]>summary:after{content:'▴';}
.type-filter-options{position:absolute!important;left:0!important;top:48px!important;width:min(440px,90vw)!important;max-height:340px!important;overflow:auto!important;background:#fff!important;border:1px solid #cfe0ff!important;border-radius:16px!important;box-shadow:0 24px 60px rgba(15,23,42,.18)!important;padding:10px!important;z-index:9999!important;}
.type-filter-options label{display:flex!important;align-items:flex-start!important;gap:8px!important;padding:9px 8px!important;border-radius:10px!important;font-size:13px!important;line-height:1.2!important;cursor:pointer!important;}
.type-filter-options label:hover{background:#f1f6ff!important;}
.type-filter-options input{width:16px!important;height:16px!important;margin-top:1px!important;min-width:16px!important;}
.type-filter-top{position:sticky!important;top:-10px!important;background:#fff!important;display:flex!important;justify-content:space-between!important;align-items:center!important;gap:8px!important;padding:4px 2px 8px!important;border-bottom:1px solid #eef2ff!important;margin-bottom:4px!important;}
.top-search-popover .type-filter-menu{height:auto!important;}
.top-search-popover .type-filter-options{position:static!important;width:100%!important;max-height:240px!important;box-shadow:none!important;margin-top:6px!important;}
.multi-select{height:42px!important;max-height:42px!important;min-height:42px!important;overflow:hidden!important;}

/* Visualização: sidebar realmente minimizada e painel usando a largura correta */
@media (min-width:1101px){
  body.page-view{--nexei-sidebar:64px!important;--nexei-ui-font:90%;}
  body.page-view .sidebar{width:64px!important;min-width:64px!important;padding:18px 8px!important;overflow:hidden!important;}
  body.page-view .sidebar .brand{justify-content:center!important;margin-bottom:22px!important;}
  body.page-view .sidebar .brand>div:not(.brand-mark),body.page-view .sidebar .nav-text,body.page-view .sidebar .user-card{display:none!important;}
  body.page-view .sidebar nav{display:grid!important;gap:9px!important;}
  body.page-view .sidebar nav a{width:44px!important;height:44px!important;padding:0!important;justify-content:center!important;margin:0 auto!important;border-radius:14px!important;}
  body.page-view .brand-mark{width:42px!important;height:42px!important;min-width:42px!important;}
  body.page-view .brand-mark img{width:42px!important;height:42px!important;transform:none!important;}
  body.page-view .main{margin-left:64px!important;width:calc(100vw - 64px)!important;max-width:calc(100vw - 64px)!important;padding:14px 14px 18px!important;}
  body.page-view .viewer{display:grid!important;grid-template-columns:220px minmax(0,1fr) 430px!important;width:100%!important;max-width:100%!important;gap:14px!important;overflow:hidden!important;box-sizing:border-box!important;}
  body.page-view .viewer .files{min-width:0!important;width:220px!important;max-width:220px!important;}
  body.page-view .viewer .doc-frame{min-width:0!important;width:100%!important;}
  body.page-view .viewer .details{min-width:0!important;width:430px!important;max-width:430px!important;padding:0 10px 18px!important;box-sizing:border-box!important;overflow:auto!important;}
  body.page-view .viewer .details .actions{display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:7px!important;flex-wrap:nowrap!important;overflow:visible!important;padding:6px 4px 12px!important;max-width:100%!important;}
  body.page-view .details .actions a,body.page-view .details .actions button,body.page-view .icon-btn{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;border-radius:11px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;overflow:visible!important;}
  body.page-view .details .actions img,body.page-view .action-icon-img.nexei-icon-real{width:19px!important;height:19px!important;object-fit:contain!important;object-position:center!important;display:block!important;}
  body.page-view .approval{padding:11px!important;}
  body.page-view .approval b,body.page-view .approval strong{font-size:12.5px!important;}
  body.page-view .approval .mini{height:30px!important;min-height:30px!important;font-size:12px!important;padding:5px 9px!important;}
}

/* Governança: função uma abaixo da outra, com busca por código/nome */
.gov-function-toolbar{margin:8px 0 12px!important;display:block!important;}
.gov-function-toolbar label{display:block!important;font-weight:800!important;color:#0f172a!important;}
.gov-function-toolbar input{margin-top:6px!important;width:100%!important;max-width:520px!important;height:42px!important;border:1px solid #cfe0ff!important;border-radius:14px!important;padding:8px 14px!important;background:#fff!important;}
.gov-check-grid.functions,.gov-functions-list{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;}
.gov-functions-list .gov-check{min-height:58px!important;display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;align-items:flex-start!important;}
.gov-functions-list .gov-check b{display:flex!important;gap:8px!important;align-items:center!important;font-size:13px!important;}
.gov-functions-list .gov-check b em{font-style:normal!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:38px!important;height:24px!important;border-radius:999px!important;background:#eef2ff!important;color:#4338ca!important;font-size:12px!important;font-weight:900!important;}

/* Login loading com GIF visível e centralizado */
.nexei-login-loading{position:fixed!important;inset:0!important;z-index:999999!important;background:linear-gradient(135deg,rgba(23,43,85,.96),rgba(88,49,210,.94))!important;display:flex!important;align-items:center!important;justify-content:center!important;}
.nexei-login-loading>div{width:min(360px,calc(100vw - 40px))!important;min-height:260px!important;border-radius:28px!important;background:rgba(255,255,255,.94)!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:10px!important;box-shadow:0 28px 90px rgba(15,23,42,.35)!important;text-align:center!important;}
.nexei-login-loading img{width:148px!important;height:148px!important;object-fit:contain!important;display:block!important;}
.nexei-login-loading strong{font-size:20px!important;color:#263aeb!important;}
.nexei-login-loading span{font-size:13px!important;color:#475569!important;}

/* Mobile: nada cortando, menu hambúrguer e cards em coluna */
@media (max-width:760px){
  body:not(.page-login){font-size:100%!important;overflow-x:hidden!important;}
  body:not(.page-login) .main,body:not(.page-login) .app-main{margin-left:0!important;width:100%!important;max-width:100%!important;padding:68px 12px 18px!important;overflow-x:hidden!important;}
  .sidebar{position:fixed!important;left:0!important;top:0!important;bottom:0!important;width:286px!important;max-width:86vw!important;transform:translateX(-105%)!important;z-index:10040!important;padding:70px 14px 18px!important;overflow:auto!important;}
  .sidebar.nexei-mobile-open{transform:translateX(0)!important;}
  .nexei-mobile-toggle{display:flex!important;position:fixed!important;left:12px!important;top:12px!important;width:44px!important;height:44px!important;z-index:10050!important;border:0!important;border-radius:14px!important;background:#172b55!important;color:#fff!important;align-items:center!important;justify-content:center!important;font-size:22px!important;font-weight:900!important;}
  .filters,.document-filters{grid-template-columns:1fr!important;gap:8px!important;}
  .type-filter-options{position:fixed!important;left:12px!important;right:12px!important;top:112px!important;width:auto!important;max-height:55vh!important;}
  .doc-card{display:grid!important;grid-template-columns:86px minmax(0,1fr)!important;gap:12px!important;padding:12px!important;max-width:100%!important;}
  .doc-title{font-size:14px!important;line-height:1.25!important;overflow-wrap:anywhere!important;word-break:normal!important;}
  .doc-meta{font-size:12px!important;gap:6px 10px!important;overflow-wrap:anywhere!important;}
  .badge{font-size:11px!important;max-width:100%!important;white-space:normal!important;}
  .doc-actions{grid-column:1/-1!important;justify-content:flex-start!important;flex-wrap:wrap!important;}
  .viewer{display:flex!important;flex-direction:column!important;width:100%!important;max-width:100%!important;overflow-x:hidden!important;gap:12px!important;}
  .viewer .files,.viewer .doc-frame,.viewer .details{width:100%!important;max-width:100%!important;min-width:0!important;}
  .viewer .files{order:1!important;}
  .viewer .doc-frame{order:2!important;height:66vh!important;min-height:400px!important;}
  .viewer .details{order:3!important;}
  .viewer .details .actions{justify-content:flex-start!important;flex-wrap:wrap!important;overflow:visible!important;}
}

/* v272 - ajustes pontuais solicitados: filtros, visualização, governança e mobile */
html,body{overflow-x:hidden!important;max-width:100%!important;}
.nexei-mobile-toggle{display:none!important;}

/* Filtros compactos com múltipla seleção sem aumentar a altura */
.filters,.document-filters,.dashboard-filters{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;gap:10px!important;align-items:end!important;width:100%!important;max-width:100%!important;overflow:visible!important;}
.document-filters{grid-template-columns:repeat(8,minmax(130px,1fr))!important;}
.dashboard-filters{grid-template-columns:repeat(5,minmax(150px,1fr)) minmax(160px,180px)!important;}
.dashboard-filters .filter-actions-vertical{grid-column:auto!important;justify-self:end!important;width:180px!important;display:flex!important;flex-direction:column!important;gap:8px!important;}
.filters select,.filters input,.filters button,.filters a,.type-filter-menu>summary{height:42px!important;min-height:42px!important;border-radius:14px!important;font-size:13px!important;box-sizing:border-box!important;}
.type-filter-menu,.nexei-multi-filter{position:relative!important;width:100%!important;min-width:0!important;}
.type-filter-menu>summary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;padding:0 14px!important;background:#fff!important;border:1px solid #d4e2f7!important;color:#0f172a!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;list-style:none!important;cursor:pointer!important;}
.type-filter-menu>summary::-webkit-details-marker{display:none!important;}
.type-filter-menu>summary:after{content:'⌄';font-size:13px;color:#475569;flex:0 0 auto;}
.type-filter-menu[open]>summary:after{content:'⌃';}
.type-filter-options{position:absolute!important;top:48px!important;left:0!important;z-index:1000!important;width:min(340px,92vw)!important;max-height:360px!important;overflow:auto!important;background:#fff!important;border:1px solid #cfe0ff!important;border-radius:16px!important;box-shadow:0 22px 58px rgba(15,23,42,.18)!important;padding:10px!important;}
.type-filter-options label{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;padding:8px 7px!important;border-radius:10px!important;font-size:13px!important;color:#172554!important;}
.type-filter-options label:hover{background:#f1f6ff!important;}
.type-filter-options input[type=checkbox]{width:16px!important;height:16px!important;accent-color:#4f46e5!important;}
.type-filter-top{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;padding:4px 4px 8px!important;border-bottom:1px solid #edf2fb!important;margin-bottom:6px!important;}
.type-filter-top .mini{height:28px!important;min-height:28px!important;padding:4px 8px!important;font-size:12px!important;}

/* Desktop: menu normal em todas as páginas, inclusive visualizar processo */
@media (min-width:761px){
  body:not(.page-login){--nexei-sidebar:206px!important;--nexei-ui-font:90%!important;}
  body:not(.page-login) .sidebar,body.page-view .sidebar{width:206px!important;min-width:206px!important;padding:18px 12px!important;overflow:visible!important;position:fixed!important;left:0!important;top:0!important;bottom:0!important;transform:none!important;}
  body.page-view .sidebar .brand>div:not(.brand-mark),body.page-view .sidebar .nav-text,body.page-view .sidebar .user-card{display:block!important;}
  body.page-view .sidebar nav a{width:auto!important;height:auto!important;padding:12px 14px!important;justify-content:flex-start!important;margin:0!important;border-radius:14px!important;}
  body.page-view .brand-mark{width:48px!important;height:48px!important;min-width:48px!important;}
  body.page-view .brand-mark img{width:48px!important;height:48px!important;}
  body.page-view .main{margin-left:206px!important;width:calc(100vw - 206px)!important;max-width:calc(100vw - 206px)!important;padding:16px 18px 22px!important;overflow-x:hidden!important;}
  body.page-view .viewer{position:relative!important;display:grid!important;grid-template-columns:240px minmax(0,1fr) minmax(360px,430px)!important;gap:14px!important;width:100%!important;max-width:100%!important;overflow:hidden!important;box-sizing:border-box!important;}
  body.page-view .viewer .files{width:240px!important;max-width:240px!important;}
  body.page-view .viewer .details{width:auto!important;max-width:430px!important;min-width:360px!important;overflow:auto!important;padding:0 12px 18px!important;}
}

/* Visualizar processo: X e ações sem sobrepor a topbar */
body.page-view .viewer-close{position:absolute!important;right:12px!important;top:12px!important;z-index:30!important;width:34px!important;height:34px!important;border-radius:12px!important;}
body.page-view .top-actions{padding-right:48px!important;}
body.page-view .viewer .details .actions{display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:8px!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;padding:8px 2px 12px!important;}
body.page-view .details .actions a,body.page-view .details .actions button,body.page-view .icon-btn{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;padding:0!important;border-radius:10px!important;overflow:hidden!important;}
body.page-view .details .actions img,body.page-view .action-icon-img.nexei-icon-real{width:18px!important;height:18px!important;object-fit:contain!important;}

/* Aprovações: botões administrativos menores, alinhados à direita e sem fundo pesado */
body.page-view .approval{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px 12px!important;padding:11px 12px!important;}
body.page-view .approval-admin-move{grid-column:2!important;grid-row:1 / span 2!important;margin-left:auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:4px!important;flex-wrap:nowrap!important;}
body.page-view .approval-admin-move form{display:inline-flex!important;gap:4px!important;margin:0!important;}
body.page-view .approval-admin-move .mini,body.page-view .approval .mini{height:26px!important;min-height:26px!important;min-width:26px!important;padding:3px 7px!important;border-radius:8px!important;font-size:11.5px!important;background:transparent!important;border:1px solid #dbe7ff!important;box-shadow:none!important;color:#0f172a!important;}
body.page-view .approval-admin-move .danger-mini,body.page-view .approval .danger-mini{background:transparent!important;border-color:#fecdd3!important;color:#991b1b!important;width:26px!important;min-width:26px!important;}
body.page-view .approval b,body.page-view .approval strong{font-size:12.5px!important;line-height:1.2!important;}

/* Governança: funções/permissões em uma coluna com busca útil */
.gov-function-toolbar{margin:10px 0 12px!important;}
.gov-function-toolbar input{height:42px!important;border-radius:14px!important;padding:8px 14px!important;width:100%!important;max-width:460px!important;}
.gov-check-grid.functions,.gov-functions-list{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;max-height:560px!important;overflow:auto!important;padding-right:6px!important;}
.gov-check-grid.functions .gov-check,.gov-functions-list .gov-check{display:grid!important;grid-template-columns:28px minmax(0,1fr)!important;align-items:flex-start!important;gap:10px!important;padding:12px!important;border:1px solid #dbe7ff!important;border-radius:14px!important;background:#fff!important;}
.gov-check-grid.functions .gov-check input{width:18px!important;height:18px!important;margin-top:2px!important;accent-color:#4f46e5!important;}
.gov-check-grid.functions .gov-check b{display:block!important;font-size:13px!important;color:#0f172a!important;}
.gov-check-grid.functions .gov-check em{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:34px!important;height:22px!important;border-radius:999px!important;background:#eef2ff!important;color:#4338ca!important;font-style:normal!important;margin-right:6px!important;}
.gov-check-grid.functions .gov-check small{display:block!important;margin-top:3px!important;color:#64748b!important;line-height:1.35!important;}

/* Mobile: hamburger, conteúdo em coluna e sem cortes */
@media (max-width:760px){
  body:not(.page-login) .main{margin-left:0!important;width:100%!important;max-width:100%!important;padding:68px 12px 18px!important;}
  .nexei-mobile-toggle{display:flex!important;position:fixed!important;left:12px!important;top:12px!important;z-index:10050!important;width:42px!important;height:42px!important;border-radius:12px!important;align-items:center!important;justify-content:center!important;background:#0f2a55!important;color:#fff!important;border:1px solid rgba(255,255,255,.18)!important;box-shadow:0 12px 28px rgba(15,23,42,.22)!important;}
  .sidebar{position:fixed!important;left:0!important;top:0!important;bottom:0!important;width:286px!important;max-width:86vw!important;transform:translateX(-105%)!important;z-index:10040!important;padding:70px 14px 18px!important;overflow:auto!important;}
  .sidebar.nexei-mobile-open{transform:translateX(0)!important;}
  .filters,.document-filters,.dashboard-filters{grid-template-columns:1fr!important;}
  .dashboard-filters .filter-actions-vertical{width:100%!important;justify-self:stretch!important;}
  .doc-card{grid-template-columns:96px minmax(0,1fr)!important;gap:12px!important;}
  .doc-title,.doc-meta,.badge,.doc-main{min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important;word-break:normal!important;}
  body.page-view .viewer{display:flex!important;flex-direction:column!important;width:100%!important;max-width:100%!important;overflow-x:hidden!important;}
  body.page-view .viewer .files,body.page-view .viewer .doc-frame,body.page-view .viewer .details{width:100%!important;max-width:100%!important;min-width:0!important;}
  body.page-view .viewer .doc-frame{height:68vh!important;min-height:420px!important;}
  body.page-view .approval{display:block!important;}
  body.page-view .approval-admin-move{justify-content:flex-start!important;margin-top:8px!important;}
}


/* v273 - ajustes pontuais solicitados */
:root{--nexei-sidebar:206px!important;}
html,body{overflow-x:hidden!important;}
body:not(.page-login) .main{margin-left:206px!important;width:calc(100vw - 206px)!important;max-width:calc(100vw - 206px)!important;overflow-x:hidden!important;box-sizing:border-box!important;}
body.page-view .main{margin-left:206px!important;width:calc(100vw - 206px)!important;max-width:calc(100vw - 206px)!important;padding:16px 16px 20px!important;}
@media (min-width:761px){
  body:not(.page-login) .sidebar{width:206px!important;min-width:206px!important;max-width:206px!important;overflow:hidden!important;}
  body:not(.page-login) .sidebar .brand{display:flex!important;align-items:center!important;gap:12px!important;}
  body:not(.page-login) .sidebar .brand>div:not(.brand-mark),body:not(.page-login) .sidebar .nav-text,body:not(.page-login) .sidebar .user-card{display:block!important;}
  body:not(.page-login) .sidebar nav a{justify-content:flex-start!important;width:auto!important;}
}
/* Dashboard: filtros compactos, botoes à direita */
.dashboard-filters{display:grid!important;grid-template-columns:repeat(5,minmax(140px,1fr)) minmax(150px,auto)!important;align-items:center!important;gap:8px!important;overflow:visible!important;}
.dashboard-filters .filter-actions-vertical{grid-column:6!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;width:auto!important;justify-self:end!important;}
.dashboard-filters .filter-actions-vertical button,.dashboard-filters .filter-actions-vertical a{height:40px!important;min-height:40px!important;white-space:nowrap!important;}
/* Meus Processos: filtros discretos e dropdown sem warning/estouro */
.document-filters{display:grid!important;grid-template-columns:repeat(8,minmax(120px,1fr)) repeat(2,minmax(96px,auto))!important;gap:8px!important;align-items:center!important;overflow:visible!important;}
.document-filters .type-filter-menu>summary,.dashboard-filters .type-filter-menu>summary,.top-search-popover .type-filter-menu>summary{height:40px!important;min-height:40px!important;font-size:13px!important;}
.type-filter-options{z-index:30000!important;max-width:420px!important;}
.top-search-popover.advanced{display:grid!important;grid-template-columns:repeat(2,minmax(220px,1fr))!important;gap:10px!important;width:min(760px,calc(100vw - 32px))!important;max-height:75vh!important;overflow:auto!important;right:0!important;left:auto!important;}
.top-search-popover.advanced .type-filter-menu{height:auto!important;}
.top-search-popover.advanced .type-filter-options{position:static!important;width:100%!important;max-height:220px!important;box-shadow:none!important;margin-top:6px!important;}
.top-search-popover.advanced label{min-width:0!important;}
/* Visualizar processo */
body.page-view .viewer{grid-template-columns:240px minmax(0,1fr) minmax(360px,430px)!important;gap:14px!important;width:100%!important;max-width:100%!important;overflow:hidden!important;}
body.page-view .viewer .details{position:relative!important;overflow:auto!important;padding:0 10px 18px!important;}
body.page-view .viewer-close{position:fixed!important;right:18px!important;top:18px!important;z-index:50000!important;width:34px!important;height:34px!important;border-radius:12px!important;background:#fff!important;box-shadow:0 8px 22px rgba(15,23,42,.14)!important;}
body.page-view .topbar .top-actions{padding-right:54px!important;}
body.page-view .details .actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;flex-wrap:nowrap!important;overflow-x:auto!important;padding:8px 0 12px!important;margin-right:0!important;scrollbar-width:thin!important;}
body.page-view .details .actions a,body.page-view .details .actions button,body.page-view .icon-btn{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;border-radius:9px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
body.page-view .details .actions img,body.page-view .action-icon-img.nexei-icon-real{width:17px!important;height:17px!important;object-fit:contain!important;object-position:center!important;display:block!important;}
body.page-view .approval{grid-template-columns:minmax(0,1fr) auto!important;padding:10px 12px!important;gap:7px!important;}
body.page-view .approval-admin-move{margin-left:auto!important;justify-self:end!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:4px!important;flex-wrap:nowrap!important;}
body.page-view .approval-admin-move form{display:inline-flex!important;gap:4px!important;}
body.page-view .approval-admin-move .mini,body.page-view .approval .mini{height:24px!important;min-height:24px!important;min-width:24px!important;padding:2px 6px!important;font-size:11px!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#0f172a!important;}
body.page-view .approval-admin-move .danger-mini,body.page-view .approval .danger-mini{background:transparent!important;border:0!important;color:#111827!important;}
body.page-view .approval b,body.page-view .approval strong{font-size:12px!important;line-height:1.15!important;}
/* governanca: lista vertical e busca */
.gov-check-grid.functions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;max-height:560px!important;overflow:auto!important;}
.gov-check-grid.functions .gov-check{display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;align-items:flex-start!important;}
.gov-function-toolbar input{max-width:520px!important;}
@media (max-width:900px){
  .dashboard-filters,.document-filters{grid-template-columns:1fr!important;}
  .dashboard-filters .filter-actions-vertical{grid-column:auto!important;justify-self:stretch!important;display:grid!important;grid-template-columns:1fr 1fr!important;}
  .top-search-popover.advanced{grid-template-columns:1fr!important;left:0!important;right:0!important;width:calc(100vw - 24px)!important;}
}
@media (max-width:760px){
  body:not(.page-login) .main,body.page-view .main{margin-left:0!important;width:100%!important;max-width:100%!important;padding:68px 12px 18px!important;}
  body.page-view .viewer{display:flex!important;flex-direction:column!important;overflow-x:hidden!important;}
  body.page-view .viewer .files,body.page-view .viewer .doc-frame,body.page-view .viewer .details{width:100%!important;max-width:100%!important;min-width:0!important;}
  body.page-view .viewer-close{right:12px!important;top:12px!important;}
  body.page-view .details .actions{justify-content:flex-start!important;flex-wrap:wrap!important;padding-right:0!important;}
}

/* v274 - correção pontual da Busca Avançada: escondida por padrão, centralizada e fechável. */
#topAdvancedBox[hidden], #topPeriodBox[hidden], .top-search-popover[hidden] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body.nexei-search-modal-open::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.38);
  backdrop-filter: blur(2px);
  z-index: 1190;
}
#topAdvancedBox.top-search-popover.advanced,
#topPeriodBox.top-search-popover {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  z-index: 1200 !important;
  width: min(760px, calc(100vw - 36px)) !important;
  max-height: min(76vh, 720px) !important;
  overflow: auto !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 80px rgba(15,23,42,.28) !important;
}
#topPeriodBox.top-search-popover {
  width: min(420px, calc(100vw - 36px)) !important;
}
#topAdvancedBox.top-search-popover.advanced:not([hidden]) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  gap: 10px !important;
}
#topPeriodBox.top-search-popover:not([hidden]) {
  display: grid !important;
  gap: 10px !important;
}
#topAdvancedBox .top-popover-title,
#topPeriodBox .top-popover-title {
  grid-column: 1 / -1;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px;
  margin-bottom: 4px;
}
#topAdvancedBox .top-popover-close,
#topPeriodBox .top-popover-close {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  border: 1px solid #dbe7ff !important;
  background: #fff !important;
  color: #0f172a !important;
  font-size: 20px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}
#topAdvancedBox .top-popover-close:hover,
#topPeriodBox .top-popover-close:hover {
  background: #eff6ff !important;
}
@media (max-width: 760px) {
  #topAdvancedBox.top-search-popover.advanced:not([hidden]) {
    grid-template-columns: 1fr !important;
  }
  #topAdvancedBox.top-search-popover.advanced,
  #topPeriodBox.top-search-popover {
    width: calc(100vw - 20px) !important;
    max-height: calc(100vh - 28px) !important;
  }
}

/* v275 - correcoes pontuais: busca topo, view, sidebar, mobile e filtros */
html,body{max-width:100%!important;overflow-x:hidden!important;}
body:not(.page-login){font-size:90%!important;}

/* Topbar: os botoes da busca avancada/data precisam permanecer clicaveis acima de qualquer overlay */
.topbar,.top-actions,.top-search-form{position:relative!important;z-index:8000!important;}
.top-filter-btn{position:relative!important;z-index:9000!important;pointer-events:auto!important;}
.top-search-popover[hidden]{display:none!important;visibility:hidden!important;pointer-events:none!important;}
body.nexei-search-modal-open:before{content:'';position:fixed;inset:0;background:rgba(15,23,42,.36);z-index:8990;}
.top-search-popover{z-index:9001!important;pointer-events:auto!important;}
.top-search-popover.advanced,.top-search-popover#topAdvancedBox,.top-search-popover#topPeriodBox{position:fixed!important;right:26px!important;top:76px!important;left:auto!important;transform:none!important;background:#fff!important;border:1px solid #d8e6fb!important;border-radius:18px!important;box-shadow:0 24px 70px rgba(15,23,42,.24)!important;padding:14px!important;max-width:calc(100vw - 52px)!important;}
.top-search-popover.advanced{width:min(760px,calc(100vw - 52px))!important;display:grid!important;grid-template-columns:repeat(2,minmax(220px,1fr))!important;gap:10px!important;max-height:78vh!important;overflow:auto!important;}
#topPeriodBox{width:min(420px,calc(100vw - 52px))!important;display:grid!important;grid-template-columns:1fr!important;gap:10px!important;}
.top-popover-title{grid-column:1/-1!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:4px!important;font-weight:900!important;color:#0f172a!important;}
.top-popover-close{width:34px!important;height:34px!important;border-radius:12px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:#fff!important;border:1px solid #d6e3f8!important;color:#0f172a!important;font-size:20px!important;line-height:1!important;cursor:pointer!important;}
.top-search-popover.advanced .type-filter-options{position:static!important;width:100%!important;max-height:190px!important;box-shadow:none!important;margin-top:6px!important;}
.top-search-popover.advanced .type-filter-menu{min-width:0!important;}
.top-search-popover.advanced label{min-width:0!important;}

/* Filtros das telas: compacto e sem estourar largura */
.filters,.dashboard-filters,.document-filters{display:grid!important;gap:10px!important;align-items:end!important;max-width:100%!important;overflow:visible!important;}
.document-filters{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))!important;}
.dashboard-filters{grid-template-columns:repeat(5,minmax(150px,1fr)) minmax(150px,190px)!important;}
.dashboard-filters .filter-actions-vertical{justify-self:end!important;width:190px!important;display:flex!important;flex-direction:column!important;gap:8px!important;}
.filters input,.filters select,.filters button,.filters a,.type-filter-menu>summary{height:40px!important;min-height:40px!important;border-radius:14px!important;font-size:13px!important;box-sizing:border-box!important;}
.type-filter-menu>summary{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.type-filter-options{z-index:12000!important;}

/* Desktop: sidebar normal, inclusive na tela de visualizacao */
@media (min-width:761px){
  body:not(.page-login){--nexei-sidebar:220px!important;}
  body:not(.page-login) .sidebar{position:fixed!important;left:0!important;top:0!important;bottom:0!important;width:220px!important;min-width:220px!important;max-width:220px!important;height:100vh!important;transform:none!important;display:block!important;overflow:hidden!important;padding:22px 12px 18px!important;z-index:3000!important;}
  body:not(.page-login) .sidebar .brand{display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;margin-bottom:28px!important;}
  body:not(.page-login) .sidebar .brand>div:not(.brand-mark),body:not(.page-login) .sidebar .nav-text,body:not(.page-login) .sidebar .user-card{display:block!important;visibility:visible!important;opacity:1!important;}
  body:not(.page-login) .sidebar nav{display:flex!important;flex-direction:column!important;gap:8px!important;width:100%!important;}
  body:not(.page-login) .sidebar nav a{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;width:100%!important;height:46px!important;padding:0 12px!important;margin:0!important;border-radius:14px!important;box-sizing:border-box!important;}
  body:not(.page-login) .main{margin-left:220px!important;width:calc(100vw - 220px)!important;max-width:calc(100vw - 220px)!important;overflow-x:hidden!important;}
}

/* Visualizar processo: ocupar tela sem quebrar icones/topo */
@media (min-width:1000px){
  body.page-view .main{padding:16px 18px 18px!important;}
  body.page-view .viewer{display:grid!important;grid-template-columns:230px minmax(0,1fr) minmax(430px,480px)!important;gap:14px!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;overflow:hidden!important;}
  body.page-view .viewer .files{width:230px!important;max-width:230px!important;min-width:230px!important;}
  body.page-view .viewer .doc-frame{min-width:0!important;width:100%!important;height:calc(100vh - 92px)!important;min-height:620px!important;}
  body.page-view .viewer .doc-frame iframe{width:100%!important;height:100%!important;min-height:620px!important;}
  body.page-view .viewer .details{min-width:430px!important;max-width:480px!important;width:auto!important;overflow:auto!important;padding:0 12px 18px!important;}
}
body.page-view .viewer-close{position:fixed!important;right:18px!important;top:18px!important;z-index:20000!important;width:34px!important;height:34px!important;border-radius:14px!important;background:#fff!important;border:1px solid #dbe7ff!important;box-shadow:0 10px 30px rgba(15,23,42,.16)!important;}
body.page-view .topbar .top-actions{padding-right:56px!important;}
body.page-view .details .actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;flex-wrap:nowrap!important;overflow:visible!important;padding:8px 46px 12px 10px!important;margin:0!important;min-height:44px!important;}
body.page-view .details .actions>*{flex:0 0 auto!important;overflow:visible!important;}
body.page-view .details .actions a,body.page-view .details .actions button,body.page-view .icon-btn{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;padding:0!important;border-radius:9px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
body.page-view .details .actions img,body.page-view .action-icon-img.nexei-icon-real{width:17px!important;height:17px!important;object-fit:contain!important;object-position:center!important;display:block!important;}
body.page-view .approval{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;padding:10px 12px!important;}
body.page-view .approval-admin-move{grid-column:2!important;grid-row:1 / span 2!important;justify-self:end!important;margin-left:auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:4px!important;flex-wrap:nowrap!important;}
body.page-view .approval-admin-move form{display:inline-flex!important;gap:4px!important;margin:0!important;}
body.page-view .approval-admin-move .mini,body.page-view .approval .mini{height:24px!important;min-height:24px!important;min-width:24px!important;padding:2px 5px!important;font-size:11px!important;line-height:1!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#0f172a!important;}
body.page-view .approval-admin-move .danger-mini,body.page-view .approval .danger-mini{background:transparent!important;border:0!important;color:#111827!important;width:24px!important;min-width:24px!important;}
body.page-view .approval b,body.page-view .approval strong{font-size:12px!important;line-height:1.15!important;}

/* Mobile: menu hamburguer e conteudo sem corte */
@media (max-width:760px){
  body:not(.page-login) .main,body.page-view .main{margin-left:0!important;width:100%!important;max-width:100%!important;padding:68px 12px 18px!important;overflow-x:hidden!important;}
  .nexei-mobile-toggle{display:flex!important;position:fixed!important;top:12px!important;left:12px!important;width:42px!important;height:42px!important;z-index:21000!important;border-radius:14px!important;background:#fff!important;border:1px solid #d6e3f8!important;align-items:center!important;justify-content:center!important;box-shadow:0 12px 30px rgba(15,23,42,.14)!important;}
  .sidebar{position:fixed!important;left:0!important;top:0!important;bottom:0!important;width:286px!important;max-width:86vw!important;height:100vh!important;z-index:20000!important;transform:translateX(-105%)!important;transition:transform .2s ease!important;overflow:auto!important;padding:70px 14px 18px!important;display:block!important;}
  .sidebar.nexei-mobile-open,body.nexei-mobile-open .sidebar{transform:translateX(0)!important;}
  body.nexei-mobile-open:before{content:'';position:fixed;inset:0;background:rgba(15,23,42,.42);z-index:19990;}
  .sidebar nav{display:flex!important;flex-direction:column!important;gap:8px!important;}
  .sidebar nav a{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;min-height:44px!important;}
  .document-filters,.dashboard-filters,.filters{grid-template-columns:1fr!important;}
  .dashboard-filters .filter-actions-vertical{width:100%!important;justify-self:stretch!important;display:grid!important;grid-template-columns:1fr 1fr!important;}
  .doc-card{display:grid!important;grid-template-columns:90px minmax(0,1fr)!important;gap:12px!important;overflow:hidden!important;}
  .doc-title,.doc-meta,.field-line,body.page-view .details dl dd{overflow-wrap:anywhere!important;word-break:normal!important;}
  body.page-view .viewer{display:flex!important;flex-direction:column!important;width:100%!important;max-width:100%!important;overflow-x:hidden!important;gap:12px!important;}
  body.page-view .viewer .files,body.page-view .viewer .doc-frame,body.page-view .viewer .details{width:100%!important;max-width:100%!important;min-width:0!important;}
  body.page-view .viewer .files{order:1!important;}
  body.page-view .viewer .doc-frame{order:2!important;height:68vh!important;min-height:420px!important;}
  body.page-view .viewer .details{order:3!important;}
  body.page-view .details .actions{justify-content:flex-start!important;flex-wrap:wrap!important;padding-right:0!important;}
  .top-search-popover.advanced,#topPeriodBox{left:12px!important;right:12px!important;top:70px!important;width:auto!important;max-width:none!important;grid-template-columns:1fr!important;}
}


/* v276 - correcoes pontuais solicitadas: busca topo, sidebar original no view e icones sem corte */
html,body{max-width:100%!important;overflow-x:hidden!important;}
#topPeriodBox[hidden],#topAdvancedBox[hidden],.top-search-popover[hidden]{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}
#topPeriodBtn,#topAdvancedBtn{position:relative!important;z-index:60000!important;pointer-events:auto!important;cursor:pointer!important;}
#topPeriodBox:not([hidden]),#topAdvancedBox:not([hidden]){display:grid!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
#topPeriodBox.top-search-popover:not([hidden]){position:fixed!important;right:88px!important;top:70px!important;left:auto!important;width:min(360px,calc(100vw - 28px))!important;grid-template-columns:1fr!important;background:#fff!important;border:1px solid #d7e5fb!important;border-radius:18px!important;box-shadow:0 24px 70px rgba(15,23,42,.22)!important;padding:14px!important;z-index:50000!important;}
#topAdvancedBox.top-search-popover.advanced:not([hidden]){position:fixed!important;right:88px!important;top:70px!important;left:auto!important;transform:none!important;width:min(760px,calc(100vw - 28px))!important;max-height:calc(100vh - 96px)!important;overflow:auto!important;display:grid!important;grid-template-columns:repeat(2,minmax(240px,1fr))!important;gap:10px!important;background:#fff!important;border:1px solid #d7e5fb!important;border-radius:18px!important;box-shadow:0 24px 70px rgba(15,23,42,.22)!important;padding:14px!important;z-index:50000!important;}
#topAdvancedBox .top-popover-title,#topPeriodBox .top-popover-title{grid-column:1/-1!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin-bottom:2px!important;font-weight:800!important;color:#0f172a!important;}
#topAdvancedBox .top-popover-close,#topPeriodBox .top-popover-close{width:32px!important;height:32px!important;min-width:32px!important;border-radius:10px!important;border:1px solid #d8e6fb!important;background:#fff!important;color:#0f172a!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:20px!important;line-height:1!important;cursor:pointer!important;}
#topAdvancedBox .type-filter-menu,#topPeriodBox .type-filter-menu{height:auto!important;min-height:40px!important;width:100%!important;}
#topAdvancedBox .type-filter-options{position:static!important;width:100%!important;max-height:180px!important;box-shadow:none!important;border-radius:14px!important;margin-top:6px!important;}

@media (min-width:761px){
  body:not(.page-login){--nexei-sidebar:220px!important;}
  body:not(.page-login) .sidebar,body.page-view .sidebar{position:fixed!important;left:0!important;top:0!important;bottom:0!important;width:220px!important;min-width:220px!important;max-width:220px!important;height:100vh!important;transform:none!important;display:block!important;overflow:hidden!important;padding:22px 12px 18px!important;z-index:3000!important;}
  body:not(.page-login) .main,body.page-view .main{margin-left:220px!important;width:calc(100vw - 220px)!important;max-width:calc(100vw - 220px)!important;padding:16px 18px 18px!important;box-sizing:border-box!important;overflow-x:hidden!important;}
  body.page-view .sidebar .brand,body:not(.page-login) .sidebar .brand{display:flex!important;align-items:center!important;gap:12px!important;justify-content:flex-start!important;margin-bottom:28px!important;min-height:58px!important;}
  body.page-view .sidebar .brand>div:not(.brand-mark),body.page-view .sidebar .brand-text,body.page-view .sidebar .nav-text,body.page-view .sidebar .user-card{display:block!important;visibility:visible!important;opacity:1!important;}
  body.page-view .sidebar nav,body:not(.page-login) .sidebar nav{display:flex!important;flex-direction:column!important;gap:8px!important;width:100%!important;}
  body.page-view .sidebar nav a,body:not(.page-login) .sidebar nav a{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;width:100%!important;height:46px!important;padding:0 12px!important;margin:0!important;border-radius:14px!important;box-sizing:border-box!important;white-space:nowrap!important;}
  body.page-view .viewer{display:grid!important;grid-template-columns:230px minmax(0,1fr) minmax(430px,480px)!important;gap:14px!important;width:100%!important;max-width:100%!important;overflow:hidden!important;box-sizing:border-box!important;}
  body.page-view .viewer .files{width:230px!important;min-width:230px!important;max-width:230px!important;}
  body.page-view .viewer .doc-frame{min-width:0!important;width:100%!important;height:calc(100vh - 92px)!important;min-height:620px!important;overflow:hidden!important;}
  body.page-view .viewer .doc-frame iframe{width:100%!important;height:100%!important;min-height:620px!important;}
  body.page-view .viewer .details{min-width:430px!important;max-width:480px!important;width:auto!important;overflow:auto!important;padding:0 10px 18px 12px!important;box-sizing:border-box!important;}
  body.page-view .viewer-close{position:fixed!important;right:20px!important;top:72px!important;z-index:22000!important;width:34px!important;height:34px!important;border-radius:14px!important;background:#fff!important;border:1px solid #dbe7ff!important;box-shadow:0 10px 30px rgba(15,23,42,.16)!important;}
  body.page-view .topbar .top-actions{padding-right:0!important;}
  body.page-view .details .actions{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;flex-wrap:nowrap!important;overflow:visible!important;padding:8px 54px 12px 16px!important;margin:0!important;min-height:44px!important;box-sizing:border-box!important;}
  body.page-view .details .actions>*{flex:0 0 auto!important;overflow:visible!important;}
  body.page-view .details .actions a,body.page-view .details .actions button,body.page-view .icon-btn{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;padding:0!important;border-radius:9px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
  body.page-view .details .actions img,body.page-view .action-icon-img.nexei-icon-real{width:17px!important;height:17px!important;object-fit:contain!important;object-position:center!important;display:block!important;}
  body.page-view .approval{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;padding:10px 12px!important;}
  body.page-view .approval-admin-move{grid-column:2!important;grid-row:1 / span 2!important;justify-self:end!important;margin-left:auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:4px!important;flex-wrap:nowrap!important;}
  body.page-view .approval-admin-move form{display:inline-flex!important;gap:4px!important;margin:0!important;}
  body.page-view .approval-admin-move .mini,body.page-view .approval .mini{height:22px!important;min-height:22px!important;min-width:22px!important;padding:1px 5px!important;font-size:10px!important;line-height:1!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#0f172a!important;}
  body.page-view .approval-admin-move .danger-mini,body.page-view .approval .danger-mini{background:transparent!important;border:0!important;color:#111827!important;width:22px!important;min-width:22px!important;}
}

@media (max-width:760px){
  #topAdvancedBox.top-search-popover.advanced:not([hidden]),#topPeriodBox.top-search-popover:not([hidden]){left:12px!important;right:12px!important;top:70px!important;width:auto!important;max-width:none!important;grid-template-columns:1fr!important;}
  body:not(.page-login) .main,body.page-view .main{margin-left:0!important;width:100%!important;max-width:100%!important;padding:68px 12px 18px!important;overflow-x:hidden!important;}
  .sidebar{position:fixed!important;left:0!important;top:0!important;bottom:0!important;width:286px!important;max-width:86vw!important;height:100vh!important;z-index:20000!important;transform:translateX(-105%)!important;transition:transform .2s ease!important;overflow:auto!important;padding:70px 14px 18px!important;display:block!important;}
  .sidebar.nexei-mobile-open,body.nexei-mobile-open .sidebar{transform:translateX(0)!important;}
  body.page-view .viewer{display:flex!important;flex-direction:column!important;width:100%!important;max-width:100%!important;overflow-x:hidden!important;gap:12px!important;}
  body.page-view .viewer .files,body.page-view .viewer .doc-frame,body.page-view .viewer .details{width:100%!important;max-width:100%!important;min-width:0!important;}
  body.page-view .viewer .doc-frame{height:68vh!important;min-height:420px!important;}
  body.page-view .details .actions{justify-content:flex-start!important;flex-wrap:wrap!important;padding:8px 0!important;}
}


/* v277 - correção precisa final: sidebar original no view, ações sem corte, busca topo funcional */
html,body{max-width:100%!important;overflow-x:hidden!important;}
body:not(.page-login){font-size:90%!important;}
@media (min-width: 901px){
  body:not(.page-login){--nexei-sidebar:236px!important;}
  body:not(.page-login) .sidebar,
  body.page-view .sidebar{
    position:fixed!important;left:0!important;top:0!important;bottom:0!important;
    width:236px!important;min-width:236px!important;max-width:236px!important;height:100vh!important;
    transform:none!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;
    padding:22px 18px!important;z-index:3000!important;box-sizing:border-box!important;
  }
  body.page-view .sidebar:hover{width:236px!important;min-width:236px!important;max-width:236px!important;}
  body.page-view .sidebar::after, body.page-view .sidebar:hover::after{display:none!important;content:none!important;}
  body:not(.page-login) .main,
  body.page-view .main{
    margin-left:236px!important;width:calc(100vw - 236px)!important;max-width:calc(100vw - 236px)!important;
    padding:18px 20px 20px!important;box-sizing:border-box!important;overflow-x:hidden!important;
  }
  body.page-view .sidebar .brand,
  body:not(.page-login) .sidebar .brand{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;margin-bottom:34px!important;padding:0!important;min-height:48px!important;}
  body.page-view .sidebar .brand-mark,
  body:not(.page-login) .sidebar .brand-mark{width:42px!important;height:42px!important;min-width:42px!important;flex:0 0 42px!important;border-radius:14px!important;display:grid!important;place-items:center!important;}
  body.page-view .sidebar .brand>div:not(.brand-mark),
  body.page-view .sidebar .brand-text,
  body.page-view .sidebar .nav-text,
  body.page-view .sidebar .user-card,
  body:not(.page-login) .sidebar .brand>div:not(.brand-mark),
  body:not(.page-login) .sidebar .brand-text,
  body:not(.page-login) .sidebar .nav-text,
  body:not(.page-login) .sidebar .user-card{
    display:block!important;visibility:visible!important;opacity:1!important;color:inherit!important;font-size:inherit!important;
  }
  body.page-view .sidebar nav,
  body:not(.page-login) .sidebar nav{display:grid!important;gap:8px!important;width:100%!important;}
  body.page-view .sidebar nav a,
  body:not(.page-login) .sidebar nav a{
    display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;width:100%!important;
    min-height:46px!important;height:auto!important;padding:12px 14px!important;margin:0!important;border-radius:14px!important;
    font-size:13px!important;color:#dbeafe!important;white-space:nowrap!important;box-sizing:border-box!important;
  }
  body.page-view .sidebar nav a.active,body:not(.page-login) .sidebar nav a.active{color:#fff!important;}
  body.page-view .sidebar nav a::first-letter{font-size:inherit!important;color:inherit!important;}
  body.page-view .user-card,body:not(.page-login) .user-card{margin-top:auto!important;padding:14px!important;border-radius:18px!important;}

  body.page-view .viewer{
    display:grid!important;grid-template-columns:250px minmax(0,1fr) minmax(430px,500px)!important;
    gap:16px!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;overflow:hidden!important;height:calc(100vh - 92px)!important;
  }
  body.page-view .viewer .files{width:250px!important;min-width:250px!important;max-width:250px!important;}
  body.page-view .viewer .doc-frame{min-width:0!important;width:100%!important;height:100%!important;min-height:620px!important;overflow:hidden!important;}
  body.page-view .viewer .doc-frame iframe{width:100%!important;height:100%!important;min-height:620px!important;}
  body.page-view .viewer .details{min-width:430px!important;max-width:500px!important;width:auto!important;overflow:auto!important;padding:0 12px 18px!important;box-sizing:border-box!important;}
  body.page-view .viewer-close{position:fixed!important;right:22px!important;top:70px!important;z-index:50000!important;width:36px!important;height:36px!important;border-radius:14px!important;background:#fff!important;border:1px solid #dbe7ff!important;box-shadow:0 10px 30px rgba(15,23,42,.16)!important;display:flex!important;align-items:center!important;justify-content:center!important;}
  body.page-view .details .actions{
    display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;flex-wrap:nowrap!important;
    overflow-x:auto!important;overflow-y:hidden!important;padding:8px 48px 12px 8px!important;margin:0!important;min-height:46px!important;box-sizing:border-box!important;scrollbar-width:thin!important;
  }
  body.page-view .details .actions>*{flex:0 0 auto!important;overflow:visible!important;}
  body.page-view .details .actions a,body.page-view .details .actions button,body.page-view .icon-btn{
    width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;padding:0!important;border-radius:10px!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;overflow:visible!important;
  }
  body.page-view .details .actions img,body.page-view .action-icon-img.nexei-icon-real{width:18px!important;height:18px!important;object-fit:contain!important;object-position:center!important;display:block!important;}
  body.page-view .approval{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px 10px!important;padding:10px 12px!important;}
  body.page-view .approval-admin-move{grid-column:2!important;grid-row:1 / span 2!important;justify-self:end!important;margin-left:auto!important;display:inline-flex!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;flex-wrap:nowrap!important;}
  body.page-view .approval-admin-move form{display:inline-flex!important;align-items:center!important;gap:4px!important;margin:0!important;}
  body.page-view .approval-admin-move .mini,body.page-view .approval .mini{height:24px!important;min-height:24px!important;min-width:24px!important;width:auto!important;padding:2px 6px!important;font-size:11px!important;line-height:1!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#0f172a!important;}
  body.page-view .approval-admin-move .danger-mini,body.page-view .approval .danger-mini{background:transparent!important;border:0!important;color:#111827!important;width:24px!important;min-width:24px!important;padding:0!important;}
  body.page-view .approval-delete-btn{font-size:14px!important;filter:none!important;}
}

/* Busca superior: popovers reais e sem conflito */
#topPeriodBox[hidden],#topAdvancedBox[hidden]{display:none!important;}
#topPeriodBox,#topAdvancedBox{position:absolute!important;right:0!important;top:calc(100% + 10px)!important;background:#fff!important;border:1px solid #dbe7ff!important;border-radius:18px!important;box-shadow:0 24px 70px rgba(15,23,42,.22)!important;z-index:60000!important;padding:14px!important;max-height:min(78vh,720px)!important;overflow:auto!important;}
#topPeriodBox{width:min(420px,calc(100vw - 28px))!important;display:grid!important;gap:10px!important;}
#topAdvancedBox{width:min(720px,calc(100vw - 28px))!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
#topAdvancedBox:not([hidden]){display:grid!important;}
#topSearchForm{position:relative!important;}
.nexei-search-modal-open::before{display:none!important;content:none!important;}

/* Mobile limpo */
@media (max-width: 900px){
  body:not(.page-login) .main,body.page-view .main{margin-left:0!important;width:100%!important;max-width:100%!important;padding:70px 12px 18px!important;overflow-x:hidden!important;}
  .sidebar{position:fixed!important;left:0!important;top:0!important;bottom:0!important;width:286px!important;max-width:86vw!important;height:100vh!important;z-index:20000!important;transform:translateX(-105%)!important;transition:transform .2s ease!important;overflow:auto!important;padding:70px 14px 18px!important;display:flex!important;flex-direction:column!important;}
  .sidebar.nexei-mobile-open,body.nexei-mobile-open .sidebar{transform:translateX(0)!important;}
  body.nexei-mobile-open:before{content:'';position:fixed;inset:0;background:rgba(15,23,42,.42);z-index:19990;}
  .sidebar nav a{display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;min-height:44px!important;}
  body.page-view .viewer{display:flex!important;flex-direction:column!important;width:100%!important;max-width:100%!important;overflow-x:hidden!important;gap:12px!important;height:auto!important;}
  body.page-view .viewer .files,body.page-view .viewer .doc-frame,body.page-view .viewer .details{width:100%!important;max-width:100%!important;min-width:0!important;}
  body.page-view .viewer .doc-frame{height:68vh!important;min-height:420px!important;}
  body.page-view .viewer .details .actions{justify-content:flex-start!important;flex-wrap:wrap!important;padding:8px 0!important;}
  #topAdvancedBox{grid-template-columns:1fr!important;left:0!important;right:auto!important;width:calc(100vw - 24px)!important;}
}
/* v279 - correções pontuais: modal central, sidebar estável e ícones de aprovação */
#topPeriodBox[hidden], #topAdvancedBox[hidden], .top-search-popover[hidden]{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}
body.nexei-search-modal-open::before{content:''!important;position:fixed!important;inset:0!important;background:rgba(15,23,42,.32)!important;z-index:89990!important;display:block!important;backdrop-filter:blur(2px)!important;}
#topPeriodBox:not([hidden]), #topAdvancedBox:not([hidden]){
  position:fixed!important;left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;
  z-index:90000!important;background:#fff!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;
  border:1px solid #d8e6fb!important;border-radius:20px!important;box-shadow:0 28px 90px rgba(15,23,42,.30)!important;
  padding:18px!important;max-height:min(82vh,760px)!important;overflow:auto!important;box-sizing:border-box!important;color:#0f172a!important;
}
#topPeriodBox:not([hidden]){width:min(440px,calc(100vw - 32px))!important;display:grid!important;grid-template-columns:1fr!important;gap:12px!important;}
#topAdvancedBox:not([hidden]){width:min(760px,calc(100vw - 32px))!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
#topAdvancedBox .top-popover-title,#topPeriodBox .top-popover-title{grid-column:1/-1!important;display:flex!important;align-items:center!important;justify-content:space-between!important;color:#0f172a!important;font-weight:900!important;margin:0 0 4px!important;}
#topAdvancedBox input,#topAdvancedBox select,#topPeriodBox input,#topPeriodBox select,#topAdvancedBox .type-filter-toggle,#topAdvancedBox .nexei-multiselect-toggle{background:#fff!important;color:#0f172a!important;opacity:1!important;}
#topAdvancedBox .top-popover-close,#topPeriodBox .top-popover-close{position:static!important;float:none!important;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;border-radius:12px!important;background:#f8fafc!important;border:1px solid #d8e6fb!important;color:#0f172a!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:22px!important;line-height:1!important;cursor:pointer!important;box-shadow:none!important;}

.sidebar,.sidebar:hover{width:260px!important;min-width:260px!important;max-width:260px!important;transform:none!important;transition:none!important;overflow:hidden!important;}
.sidebar nav a,.sidebar:hover nav a{transform:none!important;transition:background .15s ease,color .15s ease!important;}
.sidebar nav a:hover{transform:none!important;background:rgba(255,255,255,.10)!important;}
.sidebar .user-card,.sidebar:hover .user-card{position:absolute!important;left:18px!important;right:18px!important;bottom:22px!important;margin:0!important;transform:none!important;width:auto!important;max-width:none!important;transition:none!important;}
.main,.sidebar + .main{margin-left:260px!important;}
body.page-view .sidebar,body.page-view .sidebar:hover{width:260px!important;min-width:260px!important;max-width:260px!important;}
body.page-view .main{margin-left:260px!important;}
body.page-view .sidebar nav a,body.page-view .sidebar:hover nav a{width:auto!important;min-width:0!important;height:auto!important;justify-content:flex-start!important;color:#dbeafe!important;white-space:nowrap!important;}
body.page-view .sidebar .brand,body.page-view .sidebar:hover .brand{justify-content:flex-start!important;}
body.page-view .sidebar .brand div,body.page-view .sidebar:hover .brand div{display:block!important;opacity:1!important;visibility:visible!important;}

body.page-view .viewer{grid-template-columns:260px minmax(0,1fr) minmax(390px,480px)!important;gap:16px!important;width:100%!important;max-width:100%!important;}
body.page-view .viewer .details{position:relative!important;min-width:390px!important;max-width:480px!important;padding:8px 12px 18px!important;overflow:auto!important;}
body.page-view .viewer-close{position:fixed!important;right:20px!important;top:66px!important;z-index:91000!important;width:34px!important;height:34px!important;border-radius:12px!important;background:#fff!important;border:1px solid #dbe7ff!important;box-shadow:0 8px 24px rgba(15,23,42,.16)!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:22px!important;line-height:1!important;}
body.page-view .details .actions{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;max-width:calc(100% - 44px)!important;width:calc(100% - 44px)!important;margin:0 44px 10px 0!important;padding:6px 2px 10px!important;scrollbar-width:thin!important;}
body.page-view .details .actions>*{flex:0 0 auto!important;margin:0!important;}
body.page-view .details .actions a,body.page-view .details .actions button,body.page-view .details .actions .icon-btn{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;padding:0!important;border-radius:10px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;overflow:visible!important;}
body.page-view .details .actions img,body.page-view .details .actions svg,body.page-view .action-icon-img.nexei-icon-real{width:18px!important;height:18px!important;object-fit:contain!important;display:block!important;}
body.page-view .approval{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:6px 10px!important;overflow:hidden!important;}
body.page-view .approval-admin-move{grid-column:2!important;grid-row:1/span 2!important;justify-self:end!important;margin-left:10px!important;display:inline-flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;flex-wrap:nowrap!important;white-space:nowrap!important;}
body.page-view .approval-admin-move form{display:inline-flex!important;align-items:center!important;gap:4px!important;margin:0!important;}
body.page-view .approval-admin-move .mini,body.page-view .approval .mini{height:24px!important;min-height:24px!important;min-width:22px!important;padding:2px 5px!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#0f172a!important;font-size:11px!important;line-height:1!important;border-radius:8px!important;}
body.page-view .approval-delete-btn{font-size:0!important;width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#111827!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;}
body.page-view .approval-delete-btn::before,.approval .approval-delete-btn::before,.approval-admin-move .approval-delete-btn::before{content:none!important;display:none!important;}
body.page-view .approval-delete-btn svg{width:15px!important;height:15px!important;display:block!important;stroke:currentColor!important;fill:none!important;stroke-width:2!important;}
@media(max-width:900px){.sidebar,.sidebar:hover{width:260px!important;max-width:82vw!important}.sidebar .user-card,.sidebar:hover .user-card{position:static!important;margin-top:auto!important}.main,.sidebar + .main{margin-left:0!important}#topAdvancedBox:not([hidden]){grid-template-columns:1fr!important;width:calc(100vw - 24px)!important}.viewer,body.page-view .viewer{display:flex!important;flex-direction:column!important;height:auto!important}.viewer .details,body.page-view .viewer .details{min-width:0!important;max-width:none!important;width:100%!important}}
