.advanced-record-search {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.advanced-record-search .primary-search-row,
.advanced-record-search .advanced-filter-block,
.advanced-record-search .search-actions {
  min-width: 0;
}

.advanced-record-search .search-actions {
  justify-content: flex-end;
}

.records-table {
  min-width: 1240px;
}

.records-table th:nth-child(1),
.records-table td:nth-child(1) { min-width: 105px; }
.records-table th:nth-child(2),
.records-table td:nth-child(2) { min-width: 205px; }
.records-table th:nth-child(3),
.records-table td:nth-child(3) { min-width: 150px; }
.records-table th:nth-child(4),
.records-table td:nth-child(4) { min-width: 205px; }
.records-table th:nth-child(5),
.records-table td:nth-child(5),
.records-table th:nth-child(6),
.records-table td:nth-child(6) { min-width: 165px; }
.records-table th:nth-child(7),
.records-table td:nth-child(7) { min-width: 150px; }
.records-table th:nth-child(8),
.records-table td:nth-child(8) { min-width: 70px; text-align: center; }
.records-table .dispatch-number { white-space: nowrap; }
.records-table td { line-height: 1.42; }

.button:disabled,
.button[disabled] {
  opacity: .48;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  filter: grayscale(.18);
}
.button:disabled:hover,
.button[disabled]:hover { transform: none; }

.account-control-stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.account-control-stack form { margin: 0; }
.button.danger-outline {
  color: #9b241c;
  border-color: #e7b8b2;
  background: #fff7f6;
}
.button.danger-outline:hover {
  border-color: #cf7e75;
  background: #fff0ee;
}
.account-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
}
.account-status.active { color: #08604c; background: #dff7ef; }
.account-status.inactive { color: #6a4c18; background: #fff2cf; }
.message.error {
  color: #8b2b23;
  border-color: #efc6c0;
  background: #fff1ef;
}

@media (max-width: 760px) {
  .advanced-record-search .search-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .advanced-record-search .search-actions .button { width: 100%; }
  .account-control-stack { align-items: stretch; }
  .account-control-stack .button,
  .account-control-stack form,
  .account-control-stack form .button { width: 100%; }
}
