/* ==============================================================================
   LA VINSIYA HEALTHCARE - HR LETTER SUITE
   MINIMALISTIC LIGHT THEME (BRAND COLOR: rgb(162, 75, 57) / #a24b39)
   ============================================================================== */

:root {
    /* Brand Theme Color: rgb(162, 75, 57) */
    --accent: rgb(162, 75, 57);
    --accent-hover: rgb(138, 60, 44);
    --accent-dark: rgb(114, 46, 33);
    --accent-light: rgba(162, 75, 57, 0.08);
    --accent-subtle: rgba(162, 75, 57, 0.14);
    --accent-focus: rgba(162, 75, 57, 0.20);
    --border-accent: rgba(162, 75, 57, 0.35);

    /* Minimalist Light Palette */
    --preview-bg: #f4efe9;        /* Warm soft neutral background for realistic A4 contrast */
    --sidebar-bg: #ffffff;        /* Crisp clean white */
    --card-bg: #faf7f5;           /* Soft light card tint */
    --card-border: #e8ded9;       /* Subtle minimalist warm border */
    --card-border-subtle: #f0eae5;

    /* Typography & Contrast */
    --text-main: #2b211e;         /* High readability deep charcoal espresso */
    --text-muted: #74635f;        /* Refined secondary text */
    --label-color: #554440;       /* Form labels */

    /* Functional Accents */
    --primary: rgb(162, 75, 57);
    --primary-hover: rgb(138, 60, 44);
    --accent-offer: rgb(162, 75, 57);
    --accent-appt: rgb(162, 75, 57);
    
    --success: #059669;
    --success-hover: #047857;
    --danger: #dc2626;

    --sidebar-width: 440px;
    --shadow-paper: 0 10px 30px rgba(43, 33, 30, 0.08), 0 2px 6px rgba(43, 33, 30, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--preview-bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Minimalist Scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: #ede5e1;
}
::-webkit-scrollbar-thumb {
    background: #cbbcb5;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgb(162, 75, 57);
}

/* App Layout */
.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* ==============================================================================
   SIDEBAR CONTROLS (MINIMALIST LIGHT MODE)
   ============================================================================== */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    color: var(--text-main);
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-right: 1px solid var(--card-border);
    flex-shrink: 0;
    box-shadow: 4px 0 20px rgba(43, 33, 30, 0.04);
    z-index: 100;
}

.sidebar-header {
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1rem;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.brand-badge svg {
    color: rgb(162, 75, 57);
}

.brand-badge span {
    color: rgb(162, 75, 57);
}

.sidebar-header p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Document Switcher Tabs */
.doc-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #eee8e4;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    margin-bottom: 1.25rem;
    gap: 4px;
}

.switcher-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 0.5rem;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    user-select: none;
    border: none;
    background: transparent;
    text-decoration: none;
}

.switcher-tab:hover {
    color: var(--text-main);
    background: rgba(162, 75, 57, 0.08);
}

.switcher-tab.active-offer,
.switcher-tab.active-appt {
    background: rgb(162, 75, 57);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(162, 75, 57, 0.28);
}

