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

@media print {
    html,
    body {
        background: #fff;
        color: #202523;
        font-size: 9pt;
        line-height: 1.25;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .quote-wrap {
        max-width: none;
        padding: 0;
    }

    .quote-topbar {
        min-height: 0;
    }

    .quote-logo {
        width: 180px;
    }

    .top-login,
    .quote-actions,
    .catalog-tools,
    .category-tabs {
        display: none !important;
    }

    .quote-heading {
        margin-top: 3mm;
        padding: 3mm 0 2mm;
        border-top: 0.5pt solid #cbd2ce;
    }

    .quote-heading .eyebrow {
        margin-bottom: 1mm;
        font-size: 7.5pt;
    }

    .quote-heading h1 {
        font-size: 15pt;
        line-height: 1.15;
    }

    .quote-notice {
        margin-top: 1.5mm;
        font-size: 8pt;
    }

    .quote-table-wrap {
        overflow: visible;
        border: 0;
        border-radius: 0;
    }

    .quote-table {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    .quote-table thead {
        display: table-header-group;
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
    }

    .quote-table tbody {
        display: table-row-group;
    }

    .quote-table .product-group {
        margin: 0;
        border: 0;
        border-radius: 0;
        overflow: visible;
        background: transparent;
    }

    .quote-table tr,
    .quote-table .product-row {
        display: table-row;
    }

    .quote-table .product-row {
        min-height: 0;
        padding: 0;
    }

    .quote-table .product-row td,
    .quote-table .cell-number,
    .quote-table .category-heading th {
        display: table-cell;
    }

    .quote-table th,
    .quote-table td {
        padding: 1.5mm;
        font-size: 8pt;
        line-height: 1.2;
        border-bottom: 0.35pt solid #dce2de;
    }

    .quote-table thead th {
        height: auto;
        color: #26312d;
        background: #eef1f0;
        font-size: 7.5pt;
        border-top: 0.5pt solid #87918c;
        border-bottom: 0.5pt solid #87918c;
    }

    .quote-table .col-number {
        width: 9mm;
    }

    .quote-table .col-sku {
        width: 47mm;
    }

    .quote-table .col-image {
        width: 25mm;
    }

    .quote-table .col-price {
        width: 30mm;
    }

    .quote-table .category-heading th {
        padding: 1.5mm 2mm;
        color: #8f2025;
        background: #fbf2f2;
        font-size: 8.5pt;
        border-bottom: 0.5pt solid #dcb6b7;
    }

    .quote-table .product-name {
        color: #202523;
        font-size: 8.2pt;
    }

    .quote-table .product-code {
        margin-top: 0.5mm;
        font-size: 7.2pt;
    }

    .quote-table .cell-description {
        color: #3d4742;
        font-size: 7.8pt;
    }

    .quote-table .cell-price {
        white-space: nowrap;
    }

    .quote-table .cell-price strong {
        color: #176b45;
        font-size: 8.2pt;
    }

    .quote-table .cell-image img {
        width: 15mm;
        height: 15mm;
        object-fit: contain;
    }

    .quote-table .image-placeholder {
        width: 14mm;
        height: 14mm;
        background: transparent;
    }

    .quote-footer {
        margin-top: 2mm;
        padding-top: 2mm;
        border-top: 0.35pt solid #cbd2ce;
        font-size: 7.5pt;
    }

    .quote-topbar,
    .quote-heading,
    .category-heading,
    .product-row,
    .quote-footer {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .category-heading {
        break-after: avoid-page;
        page-break-after: avoid;
    }
}
