/*
  BIVAK ADMIN-APPROVED PRODUCTION PANEL LOCK
  Permanent scope: fixed left applications/categories, dominant center workspace,
  aligned right ACCESS/TOOLS, hover-only guidance, and the visible right scrollbar.
  Do not remove, relocate, collapse, or redesign without explicit Admin approval.
*/

*,*::before,*::after{box-sizing:border-box!important}

:root{
  --bivak-left-snug:clamp(188px,11.5vw,204px)!important;
  --bivak-right-snug:clamp(286px,17vw,306px)!important;
  --bivak-panel-gap:6px!important;
}

html,body{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:100%!important;
  min-height:100%!important;
  overflow:hidden!important;
}

body,.app-shell{
  margin:0!important;
  overflow:hidden!important;
}

.app-shell{
  width:100%!important;
  max-width:100vw!important;
  height:100dvh!important;
  min-height:100dvh!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
}

.workspace-shell,
#workspaceShell{
  display:grid!important;
  grid-template-columns:var(--bivak-left-snug) minmax(0,1fr) var(--bivak-right-snug)!important;
  grid-template-rows:minmax(0,1fr)!important;
  gap:var(--bivak-panel-gap)!important;
  width:100%!important;
  max-width:100vw!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  align-items:stretch!important;
}

.workspace-shell.left-compact,
.workspace-shell.right-compact,
.workspace-shell.left-compact.right-compact,
#workspaceShell.left-compact,
#workspaceShell.right-compact,
#workspaceShell.left-compact.right-compact{
  grid-template-columns:var(--bivak-left-snug) minmax(0,1fr) var(--bivak-right-snug)!important;
}
.workspace-shell.left-compact .nav-text,
.workspace-shell.left-compact .section-label,
.workspace-shell.left-compact .left-panel .panel-head strong,
.workspace-shell.right-compact .right-panel .panel-scroll,
.workspace-shell.right-compact .right-panel .panel-head strong,
#workspaceShell.left-compact .nav-text,
#workspaceShell.left-compact .section-label,
#workspaceShell.right-compact .right-panel .panel-scroll{
  display:block!important;
}
.workspace-shell.right-compact .right-panel .panel-head,
#workspaceShell.right-compact .right-panel .panel-head{
  justify-content:space-between!important;
}
.workspace-shell.right-compact .right-panel .panel-mini button,
#workspaceShell.right-compact .right-panel .panel-mini button{
  display:inline-grid!important;
}

.left-panel,
.center-stage,
.right-panel,
#rightPanel{
  grid-row:1!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  align-self:stretch!important;
  justify-self:stretch!important;
  inset:auto!important;
  margin:0!important;
  transform:none!important;
}
.left-panel{
  grid-column:1!important;
  position:sticky!important;
  top:0!important;
  overflow:hidden!important;
}
.center-stage{
  grid-column:2!important;
  position:relative!important;
  overflow:hidden!important;
  padding:6px!important;
}
.right-panel,
#rightPanel{
  grid-column:3!important;
  position:sticky!important;
  top:0!important;
  overflow:hidden!important;
}

.left-panel>.panel-scroll,
.center-stage>.stage-scroll,
.right-panel>.panel-scroll,
#rightPanel>.panel-scroll{
  height:calc(100% - 40px)!important;
  min-height:0!important;
  max-height:calc(100% - 40px)!important;
  overflow-x:hidden!important;
}
.left-panel>.panel-scroll{
  overflow-y:auto!important;
  scrollbar-width:none!important;
  padding:5px!important;
}
.left-panel>.panel-scroll::-webkit-scrollbar,
.center-stage>.stage-scroll::-webkit-scrollbar{
  display:none!important;
  width:0!important;
  height:0!important;
}
.center-stage>.stage-scroll{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:100%!important;
  max-height:100%!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-width:none!important;
  padding:0!important;
}

