/*
 * Shared table system based on the supplied Drosophila Genome Atlas example.
 * This file intentionally loads after DataTables' own stylesheet so that both
 * Django-rendered tables and the server-side evidence DataTable look alike.
 */
:root {
  --reference-table-header: #272727;
  --reference-table-header-border: #aeb1b3;
  --reference-table-grid: #bfc2c4;
  --reference-table-stripe: #eeeeee;
  --reference-table-hover: #e3edf5;
  --reference-table-link: #0645ff;
  --reference-table-button: #6c6c6c;
}

.gene-unlinked {
  color: var(--muted);
  font-weight: 700;
}

.table-wrap,
.candidate-list > .candidate-unlinked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.data-table-shell .dt-scroll {
  border: 1px solid var(--reference-table-grid);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.table-wrap {
  overflow-x: auto;
}

.source-table {
  align-items: stretch;
  justify-content: flex-start;
}

.source-table > .dt-container {
  width: 100%;
  min-width: 1320px;
}

.source-table table.dataTable {
  width: 100% !important;
  min-width: 1320px !important;
  table-layout: fixed;
}

#publication-source-table > thead > tr > th:nth-child(1),
#publication-source-table > tbody > tr > td:nth-child(1) { width: 7% !important; }
#publication-source-table > thead > tr > th:nth-child(2),
#publication-source-table > tbody > tr > td:nth-child(2) { width: 23% !important; }
#publication-source-table > thead > tr > th:nth-child(3),
#publication-source-table > tbody > tr > td:nth-child(3) { width: 11% !important; }
#publication-source-table > thead > tr > th:nth-child(4),
#publication-source-table > tbody > tr > td:nth-child(4) { width: 12% !important; }
#publication-source-table > thead > tr > th:nth-child(5),
#publication-source-table > tbody > tr > td:nth-child(5) { width: 12% !important; }
#publication-source-table > thead > tr > th:nth-child(6),
#publication-source-table > tbody > tr > td:nth-child(6) { width: 12% !important; }
#publication-source-table > thead > tr > th:nth-child(7),
#publication-source-table > tbody > tr > td:nth-child(7) { width: 15% !important; }
#publication-source-table > thead > tr > th:nth-child(8),
#publication-source-table > tbody > tr > td:nth-child(8) { width: 8% !important; }

#publication-source-table > thead > tr > th:nth-child(1),
#publication-source-table > thead > tr > th:nth-child(7),
#publication-source-table > thead > tr > th:nth-child(8),
#publication-source-table > tbody > tr > td:nth-child(1),
#publication-source-table > tbody > tr > td:nth-child(7),
#publication-source-table > tbody > tr > td:nth-child(8) {
  text-align: center !important;
}

#publication-source-table > tbody > tr > td:nth-child(8) {
  color: #565e67;
  font-size: 0.92em;
}

/* Source previews keep one table for both header and body. Horizontal
   overflow belongs to this wrapper, so the two sections cannot drift. */
.source-file-preview table.dataTable {
  width: 100% !important;
  min-width: var(--source-table-min-width, 960px) !important;
  max-width: none !important;
  table-layout: auto;
}

.source-table-controls {
  position: sticky;
  top: var(--source-table-sticky-top, 72px);
  z-index: 9;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 12px 22px;
  border: 1px solid var(--reference-table-grid);
  background: #fff;
  color: #202020;
  font-size: 14px;
}

.source-table-length,
.source-table-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.source-table-controls select,
.source-table-controls input {
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid #aeb1b3;
  background: #fff;
  font: inherit;
}

.source-table-search input {
  width: min(360px, 42vw);
  min-width: 240px;
}

.source-table-loading-status {
  margin-left: auto;
  color: #5f6f80;
  font-size: 12px;
}

@media (max-width: 720px) {
  .source-table-controls,
  .source-table-search {
    align-items: stretch;
    flex-direction: column;
  }

  .source-table-search input {
    width: 100%;
    min-width: 0;
  }
}
.source-file-preview > .dt-container > .dt-layout-row:first-child {
  justify-content: flex-start;
}

.source-file-preview > .dt-container > .dt-layout-row:first-child .dt-layout-start {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.source-file-preview .dt-length,
.source-file-preview .dt-search {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin: 0;
}

.source-file-preview .dt-search input {
  width: min(360px, 42vw);
  min-width: 240px;
}

@media (max-width: 720px) {
  .source-file-preview > .dt-container > .dt-layout-row:first-child .dt-layout-start,
  .source-file-preview .dt-search {
    align-items: stretch;
    flex-direction: column;
  }

  .source-file-preview .dt-search input {
    width: 100%;
    min-width: 0;
  }
}

.source-file-preview table.dataTable > thead > tr > th,
.source-file-preview table.dataTable > tbody > tr > td {
  min-width: 120px;
  box-sizing: border-box;
}

.source-file-preview .dt-column-header,
.source-table .dt-column-header {
  position: relative;
  padding-right: 26px;
}

.source-file-preview .dt-column-order,
.source-table .dt-column-order {
  position: absolute !important;
  top: 50% !important;
  right: 6px !important;
  width: 14px !important;
  height: 24px !important;
  transform: translateY(-50%);
}

.source-file-preview .dt-column-order::before,
.source-file-preview .dt-column-order::after,
.source-table .dt-column-order::before,
.source-table .dt-column-order::after {
  position: absolute !important;
  left: 0 !important;
  width: 14px;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 11px !important;
  text-align: center;
  opacity: .82 !important;
}

.source-file-preview .dt-column-order::before,
.source-table .dt-column-order::before {
  content: "▲" !important;
  top: 0 !important;
  bottom: auto !important;
}

.source-file-preview .dt-column-order::after,
.source-table .dt-column-order::after {
  content: "▼" !important;
  top: auto !important;
  bottom: 0 !important;
}

.source-file-preview th[aria-sort="ascending"] .dt-column-order::before,
.source-file-preview th[aria-sort="descending"] .dt-column-order::after,
.source-table th[aria-sort="ascending"] .dt-column-order::before,
.source-table th[aria-sort="descending"] .dt-column-order::after {
  color: #ffd75e !important;
  opacity: 1 !important;
  text-shadow: 0 0 2px #000;
}

.source-file-preview th[aria-sort="ascending"] .dt-column-order::after,
.source-file-preview th[aria-sort="descending"] .dt-column-order::before,
.source-table th[aria-sort="ascending"] .dt-column-order::after,
.source-table th[aria-sort="descending"] .dt-column-order::before {
  opacity: .42 !important;
}

.table-wrap table,
.data-table-shell table.dataTable {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  background: #fff;
  color: #202020;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

/* Keep the protein summary inside its page column. DataTables otherwise
   calculates a pixel width from long labels and can push the final columns
   beyond the viewport. */
#granule-protein-summary-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed;
}

#granule-protein-summary-table > thead > tr > th,
#granule-protein-summary-table > tbody > tr > td {
  min-width: 0 !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

#granule-protein-summary-table > thead > tr > th {
  padding: 14px 8px !important;
}

