body {
    display: flex;
    /* overflow-x: hidden; */
    flex-direction: column;
    background-color: #eaf6ff;
    text-align: center;
    overflow-y: auto;
    }
    #searchInput {
      width: auto;
        border-radius: 30px;
        border: 1px solid grey;
        background: white url(https://assets-autoparts.s3.ap-south-1.amazonaws.com/images/magnify.png) 5px center no-repeat;
        background-size: 20px 20px;
        padding-left: 35px;
        height: 35px;
    margin-top: 3%;
    margin-left: 3%;
    }
    #filterAndTotal {
      display: flex;
      margin-left: 0%;
       margin-top: -1%;
    }
    .navbar {
    color: white;
    /* background-color: black; */
    background: linear-gradient(160deg, #017b82, #0771b4);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 12;
    border-bottom: 1px solid #e0e0e0;
    }
    #logoImg {
    height: auto;
    width: 150px;
    margin: -16px 6px;
    }
    .navbar .user-info span {
    margin-right: 10px;
    color: white;
    }
    .navbar .user-icon {
    color: white;
    cursor: pointer;
    }
    .dropdown-menu {
    right: 0;
    left: auto;
    }
    .sidebar {
    /* background-color: black; */
    font-size: 12px;  
    background: linear-gradient(160deg, #017b82, #0771b4);
    position: fixed;
    top: 4px;
    left: 0;
    overflow-x: hidden;
    padding-top: 20px;
    width: 13%;
    height: 100vh;
    padding: 50px 0px;
    transition: transform 0.3s ease;
    text-align: left;
    scrollbar-color: white white;
    z-index: 11;
    }
    .sidebar .nav-link {
    color: #ffffff;
    cursor: pointer;
    }
    .sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    }
    .sidebar .nav-link.active,
    .sidebar .nav-link.selected {
    background-color: rgba(255, 255, 255, 0.2);
    cursor: default;
    border: none;
    }
    .main-content {
    flex-grow: 1;
    padding: 20px;
    margin-left: 13%;
    margin-top: 10px;
    overflow: hidden;
    transition: margin-left 0.3s ease;
    }
    .submenu {
    display: block; /* Show all submenus by default */
    }
    .nav-item > .submenu {
    padding-left: 20px;
    }
    .nav-item .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    }
    .nav-item .nav-link i {
    margin-right: 10px;
    }
    .chevron-icon {
    margin-left: auto;
    cursor: pointer;
    }
    .submenu .nav-link {
    display: block;
    margin-left: 20px;
    }
    .toggle-sidebar {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    }
    .topHeads {
        display: flex;
        margin-bottom: 1%;
        margin-top: 2%;
      }
    
    .profile-table {
    width: 50%;
    margin: 20px auto;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    }
    .profile-table input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    }
    table.table td{
        overflow: hidden;
    text-overflow: ellipsis;
    color: #106072;
    text-align: left;
    font-size: 13px;
    }
    h1 {
  font-size: 2rem;
}
    .modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    }
    .modalPopup{
    display: block;
    background-color: white;
    height: 10vh;
    width: 16%;
    text-align: center;
    border: 1px solid grey;
    border-radius: 10px;
    margin: 18% 47%;
    }
    .sort-icon{
    cursor: pointer;
    }   
    .filter-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    width: 8%;
    margin: 0% 4%;
    }
    .filter-bar button {
    margin-left: 10px;
    }
    #loadingMessage {
    text-align: center;    
    font-size: 1.5em;
    color: #333;
    }
    .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 1000;
    }
    body.no-scroll {
      overflow: hidden; /* Disable scrolling */
    }
    body.modal-active {
    overflow: hidden; 
    }
    
    #cancellingOrder {
    display: none; /* Hidden by default */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54%;
    background-color: white;
    border: 1px solid #c0c0c0;
    border-radius: 10px;
    padding: 20px;
    /* z-index: 1000; */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    /* z-index: 999; */
    }
    #cancelledRefundSubmit {
    background-color: #ff914d;
    border: 1px solid black;
    width: 14%;
    font-weight: bold;
    margin: 6% 43%;
    border-radius: 12px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5);
    }
    #showTotalOrders{
    border: 1px solid #c0c0c0;
    text-align: center;
    height: auto;
    width: auto;
    border-radius: 5px;;
    margin: 0% 1%;
    /* background-color: #3096a58f; */
    padding: 5px;
    background-color: #037894;
    color:white;
    }
    #unifiedDatePicker,#dallasDateRange {
      background-color: #037894;
        color: white;
        width: auto;
        text-align: center;
    }
    #unifiedDatePicker::placeholder {
  color: white; 
  opacity: 1;  
}
    #filterButton {
      background-color: #037894;color:white; border: none; 
      height: 3vh;
      margin-left: 1%;
    }
    .approve-btn,
