/* === Контейнер календаря === */
#msc-calendar {
  max-width: 100%;
  margin: 20px auto;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

/* === FullCalendar базовые правки === */
.fc {
  font-family: system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-size: 14px;
}
.fc .fc-toolbar-title {
  font-size: 1.2rem;
  font-weight: 600;
}
.fc-button {
  border-radius: 6px !important;
  padding: 4px 10px !important;
  font-size: 13px !important;
}
.fc-daygrid-day {
  cursor: pointer;
}
.fc-daygrid-day:hover {
  background: #f8f9fa;
}

/* === Модальное окно (общее) === */
.msc-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 9999;
}
.msc-modal-content {
  background: #fff;
  margin: 5% auto;
  padding: 20px;
  border-radius: 12px;
  max-width: 620px;
  width: 95%;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  max-height: 90vh;
  overflow-y: auto;
}
.msc-close {
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
}
.msc-close:hover {
  color: #000;
}

/* === Форма записи === */
#msc-form {
  margin-top: 10px;
}
#msc-form label {
  display: block;
  margin: 10px 0 5px;
  font-size: 14px;
  font-weight: 500;
}
#msc-form input,
#msc-form select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

/* === Список процедур === */
#msc-procs {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 8px;
  max-height: 200px;
  overflow-y: auto;
}
.msc-proc-group-title {
  font-weight: 700;
  margin: 10px 0 6px;
  padding-top: 6px;
  border-top: 1px solid #eee;
}
.msc-proc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.4;
}
.msc-proc-item input {
  margin-right: 6px;
}
.msc-proc-item small {
  color: #555;
  font-size: 12px;
}

/* === Кнопки === */
.msc-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.msc-actions button {
  flex: 1;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s ease;
}
.msc-actions button[type="submit"] {
  background: #1a73e8;
  color: #fff;
}
.msc-actions button[type="submit"]:hover {
  background: #1557b0;
}
#msc-delete {
  background: #d93025;
  color: #fff;
}
#msc-delete:hover {
  background: #b82a1f;
}

/* === Кнопка отчёта === */
#msc-report-btn {
  display: block;
  margin: 15px auto;
  padding: 10px 16px;
  font-size: 14px;
  background: #34a853;
  color: #fff;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background .2s;
}
#msc-report-btn:hover {
  background: #2a8442;
}

/* === Таблица отчёта === */
.msc-report-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
}
.msc-report-table th,
.msc-report-table td {
  border: 1px solid #ddd;
  padding: 6px 8px;
  text-align: left;
}
.msc-report-table th {
  background: #f5f5f5;
  font-weight: 600;
}
.msc-report-total {
  margin-top: 12px;
  font-weight: 700;
  font-size: 15px;
  text-align: right;
}

/* === Заголовки отчёта для разделов (Nina, Mariana, Anna, Общая сумма) === */
#msc-report-content h4 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #1a73e8;
  border-bottom: 2px solid #1a73e8;
  padding-bottom: 4px;
}

/* === Адаптив === */
@media (max-width: 768px) {
  .fc .fc-toolbar-title { font-size: 1rem; }
  .msc-modal-content { margin: 10% auto; width: 96%; padding: 15px; }
}
@media (max-width: 480px) {
  .fc-button { font-size: 12px !important; padding: 3px 8px !important; }
  #msc-form input, #msc-form select { font-size: 13px; padding: 8px; }
  .msc-proc-item { font-size: 12px; }
  .msc-proc-item small { font-size: 11px; }
}