#granule-protein-summary-table > tbody > tr > td {
  padding: 12px 8px !important;
}

#granule-protein-summary-table > thead > tr > th:nth-child(1) { width: 15% !important; }
#granule-protein-summary-table > thead > tr > th:nth-child(2) { width: 13% !important; }
#granule-protein-summary-table > thead > tr > th:nth-child(3) { width: 18% !important; }
#granule-protein-summary-table > thead > tr > th:nth-child(4) { width: 7% !important; }
#granule-protein-summary-table > thead > tr > th:nth-child(5) { width: 7% !important; }
#granule-protein-summary-table > thead > tr > th:nth-child(6) { width: 14% !important; }
#granule-protein-summary-table > thead > tr > th:nth-child(7) { width: 8% !important; }
#granule-protein-summary-table > thead > tr > th:nth-child(8) { width: 11% !important; }
#granule-protein-summary-table > thead > tr > th:nth-child(9) { width: 7% !important; }

#granule-protein-summary-table .dt-column-header,
#granule-protein-summary-table .dt-column-title {
  min-width: 0;
  white-space: normal;
}

.table-wrap thead th,
.data-table-shell table.dataTable > thead > tr > th,
.data-table-shell .dt-scroll-head table.dataTable > thead > tr > th {
  min-height: 72px;
  padding: 20px 14px !important;
  border-right: 1px solid var(--reference-table-header-border) !important;
  border-bottom: 1px solid #111 !important;
  background: var(--reference-table-header) !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: center !important;
  text-transform: none;
  vertical-align: middle;
  white-space: normal;
}

.table-wrap thead th:last-child,
.data-table-shell table.dataTable > thead > tr > th:last-child {
  border-right: 0 !important;
}

.table-wrap tbody td,
.data-table-shell table.dataTable > tbody > tr > td {
  padding: 15px 12px !important;
  border-right: 1px solid var(--reference-table-grid) !important;
  border-bottom: 1px solid #d2d4d5 !important;
  background: #fff !important;
  color: #202020;
  line-height: 1.45;
  text-align: center;
  vertical-align: middle !important;
}

.table-wrap tbody tr:nth-child(odd) td,
.data-table-shell table.dataTable > tbody > tr:nth-child(odd) > * {
  background: var(--reference-table-stripe) !important;
}

.table-wrap tbody tr:hover td,
.data-table-shell table.dataTable > tbody > tr:hover > * {
  background: var(--reference-table-hover) !important;
}

.publication-source-group-active {
  border-color: #4b8f2f !important;
  background: #edf7ef !important;
  color: #285b34 !important;
  font-weight: 700;
}

.source-table table.dataTable > tbody > tr.publication-source-pub-group-even > *,
.source-table table.dataTable > tbody > tr.publication-source-pub-group-even > td {
  background: #e5e5e5 !important;
}

.source-table table.dataTable > tbody > tr.publication-source-pub-group-odd > *,
.source-table table.dataTable > tbody > tr.publication-source-pub-group-odd > td {
  background: #fff !important;
}

.source-table table.dataTable > tbody > tr.publication-source-pub-group-even:hover > *,
.source-table table.dataTable > tbody > tr.publication-source-pub-group-even:hover > td,
.source-table table.dataTable > tbody > tr.publication-source-pub-group-odd:hover > *,
.source-table table.dataTable > tbody > tr.publication-source-pub-group-odd:hover > td {
  background: var(--reference-table-hover) !important;
}

.table-wrap tbody td:last-child,
.data-table-shell table.dataTable > tbody > tr > td:last-child {
  border-right: 0 !important;
}

.table-wrap tbody tr:last-child td,
.data-table-shell table.dataTable > tbody > tr:last-child > td {
  border-bottom: 0 !important;
}

.table-wrap a,
.data-table-shell a,
.table-wrap .gene,
.data-table-shell .gene,
.table-wrap .source-title,
.data-table-shell .source-link {
  color: var(--reference-table-link) !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: inherit;
  font-weight: 500;
  text-decoration: none;
}

.table-wrap a:hover,
.data-table-shell a:hover {
  text-decoration: underline;
}

.table-wrap .subtext,
.data-table-shell .subtext {
  color: #454545;
  font-size: 12px;
  line-height: 1.4;
}

.source-table tbody td:first-child,
.data-table-shell table.dataTable > tbody > tr > td:nth-child(-n+3) {
  text-align: left;
}

.dataset-download-cell {
  min-width: 128px;
  white-space: nowrap;
  text-align: center !important;
}

.dataset-file-action {
  display: inline-block;
  margin: 2px 3px;
  padding: 5px 8px;
  border: 1px solid #aeb1b3;
  background: #fff;
  line-height: 1.2;
}

