/* Календарь v502 (22.10.2026): вопрос «к чему применить» с причинами,
   блок «Печать и показ», пересечения в предпросмотре переноса. */

/* «К чему применить?» — у варианта подпись; недоступный приглушён и
   объясняет почему, а не отказывает после нажатия. */
.calendar-scope-options .calendar-scope-option {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  min-height: 52px; padding: 9px 16px;
}
.calendar-scope-option small { color: var(--text-soft); font-size: 12px; font-weight: 500; line-height: 1.35; }
.calendar-scope-options .calendar-scope-option.is-blocked {
  cursor: default; opacity: .62; background: transparent; border-style: dashed;
}
.calendar-scope-options .calendar-scope-option.is-blocked:hover { background: transparent; }
.calendar-scope-option.is-blocked b { color: var(--muted); }

/* «Печать и показ» — свёрнут, если всё как обычно. */
.calendar-print-section {
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-card-2); padding: 0 12px;
}
.calendar-print-section > summary {
  display: flex; align-items: baseline; gap: 10px; padding: 11px 0; cursor: pointer; list-style: none;
}
.calendar-print-section > summary::-webkit-details-marker { display: none; }
.calendar-print-section > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .15s; }
.calendar-print-section[open] > summary::after { transform: rotate(180deg); }
.calendar-print-section > summary b { font-size: 13px; }
.calendar-print-section > summary small { color: var(--text-soft); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.calendar-print-section[open] { padding-bottom: 10px; }
.calendar-print-section > label { margin-top: 6px; }

/* Пересечения в предпросмотре «Изменить расписание». */
.calendar-reschedule-warning ul { margin: 6px 0 4px; padding-left: 18px; }
.calendar-reschedule-warning li { margin: 2px 0; font-weight: 500; }
.calendar-reschedule-warning small { display: block; margin-top: 4px; font-weight: 500; }

[data-theme=dark] .calendar-reschedule-warning { background: rgba(240, 180, 60, .14); color: #f0c46a; }
