body {
display: flex;
/* overflow: hidden; */
flex-direction: column;
background-color: #eaf6ff;
text-align: center;
overflow-y: auto;
}
/* btn pagination */
.pageNos{
  background-color: white;
  color: black;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  margin: 0 5px;
}
.previousNext{
  background-color: #037894;
     color: white;
    border: none;
    padding: 4px;
    border-radius: 50%;
    font-size: 18px;
  cursor: pointer;
}
.previousNext:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
/* btn pagination till here */
#logoImg {
height: auto;
width: 150px;
margin: -16px 6px;
}
.navbar .user-info span {
margin-right: 10px;
color: white;
}
.navbar .user-icon {
color: white;
cursor: pointer;
}
.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;
}

.sidebar {
/* background-color: black; */
background: linear-gradient(160deg, #017b82, #0771b4);
font-size: 12px;
position: fixed;
z-index: 11;
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;
}
.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;
}
#filterButton:hover,
#showTotalOrders:hover,
#unifiedDatePicker:hover {
  background-color: #0b4f5f;
}
.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;
}
.fixed-header {
flex-shrink: 0;
margin: 0% 30%;
}
#filterAndTotal{
    display: flex;
    margin-left: 0%;
    margin-top: -1%;
}
.topHeads {
    display: flex;
    margin-bottom: 1%;
    margin-top: 2%;
  }

#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%;
}
.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-responsive {
/* overflow-x: auto; */
display: block;
width: 82vw; 
}


table.table td {
    overflow: hidden;
    text-overflow: ellipsis;
    color: #106072;
    text-align: left;
    font-size: 13px;
}
table.table td:last-child {
  white-space: nowrap;
}

.btn {
padding: 0.375rem 0.75rem;
}
.disabled {
pointer-events: none;
opacity: 0.6;
}
.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;
}
.sort-icon {
cursor: pointer;
}
.green-background {
background-color: green;
}
.active-page {
background-color: #037894;
  color: white;
}
#loadingMessage {
text-align: center;    
font-size: 1.5em;
color: #333;
}
.page-info {
  display: inline-block;
  margin-left: 10px;
  font-size: 18px;
  font-weight: bold;
}
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5); /* Dark overlay behind the modal */
z-index: 5;
}
body.no-scroll {
  overflow: hidden; /* Disable scrolling */
}
body.modal-active {
overflow: hidden; /* Prevents background scrolling when modal is active */
}
#showTotalOrders{
  border: 1px solid #c0c0c0;
text-align: center;
width: auto;
border-radius: 5px;;
margin: 0% 1%;
/* background-color: #3096a58f; */
padding: 5px;
background-color: #037894;
color:white;
}
#unifiedDatePicker{
  background-color: #037894;
    color: white;
    width: auto;
}
    #unifiedDatePicker::placeholder {
  color: white; 
  opacity: 1;  
}
#filterButton {
  background-color: #037894;color:white; border: none; 
  margin-left: 1%;
}
#unifiedDatePicker,
#filterButton,#showTotalOrders {
      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, .previousNext:hover {
  background-color: #0b4f5f;
}
h1 {
  font-size: 2rem;
}
.edit-btn {
    background-color: #037894;
    border: none;
    color: #e5f6ff;
}
.process-btn {
     background-color: #065d20;
    border: none;
    color: #f9fff9;
}
.edit-btn, .process-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;
}
.process-btn :hover {
     background-color: #0ba439;
    border: none;
    color: #f9fff9;
}
.edit-btn :hover {
    background-color: #0b4f5f;
}
 .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;
}
/* First and Second Columns (Headers) */
/* th:first-child,
th:nth-child(2) {
  position: sticky;
  left: 0;
  z-index: 999;
}

/* First and Second Columns (Table Data) */
/* td:first-child,
td:nth-child(2) {
  position: sticky;
  z-index: 999;
}

th:nth-child(2),
td:nth-child(2) {
  left: 100px; 
}
td:first-child {
  border-right: 3px solid #ddd;
}
.dark-mode th:first-child,
.dark-mode td:first-child,
.dark-mode th:nth-child(2),
.dark-mode td:nth-child(2) {
  z-index: 999;
  color: #e0e0e0;
  position: sticky;
  left: 0;
}

.dark-mode th:nth-child(2),
.dark-mode td:nth-child(2) {
  left: 100px; 
} */

/* for dark mode */
.dark-mode {
background-color: #141b2d;
color: #999999;
}
.dark-mode .edit-btn {
  background-color: #141b2d;
    border: none;
    color: white;
}
.dark-mode .process-btn {
  background-color: white;
    border: none;
    color: #007413;
    font-weight: 500;
}
.dark-mode #unifiedDatePicker{
background-color: #29638c;
color: white;
border: none;
}
.dark-mode .table-wrapper{
  scrollbar-color: #29638c #141b2d;
}
.dark-mode #showTotalOrders{
background-color: #29638c;
color: white;
border: none;
}
.dark-mode #filterButton{
background-color: #29638c;
color: white;
border: none;
}
.dark-mode h2{
color: #999999;
}
.dark-mode .pageNos {
  background-color: #120d0d;
    color: white;
}
.dark-mode .previousNext {
    background-color: #29638c;
}
.dark-mode table.thead tr {
    background-color: #29638c;
}
.dark-mode .table tbody tr:hover {
  background-color: #e10505 !important; 
  cursor: pointer;
}

.dark-mode .table tbody tr.selected {
  background-color: #757070 !important;
  outline: 2px solid #000 !important; 
}
.dark-mode .firstRow {
color: white;
border: 1px solid #484b4b;
}
.dark-mode table.table td {
  border-bottom: none;
  background-color: #2c3e50;
  color: #d7d7d7;
}
.dark-mode #expediteS, #dsCall{
  background-color: #0e0c0c;
  border: none;
}
.dark-mode #mainHeading {
    color: #999999;
}
.dark-mode #searchInput {
    background-color: #1f2940;
    color: white;
}
.dark-mode .table-dark.table-bordered {
    border: 0;
    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 .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;
scrollbar-color: #29638c #141b2d;
}
.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: 46px;
  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;
}
#pagination-controls {
margin-top: 0;
float: left;
}
/* 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: 480px) {
/* #pagination-controls {
font-size: 14px;
margin-top: 10%;
margin-left: 0.4%;
} */
.table-responsive {
width: 100%;
font-size: 12px;
}
/* #filterAndTotal{
  margin-top: 2%;
  margin-left: 3%;
} */
#searchInput{
  width: 40%;
  margin: 7% 25%;
}
.fixed-header{
  font-size: 28px;
}
}

#mainHeading {
  text-align: center; 
  color: #037894;
  white-space: nowrap;
  margin-left: 0%;
  text-decoration: underline;
}
table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrapper {
  max-height: 82vh;
    overflow-y: auto;
    scrollbar-color: #037894 white;
    position: relative;
    scrollbar-gutter: stable;
    margin-top: 1%;
}
#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; 
}
.selected {
  background-color: #ffe7a0 !important;
  transition: background-color 0.4s ease-in-out;
}
@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 {
    font-size: 12px;
  }
}
    @media (max-width: 768px) {
        .sidebar {
        transform: translateX(-100%);
        width:38%;
        }
        .topHeads{
          margin-top: 8%
        }
        #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;
  }
  }
