/* Style pour le bouton "Ajouter au devis" */
.ajouter-au-devis-btn {
    background-color: #0073aa;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.ajouter-au-devis-btn:hover {
    background-color: #005177;
}
/* Conteneur principal */
.quote-cart-container {
    display: flex;
    gap: 20px;
    margin: 30px auto;
    max-width: 1200px;
    font-family: 'Roboto', sans-serif;
    background: #f9f9f9;
}

/* Bloc panier */
.quote-cart {
    flex: 2;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quote-cart-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

/* Tableau des produits */
.quote-cart-table {
    width: 100%;
    border-collapse: collapse;
}

.quote-cart-table th, .quote-cart-table td {
    text-align: left;
    padding:5px;
    border-bottom: 1px solid #ffffff;
}
.quote-cart-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.product-thumbnail img {
    max-width: 30px;
    border-radius: 5px;
}
.attachment-woocommerce_thumbnail {
    width: 50px;
    aspect-ratio: auto 100 / 100;
    height: 50px;
}
.product-remove button {
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.product-remove button:hover {
    background: #b71c1c;
}

.quote-cart-footer {
    margin-top: 20px;
    text-align: right;
}

.clear-cart {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.clear-cart:hover {
    background: #495057;
}

/* Bloc formulaire */
.quote-cart-form {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quote-cart-form h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.quote-cart-form label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.quote-cart-form input,
.quote-cart-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.quote-cart-form input:focus,
.quote-cart-form textarea:focus {
    border-color: #007bff;
    outline: none;
}

#send-quote-request {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

#send-quote-request:hover {
    background: #0056b3;
}
.tablenav .one-page .pagination-links {
    display: block;
}
.wp-list-table .column-id {
    width: 5%;
}
.wp-list-table .column-client_name {
    width: 20%;
}
.wp-list-table .column-client_email {
    width: 20%;
}
.wp-list-table .column-created_at {
    width: 15%;
}
.wp-list-table .column-status {
    width: 10%;
}
.wp-list-table .column-actions {
    width: 20%;
}

.pd-add-to-quote {
    margin: 5px 0;
    padding: 10px 20px;
    background-color: #2271b1;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pd-add-to-quote:hover {
    background-color: #135e96;
}

/* Style pour le bouton quand il est placé à côté du bouton "Ajouter au panier" */
.pd-add-to-quote.button.alt {
    margin-left: 10px;
}

/* Styles pour les pages de devis */
.pdd-cart-page,
.pdd-quote-list-page,
.pdd-quote-view-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.pdd-error-message {
    padding: 20px;
    background-color: #fff3f3;
    border: 1px solid #ffcdd2;
    color: #d32f2f;
    border-radius: 4px;
    margin: 20px 0;
    text-align: center;
}

/* Styles pour le panier de devis */
.quote-cart-container {
    margin-bottom: 30px;
}

.quote-cart-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.quote-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.quote-cart-table th,
.quote-cart-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.quote-cart-table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.quote-cart-table img {
    max-width: 80px;
    height: auto;
}

/* Styles pour le formulaire de demande de devis */
#quote-request-form {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

#quote-request-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

#quote-request-form input,
#quote-request-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#quote-request-form textarea {
    min-height: 100px;
}

#quote-request-form button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#quote-request-form button:hover {
    background-color: #45a049;
}

/* Styles pour les boutons d'action */
.remove-quote-product,
.clear-cart {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.remove-quote-product:hover,
.clear-cart:hover {
    background-color: #d32f2f;
}

/* Styles pour la liste des devis */
.quote-list {
    margin-top: 20px;
}

.quote-item {
    padding: 15px;
    border: 1px solid #eee;
    margin-bottom: 10px;
    border-radius: 4px;
}

.quote-item:hover {
    background-color: #f9f9f9;
}

.quote-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.quote-status.new {
    background-color: #e3f2fd;
    color: #1976d2;
}

.quote-status.accepted {
    background-color: #e8f5e9;
    color: #388e3c;
}

.quote-status.rejected {
    background-color: #ffebee;
    color: #d32f2f;
}

/* Styles pour la page de visualisation des devis */
.quote-details {
    margin-top: 20px;
}

.quote-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.quote-info {
    margin-bottom: 15px;
}

.quote-info p {
    margin: 5px 0;
}

.quote-total {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-top: 20px;
    text-align: right;
}

/* Styles responsifs */
@media (max-width: 768px) {
    .quote-cart-table {
        display: block;
        overflow-x: auto;
    }
    
    .quote-cart-table th,
    .quote-cart-table td {
        min-width: 120px;
    }
    
    #quote-request-form {
        padding: 15px;
    }
}

/* Styles pour la liste des devis */
.quote-list-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.quote-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quote-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.quote-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.quote-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.quote-item-id {
    font-weight: 600;
    color: #333;
}

.quote-item-date {
    color: #666;
    font-size: 14px;
}

.quote-item-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.quote-item-products {
    flex: 1;
}

.quote-products-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quote-products-list li {
    margin-bottom: 5px;
    color: #555;
}

.quote-item-actions {
    margin-left: 20px;
}

.view-quote-button {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.view-quote-button:hover {
    background-color: #45a049;
    color: white;
}

.pdd-info-message {
    padding: 20px;
    background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    color: #1976d2;
    border-radius: 4px;
    margin: 20px 0;
    text-align: center;
}

/* Styles responsifs pour la liste des devis */
@media (max-width: 768px) {
    .quote-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .quote-item-details {
        flex-direction: column;
    }
    
    .quote-item-actions {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }
    
    .view-quote-button {
        display: block;
        text-align: center;
    }
}

