/* =========================================
   KÖZÖS NYOMTATÁSI NÉZET
   ========================================= */


/* Új nyomtatási fül képernyős megjelenése */

body.print-view {
  margin: 0;
  padding: 30px;

  display: block;

  background-color: #eef1f4;

  font-family:
    Roboto,
    Arial,
    system-ui,
    -apple-system,
    sans-serif;
}


.print-sheet {
  max-width: 1200px;

  margin: 0 auto;
  padding: 32px 38px;

  background-color: #ffffff;

  box-shadow:
    0 4px 18px
    rgba(0, 0, 0, 0.08);
}


/* Dokumentum fejléc */

.print-document-header {
  margin-bottom: 22px;
  padding-bottom: 12px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 20px;

  border-bottom: 1px solid #d8dde3;
}


.print-document-brand {
  display: flex;
  flex-direction: column;

  gap: 3px;
}


.print-document-brand strong {
  color: #213d65;

  font-size: 14px;
  font-weight: 700;
}


.print-document-brand span {
  color: #7a8490;

  font-size: 10px;
}


.print-document-date {
  color: #7a8490;

  font-size: 10px;

  white-space: nowrap;
}


/* Dokumentum lábléc */

.print-document-footer {
  margin-top: 24px;
  padding-top: 9px;

  border-top: 1px solid #d8dde3;

  color: #8b949e;

  font-size: 9px;
  text-align: center;
}


/* =========================================
   TÉNYLEGES NYOMTATÁS / PDF
   ========================================= */

@media print {

  @page {
    size: A4 landscape;
    margin: 12mm;
  }


  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }


  html,
  body {
    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff !important;

    color: #111111 !important;

    font-size: 9pt !important;
  }


  body {
    display: block !important;
  }


  body.print-view {
    padding: 0 !important;
  }


  .print-sheet {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    box-shadow: none !important;
  }


  /* Weboldal elemeinek eltüntetése */

  .navbar,
  .site-footer,
  .stat-actions,
  button,
  .btn {
    display: none !important;
  }


  /* Oldalcím */

  .page-title-bar {
    height: auto !important;

    margin: 0 0 8mm !important;
    padding: 0 0 4mm !important;

    background: transparent !important;

    border-bottom:
      2px solid #213d65 !important;
  }


  .page-title {
    color: #213d65 !important;

    font-size: 18pt !important;
    font-weight: 600 !important;

    text-align: left !important;
  }


  /* Bootstrap konténer kikapcsolása */

  main.container {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
  }


  /* Statisztikai oldalak */

  .stat-page {
    width: 100% !important;
  }


  .stat-section {
    margin: 0 0 7mm !important;

    border:
      1px solid #d8dde3 !important;

    border-radius: 0 !important;

    box-shadow: none !important;

    break-inside: avoid-page;
    page-break-inside: avoid;
  }


  .stat-section-header {
    padding: 7px 10px !important;

    background-color: #f2f4f6 !important;
  }


  .stat-section-header h2 {
    margin: 0 !important;

    color: #213d65 !important;

    font-size: 11pt !important;
  }


  /* Táblázatok */

  .stat-table-wrapper {
    overflow: visible !important;
  }


  table {
    width: 100% !important;

    border-collapse: collapse !important;

    font-size: 8pt !important;
  }


  thead {
    display: table-header-group;
  }


  tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }


  th,
  td {
    padding: 4px 5px !important;

    border:
      1px solid #bfc6cf !important;
  }


    th {
    background-color: #edf0f3 !important;

    color: #111111 !important;

    font-weight: 700 !important;
    }

    thead th,
    table thead th {
    color: #111111 !important;
    }


  /* Linkeknél ne írja ki az URL-t */

  a {
    color: inherit !important;
    text-decoration: none !important;
  }


  a[href]::after {
    content: none !important;
  }


  /* Nyomtatási fejléc */

  .print-document-header {
    margin-bottom: 7mm;
  }


  .print-document-footer {
    margin-top: 7mm;
  }

}

.print-toolbar {
  max-width: 1200px;
  margin: 0 auto 16px;

  display: flex;
  justify-content: flex-end;
}

.print-toolbar button {
  padding: 10px 18px;

  border: 0;
  border-radius: 6px;

  background-color: #213d65;
  color: #ffffff;

  font-weight: 600;

  cursor: pointer;
}

@media print {

  .print-toolbar {
    display: none !important;
  }

}