.dataset-file-action:hover {
  background: #e8e8e8;
}


.dataset-download-choices {
  display: flex;
  min-width: 170px;
  flex-direction: column;
  gap: 7px;
}

.dataset-download-option {
  padding: 6px 0;
  border-bottom: 1px solid #dedede;
}

.dataset-download-option:last-child {
  border-bottom: 0;
}

.dataset-download-meta,
.dataset-download-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.dataset-download-meta .subtext {
  display: block;
  width: 100%;
  margin-top: 2px;
}

.source-kind-badge,
.source-status-badge {
  display: inline-block;
  padding: 2px 5px;
  border: 1px solid #aeb1b3;
  background: #f4f4f4;
  color: #333;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.source-status-verified {
  border-color: #5d8667;
  background: #edf7ef;
  color: #285b34;
}

.source-status-unverified {
  border-color: #b88a3b;
  background: #fff8e7;
  color: #72500d;
}

.source-status-not_reviewed {
  border-color: #8c8c8c;
  background: #f2f2f2;
  color: #555;
}

.publication-dev-summary,
.publication-dev-columns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.publication-dev-summary span,
.publication-dev-columns span,
.publication-dev-columns strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--reference-table-grid);
  background: #fff;
  color: #202020;
  font-size: 12px;
}

.publication-dev-summary strong {
  margin-right: 4px;
  font-size: 14px;
}

.publication-dev-section {
  width: 100%;
  max-width: none;
  padding-right: 20px;
  padding-left: 20px;
  box-sizing: border-box;
}

.publication-dev-batch-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--reference-table-grid);
  background: #fff;
}

.publication-dev-batch-selection,
.publication-dev-batch-tools form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.publication-dev-row-select {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #526fa8;
}

.publication-dev-batch-tools button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.publication-dev-table-shell {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.publication-dev-table-shell .dt-scroll {
  width: 100%;
  max-width: 100%;
}

.publication-dev-table-shell .dt-scroll-body {
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: visible;
}

.publication-dev-filter-tools {
  display: grid;
  gap: 0;
  margin: 0 0 12px;
  border: 1px solid var(--reference-table-grid);
  background: #fff;
}

.publication-dev-filter-heading,
.publication-dev-filter-row,
.publication-dev-filter-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--reference-table-grid);
}

.publication-dev-filter-heading {
  min-height: 34px;
  background: #e9e9e9;
}

.publication-dev-filter-actions {
  border-bottom: 0;
}

.publication-dev-filter-row:not(.filter-enabled) {
  color: #777;
}

.publication-dev-filter-field {
  display: grid;
  grid-template-columns: 150px minmax(220px, 420px);
  align-items: center;
  gap: 10px;
  color: #333;
  font-size: 13px;
  font-weight: 700;
}

.publication-dev-filter-tools select,
.publication-dev-filter-tools input[type="search"] {
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid #aeb1b3;
  background: #fff;
  color: #202020;
  font: inherit;
}

.publication-dev-filter-tools select:disabled,
.publication-dev-filter-tools input[type="search"]:disabled {
  background: #f1f1f1;
  color: #888;
}

.publication-dev-filter-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 28px;
  flex: 0 0 58px;
  border: 2px solid #999;
  border-radius: 16px;
  background: #d8d8d8;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.publication-dev-filter-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.publication-dev-filter-switch span {
  pointer-events: none;
}

.filter-enabled .publication-dev-filter-switch {
  border-color: #5f8550;
  background: #4b8f2f;
}

@media (max-width: 720px) {
  .publication-dev-filter-row,
  .publication-dev-filter-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .publication-dev-filter-field {
    width: 100%;
    grid-template-columns: 1fr;
  }
}

.publication-dev-column-tools {
  position: relative;
  z-index: 12;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 12px;
}

.publication-dev-group-active {
  border-color: #4b8f2f !important;
  background: #edf7ef !important;
  color: #285b34 !important;
  font-weight: 700;
}

.publication-dev-table-shell table.dataTable > tbody > tr.publication-dev-pub-group-even > *,
.publication-dev-table-shell .dt-scroll-body table.dataTable > tbody > tr.publication-dev-pub-group-even > * {
  background: #e5e5e5 !important;
}

.publication-dev-table-shell table.dataTable > tbody > tr.publication-dev-pub-group-odd > *,
.publication-dev-table-shell .dt-scroll-body table.dataTable > tbody > tr.publication-dev-pub-group-odd > * {
  background: #fff !important;
}

.publication-dev-table-shell table.dataTable > tbody > tr.publication-dev-pub-group-even:hover > *,
.publication-dev-table-shell table.dataTable > tbody > tr.publication-dev-pub-group-odd:hover > *,
.publication-dev-table-shell .dt-scroll-body table.dataTable > tbody > tr.publication-dev-pub-group-even:hover > *,
.publication-dev-table-shell .dt-scroll-body table.dataTable > tbody > tr.publication-dev-pub-group-odd:hover > * {
  background: var(--reference-table-hover) !important;
}

.publication-dev-column-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: min(360px, calc(100vw - 40px));
  max-height: min(620px, calc(100vh - 180px));
  padding: 12px 14px;
  border: 1px solid #aeb1b3;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
  overflow: auto;
}

.publication-dev-column-panel-head,
.publication-dev-column-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.publication-dev-column-panel-head {
  margin-bottom: 8px;
}

.publication-dev-column-panel-head button {
  width: 22px;
  height: 22px;
  border: 1px solid #aeb1b3;
  background: #f5f5f5;
  color: #202020;
  line-height: 1;
}

.publication-dev-column-checkall,
.publication-dev-column-list label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  font-size: 13px;
}

.publication-dev-column-list {
  display: grid;
  gap: 10px;
  margin: 8px 0 12px;
}

