/* ===== SCORING STYLES ===== */
.scoring-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 0.5rem;
}

.scoring-header-panel {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
}

.scoring-header-panel .panel-title {
  display: block;
  border-bottom: none;
  padding-bottom: 0;
}

.refresh-btn-inline {
  background-color: #861557;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.refresh-btn-inline:hover {
  background-color: #861557;
}

.scoring-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scoring-setup-panel {
  background-color: #fff;
  border-radius: 8px;
}

.scoring-setup-content {
  display: block;
}

.scoring-main-content {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 1.25rem;
  row-gap: 1.25rem;
  align-items: start;
  padding: 0 0.5rem;
}

.scoring-main-content > :first-child {
  grid-column: 1 / 5;
}

.scoring-main-content > :last-child {
  grid-column: 5 / 13;
}

.category-weight-section h4,
.questions-section h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.category-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.category-table th {
  padding: 8px 12px;
  text-align: left;
  border: 1px solid #ddd;
  font-size: 0.9rem;
  font-weight: 600;
}

.category-table td {
  padding: 8px 12px;
  border: 1px solid #ddd;
  vertical-align: middle;
}

.category-table input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #8c8c8c;
  border-radius: 5px;
  font-size: 0.9rem;
}

.category-table input:focus {
  border-color: #861557;
  outline: 3px solid #A4507E;
}

.category-table input[type="number"] {
  text-align: right;
}

.total-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.total-label {
  font-size: 0.9rem;
  color: #333;
}

.total-value {
  font-size: 1rem;
  color: #861557;
  min-width: 60px;
  text-align: right;
}

.questions-panel-title h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  color: #000;
}

.questions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 250px;
}

.filter-section label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.filter-section select {
  padding: 6px 8px;
  border: 1px solid #8c8c8c;
  border-radius: 5px;
  font-size: 0.9rem;
  min-width: 200px;
}

.filter-section select:focus {
  border-color: #861557;
  outline: 3px solid #A4507E;
}

.questions-list {
  max-height: 600px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.question-item {
  border-bottom: none;
  background-color: #fff;
  margin: 0 0 2px 0;
}

.question-item:last-child {
  border-bottom: none;
}

.question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  background-color: #F9F9F9;
  border: 1px solid #8C8C8C;
  border-radius: 3px;
}

.question-header:hover {
  background-color: #f8f9fa;
}

.question-header.expanded {
  background-color: #F9F9F9;
  border: 1px solid #8C8C8C;
}

.question-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.question-number {
  font-weight: 700;
  color: #000000;
  min-width: 40px;
}

.question-text {
  flex: 1;
  font-size: 0.9rem;
  color: #333;
}

.question-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.question-category {
  font-size: 0.9rem;
  margin-left: 8px;
  margin-right: 5rem;
}



