/* Styles d'impression */

@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
    
    body {
        font-family: Arial, sans-serif;
        font-size: 12pt;
        line-height: 1.4;
        margin: 0;
        padding: 10mm;
        background: white !important;
        color: black !important;
    }
    
    .print-container {
        max-width: none !important;
        margin: 0 !important;
    }
    
    .print-header {
        text-align: center;
        margin-bottom: 20pt;
        border-bottom: 2pt solid black;
        padding-bottom: 15pt;
    }
    
    .print-header h1 {
        font-size: 18pt;
        font-weight: bold;
        margin: 0;
    }
    
    .print-section {
        margin-bottom: 20pt;
        page-break-inside: avoid;
    }
    
    .print-section h2 {
        font-size: 14pt;
        font-weight: bold;
        margin-bottom: 8pt;
        border-bottom: 1pt solid #ccc;
        padding-bottom: 3pt;
    }
    
    .address-block {
        background: #f5f5f5 !important;
        padding: 10pt;
        margin-bottom: 10pt;
        border-left: 3pt solid #333;
        page-break-inside: avoid;
    }
    
    .address-block h3 {
        font-size: 12pt;
        font-weight: bold;
        margin: 0 0 8pt 0;
    }
    
    .info-row {
        margin-bottom: 6pt;
    }
    
    .info-label {
        font-weight: bold;
        display: inline-block;
        width: 35%;
        vertical-align: top;
    }
    
    .info-value {
        display: inline-block;
        width: 60%;
        vertical-align: top;
    }
    
    .items-table {
        width: 100%;
        border-collapse: collapse;
        margin: 10pt 0;
        page-break-inside: avoid;
    }
    
    .items-table th,
    .items-table td {
        border: 1pt solid #333;
        padding: 6pt;
        text-align: left;
        vertical-align: top;
    }
    
    .items-table th {
        background: #e5e5e5 !important;
        font-weight: bold;
        font-size: 11pt;
    }
    
    .items-table td {
        font-size: 10pt;
    }
    
    .custom-field {
        background: #f0f8ff !important;
        padding: 2pt 4pt;
        margin: 2pt 0;
        border: 1pt solid #ccc;
        display: block;
        font-size: 9pt;
    }
    
    .order-total {
        text-align: right;
        font-size: 14pt;
        font-weight: bold;
        margin: 15pt 0;
        padding: 10pt;
        background: #f0f8ff !important;
        border: 2pt solid #333;
        page-break-inside: avoid;
    }
    
    .item-details {
        font-size: 9pt;
        color: #666 !important;
        margin-top: 3pt;
    }
    
    /* Masquer les éléments non nécessaires à l'impression */
    .no-print,
    .print-button,
    button,
    .btn,
    nav,
    .navigation,
    .sidebar,
    .footer-widget,
    #footer,
    .admin-bar,
    .wp-toolbar {
        display: none !important;
    }
    
    /* Gestion des sauts de page */
    .page-break-before {
        page-break-before: always;
    }
    
    .page-break-after {
        page-break-after: always;
    }
    
    .page-break-inside-avoid {
        page-break-inside: avoid;
    }
    
    /* Optimiser l'utilisation de l'espace */
    .print-section:last-child {
        margin-bottom: 0;
    }
    
    /* Style pour les notes importantes */
    .order-notes-section {
        background: #fffacd !important;
        border: 1pt solid #333;
        padding: 8pt;
        margin: 10pt 0;
        page-break-inside: avoid;
    }
    
    /* Améliorer la lisibilité des liens */
    a {
        color: black !important;
        text-decoration: none !important;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666 !important;
    }
    
    /* Éviter les problèmes avec les images */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
} 