.publication-dev-column-list fieldset {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 8px 9px 9px;
  border: 1px solid #d5d7d8;
}

.publication-dev-column-list legend {
  padding: 0 4px;
  color: #333;
  font-size: 12px;
  font-weight: 800;
}

.publication-dev-column-list input,
.publication-dev-column-checkall input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #526fa8;
}

.publication-dev-table-shell table.dataTable,
.publication-dev-table-shell .dt-scroll-head table.dataTable,
.publication-dev-table-shell .dt-scroll-body table.dataTable {
  width: var(--publication-dev-table-width, 3140px) !important;
  min-width: var(--publication-dev-table-width, 3140px) !important;
  table-layout: fixed;
}

.publication-dev-table-shell table.dataTable > thead > tr > th,
.publication-dev-table-shell table.dataTable > tbody > tr > td,
.publication-dev-table-shell .dt-scroll-head table.dataTable > thead > tr > th,
.publication-dev-table-shell .dt-scroll-body table.dataTable > tbody > tr > td {
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.publication-dev-table code {
  display: inline-block;
  max-width: 220px;
  overflow-wrap: anywhere;
  color: #333;
  font-size: 11px;
}

.publication-dev-table .subtext {
  display: block;
  margin-top: 4px;
}

.publication-dev-id {
  text-align: center !important;
  font-weight: 700;
}

.publication-dev-option {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 2px 0;
}

.publication-dev-table td:nth-last-child(2) a,
.publication-dev-option a {
  display: inline-block;
  padding: 3px 6px;
  border: 1px solid #aeb1b3;
  background: #fff;
  white-space: nowrap;
}

.publication-dev-write-state {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.publication-dev-write-state.is-enabled strong {
  color: #276a3a;
}

.publication-dev-write-state.is-disabled strong {
  color: #9a5d00;
}

.publication-dev-visibility {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.publication-dev-visibility form {
  margin: 0;
}

.publication-dev-visibility button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.atlas-download-option {
  border-left: 3px solid #526fa8;
  padding-left: 7px;
}
.download-center {
  max-width: 1500px;
}

.download-page-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--reference-table-grid);
  background: #fff;
}

.download-page-tools strong,
.download-page-tools span {
  display: block;
}

.download-page-tools span {
  margin-top: 3px;
  color: #555;
  font-size: 13px;
}

.download-all-button {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid #555;
  background: var(--reference-table-button);
  color: #fff !important;
  font-weight: 700 !important;
}

.download-source-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed;
}

.download-source-table > thead > tr > th:nth-child(1) { width: 28% !important; }
.download-source-table > thead > tr > th:nth-child(2) { width: 16% !important; }
.download-source-table > thead > tr > th:nth-child(3) { width: 11% !important; }
.download-source-table > thead > tr > th:nth-child(4) { width: 8% !important; }
.download-source-table > thead > tr > th:nth-child(5) { width: 18% !important; }
.download-source-table > thead > tr > th:nth-child(6) { width: 7% !important; }
.download-source-table > thead > tr > th:nth-child(7) { width: 12% !important; }

.download-source-table > tbody > tr > td {
  min-width: 0 !important;
  padding: 10px 8px !important;
  overflow-wrap: anywhere;
  text-align: left !important;
}

.download-source-table .download-actions {
  text-align: center !important;
}

.download-source-table .dataset-file-action {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 4px auto;
  white-space: nowrap;
}


@media (max-width: 720px) {
  .download-page-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .download-all-button {
    text-align: center;
  }
}

.data-table-shell table.dataTable > tbody > tr > td.dt-body-center {
  text-align: center !important;
}