.question-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.expand-btn {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.expand-btn:hover {
  background-color: #f0f0f0;
}

.expand-btn.expanded {
  transform: rotate(180deg);
}

.remove-btn {
  background-color: transparent;
  color: #871553;
  border: none;
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.remove-btn:hover {
  color: #dc3545;
}

.question-details {
  padding: 20px 16px;
  border-top: 1px solid #eee;
  background-color: #fafbfc;
  display: none;
}

.question-details.expanded {
  display: block;
}

.question-form {
  display: grid;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.form-group select,
.form-group input {
  padding: 8px 12px;
  border: 1px solid #8c8c8c;
  border-radius: 5px;
  font-size: 0.9rem;
}

.form-group select:focus,
.form-group input:focus {
  border-color: #861557;
  outline: 3px solid #A4507E;
}

.scoring-section {
  margin-top: 1rem;
}

.scoring-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.choices-container {
  display: grid;
  gap: 0.75rem;
}

.choice-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #8c8c8c;
  border-radius: 5px;
  font-size: 0.85rem;
}

.choice-input:focus {
  border-color: #861557;
  outline: 3px solid #A4507E;
}

.choice-input.error {
  border-color: #dc3545 !important;
}

.choice-input.error:focus {
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.dealbreaker-select {
  width: 100%;
}

.points-input {
  width: 100%;
  text-align: center;
}

.remove-choice-btn {
  background-color: transparent;
  color: #871553;
  border: none;
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.remove-choice-btn:hover {
  color: #dc3545;
}

.ranges-container {
  display: grid;
  gap: 0.75rem;
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 8px 12px;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.quartile-reference {
  background-color: #f0f8ff;
  padding: 12px;
  border-radius: 4px;
  border-left: 4px solid #861557;
  margin-bottom: 1rem;
}

.quartile-reference h5 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
}

.quartile-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  font-size: 0.8rem;
}

.quartile-item {
  text-align: center;
}

.quartile-label {
  font-weight: 600;
  color: #666;
  margin-bottom: 2px;
}

.add-choice-btn,
.add-range-btn {
  background-color: #f8f9fa;
  border: 1px solid #861557;
  color: #861557;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.add-choice-btn:hover,
.add-range-btn:hover {
  background-color: #e3f2fd;
}

.question-actions-bottom {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

.cancel-btn {
  background-color: #fff;
  border: 1px solid #ccc;
  color: #666;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

.cancel-btn:hover {
  background-color: #f5f5f5;
}

.save-question-btn {
  background-color: #861557;
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

.save-question-btn:hover {
  background-color: #1976d2;
}

.scoring-headers {
  display: grid;
  grid-template-columns: 2fr 120px 100px 80px 40px;
  gap: 0.75rem;
  padding: 8px 12px;
  background-color: #f5f5f5;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.choice-headers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 0.5fr;
  gap: 0.75rem;
  padding: 8px 12px;
  background-color: transparent;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #ddd;
}

.choice-type-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 0.5fr;
  gap: 0.75rem;
  padding: 8px 12px;
  background-color: transparent;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}

.scoring-headers {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 0.5fr;
  gap: 0.75rem;
  padding: 8px 12px;
  background-color: transparent;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #ddd;
}

.choice-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 0.5fr;
  gap: 0.75rem;
  padding: 8px 12px;
  align-items: center;
}

.choice-select {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.choice-select:disabled {
  background-color: #f5f5f5 !important;
  color: #999 !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
}

.choice-input:disabled {
  background-color: #f5f5f5 !important;
  color: #999 !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
}

.range-input:disabled {
  background-color: #f5f5f5 !important;
  color: #999 !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
}

.ranges-headers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 0.5fr;
  gap: 0.75rem;
  padding: 8px 12px;
  background-color: transparent;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #ddd;
}

.quartile-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 0.5fr;
  gap: 0.75rem;
  padding: 8px 12px;
  background-color: transparent;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}

.refresh-table-btn {
  background-color: #861557;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-end;
}

.refresh-table-btn:hover {
  background-color: #861557;
}

.tagging-panel {
  background-color:inherit;
  border-radius: 8px;
  padding: 0 !important;
}

.scoring-category-panel {
  background-color: #fff;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.scoring-panel-title h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  color: #000;
}

.scoring-description {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.4;
}

.scoring-table-container {
  margin-bottom: 1rem;
}

.scoring-category-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}

.scoring-category-table th {
  padding: 8px 12px 0 0;
  font-weight: 600;
  text-align: left;
  font-size: 0.9rem;
  border: none;
}

.scoring-category-table td {
  padding: 8px 12px 0 0;
  vertical-align: middle;
  border: none;
}

.scoring-number-col {
  width: 10%;
  text-align: center;
}

.scoring-category-col {
  width: 60%;
}

.scoring-weight-col {
  width: 30%;
}

.scoring-category-table .scoring-number-col {
  text-align: center;
  font-weight: 600;
}

.scoring-category-input {
  width: 100%;
  padding: 4px 8px;
  border: 1px solid #8c8c8c;
  border-radius: 5px;
  font-size: 0.9rem;
  background-color: white;
}

.scoring-category-input:focus {
  border-color: #861557;
  outline: 3px solid #A4507E;
}

.scoring-weight-input {
  width: 100%;
  padding: 4px 8px;
  border: 1px solid #8c8c8c;
  border-radius: 5px;
  font-size: 0.9rem;
  text-align: center;
}

.scoring-weight-input[readonly] {
  font-weight: 600;
  border-width: 2px;
}

.scoring-total-row {
  font-weight: 600;
}

.scoring-total-label {
  text-align: right;
  font-weight: 600;
  padding-right: 12px;
}

.scoring-total-value {
  text-align: center;
  font-weight: 600;
}

.scoring-category-panel .save-button {
  align-self: flex-end;
}

.tagging-content {
  background-color: inherit;
  border-radius: 6px;
  text-align: center;
}

.weight-error-message {
  color: #fff;
  background: #eb768d;
  font-size: 1.2rem;
  margin: 0 0 8px 0;
  padding: 10px 18px 10px 18px;
  text-align: left;
  border-radius: 8px;
  font-weight: 600;
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: 2.8rem;
}

.category-save-container {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

/* ===== TAGGING QV STYLES ===== */

.taggingqv-panel-section {
    background-color: white;
    border-radius: 5px;
    padding: 16px;    
    min-width: 200px;
    flex: 0 0 200px;        
    display: flex;
    flex-direction: column;
    min-height: 160px;
    margin-bottom: 0;
}

.taggingqv-panel-header {
  font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: normal;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    color: #333;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.taggingqv-form-group {
    margin-bottom: 12px;
    overflow: hidden;
}


.taggingqv-form-group select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #8c8c8c;
    border-radius: 5px;
    font-size: 13px;
    box-sizing: border-box;
    max-width: 100%;
}

.taggingqv-form-group select:focus {
    border-color: #861557;
    outline: 3px solid #A4507E;
}

.taggingqv-form-group select option {
    padding: 6px 8px;
    white-space: normal;
    word-wrap: break-word;
}

.taggingqv-panel-section textarea {
  width: 100%;
  height: 90px;
  padding: 6px 8px;
  border: 1px solid #8c8c8c;
  border-radius: 5px;
  resize: vertical;
  font-family: inherit;
  font-size: 13px;
  box-sizing: border-box;
}

.taggingqv-panel-section textarea:focus {
  border-color: #861557;
  outline: 3px solid #A4507E;
}

.taggingqv-btn {
    padding: 4px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-weight: normal;
    width: auto;
    margin-top: auto;
    margin-bottom: 0;
    display: block;
    align-self: flex-end;
}

.taggingqv-btn-primary {
   background-color: #861557;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.taggingqv-btn-secondary {
  background-color: #fff;
  color: #861557;
  border: 1px solid #861557;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

.taggingqv-btn-secondary:hover {
    background-color: #f8f9fa;
}

.taggingqv-key-responses {
    overflow: visible;
}

.taggingqv-key-responses .taggingqv-panel-header {
    flex-shrink: 0;
}

.taggingqv-key-responses .taggingqv-form-group {
    margin-bottom: 8px;
    flex-shrink: 0;
}

.taggingqv-key-responses .taggingqv-form-group:last-of-type {
    margin-bottom: 8px;
}

.taggingqv-key-responses-scroll {
    max-height: 90px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 12px;
    padding-right: 5px;
}

.taggingqv-key-responses-scroll::-webkit-scrollbar {
    width: 6px;
}

.taggingqv-key-responses-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.taggingqv-key-responses-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.taggingqv-key-responses-scroll::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.taggingqv-key-responses .taggingqv-btn {
    margin-top: auto;
    margin-bottom: 0;
    flex-shrink: 0;
}


/* Select2 specific styles */
.taggingqv-panel-section .select2-container {
    width: 100% !important;
}

.taggingqv-panel-section .select2-selection--single {
    height: 35px !important;
    border: 1px solid #8c8c8c !important;
    border-radius: 5px !important;
}

.taggingqv-panel-section .select2-container--focus .select2-selection--single {
    border-color: #861557 !important;
    outline: 3px solid #A4507E;
}

.taggingqv-panel-section .select2-selection__rendered {
    line-height: 33px !important;
    padding-left: 8px !important;
    font-size: 13px !important;
}

.taggingqv-panel-section .select2-selection__arrow {
    height: 33px !important;
}
/* ============================================ */
/* SCORING REPORT - TAGGING QV SECTION STYLES  */
/* ============================================ */

/* Scoring Report Section Container */
.scoring-report-section {
  margin-top: 2rem;
  padding: 0;
  background: #fff;
  border-radius: 0;
  overflow: visible;
}

/* Scoring Report Header */
.scoring-report-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0;
}

.scoring-report-header h4 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #333;
}

.scoring-report-study-ready-badge {
  background-color: #5cb85c;
  color: white;
  padding: 0.25rem 0.625rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: none;
}

/* Scoring Report Meta Information */
.scoring-report-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0;
  border-bottom: none;
}

.scoring-report-last-updated {
  font-size: 0.813rem;
  color: #666;
}

.scoring-report-show-interested-sites {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.813rem;
  color: #333;
  cursor: pointer;
  user-select: none;
}

.scoring-report-show-interested-sites input[type="checkbox"] {
  cursor: pointer;
  width: 15px;
  height: 15px;
  margin: 0;
}

/* Scoring Report Table Scroll Container */
.scoring-report-section .scoring-report-table-scroll {
  overflow-x: auto !important;
  overflow-y: auto !important;
  max-height: 600px !important;
  border: 1px solid #ddd;
  border-radius: 0 !important;
  background: white;
  position: relative;
  display: block;
}

/* Scoring Report Table */
.scoring-report-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 0.813rem;
  min-width: 1200px;
  overflow: visible;
}

