/* NEXEI v3.6.0 - runtime/UI hotfix based on real Apache errors from v3.5.9. */

/* Sidebar: lock every visual child too, not only the anchor. */
@media (min-width:901px){
  html body:not(.page-login) .sidebar-v352,
  html body:not(.page-login) .sidebar-v352:hover,
  html body:not(.page-login) .sidebar-v352:focus-within{
    width:92px!important;min-width:92px!important;max-width:92px!important;
    transform:none!important;translate:none!important;transition:none!important;animation:none!important;
  }
  html body:not(.page-login) .sidebar-v352 nav a,
  html body:not(.page-login) .sidebar-v352 nav a:hover,
  html body:not(.page-login) .sidebar-v352 nav a:focus,
  html body:not(.page-login) .sidebar-v352 nav a *,
  html body:not(.page-login) .sidebar-v352 nav a:hover *,
  html body:not(.page-login) .sidebar-v352 .brand,
  html body:not(.page-login) .sidebar-v352 .brand *,
  html body:not(.page-login) .sidebar-v352 .user-card-v351,
  html body:not(.page-login) .sidebar-v352 .user-card-v351 *,
  html body:not(.page-login) .sidebar-v352 .sidebar-profile-v351,
  html body:not(.page-login) .sidebar-v352 .sidebar-profile-v351 *,
  html body:not(.page-login) .sidebar-v352 .sidebar-logout-v351,
  html body:not(.page-login) .sidebar-v352 .sidebar-logout-v351 *{
    transform:none!important;translate:none!important;scale:1!important;
    transition:none!important;animation:none!important;
  }
  html body:not(.page-login) .sidebar-v352 nav a,
  html body:not(.page-login) .sidebar-v352 nav a:hover{
    margin-left:0!important;margin-right:0!important;left:auto!important;right:auto!important;top:auto!important;
  }
  html body:not(.page-login) .sidebar-v352 .nav-icon,
  html body:not(.page-login) .sidebar-v352 .nav-icon:hover,
  html body:not(.page-login) .sidebar-v352 .nav-icon img,
  html body:not(.page-login) .sidebar-v352 .nav-icon:hover img{
    margin:0!important;inset:auto!important;
  }
  html body:not(.page-login) .sidebar-v352 .user-card-v351,
  html body:not(.page-login) .sidebar-v352:hover .user-card-v351{
    left:15px!important;right:auto!important;bottom:15px!important;width:62px!important;margin:0!important;
  }
  html body:not(.page-login) .sidebar-v352 .sidebar-profile-v351,
  html body:not(.page-login) .sidebar-v352 .sidebar-profile-v351:hover{
    width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;margin:0!important;
  }
}

/* Assistant must be visible after the page finishes rendering. */
body:not(.page-login):not(.page-two_factor):not(.page-forgot_password):not(.page-reset_password):not(.page-set_password):not(.page-password_expired):not(.page-select_organization) .nexei-assistant-launcher{
  display:grid!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;
  position:fixed!important;right:18px!important;bottom:18px!important;z-index:2147483000!important;
}

