/* v1.9.43 — tighten landscape tables and remove oversized gaps */
@media (orientation: landscape) and (max-height: 560px) and (max-width: 1400px) {
  .afp-widget .afp-master-row--ranges .afp-master-label,
  .afp-widget .afp-master-row--summary .afp-master-label{
    width: 138px !important;
    min-width: 138px !important;
    max-width: 138px !important;
    padding: 18px 16px !important;
    vertical-align: top !important;
  }

  .afp-widget .afp-master-row--ranges td,
  .afp-widget .afp-master-row--summary td{
    padding: 16px 18px !important;
  }

  .afp-widget .afp-master-row--ranges td > .afp-range-shell,
  .afp-widget .afp-master-row--summary td > .afp-live-panel,
  .afp-widget .afp-master-row--summary td > .afp-summary{
    width: auto !important;
    min-width: min(560px, 100%) !important;
    max-width: 720px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .afp-widget .afp-range-panel{
    padding: 0 12px 12px !important;
  }

  .afp-widget .afp-range-toggle{
    gap: 12px !important;
    padding: 16px 18px !important;
  }

  .afp-widget .afp-range-toggle__action{
    min-width: 160px !important;
    width: 160px !important;
  }

  .afp-widget .afp-tier-table,
  .afp-widget .afp-result-table{
    width: auto !important;
    min-width: 520px !important;
    max-width: 100% !important;
    table-layout: auto !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .afp-widget .afp-tier-table thead th,
  .afp-widget .afp-tier-table tbody td,
  .afp-widget .afp-result-table th,
  .afp-widget .afp-result-table td{
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .afp-widget .afp-tier-table th:first-child,
  .afp-widget .afp-tier-table td:first-child{
    width: 44% !important;
  }

  .afp-widget .afp-tier-table th:last-child,
  .afp-widget .afp-tier-table td:last-child{
    width: 56% !important;
  }

  .afp-widget .afp-result-table th:first-child,
  .afp-widget .afp-result-table td:first-child{
    width: 58% !important;
    text-align: left !important;
  }

  .afp-widget .afp-result-table th:last-child,
  .afp-widget .afp-result-table td:last-child{
    width: 42% !important;
    text-align: right !important;
  }
}
