/*
|--------------------------------------------------------------------------
| Format papier
|--------------------------------------------------------------------------
*/

@page {
    size: A4 portrait;
    margin: 10mm 10mm 14mm 10mm;
}

/*
|--------------------------------------------------------------------------
| Impression
|--------------------------------------------------------------------------
*/

@media print {

    /*
    |--------------------------------------------------------------------------
    | Page générale
    |--------------------------------------------------------------------------
    */

    html,
    body {
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #ffffff !important;
    }

    /*
    |--------------------------------------------------------------------------
    | Masquer toute l’interface de travail
    |--------------------------------------------------------------------------
    */

    .sidebar,
    #web-sidebar-content,
    #pdf-sidebar-content,
    #web-workspace,
    .pdf-preview-toolbar,
    .pdf-preview-title,
    .pdf-preview-subtitle,
    .pdf-preview-summary,
    .pdf-actions,
    .pdf-selection-tools,
    button,
    input {
        display: none !important;
    }

    /*
    |--------------------------------------------------------------------------
    | Conserver uniquement le document PDF
    |--------------------------------------------------------------------------
    */

    .application,
    main,
    #pdf-workspace,
    .pdf-preview-area {
        display: block !important;
        position: static !important;
        box-sizing: border-box !important;
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #ffffff !important;
    }

    .pdf-preview-page {
        display: block !important;
        position: static !important;
        box-sizing: border-box !important;
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #ffffff !important;
        box-shadow: none !important;
    }

    #pdf-preview-content {
        display: block !important;
        box-sizing: border-box !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /*
    |--------------------------------------------------------------------------
    | En-tête principal d’impression
    |--------------------------------------------------------------------------
    */

    .pdf-print-header {
        display: block !important;
        box-sizing: border-box;
        width: 100%;
        margin: 0 0 4mm 0;
        padding: 0;
    }

    .pdf-print-main-title {
        margin: 0 0 5mm 0;
        padding: 0;
        text-align: center;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 16pt;
        line-height: 1.1;
        font-weight: 700;
    }

    /*
    |--------------------------------------------------------------------------
    | Informations sur la sélection
    |--------------------------------------------------------------------------
    */

    .pdf-print-selection {
        box-sizing: border-box;
        width: 100%;
        margin: 0 0 4mm 0;
        padding: 0;
        text-align: left;
    }

    .pdf-print-selection-title {
        margin: 0 0 1mm 0;
        padding: 0;
        text-align: left;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 11pt;
        line-height: 1.1;
        font-weight: 700;
    }

    .pdf-print-details {
        margin: 0;
        padding: 0;
        text-align: left;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 9pt;
        line-height: 1.1;
        font-weight: 400;
    }

    /*
    |--------------------------------------------------------------------------
    | Groupes Commune / Rue
    |--------------------------------------------------------------------------
    */

    .pdf-table-group {
        display: block;
        box-sizing: border-box;
        width: 100%;
        margin: 0 0 3mm 0;
        padding: 0;
        break-inside: auto;
        page-break-inside: auto;
    }

    .pdf-table-group:last-child {
        margin-bottom: 0;
    }

    .pdf-table-group-title {
        margin: 0 0 1mm 0 !important;
        padding: 0 !important;
        border: none !important;
        text-align: left;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 11.5pt !important;
        line-height: 1.1;
        font-weight: 700;
        break-after: avoid;
        page-break-after: avoid;
    }

    /*
    |--------------------------------------------------------------------------
    | Conteneur du tableau
    |--------------------------------------------------------------------------
    */

    .pdf-table-wrapper {
        display: block !important;
        box-sizing: border-box !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    /*
    |--------------------------------------------------------------------------
    | Tableau
    |--------------------------------------------------------------------------
    */

    .pdf-table {
        width: 100% !important;
        margin: 0 !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
        border-spacing: 0 !important;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 8.5pt !important;
        line-height: 1.19 !important;
    }

    /*
    |--------------------------------------------------------------------------
    | Largeur des colonnes
    |--------------------------------------------------------------------------
    */

    .pdf-table col.pdf-column-destination {
        width: 48% !important;
    }

    .pdf-table col.pdf-column-street {
        width: 29% !important;
    }

    .pdf-table col.pdf-column-number {
        width: 7% !important;
    }

    .pdf-table col.pdf-column-commune {
        width: 16% !important;
    }

    /*
    |--------------------------------------------------------------------------
    | Répétition de l’en-tête sur chaque page
    |--------------------------------------------------------------------------
    */

    .pdf-table thead {
        display: table-header-group !important;
    }

    .pdf-table tbody {
        display: table-row-group !important;
    }

    .pdf-table tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /*
    |--------------------------------------------------------------------------
    | Cellules sans bordures
    |--------------------------------------------------------------------------
    */

    .pdf-table th,
    .pdf-table td {
        box-sizing: border-box !important;
        padding: 1mm 1.2mm !important;
        border: none !important;
        text-align: left;
        vertical-align: middle;
        overflow-wrap: anywhere;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .pdf-table th.pdf-number-cell,
    .pdf-table td.pdf-number-cell {
        text-align: center;
    }

    /*
    |--------------------------------------------------------------------------
    | En-tête beige
    |--------------------------------------------------------------------------
    */

    .pdf-table thead th {
        background: #eadfc8 !important;
        color: #000000 !important;
        font-weight: 700;
    }

    /*
    |--------------------------------------------------------------------------
    | Alternance bleu / rose
    |--------------------------------------------------------------------------
    */

    .pdf-table tbody tr:nth-child(odd) td {
        background: rgba(173, 216, 230, 0.30) !important;
    }

    .pdf-table tbody tr:nth-child(even) td {
        background: rgba(255, 182, 193, 0.30) !important;
    }
}

/*
|--------------------------------------------------------------------------
| Éléments réservés à l’impression
|--------------------------------------------------------------------------
*/

@media screen {
    .pdf-print-header {
        display: none;
    }
}

@media screen {
    #pdf-workspace .pdf-table,
    #pdf-workspace .pdf-table th,
    #pdf-workspace .pdf-table td {
        border: none !important;
        border-top: none !important;
        border-right: none !important;
        border-bottom: none !important;
        border-left: none !important;
        outline: none !important;
        box-shadow: none !important;
    }
}