.evidence-count-button {
  min-width: 34px;
  padding: 5px 9px;
  border: 1px solid #7e8790;
  border-radius: 0;
  background: #fff;
  color: var(--reference-table-link);
  font: 700 14px Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.evidence-count-button:hover,
.evidence-count-button[aria-expanded="true"] {
  border-color: #272727;
  background: #272727;
  color: #fff;
}

.zero-evidence-count {
  color: #777;
}

.data-table-shell table.dataTable > tbody > tr.evidence-detail-row > td {
  padding: 0 !important;
  border-top: 3px solid #272727 !important;
  border-bottom: 3px solid #272727 !important;
  background: #f7f8f9 !important;
  text-align: left !important;
}

.expanded-evidence {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 16px;
  box-sizing: border-box;
}

.expanded-evidence-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.expanded-evidence-heading strong {
  font-size: 15px;
}

.expanded-evidence-heading span {
  color: #555;
  font-size: 12px;
}

.expanded-evidence-scroll {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  border: 1px solid #aeb1b3;
  background: #fff;
  box-sizing: border-box;
}

.expanded-evidence-scroll > .dt-container {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  font-size: 12px;
}

.expanded-evidence-scroll > .dt-container > .dt-layout-row {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 8px 10px;
  margin: 0 !important;
  box-sizing: border-box;
}

.expanded-evidence-scroll > .dt-container > .dt-layout-row:first-child {
  display: grid !important;
  grid-template-columns: auto minmax(280px, 420px);
  gap: 16px;
  border-bottom: 1px solid #aeb1b3;
  background: #f1f1f1;
}

.expanded-evidence-scroll > .dt-container > .dt-layout-row:first-child .dt-layout-end {
  display: flex;
  width: 100%;
  min-width: 0;
  justify-content: flex-end;
}

.expanded-evidence-scroll .dt-search {
  display: flex !important;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-weight: 700;
}

.expanded-evidence-scroll .dt-search label {
  flex: 0 0 auto;
  white-space: nowrap;
}

.expanded-evidence-scroll > .dt-container > .dt-layout-table {
  padding: 0;
}

.expanded-evidence-scroll .dt-length select,
.expanded-evidence-scroll .dt-search input {
  min-height: 30px;
  padding: 4px 6px !important;
  font-size: 12px;
}

.expanded-evidence-scroll .dt-search input {
  flex: 1 1 220px;
  width: min(280px, 32vw);
  min-width: 180px;
  border-color: #555 !important;
  background: #fff !important;
}

.expanded-evidence-scroll .dt-info,
.expanded-evidence-scroll .dt-paging {
  font-size: 12px;
}

@media (max-width: 720px) {
  .expanded-evidence-scroll > .dt-container > .dt-layout-row:first-child {
    grid-template-columns: 1fr;
  }

  .expanded-evidence-scroll > .dt-container > .dt-layout-row:first-child .dt-layout-end,
  .expanded-evidence-scroll .dt-search {
    justify-content: flex-start;
  }

  .expanded-evidence-scroll .dt-search input {
    width: 100%;
    min-width: 0;
  }
}

.evidence-detail-table {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  color: #202020;
  font: 11px Arial, Helvetica, sans-serif;
}

.evidence-detail-table th {
  padding: 8px 5px;
  border-right: 1px solid #aeb1b3 !important;
  border-bottom: 1px solid #111 !important;
  background: #454545 !important;
  color: #fff !important;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
  white-space: normal;
}

.evidence-detail-table td {
  padding: 8px 5px;
  border-right: 1px solid #d2d4d5;
  border-bottom: 1px solid #d2d4d5;
  background: #fff;
  overflow-wrap: anywhere;
  text-align: center;
  vertical-align: middle;
}

.evidence-detail-table tbody tr:nth-child(odd) td {
  background: #eeeeee;
}

.evidence-detail-table th:first-child,
.evidence-detail-table td:first-child {
  text-align: left;
}

.evidence-detail-table .detail-col-publication { width: 18% !important; }
.evidence-detail-table .detail-col-target { width: 14% !important; }
.evidence-detail-table .detail-col-method { width: 15% !important; }
.evidence-detail-table .detail-col-actions { width: 16% !important; }
.evidence-detail-table .detail-col-metric { width: auto; }

.evidence-detail-table .dataset-file-action {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 3px auto;
  white-space: nowrap;
}

.evidence-detail-table .subtext {
  display: block;
  margin-top: 3px;
}

/* Search-by-protein count details include granule, dataset and confidence context. */
.protein-search-expanded .expanded-evidence-scroll {
  overflow-x: auto;
}

.protein-search-expanded .expanded-evidence-scroll > .dt-container,
.protein-search-evidence-table {
  min-width: 1120px;
}

.protein-search-evidence-table {
  table-layout: auto;
}

.protein-search-evidence-table .detail-col-granule { width: 9% !important; }
.protein-search-evidence-table .detail-col-publication { width: 15% !important; }
.protein-search-evidence-table .detail-col-dataset { width: 15% !important; }
.protein-search-evidence-table .detail-col-target { width: 11% !important; }
.protein-search-evidence-table .detail-col-method { width: 12% !important; }
.protein-search-evidence-table .detail-col-relation { width: 10% !important; }
.protein-search-evidence-table .detail-col-confidence { width: 8% !important; }
.protein-search-evidence-table .detail-col-actions { width: 12% !important; }

.protein-detail-link {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid #9da5aa;
  background: #fff;
  color: var(--reference-table-link);
  font-weight: 700;
  white-space: nowrap;
}

.method-detail-page {
  max-width: 1440px;
}

.method-evidence-section {
  margin-bottom: 34px;
  overflow: hidden;
}

.method-section-heading {
  padding: 18px 22px;
  border-bottom: 1px solid #8f9497;
  background: #30373c;
  color: #fff;
}

.method-section-heading h2 {
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
}

.method-section-heading span {
  color: #fff;
  font-size: 13px;
}

.method-detail-table-shell {
  padding: 16px 18px 20px;
}

.method-detail-table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed;
}

.method-detail-table th,
.method-detail-table td {
  min-width: 0 !important;
  overflow-wrap: anywhere;
}

.method-detail-table .dataset-file-action {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 4px auto;
  white-space: normal;
}

.method-detail-table .dataset-source-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.method-detail-table .dataset-source-actions .dataset-file-action {
  display: inline-block;
  width: auto;
  margin: 0;
}

.method-section-empty {
  margin: 0;
  padding: 28px 22px;
  color: #555;
  background: #f5f5f5;
}

.protein-search-page {
  max-width: 1440px;
}

#protein-search-results[hidden] {
  display: none;
}

.protein-batch-search {
  padding: 20px 22px;
  border-top: 1px solid #d4d4d4;
  background: #f3f4f4;
}

.protein-batch-search label {
  display: block;
  margin-bottom: 7px;
  color: #20272c;
  font-weight: 700;
}

.protein-batch-search textarea {
  display: block;
  width: 100%;
  min-height: 86px;
  padding: 10px 12px;
  border: 1px solid #8d9396;
  border-radius: 0;
  background: #fff;
  color: #20272c;
  box-sizing: border-box;
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}

.protein-batch-search p {
  margin: 7px 0 12px;
  color: #5d6366;
  font-size: 13px;
}

