/* Стили для интерфейса оценки актов казначеем */

.act-rating-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.act-rating-input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.1);
}

.act-rating-input::placeholder {
  color: #9ca3af;
}

.save-act-ratings-btn {
  padding: 8px 16px;
  background: #10b981;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.save-act-ratings-btn:hover {
  background: #059669;
}

.save-act-ratings-btn:active {
  background: #047857;
}

.act-ratings-status {
  display: inline-block;
  align-self: center;
  font-size: 12px;
  color: #666;
  margin-left: 8px;
}

/* Мобильная оптимизация для казначея */
@media (max-width: 768px) {
  /* Расширить ширину полей ввода на мобильных */
  .act-rating-input {
    padding: 10px;
    font-size: 14px;
  }

  /* Улучшить видимость кнопки сохранения */
  .save-act-ratings-btn {
    padding: 10px 16px;
    font-size: 13px;
    width: 100%;
    margin-top: 8px;
  }

  /* Сетка 2x3 вместо 5 в одну строку */
  [style*="grid-template-columns: repeat(auto-fit"]  {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Меньше отступов в секции оценки */
  [style*="background: #f9f9f9"] {
    padding: 8px !important;
  }
}

@media (max-width: 600px) {
  /* Полная ширина контейнера */
  [style*="background: #f9f9f9"] {
    margin: 8px -12px 0 -12px;
    border-radius: 0;
    padding: 12px;
  }

  /* Сетка 1 колонна на очень узких экранах */
  [style*="grid-template-columns: repeat(auto-fit"] {
    grid-template-columns: 1fr !important;
  }

  /* Кнопка во всю ширину */
  .save-act-ratings-btn {
    font-size: 14px;
  }

  /* Подпись к полю */
  label {
    font-size: 11px !important;
  }
}
