.rq-page .content-header {
  padding: 20px 8px 8px;
}
.rq-page .content-header h1 {
  font-size: 1.5rem;
  font-weight: 650;
  margin: 0;
}
.rq-card {
  border: 1px solid #dce3eb;
  border-radius: 10px;
  box-shadow: 0 5px 22px #25324a10;
  overflow: hidden;
}
.rq-card .card-header {
  background: #007bff;
  border-bottom: 0;
  padding: 17px 22px;
}
.rq-card .card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}
.rq-card .card-body {
  padding: 22px;
}
.rq-form {
  border: 1px solid #dce3eb;
  border-radius: 9px;
  overflow: hidden;
}
.rq-row {
  display: grid;
  grid-template-columns: minmax(170px, 24%) minmax(0, 1fr);
  border-bottom: 1px solid #dce3eb;
  min-height: 57px;
}
.rq-row:last-of-type {
  border-bottom: 0;
}
.rq-row > label,
.rq-label {
  margin: 0;
  padding: 13px 15px;
  font-weight: 600;
  background: #f7f9fc;
  border-right: 1px solid #dce3eb;
  align-content: center;
}
.rq-row > div {
  padding: 9px 13px;
  min-width: 0;
  align-content: center;
}
.rq-row small {
  color: #69788d;
  margin-left: 9px;
}
.rq-row .rq-short {
  max-width: 210px;
  display: inline-block;
}
.rq-required {
  color: #b42318;
  margin-left: 2px;
}
.rq-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
}
.rq-options label {
  font-weight: 400;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.rq-options input[type="radio"] {
  accent-color: #2177d2;
  margin-right: 4px;
  cursor: pointer;
}
.rq-date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.rq-date-grid label {
  font-weight: 500;
  margin: 0;
}
.rq-date-grid .form-control {
  margin-top: 5px;
}
.rq-cover-bulk {
  position: relative;
}
.rq-cover-bulk-input {
  cursor: pointer;
  height: 100%;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 2;
}
.rq-cover-bulk-label {
  align-items: center;
  background: linear-gradient(135deg, #f8fbff, #fff);
  border: 1px dashed #adc2d9;
  border-radius: 9px;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  gap: 12px;
  margin: 0;
  min-height: 76px;
  padding: 12px 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
  width: 100%;
}
.rq-cover-bulk-input:hover + .rq-cover-bulk-label,
.rq-cover-bulk-input:focus + .rq-cover-bulk-label {
  background: #f3f8ff;
  border-color: #2177d2;
}
.rq-cover-icon {
  align-items: center;
  background: #e8f2fd;
  border: 1px solid #cee1f7;
  border-radius: 9px;
  color: #2177d2;
  display: inline-flex;
  flex: 0 0 40px;
  font-size: 1rem;
  height: 40px;
  justify-content: center;
  width: 40px;
}
.rq-cover-copy {
  display: block;
  flex: 1;
  min-width: 0;
}
.rq-cover-title {
  color: #25324a;
  display: block;
  font-size: 0.9rem;
  font-weight: 650;
  margin-bottom: 3px;
}
.rq-cover-name {
  color: #6b7b90;
  display: block;
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rq-cover-action {
  background: #fff;
  border: 1px solid #c8d5e3;
  border-radius: 6px;
  color: #285d96;
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 10px;
}
.rq-cover-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin-top: 12px;
}
.rq-cover-item {
  background: #fff;
  border: 1px solid #dce3eb;
  border-radius: 9px;
  min-width: 0;
  padding: 8px;
}
.rq-cover-preview {
  overflow: hidden;
  position: relative;
}
.rq-cover-img {
  border-radius: 6px;
  display: block;
  height: 110px;
  object-fit: cover;
  width: 100%;
}
.rq-cover-badge {
  background: rgb(37 50 74 / 78%);
  border-radius: 4px;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  left: 7px;
  padding: 3px 7px;
  position: absolute;
  top: 7px;
}
.rq-cover-item .rq-cover-name {
  margin-top: 6px;
}
.rq-cover-remove {
  align-items: center;
  background: #fff;
  border: 1px solid #d6dee8;
  border-radius: 50%;
  color: #62738a;
  cursor: pointer;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 7px;
  top: 7px;
  width: 26px;
}
.rq-cover-remove:hover {
  background: #fdecea;
  border-color: #f4b5ae;
  color: #b42318;
}
.rq-cover-empty-state {
  align-items: center;
  background: #f7f9fc;
  border: 1px dashed #dce3eb;
  border-radius: 9px;
  color: #7a8ba0;
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  gap: 5px;
  justify-content: center;
  margin-top: 12px;
  min-height: 76px;
}
.rq-cover-empty-state i {
  color: #9aacbf;
  font-size: 1.3rem;
}
.rq-cover-hint {
  color: #6b7b90;
  font-size: 0.76rem;
  line-height: 1.4;
  margin-top: 8px;
}
.rq-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
}
.rq-actions .btn {
  min-width: 105px;
}
.rq-row .error {
  color: #b42318;
  font-size: 0.85rem;
  display: block;
  margin: 5px 0 0;
}
/* ================================
   Research Questions Table
================================ */
.rq-questions {
  width: 100%;
  font-size: 16px;
  color: #111;
}
.rq-questions-heading {
  background: #fff;
  border: 1px solid #dce3eb;
  border-radius: 9px 9px 0 0;
  font-size: 1.05rem;
  font-weight: 650;
  margin: 22px 0 0;
  padding: 13px 15px;
}
.rq-questions-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
  margin-top: 10px;
}
.rq-entries-control,
.rq-search-control {
  display: flex;
  align-items: center;
  gap: 6px;
}
.rq-entries-control label,
.rq-entries-control span,
.rq-search-control label {
  font-weight: 600;
}
.rq-entries-select {
  width: 67px;
  height: 40px;
  padding: 4px 8px;
  border: 1px solid #aaa;
  border-radius: 4px;
  background: #fff;
  font-size: 16px;
  outline: none;
}
.rq-search-input {
  width: 238px;
  height: 44px;
  padding: 6px 10px;
  border: 1px solid #aaa;
  border-radius: 3px;
  background: #fff;
  font-size: 16px;
  outline: none;
}
.rq-search-input:focus,
.rq-entries-select:focus {
  border-color: #666;
}
.rq-questions-scroll {
  width: 100%;
  overflow-x: auto;
}
.rq-questions-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0;
}
.rq-questions-table thead {
  border-top: 1px solid #d8dde2;
  border-bottom: 1px solid #222;
}
.rq-questions-table thead th {
  padding: 18px 12px;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  background: #fff;
}
.rq-questions-table tbody tr:nth-child(odd) {
  background: #f1f1f1;
}
.rq-questions-table tbody tr:nth-child(even) {
  background: #fff;
}
.rq-questions-table tbody tr.rq-row-selected {
  background: #eaf4ff;
}
.rq-questions-table tbody tr.rq-row-selected td {
  font-weight: 600;
}
.rq-questions-table tbody td {
  padding: 12px;
  border-bottom: 1px solid #d3d8dd;
  font-size: 17px;
  line-height: 1.45;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.rq-serial-column {
  width: 85px;
}
.rq-check-column {
  width: 100px;
}
.rq-questions-table tbody td:first-child {
  width: 85px;
}
.rq-checkbox-cell {
  text-align: left;
}
.rq-checkbox-cell input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.rq-loading-cell {
  text-align: center;
  font-style: italic;
  color: #69788d;
  padding: 22px 12px !important;
}
.rq-questions-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid #222;
}
.rq-table-info {
  padding: 16px 0;
  font-size: 16px;
}
.rq-pagination {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rq-page-btn {
  min-height: 48px;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  font-size: 16px;
  color: #444;
  cursor: pointer;
}
.rq-page-btn:hover:enabled {
  background: #f0f0f0;
}
.rq-page-btn:disabled {
  color: #b6bcc4;
  cursor: default;
}
.rq-page-btn.active {
  border: 1px solid #bbb;
  background: #f5f5f5;
  cursor: default;
}
@media (max-width: 768px) {
  .rq-questions {
    font-size: 14px;
  }
  .rq-questions-controls {
    align-items: flex-start;
    flex-direction: column;
  }
  .rq-search-control {
    width: 100%;
  }
  .rq-search-input {
    width: 100%;
    flex: 1;
  }
  .rq-questions-table {
    min-width: 700px;
  }
  .rq-questions-table thead th,
  .rq-questions-table tbody td {
    font-size: 15px;
  }
  .rq-questions-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .rq-pagination {
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .rq-entries-control,
  .rq-search-control {
    font-size: 14px;
  }
  .rq-search-control {
    flex-direction: column;
    align-items: flex-start;
  }
  .rq-questions-table {
    min-width: 650px;
  }
  .rq-questions-table thead th,
  .rq-questions-table tbody td {
    padding: 10px 8px;
    font-size: 14px;
  }
  .rq-page-btn {
    padding: 8px 10px;
    font-size: 14px;
  }
  .rq-table-info {
    font-size: 14px;
  }
}
@media (max-width: 700px) {
  .rq-card .card-body {
    padding: 12px;
  }
  .rq-row {
    grid-template-columns: 1fr;
  }
  .rq-row > label,
  .rq-label {
    border-right: 0;
    border-bottom: 1px solid #dce3eb;
    padding: 8px 12px;
  }
  .rq-date-grid {
    grid-template-columns: 1fr;
  }
  .rq-row small {
    display: block;
    margin: 4px 0 0;
  }
}
