/* Cashbook workspace proportions, limited to the four Growth entry screens. */
@media screen {
  :is(.sg-growth-search-training, .sg-growth-search-event, .sg-growth-search-projects),
  :is(.sg-growth-search-training, .sg-growth-search-event, .sg-growth-search-projects):not(:has(> :nth-child(2))),
  :is(.sg-growth-search-training, .sg-growth-search-event, .sg-growth-search-projects):has(> .sg-growth-search-detail:empty),
  .sg-promo-screen > .sg-promo-workspace:is([data-edit=yes], [data-edit=no]) {
    display: grid;
    grid-template-columns: minmax(12.5rem, 15rem) minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
  }
  :is(.sg-growth-search-training, .sg-growth-search-event, .sg-growth-search-projects) > .sg-growth-search-index,
  .sg-promo-screen > .sg-promo-workspace > .sg-promo-index > .sg-promo-register-list {
    min-width: 0;
    min-inline-size: 0;
    padding: 12px;
    border: 1px solid #e0e6ee;
    border-radius: 12px;
    background: #fff;
  }
  .sg-growth-project-right, .sg-promo-first-screen-right { min-width: 0; }
  .sg-growth-project-right > section:first-child { margin-top: 0 !important; }
  .sg-promo-first-screen-right > article:first-child { margin-top: 0 !important; }
  :is(.sg-growth-search-training, .sg-growth-search-event) > .sg-growth-search-index > .training-toolbar {
    margin: 0 0 8px;
    padding: 0;
    background: transparent;
    border: 0;
    gap: 6px;
  }
  :is(.sg-growth-search-training, .sg-growth-search-event) > .sg-growth-search-index > .training-toolbar > label {
    flex: 1 1 8rem;
    min-width: 0;
    max-width: 100%;
  }
  :is(.sg-growth-search-training, .sg-growth-search-event) > .sg-growth-search-index > .training-toolbar > .training-search {
    flex-basis: 100%;
  }
  :is(.sg-growth-search-training, .sg-growth-search-event, .sg-growth-search-projects) > .sg-growth-search-index :is(input, select) {
    max-width: 100%;
    min-width: 0;
  }
  .sg-growth-search-projects > .sg-growth-search-index > ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
  }
  .sg-growth-search-projects > .sg-growth-search-index > ul > li > button {
    text-align: start;
    white-space: normal;
    overflow-wrap: anywhere;
    width: 100%;
  }
  .sg-promo-screen > .sg-promo-workspace > .sg-promo-index .sg-growth-search-promotions.sg-promo-filters {
    grid-template-columns: minmax(0, 1fr);
  }
  .sg-promo-screen > .sg-promo-workspace > .sg-promo-index .sg-promo-list-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    overflow-wrap: anywhere;
  }
  .sg-promo-screen > .sg-promo-workspace > .sg-promo-index .sg-promo-list-row > .sg-promo-stage { justify-self: start; }
  /* Keep the real table (sorting, metadata and print). Put the first four
     compact columns inside the rail; remaining columns remain scrollable. */
  :is(.sg-growth-search-training, .sg-growth-search-event) > .sg-growth-search-index .gw-list-viewport > table {
    table-layout: fixed;
    width: 712px;
    min-width: 712px;
  }
  :is(.sg-growth-search-training, .sg-growth-search-event) > .sg-growth-search-index .gw-list-viewport > table > colgroup > col:nth-last-child(9) { width: 28px !important; }
  :is(.sg-growth-search-training, .sg-growth-search-event) > .sg-growth-search-index .gw-list-viewport > table > colgroup > col:nth-last-child(8) { width: 48px !important; }
  :is(.sg-growth-search-training, .sg-growth-search-event) > .sg-growth-search-index .gw-list-viewport > table > colgroup > col:nth-last-child(7) { width: 28px !important; }
  :is(.sg-growth-search-training, .sg-growth-search-event) > .sg-growth-search-index .gw-list-viewport > table > colgroup > col:nth-last-child(6) { width: 100px !important; }
  :is(.sg-growth-search-training, .sg-growth-search-event) > .sg-growth-search-index .gw-list-viewport > table > colgroup > col:nth-last-child(-n+5) { width: auto !important; }
  :is(.sg-growth-search-training, .sg-growth-search-event) > .sg-growth-search-index .gw-list-viewport > table > :is(thead, tbody) > tr > .gw-list-number {
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    padding-inline: 2px !important;
    text-align: center;
  }
  :is(.sg-growth-search-training, .sg-growth-search-event) > .sg-growth-search-index .gw-list-viewport > table > :is(thead, tbody) > tr > :is(th, td):nth-child(-n+4) {
    padding-inline: 3px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }
  :is(.sg-growth-search-training, .sg-growth-search-event) > .sg-growth-search-index .gw-list-viewport > table > thead > tr > th:nth-child(-n+4) > .list-sort-heading {
    min-width: 0;
    max-width: 100%;
    gap: 1px;
    white-space: normal;
  }
  :is(.sg-growth-search-training, .sg-growth-search-event) > .sg-growth-search-index .gw-list-viewport td > .training-row-link {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }
}
@media screen and (max-width: 1050px) {
  :is(.sg-growth-search-training, .sg-growth-search-event, .sg-growth-search-projects),
  :is(.sg-growth-search-training, .sg-growth-search-event, .sg-growth-search-projects):not(:has(> :nth-child(2))),
  :is(.sg-growth-search-training, .sg-growth-search-event, .sg-growth-search-projects):has(> .sg-growth-search-detail:empty),
  .sg-promo-screen > .sg-promo-workspace:is([data-edit=yes], [data-edit=no]) {
    grid-template-columns: minmax(0, 1fr);
  }
}
