/* Faza 4.3 — widok dzienny harmonogramu (React) */

#scheduler-content.scheduler-content--react {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#scheduler-content.scheduler-content--react #scheduler-legacy-grid {
  display: none;
}

#scheduler-react-root.scheduler-react-active {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.scheduler-react-day {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.scheduler-react-grid-wrapper {
  height: 100%;
}

/* Czytelny wiersz: godzina · czas · km · miasto */
.sched-react-task-line {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  line-height: 1.25;
  font-size: calc(0.72rem * var(--sched-font-scale, var(--zoom, 1)));
}

.sched-react-task-line__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.sched-react-task-line__marks {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

.sched-react-permit--bad {
  color: #ef4444;
}

.sched-react-permit--pending {
  color: #f59e0b;
}

.sched-task-block.sched-react-task .sched-task-modified-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.sched-task-block.sched-react-task .sched-task-street,
.sched-task-block.sched-react-task .sched-task-multiday {
  font-size: calc(0.65rem * var(--sched-font-scale, var(--zoom, 1)));
  opacity: 0.85;
}

.scheduler-react-week {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.scheduler-react-week-wrapper {
  height: 100%;
}

.sched-week-task.sched-react-week-task {
  border-left-width: 3px;
  border-left-style: solid;
}

.sched-react-week-line .wt-type {
  font-size: 0.65em;
  opacity: 0.85;
  margin-right: 0.15rem;
}

.sched-week-mod-icon-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

button.sched-week-day-label {
  border: none;
  background: inherit;
  font: inherit;
  cursor: pointer;
  text-align: inherit;
  width: 100%;
}

#scheduler-month-view.scheduler-month-view--react #scheduler-month-legacy {
  display: none;
}

#scheduler-month-react-root.scheduler-react-active {
  display: block;
  width: 100%;
  min-height: 0;
}

.scheduler-react-month .sched-month-container {
  width: 100%;
}
