/* Rule 13: short model tables use compact cards; long tables stay tables. */
.rt-frame { position: relative; width: 100%; max-width: 100%; min-width: 0; }
[data-rt-scroll] { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; }
table[data-responsive-table] { display: table !important; width: 100% !important; min-width: 0 !important; max-width: none !important; }
table[data-responsive-table] { table-layout: auto !important; }
table[data-responsive-table] :is(th,td),
table[data-responsive-table] :is(th,td) * {
  overflow-wrap: normal !important; word-break: normal !important; hyphens: manual !important;
}
table[data-responsive-table] :is(a,button) { white-space: nowrap !important; }
.rt-frame[data-rt-scrolling="true"] table[data-responsive-table] { overflow: visible !important; }
[data-rt-scroll]:focus-visible { outline: 3px solid var(--t-gold, #967846); outline-offset: 2px; }
.rt-frame[data-rt-more="true"]::after {
  content: ""; position: absolute; pointer-events: none; z-index: 5;
  top: 0; right: -8px; bottom: 0; width: 8px;
  border-left: 2px solid var(--t-gold, #967846);
  box-shadow: inset 6px 0 8px -6px var(--t-ink, #1E1E1E);
}
.rt-frame[data-rt-scrolling="true"] table[data-responsive-table] [data-rt-first] {
  position: sticky; left: 0; z-index: 2;
}
.rt-frame[data-rt-scrolling="true"]:not([data-rt-measuring]) table[data-responsive-table] [data-rt-first] {
  background-color: var(--rt-sticky-bg, var(--t-white, #FFFFFF)) !important;
}
@media (max-width: 639px) {
  table[data-responsive-table] {
    --t-table-cell-padding: 12px;
    border-collapse: collapse !important; border-spacing: 0 !important;
  }
  table[data-responsive-table] :is(th,td) {
    width: auto !important; min-width: 64px !important; max-width: none !important;
    padding: 12px !important; font-size: 15px !important; line-height: 1.45 !important;
    white-space: normal !important;
  }
  table[data-responsive-table] :is(th,td) * {
    font-size: inherit !important;
    max-width: 100%; box-sizing: border-box;
  }
  table[data-responsive-table] th { font-size: 13px !important; letter-spacing: 0 !important; }
  table[data-responsive-table] button,
  table[data-responsive-table] [data-rt-action] a {
    display: inline-flex !important; align-items: center; justify-content: center;
    min-height: 44px !important; padding-block: 10px !important;
    white-space: nowrap !important; box-sizing: border-box;
  }
  table[data-responsive-table] col { width: auto !important; }
  table[data-responsive-table][data-rt-cards="false"] { min-width: var(--rt-height-fit-width, 0px) !important; }
  table[data-responsive-table]:is([data-rt-long="true"],[data-rt-height-fallback]) { min-width: max-content !important; }
  table[data-responsive-table][data-rt-cards="false"] [data-rt-action] { white-space: nowrap !important; }
  table[data-responsive-table][data-rt-cards="false"] thead:not([hidden]) {
    display: table-header-group !important; position: static !important;
    width: auto !important; height: auto !important;
    clip: auto !important; clip-path: none !important; overflow: visible !important;
  }
  table[data-responsive-table][data-rt-cards="false"] tbody:not([hidden]) { display: table-row-group !important; }
  table[data-responsive-table][data-rt-cards="false"] tr:not([hidden]) { display: table-row !important; }
  table[data-responsive-table][data-rt-cards="false"] :is(th,td):not([hidden]) { display: table-cell !important; }
  table[data-responsive-table][data-rt-cards="false"] :is(th,td)::before { display: none !important; }
  table[data-responsive-table="2"] col:first-child { width: 40% !important; }
  table[data-responsive-table="2"] col:last-child { width: 60% !important; }
  table[data-responsive-table][data-rt-cards="true"] {
    --t-table-cell-padding: 0px;
    display: block !important; min-width: 0 !important; border: 0 !important; background: transparent !important;
  }
  table[data-responsive-table][data-rt-cards="true"] :is(thead,[data-rt-header],[data-rt-header-row]) {
    display: block !important;
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important;
    white-space: nowrap !important; min-width: 0 !important;
  }
  table[data-responsive-table][data-rt-cards="true"] colgroup { display: none !important; }
  table[data-responsive-table][data-rt-cards="true"] tbody { display: grid !important; gap: 12px; width: 100%; }
  table[data-responsive-table][data-rt-cards="true"] tbody tr:not([hidden]) {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 16px; row-gap: 8px;
    width: 100% !important; box-sizing: border-box; align-items: start;
    background: var(--t-white, #FFFFFF) !important; color: var(--t-ink, #1E1E1E) !important;
    border: 1px solid var(--t-gold, #967846) !important; border-top-width: 3px !important;
    border-radius: var(--t-radius, 10px) !important; padding: 16px !important; margin: 0 !important;
  }
  table[data-responsive-table][data-rt-cards="true"] tbody :is(td,th):not([data-rt-header]) {
    display: block !important; width: 100% !important; min-width: 0 !important;
    position: static !important; padding: 0 !important; border: 0 !important;
    background: transparent !important; color: inherit !important; text-align: left !important;
    font-size: 15px !important; line-height: 18px !important;
  }
  table[data-responsive-table][data-rt-cards="true"] tbody :is(td,th)::before {
    content: attr(data-label); display: block; position: static !important;
    font-weight: 700; font-size: 12px; line-height: 14px; letter-spacing: 0;
    color: var(--t-ink, #1E1E1E); margin-bottom: 0;
  }
  table[data-responsive-table][data-rt-cards="true"] tbody :is(td,th)[data-rt-model]:not([data-rt-header]) {
    font-weight: 700 !important; font-size: 17px !important; line-height: 20px !important;
    grid-column: 1 / -1; order: -2; margin-bottom: -6px;
  }
  table[data-responsive-table][data-rt-cards="true"] tbody tr:has([data-rt-status]) [data-rt-model] { grid-column: 1; }
  table[data-responsive-table][data-rt-cards="true"] [data-rt-status] { grid-column: 2; order: -1; text-align: right !important; }
  table[data-responsive-table][data-rt-cards="true"] [data-rt-status]::before { display: none !important; }
  table[data-responsive-table][data-rt-cards="true"] [data-rt-wide] { grid-column: 1 / -1; }
  table[data-responsive-table][data-rt-cards="true"] tbody :is(td,th)[data-rt-empty]:not(:has(a,button,input,img,svg)) { display: none !important; }
  table[data-responsive-table][data-rt-cards="true"] [data-rt-model]::before { display: none !important; }
  table[data-responsive-table][data-rt-cards="true"] [data-rt-model] .sullair-control {
    font-size: 12px !important; line-height: 14px !important; font-weight: 400 !important;
  }
  table[data-responsive-table][data-rt-cards="true"] tbody :is(td,th)[data-rt-action]:not([data-rt-header]) {
    display: flex !important; flex-wrap: nowrap; gap: 12px; padding-bottom: 0 !important; order: 1;
    grid-column: 1 / -1; margin-top: 4px; align-self: end;
  }
  table[data-responsive-table][data-rt-cards="true"] [data-rt-action]::before { display: none !important; }
  table[data-responsive-table][data-rt-cards="true"] [data-rt-action] :is(a,button) {
    flex: 1 1 0; width: 0 !important; min-width: 0 !important; max-width: 100%;
    height: 44px !important; padding-block: 0 !important;
  }
}
@layer theme-flow-spacing {
  @media (max-width: 639px) {
    body.theme-v2 :is(main,#main-content) .ofi-table-wrap > .rt-frame,
    body.theme-v2 :is(main,#main-content) .ofi-table-wrap > .rt-frame > [data-rt-scroll] > table {
      margin-block: 0 !important;
    }
  }
}
@layer theme-surface-contract {
  @media (max-width: 639px) {
    body.theme-v2 :is(main,.pv2,#main-content) [data-rt-card-stack="true"],
    body.theme-v2 :is(main,.pv2,#main-content) table[data-rt-cards="true"] {
      --t-box-padding: 0px !important;
      padding: 0 !important; border: 0 !important; background: transparent !important;
      box-shadow: none !important; border-radius: 0 !important;
    }
    body.theme-v2 :is(main,.pv2,#main-content) table[data-rt-cards="true"] :is(td,th):not([data-rt-header]) {
      padding: 0 !important;
    }
    body.theme-v2 :is(main,.pv2,#main-content) .ofi-table-wrap:has(> .rt-frame[data-rt-card-stack="false"]) {
      --t-box-padding: 20px !important;
      padding: 20px !important;
    }
  }
}