/* Sync Notice */
.sync-notice {
    background: rgba(162, 75, 57, 0.05);
    border: 1px dashed rgba(162, 75, 57, 0.35);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    font-size: 0.75rem;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sync-notice span {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 500;
}

.sync-notice span svg {
    stroke: rgb(162, 75, 57);
}

.btn-sync {
    background: rgba(162, 75, 57, 0.1);
    color: rgb(162, 75, 57);
    border: 1px solid rgba(162, 75, 57, 0.3);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sync:hover {
    background: rgb(162, 75, 57);
    color: #ffffff;
}

/* Form sections */
.form-section {
    margin-bottom: 1.25rem;
    background-color: var(--card-bg);
    padding: 1.15rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    box-shadow: 0 1px 4px rgba(43, 33, 30, 0.02);
}

.form-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgb(162, 75, 57);
    font-weight: 700;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-group {
    margin-bottom: 0.85rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--label-color);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

input, select, textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background-color: #ffffff;
    border: 1px solid #dcd1cc;
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.84rem;
    transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgb(162, 75, 57);
    box-shadow: 0 0 0 3px rgba(162, 75, 57, 0.16);
    background-color: #ffffff;
}

textarea {
    resize: vertical;
}

/* Actions Panel */
.actions-panel {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background-color: rgb(162, 75, 57);
    color: white;
    box-shadow: 0 2px 8px rgba(162, 75, 57, 0.25);
}
.btn-primary:hover {
    background-color: rgb(138, 60, 44);
}

.btn-success {
    background-color: #059669;
    color: white;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
}
.btn-success:hover {
    background-color: #047857;
}

.btn-outline {
    background-color: #ffffff;
    border: 1px solid #dcd1cc;
    color: var(--text-main);
}
.btn-outline:hover {
    background-color: #f7f1ee;
    border-color: rgba(162, 75, 57, 0.4);
    color: rgb(162, 75, 57);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-chip {
    background: #f4efe9;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgb(162, 75, 57);
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-chip:hover {
    background: rgb(162, 75, 57);
    color: #ffffff;
    border-color: rgb(162, 75, 57);
}

/* ==============================================================================
   PREVIEW WORKSPACE & TOP BAR
   ============================================================================== */
.preview-workspace {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: auto;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--preview-bg);
    scroll-behavior: smooth;
}

.workspace-top-bar {
    width: calc(210mm * var(--page-scale, 1));
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    background: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    box-shadow: 0 2px 10px rgba(43, 33, 30, 0.04);
    box-sizing: border-box;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.doc-title-indicator {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doc-title-indicator .badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    background: rgba(162, 75, 57, 0.1);
    color: rgb(162, 75, 57);
}

.zoom-controls {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f4efe9;
    padding: 3px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
}

.btn-zoom {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-zoom:hover,
.btn-zoom.active {
    background: #ffffff;
    color: rgb(162, 75, 57);
    box-shadow: 0 1px 3px rgba(43, 33, 30, 0.08);
}

.pages-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
}

.doc-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.doc-container.hidden {
    display: none !important;
}

.pdf-page-container {
    position: relative;
    width: calc(210mm * var(--page-scale, 1));
    height: calc(297mm * var(--page-scale, 1));
    margin: 0 auto 20px auto;
    transition: width 0.15s ease-out, height 0.15s ease-out;
}

.page-num-pill {
    position: absolute;
    left: -85px;
    top: 15px;
    background: #ffffff;
    color: rgb(162, 75, 57);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1px solid #dcd1cc;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 6px rgba(43, 33, 30, 0.05);
    z-index: 5;
}

@media (max-width: 1250px) {
    .page-num-pill {
        display: none;
    }
}

.pdf-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    background-color: #ffffff;
    color: #000000;
    box-shadow: var(--shadow-paper);
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 0;
    transform: scale(var(--page-scale, 1));
    transform-origin: top left;
    transition: transform 0.15s ease-out;
}

/* ==============================================================================
   LETTER 1: APPOINTMENT LETTER EXACT FORMAT (THEMED WITH rgb(162, 75, 57))
   ============================================================================== */
.appt-document .pdf-page {
    padding: 35mm 20mm 20mm 20mm !important;
    font-family: "Times New Roman", Times, serif;
    font-size: 11.5pt;
    line-height: 1.45;
    text-align: justify;
}

.appt-document #appt-page-1,
.appt-document #appt-page-2,
.appt-document #appt-page-3,
.appt-document #appt-page-4 {
    padding-top: 35mm !important;
}

/* Header theme block */
.appt-header-box {
    text-align: center;
    margin-bottom: 25px;
}

.appt-header-title-block {
    background-color: rgb(162, 75, 57);
    color: #ffffff;
    font-weight: bold;
    padding: 6px 20px;
    font-size: 15pt;
    letter-spacing: 0.5px;
    display: inline-block;
    text-transform: uppercase;
}

.appt-date-line {
    margin-bottom: 20px;
    font-size: 11.5pt;
}

.appt-address-block {
    margin-bottom: 22px;
    line-height: 1.35;
}

.appt-subject-line {
    font-weight: bold;
    margin-bottom: 10px;
}

.appt-salutation {
    margin-bottom: 0px;
}

.appt-salutation strong,
#appt-lbl-salutation {
    font-weight: bold;
}

.appt-letter-paragraph {
    margin-bottom: 8px;
}

.appt-section-item {
    margin-bottom: 8px;
}

.appt-section-item-title {
    font-weight: bold;
    display: block;
    margin-bottom: 2px;
}

