  .nav-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black with opacity */
  }

  .nav-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    /* Responsive width */
    border-radius: 8px;
    /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Shadow effect */
  }

  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }

  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

  .info-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .notification-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
    /* Border between items */
  }

  .notification-icon {
    /* margin-right: 10px; */
  }

  .notification-content {
    display: flex;
    flex-direction: column;
  }

  .notification-title {
    font-weight: bold;
  }

  .notification-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Adjust the number of lines to show */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .notification-time {
    font-size: 0.8em;
    color: gray;
  }

  .mark-as-read-btn {
    font-size: 12px;
    /* Reduce the font size */
    padding: 2px 5px;
    /* Adjust padding for smaller size */
    margin-top: 5px;
    /* Add some space above */
    background-color: #007bff;
    /* Optional: Add a background color */
    color: white;
    /* Optional: Change text color */
    border: none;
    /* Remove border */
    border-radius: 3px;
    /* Optional: Add border-radius */
    cursor: pointer;
    /* Change cursor on hover */
  }

  .mark-as-read-btn:hover {
    background-color: #0056b3;
    /* Darken the background on hover */
  }

  /* Notification toasts – unique classes to avoid conflicts; positioned near the bell */
  .notification-bell-wrapper #quarto-notification-toast-container,
  .notification-bell-wrapper .quarto-notification-toast-wrapper {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    z-index: 1055;
    min-width: 280px;
    max-width: 360px;
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
  }
  .notification-bell-wrapper .quarto-notification-toast {
    pointer-events: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  /* Bell dropdown: pending links in one horizontal row, small buttons (not full-width blocks) */
  #notification-list {
    min-width: min(100vw - 32px, 520px) !important;
    width: max-content !important;
    max-width: min(100vw - 16px, 640px) !important;
  }

  #notification-list li.notification-pending-actions {
    padding: 8px 10px !important;
    margin: 0;
    list-style: none;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
  }

  #notification-list li.notification-pending-actions:hover {
    background: #f1f3f5 !important;
  }

  #notification-list .notification-pending-actions-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: auto !important;
  }

  #notification-list .btn-pending-nav {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    flex: 0 0 auto !important;
    max-width: none !important;
    padding: 0.3rem 0.6rem !important;
    font-size: 0.8125rem !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    text-decoration: none !important;
    box-sizing: border-box;
  }

  #notification-list .btn-pending-nav .badge {
    font-size: 0.65rem !important;
    font-weight: 600;
    padding: 0.2em 0.5em !important;
    margin-left: 6px !important;
    line-height: 1.2;
  }

  @media (max-width: 420px) {
    #notification-list .notification-pending-actions-inner {
      flex-wrap: wrap !important;
    }
  }

  .dropdown-menu {
    display: none;
    position: absolute;
    top: 35px;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    z-index: 1000;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  /* Ensure Bootstrap dropdown opens when bell is clicked */
  .dropdown-menu.show,
  .dropdown.show .dropdown-menu {
    display: block !important;
  }

  .dropdown-menu li {
    padding: 5px;
  }

  .dropdown-menu li:hover {
    background-color: #f0f0f0;
  }

  .dropdown-item {
    display: block;
    padding: 5px 10px;
    color: #000;
    text-decoration: none;
  }

  .dropdown-item:hover {
    background-color: #f0f0f0;
  }

  .user-dropdown:hover .user-dropdown-menu {
    display: block;
    border-radius: 5px;
    padding: 10px;
    border: 1px solid #ccc;
  }

  .user-dropdown-menu {
    display: none;
    position: absolute;
    top: 25px;
    /* Adjust based on your icon size */
    right: 0;
    background: white;
    border: 1px solid #ccc;
    list-style: none;
    padding: 5px;
    margin: 0;
    z-index: 1000;
  }

  .user-dropdown-menu li {
    padding: 5px;
  }

  .user-dropdown-menu li:hover {
    background-color: #f0f0f0;
  }

  .btn {
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
  }

  .btn-primary {
    background-color: #007bff;
    color: #fff;
  }

  .btn-primary:hover {
    background-color: #0056b3;
  }

/* navigation menus */
  .navbar {
    display: flex;
    background-color: var(--themeblue) !important;
    padding: 0px;
    justify-content: flex-start;
    gap: 5px; /* Space between each nav item */
    padding-top: 0px
}
@media (max-width: 768px) {
  .navbar select {
    width: 70px;
    white-space: nowrap;       /* prevent text from wrapping */
    overflow: hidden;          /* hide overflowing text */
    text-overflow: ellipsis;
  }
}



.nav-item {
    position: relative;
    color: white;
    cursor: pointer;
    background-color: var(--themeblue) !important;
    width: fit-content;
}

.arrow {
    margin-left: 10px;
    /* border: solid white; */
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 4px;
    transform: rotate(45deg); /* Rotate to point downwards */
}

.menu-dropdown-menu {
    display: none;
    position: absolute;
    top: 30px;
    background-color: var(--themeblue) !important;
    list-style-type: none;
    padding: 10px;
    margin: 0;
    width: 150px;
    z-index: 1;
}

.menu-dropdown-menu li {
    color: white;
    padding: 8px 12px;
    cursor: pointer;
}

.menu-dropdown-menu li:hover {
    background-color: #555;
}
#menu3{
  width: fit-content;
  max-height: 500px;
  overflow-y: scroll;
}
#menu3 {
  width: fit-content;
  max-height: 500px;
  overflow-y: scroll;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #888 #f1f1f1; /* Firefox */
}

