/*! MES 1.0 Dashboard */
.chart-container {
  background-color: white;
  position: relative;
  height: 40vh;
}
.oee-card {
  background-color: lightgray;
  color: black;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.oee-card h5 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}
.oee-card .progress {
  height: 30px;
}
.oee-card .progress-bar {
  font-size: 1rem;
  line-height: 30px;
}
.availability-card {
  background-color: lightgray;
  color: black;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.availability-card h5 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}
.stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.performance-card {
  background-color: lightgray;
  color: black;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.performance-card h5 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}
.stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.quality-card {
  background-color: lightgray;
  color: black;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.quality-card h5 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}
.stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}
.equipment-card {
  background-color: lightgray;
  color: black;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.equipment-card h5 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}
.status-indicator {
  height: 15px;
  width: 15px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
}
.status-online {
  background-color: green;
}
.status-offline {
  background-color: red;
}
.report-card {
  background-color: lightgray;
  color: black;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.report-card h5 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}
.download-btns {
  margin-top: 20px;
}
.alert-card {
  background-color: lightgray;
  color: black;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.alert-card h5 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}
.event-table {
  margin-top: 20px;
}
.event-table thead th {
  text-align: center;
}
.event-table tbody td {
  text-align: center;
}
.status-indicator {
  height: 15px;
  width: 15px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
}
.status-high {
  background-color: red;
}
.status-medium {
  background-color: orange;
}
.status-low {
  background-color: green;
}
.config-card {
  background-color: lightgray;
  color: black;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.config-card h5 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}
.form-group label {
  font-weight: bold;
}
.section-title {
  margin-top: 30px;
}
/* Ensure tables can scroll horizontally on small screens */
.table-responsive {
  overflow-x: auto;
}
/* MES 3.3 */
.status-new {
  color: white;
  background-color: #007bff;
}
.status-in-progress {
  color: white;
  background-color: #ffc107;
}
.status-completed {
  color: white;
  background-color: #28a745;
}
/* MES 3.5 */
.badge-replace {
    color: white;
    background-color: #dc3545;
}
.badge-upgrade {
    color: white;
    background-color: #ffc107;
}
.status-operational {
    color: white;
    background-color: #28a745;
}
.status-maintenance {
    color: white;
    background-color: #007bff;
}
/* MES 3.7 */
.low-stock {
  color: orange;
  font-weight: bold;
}
.out-stock {
  color: red;
  font-weight: bold;
}