.scoring-report-table thead {
  background-color: #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.scoring-report-table thead th {
  padding: 0.625rem 0.75rem;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #ccc;
  border-right: 1px solid #d0d0d0;
  white-space: nowrap;
  font-size: 0.813rem;
  line-height: 1.3;
  background-color: #e0e0e0;
}

.scoring-report-table thead th:last-child {
  border-right: none;
}

.scoring-report-table thead th:first-child {
  width: 35px;
  text-align: center;
  padding: 0.625rem 0.5rem;
}

.scoring-report-table tbody tr {
  border-bottom: 1px solid #e8e8e8;
  background-color: white;
}

.scoring-report-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.scoring-report-table tbody tr:hover {
  background-color: #f5f5f5;
}

.scoring-report-table tbody td {
  padding: 0.625rem 0.75rem;
  color: #333;
  vertical-align: middle;
  border-right: 1px solid #e8e8e8;
  font-size: 0.813rem;
}

.scoring-report-table tbody td:last-child {
  border-right: none;
}

.scoring-report-table tbody td:first-child {
  text-align: center;
  padding: 0.625rem 0.5rem;
}

/* Scoring Report Checkbox Styling */
.scoring-report-table input[type="checkbox"] {
  cursor: pointer;
  width: 15px;
  height: 15px;
  margin: 0;
}

