/* PDF & Visual Preview Stylesheet matching VRF_Quotation.pdf */

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

body.pdf-body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.4;
}

/* Paper Container for Web Preview */
.quotation-paper-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.quotation-paper {
    width: 210mm;
    min-height: 297mm;
    padding: 15mm 18mm 25mm 18mm;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 2px;
    box-sizing: border-box;
    position: relative;
}

@media print {
    body {
        background: white !important;
    }

    .quotation-paper-container {
        padding: 0;
    }

    .quotation-paper {
        width: 100%;
        box-shadow: none;
        padding: 0;
        margin: 0;
    }

    .no-print {
        display: none !important;
    }
}

/* Header Elements */
.quotation-header-top {
    text-align: right;
    font-weight: bold;
    font-size: 15px;
    color: #1c3b68;
    margin-bottom: 10px;
}

.quotation-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #1c3b68;
    margin-top: 15px;
    margin-bottom: 15px;
}

.dashed-line {
    border-top: 1.5px dashed #1c3b68;
    margin-bottom: 30px;
    width: 100%;
}

/* FROM & CUSTOMER Bordered Section */
.party-info-table {
    width: 100%;
    border-collapse: collapse;
    border: 1.5px solid #000000;
    margin-bottom: 35px;
    table-layout: fixed;
    background-color: #f0f4f8;
    box-sizing: border-box;
}

.party-info-table td {
    width: 50%;
    vertical-align: top;
    padding: 10px 14px;
    border: 1.5px solid #000000;
    font-size: 13px;
    line-height: 1.45;
    background-color: #f0f4f8;
    box-sizing: border-box;
}

.party-title {
    font-weight: bold;
    font-size: 14px;
    color: #1c3b68;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.party-name {
    font-weight: bold;
    color: #000000;
    margin-bottom: 3px;
}

.party-address {
    white-space: pre-line;
    color: #222222;
}

.party-contact {
    margin-top: 4px;
    color: #222222;
}

/* Section Headings */
.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #1c3b68;
    margin-top: 25px;
    margin-bottom: 12px;
}

/* Estimate Calculation Table */
.estimate-table {
    width: 100%;
    border-collapse: collapse;
    border: 1.5px solid #000000;
    margin-bottom: 35px;
    table-layout: fixed;
    box-sizing: border-box;
}

.estimate-table th {
    background-color: #1c3b68;
    color: #ffffff;
    font-weight: bold;
    font-size: 15px;
    padding: 9px 12px;
    text-align: left;
    border: 1.5px solid #000000;
    box-sizing: border-box;
}

.estimate-table td {
    padding: 9px 12px;
    border: 1.5px solid #000000;
    font-size: 13.5px;
    color: #000000;
    vertical-align: middle;
    box-sizing: border-box;
}

.estimate-table .col-item {
    width: 44%;
}

.estimate-table .col-qty {
    width: 18%;
}

.estimate-table .col-rate {
    width: 19%;
}

.estimate-table .col-amount {
    width: 19%;
}

.text-italic {
    font-style: italic;
}

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

.text-italic-bold {
    font-style: italic;
    font-weight: bold;
}

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

/* Scope of Service List */
.scope-list {
    margin-top: 8px;
    margin-bottom: 45px;
    padding-left: 24px;
}

.scope-list li {
    margin-bottom: 7px;
    font-size: 13.5px;
    color: #111111;
    font-weight: 500;
}

/* Footer Section */
.quotation-footer {
    text-align: center;
    margin-top: 50px;
    page-break-inside: avoid;
}

.greeting-text {
    font-weight: bold;
    font-style: italic;
    font-size: 14px;
    color: #000000;
    margin-bottom: 10px;
}

.closing-text {
    font-style: italic;
    font-size: 13px;
    color: #333333;
    margin-bottom: 25px;
}

.service-footer-line {
    position: absolute;
    bottom: 12mm;
    left: 0;
    right: 0;
    font-size: 11.5px;
    color: #777777;
    text-align: center;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   Responsive Preview Styles for Mobile, Tablet, Laptop & Desktop
   ========================================================================== */
@media screen and (max-width: 820px) {
    .quotation-paper-container {
        padding: 10px 0;
        overflow-x: auto;
    }

    .quotation-paper {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        padding: 20px 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .party-info-table {
        table-layout: auto;
    }

    .party-info-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .party-info-table td:first-child {
        border-bottom: 1.5px solid #000;
    }

    .estimate-table th {
        font-size: 13px;
        padding: 6px 8px;
    }

    .estimate-table td {
        font-size: 12px;
        padding: 6px 8px;
    }

    .quotation-title {
        font-size: 20px;
    }

    .scope-list {
        padding-left: 18px;
    }

    .scope-list li {
        font-size: 12.5px;
    }
}