/* =============================================================================
   Coverage plot + Evidence QC UI (icons, modals, table cells)
   ============================================================================= */

.ms-qc-plot-td {
  width: 1%;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}

.ms-qc-plot-btn,
.seq-coverage-plot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #ffffff;
  color: #07554f;
  cursor: pointer;
}

.ms-qc-plot-btn:hover,
.seq-coverage-plot-btn:hover {
  background: #f2f4f7;
  border-color: #07554f;
}

.ms-qc-coverage-card {
  position: relative;
  display: inline-block;
}

.ms-qc-coverage-card .seq-borat-qc-heading-text {
  padding-right: 18px;
}

.ms-qc-coverage-card .ms-qc-coverage-info,
.ms-qc-coverage-card .seq-coverage-info-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  min-width: 16px;
}

.ms-qc-coverage-card .ms-qc-coverage-info .seq-borat-qc-info-glyph,
.ms-qc-coverage-card .seq-coverage-info-btn .seq-borat-qc-info-glyph {
  font-size: 10px;
}

.ms-qc-coverage-th {
  white-space: nowrap;
}

.ms-qc-coverage-th .ms-qc-coverage-info,
.ms-qc-coverage-th .seq-coverage-info-btn {
  margin-left: 6px;
  vertical-align: middle;
}

.seq-food-species-table tbody tr.ms-qc-coverage-row {
  cursor: default;
}

.modal:has(.ms-qc-coverage-modal) .modal-dialog {
  max-width: min(96vw, 1920px);
  width: 96vw;
  margin: 1.25rem auto;
}

.modal:has(.ms-qc-coverage-modal) .modal-content {
  max-height: calc(100vh - 2.5rem);
  overflow: hidden;
}

.modal:has(.ms-qc-coverage-modal) .modal-body {
  max-height: calc(100vh - 9rem);
  overflow-y: auto;
  padding-top: 0.75rem;
}

.ms-qc-coverage-modal {
  font-size: 14px;
  line-height: 1.45;
}

.ms-qc-coverage-modal-lead {
  font-size: 14px;
  line-height: 1.55;
  color: #475467;
  margin-bottom: 14px;
}

.ms-qc-coverage-plot-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
}

.ms-qc-coverage-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.ms-qc-coverage-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 110px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafb;
}

.ms-qc-coverage-chip-label {
  color: #667085;
  font-size: 12px;
  font-weight: 650;
}

.ms-qc-coverage-chip-value {
  color: #182230;
  font-size: 17px;
  font-weight: 700;
}

.ms-qc-help-list {
  padding-left: 1.1rem;
}

.ms-qc-help-list p {
  margin: 4px 0 12px;
  color: #475467;
}

.ms-qc-help-swatch {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.ms-qc-help-swatch.is-good {
  background: #eaf4ed;
  color: #39734b;
}

.ms-qc-help-swatch.is-warn {
  background: #fbf3df;
  color: #8a6116;
}

.ms-qc-help-swatch.is-bad {
  background: #f9eaea;
  color: #9d3737;
}
