/* Dispatch desktop columns: TMS, Edit, Select, and Alert are independent. */
@media (min-width: 721px) {
  html body #boardView #loadsSection > .table-header {
    display: none !important;
  }

  html body #boardView #loadsBody,
  html body #boardView #loadsBody table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  html body #boardView #loadsBody {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-gutter: stable !important;
  }

  html body #boardView #loadsBody table {
    table-layout: fixed !important;
    border-collapse: collapse !important;
  }

  html body #boardView #loadsBody thead th:nth-child(n),
  html body #boardView #loadRows > tr:not(.group-row):not(.load-alert-detail-row):not(.load-detail-row) > td:nth-child(n) {
    display: table-cell !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 8px 6px !important;
    overflow: hidden !important;
    text-align: center !important;
    text-overflow: ellipsis !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
  }

  html body #boardView #loadsBody :is(th, td):nth-child(1),
  html body #boardView #loadsBody :is(th, td):nth-child(2) {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    padding: 6px !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  html body #boardView #loadsBody :is(th, td):nth-child(3) {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  /* The temporary TMS "UPDATED" badge is wider than the alert icon.
     Keep the whole badge inside Alert so it cannot overlap Status. */
  html body #boardView #loadsBody :is(th, td):nth-child(4) {
    width: 88px !important;
    min-width: 88px !important;
    max-width: 88px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }
  html body #boardView #loadsBody :is(th, td):nth-child(5) { width: 104px !important; }
  html body #boardView #loadsBody :is(th, td):nth-child(6) { width: 96px !important; }
  html body #boardView #loadsBody :is(th, td):nth-child(7),
  html body #boardView #loadsBody :is(th, td):nth-child(8) { width: 88px !important; }
  html body #boardView #loadsBody :is(th, td):nth-child(9) { width: 18% !important; }
  html body #boardView #loadsBody :is(th, td):nth-child(10) { width: 82px !important; }
  html body #boardView #loadsBody :is(th, td):nth-child(11),
  html body #boardView #loadsBody :is(th, td):nth-child(12) { width: 15% !important; }
  html body #boardView #loadsBody :is(th, td):nth-child(13) { width: 72px !important; }
  html body #boardView #loadsBody :is(th, td):nth-child(14) { width: 54px !important; }
  html body #boardView #loadsBody :is(th, td):nth-child(15) { width: 82px !important; }
  html body #boardView #loadsBody :is(th, td):nth-child(16) { width: 104px !important; }
  html body #boardView #loadsBody :is(th, td):nth-child(17) { width: 76px !important; }
  html body #boardView #loadsBody :is(th, td):nth-child(18) { width: 116px !important; }
  html body #boardView #loadsBody :is(th, td):nth-child(19) {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }

  html body #boardView #loadsBody :is(.dispatch-tms-col, .dispatch-edit-col) .quick-edit-load-button {
    display: inline-grid !important;
    place-items: center !important;
    margin: 0 auto !important;
  }

  html body #boardView #loadsBody .dispatch-auto-tms-header {
    padding: 6px !important;
    overflow: visible !important;
  }

  html body #boardView #loadsBody .dispatch-auto-tms-toggle-button {
    display: inline-grid !important;
    place-items: center !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 1px solid #cfe0f2 !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #0f8a9a !important;
    overflow: hidden !important;
    cursor: pointer !important;
  }

  html body #boardView #loadsBody .dispatch-auto-tms-toggle-button svg {
    width: 16px !important;
    height: 16px !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    fill: none !important;
  }

  html body #boardView #loadsBody .dispatch-auto-tms-toggle-button .auto-tms-start-icon {
    display: block !important;
    fill: currentColor !important;
    stroke: none !important;
  }

  html body #boardView #loadsBody .dispatch-auto-tms-toggle-button .auto-tms-stop-icon {
    display: none !important;
  }

  html body #boardView #loadsBody .dispatch-auto-tms-toggle-button.is-running {
    border-color: #fb923c !important;
    background: #fff7ed !important;
    color: #c2410c !important;
  }

  html body #boardView #loadsBody .dispatch-auto-tms-toggle-button.is-running .auto-tms-start-icon {
    display: none !important;
  }

  html body #boardView #loadsBody .dispatch-auto-tms-toggle-button.is-running .auto-tms-stop-icon {
    display: block !important;
    fill: currentColor !important;
    stroke: none !important;
  }

  html body #boardView #loadsBody #selectAllLoads {
    width: 100% !important;
    padding: 0 !important;
    text-align: center !important;
  }
}

@media (min-width: 721px) and (max-width: 2600px) {
  html body #boardView #loadsBody thead th:nth-child(14),
  html body #boardView #loadRows > tr:not(.group-row):not(.load-alert-detail-row):not(.load-detail-row) > td:nth-child(14),
  html body #boardView #loadsBody thead th:nth-child(15),
  html body #boardView #loadRows > tr:not(.group-row):not(.load-alert-detail-row):not(.load-detail-row) > td:nth-child(15),
  html body #boardView #loadsBody thead th:nth-child(17),
  html body #boardView #loadRows > tr:not(.group-row):not(.load-alert-detail-row):not(.load-detail-row) > td:nth-child(17),
  html body #boardView #loadsBody thead th:nth-child(18),
  html body #boardView #loadRows > tr:not(.group-row):not(.load-alert-detail-row):not(.load-detail-row) > td:nth-child(18) {
    display: none !important;
  }
}

@media (min-width: 721px) and (max-width: 2300px) {
  html body #boardView #loadsBody thead th:nth-child(10),
  html body #boardView #loadRows > tr:not(.group-row):not(.load-alert-detail-row):not(.load-detail-row) > td:nth-child(10),
  html body #boardView #loadsBody thead th:nth-child(13),
  html body #boardView #loadRows > tr:not(.group-row):not(.load-alert-detail-row):not(.load-detail-row) > td:nth-child(13),
  html body #boardView #loadsBody thead th:nth-child(16),
  html body #boardView #loadRows > tr:not(.group-row):not(.load-alert-detail-row):not(.load-detail-row) > td:nth-child(16) {
    display: none !important;
  }
}

@media (min-width: 721px) and (max-width: 1200px) {
  html body #boardView #loadsBody thead th:nth-child(7),
  html body #boardView #loadRows > tr:not(.group-row):not(.load-alert-detail-row):not(.load-detail-row) > td:nth-child(7),
  html body #boardView #loadsBody thead th:nth-child(8),
  html body #boardView #loadRows > tr:not(.group-row):not(.load-alert-detail-row):not(.load-detail-row) > td:nth-child(8) {
    display: none !important;
  }
}
