/* TV_SCHEDULE_FINAL_FIT_V5_START */
/* Correct the actual 1500px minimum and the flex-on-TD bug without hiding content. */
@media (min-width: 1100px) {
  .scw3-page .tv-sale-schedule-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
  }
  .scw3-page table.tv-sale-schedule-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
  }
  .scw3-page table.tv-sale-schedule-table th,
  .scw3-page table.tv-sale-schedule-table td {
    box-sizing: border-box !important;
    padding: 9px 3px !important;
    min-width: 0 !important;
    max-width: none !important;
    text-align: center !important;
    vertical-align: middle !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
  }
  .scw3-page table.tv-sale-schedule-table th {
    font-size: 10px !important;
  }
  .scw3-page table.tv-sale-schedule-table :is(th,td):nth-child(1) { width: 3% !important; }
  .scw3-page table.tv-sale-schedule-table :is(th,td):nth-child(2) { width: 9% !important; }
  .scw3-page table.tv-sale-schedule-table :is(th,td):nth-child(3) { width: 14% !important; }
  .scw3-page table.tv-sale-schedule-table :is(th,td):nth-child(4) { width: 10% !important; }
  .scw3-page table.tv-sale-schedule-table :is(th,td):nth-child(5) { width: 14% !important; }
  .scw3-page table.tv-sale-schedule-table :is(th,td):nth-child(6) { width: 10% !important; }
  .scw3-page table.tv-sale-schedule-table :is(th,td):nth-child(7) { width: 14% !important; }
  .scw3-page table.tv-sale-schedule-table :is(th,td):nth-child(8) { width: 7% !important; }
  .scw3-page table.tv-sale-schedule-table :is(th,td):nth-child(9) { width: 7% !important; }
  .scw3-page table.tv-sale-schedule-table :is(th,td):nth-child(10) { width: 12% !important; }
  /* TD must remain a table-cell. Display:flex on TD displaced actions into Status. */
  .scw3-page table.tv-sale-schedule-table td.tv-schedule-row-actions {
    display: table-cell !important;
    white-space: nowrap !important;
    overflow: visible !important;
    padding: 7px 2px !important;
  }
  .scw3-page table.tv-sale-schedule-table td.tv-schedule-row-actions > button {
    display: inline-flex !important;
    vertical-align: middle !important;
    align-items: center !important;
    justify-content: center !important;
    width: 25px !important;
    min-width: 25px !important;
    height: 28px !important;
    padding: 1px !important;
    margin: 0 1px !important;
    box-sizing: border-box !important;
  }
  .scw3-page table.tv-sale-schedule-table td:nth-child(9) .tv-schedule-status {
    font-size: 9px !important;
    padding: 3px 5px !important;
    max-width: 100% !important;
  }
  .scw3-page table.tv-sale-schedule-table input {
    min-width: 0 !important;
    width: 100% !important;
    padding-inline: 2px !important;
    box-sizing: border-box !important;
  }
}
/* Narrow screens: retain scroll rather than lose invoice, amounts, or controls. */
@media (max-width: 1099px) {
  .scw3-page .tv-sale-schedule-table-wrap { overflow-x: auto !important; }
  .scw3-page .tv-sale-schedule-table { min-width: 980px !important; }
  .scw3-page .tv-sale-schedule-table td.tv-schedule-row-actions {
    display: table-cell !important;
    white-space: nowrap !important;
  }
}
/* TV_SCHEDULE_FINAL_FIT_V5_END */
