/* rating2025_all_forms.css */

#rating2025-forms .form-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}
#rating2025-forms .accordion {
    width: 100%;
    text-align: left;
    padding: 10px;
    background: #4682B4;
    border: none;
    cursor: pointer;
    font-weight: bold;
}
#rating2025-forms .panel {
    padding: 10px;
    background: #fff;
}

/* Затемнение фона */
#form-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
}

/* Контент модалки */
#form-modal .modal-content {
  background: #fff;
  width: 80%;
  max-width: 800px;
  margin: 50px auto;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* Кнопка закрытия */
#form-modal .close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}
#form-modal .close-modal:hover {
  color: #000;
}

/* Кнопки в аккордеоне */
.panel .actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

.panel .actions button {
  padding: 5px 10px;
  cursor: pointer;
}
#rating2025-forms .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  background: #f9fafc;
  padding: 15px 20px;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

#rating2025-forms .filters label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

#rating2025-forms select {
  margin-top: 5px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 14px;
  transition: all 0.2s ease;
}

#rating2025-forms select:focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}
.filters {
  display: flex;
  flex-wrap: wrap; /* Разрешаем перенос на следующую строку */
  gap: 15px; /* Отступы между элементами */
  align-items: flex-end;
  margin-bottom: 15px;
}

.filters label {
  display: flex;
  flex-direction: column;
  min-width: 250px; /* чтобы не сжималось слишком сильно */
}

/* Первый ряд — год и категория */
.filters label:nth-child(1),
.filters label:nth-child(2) {
  flex: 1 1 45%; /* занимают первую строку */
}

/* Второй ряд — организация */
.filters label:nth-child(3) {
  flex: 1 1 100%; /* на отдельной строке */
}
