/* Normale Webberichte: gemeinsame responsive Darstellung. */
.finance-report-layout,
.finance-report-container,
.finance-report-body {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.finance-report-main {
  min-width: 0;
  max-width: 100%;
}

.finance-report-layout .mud-main-content {
  min-width: 0;
  overflow-x: hidden;
}

.finance-report-layout .mud-grid {
  max-width: 100%;
}

.finance-report-layout .mud-table {
  max-width: 100%;
}

.finance-report-layout .mud-table-container {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.finance-report-layout .echart-host {
  width: 100%;
  min-width: 0;
}

.finance-report-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Der Gruppenname soll die Kennzahlen nicht an den rechten Bildschirmrand schieben. */
.finance-report-body .cat-report-table .mud-table-root {
  width: max-content;
  min-width: min(100%, 1050px);
}

.finance-report-body .cat-report-table .mud-table-cell {
  padding-inline: 10px;
}

.finance-report-body .cat-report-table .mud-table-cell:first-child {
  width: clamp(190px, 24vw, 320px);
  min-width: 190px;
  max-width: 320px;
}

.finance-report-body .cat-report-table .mud-table-cell:first-child .mud-input-control {
  min-width: 0;
  width: 100%;
}

.finance-report-body .cat-report-table .mud-table-cell:not(:first-child) {
  width: 108px;
  min-width: 96px;
}

.finance-report-body .cat-report-table .mud-table-cell:not(:first-child) .mud-input-control {
  min-width: 0;
  width: 96px;
}

@media (max-width: 959.98px) {
  .finance-report-appbar {
    padding-inline: 2px !important;
  }

  .finance-report-appbar .mud-icon-button {
    padding: 8px;
  }

  .finance-report-appbar .finance-report-mobile-action {
    width: 40px;
    height: 40px;
    padding: 6px;
  }

  .finance-report-title {
    font-size: .95rem !important;
  }

  .finance-report-body .mud-grid {
    margin: 0 !important;
    width: 100% !important;
  }

  .finance-report-body .mud-grid-item {
    min-width: 0;
    padding-left: 4px !important;
    padding-top: 4px !important;
  }

  .finance-report-body .mud-expansion-panels,
  .finance-report-body .mud-paper {
    max-width: 100%;
  }

  .finance-report-body .mud-expansion-panels.m-2 {
    margin: 4px !important;
  }

  .finance-report-body .mud-expansion-panel-content {
    padding-inline: 8px !important;
  }

  .finance-report-body .mud-table-root {
    width: max-content;
    min-width: 100%;
  }

  .finance-report-body .mud-table-cell {
    padding: 8px 10px;
  }

  .finance-report-body .mud-table-head .mud-input-control {
    min-width: 86px;
  }

  .finance-report-body .mud-table-pagination {
    min-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 4px;
  }
}

@media (max-width: 599.98px) {
  .finance-report-title {
    display: none;
  }

  .finance-report-body .echart-host {
    min-height: 300px;
  }

  .finance-report-body .mud-table-cell {
    font-size: .82rem;
  }

  .finance-report-body .mud-table-pager-caption,
  .finance-report-body .mud-table-pagination-select {
    margin: 0 4px;
  }
}
