/*
 * Shared enhanced table controls for Orchid-GRP.
 * Add .orchid-table-enhanced to a DataTable wrapper card and initialize the
 * table with static/js/orchid-table-controls.js.
 */

body.site-shell td:is(.orchid-table-number, .gf-number, .mp-numeric),
body.site-shell .synvisio-results-table tbody td:is(:nth-child(-n + 3), :last-child),
body.site-shell .orchid-stats-matrix tbody td {
  font-family: "Segoe UI", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

body.site-shell table :is(th, td):is(.orchid-table-number, .gf-number, .mp-numeric),
body.site-shell .synvisio-results-table tbody td:is(:nth-child(-n + 3), :last-child),
body.site-shell .orchid-table-grid--genome table.dataTable :is(th, td).orchid-table-number {
  text-align: right !important;
}

body.site-shell .orchid-table-card {
  --orchid-table-primary: #8f2248;
  --orchid-table-accent: #c4477f;
  --orchid-table-soft: #fff7fa;
  --orchid-table-border: #ead1dc;
  margin-top: 28px;
  padding: 20px 20px 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--orchid-table-border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(95, 28, 55, 0.06);
}

body.site-shell .orchid-table-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  color: var(--orchid-table-primary);
  border-bottom: 1px solid var(--orchid-table-accent);
  font-size: 1.15rem;
  font-weight: 700;
}

body.site-shell .orchid-table-title i {
  color: var(--orchid-table-accent);
}

body.site-shell .orchid-table-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

body.site-shell .orchid-table-action {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--orchid-table-primary);
  border-radius: 7px;
  background: #ffffff;
  color: var(--orchid-table-primary);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

body.site-shell .orchid-table-action:hover,
body.site-shell .orchid-table-action:focus-visible {
  border-color: var(--orchid-table-accent);
  background: var(--orchid-table-soft);
  color: var(--orchid-table-primary);
  box-shadow: 0 4px 12px rgba(143, 34, 72, 0.12);
  text-decoration: none;
  transform: translateY(-1px);
}

body.site-shell .orchid-table-action--primary {
  border-color: var(--orchid-table-primary);
  background: var(--orchid-table-primary);
  color: #ffffff;
}

body.site-shell .orchid-table-action--primary:hover,
body.site-shell .orchid-table-action--primary:focus-visible {
  border-color: #761a3a;
  background: #761a3a;
  color: #ffffff;
}

body.site-shell .orchid-table-card > .table-responsive {
  overflow: visible;
}

