/* Stage 9 follow-up: desktop portal workspace; the mobile framing is unchanged. */
@media (min-width: 769px) {
  /* Use the available monitor width without changing other page families. */
  .vs-clients-page .vs-inner-main {
    --vs-workspace-gutter: clamp(12px, 1.25vw, 32px);
    padding: 18px var(--vs-workspace-gutter) !important;
  }

  .vs-clients-page .vs-inner-main > table {
    width: 100% !important;
    max-width: none;
  }

  /* Remove the login-card width limit from the CMS-owned iframe wrapper. */
  .vs-clients-page .vs-inner-main .vs-client-portal table {
    width: 100% !important;
    margin: 0 !important;
    padding: 0;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
  }

  .vs-clients-page .vs-inner-main .vs-client-portal table td {
    padding: 0 !important;
  }

  /* Legacy trailing breaks are spacing only; keep the working pane compact. */
  .vs-clients-page .vs-inner-main .vs-client-portal > br {
    display: none;
  }

  /* The external portal keeps its own scrolling, login and data-grid behavior. */
  .vs-clients-page .vs-inner-main .vs-client-portal iframe {
    display: block;
    width: 100% !important;
    max-width: none;
    height: calc(100vh - 260px);
    height: calc(100dvh - 260px);
    min-height: 480px;
    margin: 0;
    transform: none;
  }
}