/* Scoring Report QV Recommendation Badges */
.scoring-report-qv-recommendation {
  display: inline-block;
  padding: 0.313rem 0.625rem;
  border-radius: 3px;
  font-weight: 500;
  font-size: 0.75rem;
  white-space: nowrap;
  text-align: center;
  min-width: 110px;
}

.scoring-report-qv-waiver {
  background-color: #5cb85c;
  color: white;
}

.scoring-report-qv-remote {
  background-color: #f0ad4e;
  color: #333;
}

.scoring-report-qv-onsite {
  background-color: #ff8c42;
  color: white;
}

.scoring-report-qv-not-recommended {
  background-color: #777;
  color: white;
}

/* Scoring Report Score Badges */
.scoring-report-score-badge {
  display: inline-block;
  padding: 0.313rem 0.625rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.813rem;
  min-width: 50px;
  text-align: center;
}

.scoring-report-score-high {
  background-color: #5cb85c;
  color: white;
}

.scoring-report-score-medium {
  background-color: #5cb85c;
  color: white;
}

.scoring-report-score-low {
  background-color: #d9534f;
  color: white;
}

/* Tagging QV Panel Container */
.taggingqv-panel-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  background: inherit;
  border-radius: 0;
  margin-bottom: 1rem;
}


/* Scoring Report Table Scrollbar Styling */
.scoring-report-table-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.scoring-report-table-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0;
}

.scoring-report-table-scroll::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 0;
}