/* For Webkit browsers (Chrome, Safari, Edge) */
#menu3::-webkit-scrollbar {
  width: 8px;
}

#menu3::-webkit-scrollbar-track {
  background: #f1f1f1;
}

#menu3::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
}

#menu3::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}
#menu3 li{
  min-width: 200px;
}


.mobile-nav-section{
  display: none;
}
/* Dropdown menu inherits background from .mobile-nav-section */
.mobile-nav-section .dropdown-menu {
  background-color: var(--themeblue) !important; 
  border: none;
  min-width: 180px !important; /* Adjust width as needed */
}

/* Dropdown items also inherit the background */
.mobile-nav-section .dropdown-menu .dropdown-item {
  color: #fff;
  background-color: var(--themeblue) !important;
}

/* Ensure hover effect does not change color */
.mobile-nav-section .dropdown-menu .dropdown-item:hover,
.mobile-nav-section .dropdown-menu .dropdown-item:focus {
  background-color: inherit var(--themeblue);
  color: #fff !important;
}
.user-dropdown-mobile{
  display: none;
}
.user-dropdown{
  display: flex;
}

#transportButton{
  display: none;
}
#einvoiceButton{
  display: none;
}
#ewaybillButton{
  display: none;
}
.mainTitle {
  word-wrap: break-word; /* ensures long words wrap */
  white-space: normal;   /* allows wrapping */
  overflow-wrap: break-word;
}
.mainTitle {
  max-width: 450px !important; /* adjust as needed */
}


@media (max-width: 768px) { 
  .mobile-nav-section{
    display: block;
  }
  .icons-div{
    display: none;
  }
  .dynamic-nav{
    width: 100%;
  }
  .dynamic-nav span{
    font-size: 12px;
  }
  .maindashnavlinksection1{
    font-size: 2dvw;
    display: flex;
    flex-direction: column;
  }
  .maindashnavlinksection1 h5{
    font-size: 2dvw;
  }
  .maindashnavlinksection1 option{
    font-size: 2dvw;
  }
  .user-dropdown{
    display: none;
  }
  .user-dropdown-mobile{
    display: block;
  }

}
.comp_logo img{
  width: 10px !important;
  height: 10px !important;
  object-fit: contain !important;
}


.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.notification-item:hover {
  background-color: #f8f9fa;
  cursor: pointer;
}

.notification-icon {
  color: #0d6efd;
}

.notification-content {
  flex: 1;
}

/* .unread {
  background-color: #37071a !important;
} */
.read {
  background-color: #ffffff !important;
}

/* Quarto notification toasts – unique id/classes only; ensures toasts are visible */
#quarto-notification-toast-container,
.quarto-notification-toast-wrapper {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  z-index: 1055;
  min-width: 280px;
  max-width: 360px;
  display: flex !important;
  flex-direction: column;
  gap: 6px;
}

.quarto-notification-toast {
  display: flex !important;
  align-items: center;
  padding: 0;
  border-radius: 0.375rem;
  border: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 1 !important;
  visibility: visible !important;
  min-width: 260px;
  max-width: 340px;
  background-color: #0d6efd !important;
  color: #ffffff !important;
}

.quarto-notification-toast-show,
.quarto-notification-toast-visible,
.quarto-notification-toast.show {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.quarto-notification-toast-info {
  background-color: #0d6efd !important;
  color: #ffffff !important;
}

.quarto-notification-toast-info .quarto-notification-toast-body,
.quarto-notification-toast-info .quarto-notification-toast-inner {
  color: #ffffff !important;
}

.quarto-notification-toast-error {
  background-color: #dc3545 !important;
  color: #ffffff !important;
}

.quarto-notification-toast-error .quarto-notification-toast-body,
.quarto-notification-toast-error .quarto-notification-toast-inner {
  color: #ffffff !important;
}

.quarto-notification-toast-inner {
  display: flex !important;
  align-items: center;
  width: 100%;
  padding: 0.75rem 1rem;
}

.quarto-notification-toast-body {
  flex: 1;
  padding-right: 0.5rem;
  color: inherit !important;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.quarto-notification-toast-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  margin-left: 0.5rem;
  border: none;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quarto-notification-toast-close:hover {
  background: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
}

