/* SPDX-License-Identifier: AGPL-3.0-or-later */
/**
 * Full d'estils d'impressió per a l'informe exportable en PDF (A4, text justificat i títols a l'esquerra).
 */

@media print {
  @page {
    size: A4 portrait;
    margin: 18mm;
  }

  html, body, #app, .app-main, .pantalla-quadern {
    height: auto !important;
    overflow: visible !important;
    background: #FFFFFF !important;
    color: #000000 !important;
    zoom: 1 !important;
  }

  .app-header,
  .felip-app-footer,
  .quadern-layout,
  .toast-root,
  .skip-link {
    display: none !important;
  }

  .informe-a4-print {
    display: block !important;
    font-size: 11pt;
    line-height: 1.5;
  }

  .informe-cap {
    border-bottom: 2px solid #16303F;
    padding-bottom: 10px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }

  .informe-cap h1 {
    font-size: 16pt;
    text-align: left;
  }

  .informe-seccio {
    margin-bottom: 16px;
  }

  .informe-seccio h2 {
    font-size: 13pt;
    text-align: left;
    border-bottom: 1px solid #CBD5E1;
    padding-bottom: 4px;
    margin-bottom: 8px;
  }

  .informe-seccio p {
    text-align: justify;
    margin-bottom: 6px;
  }

  .taula-dades th, .taula-dades td {
    border: 1px solid #94A3B8;
    padding: 6px 8px;
    text-align: left;
  }
}