/* Dashboard/list cards: no hidden/collapsed process row. */
body.page-dashboard .dashboard-results .doc-list,
body.page-documents .doc-list{display:grid!important;gap:10px!important;width:100%!important;overflow:visible!important;contain:none!important;content-visibility:visible!important}
body.page-dashboard .dashboard-results .doc-card,
body.page-documents .doc-card{
  display:grid!important;visibility:visible!important;opacity:1!important;height:auto!important;min-height:118px!important;
  overflow:visible!important;contain:none!important;content-visibility:visible!important;transform:none!important;
}
body.page-dashboard .dashboard-results .doc-main{min-width:0!important;overflow:visible!important}
body.page-dashboard .dashboard-results .doc-description-v359{display:block!important;margin:5px 0 8px!important;white-space:normal!important;color:#596780!important;font-size:12px!important}
body.page-dashboard .dashboard-results .doc-meta,
body.page-documents .doc-meta{display:flex!important;flex-wrap:wrap!important;gap:8px 18px!important;white-space:normal!important;overflow:visible!important}
body.page-dashboard .dashboard-results .doc-meta>span,
body.page-documents .doc-meta>span{display:grid!important;gap:2px!important;min-width:130px!important;max-width:260px!important}

/* Profile: the full editable form sits beside the profile card on desktop. */
body.page-profile .profile-layout-v309{display:grid!important;grid-template-columns:minmax(230px,300px) minmax(0,1fr)!important;gap:18px!important;align-items:start!important}
body.page-profile .profile-form-v309{display:grid!important;visibility:visible!important;opacity:1!important;min-width:0!important;overflow:visible!important}
body.page-profile .profile-form-v309[hidden]{display:grid!important}
@media(max-width:900px){body.page-profile .profile-layout-v309{grid-template-columns:1fr!important}}

/* Viewer: keep icons and process information inside the details column. */
body.page-view .viewer{grid-template-columns:minmax(180px,230px) minmax(420px,1fr) minmax(340px,430px)!important;gap:10px!important;overflow:hidden!important}
body.page-view .viewer .details{min-width:0!important;width:auto!important;max-width:none!important;overflow-x:hidden!important;overflow-y:auto!important;padding:12px!important}
body.page-view .viewer .details>.actions{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(42px,1fr))!important;gap:7px!important;width:100%!important;overflow:visible!important;align-items:center!important}
body.page-view .viewer .details>.actions>*{min-width:0!important;max-width:100%!important;margin:0!important}
body.page-view .viewer .details .icon-btn{display:grid!important;place-items:center!important;min-width:40px!important;width:100%!important;height:40px!important;overflow:hidden!important}
body.page-view .viewer-summary-v359,
body.page-view .viewer-base-dl-v359,
body.page-view .viewer-fields-v359{display:grid!important;visibility:visible!important;opacity:1!important;min-width:0!important;overflow:visible!important}
body.page-view .viewer-fields-v359 .field-line{min-width:0!important;overflow-wrap:anywhere!important}
body.page-view .viewer-close{position:fixed!important;right:8px!important;top:58px!important;z-index:2147482500!important}
@media(max-width:1180px){body.page-view .viewer{grid-template-columns:190px minmax(360px,1fr) 350px!important}}

/* BPMN: viewport-fixed so there can be no double left gap from old .main rules. */
@media (min-width:901px){
  html body.page-admin_workflow_canvas .bpmn-page-v359{
    position:fixed!important;left:92px!important;right:0!important;top:0!important;bottom:0!important;
    width:auto!important;max-width:none!important;height:100vh!important;min-height:0!important;
    margin:0!important;padding:0!important;z-index:50!important;overflow:hidden!important;background:#fff!important;
  }
  html body.page-admin_workflow_canvas main.main{margin:0!important;padding:0!important;overflow:hidden!important}
}
.bpmn-page-v359 .bpmn-workspace-v359{min-width:0!important;width:100%!important;max-width:100%!important;overflow:hidden!important}
.bpmn-page-v359 .bpmn-workspace-v359.has-inspector{grid-template-columns:minmax(0,1fr) clamp(360px,27vw,440px)!important}
.bpmn-page-v359 .bpmn-canvas-shell-v359{min-width:0!important;overflow:hidden!important;margin:0!important;padding:0!important}
.bpmn-page-v359 .bpmn-inspector-v359{min-width:0!important;width:100%!important;max-width:440px!important;overflow-x:hidden!important;overflow-y:auto!important;box-sizing:border-box!important}
.bpmn-page-v359 .bpmn-inspector-v359 *{max-width:100%;box-sizing:border-box}
.bpmn-page-v359 .bpmn-inspector-v359 .bpmn-field-chip-v359,
.bpmn-page-v359 .bpmn-inspector-v359 .bpmn-email-route-v359{overflow-wrap:anywhere!important;word-break:break-word!important}
.bpmn-page-v359 .bpmn-top-v359,.bpmn-page-v359 .bpmn-tabs-v359{min-width:0!important;overflow:hidden!important}
.bpmn-page-v359 .bpmn-actions-v359{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;padding-right:10px!important;min-width:max-content!important}
.bpmn-page-v359 .djs-palette{left:0!important;top:6px!important;margin:0!important;transform:none!important;transition:none!important;animation:none!important}
.bpmn-page-v359 .djs-palette .entry,
.bpmn-page-v359 .djs-palette .entry:hover,
.bpmn-page-v359 .djs-context-pad .entry,
.bpmn-page-v359 .djs-context-pad .entry:hover{transform:none!important;translate:none!important;scale:1!important;transition:none!important;animation:none!important}
@media(max-width:900px){html body.page-admin_workflow_canvas .bpmn-page-v359{position:fixed!important;inset:0!important;width:100%!important;height:100svh!important}}
