* {
  box-sizing: border-box;
}

html {
  background: #eef0f2;
}

body {
  margin: 0;
  color: #2c2c2c;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

.print-sheet,
.print-error {
  width: 210mm;
  min-height: 297mm;
  margin: 20px auto;
  padding: 14mm;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .15);
}

.print-header {
  display: grid;
  grid-template-columns: 34% 66%;
  gap: 16px;
  align-items: center;
}

.print-brand img {
  display: block;
  width: 100%;
  max-width: 255px;
}

.print-agent {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  color: #6e6e6e;
  text-align: right;
}

.print-agent__contact > div {
  margin-bottom: 3px;
}

.print-agent__phone--primary {
  color: #262626;
  font-size: 17px;
  font-weight: 700;
}

.print-agent__avatar {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
}

.print-title {
  margin: 14px 0 10px;
}

.print-title h1 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.15;
}

.print-title p {
  margin: 0;
  color: #686868;
  font-size: 15px;
}

.print-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 12px 0;
  overflow: hidden;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  background: #f1f1f1;
}

.print-summary > div {
  min-height: 68px;
  padding: 10px;
  border-right: 1px solid #d6d6d6;
  text-align: center;
}

.print-summary > div:last-child {
  border-right: 0;
}

.print-summary span,
.print-summary strong {
  display: block;
}

.print-summary span {
  margin-bottom: 5px;
  color: #767676;
}

.print-summary strong {
  font-size: 17px;
}

.print-summary .print-green {
  color: #7eaa00;
}

.print-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  margin-top: 12px;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid #d9d9d9;
  background: #f4f4f4;
}

.media-frame--property,
.media-frame--factory {
  min-height: 290px;
}

.media-frame img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  object-fit: contain;
}

.media-frame img[hidden] {
  display: none;
}

.media-frame--property img {
  object-fit: cover;
}

.media-fallback {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #777;
  text-align: center;
}

.print-details {
  border-top: 2px solid #cfcfcf;
}

.print-details h2,
.print-description h2 {
  margin: 10px 0;
  font-size: 18px;
}

.print-details dl {
  margin: 0;
}

.print-details dl > div {
  display: grid;
  grid-template-columns: 72% 28%;
  padding: 8px 5px;
  border-top: 1px solid #ddd;
}

.print-details dt {
  font-weight: 400;
}

.print-details dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.print-description {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.55;
}

.print-description p {
  margin: 0 0 9px;
}

.print-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px solid #ddd;
  color: #777;
}

.print-footer img {
  width: 120px;
  height: auto;
}

.print-error {
  min-height: auto;
  text-align: center;
}

.print-error a {
  color: #598b00;
  font-weight: 700;
}

@page {
  size: A4 portrait;
  margin: 8mm;
}

@media print {
  html,
  body {
    background: #fff;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .print-sheet,
  .print-error {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }

  .print-header,
  .print-summary,
  .print-media-grid,
  .print-details,
  .print-footer {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
