/*
===============================================================================
VSUN Solar Calculator — Step 6
Version 2.4.0
===============================================================================
*/

.vsun-step-6 {
    direction: rtl;
    color: #17332b;
}

.vsun-step6-print-brand {
    display: none;
}

.vsun-step6-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 24px;
    padding: 30px;
    border: 1px solid rgba(21, 108, 80, 0.16);
    border-radius: 28px;
    background:
        radial-gradient(circle at 10% 20%, rgba(44, 181, 125, 0.15), transparent 34%),
        linear-gradient(135deg, #f7fffb 0%, #eef9f4 100%);
    box-shadow: 0 18px 50px rgba(26, 92, 70, 0.09);
}

.vsun-step6-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e4f7ee;
    color: #0f7352;
    font-size: 13px;
    font-weight: 800;
}

.vsun-step6-hero h2 {
    margin: 0 0 12px;
    color: #103c30;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.35;
}

.vsun-step6-hero-copy > p {
    max-width: 760px;
    margin: 0;
    color: #4e6d63;
    font-size: 15px;
    line-height: 2;
}

.vsun-step6-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.vsun-step6-meta span {
    padding: 7px 10px;
    border: 1px solid rgba(24, 91, 69, 0.13);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.75);
    color: #365d51;
    font-size: 12px;
    font-weight: 700;
}

.vsun-step6-confidence-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 32px rgba(17, 82, 62, 0.08);
    text-align: center;
}

.vsun-step6-confidence-ring {
    --score: 0;
    position: relative;
    display: grid;
    place-items: center;
    width: 138px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(#1aa66f calc(var(--score) * 1%), #dbece5 0);
}

.vsun-step6-confidence-ring::before {
    content: "";
    position: absolute;
    width: 108px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #fff;
}

.vsun-step6-confidence-ring strong,
.vsun-step6-confidence-ring span {
    position: relative;
    z-index: 1;
}

.vsun-step6-confidence-ring strong {
    margin-top: 8px;
    color: #11694d;
    font-size: 30px;
}

.vsun-step6-confidence-ring span {
    margin-top: -22px;
    color: #6b847b;
    font-size: 12px;
}

.vsun-step6-confidence-card p {
    margin: 14px 0 0;
    color: #58746a;
    font-size: 12px;
    line-height: 1.8;
}

.vsun-step6-alert {
    margin: 18px 0 0;
    padding: 13px 16px;
    border: 1px solid #f3c77f;
    border-radius: 14px;
    background: #fff8e9;
    color: #80591c;
    line-height: 1.8;
}

.vsun-step6-alert.is-success {
    border-color: #8bd3b6;
    background: #edfff7;
    color: #116b4d;
}

.vsun-step6-alert.is-error {
    border-color: #efaaa8;
    background: #fff1f0;
    color: #9b332f;
}

.vsun-step6-section {
    margin-top: 26px;
    padding: 24px;
    border: 1px solid #e2eee9;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(19, 66, 52, 0.055);
}

.vsun-step6-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.vsun-step6-section-heading > div {
    position: relative;
    padding-right: 48px;
}

.vsun-step6-section-number {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #e8f8f1;
    color: #117653;
    font-weight: 900;
}

.vsun-step6-section-heading h3 {
    margin: 0;
    color: #183f34;
    font-size: 21px;
}

.vsun-step6-section-heading p {
    margin: 6px 0 0;
    color: #73877f;
    font-size: 13px;
    line-height: 1.8;
}

.vsun-step6-text-button {
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid #b9d9cc;
    border-radius: 11px;
    background: #fff;
    color: #176b50;
    font-weight: 800;
    cursor: pointer;
}

.vsun-step6-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.vsun-step6-summary-item {
    min-height: 86px;
    padding: 14px;
    border: 1px solid #e5efeb;
    border-radius: 16px;
    background: #fbfefc;
}

.vsun-step6-summary-item span {
    display: block;
    margin-bottom: 8px;
    color: #7a8f87;
    font-size: 12px;
}

.vsun-step6-summary-item strong {
    display: block;
    color: #244d41;
    font-size: 15px;
    line-height: 1.7;
    word-break: break-word;
}

.vsun-step6-scenario-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.vsun-step6-scenario-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 230px;
    padding: 22px;
    border: 2px solid #e2ece8;
    border-radius: 22px;
    background: #fff;
    color: #294c41;
    text-align: right;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.vsun-step6-scenario-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(21, 75, 59, 0.1);
}

.vsun-step6-scenario-card.is-selected {
    border-color: #13855e;
    box-shadow: 0 0 0 4px rgba(19, 133, 94, 0.09), 0 18px 40px rgba(19, 104, 76, 0.12);
}

.vsun-step6-scenario-card.is-economic {
    background: linear-gradient(180deg, #fbfffd, #f0fbf5);
}

.vsun-step6-scenario-card.is-recommended {
    background: linear-gradient(180deg, #fbfdff, #eef5ff);
}

.vsun-step6-scenario-card.is-professional {
    background: linear-gradient(180deg, #fffefa, #fff9e8);
}

.vsun-step6-scenario-icon {
    font-size: 26px;
}

.vsun-step6-scenario-title {
    margin-top: 14px;
    color: #173f34;
    font-size: 18px;
    font-weight: 900;
}

.vsun-step6-scenario-subtitle {
    margin-top: 6px;
    color: #6a8279;
    font-size: 12px;
}

.vsun-step6-scenario-capacity {
    margin-top: auto;
    padding-top: 20px;
    color: #155f48;
    font-size: 24px;
    font-weight: 900;
}

.vsun-step6-scenario-note {
    margin-top: 5px;
    color: #71867e;
    font-size: 12px;
}

.vsun-step6-recommended-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 9px;
    border-radius: 999px;
    background: #176fd1;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.vsun-step6-protected-wrap {
    position: relative;
    margin-top: 26px;
}

.vsun-step6-protected-content {
    transition: filter .2s ease, opacity .2s ease;
}

.vsun-step6-protected-wrap.is-locked .vsun-step6-protected-content {
    max-height: 660px;
    overflow: hidden;
    filter: blur(5px);
    opacity: .45;
    pointer-events: none;
    user-select: none;
}

.vsun-step6-lock-panel {
    position: absolute;
    z-index: 10;
    top: 95px;
    right: 50%;
    width: min(560px, calc(100% - 28px));
    padding: 28px;
    border: 1px solid #cfe2da;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 70px rgba(14, 66, 50, 0.22);
    text-align: center;
    transform: translateX(50%);
}

.vsun-step6-protected-wrap:not(.is-locked) .vsun-step6-lock-panel {
    display: none;
}

.vsun-step6-lock-icon {
    font-size: 38px;
}

.vsun-step6-lock-panel h3 {
    margin: 12px 0 8px;
    color: #1d4a3d;
    font-size: 22px;
}

.vsun-step6-lock-panel > p {
    margin: 0 auto 18px;
    max-width: 470px;
    color: #698077;
    font-size: 13px;
    line-height: 1.9;
}

.vsun-step6-otp-form {
    max-width: 430px;
    margin: 0 auto;
    text-align: right;
}

.vsun-step6-otp-form > label {
    display: block;
    margin-bottom: 7px;
    color: #355b4f;
    font-size: 13px;
    font-weight: 800;
}

.vsun-step6-inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 8px;
}

.vsun-step6-inline-form input,
.vsun-step6-modal-dialog input,
.vsun-step6-modal-dialog textarea {
    width: 100%;
    min-height: 45px;
    padding: 10px 12px;
    border: 1px solid #cddfd8;
    border-radius: 11px;
    background: #fff;
    color: #213f36;
    font-family: inherit;
    box-sizing: border-box;
}

.vsun-step6-inline-form input:focus,
.vsun-step6-modal-dialog input:focus,
.vsun-step6-modal-dialog textarea:focus {
    outline: none;
    border-color: #1b9b6d;
    box-shadow: 0 0 0 3px rgba(27, 155, 109, .12);
}

.vsun-step6-primary-button {
    min-height: 45px;
    padding: 10px 16px;
    border: 0;
    border-radius: 11px;
    background: #13845d;
    color: #fff;
    font-family: inherit;
    font-weight: 900;
    cursor: pointer;
}

.vsun-step6-primary-button:disabled {
    opacity: .55;
    cursor: wait;
}

.vsun-step6-admin-preview {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    border: 1px dashed #6a8dc5;
    border-radius: 11px;
    background: #f1f6ff;
    color: #2d5c9e;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
}

.vsun-step6-form-status {
    min-height: 22px;
    margin: 10px 0 0;
    color: #647d74;
    font-size: 12px;
    line-height: 1.7;
}

.vsun-step6-form-status.is-error {
    color: #a23430;
}

.vsun-step6-form-status.is-success {
    color: #0d754e;
}

.vsun-step6-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.vsun-step6-kpi {
    padding: 17px;
    border-radius: 18px;
    background: linear-gradient(145deg, #effaf5, #f9fdfb);
    border: 1px solid #d9ebe4;
}

.vsun-step6-kpi span {
    display: block;
    color: #6c837a;
    font-size: 12px;
}

.vsun-step6-kpi strong {
    display: block;
    margin-top: 8px;
    color: #115f47;
    font-size: 23px;
}

.vsun-step6-kpi small {
    display: block;
    margin-top: 5px;
    color: #81928c;
    font-size: 11px;
}

.vsun-step6-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.vsun-step6-detail-card {
    padding: 18px;
    border: 1px solid #e0ebe7;
    border-radius: 18px;
    background: #fcfefd;
}

.vsun-step6-detail-card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 13px;
    color: #234e41;
    font-size: 16px;
}

.vsun-step6-detail-list {
    display: grid;
    gap: 9px;
    margin: 0;
}

.vsun-step6-detail-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e2ece8;
}

