@media (max-width: 768px) {
  .card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    /* Remove extra padding */
    margin: 0;
    /* Remove extra margin */
  }

  #h4 {
    font-size: 16px;
    margin-top: -10px;
  }

  #h6 {
    font-size: 15px;
    margin-right: 1rem;
    font-weight: 550;
  }

  #text {
    margin-top: -6rem;
    margin-left: 2.2rem;
    font-size: 12px;

  }

  #header {
    margin-left: 10px;
  }

  .card-header>h4 {
    order: 1;
    /* Move heading to the top */
    margin-top: -3rem;
    /* Remove any margin above or below the heading */
  }

  .card-headercustomer>h4 {
    order: 1;
    /* Move heading to the top */
    margin-top: -3rem;
    margin: 0.580;
    /* Remove any margin above or below the heading */
  }



  .card-header>.col-md-3 {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Align items to the left */
    width: auto;
    margin-top: 10px;
    margin-right: 0;
    /* Remove right margin */
    flex-direction: row;
    /* Ensure dropdown and status are on the same line */
    gap: 10px;
    /* Add spacing between dropdown and statusElement */
  }

  #statusElement {
    order: 2;
    font-weight: 100;
    /* Set font weight to 100 */
    display: inline-block;
    /* Ensure inline layout */
    margin-left: 10px;
    /* Add spacing to the left of dropdown */
  }

  .card-header>.col-md-3,
  .card-header>#statusElement {
    flex: 0;
    /* Ensure they don't stretch unnecessarily */
  }
}
.gauge-column {
    margin-bottom: 20px;
}

#metalDetectorTable_wrapper .dataTables_length label {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
  white-space: nowrap;
}

.gauge-table{
  color: #607080;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  height: 80%;
  overflow-y: auto;
  overflow-x: hidden;
}

#selectedTimeHeading {
  margin-left: 1rem;
}

#status {
  font-size: 10px;
  font-weight: bold;

}

.online {
  color: green;
}

.offline {
  color: red;
}

.sticky-heading .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 15rem !important;
}

#statusElement {
  font-size: 5px;
  font-weight: bold;
  /* color: gray; */
  margin-right: 20px;
  text-align: right;

}

.card {
  width: 100%;
  max-width: 100%;
}

.card-header h4 {
  flex: 1;
  text-align: center;
  margin: 0;
}

#text {
  margin-right: 2rem;
}

.card-header p {
  margin: 0;
  margin-left: auto;
}

.chart-container {
  display: flex;
  justify-content: center;
  /* Horizontally center */
  align-items: center;
  /* Vertically center */
  height: 100vh;
  /* Full viewport height */
}

.apexcharts-menu-item.exportSVG {
  display: none;
}

/* body {
  padding: 20px;
}

.part-1 {
  /* background-color: #f9f9f9; */
/* padding: 6px;
  margin-bottom: 20px;
} */

/*
.chart-box {
  margin-bottom: 20px;
  padding: 10px;
   background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.table-responsive {
  margin-top: 20px;
}

h4 {
  text-align: center;
  margin-bottom: 20px;
} */

/* .page-heading {
  padding: 16px 10px;
  box-shadow: 0 10px 20px rgba(97, 179, 255, 0.2);
} */

/* #production-line-chart,
#small-chart-1,
#small-chart-2,
#small-chart-3,
#small-chart-4,
#bar-chart-1,
#bar-chart-2,
#bar-chart-3 {
  min-height: 140px;
} */

/* -------------------------------
 */

/* body {
  padding: 20px;
}

.part-1 {
  /* background-color: #f9f9f9; */
/* padding: 6px;
  margin-bottom: 20px;
} */

/*
.chart-box {
  margin-bottom: 20px;
  padding: 10px;
   background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.table-responsive {
  margin-top: 20px;
}

h4 {
  text-align: center;
  margin-bottom: 20px;
} */

/* .page-heading {
  padding: 16px 10px;
  box-shadow: 0 10px 20px rgba(97, 179, 255, 0.2);
} */

/* #production-line-chart,
#small-chart-1,
#small-chart-2,
#small-chart-3,
#small-chart-4,
#bar-chart-1,
#bar-chart-2,
#bar-chart-3 {
  min-height: 140px;
} */

/* -------------------------------
 */

.conveyor-container {
  width: 100%;
  max-width: 300px;
  /* Optional: limit max size on large screens */
  margin: 20px auto;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

.conveyor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
  gap: 5rem; /* Default gap for large screens */
}
.progress-bar-wrapper {
  width: 100%;
  height: 20px;
  background-color: #e0e0e0;
  border: 1px solid #999;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background-color: green;
  transition: width 0.5s ease-in-out, background-color 0.3s ease-in-out;
}

.conveyor-label {
  text-align: center;
  margin-top: 8px;
  padding: 4px;
  border: 1px solid #aaa;
  border-radius: 4px;
  background-color: #f9f9f9;
  font-weight: bold;
}


[data-bs-theme=dark],
body[data-bs-theme=dark] [data-bs-theme=light] {
  .gauge-table{
  color: #C2C2D9;
}
}
