.order-invoice-custom-container {
    width: 90%; /* Occupe 90 % de la largeur */
    max-width: 1400px; /* Limite pour grands écrans */
    margin-left: auto; /* Centre le contenu */
    margin-right: auto;
    margin-top: 100px; /* Conserver la marge demandée */
    margin-bottom: 3rem;
    padding-left: 15px; /* Ajustement minimal */
    padding-right: 15px;
}

.order-invoice-header {
    background: linear-gradient(90deg, #0066cc, #0052a3); /* Dégradé bleu */
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.order-invoice-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.order-invoice-subtitle {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.order-invoice-card {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.order-invoice-card:hover {
    transform: translateY(-5px);
}

.order-invoice-card .card-header {
    background-color: #0066cc;
    border-bottom: 1px solid #0052a3;
    padding: 1rem;
}

.order-invoice-card .card-body {
    padding: 1.5rem;
}

.order-invoice-table {
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #fff;
}

.order-invoice-table th,
.order-invoice-table td {
    padding: 1rem;
    vertical-align: middle;
}

.order-invoice-table th {
    background-color: #2c2c54;
    color: #fff;
}

.order-invoice-table tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa;
}

.order-invoice-status-select {
    width: 200px;
    margin: 0 auto;
    display: block;
    border: 2px solid #0066cc;
    border-radius: 0.375rem;
    padding: 0.5rem;
    transition: border-color 0.3s ease;
}

.order-invoice-status-select:focus {
    border-color: #0052a3;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.order-invoice-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.order-invoice-btn:hover {
    transform: translateY(-2px);
}

.btn-primary.order-invoice-btn {
    background-color: #0066cc;
    border-color: #0066cc;
}

.btn-primary.order-invoice-btn:hover {
    background-color: #0052a3;
    border-color: #0052a3;
}

.btn-outline-secondary.order-invoice-btn {
    border-color: #6c757d;
    color: #6c757d;
}

.btn-outline-secondary.order-invoice-btn:hover {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary.order-invoice-btn {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary.order-invoice-btn:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

.alert {
    border-radius: 0.5rem;
    padding: 0.8rem;
    font-size: 0.9rem;
    margin-top: 1rem;
}

@media print {
    .printable-area {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .non-printable {
        display: none !important;
    }
    .order-invoice-card,
    .order-invoice-table {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }
    .order-invoice-header {
        background: none !important;
        color: #000 !important;
    }
}