.cancel-btn {
min-width: 50px;
    height: 28px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    text-align: center;
    vertical-align: middle;
    flex-shrink: 0;
}
#closeApproved{
    position: absolute; right: 0; background: none; border: none; font-size: 20px;
}
#closeApproved p{
    margin-top: 8%;
}
#filterButton,
#showTotalOrders,
#unifiedDatePicker,#dallasDateRange {
  min-width: 100px;
  height: 36px;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  border-radius: 4px;
  border: none;
  background-color: #037894;
  color: white;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#filterButton:hover,
#showTotalOrders:hover,
#unifiedDatePicker:hover,#dallasDateRange:hover, .previousNext:hover {
  background-color: #0b4f5f;
}
.table td:first-child {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    padding: 8px;
  }
  button {
    box-sizing: border-box;
  }  
    .approve-btn {
      background-color: #037894;
        border: none;
        color: white;
    }
    .cancel-btn {
      background-color: #c40505; border: none; color: white;
    }
    .approve-btn:hover {
        background-color: #0b4f5f;
        cursor: pointer;
      }
      
      .cancel-btn:hover {
        background-color: #a30000;
        cursor: pointer;
      }      
    /* for dark mode */
    .dark-mode {
    background-color: #141b2d;
    color: #999999;
    }
    .dark-mode .cancel-btn {
      background-color: #d9d9d9;
        border: none;
        color: red;
        font-weight: 600;
    }
    .dark-mode .table-wrapper {
        scrollbar-color: #29638c #141b2d;
    }
    .dark-mode .approve-btn {
       background-color: white;
    border: none;
    color: #007413;
    }
    .dark-mode #mainHeading{
    color: #999999;
    }
    .dark-mode .firstRow {
    color: white;
    border: 1px solid #484b4b;
    }
    .dark-mode #expediteS, #dsCall{
      background-color: #0e0c0c;
      border: none;
    }
    .dark-mode .form-control{
    border: none;
    background-color: #0e0c0c;
    }
    .dark-mode table.table td{
      color: #d7d7d7;
        background-color: #2c3e50;
    }
    .dark-mode .navbar .user-info span, #darkModeIcon, #notificationIcon, #userMenu{
      color: white;
    }
    .dark-mode .navbar, 
    .dark-mode .sidebar {
      background: #1f2940;
      border-color: #333;
      scrollbar-color: #1f2940 #1f2940;
    }
    .dark-mode #showTotalOrders {
      background-color: #29638c;
      border: none;
    }
    .dark-mode #searchInput{
      background-color: #1f2940;
      color: white;
    }
    .dark-mode #unifiedDatePicker, .dark-mode #dallasDateRange {
      background-color: #29638c;
      border: none;
    }
    .dark-mode #filterButton {
      background-color: #29638c;
      border: none;
    }
    .dark-mode .nav-link,
    .dark-mode .nav-link i {
    color: #b3b3b3 !important;
    }
    .dark-mode .nav-link:hover,
    .dark-mode .nav-link.selected {
    background-color: rgba(255, 255, 255, 0.1);
    }
    .dark-mode .main-content {
    background-color: #141b2d;
    color: #e0e0e0;
    }
    .table-dark td, .table-dark th, .table-dark thead th {
        border-color: #454d55;
        background-color: #29638c;
    }
    /* notification */
    .notification-badge {
      position: absolute;
      top: -5px;
      right: -10px;
      background-color: red;
      color: white;
      font-size: 12px;
      padding: 2px 6px;
      border-radius: 50%;
      display: none; 
    }
    
    .notification-dropdown ul {
      list-style: none;
      padding: 10px;
      margin: 0;
      /* border: 1px solid black; */
    }
    .notification-dropdown ul li {
      padding: 8px;
      border-bottom: 1px solid #f0f0f0;
    }
    .notification-dropdown ul li:last-child {
      border-bottom: none;
    }
    #notificationDropdown {
      overflow-y: auto;
      /* padding: 10px; */
      border: 1px solid #ccc;
      background-color: white;
      color: black;
      width: 234%;
      display: none;
      position: absolute;
      top: 50px;
      right: 0px;
      box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
      z-index: 1000;
      border: 2px solid black;
    }
    #viewAlltasks {
      margin: 3% 37%;
        border: none;
        text-decoration-line: underline;
        color: red;
        font-weight: bold;
    }
    
    
    #mainHeading {
      text-align: center; 
      color: #037894;
      white-space: nowrap;
      text-decoration: underline;
      margin-left: 0%;
    }
   
    .table-wrapper {
      max-height: 82vh;
        overflow-y: auto;
        position: relative;
        scrollbar-color: #037894 white;
        box-sizing: content-box;
        margin-top: 1%;
        /* overflow-x:hidden; */
    }
    
    table {
      width: 100%;
      border-collapse: collapse;
    }
   
      /* Default Light Mode */
      body.light-mode {
        background-color: #ffffff; /* Light mode background */
        color: #000000; /* Light mode text */
      }
      /* Dark Mode */
      body.dark-mode {
        background-color: #141b2d;
        color: #999999;
      }
     
      #downloadCsv {
      background-color: #037894;
      color: white;
      padding: 6px 9px;
      border-radius: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      position: absolute;  /* Positioning the button relative to its container */
      right: 20px;         
      top: 64px;           /* the top margin for visibility */
      z-index: 1;        /* Ensure the button is on top of other elements */
    }
    
    #downloadCsv i {
      font-size: 18px; 
    }
    .table tbody tr:hover {
  background-color: #b6c2c4 !important; 
}

