/*
 * Custom CSS for AdminLTE Dashboard Theme
 */

/*
 * Rule to prevent parent menu items from being highlighted.
 * It targets the direct `<a>` child of an open parent menu (`.menu-open`)
 * and forces its background to be transparent, overriding default active styles.
 */
.sidebar-light-primary .nav-sidebar > .nav-item.has-treeview.menu-open > .nav-link {
    background-color: transparent !important;
    color: #343a40 !important; /* Optional: Reset text color if it also changes */
}

/*
 * This rule ensures that the *actual* active child link is still highlighted correctly.
 * It targets `.nav-link.active` inside the `.nav-treeview` (the child list).
 */
.sidebar-light-primary .nav-sidebar .nav-treeview > .nav-item > .nav-link.active {
    background-color: #007bff !important; /* Blue highlight for active child */
    color: #fff !important; /* White text for active child */
}