.scoring-report-table-scroll::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.scoring-report-table-scroll::-webkit-scrollbar-corner {
  background: #f1f1f1;
}
.scoring-report-study-not-ready-badge {
  background-color: #e57373;
  color: white;
  padding: 0.25rem 0.625rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: none;
}

/* ===== QUESTION SELECT DROPDOWN FIXES ===== */
.question-select-dropdown {
  width: 100% !important;
  max-width: 100% !important;
}

.question-details .form-group {
  min-width: 0 !important;
  overflow: hidden !important;
}

.question-details .form-row {
  min-width: 0 !important;
}

.question-details .form-group .select2-container {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.question-details .form-group .select2-container .select2-selection--single {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.question-details .form-group .select2-container .select2-selection--single .select2-selection__rendered {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  display: block !important;
  width: calc(100% - 48px) !important;
  box-sizing: border-box !important;
}

/* Parexel Comments Column (42nd column) */
.sites-data-table thead tr th:nth-child(42),
.sites-data-table tbody tr td:nth-child(42) {
  min-width: 375px !important;
  max-width: 375px !important;
  width: 375px !important;
}

/* Sponsor Comments Column (46th column) - 50% wider */
.sites-data-table thead tr th:nth-child(45),
.sites-data-table tbody tr td:nth-child(45) {
  min-width: 375px !important;
  max-width: 375px !important;
  width: 375px !important;
}

/* ===== Support for Sticky Columns with Filters ===== */
/* Maintain sticky positioning for frozen columns even with DataTables */

/* Column 2: Country */
#scoringReportTable.dataTable thead tr th:nth-child(2) {
  position: sticky !important;
  left: 35px !important;
  background-color: #861557 !important;
  z-index: 25 !important;
  min-width: 180px !important;
}

#scoringReportTable.dataTable tbody tr td:nth-child(2) {
  position: sticky !important;
  left: 35px !important;
  z-index: 5 !important;
}

#scoringReportTable thead tr th:nth-child(2) .column-filter-icon {
  color: white !important;
  text-shadow: 0 0 3px rgba(0,0,0,0.5);
  font-size: 14px;
}

#scoringReportTable thead tr th:nth-child(2) .column-filter-icon:hover {
  color: #ffeb3b !important;
}

#scoringReportTable thead tr th:nth-child(2) .column-filter-dropdown {
  z-index: 9999;
}

/* Column 3: First Name */
#scoringReportTable.dataTable thead tr th:nth-child(3) {
  position: sticky !important;
  left: 215px !important;
  background-color: #861557 !important;
  z-index: 25 !important;
  min-width: 150px !important;
}

#scoringReportTable.dataTable tbody tr td:nth-child(3) {
  position: sticky !important;
  left: 215px !important;
  z-index: 5 !important;
}

#scoringReportTable thead tr th:nth-child(3) .column-filter-icon {
  color: white !important;
  text-shadow: 0 0 3px rgba(0,0,0,0.5);
  font-size: 14px;
}

#scoringReportTable thead tr th:nth-child(3) .column-filter-icon:hover {
  color: #ffeb3b !important;
}

#scoringReportTable thead tr th:nth-child(3) .column-filter-dropdown {
  z-index: 9999;
}

/* Column 4: Last Name */
#scoringReportTable.dataTable thead tr th:nth-child(4) {
  position: sticky !important;
  left: 365px !important;
  background-color: #861557 !important;
  z-index: 25 !important;
  min-width: 150px !important;
}

#scoringReportTable.dataTable tbody tr td:nth-child(4) {
  position: sticky !important;
  left: 365px !important;
  z-index: 5 !important;
}

#scoringReportTable thead tr th:nth-child(4) .column-filter-icon {
  color: white !important;
  text-shadow: 0 0 3px rgba(0,0,0,0.5);
  font-size: 14px;
}

#scoringReportTable thead tr th:nth-child(4) .column-filter-icon:hover {
  color: #ffeb3b !important;
}

#scoringReportTable thead tr th:nth-child(4) .column-filter-dropdown {
  z-index: 9999;
}

#scoringReportTable thead tr th:nth-child(6),
#scoringReportTable tbody tr td:nth-child(6) {
  position: static;
  left: unset;
  box-shadow: none;
  max-width: unset;
}