.vsun-step6-detail-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.vsun-step6-detail-row dt {
    color: #72877f;
    font-size: 12px;
}

.vsun-step6-detail-row dd {
    margin: 0;
    color: #2b5045;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
}

.vsun-step6-economic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.vsun-step6-economic-card {
    padding: 17px;
    border: 1px solid #e2e9e6;
    border-radius: 17px;
    background: #fff;
}

.vsun-step6-economic-card span {
    display: block;
    color: #75877f;
    font-size: 12px;
}

.vsun-step6-economic-card strong {
    display: block;
    margin-top: 8px;
    color: #244c40;
    font-size: 19px;
    line-height: 1.5;
}

.vsun-step6-economic-card small {
    display: block;
    margin-top: 6px;
    color: #8a9893;
    font-size: 11px;
}

.vsun-step6-assumption-note {
    margin-top: 14px;
    padding: 13px 15px;
    border-radius: 13px;
    background: #fff8e9;
    color: #775622;
    font-size: 12px;
    line-height: 1.9;
}

.vsun-step6-expert-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vsun-step6-expert-list li {
    position: relative;
    padding: 14px 42px 14px 14px;
    border: 1px solid #e0ece7;
    border-radius: 15px;
    background: #fbfefc;
    color: #3d5d53;
    font-size: 13px;
    line-height: 1.9;
}

.vsun-step6-expert-list li::before {
    content: "✓";
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #daf4e8;
    color: #0c7b55;
    font-weight: 900;
}

.vsun-step6-final-report-state {
    display: grid;
    grid-template-columns: minmax(230px, .7fr) 1fr;
    gap: 20px;
    margin: 26px 0 0;
    padding: 20px;
    border: 1px solid #cdddf0;
    border-radius: 20px;
    background: linear-gradient(135deg, #f2f7ff, #fbfdff);
}

.vsun-step6-final-report-state span,
.vsun-step6-final-report-state strong {
    display: block;
}

.vsun-step6-final-report-state span {
    color: #59718e;
    font-size: 12px;
}

.vsun-step6-final-report-state strong {
    margin-top: 7px;
    color: #274e7a;
    line-height: 1.8;
}

.vsun-step6-final-report-state p {
    margin: 0;
    color: #60758e;
    font-size: 12px;
    line-height: 2;
}

.vsun-step6-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.vsun-step6-action-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 3px 10px;
    align-items: center;
    min-height: 104px;
    padding: 17px;
    border: 0;
    border-radius: 18px;
    color: #fff;
    text-align: right;
    cursor: pointer;
}

.vsun-step6-action-card > span {
    grid-row: 1 / span 2;
    font-size: 28px;
}

.vsun-step6-action-card strong {
    font-size: 15px;
}

.vsun-step6-action-card small {
    opacity: .8;
    font-size: 11px;
}

.vsun-step6-action-card.is-green {
    background: linear-gradient(135deg, #13845d, #21a878);
}

.vsun-step6-action-card.is-blue {
    background: linear-gradient(135deg, #1a65bb, #3089e8);
}

.vsun-step6-action-card.is-gold {
    background: linear-gradient(135deg, #b27813, #d49b2f);
}

.vsun-step6-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 12px;
}

.vsun-step6-secondary-button {
    padding: 10px 13px;
    border: 1px solid #cfdfd8;
    border-radius: 11px;
    background: #fff;
    color: #355b4f;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
}

.vsun-step6-disclaimer {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #ead9b7;
    border-radius: 15px;
    background: #fffcf5;
    color: #6e6044;
    font-size: 12px;
    line-height: 2;
}

.vsun-step6-modal[hidden] {
    display: none;
}

.vsun-step6-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
}

.vsun-step6-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 31, 24, .62);
    backdrop-filter: blur(4px);
}

.vsun-step6-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    padding: 26px;
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .25);
}

.vsun-step6-modal-dialog h3 {
    margin: 0;
    color: #214b3f;
}

.vsun-step6-modal-dialog > p {
    margin: 7px 0 18px;
    color: #74877f;
    font-size: 13px;
}

.vsun-step6-modal-dialog label {
    display: block;
    margin-top: 12px;
}

.vsun-step6-modal-dialog label > span {
    display: block;
    margin-bottom: 6px;
    color: #3e5d53;
    font-size: 12px;
    font-weight: 800;
}

.vsun-step6-modal-close {
    position: absolute;
    top: 13px;
    left: 13px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #edf3f0;
    color: #426157;
    font-size: 24px;
    cursor: pointer;
}

.vsun-step6-submit-button {
    width: 100%;
    margin-top: 16px;
}

body.vsun-step6-modal-open {
    overflow: hidden;
}

