/*** Table Styles **/

table {
  width: 100%;
}
th {
  color: #ffffff;
  background: #1969a6;
  font-size: 15px;
  padding: 10px;
  text-align: left;
  vertical-align: middle;
}
tr {
  background: #ffffff;
}
.disabled-tr {
  background: #dddddd;
}
td {
  padding: 5px;
  text-align: left;
  vertical-align: middle;
  font-weight: bold;
  font-size: 13px;
}
td:last-child {
  border-right: 0px;
}
th.text-left {
  text-align: left;
}
th.text-center {
  text-align: center;
}
th.text-right {
  text-align: right;
}
td.text-left {
  text-align: left;
}
td.text-center {
  text-align: center;
}
td.text-right {
  text-align: right;
}
@media screen and (max-width: 600px) {
  table {
    border: 0;
  }
  table thead {
    display: none;
  }
  table tr {
    margin-bottom: 10px;
    display: block;
    border-bottom: 2px solid #ddd;
  }
  table td {
    display: block;
    text-align: right;
    font-size: 13px;
    border-bottom: 1px dotted #ccc;
  }
  table td:last-child {
    border-bottom: 0;
  }
  table td:before {
    content: attr(data-label);
    float: left;
    text-transform: uppercase;
    font-weight: bold;
  }
}

.hasRedFlag {
  background: rgba(251, 99, 99, 0.38);
}

/* Time Display Toggle Styles */
.time-display-toggle {
  color: #ffffff !important;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.time-display-toggle:hover {
  color: #e3f2fd !important;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.time-display-toggle:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

th:has(.time-display-toggle):hover {
  background: #1565c0;
}

th .time-display-toggle:hover {
  background: transparent;
}

.exceeds-limit-row {
  background-color: rgba(244, 67, 54, 0.1) !important;
  border-left: 4px solid #f44336;
}

.exceeds-limit-row td {
  background-color: rgba(244, 67, 54, 0.05);
  color: #c62828;
}

.exceeds-limit-row .md-input-container label {
  color: #c62828;
}

.exceeds-limit-hours {
  color: #c62828;
  font-weight: bold;
}

.holiday-remarks-required {
  border: 2px solid #ff9800;
  background-color: rgba(255, 152, 0, 0.1);
}

.holiday-validation-error {
  color: #d32f2f;
  font-size: 12px;
  margin-top: 4px;
}