body.site-shell .orchid-table-enhanced .orchid-table-controls,
body.site-shell .orchid-table-enhanced .orchid-table-footer {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

body.site-shell .orchid-table-enhanced .orchid-table-controls {
  margin: 0 0 12px;
}

body.site-shell .orchid-table-enhanced .dataTables_length,
body.site-shell .orchid-table-enhanced .dataTables_filter,
body.site-shell .orchid-table-enhanced .dataTables_info,
body.site-shell .orchid-table-enhanced .dataTables_paginate {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.site-shell .orchid-table-enhanced .dataTables_length label,
body.site-shell .orchid-table-enhanced .dataTables_filter label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #46313a;
  font-size: 0.88rem;
  font-weight: 600;
}

body.site-shell .orchid-table-enhanced .dataTables_length select,
body.site-shell .orchid-table-enhanced .dataTables_filter input {
  height: 36px;
  margin: 0 !important;
  border: 1px solid #dfc5d0;
  border-radius: 7px;
  background: #ffffff;
  color: #3c2630;
  outline: 0;
}

body.site-shell .orchid-table-enhanced .dataTables_length select {
  min-width: 70px;
  padding: 5px 26px 5px 9px;
}

body.site-shell .orchid-table-enhanced .dataTables_filter input {
  min-width: 210px;
  padding: 6px 10px;
}

body.site-shell .orchid-table-enhanced .dataTables_length select:focus,
body.site-shell .orchid-table-enhanced .dataTables_filter input:focus {
  border-color: var(--orchid-table-accent);
  box-shadow: 0 0 0 3px rgba(196, 71, 127, 0.12);
}

body.site-shell .orchid-table-enhanced .dataTables_scroll {
  border: 1px solid var(--orchid-table-border);
  border-radius: 9px;
  background: #ffffff;
}

body.site-shell .orchid-table-enhanced .dataTables_scrollHead {
  border-bottom: 0 !important;
}

body.site-shell .orchid-table-enhanced .dataTables_scrollBody {
  border-bottom: 0 !important;
  scrollbar-color: #d48aa9 #f9edf2;
  scrollbar-width: auto;
}

body.site-shell .orchid-table-enhanced .dataTables_scrollBody::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

body.site-shell .orchid-table-enhanced .dataTables_scrollBody::-webkit-scrollbar-track {
  background: #f9edf2;
  border-radius: 999px;
}

body.site-shell .orchid-table-enhanced .dataTables_scrollBody::-webkit-scrollbar-thumb {
  min-width: 72px;
  border: 2px solid #f9edf2;
  border-radius: 999px;
  background: #d48aa9;
}

body.site-shell .orchid-table-enhanced .dataTables_scrollBody::-webkit-scrollbar-thumb:hover {
  background: #bd668c;
}

body.site-shell .orchid-table-enhanced table.dataTable {
  width: 100% !important;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

body.site-shell .orchid-table-enhanced table.dataTable thead th {
  padding: 9px 22px 9px 8px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

body.site-shell .orchid-table-enhanced table.dataTable thead th.orchid-selection-column,
body.site-shell .orchid-table-enhanced table.dataTable tbody td.orchid-selection-column {
  width: 68px !important;
  min-width: 68px !important;
  padding-right: 8px !important;
  padding-left: 8px !important;
  text-align: center !important;
}

/*
 * Fixed grids keep DataTables' separately rendered scrolling header and body
 * on one column system. A grid variant supplies the total and column widths.
 */
body.site-shell .orchid-table-grid--fixed .dataTables_scrollHead table,
body.site-shell .orchid-table-grid--fixed .dataTables_scrollBody table {
  width: var(--orchid-table-grid-width) !important;
  min-width: var(--orchid-table-grid-width) !important;
  table-layout: fixed !important;
}

body.site-shell .orchid-table-grid--fixed table th,
body.site-shell .orchid-table-grid--fixed table td {
  box-sizing: border-box !important;
}

/* Genome database: selection column plus the 20 source-data columns. */
body.site-shell .orchid-table-grid--genome {
  --orchid-table-grid-width: 1923px;
}

body.site-shell .orchid-table-grid--genome table.dataTable thead th {
  padding: 12px 6px !important;
  border-bottom: 2px solid var(--orchid-table-accent) !important;
  background: #fff0f5 !important;
  color: var(--orchid-table-primary) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-align: center !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

body.site-shell .orchid-table-grid--genome table.dataTable tbody td {
  padding: 10px 6px !important;
  font-size: 13px !important;
  text-align: center !important;
  vertical-align: middle !important;
}

body.site-shell .orchid-table-grid--genome table.dataTable tbody tr {
  transition: background-color 0.15s ease;
}

body.site-shell .orchid-table-grid--genome table.dataTable tbody tr:hover {
  background-color: #fff5f8 !important;
}

body.site-shell .orchid-table-grid--genome table th,
body.site-shell .orchid-table-grid--genome table td {
  width: var(--orchid-column-width) !important;
  min-width: var(--orchid-column-width) !important;
  max-width: var(--orchid-column-width) !important;
}

body.site-shell .orchid-table-grid--genome table th:nth-child(1),
body.site-shell .orchid-table-grid--genome table td:nth-child(1) { --orchid-column-width: 80px; }
body.site-shell .orchid-table-grid--genome table th:nth-child(2),
body.site-shell .orchid-table-grid--genome table td:nth-child(2) { --orchid-column-width: 118px; }
body.site-shell .orchid-table-grid--genome table th:nth-child(3),
body.site-shell .orchid-table-grid--genome table td:nth-child(3) { --orchid-column-width: 100px; }
body.site-shell .orchid-table-grid--genome table th:nth-child(4),
body.site-shell .orchid-table-grid--genome table td:nth-child(4) { --orchid-column-width: 105px; }
body.site-shell .orchid-table-grid--genome table th:nth-child(5),
body.site-shell .orchid-table-grid--genome table td:nth-child(5) { --orchid-column-width: 150px; }
body.site-shell .orchid-table-grid--genome table th:nth-child(6),
body.site-shell .orchid-table-grid--genome table td:nth-child(6) { --orchid-column-width: 70px; }
body.site-shell .orchid-table-grid--genome table th:nth-child(7),
body.site-shell .orchid-table-grid--genome table td:nth-child(7) { --orchid-column-width: 65px; }
body.site-shell .orchid-table-grid--genome table th:nth-child(8),
body.site-shell .orchid-table-grid--genome table td:nth-child(8) { --orchid-column-width: 80px; }
body.site-shell .orchid-table-grid--genome table th:nth-child(9),
body.site-shell .orchid-table-grid--genome table td:nth-child(9) { --orchid-column-width: 92px; }
body.site-shell .orchid-table-grid--genome table th:nth-child(10),
body.site-shell .orchid-table-grid--genome table td:nth-child(10) { --orchid-column-width: 105px; }
body.site-shell .orchid-table-grid--genome table th:nth-child(11),
body.site-shell .orchid-table-grid--genome table td:nth-child(11) { --orchid-column-width: 75px; }
body.site-shell .orchid-table-grid--genome table th:nth-child(12),
body.site-shell .orchid-table-grid--genome table td:nth-child(12) { --orchid-column-width: 60px; }
body.site-shell .orchid-table-grid--genome table th:nth-child(13),
body.site-shell .orchid-table-grid--genome table td:nth-child(13) { --orchid-column-width: 72px; }
body.site-shell .orchid-table-grid--genome table th:nth-child(14),
body.site-shell .orchid-table-grid--genome table td:nth-child(14) { --orchid-column-width: 130px; }
body.site-shell .orchid-table-grid--genome table th:nth-child(15),
body.site-shell .orchid-table-grid--genome table td:nth-child(15) { --orchid-column-width: 112px; }
body.site-shell .orchid-table-grid--genome table th:nth-child(16),
body.site-shell .orchid-table-grid--genome table td:nth-child(16) { --orchid-column-width: 88px; }
body.site-shell .orchid-table-grid--genome table th:nth-child(17),
body.site-shell .orchid-table-grid--genome table td:nth-child(17) { --orchid-column-width: 54px; }
body.site-shell .orchid-table-grid--genome table th:nth-child(18),
body.site-shell .orchid-table-grid--genome table td:nth-child(18) { --orchid-column-width: 54px; }
body.site-shell .orchid-table-grid--genome table th:nth-child(19),
body.site-shell .orchid-table-grid--genome table td:nth-child(19) { --orchid-column-width: 58px; }
body.site-shell .orchid-table-grid--genome table th:nth-child(20),
body.site-shell .orchid-table-grid--genome table td:nth-child(20) { --orchid-column-width: 95px; }
body.site-shell .orchid-table-grid--genome table th:nth-child(21),
body.site-shell .orchid-table-grid--genome table td:nth-child(21) { --orchid-column-width: 160px; }

body.site-shell .orchid-table-grid--genome .subfamily-row td {
  padding: 8px 12px !important;
  border-top: 2px solid #e8b4c8 !important;
  border-bottom: 1px solid #e8b4c8 !important;
  background: #fdf2f6 !important;
  color: var(--orchid-table-primary) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-align: left !important;
}

body.site-shell .orchid-table-grid--genome .dl-link {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--orchid-table-primary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

body.site-shell .orchid-table-grid--genome .dl-link:hover {
  background: #fff0f5;
  color: var(--orchid-table-accent);
  text-decoration: none;
}

body.site-shell .orchid-table-grid--genome .dl-link.disabled {
  color: #cccccc;
  cursor: not-allowed;
  pointer-events: none;
}

body.site-shell .orchid-table-grid--genome .dl-link i {
  font-size: 0.9rem;
}

body.site-shell .orchid-table-grid--genome .platform-check {
  color: #28a745;
  font-size: 1.1rem;
  font-weight: 700;
}

body.site-shell .orchid-table-grid--genome .platform-dash {
  color: #cccccc;
}

body.site-shell .genome-version-badge {
  background-color: #6e505f;
  color: #ffffff;
  font-size: 0.75rem;
}

body.site-shell .orchid-table-grid--genome .level-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

body.site-shell .orchid-table-grid--genome .level-chromosome {
  background: #d4edda;
  color: #155724;
}

body.site-shell .orchid-table-grid--genome .level-scaffold {
  background: #fff3cd;
  color: #856404;
}

body.site-shell .orchid-table-grid--genome .level-haplotype {
  background: #cce5ff;
  color: #004085;
}

body.site-shell .orchid-table-grid--genome .level-contig {
  background: #f8d7da;
  color: #721c24;
}

body.site-shell .orchid-table-grid--genome .ref-link {
  color: var(--orchid-table-primary);
  font-size: 0.83rem;
  font-weight: 500;
  white-space: nowrap;
}

body.site-shell .orchid-table-grid--genome .ref-link:hover {
  color: var(--orchid-table-accent);
}

body.site-shell .orchid-table-grid--genome .source-link {
  color: #0056b3;
  font-size: 0.85rem;
  font-weight: 500;
}

body.site-shell .orchid-table-enhanced .orchid-current-page-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
}

body.site-shell .orchid-table-enhanced .orchid-row-checkbox,
body.site-shell .orchid-table-enhanced .orchid-current-page-checkbox {
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--orchid-table-primary);
}

body.site-shell .orchid-table-enhanced .orchid-table-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--orchid-table-border);
}

body.site-shell .orchid-table-enhanced .dataTables_info {
  color: #66515a;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

body.site-shell .orchid-table-enhanced .dataTables_paginate {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
}

body.site-shell .orchid-table-enhanced .dataTables_paginate span {
  display: inline-flex;
  gap: 5px;
}

body.site-shell .orchid-table-enhanced .dataTables_paginate a.paginate_button,
body.site-shell .orchid-table-enhanced .dataTables_paginate button.paginate_button {
  display: inline-flex !important;
  min-width: 34px;
  height: 34px !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 9px !important;
  border: 1px solid #ddcbd3 !important;
  border-radius: 7px;
  background: #ffffff !important;
  box-shadow: none !important;
  color: #5a3b48 !important;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1 !important;
  text-decoration: none !important;
}

body.site-shell .orchid-table-enhanced .dataTables_paginate a.paginate_button:not(.current):not(.disabled):hover,
body.site-shell .orchid-table-enhanced .dataTables_paginate button.paginate_button:not(.current):not(.disabled):hover {
  border-color: #d594b0 !important;
  background: #fff2f7 !important;
  color: var(--orchid-table-primary) !important;
}

body.site-shell .orchid-table-enhanced .dataTables_paginate a.paginate_button.current,
body.site-shell .orchid-table-enhanced .dataTables_paginate a.paginate_button.current:hover,
body.site-shell .orchid-table-enhanced .dataTables_paginate button.paginate_button.current,
body.site-shell .orchid-table-enhanced .dataTables_paginate button.paginate_button.current:hover {
  border-color: var(--orchid-table-primary) !important;
  background: var(--orchid-table-primary) !important;
  color: #ffffff !important;
}

body.site-shell .orchid-table-enhanced .dataTables_paginate a.paginate_button.disabled,
body.site-shell .orchid-table-enhanced .dataTables_paginate a.paginate_button.disabled:hover,
body.site-shell .orchid-table-enhanced .dataTables_paginate button.paginate_button.disabled,
body.site-shell .orchid-table-enhanced .dataTables_paginate button.paginate_button.disabled:hover {
  border-color: #eadfe4 !important;
  background: #faf7f8 !important;
  color: #c1b4ba !important;
}

body.site-shell .orchid-table-enhanced .orchid-page-jump-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  color: #66515a;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Bootstrap labels have a bottom margin that otherwise lifts "Page" upward. */
body.site-shell .orchid-table-enhanced .orchid-page-jump-control > label,
body.site-shell .orchid-table-enhanced .orchid-page-jump-total {
  display: inline-flex;
  height: 34px;
  align-items: center;
  margin: 0;
  line-height: 1;
}

body.site-shell .orchid-table-enhanced .orchid-page-jump-input {
  width: 54px;
  height: 34px;
  padding: 0 6px;
  border: 1px solid #ddcbd3;
  border-radius: 7px;
  color: #442c36;
  font: inherit;
  text-align: center;
  outline: 0;
}

body.site-shell .orchid-table-enhanced .orchid-page-jump-input:focus {
  border-color: var(--orchid-table-accent);
  box-shadow: 0 0 0 3px rgba(196, 71, 127, 0.12);
}

body.site-shell .orchid-table-enhanced .orchid-page-jump-total {
  color: #6e505f;
}

body.site-shell .orchid-table-enhanced .orchid-page-jump-button {
  height: 34px;
  padding: 0 11px;
  border: 1px solid #d594b0;
  border-radius: 7px;
  background: #fff7fa;
  color: var(--orchid-table-primary);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
}

body.site-shell .orchid-table-enhanced .orchid-page-jump-button:hover {
  border-color: var(--orchid-table-accent);
  background: #ffedf4;
}

@media (max-width: 768px) {
  body.site-shell .orchid-table-card {
    padding: 14px 12px;
  }

  body.site-shell .orchid-table-enhanced .orchid-table-controls,
  body.site-shell .orchid-table-enhanced .orchid-table-footer {
    align-items: stretch;
    flex-direction: column;
  }

  body.site-shell .orchid-table-enhanced .dataTables_length,
  body.site-shell .orchid-table-enhanced .dataTables_filter,
  body.site-shell .orchid-table-enhanced .dataTables_info,
  body.site-shell .orchid-table-enhanced .dataTables_paginate {
    width: 100%;
    text-align: center !important;
  }

  body.site-shell .orchid-table-enhanced .dataTables_length label,
  body.site-shell .orchid-table-enhanced .dataTables_filter label {
    width: 100%;
    justify-content: space-between;
  }

  body.site-shell .orchid-table-enhanced .dataTables_filter input {
    min-width: 0;
    flex: 1 1 auto;
  }

  body.site-shell .orchid-table-enhanced .dataTables_paginate {
    justify-content: center;
  }
}

/* Server-paginated result tables share the genome table visual system. */
body.site-shell .orchid-server-table-card {
  margin-top: 22px;
}

body.site-shell .orchid-server-table-card .orchid-table-title {
  justify-content: space-between;
}

body.site-shell .orchid-table-title-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.site-shell .orchid-table-count {
  color: #755765;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
}

body.site-shell .orchid-table-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.site-shell .orchid-server-table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 2px 0 16px;
}

body.site-shell .orchid-server-table-length,
body.site-shell .orchid-server-table-search label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #34232b;
  font-size: 0.88rem;
  font-weight: 600;
}