.protein-example-button {
  margin: 0 0 12px;
  padding: 5px 10px;
  border: 1px solid #a8adaf;
  border-radius: 0;
  background: #e5e6e7;
  color: #4f5558;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.protein-example-button:hover,
.protein-example-button:focus-visible {
  border-color: #858b8e;
  background: #d7d9da;
  color: #252b2e;
}

.protein-batch-search-actions {
  display: flex;
  gap: 8px;
}

.protein-batch-search-actions button {
  padding: 8px 18px;
  border: 1px solid #555;
  border-radius: 0;
  background: var(--reference-table-button);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.protein-batch-search-actions button:hover,
.protein-batch-search-actions button:focus-visible {
  background: #444;
}

.protein-search-feedback {
  margin-top: 14px;
  padding: 13px 16px;
  border: 2px solid #a23d36;
  background: #fff1ef;
  color: #5f211d;
}

.protein-search-feedback[hidden] {
  display: none;
}

.protein-search-feedback h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.protein-search-feedback section + section {
  margin-top: 10px;
}

.protein-search-feedback ul {
  margin: 6px 0 0 22px;
}

.protein-search-feedback code {
  color: #5f211d;
  font-weight: 700;
}

#protein-search-table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed;
}

#protein-search-table th:nth-child(1) { width: 13% !important; }
#protein-search-table th:nth-child(2) { width: 14% !important; }
#protein-search-table th:nth-child(3) { width: 10% !important; }
#protein-search-table th:nth-child(n+4):nth-child(-n+11) { width: 8% !important; }
#protein-search-table th:nth-child(12) { width: 7% !important; }

.protein-granule-detail-table th:nth-child(1) { width: 28% !important; }
.protein-granule-detail-table th:nth-child(2) { width: 42% !important; }
.protein-granule-detail-table th:nth-child(3) { width: 30% !important; }

.protein-granule-choice-page {
  max-width: 1180px;
}

.protein-granule-directory-page {
  width: min(1600px, calc(100% - 48px));
  max-width: 1600px;
  padding: 54px 0 82px;
  box-sizing: border-box;
}

.protein-granule-directory-page > .back {
  display: inline-block;
  margin-bottom: 18px;
}

.protein-granule-query-panel {
  margin-bottom: 30px;
}

.protein-granule-query-heading h1 {
  margin: 0;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.protein-granule-query-description {
  padding: 22px 24px;
}

.protein-granule-query-description p {
  max-width: 850px;
  margin: 0;
  color: #4f585e;
  line-height: 1.6;
}

.protein-granule-overview-inline {
  padding: 0 24px 24px;
}

.protein-granule-overview-inline-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0 10px;
  border-top: 1px solid #d4d6d8;
}

.protein-granule-overview-inline-heading h2 {
  margin: 0;
  color: #20272c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
}

.protein-granule-overview-inline-heading span {
  color: #5a6268;
  font-size: 13px;
}

.protein-granule-directory-shell {
  padding: 18px 20px 22px;
}

.protein-granule-directory-table th,
.protein-granule-directory-table td {
  text-align: center;
  vertical-align: middle;
}

.protein-granule-directory-table th:first-child,
.protein-granule-directory-table td:first-child {
  text-align: left;
}

.protein-granule-directory-link {
  color: var(--reference-table-link) !important;
  font-size: 17px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.protein-granule-evidence-group {
  margin-top: 30px;
  scroll-margin-top: 92px;
}

.protein-granule-evidence-group > .panel-head h2 {
  max-width: 900px;
  font-size: 22px;
  line-height: 1.35;
}

.protein-granule-inline-methods {
  display: grid;
  gap: 26px;
  padding: 20px;
  background: #f3f4f4;
}

.protein-granule-inline-method {
  min-width: 0;
  border: 1px solid #c8cbcd;
  background: #fff;
}

.protein-granule-inline-method-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-bottom: 1px solid #8f9497;
  background: #464d52;
  color: #fff;
}

.protein-granule-inline-method-heading h3 {
  margin: 0;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
}

.protein-granule-inline-method-heading span {
  color: #fff;
  font-size: 13px;
}

.protein-granule-inline-method-shell {
  overflow-x: auto;
  padding: 16px 18px 20px;
}

.protein-granule-inline-method-table {
  width: 100% !important;
  max-width: 100% !important;
  border: 1px solid #8f9497 !important;
  border-collapse: collapse !important;
  table-layout: fixed;
}

.protein-granule-inline-method-table th,
.protein-granule-inline-method-table td {
  min-width: 0 !important;
  border-right: 1px solid #aeb3b6 !important;
  border-bottom: 1px solid #aeb3b6 !important;
  overflow-wrap: break-word;
}

.data-table-shell .protein-granule-inline-method-table > thead > tr > th {
  border-top: 1px solid #8f9497 !important;
  border-right: 1px solid #8f9497 !important;
  border-bottom: 1px solid #111 !important;
  background: #272727 !important;
  color: #fff !important;
}

.protein-granule-inline-method-table th:first-child,
.protein-granule-inline-method-table td:first-child {
  border-left: 1px solid #aeb3b6 !important;
}

.protein-granule-inline-method-table th:last-child,
.protein-granule-inline-method-table td:last-child {
  border-right: 1px solid #aeb3b6 !important;
}

.protein-granule-inline-method-table td:nth-child(n+5) {
  padding-right: 8px !important;
  padding-left: 8px !important;
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.protein-granule-inline-method-table th:nth-child(n+5) {
  padding-right: 8px !important;
  padding-left: 8px !important;
  overflow-wrap: normal;
  word-break: normal;
}

/* Column widths adapt to the number of confidence metrics in each method. */
.protein-granule-inline-method-table[data-metric-count="0"] th:nth-child(1) { width: 26%; }
.protein-granule-inline-method-table[data-metric-count="0"] th:nth-child(2) { width: 28%; }
.protein-granule-inline-method-table[data-metric-count="0"] th:nth-child(3) { width: 20%; }
.protein-granule-inline-method-table[data-metric-count="0"] th:nth-child(4) { width: 26%; }

.protein-granule-inline-method-table[data-metric-count="1"] th:nth-child(1) { width: 23%; }
.protein-granule-inline-method-table[data-metric-count="1"] th:nth-child(2) { width: 25%; }
.protein-granule-inline-method-table[data-metric-count="1"] th:nth-child(3) { width: 17%; }
.protein-granule-inline-method-table[data-metric-count="1"] th:nth-child(4) { width: 22%; }
.protein-granule-inline-method-table[data-metric-count="1"] th:nth-child(5) { width: 13%; }

.protein-granule-inline-method-table[data-metric-count="2"] th:nth-child(1) { width: 20%; }
.protein-granule-inline-method-table[data-metric-count="2"] th:nth-child(2) { width: 22%; }
.protein-granule-inline-method-table[data-metric-count="2"] th:nth-child(3) { width: 16%; }
.protein-granule-inline-method-table[data-metric-count="2"] th:nth-child(4) { width: 20%; }
.protein-granule-inline-method-table[data-metric-count="2"] th:nth-child(n+5) { width: 11%; }

.protein-granule-inline-method-table[data-metric-count="3"] th:nth-child(1) { width: 18%; }
.protein-granule-inline-method-table[data-metric-count="3"] th:nth-child(2) { width: 20%; }
.protein-granule-inline-method-table[data-metric-count="3"] th:nth-child(3) { width: 15%; }
.protein-granule-inline-method-table[data-metric-count="3"] th:nth-child(4) { width: 18%; }
.protein-granule-inline-method-table[data-metric-count="3"] th:nth-child(n+5) { width: 9.666%; }

.protein-granule-inline-method-table[data-metric-count="4"] {
  min-width: 1120px;
}

.protein-granule-inline-method-table[data-metric-count="4"] th:nth-child(1) { width: 17%; }
.protein-granule-inline-method-table[data-metric-count="4"] th:nth-child(2) { width: 18%; }
.protein-granule-inline-method-table[data-metric-count="4"] th:nth-child(3) { width: 13%; }
.protein-granule-inline-method-table[data-metric-count="4"] th:nth-child(4) { width: 16%; }
.protein-granule-inline-method-table[data-metric-count="4"] th:nth-child(n+5) { width: 9%; }

@media (max-width: 760px) {
  .protein-granule-directory-page {
    width: calc(100% - 24px);
    padding: 32px 0 60px;
  }

  .protein-granule-directory-shell,
  .protein-granule-inline-method-shell {
    overflow-x: auto;
    padding: 12px;
  }

  .protein-granule-directory-table,
  .protein-granule-inline-method-table {
    min-width: 760px;
  }

  .protein-granule-overview-inline {
    padding: 0 12px 12px;
  }

  .protein-granule-overview-inline-heading,
  .protein-granule-inline-method-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .protein-granule-inline-methods {
    padding: 12px;
  }
}

.protein-granule-choice-list {
  display: block;
  padding: 8px 0;
  background: #fff;
}

.method-detail-download {
  margin: 8px 0 0;
  padding: 22px;
  border: 1px solid #c7cbce;
  background: #fff;
  text-align: center;
}

.method-detail-download .download-all-button {
  display: inline-block;
}

.method-detail-download p {
  margin: 12px 0 0;
  color: #626a70;
  font-size: 14px;
}

.protein-granule-choice {
  display: block;
  padding: 9px 0;
  border: 0;
  background: #fff;
  color: #20272c;
  text-decoration: none;
}

.protein-granule-choice:hover,
.protein-granule-choice:focus-visible {
  background: transparent;
  outline: 1px dotted #168b7b;
  outline-offset: 3px;
}

.protein-granule-choice-name {
  color: #20272c;
  font-size: inherit;
  font-weight: 400;
}

.protein-granule-choice-count {
  display: inline;
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #20272c;
  font-weight: 400;
}

.protein-granule-choice-action {
  display: inline;
  margin-left: 6px;
  color: var(--reference-table-link);
  font-weight: 400;
  text-decoration: underline;
}

@media (max-width: 760px) {
  .protein-granule-choice {
    padding: 9px 0;
  }
}


#protein-overlap-table th,
#protein-overlap-table td {
  min-width: 92px;
  overflow-wrap: anywhere;
}

#protein-overlap-table th:first-child,
#protein-overlap-table td:first-child {
  min-width: 120px;
}

