/**
 * Official MSWDO Sulop intake — screen-hidden / print-only layout (A4).
 */

.officialPrintRoot {
  display: none;
}

.officialPrint {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9pt;
  line-height: 1.25;
  color: #000;
  background: #fff;
}

.officialPrint *,
.officialPrint *::before,
.officialPrint *::after {
  box-sizing: border-box;
}

.printPage {
  page-break-after: always;
  padding: 0;
  max-width: 190mm;
  margin: 0 auto;
}

.printPage:last-child {
  page-break-after: auto;
}

.printSeal {
  width: 52px;
  height: 52px;
  margin: 0 auto 6px;
  border: 2px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6pt;
  text-align: center;
  padding: 4px;
  line-height: 1.1;
}

.printHeadCenter {
  text-align: center;
  margin-bottom: 10px;
}

.printHeadCenter p {
  margin: 0 0 2px;
}

.printHeadTitle {
  font-weight: 700;
  font-size: 10pt;
  margin-top: 4px !important;
}

.printHeadSub {
  font-weight: 700;
  font-size: 11pt;
  margin-top: 6px !important;
}

.printHeadMeta {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  margin-bottom: 10px;
  font-size: 9pt;
}

.printSectionTitle {
  font-weight: 700;
  font-size: 9pt;
  margin: 10px 0 6px;
  letter-spacing: 0.02em;
}

.printGrid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  margin-bottom: 6px;
}

.printGrid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px 10px;
  margin-bottom: 6px;
}

.printField {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  font-size: 9pt;
}

.printFieldLabel {
  font-weight: 700;
  white-space: nowrap;
}

.printFieldVal {
  flex: 1;
  min-width: 80px;
  border-bottom: 1px solid #000;
  min-height: 1.1em;
  padding: 0 2px;
  word-break: break-word;
}

.printTbl {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 12px;
  font-size: 8pt;
}

.printTbl th,
.printTbl td {
  border: 1px solid #000;
  padding: 4px 3px;
  vertical-align: top;
}

.printTbl thead th {
  background: #fff9c4;
  font-weight: 700;
  text-align: center;
}

.printTbl tbody td {
  min-height: 1.35rem;
}

.printBoldLbl {
  font-weight: 700;
  margin: 10px 0 4px;
  font-size: 9pt;
}

.printLined {
  border: 1px solid #000;
  padding: 6px 8px;
  min-height: 16em;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.45em;
  background: repeating-linear-gradient(
    transparent,
    transparent calc(1.45em - 1px),
    #bbb calc(1.45em - 1px),
    #bbb 1.45em
  );
  background-origin: content-box;
  font-size: 9pt;
}

.printLined--sm {
  min-height: 9em;
}

.printLined--assessment {
  min-height: 22em;
}

.printLined--recommend {
  min-height: 12em;
}

.printField--row {
  margin-bottom: 5px;
}

.printField--row .printFieldVal {
  flex: 1;
}

/* Page 2 — case categories */
.printCatWrap {
  border: 1px solid #000;
  padding: 8px;
  margin-bottom: 10px;
}

.printCatGrid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px 12px;
  font-size: 7.5pt;
  line-height: 1.35;
}

@media print {
  .printCatGrid {
    font-size: 7pt;
  }
}

.printCatCol p {
  margin: 0 0 4px;
}

.printCatHead {
  font-weight: 700;
  margin-bottom: 2px !important;
}

.printHit {
  font-weight: 700;
  margin-right: 2px;
}

.printSigRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
  font-size: 9pt;
}

.printSigBox {
  text-align: center;
}

.printSigLine {
  border-bottom: 1px solid #000;
  min-height: 28px;
  margin-bottom: 4px;
}

.printSigLbl {
  font-size: 8pt;
}

.printNotedBlock {
  text-align: left;
}

.printNotedLine {
  border-bottom: 1px solid #000;
  min-height: 28px;
  margin-top: 4px;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  html,
  body {
    background: #fff !important;
    height: auto !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .no-print {
    display: none !important;
  }

  .popover,
  .toast {
    display: none !important;
  }

  .officialPrintRoot {
    display: block !important;
    position: static !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    height: auto !important;
    left: auto !important;
    top: auto !important;
  }
}