@media (max-width: 980px) {
    .vsun-step6-summary-grid,
    .vsun-step6-kpi-grid,
    .vsun-step6-economic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vsun-step6-actions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .vsun-step6-hero {
        grid-template-columns: 1fr;
        padding: 21px;
    }

    .vsun-step6-confidence-card {
        flex-direction: row;
        gap: 18px;
        text-align: right;
    }

    .vsun-step6-confidence-ring {
        flex: 0 0 118px;
        width: 118px;
    }

    .vsun-step6-confidence-ring::before {
        width: 92px;
    }

    .vsun-step6-scenario-grid,
    .vsun-step6-detail-grid,
    .vsun-step6-expert-list,
    .vsun-step6-final-report-state {
        grid-template-columns: 1fr;
    }

    .vsun-step6-scenario-card {
        min-height: 195px;
    }

    .vsun-step6-section {
        padding: 18px;
        border-radius: 19px;
    }

    .vsun-step6-section-heading {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .vsun-step6-summary-grid,
    .vsun-step6-kpi-grid,
    .vsun-step6-economic-grid {
        grid-template-columns: 1fr;
    }

    .vsun-step6-inline-form {
        grid-template-columns: 1fr;
    }

    .vsun-step6-confidence-card {
        flex-direction: column;
        text-align: center;
    }

    .vsun-step6-lock-panel {
        top: 55px;
        padding: 20px;
    }

    .vsun-step6-hero h2 {
        font-size: 27px;
    }
}

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

    body * {
        visibility: hidden !important;
    }

    #vsun-calculator,
    #vsun-calculator * {
        visibility: visible !important;
    }

    #vsun-calculator {
        position: absolute !important;
        inset: 0 auto auto 0 !important;
        width: 100% !important;
        max-width: none !important;
        box-shadow: none !important;
    }

    #vsun-calculator .vsun-header,
    .vsun-step6-scenarios-section,
    .vsun-step6-actions-section,
    .vsun-step6-lock-panel,
    .vsun-step6-text-button,
    .vsun-step6-secondary-actions,
    .vsun-step6-modal,
    .vsun-step6-disclaimer {
        display: none !important;
    }

    .vsun-step6-print-brand {
        display: flex !important;
        justify-content: space-between;
        padding-bottom: 10px;
        border-bottom: 2px solid #185e49;
        margin-bottom: 12px;
        color: #1e4c3f;
    }

    .vsun-step6-protected-wrap.is-locked .vsun-step6-protected-content {
        max-height: none !important;
        overflow: visible !important;
        filter: none !important;
        opacity: 1 !important;
    }

    .vsun-step6-hero,
    .vsun-step6-section,
    .vsun-step6-final-report-state {
        break-inside: avoid;
        box-shadow: none !important;
    }

    .vsun-step6-hero {
        padding: 16px;
    }

    .vsun-step6-section {
        margin-top: 12px;
        padding: 14px;
    }

    .vsun-step6-summary-grid,
    .vsun-step6-kpi-grid,
    .vsun-step6-economic-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .vsun-step6-detail-grid,
    .vsun-step6-expert-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/*
===============================================================================
Dedicated multi-page report layout - Version 2.9.0
Rendered as native browser text for selectable, vector-quality PDF output.
===============================================================================
*/

.vsun-pdf-document {
    position: fixed;
    top: 0;
    left: -12000px;
    z-index: -9999;
    width: 794px;
    direction: rtl;
    color: #14332d;
    background: #ffffff;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.75;
}

.vsun-pdf-document,
.vsun-pdf-document * {
    box-sizing: border-box;
}

.vsun-pdf-page {
    position: relative;
    width: 794px;
    height: 1123px;
    overflow: hidden;
    padding: 50px 56px 64px;
    background: #ffffff;
}

.vsun-pdf-page.is-cover {
    padding: 34px 56px 44px;
    background:
        linear-gradient(
            135deg,
            #f5fbff 0%,
            #ffffff 56%,
            #fff8e9 100%
        );
}

.vsun-pdf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    margin-bottom: 28px;
    border-bottom: 2px solid #e0e9e5;
}

.vsun-pdf-header img {
    width: 172px;
    height: 62px;
    object-fit: contain;
    object-position: right center;
}

.vsun-pdf-header > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.vsun-pdf-header strong {
    color: #0b3b69;
    font-size: 18px;
    line-height: 1.4;
}

.vsun-pdf-header span {
    color: #6c7f78;
    font-size: 11px;
    direction: ltr;
}

 .vsun-pdf-watermark {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    pointer-events: none;
    opacity: 0.045;
    transform: rotate(-24deg);
}

.vsun-pdf-watermark img {
    width: 430px;
    max-height: 260px;
    object-fit: contain;
}

.vsun-pdf-watermark span {
    color: #0b3b69;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    direction: ltr;
}

.vsun-pdf-page > *:not(.vsun-pdf-watermark) {
    position: relative;
    z-index: 1;
}

.vsun-pdf-footer {
    position: absolute;
    right: 56px;
    bottom: 24px;
    left: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #dfe8e4;
    color: #72827d;
    font-size: 9px;
}

.vsun-pdf-footer span:first-child {
    direction: ltr;
}

.vsun-pdf-page h1,
.vsun-pdf-page h2,
.vsun-pdf-page h3,
.vsun-pdf-page p {
    margin-top: 0;
}

.vsun-pdf-page h2 {
    margin-bottom: 20px;
    color: #0b3b69;
    font-size: 28px;
    line-height: 1.45;
}

.vsun-pdf-page h3 {
    margin-bottom: 12px;
    color: #0b6b4f;
    font-size: 17px;
    line-height: 1.5;
}

.vsun-pdf-lead {
    margin-bottom: 20px;
    color: #536d65;
    font-size: 13px;
    line-height: 2;
}

.vsun-pdf-cover-sun {
    position: absolute;
    top: -120px;
    left: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 38% 38%,
        #fff7a8,
        #ffb30b 55%,
        #f18b00
    );
    opacity: 0.16;
}

.vsun-pdf-cover-logo {
    position: relative;
    display: block;
    width: 500px;
    height: 250px;
    margin: 10px auto 18px;
    object-fit: contain;
}

.vsun-pdf-cover-title {
    position: relative;
    margin: 0;
    color: #0b3b69;
    font-size: 39px;
    line-height: 1.55;
    text-align: center;
}

.vsun-pdf-cover-subtitle {
    position: relative;
    margin: 8px 0 26px;
    color: #0b6b4f;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
}

.vsun-pdf-cover-card {
    position: relative;
    padding: 28px;
    border: 1px solid #d7e6e1;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 54px rgba(18, 64, 82, 0.08);
}

.vsun-pdf-pill {
    display: inline-flex;
    padding: 7px 13px;
    border-radius: 999px;
    background: #eaf4ff;
    color: #0b3b69;
    font-size: 10px;
    font-weight: 800;
}

.vsun-pdf-cover-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 26px;
    margin-top: 18px;
}

.vsun-pdf-meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    border-bottom: 1px dashed #d9e5e0;
    font-size: 11px;
}

.vsun-pdf-meta-item span {
    color: #6e817a;
}

.vsun-pdf-meta-item b {
    color: #163a32;
    font-size: 11px;
}

.vsun-pdf-confidence {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 24px;
    padding: 18px;
    border-radius: 20px;
    background: #eef9f4;
}

.vsun-pdf-score {
    --score: 0;
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: conic-gradient(
        #0b6b4f calc(var(--score) * 1%),
        #d9eae3 0
    );
}

.vsun-pdf-score::before {
    content: "";
    position: absolute;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #ffffff;
}

.vsun-pdf-score strong {
    position: relative;
    z-index: 1;
    color: #0b6b4f;
    font-size: 24px;
}

.vsun-pdf-confidence b {
    color: #173b32;
    font-size: 14px;
}

.vsun-pdf-confidence p {
    margin: 6px 0 0;
    color: #58736a;
    font-size: 11px;
    line-height: 1.9;
}

.vsun-pdf-cover-contact {
    position: absolute;
    right: 56px;
    bottom: 30px;
    left: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #dfe8e4;
    padding-top: 11px;
    color: #687c75;
    font-size: 12px;
    font-weight: 700;
}

