<style>
    /* Global styles */
    body {
        font-family: 'Arial', sans-serif;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .facture-container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ddd;
        background-color: #fff;
    }

    /* Header */
    .facture-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid #228B22;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

    .facture-header .logo {
        max-width: 100px;
        height: auto;
    }

    .facture-header h1 {
        font-size: 24px;
        color: #228B22;
        margin: 0;
    }

    /* Informations de l'entreprise et du client */
    .facture-info {
        display: flex;
        justify-content: space-between;
        margin-bottom: 20px;
    }

    .entreprise-info, .client-info {
        font-size: 14px;
        line-height: 1.5;
        color: #333;
    }

    .client-info {
        font-weight: bold;
        text-align: right;
    }

    /* Table des lignes de la facture */
    .facture-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }

    .facture-table th, .facture-table td {
        border: 1px solid #ddd;
        padding: 10px;
        text-align: left;
    }

    .facture-table th {
        background-color: #f4f4f4;
        color: #333;
    }

    .facture-table tfoot tr td {
        font-weight: bold;
        color: #ffcd01;
    }

    /* Totaux et TVA */
    .facture-summary {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 2px solid #228B22;
    }

    .facture-summary p {
        font-size: 16px;
        font-weight: bold;
    }

    /* Boutons */
    button {
        background-color: #ffcd01;
        color: white;
        border: none;
        padding: 10px 20px;
        cursor: pointer;
        border-radius: 5px;
        font-size: 14px;
        margin-top: 20px;
    }

    }

    /* Impressions */
    @media print {
        body {
            font-size: 12px;
        }

        .facture-container {
            border: none;
            background-color: #fff;
        }

        #print-facture {
            display: none;
        }
    }
</style>