body.site-shell .orchid-server-table-length select,
body.site-shell .orchid-server-table-search input,
body.site-shell .orchid-page-jump-input {
  height: 38px;
  border: 1px solid #dfc5d0;
  border-radius: 7px;
  background: #ffffff;
  color: #3c2630;
  outline: 0;
}

body.site-shell .orchid-server-table-length select {
  min-width: 82px;
  padding: 5px 28px 5px 12px;
}

body.site-shell .orchid-server-table-search input {
  width: 210px;
  padding: 6px 10px;
}

body.site-shell .orchid-server-table-length select:focus,
body.site-shell .orchid-server-table-search input:focus,
body.site-shell .orchid-page-jump-input:focus {
  border-color: var(--orchid-table-accent);
  box-shadow: 0 0 0 3px rgba(196, 71, 127, 0.12);
}

body.site-shell .orchid-server-table-scroll {
  overflow-x: auto !important;
  border: 1px solid var(--orchid-table-border);
  border-radius: 9px;
  scrollbar-color: #d48aa9 #f9edf2;
  scrollbar-width: thin;
}

body.site-shell .orchid-server-table-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.site-shell .orchid-server-table-scroll::-webkit-scrollbar-track {
  background: #f9edf2;
}

body.site-shell .orchid-server-table-scroll::-webkit-scrollbar-thumb {
  border: 2px solid #f9edf2;
  border-radius: 999px;
  background: #d48aa9;
}

