/* Tracking desktop uses independent TMS and Quick Edit columns. */
@media (min-width: 721px) {
  html body #trackingView .tracking-loads-table :is(col, th, td):nth-child(1),
  html body #trackingView .tracking-loads-table :is(col, th, td):nth-child(2) {
    display: table-cell !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    padding-right: 4px !important;
    padding-left: 4px !important;
    overflow: visible !important;
    text-overflow: clip !important;
    text-align: center !important;
  }

  html body #trackingView .tracking-loads-table col:nth-child(1),
  html body #trackingView .tracking-loads-table col:nth-child(2) {
    display: table-column !important;
  }

  html body #trackingView #trackingRows > tr:not(.load-alert-detail-row):not(.load-detail-row) > td.tracking-tms-col .quick-edit-load-button,
  html body #trackingView #trackingRows > tr:not(.load-alert-detail-row):not(.load-detail-row) > td.tracking-edit-col .quick-edit-load-button {
    display: inline-grid !important;
    place-items: center !important;
    margin: 0 auto !important;
  }

  /* Stop Off is no longer a visible table column; Owner remains hidden at 13. */
  html body #trackingView .tracking-loads-table :is(col, th, td):nth-child(13) {
    display: none !important;
  }

  /* Reapply the widened route columns after removing Stop Off. */
  html body #trackingView .tracking-loads-table :is(col, th, td):nth-child(9) {
    width: 16% !important;
  }

  html body #trackingView .tracking-loads-table :is(col, th, td):nth-child(10) {
    width: 9% !important;
  }

  html body #trackingView .tracking-loads-table :is(col, th, td):nth-child(11) {
    width: 15% !important;
  }
}

/* Keep expanded Tracking History rows as a real table. The shared report styles
   also serve responsive board tables, so explicitly restore table semantics here
   before the saved Match values are rendered into the detail view. */
#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table {
  display: table !important;
  width: 100% !important;
  min-width: 1120px !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table thead {
  display: table-header-group !important;
}

#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table tbody {
  display: table-row-group !important;
}

#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table tr {
  display: table-row !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table th,
#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table td {
  display: table-cell !important;
  box-sizing: border-box !important;
  vertical-align: top !important;
  white-space: normal !important;
}

#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table th:nth-child(1),
#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table td:nth-child(1) { width: 7% !important; }
#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table th:nth-child(2),
#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table td:nth-child(2) { width: 8% !important; }
#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table th:nth-child(3),
#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table td:nth-child(3) { width: 8% !important; }
#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table th:nth-child(4),
#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table td:nth-child(4) { width: 8% !important; }
#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table th:nth-child(5),
#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table td:nth-child(5) { width: 8% !important; }
#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table th:nth-child(6),
#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table td:nth-child(6) { width: 7% !important; }
#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table th:nth-child(7),
#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table td:nth-child(7) { width: 10% !important; }
#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table th:nth-child(8),
#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table td:nth-child(8) { width: 11% !important; }
#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table th:nth-child(9),
#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table td:nth-child(9) { width: 11% !important; }
#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table th:nth-child(10),
#customerServiceTrackingReportPanel #fedexFreightSyncHistory .tracking-history-detail-table td:nth-child(10) { width: 22% !important; }
