/* ============================================================================
   V74 — Giao diện Thêm/Sửa/Xóa nội dung trực tiếp trên danh mục ở "Kho bài
   kiểm tra" (mỗi nhóm Kiến thức chung/SOW/SOW_Bầu/SOW_Đẻ/Thịt(FAT)).
   ============================================================================ */

.test-bank-catalog-grid-v74 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  align-items: start;
}

.test-bank-catalog-item-v74 {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.test-bank-catalog-item-actions-v74 {
  display: flex;
  gap: 12px;
  padding: 0 4px;
}

.test-bank-catalog-item-actions-v74 .link-btn-v27 {
  font-size: 12px;
}

.test-bank-catalog-edit-form-v74,
.test-bank-catalog-add-form-v74 {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 12px;
  background: #fafbfa;
  border: 1px solid #eef1ef;
  border-radius: 10px;
}

.test-bank-catalog-edit-form-v74 label,
.test-bank-catalog-add-form-v74 label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #33424c;
}

.test-bank-catalog-edit-form-v74 input,
.test-bank-catalog-add-form-v74 input {
  padding: 7px 9px;
  border: 1px solid #d8dee3;
  border-radius: 8px;
  font: inherit;
}

.test-bank-catalog-edit-form-v74 input:disabled {
  background: #edf4f1;
  color: #087555;
  font-weight: 700;
}

.test-bank-catalog-edit-actions-v74,
.test-bank-catalog-add-actions-v74 {
  display: flex;
  gap: 8px;
}
.test-bank-catalog-edit-actions-v74 button,
.test-bank-catalog-add-actions-v74 button {
  padding: 6px 12px;
  font-size: 12px;
}

/* Khối "+ Thêm nội dung" của mỗi nhóm luôn hiện ở cuối lưới, chiếm cả dòng
   để biểu mẫu thêm mới không bị bó hẹp vào đúng 1 ô lưới như các thẻ khác. */
.test-bank-catalog-add-v74 {
  grid-column: 1 / -1;
}
.test-bank-catalog-add-v74 > button {
  padding: 8px 14px;
  font-size: 13px;
}
.test-bank-catalog-add-form-v74 {
  max-width: 420px;
}

@media (max-width: 480px) {
  .test-bank-catalog-grid-v74 { grid-template-columns: 1fr; }
}
