/* VOR UI redesign v2: operational lists and quiet page surfaces. */

.queue-wave-a,
.dealer-page,
.administration-page,
.import-page {
  --ops-ink: #1c1c1a;
  --ops-muted: #686865;
  --ops-line: #dededb;
  --ops-line-strong: #b9b9b4;
  --ops-surface: #ffffff;
  --ops-subtle: #f4f4f1;
  --ops-danger: #b42318;
}

.operational-page {
  min-width: 0;
}

.operational-page .page-heading,
.operational-page .case-heading {
  margin-bottom: 26px;
}

.operational-page .page-actions,
.operational-page .page-heading-actions,
.operational-page .queue-heading-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.operational-page .page-actions .button,
.operational-page .page-heading-actions .button {
  white-space: nowrap;
}

.queue-page .page-heading {
  align-items: center;
}

.queue-page .page-heading-actions {
  gap: 16px;
}

.queue-page .heading-summary {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding-right: 14px;
  border-right: 1px solid var(--ops-line);
  color: var(--ops-muted);
  font-size: 0.78rem;
}

.queue-page .heading-summary strong {
  color: var(--ops-ink);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.queue-page .queue-filter-surface {
  margin-bottom: 28px;
  padding: 0 0 20px;
  border: 0;
  border-bottom: 1px solid var(--ops-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.queue-page .queue-filter-form {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) minmax(190px, 0.75fr);
  gap: 12px 16px;
  align-items: end;
}

/* The shared legacy form rule gives .field-search a two-track span.  Queue's
   compact search row has exactly one track per primary control, so keep the
   search field beside Dealer at desktop and intermediate widths. */
.queue-page .queue-filter-form .field-search {
  grid-column: auto;
}

.queue-page .queue-filter-form > .queue-filter-details,
.queue-page .queue-filter-form > .filter-actions {
  grid-column: 1 / -1;
}

.queue-page .queue-filter-form .field {
  min-width: 0;
}

.queue-page .queue-filter-form .field label,
.dealer-page .dealer-filter-surface .field label,
.administration-page .admin-filter-panel .field label {
  color: var(--ops-muted);
  font-size: 0.73rem;
  font-weight: 600;
}

.queue-page .queue-filter-form input,
.queue-page .queue-filter-form select,
.dealer-page .dealer-filter-surface input,
.administration-page .admin-filter-panel input,
.administration-page .admin-filter-panel select {
  min-height: 40px;
  border-color: var(--ops-line-strong);
  border-radius: 4px;
  background: var(--ops-surface);
}

.queue-page .queue-dealer-control {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.queue-page .queue-dealer-control:focus-within {
  z-index: 2;
}

.queue-page .queue-dealer-control input {
  min-width: 0;
  width: 100%;
  padding-right: 38px;
}

.queue-page .queue-dealer-clear {
  position: absolute;
  right: 7px;
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ops-muted);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

.queue-page .queue-dealer-clear:hover,
.queue-page .queue-dealer-clear:focus-visible {
  background: var(--ops-subtle);
  color: var(--ops-ink);
}

.queue-page .queue-dealer-listbox {
  position: absolute;
  top: calc(100% + 4px);
  z-index: 5;
  right: 0;
  left: 0;
  box-sizing: border-box;
  max-height: 260px;
  overflow-y: auto;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--ops-line-strong);
  border-radius: 4px;
  background: var(--ops-surface);
  box-shadow: 0 8px 18px rgb(0 0 0 / 10%);
  list-style: none;
}

.queue-page .queue-dealer-option {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  align-items: baseline;
  padding: 8px 9px;
  border-radius: 3px;
  color: var(--ops-ink);
  cursor: pointer;
}

.queue-page .queue-dealer-option:hover,
.queue-page .queue-dealer-option:focus-visible,
.queue-page .queue-dealer-option.is-active {
  outline: 0;
  background: var(--ops-subtle);
}

.queue-page .queue-dealer-option-code {
  color: var(--ops-ink);
  font-weight: 600;
}

.queue-page .queue-dealer-option-name {
  color: var(--ops-muted);
}

.queue-page .queue-dealer-no-results {
  padding: 8px 9px;
  color: var(--ops-muted);
  font-size: 0.78rem;
}

.queue-page .queue-dealer-status {
  min-height: 1.1em;
  margin-top: 4px;
  color: var(--ops-muted);
  font-size: 0.72rem;
}

.queue-page .queue-dealer-field {
  position: relative;
}

.queue-page .queue-filter-details,
.administration-page .filter-disclosure {
  min-width: 0;
  border-top: 1px solid var(--ops-line);
}

.queue-page .queue-filter-details summary,
.administration-page .filter-disclosure summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 0 2px;
  color: var(--ops-ink);
  cursor: pointer;
  list-style: none;
}

.queue-page .queue-filter-details summary::-webkit-details-marker,
.administration-page .filter-disclosure summary::-webkit-details-marker {
  display: none;
}

.queue-page .queue-filter-details summary::before,
.administration-page .filter-disclosure summary::before {
  color: var(--ops-muted);
  content: "+";
  font-size: 1rem;
  font-weight: 400;
}

.queue-page .queue-filter-details[open] summary::before,
.administration-page .filter-disclosure[open] summary::before {
  content: "−";
}

.queue-page .queue-filter-details summary:focus-visible,
.administration-page .filter-disclosure summary:focus-visible {
  outline: 2px solid var(--ops-ink);
  outline-offset: 3px;
}

.queue-page .filter-disclosure-title,
.administration-page .filter-disclosure-title {
  font-size: 0.78rem;
  font-weight: 600;
}

.queue-page .queue-secondary-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px 14px;
  align-items: start;
  padding-top: 12px;
}

