/* Mobile navigation styles */
@media (min-width: 768px) {
  .d-md-none, .offcanvas {
    display: none !important;
  }
}
@media (min-width: 1441px) {
    .panel-heading-ctc{
        margin-right: 10px;
    }
}
@media (max-width: 1441px) {
    .ctc-info , .ctc-info--cell.schedule-info{
        display: flex;
        flex-direction: column
    }
    .panel-heading.statusInfo{
        flex-direction: column !important;
    }
    .panel-heading-ctc{
        margin-bottom: 10px;
    }
}
@media (max-width: 768px) {

#mobileNavFragment{
height: 60px}
.offcanvas-header{
border: unset !important}
 .vinExmpt{
      flex-direction: column;
      align-items: self-start !important;
 }
 .vinExmpt > .form-group{
         flex: 0;
         flex: 0;
         margin-left: 0 !important;
         width:100%
    }
 .header-profile-container {
   margin:0 !important
 }
 .header-profile-container > .profile-image > img{
     height: 50px ;
     width: 50px ;
     margin-top: 6px;
 }
 .header-profile-container > .profile-image{
    margin-right :0px;
    text-align:end;
    height: 50px ;
    width: 50px ;
 }
 .header-profile-container > .header-welcome{
 margin-right : 8px
 }
  #topMenu, #sidebar, #header {
    display: none !important;
  }

  .main-container.main {
    margin-left: 0 !important;
  }

  .content.right {
    margin-left: 0 !important;
  }
}

/* Offcanvas width */
.offcanvas-start {
  max-width: 280px;
}

/* Active state styling */
.list-group-item.active {
  background-color: #f0f7ff !important;
  color: #0d6efd !important;
  border-left: 4px solid #0d6efd !important;
  padding-left: calc(1rem - 4px) !important;
}

.submenu .list-group-item.active {
  padding-left: calc(3rem - 4px) !important;
}

/* show submenu */
.submenu.show {
  display: block !important;
}

/* Expand/collapse icon */
.mobile-menu-item.expanded .fa-chevron-down {
  transform: rotate(180deg);
}

/* Nested submenu styles */
.nested-submenu {
  background-color: #f8f9fa;
  display: none;
}

.list-group-item {
  position: relative;
}

.list-group-item .fa-chevron-right {
  transition: transform 0.3s ease;
  margin-left: auto;
}

.list-group-item.expanded .fa-chevron-right {
  transform: rotate(90deg);
}

/* Indentation for nested levels */
.submenu .list-group-item {
  padding-left: 3rem !important;
}

.nested-submenu .list-group-item {
  padding-left: 4rem !important;
  background-color: #f1f3f5;
}

.nested-submenu .nested-submenu .list-group-item {
  padding-left: 5rem !important;
  background-color: #e9ecef;
}

/* Active state for nested items */
.nested-submenu .list-group-item.active {
  background-color: #e9ecef;
  color: #0d6efd;
  border-left: 4px solid #0d6efd;
  padding-left: calc(4rem - 4px) !important;
}

.nested-submenu .nested-submenu .list-group-item.active {
  padding-left: calc(5rem - 4px) !important;
}

/* Nested toggle styling */
.nested-toggle {
  cursor: pointer;
  user-select: none;
}

/* Add deeper indentation classes */
.ps-6 {
  padding-left: 4rem !important;
}

.ps-7 {
  padding-left: 5rem !important;
}

/* Firmware specific styling */
.submenu .list-group-item[data-has-children="true"] {
  background-color: #f8f9fa;
  font-weight: 500;
}

/* Make the leaf items more distinct */
.nested-submenu a.list-group-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}



/* Dropdown search styling for mobile */
.dropdown-search-container {
  padding: 10px 15px !important;
}

.dropdown-search-container .form-control {
  font-size: 14px;
  border-radius: 4px;
}

.mobile-dropdown-menu {
  max-width: 100%;
  width: calc(100% - 30px);
  margin-left: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-dropdown-menu .dropdown-item {
  white-space: normal;
  word-wrap: break-word;
  padding: 8px 12px;
}

.mobile-dropdown-menu .dropdown-item.active,
.mobile-dropdown-menu .dropdown-item:active {
  background-color: #f0f7ff;
  color: #0d6efd;
  border-left: 4px solid #0d6efd;
  padding-left: calc(12px - 4px);
}

/* Custom dropdown search input styling */
.custom-dropdown-search {
  background-color: #fff;
  border: 1px solid #ced4da;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.custom-dropdown-search:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Ensure dropdown menu doesn't get hidden */
.dropdown-menu.show {
  z-index: 1050;
}

/* Styles for filtering items */
.dropdown-item-hidden {
  display: none !important;
}

/* Ensure proper styling inside offcanvas */
.offcanvas .dropdown-menu {
  position: absolute;
}