/* Secure24 Academy navigation lock.
   Prevent global responsive button rules from expanding Academy tabs into a vertical wall. */

#content .academy-dashboard-shell > .academy-tabs,
#content .academy-tabs{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  min-height:46px!important;
  height:auto!important;
  gap:5px!important;
  margin:0!important;
  padding:5px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-inline:contain!important;
  scrollbar-width:thin!important;
  border:1px solid #dde5ee!important;
  border-radius:11px!important;
  background:#fff!important;
  box-shadow:none!important;
}

#content .academy-tabs > button,
#content .academy-tabs > button[data-ac-tab]{
  display:inline-flex!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:max-content!important;
  max-width:none!important;
  min-height:34px!important;
  height:34px!important;
  margin:0!important;
  padding:7px 11px!important;
  justify-content:center!important;
  align-items:center!important;
  white-space:nowrap!important;
  overflow:visible!important;
  border:1px solid transparent!important;
  border-radius:7px!important;
  background:transparent!important;
  color:#5a6f85!important;
  font-size:11px!important;
  font-weight:750!important;
  line-height:1!important;
  text-align:center!important;
  box-shadow:none!important;
}

#content .academy-tabs > button:hover{
  background:#f3f6fa!important;
  color:#173f67!important;
}

#content .academy-tabs > button.active{
  background:#eaf2ff!important;
  border-color:#cbdcf4!important;
  color:#1f5cc0!important;
  font-weight:850!important;
  box-shadow:inset 0 0 0 1px rgba(31,92,192,.03)!important;
}

/* Manager-only learning tools stay visually secondary but remain on the same row. */
#content .academy-tabs > button[data-ac-tab="compliance"],
#content .academy-tabs > button[data-ac-tab="group"],
#content .academy-tabs > button[data-ac-tab="manage"]{
  background:#f8fafc!important;
  color:#52677c!important;
}

#content .academy-tabs > button[data-ac-tab="compliance"].active,
#content .academy-tabs > button[data-ac-tab="group"].active,
#content .academy-tabs > button[data-ac-tab="manage"].active{
  background:#edf4fb!important;
  border-color:#cbdbea!important;
  color:#174f85!important;
}

/* Ensure the panel starts immediately below the compact navigation. */
#content .academy-dashboard-shell > #academyPanel{
  min-width:0!important;
  margin-top:0!important;
}

@media(max-width:760px){
  #content .academy-dashboard-shell > .academy-tabs,
  #content .academy-tabs{
    min-height:48px!important;
    padding:5px!important;
  }
  #content .academy-tabs > button,
  #content .academy-tabs > button[data-ac-tab]{
    width:auto!important;
    min-width:max-content!important;
    height:38px!important;
    min-height:38px!important;
    padding:8px 10px!important;
  }
}
