/* Responsive IPO tables: clean side-by-side on 2-col facts, smooth horizontal touch-scroll on multi-column data tables. */
@media (max-width: 576px) {
  .ipo-detail-main .ipo-glance-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .ipo-detail-main .ipo-report-table-wrap,
  .ipo-detail-main .ipo-lot-table-wrap,
  .ipo-detail-main .ipo-financial-table-wrap,
  .ipo-detail-main .ipo-kpi-table-wrap,
  .ipo-detail-main .ipo-listings-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Facts and dates always remain a simple, readable two-column table. */
  .ipo-detail-main .ipo-glance-table,
  .ipo-detail-main .ipo-dates-table {
    display: table !important;
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  .ipo-detail-main .ipo-glance-table tbody,
  .ipo-detail-main .ipo-dates-table tbody { display: table-row-group !important; }

  .ipo-detail-main .ipo-glance-table tr,
  .ipo-detail-main .ipo-dates-table tr { display: table-row !important; }

  .ipo-detail-main .ipo-glance-table th,
  .ipo-detail-main .ipo-glance-table td,
  .ipo-detail-main .ipo-dates-table th,
  .ipo-detail-main .ipo-dates-table td {
    display: table-cell !important;
    width: 50% !important;
    min-width: 0 !important;
    padding: 10px 11px !important;
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: normal;
    vertical-align: middle;
  }

  .ipo-detail-main .ipo-glance-table td,
  .ipo-detail-main .ipo-dates-table td { text-align: right !important; }

  .ipo-detail-main .ipo-lot-table.ipo-glance-table .ipo-lot-group > * {
    background: #f5f0fb !important;
    color: #5420a9 !important;
    font-weight: 800 !important;
  }

  /* Report tables are styled centrally in ipo-profile-redesign.css. Keeping
     their native table layout here prevents different sections from turning
     into mismatched stacked cards on small screens. */

}