body.site-shell table.orchid-server-table {
  width: 100%;
  min-width: 760px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
}

body.site-shell table.orchid-server-table thead th {
  padding: 12px 10px;
  border: 0;
  border-bottom: 2px solid var(--orchid-table-accent);
  background: #fff0f5;
  color: var(--orchid-table-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

body.site-shell table.orchid-server-table tbody td {
  padding: 10px;
  border: 0;
  border-bottom: 1px solid #f1e5ea;
  color: #3f3037;
  font-size: 13px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

body.site-shell table.orchid-server-table tbody tr:last-child td {
  border-bottom: 0;
}

body.site-shell table.orchid-server-table tbody tr {
  transition: background-color 0.15s ease;
}

body.site-shell table.orchid-server-table tbody tr:hover {
  background: #fff5f8;
}

body.site-shell table.orchid-server-table tbody tr:nth-child(even) {
  background: #fcfafb;
}

body.site-shell table.orchid-server-table tbody tr:nth-child(even):hover {
  background: #fff5f8;
}

body.site-shell .orchid-server-table .orchid-selection-column {
  width: 82px;
  min-width: 82px;
  text-align: center;
}

body.site-shell .orchid-server-table-select-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  cursor: pointer;
}

body.site-shell table.orchid-server-table a {
  color: var(--orchid-table-primary);
  font-weight: 600;
  text-decoration: none;
}

body.site-shell table.orchid-server-table a:hover {
  color: var(--orchid-table-accent);
  text-decoration: underline;
}

body.site-shell .orchid-server-table .orchid-row-checkbox {
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--orchid-table-primary);
}

body.site-shell .orchid-server-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--orchid-table-border);
}