.appt-section-item-content {
    display: block;
}

.appt-leaves-list {
    list-style: none;
    margin-left: 20px;
    margin-bottom: 8px;
}

.appt-leaves-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 3px;
}

.appt-leaves-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    font-size: 8pt;
    top: 1px;
}

.appt-leaves-note {
    margin-left: 20px;
    margin-bottom: 15px;
}

.appt-duties-list {
    list-style: none;
    margin-left: 20px;
    margin-bottom: 15px;
}

.appt-duties-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 5px;
}

.appt-duties-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    font-size: 8pt;
    top: 1px;
}

.appt-signature-group {
    margin-top: 30px;
    margin-bottom: 40px;
    line-height: 1.3;
}

.appt-director-sig-lines {
    margin-top: 50px;
}

.appt-ack-section {
    border-top: 1px dashed #777777;
    padding-top: 25px;
    margin-top: 25px;
}

.appt-ack-title {
    font-weight: bold;
    font-size: 12.5pt;
    margin-bottom: 15px;
    text-align: left;
}

.appt-ack-text {
    margin-bottom: 25px;
}

.appt-ack-sign-lines {
    line-height: 1.8;
}

.appt-annexure-header-title {
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

.appt-annexure-title {
    font-weight: bold;
    font-size: 12pt;
    display: block;
}

.appt-annexure-subtitle {
    font-weight: bold;
    font-size: 12pt;
    text-decoration: underline;
    display: block;
}

.appt-page-4-header {
    margin-bottom: 15px;
    font-size: 11pt;
    line-height: 1.4;
}

.appt-page-4-header-row {
    display: flex;
    margin-bottom: 2px;
}

.appt-page-4-header-label {
    width: 120px;
    font-weight: normal;
}

.appt-page-4-header-separator {
    width: 20px;
    text-align: center;
}

.appt-page-4-header-value {
    font-weight: bold;
}

/* Salary Table for Appt */
.appt-salary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 9.5pt;
}

.appt-salary-table th, .appt-salary-table td {
    border: 1px solid #000000;
    padding: 4px 10px;
    line-height: 1.25;
    vertical-align: middle;
}

.appt-salary-table th {
    font-weight: bold;
    text-align: left;
    background-color: #ffffff;
}

.appt-salary-table th.right-align, .appt-salary-table td.right-align {
    text-align: right;
}

.appt-table-section-row {
    background-color: #ffffff;
    font-weight: bold;
    text-align: center;
}

.bg-yellow {
    background-color: #FFF2A3 !important;
    font-weight: bold;
}

.bg-blue {
    background-color: #BCE7FD !important;
    font-weight: bold;
}

.bg-green {
    background-color: #92D050 !important;
    font-weight: bold;
}

/* DA Table for Appt */
.appt-da-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9.5pt;
    margin-top: 10px;
}

.appt-da-table td {
    border: 1px solid #000000;
    padding: 5px 10px;
    vertical-align: middle;
}

.appt-da-table-header {
    font-weight: bold;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #000000;
}