.vsun-pdf-cover-contact span {
    direction: ltr;
}

.vsun-pdf-cover-contact small {
    color: #6a7e76;
}

.vsun-pdf-summary-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.vsun-pdf-kpi,
.vsun-pdf-kv {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 86px;
    padding: 15px;
    border: 1px solid #dce8e3;
    border-radius: 16px;
    background: #ffffff;
}

.vsun-pdf-kpi {
    border-color: #cadcf3;
    background: #f1f7ff;
    text-align: center;
}

.vsun-pdf-kpi span,
.vsun-pdf-kv span {
    margin-bottom: 6px;
    color: #71837d;
    font-size: 10px;
}

.vsun-pdf-kpi strong {
    color: #0b3b69;
    font-size: 18px;
    line-height: 1.4;
}

.vsun-pdf-kv strong {
    color: #15372f;
    font-size: 13px;
    line-height: 1.65;
}

.vsun-pdf-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.vsun-pdf-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.vsun-pdf-input-grid {
    margin-bottom: 16px;
}

.vsun-pdf-input-grid .vsun-pdf-kv {
    min-height: 72px;
}

.vsun-pdf-card {
    padding: 19px;
    border: 1px solid #dde8e4;
    border-radius: 18px;
    background: #ffffff;
}

.vsun-pdf-card + .vsun-pdf-card {
    margin-top: 14px;
}

.vsun-pdf-grid-2 > .vsun-pdf-card + .vsun-pdf-card,
.vsun-pdf-grid-3 > .vsun-pdf-card + .vsun-pdf-card {
    margin-top: 0;
}

.vsun-pdf-margin-top {
    margin-top: 16px;
}

.vsun-pdf-table {
    width: 100%;
    border-collapse: collapse;
    color: #17382f;
    font-size: 11px;
}

.vsun-pdf-table th,
.vsun-pdf-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #e2ebe7;
    text-align: right;
    vertical-align: top;
}

.vsun-pdf-table th {
    width: 43%;
    color: #667a73;
    font-weight: 500;
}

.vsun-pdf-table td {
    color: #17382f;
    font-weight: 800;
}

.vsun-pdf-table thead th,
.vsun-pdf-table thead td {
    color: #0b3b69;
    background: #f4f8fb;
    font-weight: 800;
}

.vsun-pdf-table.is-compact th,
.vsun-pdf-table.is-compact td {
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 10px;
}

.vsun-pdf-muted {
    margin: 0;
    padding: 15px;
    border-radius: 12px;
    background: #f6f8f7;
    color: #75867f;
    font-size: 11px;
}

.vsun-pdf-notice {
    margin-top: 16px;
    padding: 13px 16px;
    border-right: 4px solid #e4a115;
    border-radius: 12px;
    background: #fff8e9;
    color: #73521e;
    font-size: 10px;
    line-height: 1.9;
}

.vsun-pdf-assumption {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: start;
    margin-bottom: 10px;
    padding: 11px 13px;
    border-radius: 12px;
    background: #f5f8fa;
    color: #4f6860;
    font-size: 10px;
    line-height: 1.85;
}

.vsun-pdf-assumption > b {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0b3b69;
    color: #ffffff;
}

.vsun-pdf-assumption strong {
    color: #17382f;
}

.vsun-pdf-list {
    margin: 0;
    padding-right: 20px;
    color: #405c53;
    font-size: 11px;
    line-height: 2;
}

.vsun-pdf-list li::marker {
    color: #0b6b4f;
}

.vsun-pdf-scenario-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding: 20px 22px;
    border-radius: 18px;
    color: #ffffff;
}

.vsun-pdf-scenario-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: 27px;
}

.vsun-pdf-scenario-head p {
    margin: 3px 0 0;
    opacity: 0.92;
    font-size: 11px;
}

.vsun-pdf-scenario-head > span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 10px;
    font-weight: 800;
}

.vsun-pdf-grid-scenario {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 16px;
}

.vsun-pdf-scenario-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vsun-pdf-scenario-side .vsun-pdf-kpi {
    min-height: 106px;
}

.vsun-pdf-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.vsun-pdf-pros-cons > div {
    padding: 16px;
    border-radius: 15px;
}

.vsun-pdf-pros-cons .is-pros {
    background: #eef9f4;
}

.vsun-pdf-pros-cons .is-cons {
    background: #fff5ec;
}

.vsun-pdf-pros-cons strong {
    display: block;
    margin-bottom: 7px;
    color: #17382f;
}

.vsun-pdf-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 225px;
    margin: 12px 0 8px;
    padding: 10px 10px 0;
    border-bottom: 1px solid #bacbc5;
}

.vsun-pdf-bar-col {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    color: #60766e;
    font-size: 8px;
}

.vsun-pdf-bar {
    width: 72%;
    margin: 3px 0;
    border-radius: 7px 7px 0 0;
    background: linear-gradient(
        180deg,
        #2a72d4,
        #0b3b69
    );
}

.vsun-pdf-small {
    margin: 0;
    color: #73867e;
    font-size: 9px;
    line-height: 1.8;
}

.vsun-pdf-monthly-table {
    margin-top: 14px;
}

.vsun-pdf-monthly-table .vsun-pdf-table {
    columns: 2;
}

.vsun-pdf-monthly-table .vsun-pdf-table tbody {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 22px;
}

.vsun-pdf-monthly-table .vsun-pdf-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.vsun-pdf-monthly-table .vsun-pdf-table thead {
    display: none;
}

.vsun-pdf-monthly-table .vsun-pdf-table th,
.vsun-pdf-monthly-table .vsun-pdf-table td {
    width: auto;
    padding: 4px 5px;
    font-size: 9px;
}

.vsun-pdf-finance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.vsun-pdf-finance {
    min-height: 106px;
    padding: 18px;
    border: 1px solid #d7e3ed;
    border-radius: 18px;
    background: #f4f8fb;
    text-align: center;
}

.vsun-pdf-finance span {
    color: #6b7e89;
    font-size: 10px;
}

.vsun-pdf-finance strong {
    display: block;
    margin-top: 9px;
    color: #0b3b69;
    font-size: 18px;
    line-height: 1.5;
}

.vsun-pdf-scenario-comparison {
    margin-top: 16px;
}

.vsun-pdf-mini-scenario {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    align-items: center;
    margin-top: 9px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f5f8fa;
}

.vsun-pdf-mini-scenario > span {
    color: #17382f;
    font-weight: 800;
}

.vsun-pdf-mini-scenario > strong {
    grid-row: span 2;
    color: #0b3b69;
    font-size: 15px;
}

.vsun-pdf-mini-scenario > small {
    color: #71837d;
    font-size: 9px;
}

.vsun-pdf-mini-scenario.is-recommended {
    border: 1px solid #bdd2ef;
    background: #eff6ff;
}

.vsun-pdf-steps {
    counter-reset: vsun-pdf-step;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vsun-pdf-steps li {
    counter-increment: vsun-pdf-step;
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 10px;
    align-items: start;
    margin-bottom: 12px;
}

.vsun-pdf-steps li::before {
    content: counter(vsun-pdf-step);
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #0b6b4f;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
}

.vsun-pdf-steps strong {
    display: block;
    color: #17382f;
    font-size: 12px;
}

.vsun-pdf-steps span {
    color: #6c7f78;
    font-size: 10px;
}

.vsun-pdf-contact-card {
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 20px;
    align-items: center;
    margin-top: 22px;
    padding: 22px;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        #0b3b69,
        #1456b8
    );
    color: #ffffff;
}

