/* Exemple de style pour la liste des demandes de devis */
.wrap h1.wp-heading-inline {
    color: #2271b1;
}

.quote-cart-table {
    width: 100%;
    border-collapse: collapse;
}

.quote-cart-table th,
.quote-cart-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

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

.quote-cart-table tr:hover {
    background-color: #f9f9f9;
}
.tablenav .no-pages, .tablenav .one-page .pagination-links {
    display: block;
}
.tablenav-pages.one-page{
    display: flex; /* Active Flexbox */
    align-items: center; /* Aligne verticalement les éléments au centre */
    gap: 20px; /* Espace entre les éléments */
}
.displaying-num
.pagination-links{
    flex: 1; /* Les éléments prennent une largeur égale */
    padding: 10px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;

}
.wp-list-table th, .wp-list-table td {
    padding: 8px;
    border: 1px solid #ddd;
}
.wp-list-table th {
    background-color: #f9f9f9;
}

.wp-list-table .column-actions {
    width: 15%;
}

.wp-list-table .button-small {
    margin: 0 5px;
}

.quote-details {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.quote-details h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.form-table th {
    width: 200px;
}

.widefat td, .widefat th {
    padding: 12px 10px;
}

/* Styles pour les filtres */
.tablenav.top {
    margin: 15px 0;
    padding: 8px;
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.alignleft.actions {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
}

.alignleft.actions select,
.alignleft.actions input[type="date"] {
    height: 30px;
    margin: 0;
    min-width: 150px;
}

.alignleft.actions .button {
    margin: 0 !important;
    height: 30px;
    line-height: 28px;
}

/* Style pour le sélecteur de statut */
select[name="status_filter"] {
    min-width: 150px;
}

/* Style pour les champs de date */
input[type="date"] {
    padding: 0 8px;
}

/* Style pour le bouton réinitialiser */
.alignleft.actions .button-reset {
    color: #a00;
}

/* Styles pour la vue détaillée du devis */
.yith-ywraq-view-quote {
    max-width: 1200px;
    margin: 20px auto;
}

.quote-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 14px;
    margin-left: 10px;
    background: #f0f0f1;
}

.status-nouveau { background: #e5f5fa; color: #0073aa; }
.status-en-cours { background: #fff8e5; color: #996800; }
.status-traité { background: #ecf7ed; color: #1a472a; }
.status-annulé { background: #fbeaea; color: #9c2c2c; }

.quote-info-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.quote-details-box {
    flex: 1;
    background: #fff;
    padding: 20px;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.quote-details-box h3 {
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

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

.quote-message {
    background: #f6f7f7;
    padding: 10px;
    margin-top: 5px;
    border-radius: 2px;
}

.quote-items-container {
    margin: 20px 0;
    background: #fff;
    padding: 20px;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.quote-items {
    margin-top: 15px;
}

.quote-items .product-thumbnail {
    width: 90px;
}

.quote-items .product-thumbnail img {
    max-width: 60px;
    height: auto;
}

.quote-items dl.variation {
    margin: 5px 0 0;
    font-size: 12px;
    color: #666;
}

.quote-items dl.variation dt,
.quote-items dl.variation dd {
    display: inline;
    margin: 0;
}

.quote-items dl.variation dt {
    font-weight: 600;
}

.quote-items dl.variation dd {
    margin-right: 10px;
}

.quote-items tfoot {
    background: #f6f7f7;
}

.quote-items .total-label {
    text-align: right;
    font-weight: 600;
}

.quote-items .total-amount {
    font-weight: 600;
    font-size: 1.1em;
}

.quote-actions {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #c3c4c7;
    text-align: right;
}

.quote-actions .button {
    margin-left: 10px;
}

/* Styles pour l'édition du devis */
.quote-edit-actions {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border: 1px solid #c3c4c7;
    display: flex;
    gap: 10px;
}

.quote-edit-actions .button {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quote-sections {
    margin: 20px 0;
}

.quote-section {
    background: #fff;
    padding: 20px;
    border: 1px solid #c3c4c7;
    margin-bottom: 20px;
}

.quote-section h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.quote-items input[type="number"] {
    width: 80px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 70%;
    max-width: 800px;
    border-radius: 4px;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}

/* Recherche de produits */
.product-search {
    margin: 20px 0;
}

.product-search input {
    width: 100%;
    padding: 8px;
}

.product-results {
    max-height: 400px;
    overflow-y: auto;
}

.product-result {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.product-result:hover {
    background: #f0f0f1;
}

.product-result img {
    margin-right: 10px;
}

.product-result .price {
    margin-left: auto;
}

/* Style pour le sélecteur de produits */
.select2-container {
    width: 100% !important;
    margin-bottom: 15px;
}

.product-details {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    margin-top: 15px;
    border-radius: 4px;
}

.quantity-field,
.price-field {
    margin-bottom: 10px;
}

.quantity-field label,
.price-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.quantity-field input,
.price-field input {
    width: 100%;
    max-width: 200px;
}

/* Style pour l'input de remise */
.product-discount input {
    width: 80px;
    text-align: right;
}

.product-discount {
    width: 100px;
}

/* Tooltip pour la remise */
.discount-input {
    position: relative;
}

.discount-input:hover::after {
    content: "Entrez un pourcentage de remise (0-100)";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

/* Style pour les colonnes de total */
.product-subtotal,
.product-total {
    width: 120px;
    text-align: right;
}

.subtotal {
    color: #666;
}

.final-total {
    font-weight: 600;
    color: #2271b1;
}

/* Ajuster la largeur des colonnes */
.product-quantity {
    width: 100px;
}

.product-price {
    width: 120px;
}

.product-discount {
    width: 100px;
}

/* Style pour le total général */
tfoot .total-before-discount {
    color: #666;
    font-size: 0.9em;
}

tfoot .total-amount {
    color: #2271b1;
    font-weight: 600;
    font-size: 1.1em;
}

/* Styles pour la section des frais */
#quote-fees-table {
    margin-top: 20px;
}

.fee-name {
    width: 60%;
}

.fee-amount {
    width: 25%;
    text-align: right;
}

.fee-actions {
    width: 15%;
    text-align: center;
}

.total-fees {
    text-align: right;
    font-weight: 600;
    color: #2271b1;
}

/* Styles pour le tableau des totaux */
.quote-section table tfoot tr {
    background-color: #f8f9fa;
}

.quote-section table tfoot td {
    padding: 12px;
}

.total-label {
    text-align: right;
    font-weight: 500;
}

.total-amount {
    font-size: 1.2em;
    font-weight: 700;
    color: #2271b1;
}

.total-products {
    text-align: right;
    color: #666;
    font-weight: 600;
}

.quote-section table tfoot tr:last-child {
    border-top: 2px solid #ddd;
}

.quote-section table tfoot tr:last-child td {
    padding-top: 15px;
}

/* Style pour les champs de quantité et prix */
.quantity-input {
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
}

.quantity-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid transparent;
}

.price-input {
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    cursor: not-allowed;
    font-size: 14px;
}

.product-price {
    position: relative;
    white-space: nowrap;
}

.currency {
    margin-left: 5px;
    color: #666;
    font-weight: 500;
}

/* Styles pour le modal d'expédition */
.shipping-method-field,
.shipping-cost-field {
    margin-bottom: 15px;
}

.shipping-method-field select {
    width: 100%;
    max-width: none;
}

.shipping-fee .fee-name-input {
    background-color: #f0f0f1;
    cursor: not-allowed;
}

#add-shipping-to-quote {
    width: 100%;
    margin-top: 15px;
}

/* Styles pour le modal de taxe */
.tax-rate-field,
.tax-amount-field {
    margin-bottom: 15px;
}

.tax-rate-field select {
    width: 100%;
    max-width: none;
}

.tax-fee .fee-name-input {
    background-color: #f0f0f1;
    cursor: not-allowed;
}

#add-tax-to-quote {
    width: 100%;
    margin-top: 15px;
}

.tax-amount-field input[readonly] {
    background-color: #f0f0f1;
    border: 1px solid #ddd;
    color: #666;
    cursor: not-allowed;
}

/* Styles pour la section code promo */
.promo-section {
    margin: 20px 0;
}

.promo-code-container {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 500px;
}

#promo-code {
    flex: 1;
    height: 35px;
    padding: 5px 10px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
}

.promo-message {
    margin-left: 10px;
    font-style: italic;
}

.promo-message.success {
    color: #00a32a;
}

.promo-message.error {
    color: #d63638;
}

.promo-discount {
    color: #d63638;
    font-weight: 600;
    text-align: right;
}

.promo-discount::before {
    content: "-";
    margin-right: 2px;
}

/* Style pour le bouton Voir devis */
.page-title-action {
    margin-left: 10px !important;
}

#view-quote-pdf {
    color: #2271b1;
    border-color: #2271b1;
    background: #f6f7f7;
    padding: 4px 8px;
    border-radius: 3px;
    text-decoration: none;
}

#view-quote-pdf:hover {
    background: #f0f0f1;
    border-color: #0a4b78;
    color: #0a4b78;
}

#view-quote-pdf.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.categories-select {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
}

.categories-select label {
    margin-bottom: 5px;
    display: block;
}

.products-select {
    margin-bottom: 15px;
}

.select2-container {
    min-width: 300px;
}

.button-settings-group {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
}

.button-settings-group h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.visibility-settings {
    display: none;
    padding: 15px;
    margin-top: 10px;
    border: 1px solid #ddd;
    background: #fff;
}

.show-visibility-settings {
    display: block;
}

.visibility-toggle {
    margin: 15px 0;
}

.option-row {
    margin-bottom: 15px;
}

.option-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.option-row select {
    min-width: 250px;
}

.categories-select,
.products-select {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #eee;
    background: #fafafa;
}

/* Ajout de styles pour améliorer la visibilité des options sélectionnées */
.categories-select label {
    display: block;
    margin-bottom: 5px;
    padding: 5px;
}

.categories-select label:hover {
    background: #f0f0f0;
}

.select2-container {
    width: 100% !important;
    margin-top: 5px;
}

.section-description {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

/* Tabs styling */
.pdd-settings-tabs {
    margin-bottom: 20px;
}

.pdd-settings-tabs .nav-tab {
    font-size: 14px;
    padding: 10px 15px;
}

.pdd-settings-tab-content {
    display: none;
}

.pdd-settings-tab-content.active {
    display: block;
}

/* Styles pour les paramètres de pages */
.pages-settings-group {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin-bottom: 20px;
}

.pages-settings-group .option-row {
    margin-bottom: 20px;
}

.pages-settings-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.pages-settings-group select {
    width: 100%;
    max-width: 400px;
}

.pages-settings-group .description {
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

.shortcode-info {
    margin-top: 30px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
}

.shortcode-info h4 {
    margin-top: 0;
    color: #23282d;
}

.shortcode-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.shortcode-info code {
    background: #f1f1f1;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
}