.left-panel .panel-scroll{padding:5px!important}
.left-panel .nav-list{display:grid!important;gap:3px!important;width:100%!important}
.left-panel .section-label{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:4px 0 3px!important;
  padding:5px 6px!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  line-height:1.1!important;
  cursor:help!important;
}
.left-panel .panel-scroll>.section-label::after{
  display:block!important;
  max-height:0!important;
  margin:0!important;
  padding:0!important;
  opacity:0!important;
  overflow:hidden!important;
  color:#b8cfdf!important;
  font-size:6px!important;
  font-weight:600!important;
  letter-spacing:0!important;
  line-height:1.25!important;
  text-transform:none!important;
  transition:max-height .14s ease,opacity .14s ease,margin .14s ease,padding .14s ease!important;
}
.left-panel .panel-scroll>.section-label:nth-of-type(1)::after{content:"Sign in, create an account, and use approved secure-access controls."}
.left-panel .panel-scroll>.section-label:nth-of-type(3)::after{content:"Open business models, the BIVAK WR Room, applications, and protected documents."}
.left-panel .panel-scroll>.section-label:nth-of-type(5)::after{content:"Review system status, mini instructions, and approved support guidance."}
.left-panel .panel-scroll>.section-label:hover::after{
  max-height:6em!important;
  margin-top:4px!important;
  padding:4px 5px!important;
  opacity:1!important;
  border:1px solid rgba(86,151,194,.45)!important;
  border-radius:5px!important;
  background:#061524!important;
}
.left-panel .nav-btn{
  display:grid!important;
  grid-template-columns:18px minmax(0,1fr)!important;
  align-items:center!important;
  align-content:center!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:30px!important;
  height:auto!important;
  padding:4px 5px!important;
  gap:5px!important;
  overflow:hidden!important;
}
.left-panel .nav-icon{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  font-size:7px!important;
  line-height:1!important;
}
.left-panel .nav-text{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  text-overflow:clip!important;
  font-size:7.5px!important;
  line-height:1.1!important;
}
.left-panel .nav-text small{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  max-height:0!important;
  margin:0!important;
  opacity:0!important;
  overflow:hidden!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  font-size:6px!important;
  line-height:1.25!important;
  transition:max-height .14s ease,opacity .14s ease,margin .14s ease!important;
}
.left-panel .nav-btn:hover .nav-text small,
.left-panel .nav-btn:focus-visible .nav-text small,
.left-panel .nav-btn:focus-within .nav-text small{
  max-height:5em!important;
  margin-top:3px!important;
  opacity:1!important;
}

.right-panel>.panel-scroll,
#rightPanel>.panel-scroll{
  overflow-y:scroll!important;
  overflow-x:hidden!important;
  scrollbar-width:auto!important;
  scrollbar-color:#5b93c5 #06111f!important;
  scrollbar-gutter:stable!important;
  padding:6px!important;
}
.right-panel>.panel-scroll::-webkit-scrollbar,
#rightPanel>.panel-scroll::-webkit-scrollbar,
#right::-webkit-scrollbar,
#rightShell .panel-body::-webkit-scrollbar{
  width:14px!important;
  display:block!important;
}
.right-panel>.panel-scroll::-webkit-scrollbar-track,
#rightPanel>.panel-scroll::-webkit-scrollbar-track,
#right::-webkit-scrollbar-track,
#rightShell .panel-body::-webkit-scrollbar-track{
  background:#06111f!important;
  border-left:1px solid rgba(63,122,172,.45)!important;
}
.right-panel>.panel-scroll::-webkit-scrollbar-thumb,
#rightPanel>.panel-scroll::-webkit-scrollbar-thumb,
#right::-webkit-scrollbar-thumb,
#rightShell .panel-body::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg,#5b93c5,#2c679e)!important;
  border:2px solid #06111f!important;
  border-radius:999px!important;
}
.right-panel .right-command-row,
#rightPanel .right-command-row{
  display:block!important;
  width:100%!important;
  margin:0 0 4px!important;
  overflow:hidden!important;
}
.right-panel .right-command-row[data-row="access"],
#rightPanel .right-command-row[data-row="access"]{order:1!important}
.right-panel .right-command-row[data-row="tools"],
#rightPanel .right-command-row[data-row="tools"]{order:2!important}
.right-panel .right-row-buttons,
#rightPanel .right-row-buttons{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:3px!important;
  width:100%!important;
  padding:4px!important;
  overflow:visible!important;
}
.right-panel .right-row-buttons .tool-btn,
#rightPanel .right-row-buttons .tool-btn{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:27px!important;
  height:auto!important;
  padding:3px 4px!important;
  font-size:7px!important;
  line-height:1.12!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-align:center!important;
}

