/* ######################### GENERAL PRINT SETTINGS ######################### */

.header-print {
  padding: 0px 1.5rem 1.375rem 1.5rem;
  margin-bottom: 30px;
  border: 1px solid var(--color-primary);
  border-radius: 10px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.header-print img {
  height: 75px;
  width: 200px;
}

.header-print-type {
  color: var(--color-primary);
  font-size: 1rem;
  font-weight: 600;
  margin: auto 0;
}

.header-print-title {
  font-size: 1.375rem;
}

.header-print-subtitle {
  font-size: 1rem;
}

.header-print-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: 14px;
}

.header-print-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-print-right .item {
  min-width: 150px;
  font-weight: normal;
}

.footer-print {
  font-size: 10px;
  padding: 10px 20px;
  margin-top: 10px;
  border: 1px solid var(--color-primary);
  border-radius: 10px;
  box-sizing: border-box;
  height: 35px;
  /* position: fixed;
  bottom: 0;
  width: -moz-available;
  width: -webkit-fill-available; */
}

.footer-print-wrapper {
  display: flex;
  justify-content: space-between;
}

/*.print-button {*/
/*  display: flex;*/
/*  justify-content: flex-end;*/
/*  gap: 1rem;*/
/*  margin: 20px 0;*/
/*}*/

