/* HN Multiverrse Jobs - dashboard layout fix
   Sidebar and main panel scroll separately, nothing is hidden under the site header or cut at the bottom. */
@media (min-width:900px){
  body:has(.hn-admin-shell), body:has(.hn-dash-shell){height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
  body:has(.hn-admin-shell) .site-header, body:has(.hn-dash-shell) .site-header{position:relative;flex:0 0 auto}
  body:has(.hn-admin-shell) .site-footer, body:has(.hn-dash-shell) .site-footer,
  body:has(.hn-admin-shell) .fx-footdeco, body:has(.hn-dash-shell) .fx-footdeco{display:none!important}
  .hn-admin-shell, .hn-dash-shell{flex:1 1 auto;min-height:0!important;height:auto;overflow:hidden;grid-template-rows:minmax(0,1fr)}
  .hn-admin-sidebar, .hn-dash-sidebar{position:static!important;top:auto;height:auto!important;min-height:0;overflow-y:auto;overscroll-behavior:contain}
  .hn-admin-main, .hn-dash-main{min-height:0;height:100%;overflow-y:auto;overscroll-behavior:contain}
  .hn-dash-main.hn-frame-active{display:flex;flex-direction:column;overflow:hidden}
  .hn-dash-main.hn-frame-active .hn-dash-frame{flex:1 1 auto;height:auto;min-height:360px;margin-bottom:14px}
  .hn-admin-sidebar::-webkit-scrollbar, .hn-dash-sidebar::-webkit-scrollbar, .hn-admin-main::-webkit-scrollbar, .hn-dash-main::-webkit-scrollbar{width:8px}
  .hn-admin-sidebar::-webkit-scrollbar-thumb, .hn-dash-sidebar::-webkit-scrollbar-thumb, .hn-admin-main::-webkit-scrollbar-thumb, .hn-dash-main::-webkit-scrollbar-thumb{background:#d9d5ea;border-radius:8px}
}
@media (max-width:899px){
  .hn-admin-sidebar, .hn-dash-sidebar{position:static!important;height:auto!important}
}

/* ---- admin: sidebar pages open inside the panel ---- */
.hn-admin-frame{display:none;width:100%;border:0;background:transparent}
.hn-admin-main.hn-frame-active > *:not(.hn-admin-frame){display:none!important}
.hn-admin-main.hn-frame-active .hn-admin-frame{display:block;height:78vh;min-height:520px}
@media (min-width:900px){
  .hn-admin-main.hn-frame-active{display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}
  .hn-admin-main.hn-frame-active .hn-admin-frame{flex:1 1 auto;height:auto;min-height:0}
}
/* page shown inside the panel: no second sidebar / header / footer */
html.hn-embedded body{background:transparent!important;height:auto!important;display:block!important;overflow:visible!important}
html.hn-embedded .hn-admin-sidebar, html.hn-embedded .hn-admin-topbar{display:none!important}
html.hn-embedded .hn-admin-shell{display:block!important;height:auto!important;overflow:visible!important}
html.hn-embedded .hn-admin-main{height:auto!important;overflow:visible!important;padding:0 6px 30px!important}
html.hn-embedded .dashboard-wrap.container{width:100%!important;max-width:none!important;padding:14px 18px 30px!important}
