/* Keep the service report below the entry grid and give its table its own viewport. */
@media screen {
  .wb-live #wbServicePanel:not([hidden], .collapsed) {
    height: auto;
    min-width: 0;
  }

  .wb-live #wbServicePanel .wb-service-filters {
    flex-wrap: wrap;
  }

  .wb-live #wbServicePanel .wb-service-actions {
    flex-wrap: wrap;
  }

  .wb-live #wbServicePanel .wb-service-content {
    flex: 0 0 auto;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    min-height: 0;
  }

  .wb-live #wbServicePanel #wbServiceSummary {
    align-self: stretch;
    order: -1;
    width: auto;
    overflow: visible;
  }

  .wb-live #wbServicePanel .wb-service-scroll {
    flex: 0 0 auto;
    height: clamp(224px, 35dvh, 410px);
    min-width: 0;
    min-height: 0;
    overflow: auto;
    scrollbar-gutter: stable;
  }

  .wb-live #wbServicePanel .wb-service-scroll:focus-visible {
    outline: 2px solid var(--wb-brand);
    outline-offset: -2px;
  }

  .wb-live #wbServicePanel .wb-service-scroll :is(th, td) {
    font-size: 12px;
    padding-block: 5px;
  }
}

@media screen and (min-width: 1201px) {
  .wb-live main.wb-workspace:has(> #wbServicePanel:not([hidden], .collapsed)) {
    overflow-y: auto;
  }

  .wb-live main.wb-workspace:has(> #wbServicePanel:not([hidden], .collapsed)) > .lines-card {
    flex-shrink: 0;
  }
}
