@media print {
  @page {
    size: A4;
    margin: 14mm 13mm;
  }

  body {
    background: #ffffff;
    color: #111111;
  }

  .hero,
  .toolbar,
  #editView,
  #previewView,
  #clientBuilder,
  #clientFormView > .panel-header {
    display: none !important;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .shell,
  .content {
    box-shadow: none;
    border: 0;
    padding: 0;
    background: #ffffff;
  }

  #clientFormView {
    display: block !important;
  }

  .client-form-sheet {
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    background: #ffffff;
  }

  /* Първа страница - заглавна */
  .client-form-title {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    page-break-after: always;
    border-bottom: 0;
    padding: 0 0 18mm;
    margin: 0;
    text-align: center;
  }

  .client-form-title h2 {
    font-size: 36px;
    line-height: 1.15;
    margin: 0 0 22px;
    color: #16211d;
    text-align: center;
  }

  .client-form-title p {
    max-width: 720px;
    font-size: 17px;
    line-height: 1.65;
    margin: 0 auto;
    color: #40504a;
    text-align: center;
  }

  .client-form-title .preview-meta {
    margin-top: 28mm;
    justify-content: center;
  }

  .client-form-title .meta-pill {
    color: #2e3c37;
    background: #ffffff;
    border: 1px solid #dce8e3;
    font-size: 13px;
    padding: 8px 12px;
  }

  /* Всяка стая да започва на нова страница */
  .client-room {
    page-break-before: always;
    break-before: page;
    page-break-inside: avoid;
    break-inside: avoid;
    box-shadow: none;
    background: #ffffff;
    border: 1px solid #dce8e3;
    border-radius: 18px;
    padding: 18px 22px;
    margin: 0;
  }

  .client-room:first-of-type {
    page-break-before: auto;
    break-before: auto;
  }

  .client-room h3 {
    font-size: 28px;
    line-height: 1.15;
    margin: 0 0 18px;
    color: #16211d;
  }

  .client-question {
    page-break-inside: avoid;
    break-inside: avoid;
    border-top: 1px solid #e7eeea;
    padding-top: 12px;
    margin-top: 12px;
  }

  .client-question:first-of-type {
    border-top: 0;
    padding-top: 0;
  }

  .client-question strong {
    display: block;
    font-size: 16px;
    line-height: 1.35;
    margin-bottom: 8px;
    color: #1d2a25;
  }

  .client-lines {
    display: grid;
    gap: 13px;
    padding-top: 4px;
  }

  .client-lines span {
    display: block;
    height: 1px;
    border-bottom: 1.2px dotted #8f9c97;
  }

  .client-note {
    page-break-inside: avoid;
    break-inside: avoid;
    margin-top: 18px;
    background: #edf8f1;
    border-left: 5px solid #58d68d;
    color: #25352f;
    padding: 12px 14px;
    border-radius: 12px;
    line-height: 1.5;
  }

  /* PDF за готовия преглед */
  body.print-preview #previewView {
    display: block !important;
  }

  body.print-preview #clientFormView {
    display: none !important;
  }

  body.print-preview .preview-sheet,
  body.print-preview .preview-section,
  body.print-preview .qa {
    background: #ffffff;
    color: #111111;
    box-shadow: none;
    border-color: #dddddd;
  }

  body.print-preview .preview-section p,
  body.print-preview .qa p,
  body.print-preview .meta-pill {
    color: #222222;
  }
}