/* «Мій графік» / «Графік працівників». Утверждён 03.12.2026 (docs/design/schedule-*). */

.sched-screen { max-width: 960px; margin: 0 auto; }
.sched-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sched-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.select-who { width: auto; min-height: 44px; }
.sched-other { flex-basis: 100%; }

.sched { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sched-day {
  display: grid;
  grid-template-columns: 180px 140px 1fr;
  grid-template-areas: "date sw times" "date others others";
  align-items: center;
  gap: 4px 16px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: var(--r-card);
}
.sched-day.is-on { border-left-color: var(--blue); }
.sched-day.is-today { box-shadow: 0 0 0 1px var(--blue); }
.sched-day.is-past { opacity: 0.6; }
.sched-day.is-busy { opacity: 0.7; pointer-events: none; }
.sched-date { grid-area: date; display: flex; flex-direction: column; }
.sched-wd { font-weight: 600; font-size: 18px; line-height: 26px; }
.sched-dm { color: var(--muted); font-size: 14px; }
.sched-day .switch { grid-area: sw; }
.sched-times { grid-area: times; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sched-times .input { width: 112px; min-height: 44px; }
.sched-day:not(.is-on) .sched-times { visibility: hidden; }
.sched-sep { color: var(--muted); }
.sched-extra { font-size: 13px; color: var(--muted); flex-basis: 100%; }
.sched-others { grid-area: others; font-size: 14px; color: var(--muted); }
.sched-others.is-empty { color: var(--warn-ink); }

.remind { margin-top: 32px; display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.tg-preview { padding: 12px; border-radius: 12px; background: #eef4f9; border: 1px solid rgb(37 133 181 / 0.18); }
.tg-text { margin-bottom: 10px; font-size: 14px; }
.tg-btn { display: block; padding: 6px 8px; border-radius: 8px; background: rgb(37 133 181 / 0.14); color: var(--date); font-size: 14px; font-weight: 500; text-align: center; }

@media (max-width: 767px) {
  .screen-head .seg { width: 100%; }
  .screen-head .seg-item { flex: 1; }
  .sched-intro { flex-direction: column; align-items: stretch; }
  .sched-tools { flex-direction: column; }
  .sched-day {
    grid-template-columns: 1fr auto;
    grid-template-areas: "date sw" "times times" "others others";
    padding: 12px 16px;
  }
  .sched-day:not(.is-on) .sched-times { display: none; }
  .sched-times .input { flex: 1; width: auto; }
}