.print-show {
  display: none;
}
/* ############################### MEDIA PRINT ############################## */
/* ############################# General Settings ########################### */
@media print {
  .page-break-after {
    page-break-after: always;
  }

  .container {
    max-width: 100%;
  }

  .print-container {
    min-height: 100vh;
  }

  .print-container thead.print-layout-header {
    display: table-header-group;
  }

  .print-container tfoot.print-layout-footer {
    display: table-footer-group;
  }

  .print-container .print-layout-content .print-layout-content-cell {
    vertical-align: top;
  }
  .print-container .print-layout-content .print-layout-content-cell > * {
    page-break-after: unset !important;
    page-break-before: unset !important;
    page-break-inside: unset !important;
  }

  .print-hide,
  .print-button,
  .no-print,
  .ol-zoom,
  #header,
  .site-footer,
  #gdprbanner-matomo-banner,
  .nofeaturedtop {
    display: none !important;
  }

  .print-show {
    display: block;
  }

  #main-wrapper {
    padding: 0;
    width: 100%;
    margin: 0;
  }

  .print-settings {
    margin: 0;
  }

  /* ########################## Energiesteckbrief ########################### */
  #energiesteckbrief .report-table td {
    padding: 4px;
    font-size: 0.75rem;
  }

  #energiesteckbrief .report-table thead {
    font-size: 0.75rem;
  }

  #energiesteckbrief .esb-title-level-1,
  #energiesteckbrief .esb-title-level-2 {
    background-color: transparent;
  }

  #energiesteckbrief .report-table.esb-page tr td:first-child:not(.esb-title-level-1 .esb-section-title){
    text-indent: 1rem;
  }

  #energiesteckbrief .esb-title-level-1 span,
  #energiesteckbrief .esb-title-level-2 span {
    font-size: 0.75rem;
  }

  #energiesteckbrief .badge {
    color: #787878;
    background-color: transparent;
    border: none;
    font-size: 0.6rem;
    width: 0.5rem;
    height: 1rem;
  }

  #energiesteckbrief .report-table {
    height: 750px;
    overflow: hidden;
    display: block;
    break-inside: avoid-page;
  }

  #energiesteckbrief .report-table thead {
    display: table-header-group;
  }

  #energiesteckbrief .report-table tbody {
    border-top: 2px solid currentColor;
  }

  #energiesteckbrief .report-table.esb-source-page{
    font-size: smaller;
  }
  #energiesteckbrief .report-table.esb-source-page{
    font-size: smaller;
  }

  #energiesteckbrief .report-table.esb-source-page .badge {
    width: 0.6rem;
    height: 0.6rem;
  }

  /**
 column width
 */
  #energiesteckbrief .esb-indicator-header-indicator{
    width: auto;
  }
  #energiesteckbrief .esb-indicator-header-unit{
    width: auto;
  }
  #energiesteckbrief .esb-indicator-header-reference{
    width: 80px
  }
  #energiesteckbrief .esb-indicator-header-report{
    width: 80px;
  }
  #energiesteckbrief .esb-indicator-header-change{
    width: 73px;
  }
  #energiesteckbrief .esb-indicator-header-source{
    width: 64px;
  }

    /* ####################### Steckbrief Wertschöpfung ####################### */
  #windwerkzeug .map.windwerkzeug {
    padding-bottom: 20px;
    display: block;
  }
  .mastr_nr_der_einheit #windwerkzeug,
  #windwerkzeug #windwerkzeug-map-bbgwindabgg,
  #windwerkzeug #windwerkzeug-map-eeg {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  #windwerkzeug #map-spinner {
    display: none;
  }

  #windwerkzeug .ol-attribution button {
    display: none;
  }

  #windwerkzeug .windwerkzeug-table thead,
  #windwerkzeug .windwerkzeug-table tfoot {
    padding: 2px;
    font-size: 10px;
    display: table-row-group;
  }

  #windwerkzeug .windwerkzeug-table td {
    padding: 2px;
    font-size: 10px;
  }

  #windwerkzeug p {
    font-size: 0.75rem;
    margin-bottom: 2rem;
  }

  #windwerkzeug .table-box {
    /*padding-bottom: 15rem;*/
    width: 100%;
  }

  /* #################  Detailansicht Erneuerbare Energien ################## */
  .renewable-energy .frame-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .renewable-energy .renewable-energy-table {
    font-size: 0.75rem;
  }

  .renewable-energy .renewable-energy-table th,
  .renewable-energy .renewable-energy-table td {
    padding: 4px;
  }

  /* ##########################  Steckbrief Solar ########################### */

  #solarbericht .table-section,
  #solarbericht .content-section {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  #solarbericht .content-section {
    min-height: 800px;
  }

  #solarbericht table td {
    font-size: 12px;
    line-height: 15px;
    padding: 2px;
  }

  #solarbericht .title {
    font-size: 1rem;
    margin-bottom: 1rem;
    clear: both;
  }

  #solarbericht #source {
    height: 700px;
  }

  #solarbericht .table-section {
    margin: 0;
    padding: 0;
  }

  #solarbericht .table-title {
    margin-bottom: 0;
    font-size: 0.8rem;
    clear: both;
  }

  #solarbericht .content-section .table-section:not(:first-of-type) .table-title {
    height: 30px;
    padding-top: 10px;
  }

  #solarbericht .layout-table-chart table {
    float: left;
  }

  #solarbericht .layout-table-chart table,
  #solarbericht .table-section.kennwerte,
  #solarbericht .table-section.einsparung-dach,
  #solarbericht .table-section.einsparung-frei {
    width: 55%;
  }

  #solarbericht #chart-zusammenfassung-1,
  #solarbericht #chart-zusammenfassung-3 {
    width: 250px;
    height: 150px;
  }
  #solarbericht #chart-zusammenfassung-2,
  #solarbericht #chart-potenzial-pv-dach-1,
  #solarbericht #chart-potenzial-pv-dach-2,
  #solarbericht #chart-potenzial-pv-dach-3 {
    width: 150px;
  }

  #solarbericht .layout-table-chart {
    display: block;
    clear: both;
  }

  #solarbericht .chart-legend-heading {
    font-size: 10px;
  }

  #solarbericht .chart-legend-wrapper {
    display: inline-block;
    justify-content: space-between;
    margin: auto;
    position: relative;
    float: right;
    width: 40%;
  }

  #solarbericht .chart-legend-wrapper:has(.bar) {
    gap: 0.5rem;
  }

  #solarbericht .chart-legend-wrapper:has(.pie) {
    margin: auto;
  }

  #solarbericht .chart-legend-item {
    font-size: 10px;
    line-height: 14px;
  }

  #solarbericht .chart-two-columns {
    row-gap: 4px;
  }

  /* ##########################  Mein DAch Wirtschaftlichkeitsrechner ########################### */

  #wirtschaftlichkeit {
    min-height: 750px;
  }
  #wirtschaftlichkeit .map-wrapper {
    width: 42%;
    overflow: hidden;
  }
  #wirtschaftlichkeit .input-wrapper {
    width: 58%;
    overflow: hidden;
  }
  #wirtschaftlichkeit table td,
  #wirtschaftlichkeit table th {
    font-size: 12px;
    line-height: 14px;
    padding: 4px;
  }
  #wirtschaftlichkeit .table input {
    line-height: 0;
    border-color: transparent;
    text-align: right;
    width: 3rem;
    appearance: textfield;
    margin: 0;
    -moz-appearance: textfield;
    height: 14px;
  }
  #wirtschaftlichkeit .main-table tr th:nth-child(3),
  #wirtschaftlichkeit .teilflaechen tr th:nth-child(6),
  #wirtschaftlichkeit .table-wirtschaftlichkeitRechner tr th:nth-child(3) {
    width: 2rem;
  }
  #wirtschaftlichkeit .table input::-webkit-inner-spin-button,
  #wirtschaftlichkeit .table input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }
  #wirtschaftlichkeit h2 {
    font-size: 14px;
    margin-bottom: 0;
  }
  #wirtschaftlichkeit .mein-dach-details-map {
    height: 280px;
  }
  #wirtschaftlichkeit .mein-dach-details-hinweis-texte {
    display: none;
  }
  #wirtschaftlichkeit p {
    font-size: 12px;
  }

  /* ##########################  Monitoringbericht ########################### */

  #moni-chart-container,
  #moni-table-container,
  #moni-text-container {
    display: block !important;
  }

  .moni-main-container {
    width: 100%;
  }

  #moni-table-container,
  #moni-text-container {
    margin-top: 2rem;
  }

  #moni-table-container {
    page-break-before: always;
  }

  #moni-table-container .caption {
    display: none;
  }

  .tx-eks-monitoringbericht .statistic-table {
    font-size: 10px;
  }

  .tx-eks-monitoringbericht .statistic-table td,
  .tx-eks-monitoringbericht .statistic-table th {
    padding: 0px;
  }

  .moni-chart-container {
    width: 200mm !important;
  }
}