.vsun-pdf-contact-card h3 {
    color: #ffffff;
    font-size: 20px;
}

.vsun-pdf-contact-card p {
    margin: 4px 0;
    direction: ltr;
    color: #ffffff;
    font-size: 11px;
    text-align: right;
}

.vsun-pdf-contact-mark {
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 18px;
    background: #ffffff;
    color: #0b3b69;
    font-size: 24px;
    font-weight: 900;
}


/* ===========================================================================
   VSE PDF 2.7.1 - cover fit, strong contact, VSE digital-product lockup,
   price range/source presentation
   =========================================================================== */

.vsun-pdf-page.is-cover {
    padding: 30px 56px 38px;
}

.vsun-pdf-vse-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.vsun-pdf-vse-lockup img {
    width: 250px;
    height: 112px;
    object-fit: contain;
}

.vsun-pdf-vse-lockup strong {
    margin-top: -4px;
    color: #0b3b69;
    font-size: 36px;
    line-height: 1;
    letter-spacing: 3px;
}

.vsun-pdf-vse-lockup span {
    margin-top: 7px;
    color: #0b6b4f;
    font-size: 12px;
    font-weight: 800;
}

.vsun-pdf-cover-title {
    margin-top: 24px !important;
    font-size: 34px !important;
}

.vsun-pdf-cover-subtitle {
    margin-bottom: 18px !important;
}

.vsun-pdf-cover-card {
    margin-top: 14px !important;
    padding: 22px 28px !important;
}

.vsun-pdf-cover-meta {
    margin-top: 12px;
}

.vsun-pdf-meta-item {
    min-height: 35px;
}

.vsun-pdf-confidence {
    margin-top: 15px;
    padding: 13px 16px;
}

.vsun-pdf-score {
    width: 84px;
    height: 84px;
}

.vsun-pdf-score::before {
    width: 64px;
    height: 64px;
}

.vsun-pdf-score strong {
    font-size: 20px;
}

.vsun-pdf-page.is-cover > .vsun-pdf-notice {
    margin-top: 12px;
    padding: 10px 14px;
}

