/* Saudi product mobile tables v1.4.5. One source table; no duplicate cards. */
#instrubiz-saudi-product .ibsa-table-viewport {
  display:block; box-sizing:border-box; width:100%; max-width:100%; min-width:0;
  overflow-x:auto; -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain;
}
#instrubiz-saudi-product .ibsa-table-viewport > table {
  border-collapse:collapse; width:100%;
}
/* Retired card copies from previous versions must never appear. */
#instrubiz-saudi-product .ibsa-stacked-mobile-details {display:none!important;}
@media (max-width:767px) {
  #instrubiz-saudi-product .ibsa-table-viewport.ibsa-two-column > table {
    display:table!important; table-layout:fixed!important;
    box-sizing:border-box!important; width:100%!important; min-width:0!important; max-width:100%!important;
  }
  #instrubiz-saudi-product .ibsa-table-viewport.ibsa-two-column > table tr > :first-child {width:43%!important;}
  #instrubiz-saudi-product .ibsa-table-viewport.ibsa-two-column > table tr > :nth-child(2) {width:57%!important;}
  #instrubiz-saudi-product .ibsa-table-viewport.ibsa-two-column > table th,
  #instrubiz-saudi-product .ibsa-table-viewport.ibsa-two-column > table td {
    box-sizing:border-box!important; padding:9px 8px!important;
    font-size:12.5px; line-height:1.5;
    white-space:normal!important; overflow-wrap:anywhere!important; word-break:normal!important;
  }
  /* Three+ columns: same original table rows rendered as full-width labelled cards. */
  #instrubiz-saudi-product .ibsa-table-viewport.ibsa-mobile-cards {
    overflow:visible!important; min-width:0!important; max-width:100%!important;
  }
  #instrubiz-saudi-product .ibsa-table-viewport.ibsa-mobile-cards > table,
  #instrubiz-saudi-product .ibsa-table-viewport.ibsa-mobile-cards > table > tbody {
    display:block!important; width:100%!important; min-width:0!important; max-width:100%!important;
    background:transparent!important; border:0!important;
  }
  #instrubiz-saudi-product .ibsa-table-viewport.ibsa-mobile-cards > table > thead {display:none!important;}
  #instrubiz-saudi-product .ibsa-table-viewport.ibsa-mobile-cards > table > tbody > tr {
    display:block!important; box-sizing:border-box!important; width:100%!important;
    min-width:0!important; max-width:100%!important; margin:0 0 12px!important;
    padding:8px 12px!important; border:1px solid #d9e1ee!important; border-radius:9px!important;
    background:#fff!important;
  }
  #instrubiz-saudi-product .ibsa-table-viewport.ibsa-mobile-cards > table > tbody > tr > td {
    display:block!important; box-sizing:border-box!important; width:100%!important;
    min-width:0!important; max-width:100%!important; height:auto!important;
    white-space:normal!important; overflow-wrap:anywhere!important; word-break:normal!important;
    margin:0!important; padding:9px 0!important; border:0!important;
    border-bottom:1px solid #e6ebf3!important; background:transparent!important;
    font-size:13px!important; line-height:1.5!important; text-align:left!important;
  }
  #instrubiz-saudi-product .ibsa-table-viewport.ibsa-mobile-cards > table > tbody > tr > td:last-child {
    border-bottom:0!important;
  }
  #instrubiz-saudi-product .ibsa-table-viewport.ibsa-mobile-cards > table > tbody > tr > td::before {
    content:attr(data-ibsa-label); display:block!important; width:100%!important;
    margin:0 0 4px!important; font-family:inherit; line-height:1.5;
    font-size:11px!important; font-weight:700!important;
    text-transform:uppercase; letter-spacing:.035em; color:#40516c!important;
    white-space:normal!important; overflow-wrap:anywhere!important;
  }
  #instrubiz-saudi-product .ibsa-table-viewport.ibsa-mobile-cards .stock-pill {
    display:inline-block!important; max-width:100%!important; width:auto!important; white-space:normal!important;
  }
}
