@page {
    size: A4;
    margin: 12mm;
}

html,
body {
    width: auto;
    min-width: 0;
    margin: 0;
    background: #ffffff !important;
}

* {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.site-header,
.builder-panel,
.preview-toolbar,
.public-footer,
.mobile-download-bar,
.template-filter-bar,
.template-gallery,
.admin-header,
.admin-footer,
.lead-modal-backdrop {
    display: none !important;
}

.builder-layout {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.preview-panel {
    display: block !important;
    width: auto !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: #ffffff !important;
}

.cv-preview {
    width: 100% !important;
    max-width: none !important;
    min-height: auto !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.cv-page-inner {
    min-height: calc(297mm - 24mm) !important;
}

.cv-section,
.cv-item,
.cv-simple-row {
    break-inside: avoid;
    page-break-inside: avoid;
}

.cv-section-title {
    break-after: avoid;
    page-break-after: avoid;
}

.cv-bullets {
    break-before: avoid;
    page-break-before: avoid;
}

.cv-profile-photo {
    break-inside: avoid;
    page-break-inside: avoid;
}

.cv-profile-photo img {
    object-fit: cover !important;
}

.cv-template-footer {
    display: block !important;
    margin-top: auto !important;
    color: #9aa5ad !important;
    font-size: 8pt !important;
}

a {
    color: inherit;
    text-decoration: none;
}