.vsun-pdf-cover-contact-card {
    margin-top: 12px;
    padding: 12px 16px;
    border: 1px solid #bed4e7;
    border-radius: 15px;
    background: linear-gradient(135deg, #eff7ff, #f4fff9);
}

.vsun-pdf-cover-contact-card > strong {
    display: block;
    margin-bottom: 7px;
    color: #0b3b69;
    font-size: 13px;
}

.vsun-pdf-cover-contact-card > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.vsun-pdf-cover-contact-card span {
    direction: ltr;
    padding: 7px 8px;
    border-radius: 9px;
    background: rgba(255,255,255,.82);
    color: #17382f;
    font-size: 9px;
    font-weight: 800;
    text-align: center;
}

.vsun-pdf-cover-contact-card small {
    display: block;
    margin-top: 7px;
    color: #657a72;
    font-size: 9px;
}

.vsun-pdf-contact-card {
    grid-template-columns: 1fr 180px;
}

.vsun-pdf-contact-mark {
    display: flex;
    flex-direction: column;
    width: 164px;
    min-height: 126px;
    padding: 10px;
    border-radius: 18px;
}

.vsun-pdf-contact-mark img {
    width: 136px;
    height: 58px;
    object-fit: contain;
}

.vsun-pdf-contact-mark strong {
    margin-top: -2px;
    color: #0b3b69;
    font-size: 28px;
    line-height: 1;
    letter-spacing: 2px;
}

.vsun-pdf-contact-mark span {
    margin-top: 6px;
    color: #55716a;
    font-size: 8px;
    text-align: center;
}

.vsun-pdf-price-source-card {
    margin-top: 14px;
    background: #f8fbfd;
}

.vsun-step6-economic-card strong {
    line-height: 1.65;
}

/* Keep the decorative cover sun out of document flow. The generic page-child
   positioning rule has higher specificity than the original selector. */
.vsun-pdf-page.is-cover > .vsun-pdf-cover-sun {
    position: absolute;
    top: -120px;
    left: -120px;
}

/* Keep page footer anchored to the sheet. The generic child positioning rule
   otherwise makes it participate in normal flow. */
.vsun-pdf-page > .vsun-pdf-footer {
    position: absolute;
}

/* Compact data-heavy pages so all content stays above the fixed footer. */
.vsun-pdf-page.is-project-data .vsun-pdf-header,
.vsun-pdf-page.is-methodology .vsun-pdf-header,
.vsun-pdf-page.is-economics .vsun-pdf-header {
    margin-bottom: 18px;
}

.vsun-pdf-page.is-project-data h2,
.vsun-pdf-page.is-methodology h2,
.vsun-pdf-page.is-economics h2 {
    margin-bottom: 12px;
}

.vsun-pdf-page.is-project-data .vsun-pdf-input-grid {
    margin-bottom: 10px;
}

.vsun-pdf-page.is-project-data .vsun-pdf-input-grid .vsun-pdf-kv {
    min-height: 60px;
    padding: 12px;
}

.vsun-pdf-page.is-project-data .vsun-pdf-card {
    padding: 14px 16px;
}

.vsun-pdf-page.is-project-data .vsun-pdf-card + .vsun-pdf-card {
    margin-top: 9px;
}

.vsun-pdf-page.is-project-data .vsun-pdf-table th,
.vsun-pdf-page.is-project-data .vsun-pdf-table td {
    padding-top: 5px;
    padding-bottom: 5px;
}

.vsun-pdf-page.is-project-data > .vsun-pdf-notice {
    margin-top: 9px;
    padding: 9px 13px;
}

.vsun-pdf-price-source-card.is-compact-source {
    margin-top: 12px;
    padding: 12px 16px;
}

.vsun-pdf-price-source-card.is-compact-source h3 {
    margin-bottom: 7px;
    font-size: 14px;
}

.vsun-pdf-price-source-card.is-compact-source .vsun-pdf-table th,
.vsun-pdf-price-source-card.is-compact-source .vsun-pdf-table td {
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 9px;
}

.vsun-pdf-page.is-economics .vsun-pdf-finance-grid {
    margin-bottom: 12px;
}

.vsun-pdf-page.is-economics .vsun-pdf-finance {
    min-height: 92px;
    padding: 13px 14px;
}

.vsun-pdf-page.is-economics .vsun-pdf-grid-2 .vsun-pdf-card {
    padding: 15px 16px;
}

.vsun-pdf-page.is-economics .vsun-pdf-list {
    line-height: 1.8;
}

.vsun-pdf-page.is-economics .vsun-pdf-scenario-comparison {
    margin-top: 12px;
    padding: 14px 16px;
}

.vsun-pdf-page.is-economics .vsun-pdf-mini-scenario {
    margin-top: 6px;
    padding: 7px 10px;
}

.vsun-pdf-page.is-economics > .vsun-pdf-notice {
    margin-top: 10px;
    padding: 9px 13px;
}


/* ===========================================================================
   VSE PDF 2.7.1 - overflow-safe page architecture
   Heavy project data, equipment and pricing sources now live on separate pages.
   The automatic density classes are a final safety net for variable user data.
   =========================================================================== */

.vsun-pdf-page.is-equipment-data .vsun-pdf-card,
.vsun-pdf-page.is-price-snapshot .vsun-pdf-card {
    padding: 16px 18px;
}

.vsun-pdf-page.is-equipment-data .vsun-pdf-table th,
.vsun-pdf-page.is-equipment-data .vsun-pdf-table td,
.vsun-pdf-page.is-price-snapshot .vsun-pdf-table th,
.vsun-pdf-page.is-price-snapshot .vsun-pdf-table td {
    padding-top: 6px;
    padding-bottom: 6px;
}

.vsun-pdf-page.is-price-snapshot .vsun-pdf-price-source-card {
    margin-top: 0;
}

.vsun-pdf-page.is-price-snapshot .vsun-pdf-lead {
    margin-bottom: 14px;
}

.vsun-pdf-page.is-auto-compact {
    padding: 42px 50px 60px;
    font-size: 12px;
    line-height: 1.62;
}

.vsun-pdf-page.is-auto-compact .vsun-pdf-header {
    height: 64px;
    margin-bottom: 14px;
}

.vsun-pdf-page.is-auto-compact .vsun-pdf-header img {
    width: 154px;
    height: 54px;
}

.vsun-pdf-page.is-auto-compact h2 {
    margin-bottom: 10px;
    font-size: 24px;
}

.vsun-pdf-page.is-auto-compact h3 {
    margin-bottom: 7px;
    font-size: 15px;
}

.vsun-pdf-page.is-auto-compact .vsun-pdf-lead {
    margin-bottom: 11px;
    font-size: 11px;
    line-height: 1.75;
}

.vsun-pdf-page.is-auto-compact .vsun-pdf-card {
    padding: 12px 14px;
}

.vsun-pdf-page.is-auto-compact .vsun-pdf-card + .vsun-pdf-card {
    margin-top: 8px;
}

.vsun-pdf-page.is-auto-compact .vsun-pdf-margin-top,
.vsun-pdf-page.is-auto-compact .vsun-pdf-scenario-comparison {
    margin-top: 9px;
}

.vsun-pdf-page.is-auto-compact .vsun-pdf-kpi,
.vsun-pdf-page.is-auto-compact .vsun-pdf-kv {
    min-height: 62px;
    padding: 10px 12px;
}

.vsun-pdf-page.is-auto-compact .vsun-pdf-table {
    font-size: 9.5px;
}

.vsun-pdf-page.is-auto-compact .vsun-pdf-table th,
.vsun-pdf-page.is-auto-compact .vsun-pdf-table td {
    padding: 4px 5px;
}

.vsun-pdf-page.is-auto-compact .vsun-pdf-list {
    font-size: 9.5px;
    line-height: 1.72;
}

.vsun-pdf-page.is-auto-compact .vsun-pdf-notice {
    margin-top: 8px;
    padding: 8px 11px;
    font-size: 8.5px;
    line-height: 1.65;
}

.vsun-pdf-page.is-auto-compact .vsun-pdf-assumption {
    margin-bottom: 6px;
    padding: 8px 10px;
    font-size: 9px;
    line-height: 1.6;
}

.vsun-pdf-page.is-auto-compact .vsun-pdf-pros-cons {
    margin-top: 9px;
}

.vsun-pdf-page.is-auto-compact .vsun-pdf-pros-cons > div {
    padding: 11px 13px;
}

.vsun-pdf-page.is-auto-compact-2 {
    padding-top: 36px;
    padding-right: 46px;
    padding-left: 46px;
    font-size: 11px;
    line-height: 1.5;
}

.vsun-pdf-page.is-auto-compact-2 .vsun-pdf-header {
    height: 58px;
    margin-bottom: 9px;
}

.vsun-pdf-page.is-auto-compact-2 h2 {
    margin-bottom: 7px;
    font-size: 22px;
}

.vsun-pdf-page.is-auto-compact-2 h3 {
    margin-bottom: 5px;
    font-size: 14px;
}

.vsun-pdf-page.is-auto-compact-2 .vsun-pdf-card {
    padding: 9px 11px;
}

.vsun-pdf-page.is-auto-compact-2 .vsun-pdf-table {
    font-size: 8.7px;
}

.vsun-pdf-page.is-auto-compact-2 .vsun-pdf-table th,
.vsun-pdf-page.is-auto-compact-2 .vsun-pdf-table td {
    padding: 3px 4px;
}

.vsun-pdf-page.is-auto-compact-2 .vsun-pdf-list {
    font-size: 8.7px;
    line-height: 1.55;
}

.vsun-pdf-page.is-auto-compact-2 .vsun-pdf-notice {
    padding: 6px 9px;
    font-size: 8px;
}

/* ========================================================================== 
   VSE PDF 2.9.0 - native text A4 redesign
   Larger typography, dynamic page count, RTL-safe lists/units, compact data
   architecture, real system diagram and stronger VSE closing page.
   ========================================================================== */

.vsun-pdf-document {
    font-size: 14px;
    line-height: 1.72;
}

.vsun-pdf-page {
    padding: 44px 50px 64px;
}

.vsun-pdf-header {
    height: 72px;
    margin-bottom: 22px;
}

.vsun-pdf-header img {
    width: 184px;
    height: 64px;
}

.vsun-pdf-header strong {
    font-size: 20px;
}

.vsun-pdf-header span {
    font-size: 11.5px;
}

.vsun-pdf-footer {
    right: 50px;
    left: 50px;
    bottom: 22px;
    font-size: 10.5px;
}

.vsun-pdf-page h2 {
    margin-bottom: 16px;
    font-size: 30px;
}

.vsun-pdf-page h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.vsun-pdf-lead {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.95;
}

.vsun-pdf-card {
    padding: 20px;
}

.vsun-pdf-table {
    font-size: 12px;
}

.vsun-pdf-table th,
.vsun-pdf-table td {
    padding: 8px 7px;
    line-height: 1.65;
}

.vsun-pdf-table td bdi,
.vsun-pdf-kpi strong bdi,
.vsun-pdf-finance strong bdi,
.vsun-pdf-kv strong bdi {
    unicode-bidi: isolate;
}

.vsun-pdf-table.is-compact th,
.vsun-pdf-table.is-compact td {
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 11px;
}

.vsun-pdf-notice {
    margin-top: 14px;
    padding: 12px 15px;
    font-size: 11px;
    line-height: 1.85;
}

.vsun-pdf-list {
    direction: rtl;
    margin: 0;
    padding-right: 23px;
    padding-left: 0;
    color: #405c53;
    font-size: 12px;
    line-height: 1.9;
    text-align: right;
    list-style-position: outside;
}

.vsun-pdf-list li {
    padding-right: 3px;
}

.vsun-pdf-list li::marker {
    color: #0b6b4f;
    font-size: 1.05em;
}

.vsun-pdf-kpi,
.vsun-pdf-kv {
    min-height: 94px;
    padding: 16px;
}

.vsun-pdf-kpi span,
.vsun-pdf-kv span {
    font-size: 11px;
}

.vsun-pdf-kpi strong {
    font-size: 19px;
}

.vsun-pdf-kv strong {
    font-size: 14px;
}

.vsun-pdf-cover-title {
    font-size: 36px !important;
}

.vsun-pdf-cover-subtitle {
    font-size: 18px;
}

.vsun-pdf-vse-lockup img {
    width: 270px;
    height: 120px;
}

.vsun-pdf-vse-lockup strong {
    font-size: 39px;
}

.vsun-pdf-vse-lockup span {
    font-size: 13px;
}

.vsun-pdf-pill {
    font-size: 11px;
}

.vsun-pdf-meta-item,
.vsun-pdf-meta-item b {
    font-size: 12px;
}

.vsun-pdf-confidence b {
    font-size: 15px;
}

.vsun-pdf-confidence p {
    font-size: 12px;
}

.vsun-pdf-cover-contact-card > strong {
    font-size: 14px;
}

.vsun-pdf-cover-contact-card span,
.vsun-pdf-cover-contact-card small {
    font-size: 10.5px;
}

/* Executive summary */
.vsun-pdf-page.is-summary .vsun-pdf-summary-band {
    margin-bottom: 16px;
}

.vsun-pdf-page.is-summary .is-summary-grid .vsun-pdf-card {
    min-height: 286px;
}

.vsun-pdf-selection-reason {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 18px;
    align-items: center;
    margin-top: 16px;
    padding: 18px 20px;
    border: 1px solid #cfe0da;
    border-radius: 18px;
    background: linear-gradient(135deg, #f1faf6, #f3f8ff);
}

.vsun-pdf-selection-reason strong {
    display: block;
    margin-bottom: 6px;
    color: #0b3b69;
    font-size: 17px;
}

.vsun-pdf-selection-reason p {
    margin: 0;
    color: #4a655d;
    font-size: 12px;
    line-height: 1.85;
}

.vsun-pdf-selection-reason .vsun-pdf-list {
    font-size: 11.5px;
}

/* Project data page: two-column matrix and dynamic equipment state */
.vsun-pdf-page.is-project-data .vsun-pdf-input-grid {
    margin-bottom: 14px;
}

.vsun-pdf-page.is-project-data .vsun-pdf-input-grid .vsun-pdf-kv {
    min-height: 88px;
    padding: 14px;
}

.vsun-pdf-table.is-data-matrix {
    display: block;
}

.vsun-pdf-table.is-data-matrix tbody {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

.vsun-pdf-table.is-data-matrix tr {
    display: grid;
    grid-template-columns: 42% 58%;
    min-width: 0;
}

.vsun-pdf-table.is-data-matrix th,
.vsun-pdf-table.is-data-matrix td {
    width: auto;
    min-width: 0;
}

.vsun-pdf-load-flow {
    display: grid;
    grid-template-columns: 1fr 24px 1fr 24px 1fr;
    gap: 8px;
    align-items: center;
    direction: rtl;
}

.vsun-pdf-load-flow > div {
    min-height: 82px;
    padding: 12px 10px;
    border: 1px solid #d7e5e0;
    border-radius: 14px;
    background: #f7faf9;
    text-align: center;
}

.vsun-pdf-load-flow span,
.vsun-pdf-load-flow strong {
    display: block;
}

.vsun-pdf-load-flow span {
    color: #70837c;
    font-size: 10.5px;
}

.vsun-pdf-load-flow strong {
    margin-top: 8px;
    color: #0b3b69;
    font-size: 16px;
}

.vsun-pdf-load-flow i {
    color: #0b6b4f;
    font-size: 22px;
    font-style: normal;
    text-align: center;
}

.vsun-pdf-card.is-missing-equipment {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fffaf0;
}

.vsun-pdf-card.is-missing-equipment p {
    margin: 0 0 8px;
    color: #68593a;
    font-size: 12px;
    line-height: 1.9;
}

.vsun-pdf-card.is-missing-equipment strong {
    color: #9b6c0d;
    font-size: 12px;
}

.vsun-pdf-page.is-equipment-data .is-equipment-table-card {
    min-height: 330px;
}

/* Methodology and price sources */
.vsun-pdf-assumption-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
}

.vsun-pdf-assumption-grid .vsun-pdf-assumption {
    margin: 0;
    min-height: 88px;
    padding: 12px 13px;
    font-size: 11px;
    line-height: 1.75;
}

.vsun-pdf-section-title {
    margin: 18px 0 10px !important;
    font-size: 18px !important;
}

.vsun-pdf-source-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
}

.vsun-pdf-source-card {
    min-height: 94px;
    padding: 13px 15px;
    border: 1px solid #dbe6e2;
    border-radius: 15px;
    background: #f8fbfd;
}

.vsun-pdf-source-card span,
.vsun-pdf-source-card strong,
.vsun-pdf-source-card small {
    display: block;
}

.vsun-pdf-source-card span {
    color: #6a7f77;
    font-size: 10.5px;
}

.vsun-pdf-source-card strong {
    margin-top: 5px;
    color: #163a32;
    font-size: 12px;
    line-height: 1.65;
}

.vsun-pdf-source-card small {
    margin-top: 4px;
    color: #71837d;
    font-size: 9.5px;
    line-height: 1.55;
}

.vsun-pdf-page.is-methodology-pricing .is-method-grid .vsun-pdf-card {
    padding: 16px 18px;
}

.vsun-pdf-list.is-two-column-list {
    columns: 2;
    column-gap: 26px;
}

/* Scenario pages */
.vsun-pdf-page.is-scenario .vsun-pdf-scenario-head {
    margin-bottom: 14px;
    padding: 18px 22px;
}

.vsun-pdf-page.is-scenario .vsun-pdf-scenario-head h2 {
    font-size: 29px;
}

.vsun-pdf-page.is-scenario .vsun-pdf-scenario-head p {
    font-size: 12px;
}

.vsun-pdf-page.is-scenario .vsun-pdf-scenario-head > span {
    font-size: 11px;
}

.vsun-pdf-scenario-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 11px;
    margin-bottom: 14px;
}

