.schedule-calendar-shell {
  padding: 1rem;
}

.schedule-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.schedule-calendar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.schedule-calendar-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-left: 4px;
}

.schedule-calendar-filters {
  display: flex;
  align-items: center;
  gap: 10px;
}

.schedule-calendar-filters .form-select {
  min-width: 220px;
}

.schedule-calendar-weekdays,
.schedule-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.schedule-calendar-weekdays {
  margin-bottom: 10px;
}

.schedule-weekday {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
}

.schedule-day {
  min-height: 150px;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.schedule-day.is-outside {
  background: #f8fafc;
  opacity: 0.72;
}

.schedule-day.is-today {
  border-color: rgba(13, 110, 253, 0.55);
  box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.12), 0 12px 28px rgba(13, 110, 253, 0.08);
}

.schedule-day.is-drag-over {
  border-color: var(--brand-orange);
  background: #fff8ec;
  box-shadow: 0 0 0 1px rgba(241, 140, 7, 0.16), 0 14px 30px rgba(241, 140, 7, 0.1);
}

.schedule-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.schedule-day-number,
.schedule-day-add {
  border: 0;
  background: transparent;
  color: #0f172a;
}

.schedule-day-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-weight: 800;
}

.schedule-day.is-today .schedule-day-number {
  background: var(--brand-blue);
  color: #fff;
}

.schedule-day-add {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #64748b;
}

.schedule-day-add:hover,
.schedule-day-number:hover {
  background: var(--brand-blue-soft);
}

.schedule-day-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}

.schedule-team-preview {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
}

.schedule-team-preview-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.schedule-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  border: 1px solid var(--team-chip-border, rgba(13, 110, 253, 0.18));
  border-left: 6px solid var(--team-chip-accent, var(--brand-blue));
  background: var(--team-chip-bg, #eef5ff);
  border-radius: 12px;
  padding: 8px 10px;
  text-align: left;
  color: #0f172a;
  cursor: grab;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.schedule-chip:hover {
  transform: translateY(-1px);
  background: var(--team-chip-bg-hover, #e3efff);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.schedule-chip:active {
  cursor: grabbing;
}

.schedule-chip.is-dragging {
  opacity: 0.5;
}

.schedule-chip.is-inactive {
  opacity: 0.62;
  border-left-color: #94a3b8;
  background: #f1f5f9;
}

.schedule-chip-team {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--team-chip-accent, #0a3d8f);
  opacity: 0.92;
}

.schedule-chip-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #475569;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  padding: 1px 7px;
}

.schedule-chip-badge.is-service {
  color: #0f766e;
  background: rgba(236, 253, 245, 0.95);
  border-color: rgba(15, 118, 110, 0.22);
}

.schedule-chip-badge.is-reserve {
  color: #6d28d9;
  background: rgba(245, 243, 255, 0.98);
  border-color: rgba(109, 40, 217, 0.2);
}

.schedule-chip.is-service {
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.08);
}

.schedule-chip.is-service:hover {
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.14), 0 10px 18px rgba(15, 23, 42, 0.08);
}

.schedule-chip.is-reserve {
  border-style: dashed;
  border-left-style: solid;
  box-shadow: inset 0 0 0 1px rgba(109, 40, 217, 0.08);
}

.schedule-chip.is-reserve:hover {
  box-shadow: inset 0 0 0 1px rgba(109, 40, 217, 0.14), 0 10px 18px rgba(15, 23, 42, 0.08);
}

.schedule-chip-title {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
}

.schedule-chip-more {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  padding: 2px 4px;
}

@media (max-width: 1199px) {
  .schedule-calendar-weekdays,
  .schedule-calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-weekday {
    display: none;
  }
}

@media (max-width: 767px) {
  .schedule-calendar-toolbar {
    align-items: stretch;
  }

  .schedule-calendar-nav,
  .schedule-calendar-filters {
    width: 100%;
  }

  .schedule-calendar-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .schedule-calendar-filters .form-select {
    min-width: 0;
  }

  .schedule-calendar-grid {
    grid-template-columns: 1fr;
  }
}
