/* --- MOBILE STYLES (max-width: 800px) --- */

#timetable-container {
  padding: 16px;
}

.day-wrapper {
  margin-bottom: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  background-color: var(--table-bg);
}

.day-header {
  background-color: #343a40;
  color: white;
  padding: 12px 16px;
  position: sticky;
  top: var(--header-height, 140px);
  z-index: 99;
  margin: 0;
  font-size: 18px;
}

/* --- NEW RULE ADDED HERE --- */
/* This makes the time range text white in the mobile header */
.day-header .range {
  color: white;
}

.daily-table {
  border-collapse: collapse;
  width: 100%;
  background: transparent;
  table-layout: fixed;
}

.daily-table th, .daily-table td {
  padding: 12px 8px;
  text-align: center;
  font-size: 14px;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.daily-table tbody tr:nth-child(even) {
  background-color: #f8f9fa; /* A clean, solid, slightly darker background */
}

.daily-table th:last-child, .daily-table td:last-child {
  border-right: none;
}

.daily-table tbody tr:last-child td {
  border-bottom: none;
}

.daily-table thead th {
  background-color: #f1f3f5;
  font-weight: 600;
}

.daily-table tbody td:nth-child(1),
.daily-table tbody td:nth-child(2) {
    font-weight: 600;
    color: var(--text-secondary);
}

.col-nr { width: 12%; }
.col-time { width: 25%; }
.col-subject { width: 43%; min-width: 50px; }
.col-room { width: 20%; min-width: 50px; }