.vsun-pdf-scenario-kpis .vsun-pdf-kpi {
    min-height: 84px;
    padding: 12px 10px;
}

.vsun-pdf-scenario-kpis .vsun-pdf-kpi strong {
    font-size: 16px;
}

.vsun-pdf-page.is-scenario .vsun-pdf-grid-scenario {
    grid-template-columns: 1.22fr .78fr;
}

.vsun-pdf-page.is-scenario .vsun-pdf-grid-scenario > .vsun-pdf-card {
    min-height: 330px;
}

.vsun-pdf-card.is-scenario-rationale p {
    margin: 0 0 14px;
    color: #4e675f;
    font-size: 12px;
    line-height: 1.85;
}

.vsun-pdf-card.is-scenario-rationale > small {
    display: block;
    margin-top: 12px;
    color: #765a23;
    font-size: 10.5px;
    line-height: 1.7;
}

.vsun-pdf-energy-flow-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.vsun-pdf-energy-flow-mini > div {
    padding: 13px 10px;
    border-radius: 13px;
    background: #f2f7fb;
    text-align: center;
}

.vsun-pdf-energy-flow-mini span,
.vsun-pdf-energy-flow-mini strong {
    display: block;
}

.vsun-pdf-energy-flow-mini span {
    color: #6d8179;
    font-size: 10px;
}

.vsun-pdf-energy-flow-mini strong {
    margin-top: 6px;
    color: #0b3b69;
    font-size: 14px;
}

.vsun-pdf-page.is-scenario .vsun-pdf-pros-cons {
    margin-top: 14px;
}

.vsun-pdf-page.is-scenario .vsun-pdf-pros-cons > div {
    min-height: 142px;
    padding: 15px 17px;
}

