/* Screen-only adjustments for the dedicated Finanzen & Controlling view.
   Print/PDF styles and all financial controls retain their existing behavior. */
@media screen {
  div.grid:has(> [data-testid="card-net-forecast"]) {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
  }

  div.grid:has(> [data-testid="card-net-forecast"])
    > :is(div:has([data-testid="button-revenue-reset"]), [data-testid="card-net-forecast"]) {
    min-width: 0;
  }

  div.grid:has(> [data-testid="card-net-forecast"])
    > :is(div:has([data-testid="button-revenue-reset"]), [data-testid="card-net-forecast"])
    > :first-child {
    padding: 1rem 1rem 0.75rem;
    gap: 0.375rem;
  }

  div.grid:has(> [data-testid="card-net-forecast"])
    > :is(div:has([data-testid="button-revenue-reset"]), [data-testid="card-net-forecast"])
    > :first-child :is(h2, h3) {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  div.grid:has(> [data-testid="card-net-forecast"])
    > :is(div:has([data-testid="button-revenue-reset"]), [data-testid="card-net-forecast"])
    > div.p-6:last-child {
    padding: 1rem;
  }

  div.grid:has(> [data-testid="card-net-forecast"])
    > :is(div:has([data-testid="button-revenue-reset"]), [data-testid="card-net-forecast"])
    > div.p-6:last-child .space-y-6 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 1rem;
    margin-bottom: 0;
  }

  div.grid:has(> [data-testid="card-net-forecast"])
    > :is(div:has([data-testid="button-revenue-reset"]), [data-testid="card-net-forecast"])
    > div.p-6:last-child .text-sm:not(button) {
    font-size: 0.8125rem;
    line-height: 1.25rem;
  }

  div.grid:has(> [data-testid="card-net-forecast"])
    > :is(div:has([data-testid="button-revenue-reset"]), [data-testid="card-net-forecast"])
    > div.p-6:last-child .text-lg:not(button) {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  div.grid:has(> [data-testid="card-net-forecast"])
    > :is(div:has([data-testid="button-revenue-reset"]), [data-testid="card-net-forecast"])
    > div.p-6:last-child .pt-4 {
    padding-top: 0.75rem;
  }
}

@media screen and (min-width: 700px) {
  div.grid:has(> [data-testid="card-net-forecast"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