.table tbody tr.selected {
  background-color: #e7dcfd !important;
}
.table tbody tr.selected td {
  border: 1px solid #767171 !important;
}
.table thead th {
font-size: 13px;
}
/* sorting */
#infoTableHeader {
  position: sticky;
  transform: translateZ(0); 
  overflow-anchor: none;
  top: 0;
  z-index: 10; 
  background-color: #037894; 
  color: white;
  padding: 8px;
  text-align: center;
  border-bottom: 1px solid #ddd;
  white-space: nowrap;
}
th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
}

.sort-icons {
  display: inline-block;
  margin-left: 6px;
}

.sort-icons .asc,
.sort-icons .desc {
  font-size: 12px;
  color: #999;
  margin-left: 2px;
}

.sort-icons .active {
  color: #000; /* Bold black or use accent color */
  font-weight: bold;
}
/* calender  */
.flatpickr-calendar .custom-shortcuts a {
  color: #007BFF;
  text-decoration: none;
  cursor: pointer;
  text-decoration: underline;
}
.flatpickr-weekdays,.flatpickr-weekdaycontainer,.flatpickr-months .flatpickr-month,.flatpickr-current-month .flatpickr-monthDropdown-months,.flatpickr-weekdays .flatpickr-weekdaycontainer,.flatpickr-weekdays .flatpickr-weekdaycontainer,span.flatpickr-weekday {
    background: #037894 !important;
}
.flatpickr-weekday{
 text-decoration: underline;
}
.table-blur {
  filter: blur(4px);
  transition: filter 0.3s ease;
}
.custom-shortcuts{
  background-color: #ffffff !important;
}
.flatpickr-current-month {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px !important; 
}
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    font-weight: bold;
    font-size: 15px;
}
.flatpickr-current-month .cur-month {
  margin-right: 0 !important; 
}
.flatpickr-calendar .custom-shortcuts a:hover {
  text-decoration: underline;
}
@media (max-width: 992px) {
  .sidebar {
    font-size: 10px;
  }
.topHeads {
  margin-top: 4%;
}
  .sidebar .nav-link {
    padding: 8px 12px;
    font-size: 11px;
    margin-left: -8%;
  }
table.table td {
  font-size: 12px;
}
.table thead th {
    font-size: 12px;
}
  .sidebar .chevron-icon i {
    font-size: 10px;
  }
  .approve-btn, .cancel-btn {
    min-width: 50px;
    height: 31px;
    font-size: 12px;
  }
  h1 {
    font-size: 1.5rem; 
    font-weight: 600;
  }
  #searchInput {
        height: 30px;
    margin-top: 1%;
    margin-left: 3%;
  }
  #unifiedDatePicker,#dallasDateRange {
    font-size: 12px;
  }
}
    @media (max-width: 768px) {
        .sidebar {
        transform: translateX(-100%);
        width:38%;
        }
        .topHeads{
          margin-top: 18%
        }
        #searchInput {
    width: 93%;
        }
        .navbar .user-info span
 {    margin-left: 5%;
}
        .sidebar.show {
        transform: translateX(0);
        }
        .main-content {
        margin-left: 0;
        }
        .toggle-sidebar {
        display: block;
        }
        .table-wrapper {
              overflow-x: auto; 
            }
        
            table {
              min-width: 800px;
            }
        }
        @media (max-width: 600px) {
  .sidebar {
    font-size: 9px;
  }

  .sidebar .nav-link {
    font-size: 10px;
  }
}
    @media (max-width: 320px) {
        #mainHeading {
          font-size: 20px;
        }
        }