/* NEXAKOR UX HOTFIX V4.35.x / V4.36 visual patch */
:root {
  --nx436-rail-bg: color-mix(in srgb, var(--surface, #0f172a) 88%, transparent);
  --nx436-rail-border: color-mix(in srgb, var(--line, rgba(148,163,184,.36)) 80%, transparent);
  --nx436-soft-shadow: 0 16px 34px rgba(15,23,42,.20);
}

html.nx436-hotfix-applied {
  scroll-behavior: auto;
}

/* Reduce flicker and over-animation on dense UI shells */
html.nx436-hotfix-applied *,
html.nx436-hotfix-applied *::before,
html.nx436-hotfix-applied *::after {
  backface-visibility: hidden;
}
html.nx436-hotfix-applied .window-shell,
html.nx436-hotfix-applied .window-content,
html.nx436-hotfix-applied .module-drawer,
html.nx436-hotfix-applied .dialog,
html.nx436-hotfix-applied .nx-v430-dialog,
html.nx436-hotfix-applied .nx-v431-toprail,
html.nx436-hotfix-applied .nx-v431-quickrail,
html.nx436-hotfix-applied .sidebar,
html.nx436-hotfix-applied .topbar,
html.nx436-hotfix-applied .content,
html.nx436-hotfix-applied .card,
html.nx436-hotfix-applied .table-container {
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease !important;
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
}

/* Stronger contrast for mixed theme combinations */
html.nx436-hotfix-applied .toolbar,
html.nx436-hotfix-applied .toolbar *,
html.nx436-hotfix-applied .topbar,
html.nx436-hotfix-applied .topbar *,
html.nx436-hotfix-applied .table-container,
html.nx436-hotfix-applied .table-container *,
html.nx436-hotfix-applied .card,
html.nx436-hotfix-applied .card *,
html.nx436-hotfix-applied .dialog,
html.nx436-hotfix-applied .dialog *,
html.nx436-hotfix-applied .window-shell,
html.nx436-hotfix-applied .window-shell *,
html.nx436-hotfix-applied .tabs,
html.nx436-hotfix-applied .tabs * {
  color: inherit;
}
html.nx436-hotfix-applied .toolbar,
html.nx436-hotfix-applied .topbar,
html.nx436-hotfix-applied .table-container,
html.nx436-hotfix-applied .card,
html.nx436-hotfix-applied .dialog,
html.nx436-hotfix-applied .window-shell,
html.nx436-hotfix-applied .window-content,
html.nx436-hotfix-applied .module-drawer,
html.nx436-hotfix-applied .sidebar,
html.nx436-hotfix-applied .nx-v430-dialog,
html.nx436-hotfix-applied .nx-v430-choice,
html.nx436-hotfix-applied .nx-v430-preview-pane,
html.nx436-hotfix-applied .nx-v430-live {
  color: var(--text, #e5eefb) !important;
}
html[data-nexakor-theme="light"].nx436-hotfix-applied .toolbar,
html[data-nexakor-theme="light"].nx436-hotfix-applied .topbar,
html[data-nexakor-theme="light"].nx436-hotfix-applied .table-container,
html[data-nexakor-theme="light"].nx436-hotfix-applied .card,
html[data-nexakor-theme="light"].nx436-hotfix-applied .dialog,
html[data-nexakor-theme="light"].nx436-hotfix-applied .window-shell,
html[data-nexakor-theme="light"].nx436-hotfix-applied .window-content,
html[data-nexakor-theme="light"].nx436-hotfix-applied .module-drawer,
html[data-nexakor-theme="light"].nx436-hotfix-applied .sidebar,
html[data-nexakor-theme="light"].nx436-hotfix-applied .nx-v430-dialog,
html[data-nexakor-theme="light"].nx436-hotfix-applied .nx-v430-choice,
html[data-nexakor-theme="light"].nx436-hotfix-applied .nx-v430-preview-pane,
html[data-nexakor-theme="light"].nx436-hotfix-applied .nx-v430-live {
  color: #0f172a !important;
}
html.nx436-hotfix-applied .tab,
html.nx436-hotfix-applied .tab-button,
html.nx436-hotfix-applied .tab-btn,
html.nx436-hotfix-applied .btn,
html.nx436-hotfix-applied button,
html.nx436-hotfix-applied input,
html.nx436-hotfix-applied select,
html.nx436-hotfix-applied textarea,
html.nx436-hotfix-applied .field input,
html.nx436-hotfix-applied .field select,
html.nx436-hotfix-applied .field textarea {
  color: var(--text, #e5eefb);
}
html[data-nexakor-theme="light"].nx436-hotfix-applied .tab,
html[data-nexakor-theme="light"].nx436-hotfix-applied .tab-button,
html[data-nexakor-theme="light"].nx436-hotfix-applied .tab-btn,
html[data-nexakor-theme="light"].nx436-hotfix-applied .btn,
html[data-nexakor-theme="light"].nx436-hotfix-applied button,
html[data-nexakor-theme="light"].nx436-hotfix-applied input,
html[data-nexakor-theme="light"].nx436-hotfix-applied select,
html[data-nexakor-theme="light"].nx436-hotfix-applied textarea,
html[data-nexakor-theme="light"].nx436-hotfix-applied .field input,
html[data-nexakor-theme="light"].nx436-hotfix-applied .field select,
html[data-nexakor-theme="light"].nx436-hotfix-applied .field textarea {
  color: #0f172a;
}
html.nx436-hotfix-applied .badge,
html.nx436-hotfix-applied .status,
html.nx436-hotfix-applied .chip {
  text-shadow: none !important;
}

/* Stabilize sidebar width across combinations (defer to the shell --side variable
   so variants a/b/c stay consistent with the grid; 238px only as fallback) */
html[data-nav-family="sidebar"].nx436-hotfix-applied .sidebar,
html[data-nav-family="sidebar"].nx436-hotfix-applied .nx-v426-sidebar {
  width: var(--side, 238px) !important;
  min-width: var(--side, 238px) !important;
}
html[data-nav-family="sidebar"].nx436-hotfix-applied .app-shell.sidebar-collapsed .sidebar,
html[data-nav-family="sidebar"].nx436-hotfix-applied .app-shell.sidebar-collapsed .nx-v426-sidebar {
  width: var(--side, 74px) !important;
  min-width: var(--side, 74px) !important;
}

/* Remove duplicate / non-functional auxiliary bar when sidebar family is active */
html[data-nav-family="sidebar"].nx436-hotfix-applied .nx-v431-quickrail {
  display: none !important;
}

/* Relocate command rail (Módulos / Apariencia / NEXA) to bottom-left to free workspace */
html.nx436-hotfix-applied .nx-v431-toprail {
  position: fixed !important;
  top: auto !important;
  right: auto !important;
  left: 18px !important;
  bottom: 18px !important;
  z-index: 1500 !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  max-width: min(92vw, 820px);
  padding: 8px 10px !important;
  border-radius: 22px !important;
  background: var(--nx436-rail-bg) !important;
  border: 1px solid var(--nx436-rail-border) !important;
  box-shadow: var(--nx436-soft-shadow) !important;
  backdrop-filter: blur(12px) saturate(120%);
}
html.nx436-hotfix-applied .nx-v431-toprail .btn,
html.nx436-hotfix-applied .nx-v431-toprail button,
html.nx436-hotfix-applied .nx-v431-toprail .nx-rich-nav-trigger {
  min-height: 36px !important;
  border-radius: 12px !important;
}

/* Pull work area upward a bit now that rail is no longer at the top */
html.nx436-hotfix-applied .workspace-shell,
html.nx436-hotfix-applied .workspace-content,
html.nx436-hotfix-applied main,
html.nx436-hotfix-applied .main,
html.nx436-hotfix-applied .content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Better icon visibility in dark/mac-like modes */
html.nx436-hotfix-applied .nx-rich-nav-trigger,
html.nx436-hotfix-applied .nx-v426-dock button,
html.nx436-hotfix-applied .nx-v431-toprail button,
html.nx436-hotfix-applied .nx-v431-quickrail button,
html.nx436-hotfix-applied .sidebar .nav-item,
html.nx436-hotfix-applied .sidebar button {
  color: var(--text, #eef4ff) !important;
}
html.nx436-hotfix-applied .nx433-icon-wrap,
html.nx436-hotfix-applied .nx433-icon-svg,
html.nx436-hotfix-applied .nx434-icon-thumb .nx433-icon-wrap,
html.nx436-hotfix-applied .nx434-icon-thumb .nx433-icon-svg {
  filter: saturate(1.08) contrast(1.08) drop-shadow(0 1px 0 rgba(255,255,255,.10));
}

/* Improve visual distinction in appearance studio icon chooser */
html.nx436-hotfix-applied .nx434-icon-grid {
  gap: 16px !important;
}
html.nx436-hotfix-applied .nx434-icon-card,
html.nx436-hotfix-applied .nx-v430-choice {
  border-radius: 16px !important;
}
html.nx436-hotfix-applied .nx434-icon-thumb,
html.nx436-hotfix-applied .nx-v430-choice .nx434-icon-thumb {
  min-height: 70px !important;
  padding: 14px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
html.nx436-hotfix-applied .nx434-icon-thumb .nx433-preview-wrap,
html.nx436-hotfix-applied .nx434-icon-thumb .nx433-icon-wrap {
  transform: scale(1.18);
  transform-origin: center;
}
html.nx436-hotfix-applied .nx434-icon-name {
  font-weight: 700 !important;
}
html.nx436-hotfix-applied .nx434-icon-meta,
html.nx436-hotfix-applied .nx-v430-caption {
  opacity: .95 !important;
}

/* Login: custom in-card selector */
html.nx436-hotfix-applied .nx436-select {
  position: relative;
  width: 100%;
}
html.nx436-hotfix-applied .nx436-select native-select,
html.nx436-hotfix-applied .nx436-native-select {
  display: none !important;
}
html.nx436-hotfix-applied .nx436-select-trigger {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--line, rgba(148,163,184,.4)) 72%, transparent);
  background: color-mix(in srgb, var(--surface-elevated, rgba(255,255,255,.06)) 88%, transparent);
  color: inherit;
}
html.nx436-hotfix-applied .nx436-select-trigger::after {
  content: '▾';
  font-size: 13px;
  opacity: .8;
}
html.nx436-hotfix-applied .nx436-select[aria-expanded="true"] .nx436-select-trigger::after {
  content: '▴';
}
html.nx436-hotfix-applied .nx436-select-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  display: none;
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--nx436-rail-border);
  background: color-mix(in srgb, var(--surface-elevated, #111827) 94%, transparent);
  box-shadow: 0 18px 36px rgba(15,23,42,.18);
}
html.nx436-hotfix-applied .nx436-select[aria-expanded="true"] .nx436-select-panel {
  display: block;
}
html.nx436-hotfix-applied .nx436-option {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  border-radius: 10px;
  padding: 10px 12px;
}
html.nx436-hotfix-applied .nx436-option:hover,
html.nx436-hotfix-applied .nx436-option:focus,
html.nx436-hotfix-applied .nx436-option.is-selected {
  background: color-mix(in srgb, var(--primary, #2563eb) 18%, transparent);
}

/* Improve studio / modal readability */
html.nx436-hotfix-applied .nx-v430-dialog,
html.nx436-hotfix-applied .nx-v430-studio-wrap,
html.nx436-hotfix-applied .nx-v430-preview-pane,
html.nx436-hotfix-applied .nx-v430-live {
  box-shadow: var(--nx436-soft-shadow) !important;
}

/* Keep bottom rail usable on smaller screens */
@media (max-width: 920px) {
  html.nx436-hotfix-applied .nx-v431-toprail {
    left: 10px !important;
    bottom: 10px !important;
    max-width: calc(100vw - 20px);
    overflow-x: auto;
  }
}

/* The universal actions share the existing dashboard or focused window title row. */
html.nx436-hotfix-applied .nx-menu-type-button{display:none!important}
@media (min-width:901px){
  html.nx436-hotfix-applied body.nx436-bar-in-chrome .main:has(>.topbar.nx-v419-topbar){grid-template-rows:minmax(0,1fr)!important}
  html.nx436-hotfix-applied body.nx436-bar-in-chrome .main>.topbar{display:none!important}
  html.nx436-hotfix-applied .workspace-window-head .nx435-commandbar,
  html.nx436-hotfix-applied .dash-v384-commandbar .nx435-commandbar,
  html.nx436-hotfix-applied .nx-v354-routebar .nx435-commandbar,
  html.nx436-hotfix-applied .nx-v381-root-commandbar .nx435-commandbar{
    position:static!important;inset:auto!important;transform:none!important;z-index:auto!important;
    box-shadow:none!important;flex:0 0 auto!important;max-width:100%!important;
    padding:2px!important;border-radius:8px!important;background:transparent!important;
  }
  html.nx436-hotfix-applied .workspace-window-head .nx435-commandbar .nx435-cmd-label,
  html.nx436-hotfix-applied .dash-v384-commandbar .nx435-commandbar .nx435-cmd-label,
  html.nx436-hotfix-applied .nx-v354-routebar .nx435-commandbar .nx435-cmd-label,
  html.nx436-hotfix-applied .nx-v381-root-commandbar .nx435-commandbar .nx435-cmd-label{display:none!important}
  html.nx436-hotfix-applied .workspace-window-head .nx435-commandbar button,
  html.nx436-hotfix-applied .dash-v384-commandbar .nx435-commandbar button,
  html.nx436-hotfix-applied .nx-v354-routebar .nx435-commandbar button,
  html.nx436-hotfix-applied .nx-v381-root-commandbar .nx435-commandbar button{width:29px!important;min-width:29px!important;height:28px!important;min-height:28px!important;padding:3px!important}
  html.nx436-hotfix-applied .workspace-window-head .nx435-commandbar{margin-left:auto!important}
  html.nx436-hotfix-applied .dash-v384-commandbar .nx435-commandbar{margin-left:auto!important}
  html.nx436-hotfix-applied #page .nx-v354-routebar,
  html.nx436-hotfix-applied #page .nx-v381-root-commandbar{height:42px!important;min-height:42px!important;max-height:42px!important;overflow:visible!important}
  html.nx436-hotfix-applied #page .nx-v354-routebar .nx-v354-route-actions,
  html.nx436-hotfix-applied #page .nx-v381-root-commandbar .nx-v381-root-actions{
    height:34px!important;min-height:34px!important;max-height:34px!important;
    flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;
  }
  html.nx436-hotfix-applied #page .nx-v354-routebar .nx-v400-section-strip,
  html.nx436-hotfix-applied #page .nx-v381-root-commandbar .nx-v400-section-strip{width:auto!important;flex:1 0 auto!important}
}
html.nx436-hotfix-applied .workspace-window-head .workspace-window-actions,
html.nx436-hotfix-applied .workspace-window-head .window-btn{height:28px!important;min-height:28px!important}
/* The source navigation remains interactive, but is never painted below KPI graphics. */
html.nx436-hotfix-applied #page .tabs.nx-v354-legacy-nav,
html.nx436-hotfix-applied #page .finance-pro-tabs.nx-v354-legacy-nav,
html.nx436-hotfix-applied #page .tabs.nx-v381-source-tabs,
html.nx436-hotfix-applied #page .finance-pro-tabs.nx-v381-source-tabs{display:none!important}
/* All Windows variants share a bounded centered module picker; its own contents scroll. */
html.nx436-hotfix-applied[data-nav-family] .nx-v426-command .nx-v426-command-panel{
  left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;
  transform:translate(-50%,-50%)!important;width:min(860px,calc(100vw - 24px))!important;
  max-height:min(640px,calc(100dvh - 28px))!important;overflow-x:hidden!important;overflow-y:auto!important;
  padding:12px!important;border-radius:14px!important;
}
html.nx436-hotfix-applied .nx-v426-command-panel .nx-v426-command-head{top:-12px!important;background:var(--surface)!important;color:var(--ink)!important}
html.nx436-hotfix-applied .nx-v426-command-panel .nx-v430-group-stack{gap:8px!important}
html.nx436-hotfix-applied .nx-v426-command-panel .nx-v430-nav-group{margin:0!important;padding:8px!important;background:var(--surface2)!important;color:var(--ink)!important}
html.nx436-hotfix-applied .nx-v426-command-panel .nx-v426-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
html.nx436-hotfix-applied .nx-v426-command-panel .nx-v426-module{height:62px!important;min-height:62px!important;max-height:70px!important;padding:7px!important;background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
html.nx436-hotfix-applied .nx-v426-command-panel .nx-v426-module{flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important}
html.nx436-hotfix-applied .nx-v426-command-panel .nx-v426-module .nx-v426-icon{width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;flex:0 0 30px!important;display:grid!important;place-items:center!important}
html.nx436-hotfix-applied .nx-v426-command-panel .nx-v426-module>span:last-child{display:block!important;flex:1 1 auto!important;height:auto!important;min-height:18px!important;max-height:36px!important;color:var(--ink)!important;font-size:12px!important;line-height:1.2!important;white-space:normal!important;overflow:hidden!important}
html.nx436-hotfix-applied .nx-v426-command-panel input{color:var(--ink)!important;background:var(--surface2)!important;border-color:var(--line)!important}
html.nx436-hotfix-applied .nx-v426-command-panel input::placeholder{color:var(--muted)!important}
@media (max-width:900px){
  html.nx436-hotfix-applied .nx-v426-command .nx-v426-command-panel{left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:calc(100vw - 12px)!important;max-height:calc(100dvh - 12px)!important}
}
@media (max-width:680px){
  html.nx436-hotfix-applied .nx-v426-command-panel .nx-v426-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* ===== V4.35.x correction pass 2 ===== */

/* Grid actions column: theme-aware background (was hardcoded light) and compact width. */
html.nx436-hotfix-applied .dg-actions-head,
html.nx436-hotfix-applied .dg-actions{
  background:var(--surface)!important;color:var(--ink)!important;
  box-shadow:-1px 0 0 var(--line)!important;
  min-width:72px!important;width:72px!important;max-width:72px!important;
  text-align:center!important;padding:4px 5px!important;
}
html.nx436-hotfix-applied .dg-table tbody tr:nth-child(even) .dg-actions{background:color-mix(in srgb,var(--surface) 96%,var(--primary) 4%)!important}
html.nx436-hotfix-applied .dg-table tbody tr:hover .dg-actions{background:color-mix(in srgb,var(--surface) 88%,var(--primary) 12%)!important}
html.nx436-hotfix-applied .dg-actions-head{font-size:9px!important;letter-spacing:0!important;white-space:nowrap!important}
html.nx436-hotfix-applied .nx-row-more{min-width:30px!important;width:30px!important;height:28px!important;padding:0!important;font-size:17px!important;line-height:1!important;display:inline-grid!important;place-items:center!important;color:var(--ink)!important;background:color-mix(in srgb,var(--surface) 82%,var(--primary) 18%)!important;border-color:var(--line)!important}
html.nx436-hotfix-applied .nx-row-more:hover{background:color-mix(in srgb,var(--surface) 66%,var(--primary) 34%)!important}

/* Context menu, overflow menus and column menu: guarantee theme contrast. */
html.nx436-hotfix-applied .nx-context-menu,
html.nx436-hotfix-applied .ux-overflow-menu,
html.nx436-hotfix-applied .col-menu{
  background:var(--surface)!important;color:var(--ink)!important;border:1px solid var(--line)!important;border-radius:12px!important;
  box-shadow:0 18px 48px rgba(2,6,18,.34)!important;
}
html.nx436-hotfix-applied .nx-context-menu button,
html.nx436-hotfix-applied .ux-overflow-menu button,
html.nx436-hotfix-applied .ux-overflow-menu .btn,
html.nx436-hotfix-applied .col-menu label{color:var(--ink)!important;background:transparent!important}
html.nx436-hotfix-applied .nx-context-menu button:hover,
html.nx436-hotfix-applied .nx-context-menu button:focus,
html.nx436-hotfix-applied .ux-overflow-menu button:hover,
html.nx436-hotfix-applied .ux-overflow-menu .btn:hover{background:color-mix(in srgb,var(--surface) 84%,var(--primary) 16%)!important}
html.nx436-hotfix-applied .nx-context-menu hr{border-top:1px solid var(--line)!important}
html.nx436-hotfix-applied .col-menu{padding:8px!important;min-width:200px!important;display:grid!important;gap:4px!important;position:fixed!important;z-index:100000!important}
html.nx436-hotfix-applied .col-menu label{display:flex!important;gap:8px!important;align-items:center!important;font-size:12px!important;padding:4px 6px!important;border-radius:8px!important}

/* Single filter + search: hide the standalone text search; duplicate filter buttons are collapsed by the UX layer. */
html.nx436-hotfix-applied [data-dg-search],
html.nx436-hotfix-applied .input-icon:has([data-dg-search]){display:none!important}

/* Dark themes: base .btn kept a hardcoded white background from styles.css (e.g. headless route actions). */
html.nx436-hotfix-applied[data-nexakor-theme="veltria-oscuro"] .btn:not(.btn-primary):not(.primary):not(.btn-danger):not(.danger):not(.ghost):not(.nx-row-more),
html.nx436-hotfix-applied[data-nexakor-theme="ejecutivo"] .btn:not(.btn-primary):not(.primary):not(.btn-danger):not(.danger):not(.ghost):not(.nx-row-more){
  background:var(--surface2)!important;color:var(--ink)!important;border-color:var(--line)!important;
}
html.nx436-hotfix-applied[data-nexakor-theme="veltria-oscuro"] .btn.primary,
html.nx436-hotfix-applied[data-nexakor-theme="ejecutivo"] .btn.primary{
  background:linear-gradient(135deg,var(--primary),var(--primary2))!important;color:#07130D!important;border-color:transparent!important;
}

/* Recent-windows dock: follow the active theme. */
html.nx436-hotfix-applied .workspace-dock{
  background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:12px!important;
  box-shadow:0 12px 30px rgba(2,6,18,.24)!important;gap:4px!important;
}
html.nx436-hotfix-applied .workspace-dock:empty{display:none!important}
html.nx436-hotfix-applied .workspace-dock-item{
  background:color-mix(in srgb,var(--surface) 86%,var(--primary) 14%)!important;color:var(--ink)!important;
  border:1px solid var(--line)!important;border-radius:8px!important;font-size:11px!important;
}
html.nx436-hotfix-applied .workspace-dock-item.active{background:color-mix(in srgb,var(--surface) 62%,var(--primary) 38%)!important}
html.nx436-hotfix-applied .workspace-dock-item.minimized{opacity:.72!important}
html.nx436-hotfix-applied .workspace-window.maximized{left:0!important;top:0!important;width:100%!important;height:100%!important;border-radius:0!important}
html.nx436-hotfix-applied .workspace-content{padding:0!important}
html.nx436-hotfix-applied .workspace-home-scroll{padding:0!important}
html.nx436-hotfix-applied .dg-toolbar.nx436-toolbar-consolidated{display:none!important}
html.nx436-hotfix-applied .nx-filter-table-options{margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
html.nx436-hotfix-applied .nx-filter-table-options h4{margin:0 0 8px;font-size:12px;color:var(--ink)}
html.nx436-hotfix-applied .nx-filter-table-options-tools{display:flex;gap:6px;flex-wrap:wrap}

/* Non-sidebar navigation: the recent-windows dock becomes a vertical rail on the left. */
@media (min-width:1024px){
  html.nx436-hotfix-applied:not([data-nav-family="sidebar"]) .workspace-dock{
    position:fixed!important;left:0!important;right:auto!important;top:0!important;bottom:0!important;
    width:56px!important;min-height:0!important;height:auto!important;
    flex-direction:column!important;align-items:stretch!important;flex-wrap:nowrap!important;
    overflow-y:auto!important;overflow-x:hidden!important;padding:6px 5px!important;border-radius:0 12px 12px 0!important;
  }
  html.nx436-hotfix-applied:not([data-nav-family="sidebar"]) .workspace-dock-item{
    min-width:0!important;width:52px!important;height:54px!important;padding:3px 1px!important;
    display:grid!important;grid-template-rows:21px minmax(0,1fr)!important;place-items:center!important;gap:1px!important;
  }
  html.nx436-hotfix-applied:not([data-nav-family="sidebar"]) .workspace-dock-icon{font-size:18px!important;line-height:1!important;color:var(--primary)!important}
  html.nx436-hotfix-applied:not([data-nav-family="sidebar"]) .workspace-dock-label{
    max-width:48px!important;max-height:20px!important;overflow:hidden!important;text-align:center!important;font-size:8px!important;line-height:1.05!important;white-space:normal!important;overflow-wrap:anywhere!important;
  }
  html.nx436-hotfix-applied:not([data-nav-family="sidebar"]) .workspace-content:has(.workspace-dock:not(:empty)) .workspace-stage{inset:0 0 0 6px!important}
}

/* Mobile uses one focused workspace window instead of desktop-style floating windows. */
@media (max-width:900px){
  html.nx436-hotfix-applied .main{padding-left:0!important}
  html.nx436-hotfix-applied .workspace-content,
  html.nx436-hotfix-applied .workspace-home-scroll,
  html.nx436-hotfix-applied .nx-v400-stable,
  html.nx436-hotfix-applied #page{margin-left:0!important;width:100%!important}
  html.nx436-hotfix-applied .workspace-content{overflow:hidden!important;padding:0!important}
  html.nx436-hotfix-applied .workspace-home-scroll{position:absolute!important;inset:0!important;padding:8px!important;overflow:auto!important}
  html.nx436-hotfix-applied .workspace-content:has(.workspace-window) .workspace-home-scroll{display:none!important}
  html.nx436-hotfix-applied .workspace-stage{display:block!important;inset:0 0 58px!important;pointer-events:auto!important;overflow:hidden!important;z-index:30!important}
  html.nx436-hotfix-applied .workspace-dock{display:none!important}
  html.nx436-hotfix-applied .workspace-window{display:none!important;min-width:0!important;min-height:0!important}
  html.nx436-hotfix-applied .workspace-window.focused:not(.minimized){display:grid!important;left:0!important;top:0!important;right:0!important;bottom:0!important;width:auto!important;height:auto!important;border-radius:0!important}
  html.nx436-hotfix-applied .workspace-window-head{height:42px!important;min-height:42px!important;padding:0 6px 0 10px!important;touch-action:auto!important}
  html.nx436-hotfix-applied .workspace-window-title{min-width:0!important}
  html.nx436-hotfix-applied .workspace-window-title strong{max-width:calc(100vw - 64px)!important}
  html.nx436-hotfix-applied .workspace-window-actions [data-window-new],
  html.nx436-hotfix-applied .workspace-window-actions [data-window-min],
  html.nx436-hotfix-applied .workspace-window-actions [data-window-max],
  html.nx436-hotfix-applied .workspace-resize-handle{display:none!important}
  html.nx436-hotfix-applied .workspace-window-actions [data-window-close]{display:grid!important;width:36px!important;height:32px!important;font-size:22px!important;color:var(--danger,#c23838)!important}
  html.nx436-hotfix-applied .embedded-mode #page .nx-v354-routebar,
  html.nx436-hotfix-applied .embedded-mode #page .nx-v381-root-commandbar{position:sticky!important;top:0!important;z-index:50!important;display:block!important;margin:0 0 6px!important;padding:5px!important;max-width:100%!important}
  html.nx436-hotfix-applied .embedded-mode #page .nx-v354-breadcrumb{display:none!important}
  html.nx436-hotfix-applied .embedded-mode #page .nx-v354-route-actions,
  html.nx436-hotfix-applied .embedded-mode #page .nx-v381-root-actions{display:flex!important;max-width:100%!important;min-width:0!important;overflow-x:auto!important;overflow-y:hidden!important;flex-wrap:nowrap!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:thin!important}
  html.nx436-hotfix-applied .embedded-mode #page .nx-v400-section-strip{width:max-content!important;min-width:max-content!important;flex:0 0 auto!important;overflow:visible!important}
  /* Quick rail owns the mobile NEXA entry; suppress the draggable duplicate FAB. */
  html.nx436-hotfix-applied [data-nexa-fab]{display:none!important}
}
