/**
 * Print stylesheet for PDF export
 * Hides inputs, shows only calculated columns with localized headings
 */

@media print {
  body {
    background: white;
    color: black;
  }

  .container {
    max-width: 100%;
  }

  /* Hide interactive elements */
  header .stack,
  .btn,
  select,
  .modal,
  .note-icon,
  input[type="text"],
  input[type="number"],
  textarea {
    display: none !important;
  }

  header .subtitle {
    font-size: 16px;
    margin-top: 8px;
  }

  /* Hide parameter cards */
  .card:first-of-type,
  .card:nth-of-type(2) {
    display: none !important;
  }

  /* Show only services table */
  .card:nth-of-type(3) {
    display: block !important;
    border: none;
    box-shadow: none;
    page-break-inside: avoid;
  }

  .card:nth-of-type(3) .footer {
    display: none;
  }

  .card:nth-of-type(3) h2 {
    font-size: 20px;
    margin-bottom: 16px;
  }

  /* Simplified table for print */
  .row {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 8px;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
  }

  .row.header {
    border-bottom: 2px solid black;
    padding-bottom: 8px;
  }

  /* Hide all columns except first (name) and last (total) */
  .row > *:not(:first-child):not(:nth-child(10)) {
    display: none !important;
  }

  .row.service.empty {
    display: none !important;
  }

  .row.service > div {
    white-space: normal;
    word-break: break-word;
  }

  /* Page settings */
  @page {
    margin: 2cm;
  }

  /* Force page breaks */
  .card {
    page-break-inside: avoid;
  }

  h2 {
    page-break-after: avoid;
  }
}
