.schedule-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: calc(100vh - 200px);
}

.filters-panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.filter-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 240px;
  flex: 1;
}

.filter-field label {
  font-size: 13px;
  font-weight: 600;
  color: #495057;
}

.filter-field select {
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  color: #212529;
  cursor: pointer;
  transition: border-color 0.15s;
}

.filter-field select:focus {
  outline: none;
  border-color: #4a90d9;
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

.filter-field select:disabled {
  background: #f8f9fa;
  color: #868e96;
  cursor: not-allowed;
}

.schedule-panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.schedule-card {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.schedule-card:last-child {
  margin-bottom: 0;
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f3f5;
}

.schedule-title {
  font-size: 16px;
  font-weight: 600;
  color: #212529;
  margin: 0;
}

.schedule-date-range {
  font-size: 13px;
  color: #868e96;
}

.holiday-section {
  margin-bottom: 16px;
}

.holiday-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
}

.holiday-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.holiday-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.holiday-chip.academic {
  background: #dbeafe;
  color: #1e40af;
}

.holiday-chip.organization {
  background: #ede9fe;
  color: #6d28d9;
}

.holiday-chip.group {
  background: #ccfbf1;
  color: #0f766e;
}

.learning-pace-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.learning-pace-table thead th {
  background: #f8f9fa;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #495057;
  border-bottom: 2px solid #dee2e6;
  white-space: nowrap;
}

.learning-pace-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f3f5;
  color: #212529;
}

.learning-pace-table tbody tr:hover {
  background: #f8f9fa;
}

.pace-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.pace-status.scheduled {
  background: #e2e3e5;
  color: #383d41;
}

.pace-status.not-completed {
  background: #f8d7da;
  color: #721c24;
}

.pace-status.partial {
  background: #fff3cd;
  color: #856404;
}

.pace-status.completed {
  background: #d4edda;
  color: #155724;
}

.progress-bar-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-bar-track {
  flex: 1;
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
  min-width: 60px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-bar-fill.low { background: #dc3545; }
.progress-bar-fill.medium { background: #ffc107; }
.progress-bar-fill.high { background: #28a745; }

.progress-bar-label {
  font-size: 12px;
  color: #495057;
  min-width: 45px;
  text-align: right;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #868e96;
  font-size: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.loading-indicator {
  text-align: center;
  padding: 40px;
  color: #868e96;
}

.no-holidays {
  color: #adb5bd;
  font-size: 13px;
  font-style: italic;
}

/* Searchable Select */
.searchable-select {
  position: relative;
}

.searchable-select .searchable-input {
  width: 100%;
  padding: 8px 32px 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  color: #212529;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.searchable-select .searchable-input:focus {
  outline: none;
  border-color: #4a90d9;
  box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}

.searchable-select.disabled .searchable-input {
  background: #f8f9fa;
  color: #868e96;
  cursor: not-allowed;
}

.searchable-select.selected .searchable-input {
  background: #f0f7ff;
  border-color: #4a90d9;
  font-weight: 500;
}

.searchable-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  color: #868e96;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.searchable-clear:hover {
  color: #495057;
}

.searchable-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ced4da;
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 100;
}

.searchable-dropdown[hidden] {
  display: none;
}

.searchable-item {
  padding: 8px 12px;
  font-size: 13px;
  color: #212529;
  cursor: pointer;
  transition: background 0.1s;
  border-bottom: 1px solid #f1f3f5;
}

.searchable-item:last-child {
  border-bottom: none;
}

.searchable-item:hover,
.searchable-item.highlighted {
  background: #e8f0fe;
}

.searchable-item .item-sub {
  font-size: 11px;
  color: #868e96;
  margin-top: 2px;
}

.searchable-item mark {
  background: #fff3cd;
  color: inherit;
  padding: 0;
  border-radius: 2px;
}

.searchable-no-results {
  padding: 12px;
  text-align: center;
  color: #868e96;
  font-size: 13px;
}

.searchable-count {
  padding: 6px 12px;
  font-size: 11px;
  color: #868e96;
  background: #f8f9fa;
  border-bottom: 1px solid #f1f3f5;
}

/* Calendar Panel */
.calendar-panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-nav-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #495057;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.cal-nav-btn:hover {
  background: #f8f9fa;
  border-color: #4a90d9;
}

.cal-nav-title {
  font-size: 15px;
  font-weight: 600;
  color: #212529;
  min-width: 100px;
  text-align: center;
}

.cal-nav-today {
  padding: 4px 12px;
  border: 1px solid #4a90d9;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: #4a90d9;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  margin-left: 4px;
}

.cal-nav-today:hover {
  background: #4a90d9;
  color: #fff;
}

/* Schedule Table */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 12px;
}

.schedule-table thead th {
  background: #f8f9fa;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #495057;
  border-bottom: 2px solid #dee2e6;
  white-space: nowrap;
}

.schedule-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f3f5;
  color: #212529;
  vertical-align: middle;
}

.schedule-table tbody tr:hover {
  background: #f8f9fa;
}

.schedule-table .date-cell {
  white-space: nowrap;
  font-weight: 500;
  min-width: 100px;
}

/* Weekend row */
.schedule-table .row-weekend {
  background: #fff5f5;
}

.schedule-table .row-weekend td {
  color: #dc3545;
}

.schedule-table .row-weekend:hover {
  background: #fee;
}

/* Holiday row */
.schedule-table .row-holiday {
  background: #fff5f5;
}

.schedule-table .row-holiday td {
  color: #dc3545;
}

.schedule-table .row-holiday:hover {
  background: #fee;
}

/* Today row */
.schedule-table .row-today {
  background: #e8f0fe;
}

.schedule-table .row-today:hover {
  background: #d4e4fc;
}

.today-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 10px;
  background: #4a90d9;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  margin-left: 6px;
  vertical-align: middle;
}

/* Holiday name */
.holiday-name {
  font-weight: 600;
  color: #dc3545;
}

/* No class */
.no-class {
  text-align: center;
  color: #dc3545;
  font-style: italic;
  font-size: 12px;
}

/* Day order badge */
.day-order {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  background: #e9ecef;
  color: #495057;
}

/* CSM cell */
.csm-cell {
  font-weight: 500;
}

.csm-cell .csm-order {
  font-size: 11px;
  color: #868e96;
  margin-left: 4px;
}

.calendar-empty {
  text-align: center;
  padding: 40px 20px;
  color: #868e96;
  font-size: 14px;
}

@media (max-width: 768px) {
  .filter-row {
    flex-direction: column;
  }

  .filter-field {
    min-width: 100%;
  }

  .schedule-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .learning-pace-table {
    font-size: 12px;
  }

  .learning-pace-table thead th,
  .learning-pace-table tbody td {
    padding: 8px 6px;
  }
}
