/* live-train.css */
.table-wrapper {
  margin-top: 15px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  overflow-x: auto;
  /* max-height applied dynamically when jingle is visible */
}

/* When a video/jingle is playing, constrain the table so the video is visible */
.jingle-active .table-wrapper {
  max-height: 140px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

table thead {
  position: sticky;
  top: 0;
  color: #fff;
  background: linear-gradient(45deg, rgba(177, 31, 129, 1) 0%, rgba(202, 22, 131, 1) 27%, rgba(237, 90, 158, 1) 79%);

}

table th,
table td {
  padding: 8px 4px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

table th {
  font-weight: 600;
  letter-spacing: 0.5px;
}

table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

table tbody tr:hover {
  background-color: #f1f1f1;
}

.date-bar-wrapper {
  background-color: #fff;
  padding: 6px 0;
  text-align: center;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 57px;
  z-index: 10;
}

.date-bar-text {
  color: var(--primary-color);
  font-size: 13px;
}

.live-train-tab {
  display: block;
}

.loading-cell {
  text-align: center;
  padding: 30px;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border-width: 2px;
  border-top-color: var(--primary-color);
  margin: 0 auto 10px;
}

.live-jingle-wrapper {
  display: none;
  margin-top: auto;
  margin-bottom: 20px;
}

.modal-overlay-custom {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9999;
  justify-content: center;
  align-items: flex-end;
}

.modal-content-custom {
  background: #fff;
  width: 100%;
  max-width: 520px;
  border-radius: 18px 18px 0 0;
  max-height: 88vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
}

.modal-header-custom {
  background: linear-gradient(135deg, #cb1884, #8b0064);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 18px 18px 0 0;
  flex-shrink: 0;
}

.modal-title-small {
  font-size: 0.72em;
  opacity: 0.8;
  margin-bottom: 2px;
}

.modal-title-large {
  font-weight: 700;
  font-size: 0.95em;
}

.modal-close-btn-custom {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.1em;
  cursor: pointer;
  line-height: 1;
}

.modal-body-custom {
  overflow-y: auto;
  padding: 14px 12px;
  flex: 1;
}