body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: #f5f5f5;
}

h1 {
  color: #333;
  margin: 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.last-updated {
  color: #666;
  font-size: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

caption {
  font-size: 1.8em;
  font-weight: bold;
  padding: 25px 20px;
  background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
  color: white;
  text-align: left;
  border-left: 6px solid #1a5490;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

thead tr:first-child th {
  background: #34495e;
  color: white;
  padding: 10px;
  text-align: left;
  font-size: 1em;
}

thead tr:last-child th {
  background: #ecf0f1;
  padding: 8px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85em;
  color: #555;
}

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

tbody tr:hover {
  background: #e8f4f8;
}

td {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

td:first-child {
  font-family: monospace;
  color: #666;
}

.empty-day {
  color: #999;
  font-style: italic;
  padding: 10px;
}

.filters {
  margin-bottom: 20px;
  padding: 15px;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-group {
  margin-bottom: 10px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filters label {
  margin-right: 15px;
  cursor: pointer;
  user-select: none;
}

.filters input[type="checkbox"] {
  margin-right: 5px;
  margin-left: 0;
}

.filters input[type="search"] {
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 300px;
}

.filters button {
  padding: 6px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f5f5f5;
  cursor: pointer;
}

.filters button:hover {
  background: #e5e5e5;
}

/* Week dropdown styling */
.week-dropdown {
  margin-top: 8px;
}

.week-dropdown summary {
  cursor: pointer;
  padding: 8px 12px;
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
  user-select: none;
  display: inline-block;
  font-weight: normal;
  transition: background 0.2s;
}

.week-dropdown summary:hover {
  background: #e5e5e5;
}

.week-dropdown summary::marker {
  content: '';
}

.week-dropdown summary::before {
  content: '▼';
  display: inline-block;
  margin-right: 6px;
  font-size: 0.8em;
  transition: transform 0.2s;
}

.week-dropdown[open] summary::before {
  transform: rotate(-180deg);
}

.week-checkboxes {
  margin-top: 10px;
  padding: 10px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.week-checkboxes label {
  display: block;
  margin-bottom: 6px;
}

.week-checkboxes label:last-child {
  margin-bottom: 0;
}


tr.hidden {
  display: none;
}

thead.hidden,
tbody.hidden {
  display: none;
}

tr[data-type="available"] {
  background: #a6d6e1 !important;
}

tr[data-type="available"]:hover {
  background: #8ec9d6 !important;
}

table.hidden {
  display: none;
}

.actions-header,
td.actions {
  text-align: right;
  display: flex;
  gap: 0.5rem;
}

td.actions .icon {
  display: flex;
  width: 1.5rem;
  height: 1.5rem;
}

td.actions button,
td.actions a.email-link {
  padding: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f5f5f5;
  cursor: pointer;
  margin-left: 4px;
  text-decoration: none;
  color: inherit;
  display: flex;
}


td.actions button:first-child,
td.actions a.email-link:first-child {
  margin-left: 0;
}

td.actions button:hover,
td.actions a.email-link:hover {
  background: #e5e5e5;
}

/* Blue accent for email link */
td.actions a.email-link {
  background: #e3f2fd;
  border-color: #90caf9;
}

td.actions a.email-link:hover {
  background: #bbdefb;
}

td:nth-child(2),
td:nth-child(3),
td:nth-child(4) {
  white-space: nowrap;
  width: 1%;
}

.update-form button {
  background: #3498db;
  color: white;
  border: none;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
}

.update-form button:hover {
  background: #2980b9;
}