.queue-page .queue-last-updated-field .field-help {
  margin: 5px 0 0;
  color: var(--ops-muted);
  font-size: 0.7rem;
  line-height: 1.3;
}

.queue-page .filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}

.queue-page .queue-secondary-filters > .filter-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.queue-page .filter-actions .button {
  min-width: 112px;
}

.queue-page .queue-table-surface {
  margin-bottom: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.queue-page .queue-table-surface .table-heading {
  align-items: baseline;
  margin-bottom: 12px;
  padding: 0;
}

.queue-page .queue-table-surface .table-heading h2 {
  font-size: 1rem;
  font-weight: 600;
}

.queue-page .reset-view {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 0.76rem;
}

.queue-page .desktop-case-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  contain: paint;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--ops-line);
  border-radius: 4px;
  background: var(--ops-surface);
}

.queue-page .cases-table {
  width: 100%;
  /* The 1280px shell leaves roughly 926px for the main content column.  Keep
     a readable ledger width and let the existing wrapper own the horizontal
     scroll, so the final columns never compete for compressed tracks or push
     the document wider than its viewport. */
  min-width: 1160px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.78rem;
}

/* Keep all nine queue fields scanable across the workspace.  The explicit
   tracks give VIN/Rego and the right-side source/day/date metadata enough
   room at the 1280px operating view; the wrapper remains the only
   horizontal-scroll boundary when the surface cannot show the full ledger. */
.queue-page .cases-table th:nth-child(1),
.queue-page .cases-table td:nth-child(1) {
  width: 15%;
}

.queue-page .cases-table th:nth-child(2),
.queue-page .cases-table td:nth-child(2) {
  width: 11%;
}

.queue-page .cases-table th:nth-child(3),
.queue-page .cases-table td:nth-child(3) {
  width: 15%;
}

.queue-page .cases-table th:nth-child(4),
.queue-page .cases-table td:nth-child(4) {
  width: 8%;
}

.queue-page .cases-table th:nth-child(5),
.queue-page .cases-table td:nth-child(5) {
  width: 9%;
}

.queue-page .cases-table th:nth-child(6),
.queue-page .cases-table td:nth-child(6) {
  width: 9%;
}

.queue-page .cases-table th:nth-child(7),
.queue-page .cases-table td:nth-child(7) {
  width: 14%;
}

.queue-page .cases-table th:nth-child(8),
.queue-page .cases-table td:nth-child(8) {
  width: 10%;
}

.queue-page .cases-table th:nth-child(9),
.queue-page .cases-table td:nth-child(9) {
  width: 9%;
}

.queue-page .cases-table thead th {
  padding: 8px 8px;
  border-top: 0;
  border-bottom: 1px solid var(--ops-line);
  background: var(--ops-subtle);
  color: var(--ops-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  white-space: nowrap;
}

.queue-page .cases-table tbody th,
.queue-page .cases-table tbody td {
  padding: 9px 8px;
  border-top: 1px solid var(--ops-line);
  color: var(--ops-ink);
  vertical-align: middle;
}

.queue-page .cases-table tbody tr:first-child th,
.queue-page .cases-table tbody tr:first-child td {
  border-top: 0;
}

.queue-page .cases-table tbody tr:hover,
.queue-page .cases-table tbody tr:focus-within {
  background: var(--ops-subtle);
}

.queue-page .cases-table th:first-child,
.queue-page .cases-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--ops-surface);
}