#protein-overlap-table th:nth-child(2),
#protein-overlap-table td:nth-child(2) {
  min-width: 145px;
}

#protein-overlap-table .overlap-confidence-cell {
  font-weight: 700;
}

#protein-search-table th,
#protein-search-table td {
  min-width: 0 !important;
  overflow-wrap: anywhere;
}

.overview-evidence-link {
  padding: 3px 8px;
  border: 1px solid #aeb7bc;
  border-radius: 0;
  background: #fff;
  color: var(--reference-table-link);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.overview-evidence-link:hover,
.overview-evidence-link:focus-visible {
  border-color: #555;
  text-decoration: underline;
}

.granule-name-link {
  border: 0;
  background: transparent;
}

.overview-evidence-link[aria-expanded="true"] {
  border-color: #272727;
  background: #272727;
  color: #fff;
  text-decoration: none;
}

#protein-granule-overview > tbody > tr.overview-detail-row > td {
  padding: 0 !important;
  border-top: 2px solid #272727 !important;
  border-bottom: 2px solid #272727 !important;
  background: #f6f7f7 !important;
  text-align: left !important;
}

.overview-inline-detail {
  padding: 16px;
}

.overview-inline-detail h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.overview-detail-table {
  table-layout: fixed;
  font-size: 12px !important;
}

.overview-detail-table th,
.overview-detail-table td {
  min-width: 0 !important;
  padding: 9px 7px !important;
  overflow-wrap: anywhere;
}

.evidence-detail-loading,
.evidence-detail-empty {
  padding: 18px;
  color: #555;
}

/* DataTables controls: square inputs and restrained grey buttons. */
.data-table-shell {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 18px 22px 24px;
  border-top: 1px solid #d4d4d4;
  background: #fff;
  box-sizing: border-box;
  overflow-x: hidden;
}

.data-table-shell .dt-container {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  color: #202020;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.data-table-shell .dt-layout-row {
  margin: 0 0 10px !important;
  align-items: center;
}

.data-table-shell .dt-layout-row:last-child {
  margin: 12px 0 0 !important;
}

