/* Fix Universe theme custom dashboard sidebar to stretch to footer - Override inline styles */
.rui-dashboard-sidebar[style] {
  height: calc(100vh - 100px) !important;
  max-height: calc(100vh - 100px) !important;
}

.rui-frontpage-sidebar[style] {
  height: calc(100vh - 100px) !important;
  max-height: calc(100vh - 100px) !important;
}

/* Also fix the main content area to match */
.rui-frontpage-main[style] {
  min-height: calc(100vh - 100px) !important;
}

/* Alternative approach - target by parent container */
.rui-modern-dashboard .rui-dashboard-sidebar {
  height: calc(100vh - 100px) !important;
  max-height: calc(100vh - 100px) !important;
}

.rui-modern-frontpage .rui-frontpage-sidebar {
  height: calc(100vh - 100px) !important;
  max-height: calc(100vh - 100px) !important;
}

/* Fix Moodle native drawer if it appears */
#nav-drawer{
  position: fixed;
  top: 0 !important;
  bottom: 0 !important;
  height: auto !important;
}

@media (max-width: 768px){
  #nav-drawer{ top: 0 !important; bottom: 0 !important; }
}
/* Override for course index context menu issue - disable card styling on Overview tab only */

.path-course-view #tab1 .activity,
.path-course-view #tab1 li.activity {
    background: transparent !important;
    border: none !important;
    border-left: none !important;
    box-shadow: none !important;
    padding: 0.5rem 0 !important;
    margin: 0 0 0.5rem 0 !important;
    transition: none !important;
    border-radius: 0 !important;
    transform: none !important;
}

.path-course-view #tab1 .activity:hover,
.path-course-view #tab1 li.activity:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
    background: transparent !important;
}

/* Ensure context menus are always on top */
.path-course-view .action-menu {
    position: relative !important;
    z-index: 9999 !important;
}

.path-course-view .action-menu .dropdown-menu {
    position: absolute !important;
    z-index: 10000 !important;
    pointer-events: auto !important;
}

/* Fix header overlap for course page drawer toggles only */
.path-course-view .drawer.drawer-left .drawertoggle {
    margin-top: 20px !important;
}

/* Limit generic button margin to course page header toggles only */
.path-course-view .drawerheader .btn:not(:disabled):not(.disabled) {
    margin-top: 20px !important;
}

/* Footer: use theme defaults (no overrides) */