.queue-page .cases-table thead th:first-child {
  z-index: 2;
  background: var(--ops-subtle);
}

.queue-page .cases-table tbody tr:hover th:first-child,
.queue-page .cases-table tbody tr:focus-within th:first-child {
  background: var(--ops-subtle);
}

.queue-page .primary-cell {
  font-weight: 500;
}

.queue-page .vehicle-cell {
  white-space: nowrap;
}

.queue-page .case-row-link {
  color: var(--ops-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.queue-page .case-row-link:hover,
.queue-page .case-row-link:focus-visible {
  text-decoration-color: currentColor;
}

.queue-page .numeric-cell,
.queue-page .numeric-cell strong,
.queue-page .loan-days-value {
  font-variant-numeric: tabular-nums;
}

.queue-page .numeric-cell strong {
  font-size: 0.93rem;
  font-weight: 600;
}

/* VOR age is presentation-only.  The shared shell supplies the colour
   tokens; fallbacks keep this local surface usable while the token layer is
   loaded independently. */
.queue-page .vor-age-neutral,
.queue-page .vor-age-watch,
.queue-page .vor-age-elevated,
.queue-page .vor-age-critical {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.queue-page .vor-age-watch {
  color: var(--vor-age-yellow, #86650a);
}

.queue-page .vor-age-elevated {
  color: var(--vor-age-orange, #a14b00);
}

.queue-page .vor-age-critical {
  color: var(--vor-age-red, var(--ops-danger));
}

.queue-page .sort-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  text-decoration: none;
}

.queue-page .sort-link:hover,
.queue-page .sort-link:focus-visible,
.queue-page .sort-link.is-active {
  color: var(--ops-ink);
}

.queue-page .sort-indicator {
  color: var(--ops-muted);
  font-size: 0.8rem;
  font-weight: 400;
}

.queue-page .status-label {
  border-color: var(--ops-line);
  background: transparent;
  color: var(--ops-ink);
  font-size: 0.72rem;
  font-weight: 500;
}

.queue-page .status-exceeded,
.queue-page .status-invalidated {
  border-color: #dfaaa5;
  background: #fff6f5;
  color: var(--ops-danger);
}

.queue-page .completed-row,
.queue-page .completed-row th:first-child,
.queue-page .invalidated-row,
.queue-page .invalidated-row th:first-child {
  background: #fafaf8;
}

.queue-page .relative-time {
  white-space: nowrap;
}

.queue-page .loaner-source-cell,
.queue-page .loan-days-cell {
  white-space: nowrap;
}

.queue-page .mobile-case-list {
  display: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ops-line);
  list-style: none;
}

.queue-page .mobile-case-item {
  border-bottom: 1px solid var(--ops-line);
}

.queue-page .mobile-case-link {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  color: var(--ops-ink);
  text-decoration: none;
}

.queue-page .mobile-case-link:hover,
.queue-page .mobile-case-link:focus-visible {
  background: transparent;
}

.queue-page .mobile-case-topline,
.queue-page .mobile-case-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.queue-page .mobile-case-topline strong {
  font-weight: 600;
}

.queue-page .mobile-case-vor {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.queue-page .mobile-case-summary,
.queue-page .mobile-case-meta {
  color: var(--ops-muted);
  font-size: 0.76rem;
}

.queue-page .mobile-case-loan-days {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.queue-page .mobile-case-meta {
  justify-content: flex-start;
  gap: 12px;
}

.queue-page .queue-empty-state {
  padding: 24px 0;
  border-top: 1px solid var(--ops-line);
  border-bottom: 1px solid var(--ops-line);
}

.queue-page .queue-empty-state h2 {
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 600;
}

.queue-page .queue-empty-state p {
  margin-bottom: 14px;
  color: var(--ops-muted);
}

/* Shared operational list language for Dealer and Administration pages. */
.dealer-page .dealer-filter-surface,
.dealer-page .dealer-form-surface,
.dealer-page .dealer-history-surface,
.administration-page .admin-form-surface,
.administration-page .accounts-filter-surface,
.administration-page .account-filter-surface,
.administration-page .security-filter-surface,
.operational-page .import-form-surface {
  margin-bottom: 24px;
  padding: 0 0 20px;
  border: 0;
  border-bottom: 1px solid var(--ops-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dealer-page .dealer-filter-surface .filter-form,
.dealer-page .dealer-form-surface form,
.administration-page .admin-form-surface form,
.administration-page .accounts-filter-surface form,
.administration-page .account-filter-surface form,
.administration-page .security-filter-surface form,
.operational-page .import-form-surface form {
  max-width: 920px;
}

.dealer-page .dealer-table-surface,
.administration-page .account-table-surface,
.administration-page .change-log-table-surface,
.administration-page .security-table-surface,
.administration-page section[aria-labelledby="account-history-timeline-heading"],
.operational-page .import-result-surface {
  margin-bottom: 24px;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--ops-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dealer-page .dealer-table-surface .section-heading,
.administration-page .account-table-surface .section-heading,
.administration-page .change-log-table-surface .section-heading,
.administration-page .security-table-surface .section-heading,
.administration-page section[aria-labelledby="account-history-timeline-heading"] .section-heading,
.operational-page .import-result-surface .section-heading {
  margin-bottom: 12px;
  padding: 16px 0 0;
}

.dealer-page .dealer-table-surface .table-wrap,
.administration-page .account-table-surface .table-wrap,
.administration-page .change-log-table-surface .table-wrap,
.administration-page .security-table-surface .table-wrap,
.operational-page .import-result-surface .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--ops-line);
  border-radius: 4px;
  background: var(--ops-surface);
}

.dealer-page .dealer-table,
.administration-page .data-table {
  min-width: 700px;
  font-size: 0.82rem;
}

.dealer-page .dealer-table thead th,
.administration-page .data-table thead th {
  padding: 10px 12px;
  border-top: 0;
  border-bottom: 1px solid var(--ops-line);
  background: var(--ops-subtle);
  color: var(--ops-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
}

.dealer-page .dealer-table tbody th,
.dealer-page .dealer-table tbody td,
.administration-page .data-table tbody th,
.administration-page .data-table tbody td {
  padding: 11px 12px;
  border-top: 1px solid var(--ops-line);
  vertical-align: middle;
}

.dealer-page .dealer-table tbody tr:hover,
.administration-page .data-table tbody tr:hover {
  background: var(--ops-subtle);
}

.dealer-page .inline-edit-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.dealer-page .inline-edit-form input {
  min-width: min(15rem, 100%);
  min-height: 36px;
}

.dealer-page .dealer-history-surface .history-list {
  max-width: 900px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dealer-page .dealer-history-surface .history-list li {
  padding: 12px 0;
  border-top: 1px solid var(--ops-line);
}

.dealer-page .dealer-history-surface .history-list li:first-child {
  border-top: 0;
}

.administration-page .admin-log-advanced-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}

.administration-page .admin-filter-heading {
  margin-bottom: 12px;
}

.administration-page .filter-disclosure-body {
  padding-top: 12px;
}

.administration-page .admin-log-filter-form > .filter-disclosure,
.administration-page .admin-log-filter-form > .filter-actions {
  grid-column: 1 / -1;
}

.administration-page .account-actions-cell {
  white-space: nowrap;
}

.administration-page .status-label {
  border-color: var(--ops-line);
  background: transparent;
  color: var(--ops-ink);
  font-weight: 500;
}

.administration-page .status-exceeded,
.administration-page .status-warning {
  border-color: #dfaaa5;
  background: #fff6f5;
  color: var(--ops-danger);
}

.operational-page .import-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 16px;
  border-top: 1px solid var(--ops-line);
  border-bottom: 1px solid var(--ops-line);
}

.operational-page .import-summary > div {
  padding: 10px 12px;
  border-left: 1px solid var(--ops-line);
}

.operational-page .import-summary > div:first-child {
  border-left: 0;
}

.operational-page .import-summary dt {
  color: var(--ops-muted);
  font-size: 0.7rem;
}

.operational-page .import-summary dd {
  margin: 3px 0 0;
  color: var(--ops-ink);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.operational-page .import-error-panel,
.operational-page .import-success-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ops-line);
}

.operational-page .import-error-panel {
  color: var(--ops-danger);
}

.operational-page .import-success-panel {
  color: var(--ops-ink);
}

.operational-page .import-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.operational-page .import-page-toolbar {
  width: auto;
  justify-content: flex-end;
}

.operational-page .credential-handoff,
.administration-page .credential-handoff {
  padding: 16px 0;
  border: 0;
  border-top: 1px solid var(--ops-line);
  border-bottom: 1px solid var(--ops-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 1050px) {
  .queue-page .queue-filter-form {
    grid-template-columns: minmax(220px, 1.2fr) minmax(170px, 0.8fr);
  }

  .queue-page .queue-secondary-filters {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .administration-page .admin-log-advanced-fields {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 760px) {
  .operational-page .page-heading,
  .operational-page .case-heading,
  .operational-page .import-page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .operational-page .page-actions,
  .operational-page .page-heading-actions,
  .operational-page .import-page-toolbar {
    justify-content: flex-start;
    width: 100%;
  }

  .operational-page .page-actions .button,
  .operational-page .page-heading-actions .button,
  .operational-page .import-page-toolbar .button {
    flex: 1 1 auto;
  }

  .queue-page .heading-summary {
    padding-right: 10px;
  }

  .queue-page .queue-filter-form,
  .queue-page .queue-secondary-filters,
  .administration-page .admin-log-advanced-fields {
    grid-template-columns: 1fr;
  }

  .queue-page .queue-filter-form > .filter-actions,
  .queue-page .queue-secondary-filters > .filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .queue-page .filter-actions .button,
  .dealer-page .filter-actions .button {
    width: 100%;
  }

  .queue-page .desktop-case-table {
    display: none;
  }

  .queue-page .mobile-case-list {
    display: block;
  }

  .operational-page .import-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operational-page .import-summary > div:nth-child(odd) {
    border-left: 0;
  }

  .operational-page .import-summary > div:nth-child(n + 3) {
    border-top: 1px solid var(--ops-line);
  }

  .dealer-page .dealer-master-actions,
  .dealer-page .import-page-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .dealer-page .dealer-master-actions .button,
  .dealer-page .import-page-actions .button {
    width: 100%;
  }

  .dealer-page .inline-edit-form {
    align-items: stretch;
    flex-direction: column;
  }

  .dealer-page .inline-edit-form input {
    min-width: 0;
    width: 100%;
  }

  .administration-page .account-table-surface .table-wrap,
  .administration-page .change-log-table-surface .table-wrap,
  .administration-page .security-table-surface .table-wrap,
  .dealer-page .dealer-table-surface .table-wrap {
    max-width: calc(100vw - 32px);
  }
}

.queue-page .queue-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--ops-line);
  color: var(--ops-muted);
  font-size: 0.78rem;
}

.queue-page .queue-pagination-start,
.queue-page .queue-pagination-end,
.queue-page .queue-page-size-form,
.queue-page .queue-page-jump,
.queue-page .queue-page-numbers {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.queue-page .queue-pagination-start,
.queue-page .queue-pagination-end {
  gap: 10px;
}

.queue-page .queue-pagination-end {
  margin-inline-start: auto;
}

.queue-page .queue-total-rows {
  color: var(--ops-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.queue-page .queue-pagination-summary {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.queue-page .queue-page-size-form,
.queue-page .queue-page-jump {
  margin: 0;
}

.queue-page .queue-page-size-form select,
.queue-page .queue-page-jump input {
  min-height: 32px;
  width: auto;
  border-color: var(--ops-line-strong);
  border-radius: 4px;
  background: var(--ops-surface);
}

.queue-page .queue-page-jump input {
  max-width: 5rem;
}

.queue-page .queue-page-numbers {
  margin: 0;
  padding: 0;
  list-style: none;
}

.queue-page .queue-page-numbers a,
.queue-page .queue-page-numbers strong {
  display: inline-grid;
  min-width: 30px;
  min-height: 30px;
  place-items: center;
  border: 1px solid var(--ops-line);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--ops-ink);
  text-decoration: none;
}

.queue-page .queue-page-numbers a:hover,
.queue-page .queue-page-numbers a:focus-visible {
  border-color: var(--ops-line-strong);
  background: var(--ops-subtle);
}

.queue-page .queue-page-numbers strong {
  border-color: var(--ops-ink);
  background: var(--ops-ink);
  color: var(--ops-surface);
  font-weight: 600;
}

@media (max-width: 760px) {
  .queue-page .queue-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .queue-page .queue-pagination-start,
  .queue-page .queue-pagination-end {
    justify-content: space-between;
  }

  .queue-page .queue-pagination-end {
    margin-inline-start: 0;
  }

  .queue-page .queue-page-jump {
    margin-inline-start: auto;
  }
}