.layout{
  display:grid!important;
  grid-template-columns:clamp(200px,12vw,220px) minmax(0,1fr) clamp(292px,17vw,318px)!important;
  grid-template-rows:minmax(0,1fr)!important;
  width:100%!important;
  max-width:100vw!important;
  height:calc(100dvh - var(--top-h,154px))!important;
  min-height:0!important;
  gap:6px!important;
  padding:6px!important;
  overflow:hidden!important;
  align-items:stretch!important;
}
#leftShell,.left-shell,.panel-shell.left-shell{
  grid-column:1!important;
  grid-row:1!important;
  position:sticky!important;
  top:0!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:100%!important;
  min-height:0!important;
  align-self:stretch!important;
  overflow:hidden!important;
}
#main,.main,.center-workspace,.workspace-main{
  grid-column:2!important;
  grid-row:1!important;
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:100%!important;
  min-height:0!important;
  align-self:stretch!important;
  overflow:auto!important;
  scrollbar-width:none!important;
  padding:8px!important;
}
#main::-webkit-scrollbar,.main::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
#rightShell,.right-shell,.panel-shell.right-shell{
  grid-column:3!important;
  grid-row:1!important;
  position:sticky!important;
  top:0!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:100%!important;
  min-height:0!important;
  align-self:stretch!important;
  overflow:hidden!important;
}
#leftShell .panel-body,#left.panel-body,#left{
  height:100%!important;
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scrollbar-width:none!important;
  padding:6px!important;
}
#leftShell .panel-body::-webkit-scrollbar,#left::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
#rightShell .panel-body,#right.panel-body,#right{
  height:100%!important;
  min-height:0!important;
  overflow-y:scroll!important;
  overflow-x:hidden!important;
  scrollbar-width:auto!important;
  scrollbar-color:#5b93c5 #06111f!important;
  scrollbar-gutter:stable!important;
  padding:6px!important;
}

#left *,#leftShell *{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
#left .category,
#left .left-category-button,
#left .left-model-button,
#left .left-app-category-button,
#left .left-page-button,
#left .navitem,
#left button{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:auto!important;
  min-height:27px!important;
  margin:2px 0!important;
  padding:4px 5px!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
  text-overflow:clip!important;
  line-height:1.12!important;
  font-size:7px!important;
  text-align:left!important;
  overflow:hidden!important;
}
#left .navitem{display:grid!important;grid-template-columns:18px minmax(0,1fr)!important;gap:5px!important;align-items:center!important}
#left .navlogo{width:18px!important;height:18px!important;min-width:18px!important;object-fit:contain!important}
#left .navtxt,#left .navtxt b,#left .navtxt small{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  line-height:1.12!important;
}
#left .navtxt small{
  display:block!important;
  max-height:0!important;
  margin:0!important;
  opacity:0!important;
  overflow:hidden!important;
  font-size:6px!important;
}
#left .navitem:hover .navtxt small,#left .navitem:focus-visible .navtxt small{max-height:5em!important;margin-top:3px!important;opacity:1!important}
#left .left-category-help,
#left .left-model-help,
#left .left-app-category-help,
#left .left-page-help,
#left .app-purpose{
  display:block!important;
  max-height:0!important;
  margin:0!important;
  padding:0!important;
  opacity:0!important;
  overflow:hidden!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  font-size:6px!important;
  line-height:1.25!important;
  transition:max-height .14s ease,opacity .14s ease,margin .14s ease,padding .14s ease!important;
}
#left .left-category-block:hover>.left-category-help,
#left .left-category-block:focus-within>.left-category-help,
#left .left-model-block:hover>.left-model-help,
#left .left-model-block:focus-within>.left-model-help,
#left .left-app-category-block:hover>.left-app-category-help,
#left .left-app-category-block:focus-within>.left-app-category-help,
#left .left-page-wrap:hover>.left-page-help,
#left .left-page-wrap:focus-within>.left-page-help,
#left .app-mini:hover .app-purpose,
#left .app-mini:focus-within .app-purpose{
  max-height:8em!important;
  margin:3px 0!important;
  padding:4px!important;
  opacity:1!important;
  border:1px solid rgba(86,151,194,.42)!important;
  border-radius:4px!important;
  background:#061524!important;
}

#right h3{margin:5px 0 3px!important;padding:5px 6px!important;font-size:7px!important;line-height:1.1!important}
#right .rows,#right .right-function-row,#right .mini-button-row{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:3px!important;
  width:100%!important;
  margin:0 0 4px!important;
}
#right button,#right .action,#right .tool-btn{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:27px!important;
  height:auto!important;
  padding:3px 4px!important;
  font-size:7px!important;
  line-height:1.12!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  text-overflow:clip!important;
  text-align:center!important;
  overflow:hidden!important;
}

.topbar,.top,.top-row,.top-controls,.controls,.layout-controls,.system-tabs,.business-tabs{
  overflow-x:hidden!important;
  scrollbar-width:none!important;
}
.topbar::-webkit-scrollbar,.top::-webkit-scrollbar,.top-row::-webkit-scrollbar,.top-controls::-webkit-scrollbar,.controls::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.top-controls,.controls,.layout-controls,.system-tabs,.business-tabs{flex-wrap:wrap!important;align-content:center!important;gap:3px!important}
.top-controls .square-btn,.controls button,.layout-controls button,.system-tabs button,.business-tabs button{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:34px!important;
  max-width:100%!important;
  min-height:27px!important;
  height:auto!important;
  padding:3px 5px!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  font-size:7px!important;
  line-height:1.1!important;
}