.appt-da-subtable {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.appt-da-subtable td {
    border: none;
    border-bottom: 1px solid #000000;
    padding: 5px 10px;
}

.appt-da-subtable tr:last-child td {
    border-bottom: none;
}

/* ==============================================================================
   LETTER 2: OFFER LETTER EXACT FORMAT (THEMED)
   ============================================================================== */
.offer-document .pdf-page {
    padding: 25mm 20mm 22mm 20mm;
    font-family: 'Inter', sans-serif;
    font-size: 10pt;
    line-height: 1.48;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.offer-document .terms-page {
    font-size: 9.8pt !important;
    line-height: 1.35 !important;
}

.offer-document .terms-page .offer-section-header {
    margin-bottom: 0.4rem !important;
}

.offer-document .terms-page .offer-term-item {
    margin-bottom: 0.4rem !important;
    margin-top: 0.4rem !important;
}

.offer-document .terms-page .offer-term-item:first-child {
    margin-top: 0 !important;
}

.offer-document .terms-page .offer-term-item div {
    margin-top: 0.15rem !important;
}

.offer-page-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.font-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.offer-date-val {
    margin-bottom: 2rem;
}

.offer-recipient-info {
    margin-bottom: 2rem;
    line-height: 1.4;
}

.offer-subject-line {
    margin-bottom: 2rem;
}

.offer-salutation-line {
    margin-bottom: 1.5rem;
}

.offer-paragraph {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.offer-section-header {
    margin-bottom: 1.5rem;
}

.offer-term-item {
    margin-bottom: 1rem;
    text-align: justify;
}

.offer-docs-list {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
    padding-left: 0;
    list-style-type: none;
}

.offer-docs-list li {
    margin-bottom: 0.25rem;
    font-size: 9.5pt;
    line-height: 1.4;
}

.offer-closing-section {
    margin-top: auto;
    line-height: 1.4;
}

.offer-annexure-header {
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.offer-candidate-table {
    width: 100%;
    border: none;
    margin-bottom: 1rem;
    font-size: 10pt;
    line-height: 1.4;
}

.offer-candidate-table td {
    padding: 2px 0;
}

.offer-salary-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #000;
    margin-bottom: 1.5rem;
    font-size: 9.5pt;
    font-family: 'Times New Roman', Times, serif;
}

.offer-salary-table th,
.offer-salary-table td {
    border: 1px solid #000;
    padding: 4px 8px;
    line-height: 1.35;
    font-family: 'Times New Roman', Times, serif;
}

.offer-salary-table th {
    font-weight: 700;
    background: #fff;
    text-align: center;
    vertical-align: middle;
}

.offer-notes-list {
    padding-left: 1.2rem;
    font-size: 8pt;
    line-height: 1.35;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.offer-notes-list li {
    margin-bottom: 0.15rem;
}

/* ==============================================================================
   RESPONSIVE & MOBILE OPTIMIZATIONS (FORM ON TOP, PDF PREVIEW ON BOTTOM)
   ============================================================================== */
@media (max-width: 1100px) {
    /* Stack layout vertically: Form on TOP, PDF Preview on BOTTOM */
    .app-container {
        flex-direction: column !important;
        height: auto !important;
        min-height: 100vh !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    /* EDIT FORM (TOP SECTION) - FULL WIDTH & FULLY VISIBLE */
    .sidebar {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        border-right: none !important;
        border-bottom: 3px solid var(--card-border) !important;
        padding: 1.25rem 1rem !important;
        box-shadow: none !important;
    }

    /* PDF PREVIEW (BOTTOM SECTION) - FULL WIDTH & DIRECTLY BELOW EDIT FORM */
    .preview-workspace {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 80vh !important;
        padding: 1.5rem 0.5rem 4rem 0.5rem !important;
        overflow-x: hidden !important;
        align-items: center !important;
        background: var(--preview-bg) !important;
    }

    .workspace-top-bar {
        width: calc(210mm * var(--page-scale, 1)) !important;
        max-width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 0.85rem !important;
        margin-bottom: 1.5rem !important;
    }

    .workspace-top-bar > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .doc-container:not(.hidden) {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }

    .doc-container.hidden,
    #container-offer.hidden,
    #container-appt.hidden {
        display: none !important;
    }

    .pages-wrapper {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem !important;
    }

    .pdf-page-container {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .page-num-pill {
        display: none !important;
    }
}

/* ==============================================================================
   EXACT A4 PRINT RULES (ZERO MODIFICATIONS TO PDF OUTPUT)
   ============================================================================== */
@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }
    
    body {
        background: #ffffff !important;
        color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .sidebar, 
    .workspace-top-bar, 
    .doc-switcher, 
    .page-num-pill, 
    .mobile-mode-bar, 
    .mobile-floating-action {
        display: none !important;
    }

    .preview-workspace {
        padding: 0 !important;
        margin: 0 !important;
        background: #ffffff !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }

    .pages-wrapper {
        gap: 0 !important;
        display: block !important;
    }

    .doc-container:not(.hidden) {
        display: block !important;
        width: 100% !important;
    }

    .doc-container.hidden,
    #container-offer.hidden,
    #container-appt.hidden {
        display: none !important;
    }

    .pdf-page-container {
        position: relative !important;
        width: 210mm !important;
        height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .pdf-page {
        position: relative !important;
        width: 210mm !important;
        height: 297mm !important;
        min-height: 297mm !important;
        max-height: 297mm !important;
        margin: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        page-break-after: always !important;
        break-after: page !important;
        overflow: hidden !important;
    }

    .pdf-page:last-child {
        page-break-after: avoid !important;
        break-after: avoid !important;
    }
}