.data-table-shell .dt-length select,
.data-table-shell .dt-search input {
  min-height: 36px;
  margin: 0 5px;
  padding: 6px 9px !important;
  border: 1px solid #aeb1b3 !important;
  border-radius: 2px !important;
  background: #fff !important;
  color: #202020;
  box-shadow: none !important;
  font: inherit;
}

.data-table-shell .dt-search input {
  min-width: 300px;
}

.data-table-shell .dt-info {
  color: #303030;
}

.data-table-shell .dt-paging button.dt-paging-button {
  min-width: 34px;
  min-height: 34px;
  margin: 0 2px;
  padding: 5px 9px !important;
  border: 1px solid #b9bcbe !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #202020 !important;
  box-shadow: none !important;
}

.data-table-shell .dt-paging button.dt-paging-button.current,
.data-table-shell .dt-paging button.dt-paging-button:hover {
  border-color: var(--reference-table-button) !important;
  background: var(--reference-table-button) !important;
  color: #fff !important;
}

.data-table-shell .dt-paging button.dt-paging-button.disabled {
  opacity: .45;
}

.data-table-shell .dt-column-header {
  position: relative;
  padding-right: 22px;
}

.data-table-shell .dt-column-order {
  position: absolute !important;
  top: 50% !important;
  right: 5px !important;
  width: 12px !important;
  height: 22px !important;
  transform: translateY(-50%);
}

.data-table-shell .dt-column-order::before,
.data-table-shell .dt-column-order::after {
  position: absolute !important;
  left: 0 !important;
  width: 12px;
  color: #fff !important;
  font-size: 9px !important;
  line-height: 10px !important;
  text-align: center;
  opacity: .62 !important;
}

.data-table-shell .dt-column-order::before {
  content: "▲" !important;
  top: 0 !important;
  bottom: auto !important;
}

.data-table-shell .dt-column-order::after {
  content: "▼" !important;
  top: auto !important;
  bottom: 0 !important;
}

.data-table-shell th[aria-sort="ascending"] .dt-column-order::before,
.data-table-shell th[aria-sort="descending"] .dt-column-order::after {
  opacity: 1 !important;
  text-shadow: 0 0 2px #fff;
}

.data-table-shell th[aria-sort="ascending"] .dt-column-order::after,
.data-table-shell th[aria-sort="descending"] .dt-column-order::before {
  opacity: .28 !important;
}

/* DataTables keeps a second header inside the scroll body for column sizing. */
.data-table-shell .dt-scroll-body > table.dataTable > thead > tr > th {
  min-height: 0 !important;
  height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-top-width: 0 !important;
  border-bottom-width: 0 !important;
  background: transparent !important;
  color: transparent !important;
}

.data-table-shell .dt-scroll-body .dt-scroll-sizing {
  height: 0 !important;
  overflow: hidden !important;
}

.data-table-shell .dt-processing {
  border: 1px solid #aeb1b3;
  border-radius: 0;
  background: rgba(255, 255, 255, .96);
  color: #202020;
  box-shadow: none;
}

.data-table-tools {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
}

.data-table-tools button,
.column-visibility-dialog button {
  border: 1px solid #626262;
  border-radius: 2px;
  background: var(--reference-table-button);
  color: #fff;
  padding: 9px 12px;
  font: 600 13px Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.data-table-tools button:hover,
.column-visibility-dialog button:hover {
  background: #545454;
}

.gene-search-row {
  display: flex;
  width: min(760px, 100%);
}

.gene-search-row input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--reference-table-grid);
  border-radius: 0;
  background: #fff;
  color: #202020;
  box-shadow: none;
  font: inherit;
}

.gene-search-row input:focus {
  border-color: #555;
  outline: 2px solid rgba(39, 39, 39, .16);
  outline-offset: -2px;
}

.gene-search-row button {
  flex: 0 0 auto;
  padding: 10px 20px;
  border: 1px solid #626262;
  border-radius: 0;
  background: var(--reference-table-button);
  color: #fff;
  font: 700 13px Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.gene-search-row button:hover {
  background: #545454;
}

.column-visibility-dialog {
  width: min(360px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 48px));
  padding: 0;
  border: 1px solid #aeb1b3;
  border-radius: 0;
  background: #fff;
  color: #202020;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .28);
  font: 14px Arial, Helvetica, sans-serif;
}

.column-visibility-dialog::backdrop {
  background: rgba(0, 0, 0, .38);
}

.column-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #e9e9e9;
  border-bottom: 1px solid #c8c8c8;
}

.column-dialog-heading strong {
  font-size: 15px;
}

.column-dialog-heading button {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #444;
  background: #fff;
  color: #202020;
  font-size: 19px;
  line-height: 22px;
}

.column-dialog-body {
  max-height: 500px;
  overflow-y: auto;
  padding: 11px 14px;
}

.column-check-all,
#column-visibility-options label {
  display: block;
  padding: 5px 0;
  cursor: pointer;
}

.column-check-all {
  margin-bottom: 5px;
  padding-bottom: 9px;
  border-bottom: 1px solid #dedede;
  font-weight: 700;
}

.column-visibility-dialog input[type="checkbox"] {
  accent-color: #427ee8;
}

.column-dialog-actions {
  padding: 10px 12px;
  border-top: 1px solid #d4d4d4;
  text-align: right;
}

.column-dialog-actions button {
  min-width: 54px;
}

@media (max-width: 650px) {
  .data-table-shell {
    padding: 12px;
  }

  .data-table-shell .dt-layout-row {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }

  .data-table-shell .dt-search input {
    width: 100%;
    min-width: 0;
    margin: 5px 0 0;
  }
}

.protein-evidence-count-button {
  display: inline-flex;
  min-width: 48px;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.protein-evidence-count-button .granule-evidence-count,
.protein-search-page .zero-evidence-count {
  white-space: nowrap;
}

.granule-enrichment-score,
.granule-ranking {
  display: block;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