@media(max-width:1180px){
  :root{--bivak-left-snug:176px!important;--bivak-right-snug:250px!important}
  .layout{grid-template-columns:184px minmax(0,1fr) 260px!important}
}
@media(max-width:920px){
  :root{--bivak-left-snug:158px!important;--bivak-right-snug:220px!important}
  .layout{grid-template-columns:166px minmax(0,1fr) 228px!important}
  .right-panel .right-row-buttons,#rightPanel .right-row-buttons,#right .rows,#right .right-function-row{grid-template-columns:1fr!important}
}
@media(prefers-reduced-motion:reduce){
  .left-panel .nav-text small,
  .left-panel .panel-scroll>.section-label::after,
  #left .left-category-help,
  #left .left-model-help,
  #left .left-app-category-help,
  #left .left-page-help{transition:none!important}
}

/* Administrator requirement 2026-11-01: visible, usable scrollbars in every
   workspace column, without unlocking authentication or altering panel order.
   Keep the fixed app shell; scroll the actual content containers independently. */
.left-panel>.panel-scroll,
.center-stage>.stage-scroll,
.right-panel>.panel-scroll,
#rightPanel>.panel-scroll,
#leftShell .panel-body,
#left.panel-body,
#left,
#main,
#rightShell .panel-body,
#right.panel-body,
#right {
  overflow-y:scroll!important;
  overflow-x:auto!important;
  scrollbar-width:auto!important;
  scrollbar-gutter:stable!important;
  scrollbar-color:#5b93c5 #06111f!important;
  overscroll-behavior:contain;
}
.left-panel>.panel-scroll::-webkit-scrollbar,
.center-stage>.stage-scroll::-webkit-scrollbar,
.right-panel>.panel-scroll::-webkit-scrollbar,
#rightPanel>.panel-scroll::-webkit-scrollbar,
#leftShell .panel-body::-webkit-scrollbar,
#left::-webkit-scrollbar,
#main::-webkit-scrollbar,
#rightShell .panel-body::-webkit-scrollbar,
#right::-webkit-scrollbar {
  display:block!important;
  width:14px!important;
  height:14px!important;
}
.left-panel>.panel-scroll::-webkit-scrollbar-thumb,
.center-stage>.stage-scroll::-webkit-scrollbar-thumb,
#leftShell .panel-body::-webkit-scrollbar-thumb,
#left::-webkit-scrollbar-thumb,
#main::-webkit-scrollbar-thumb {
  background:#5b93c5!important;
  border:2px solid #06111f!important;
  border-radius:10px!important;
}
.left-panel>.panel-scroll::-webkit-scrollbar-track,
.center-stage>.stage-scroll::-webkit-scrollbar-track,
#leftShell .panel-body::-webkit-scrollbar-track,
#left::-webkit-scrollbar-track,
#main::-webkit-scrollbar-track {
  background:#06111f!important;
}

/* Center workspace: independent vertical and horizontal scrolling, including
   nested model pages and the application frame. Keep original three columns. */
.workspace-shell > .center-stage,
#workspaceShell > .center-stage,
.center-stage {
  min-width:0!important;
  min-height:0!important;
}
.center-stage > .stage-scroll,
.center-stage .stage-scroll,
#main .panel-body,
#main .workspace-content,
#main .workspace-scroll,
#main .main-content,
#ecosystemFrame {
  min-width:0!important;
  min-height:0!important;
  max-width:100%!important;
  overflow-x:auto!important;
  overflow-y:auto!important;
  scrollbar-width:auto!important;
  scrollbar-gutter:stable both-edges!important;
  scrollbar-color:#5b93c5 #06111f!important;
  overscroll-behavior:contain;
}
.center-stage > .stage-scroll {height:100%!important;max-height:100%!important;}
.center-stage > .stage-scroll::-webkit-scrollbar,
#main .panel-body::-webkit-scrollbar,
#main .workspace-content::-webkit-scrollbar,
#main .workspace-scroll::-webkit-scrollbar,
#main .main-content::-webkit-scrollbar,
#ecosystemFrame::-webkit-scrollbar {
  display:block!important;
  width:14px!important;
  height:14px!important;
}
.center-stage > .stage-scroll::-webkit-scrollbar-thumb,
#main .panel-body::-webkit-scrollbar-thumb,
#main .workspace-content::-webkit-scrollbar-thumb,
#main .workspace-scroll::-webkit-scrollbar-thumb,
#main .main-content::-webkit-scrollbar-thumb {
  background:#5b93c5!important;border:2px solid #06111f!important;border-radius:9px!important;
}