/* Architecture page */
.vsun-pdf-architecture {
    padding: 17px 20px;
    border: 1px solid #d8e5e1;
    border-radius: 20px;
    background: linear-gradient(180deg, #f8fbfd, #f6fbf8);
    text-align: center;
}

.vsun-pdf-architecture-node {
    min-width: 150px;
    padding: 12px 16px;
    border: 1px solid #cbded7;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 7px 18px rgba(20, 64, 82, .06);
}

.vsun-pdf-architecture-node span,
.vsun-pdf-architecture-node strong {
    display: block;
}

.vsun-pdf-architecture-node span {
    color: #657b73;
    font-size: 10.5px;
}

.vsun-pdf-architecture-node strong {
    margin-top: 5px;
    color: #143b33;
    font-size: 13px;
}

.vsun-pdf-architecture-node.is-pv,
.vsun-pdf-architecture-node.is-dc,
.vsun-pdf-architecture-node.is-load {
    width: 46%;
    margin: 0 auto;
}

.vsun-pdf-architecture-node.is-pv {
    border-color: #e3be60;
    background: #fffaf0;
}

.vsun-pdf-architecture-node.is-inverter {
    border-color: #97b8e7;
    background: #eef5ff;
}

.vsun-pdf-architecture-node.is-battery {
    border-color: #9fd1ba;
    background: #eef9f4;
}

.vsun-pdf-architecture-row {
    display: grid;
    grid-template-columns: 1fr 34px 1fr 34px 1fr;
    gap: 8px;
    align-items: center;
}

.vsun-pdf-architecture-arrow {
    margin: 3px 0;
    color: #0b6b4f;
    font-size: 24px;
    font-weight: 800;
}

.vsun-pdf-architecture-arrow.is-inline {
    margin: 0;
}

.vsun-pdf-page.is-architecture .is-architecture-details .vsun-pdf-card {
    min-height: 292px;
}

.vsun-pdf-list.is-compact-list {
    font-size: 11.5px;
    line-height: 1.78;
}

/* Production page */
.vsun-pdf-page.is-production .vsun-pdf-summary-band {
    margin-bottom: 14px;
}

.vsun-pdf-card.is-production-chart-card {
    padding-bottom: 14px;
}

.vsun-pdf-chart {
    position: relative;
    height: 246px;
    gap: 7px;
    margin-top: 8px;
}

.vsun-pdf-bar-col {
    position: relative;
    z-index: 2;
    font-size: 9.5px;
}

.vsun-pdf-bar-col span {
    font-size: 9.5px;
    font-weight: 700;
}

.vsun-pdf-bar-col small {
    font-size: 9.5px;
}

.vsun-pdf-chart-average {
    position: absolute;
    right: 8px;
    left: 8px;
    z-index: 1;
    border-top: 1px dashed #d89b18;
}

.vsun-pdf-chart-average span {
    position: absolute;
    top: -19px;
    right: 8px;
    padding: 2px 7px;
    border-radius: 8px;
    background: #fff7e4;
    color: #8d6210;
    font-size: 9px;
}

.vsun-pdf-small {
    font-size: 10.5px;
}

.vsun-pdf-monthly-table h3 {
    margin-bottom: 6px;
}

.vsun-pdf-monthly-table .vsun-pdf-table th,
.vsun-pdf-monthly-table .vsun-pdf-table td {
    padding: 5px 6px;
    font-size: 10px;
}

/* Economics page */
.vsun-pdf-page.is-economics .vsun-pdf-finance-grid {
    margin-bottom: 14px;
}

.vsun-pdf-page.is-economics .vsun-pdf-finance {
    min-height: 108px;
    padding: 16px;
}

.vsun-pdf-page.is-economics .vsun-pdf-finance strong {
    font-size: 19px;
}

.vsun-pdf-energy-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.vsun-pdf-energy-split > div {
    padding: 15px 18px;
    border: 1px solid #d8e4df;
    border-radius: 16px;
    background: #f7faf9;
}

.vsun-pdf-energy-split span,
.vsun-pdf-energy-split strong,
.vsun-pdf-energy-split small {
    display: block;
}

.vsun-pdf-energy-split span {
    color: #657b73;
    font-size: 11px;
}

.vsun-pdf-energy-split strong {
    margin-top: 5px;
    color: #0b3b69;
    font-size: 18px;
}

.vsun-pdf-energy-split small {
    margin-top: 4px;
    color: #72847e;
    font-size: 10px;
}

.vsun-pdf-page.is-economics .vsun-pdf-scenario-comparison {
    padding: 14px 16px;
}

.vsun-pdf-mini-scenario {
    display: grid;
    grid-template-columns: 1.3fr .65fr .5fr .72fr .8fr .55fr 1.1fr;
    gap: 8px;
    align-items: center;
    margin-top: 7px;
    padding: 9px 11px;
}

.vsun-pdf-mini-scenario > strong,
.vsun-pdf-mini-scenario > span,
.vsun-pdf-mini-scenario > small {
    margin: 0;
    font-size: 9.5px;
    line-height: 1.45;
}

.vsun-pdf-mini-scenario > strong {
    color: #17382f;
    font-size: 11px;
}

.vsun-pdf-mini-scenario .vsun-pdf-mini-capacity {
    color: #0b3b69;
    font-size: 12px;
    font-weight: 800;
}

.vsun-pdf-mini-scenario .vsun-pdf-mini-price {
    color: #17382f;
    font-weight: 800;
}

.vsun-pdf-mini-scenario.is-selected {
    border: 2px solid #1456b8;
    background: #eef5ff;
}

/* Final page and VSE lockup */
.vsun-pdf-page.is-final .is-expert-summary {
    padding: 16px 19px;
}

.vsun-pdf-page.is-final .vsun-pdf-list.is-expert {
    font-size: 11.5px;
    line-height: 1.75;
}

.vsun-pdf-next-title {
    margin-top: 14px !important;
    font-size: 18px !important;
}

.vsun-pdf-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 18px;
}

.vsun-pdf-steps li {
    margin: 0;
}

.vsun-pdf-steps strong {
    font-size: 12.5px;
}

.vsun-pdf-steps span {
    font-size: 10.5px;
}

.vsun-pdf-contact-card {
    grid-template-columns: 1fr 155px 92px;
    gap: 18px;
    margin-top: 16px;
    padding: 20px 22px;
}

.vsun-pdf-contact-copy h3 {
    margin-bottom: 8px;
    font-size: 19px;
}

.vsun-pdf-contact-card p {
    font-size: 12px;
}

.vsun-pdf-contact-mark {
    width: 150px;
    min-height: 124px;
}

.vsun-pdf-contact-mark img {
    width: 128px;
    height: 54px;
}

.vsun-pdf-contact-mark strong {
    font-size: 31px;
}

.vsun-pdf-contact-mark span {
    font-size: 9px;
}

.vsun-pdf-contact-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.vsun-pdf-contact-qr img {
    width: 82px;
    height: 82px;
    padding: 4px;
    border-radius: 9px;
    background: #ffffff;
}

.vsun-pdf-contact-qr span {
    margin-top: 5px;
    color: #ffffff;
    font-size: 9px;
}

/* Auto-compaction remains a last-resort safety net, but does not reduce text
   as aggressively as earlier versions. */
.vsun-pdf-page.is-auto-compact {
    padding: 40px 46px 60px;
    font-size: 13px;
    line-height: 1.58;
}

.vsun-pdf-page.is-auto-compact .vsun-pdf-table {
    font-size: 10.5px;
}

.vsun-pdf-page.is-auto-compact .vsun-pdf-list {
    font-size: 10.5px;
    line-height: 1.65;
}

.vsun-pdf-page.is-auto-compact .vsun-pdf-notice {
    font-size: 9.5px;
}

.vsun-pdf-page.is-auto-compact-2 {
    padding: 35px 43px 58px;
    font-size: 12px;
    line-height: 1.48;
}

.vsun-pdf-page.is-auto-compact-2 .vsun-pdf-table {
    font-size: 9.6px;
}

.vsun-pdf-page.is-auto-compact-2 .vsun-pdf-list {
    font-size: 9.6px;
    line-height: 1.55;
}
