.strategy-queue-panel .table-scroll {
  overflow: hidden;
}

.dispatch-audit-table {
  display: block;
  width: 100%;
  min-width: 0;
  table-layout: auto;
}

.dispatch-audit-table thead,
.dispatch-audit-table tbody {
  display: block;
  width: 100%;
}

.dispatch-audit-table tr {
  width: 100%;
}

.dispatch-audit-table .request-id {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 1400px) {
  .dispatch-audit-table tr {
    display: grid;
    grid-template-columns:
      60px minmax(100px, .8fr) minmax(180px, 1.5fr) 138px 160px
      150px 78px 90px 110px 150px;
    align-items: center;
  }

  .dispatch-audit-table th,
  .dispatch-audit-table td {
    display: flex;
    width: auto !important;
    min-width: 0;
    height: 68px;
    padding: 0 10px;
    align-items: center;
    overflow: hidden;
  }

  .dispatch-audit-table th {
    height: 52px;
  }

  .dispatch-audit-table th:nth-child(7),
  .dispatch-audit-table td:nth-child(7) {
    justify-content: center;
    text-align: center;
  }

  .dispatch-audit-table td:nth-child(2),
  .dispatch-audit-table td:nth-child(8),
  .dispatch-audit-table td:nth-child(9),
  .dispatch-audit-table td:nth-child(10) {
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dispatch-audit-table .status-badge {
    max-width: 100%;
    min-width: 0;
    padding: 0 8px;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 1399px) {
  .dispatch-audit-table thead {
    display: none;
  }

  .dispatch-audit-table tbody {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .dispatch-audit-table tbody tr {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    padding: 1px;
    background: var(--border);
    border: 1px solid var(--border);
  }

  .dispatch-audit-table tbody td {
    display: grid;
    min-width: 0;
    min-height: 58px;
    padding: 8px 10px;
    align-content: center;
    gap: 5px;
    overflow: hidden;
    background: var(--panel);
    border: 0;
  }

  .dispatch-audit-table tbody td::before {
    color: var(--faint);
    font-family: var(--font-data);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .11em;
  }

  .dispatch-audit-table td:nth-child(1)::before { content: "SEQ"; }
  .dispatch-audit-table td:nth-child(2)::before { content: "STRATEGY"; }
  .dispatch-audit-table td:nth-child(3)::before { content: "REQUEST"; }
  .dispatch-audit-table td:nth-child(4)::before { content: "MODE"; }
  .dispatch-audit-table td:nth-child(5)::before { content: "STATE"; }
  .dispatch-audit-table td:nth-child(6)::before { content: "PAPER"; }
  .dispatch-audit-table td:nth-child(7)::before { content: "ATTEMPTS"; }
  .dispatch-audit-table td:nth-child(8)::before { content: "CORE"; }
  .dispatch-audit-table td:nth-child(9)::before { content: "ECROUTER"; }
  .dispatch-audit-table td:nth-child(10)::before { content: "CREATED"; }

  .dispatch-audit-table td:nth-child(3) {
    grid-column: span 2;
  }

  .dispatch-audit-table .status-badge {
    width: max-content;
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .dispatch-audit-table tbody tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dispatch-audit-table td:nth-child(3) {
    grid-column: 1 / -1;
  }
}