body.site-shell .orchid-server-table-status {
  color: #66515a;
  font-size: 0.86rem;
  font-weight: 600;
}

body.site-shell .orchid-server-pagination {
  margin: 0;
}

body.site-shell .orchid-server-table-footer-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

body.site-shell .orchid-page-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #66515a;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

body.site-shell .orchid-page-jump-input {
  width: 54px;
  padding: 0 6px;
  text-align: center;
}

body.site-shell .orchid-page-jump-button {
  height: 34px;
  padding: 0 11px;
  border: 1px solid #d594b0;
  border-radius: 7px;
  background: #fff7fa;
  color: var(--orchid-table-primary);
  font-size: 0.8rem;
  font-weight: 800;
}

body.site-shell .orchid-page-jump-button:hover {
  border-color: var(--orchid-table-accent);
  background: #ffedf4;
}

body.site-shell .orchid-server-pagination .page-link {
  min-width: 34px;
  padding: 7px 10px !important;
  border-color: #ddcbd3 !important;
  color: #5a3b48 !important;
  font-size: 0.8rem !important;
  font-weight: 700;
}

body.site-shell .orchid-server-pagination .page-item.active .page-link {
  border-color: var(--orchid-table-primary) !important;
  background: var(--orchid-table-primary) !important;
  color: #ffffff !important;
}

@media (max-width: 768px) {
  body.site-shell .orchid-server-table-card .orchid-table-title,
  body.site-shell .orchid-server-table-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  body.site-shell .orchid-server-pagination {
    align-self: center;
  }

  body.site-shell .orchid-server-table-controls {
    align-items: stretch;
    flex-direction: column;
  }

  body.site-shell .orchid-server-table-search label,
  body.site-shell .orchid-server-table-search input {
    width: 100%;
  }

  body.site-shell .orchid-server-table-footer-controls {
    width: 100%;
    justify-content: center;
  }

  body.site-shell .orchid-table-action-group {
    width: 100%;
  }

  body.site-shell .orchid-table-action-group .orchid-table-action {
    flex: 1 1 auto;
  }
}
