/**
 * Styles pour l'interface d'import de commandes WALT
 */

/* Select2 customization for customer select */
.select2-container.select2-container--walt-select2 .select2-selection,
.select2-container.select2-container--default .select2-selection {
    background: white !important;
}

.select2-container.select2-container--walt-select2.select2-container--disabled .select2-selection,
.select2-container.select2-container--default.select2-container--disabled .select2-selection {
    background: #F2F2F2 !important;
    cursor: not-allowed;
}

/* Hide arrow when select is disabled (readonly) */
.select2-container.select2-container--walt-select2.select2-container--disabled .select2-selection__arrow,
.select2-container.select2-container--default.select2-container--disabled .select2-selection__arrow {
    display: none !important;
}

/* Customer area */
.walt-customer-area {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    position: relative;
}

.walt-customer-area h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #2d3748;
}

.walt-customer-flex {
    display: flex;
    gap: 15px;
    align-items: start;
}

.walt-customer-flex > div {
    flex: 1;
}


.walt-import-interface {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    /* font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; */
}

/* En-tête */
.walt-import-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: #F2E66F;
    color: #181818;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.walt-import-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #181818;
}

.walt-import-description {
    font-size: 1.1rem;
    color: #181818;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

/* Zone d'upload */
.walt-upload-section {
    margin-bottom: 40px;
}

.walt-upload-area {
    border: 3px dashed #F2E66F;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    background: #F2F2F2;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.walt-upload-area:hover {
    border-color: #F2E66F;
    background: #F2F2F2;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 230, 111, 0.3);
}

.walt-upload-area.dragover {
    border-color: #F2E66F;
    background: #F2F2F2;
    transform: scale(1.02);
}

.walt-upload-content {
    max-width: 400px;
    margin: 0 auto;
}

.walt-upload-icon {
    color: #F2E66F;
    
    max-width: 100px;
    margin: 0 auto 20px;
}

.walt-upload-area h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #181818;
}

.walt-upload-area p {
    margin-bottom: 0;
    margin: 5px 0 5px !important;
    color: #181818;
    font-size: 1rem;
}

.walt-file-types {
    font-size: 0.9rem !important;
    color: #181818 !important;
    margin-top: 15px !important;
}

#walt-upload-btn{
    margin-top: 20px;
}
.walt-upload-btn {
    background: #F2E66F;
    color: #181818;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.walt-upload-btn:hover {
    background: #F2E66F;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(242, 230, 111, 0.5);
}

/* Zone de traitement */
.walt-processing-section {
    text-align: center;
    padding: 60px 20px;
    background: #F2F2F2;
    border-radius: 12px;
    margin-bottom: 40px;
}

.walt-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #F2F2F2;
    border-top: 4px solid #F2E66F;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.walt-processing-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #181818;
}

.walt-processing-content p {
    color: #181818;
    margin: 0;
}

/* Résultats */
.walt-results-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.walt-results-header {
    padding: 30px;
    border-bottom: 1px solid #F2F2F2;
    background: #F2F2F2;
}

.walt-results-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #181818;
}

.walt-results-summary {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.walt-summary-item {
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #F2E66F;
}

.walt-summary-label {
    font-size: 0.9rem;
    color: #181818;
    margin-bottom: 5px;
}

.walt-summary-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #181818;
}

/* Filtres */
.walt-filters {
    padding: 20px 30px;
    background: #F2F2F2;
    border-bottom: 1px solid #F2F2F2;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.walt-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.walt-filter-group label {
    font-weight: 600;
    color: #181818;
    font-size: 0.9rem;
}

.walt-filter-group select,
.walt-filter-group input {
    padding: 8px 12px;
    border: 1px solid #F2F2F2;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    min-width: 150px;
}

.walt-filter-group input:focus,
.walt-filter-group select:focus {
    outline: none;
    border-color: #F2E66F;
    box-shadow: 0 0 0 3px rgba(242, 230, 111, 0.1);
}

/* Tableau */
.walt-products-table-container {
    overflow-x: auto;
}

.walt-products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.walt-products-table th {
    background: #F2F2F2;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #181818;
    border-bottom: 2px solid #F2F2F2;
    position: sticky;
    top: 0;
    z-index: 10;
}

.walt-products-table td {
    padding: 12px;
    border-bottom: 1px solid #F2F2F2;
    vertical-align: middle;
}

.walt-products-table tbody tr:hover {
    background: #F2F2F2;
}

.walt-checkbox-col {
    width: 50px;
    text-align: center;
}

.walt-image-col {
    width: 80px;
}

.walt-name-col {
    min-width: 200px;
}

.walt-sku-col {
    width: 120px;
}

.walt-quantity-col {
    width: 100px;
}

.walt-price-col {
    width: 100px;
    text-align: right;
}

.walt-stock-col {
    width: 80px;
    text-align: center;
}

.walt-status-col {
    width: 150px;
}

/* Éléments du tableau */
.walt-product-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #F2F2F2;
}

.walt-product-name {
    font-weight: 600;
    color: #181818;
    margin-bottom: 4px;
}

.walt-product-sku {
    font-size: 0.8rem;
    color: #181818;
    font-family: 'Courier New', monospace;
}

.walt-quantity-input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #F2F2F2;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
}

.walt-quantity-input:focus {
    outline: none;
    border-color: #F2E66F;
    box-shadow: 0 0 0 2px rgba(242, 230, 111, 0.1);
}

.walt-product-price {
    font-weight: 600;
    color: #181818;
}

.walt-stock-quantity {
    font-weight: 600;
    color: #181818;
}

.walt-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.walt-status-in_stock {
    background: #c6f6d5;
    color: #22543d;
}

.walt-status-low_stock {
    background: #fef5e7;
    color: #744210;
}

.walt-status-out_of_stock {
    background: #fed7d7;
    color: #742a2a;
}

.walt-status-on_backorder {
    background: #bee3f8;
    color: #2a4365;
}

.walt-actions {
    padding: 20px 30px;
    background: white;
    border-top: 1px solid #F2F2F2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    position: sticky;
    bottom: 0;
    z-index: 100;
    margin: 0;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
}

.walt-order-group-header select {
    font-size: 0.85rem;
    font-weight: 500;
}

.walt-order-group-header td {
    border-top: 2px solid #181818 !important;
    transition: background-color 0.2s ease;
}

.walt-order-group-header:hover td {
    background-color: #f0f0f0 !important;
}

.walt-toggle-order:hover {
    background-color: #181818 !important;
    color: #F2E66F !important;
}

.walt-toggle-order {
    transition: all 0.2s ease;
    min-width: 25px;
}

.walt-order-summary-tags span {
    white-space: nowrap;
}

.walt-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.walt-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.walt-btn-primary {
    background: #F2E66F;
    color: #181818;
}

.walt-btn-primary:hover:not(:disabled) {
    background: #F2E66F;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(242, 230, 111, 0.5);
}

.walt-btn-secondary {
    background: white;
    color: #181818;
    border: 1px solid #F2F2F2;
}

.walt-btn-secondary:hover {
    background: #F2F2F2;
    border-color: #F2F2F2;
}

.walt-btn-count {
    background: rgba(24, 24, 24, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* Modals */
.walt-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.walt-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.walt-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Separation des commandes */
.walt-order-separator td {
    border-top: 3px solid #F2E66F !important;
}

.walt-products-table tbody tr.walt-order-separator {
    background: rgba(242, 230, 111, 0.05);
}

.walt-products-table td.walt-name-col strong {
    color: #181818;
}

/* Styles pour quantity-input */
.quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: fit-content;
    background: white;
}

.quantity-btn {
    background: #f4f4f4;
    border: none;
    padding: 0 10px;
    cursor: pointer;
    font-size: 1.2rem;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #181818;
}

.quantity-btn:hover {
    background: #eee;
}

.quantity-field {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    height: 34px;
    margin: 0;
    padding: 0;
}

.quantity-field::-webkit-inner-spin-button,
.quantity-field::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Disponibilité */
.product-availability {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-availability .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.product-availability.in-stock .dot, .product-availability.instock .dot {
    background-color: #48bb78;
}

.product-availability.out-of-stock .dot, .product-availability.outofstock .dot {
    background-color: #e53e3e;
}

.product-availability.reappro .dot {
    background-color: #f6ad55;
}

.walt-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #F2F2F2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F2F2F2;
}

.walt-modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #181818;
}

.walt-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #181818;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.walt-modal-close:hover {
    background: #F2F2F2;
    color: #181818;
}

.walt-modal-body {
    padding: 30px;
    max-height: 400px;
    overflow-y: auto;
}

.walt-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #F2F2F2;
    background: #F2F2F2;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Contenu des modals */
.walt-confirmation-summary {
    background: #F2F2F2;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #F2E66F;
}

.walt-confirmation-products {
    max-height: 300px;
    overflow-y: auto;
}

.walt-confirmation-product {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #F2F2F2;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #F2F2F2;
}

.walt-confirmation-product img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.walt-confirmation-product-info {
    flex: 1;
}

.walt-confirmation-product-name {
    font-weight: 600;
    color: #181818;
    margin-bottom: 4px;
}

.walt-confirmation-product-details {
    font-size: 0.9rem;
    color: #181818;
}

.walt-success-icon {
    width: 60px;
    height: 60px;
    background: #F2E66F;
    color: #181818;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.walt-success-summary {
    background: #f0fff4;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #48bb78;
}

/* Récap import (progress + items) */
.walt-import-recap {
    margin-top: 16px;
}

.walt-recap-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #F2F2F2;
    padding: 16px;
}

.walt-recap-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #181818;
    font-weight: 700;
}

.walt-recap-stats {
    font-size: 0.95rem;
    color: #181818;
    margin-bottom: 8px;
}

.walt-recap-progress {
    width: 100%;
    height: 10px;
    background: #f7f7f7;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid #ececec;
}

.walt-recap-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #F2E66F 0%, #f7d94c 100%);
    transition: width 0.25s ease;
    border-radius: 999px;
}

.walt-recap-dynamic {
    display: flex;
    flex-direction: column;
    gap: 8px;
   
    overflow-y: auto;
    padding-right: 4px;
}

.walt-recap-item {
    display: grid;
    grid-template-columns: 1.1fr 0.4fr 1.6fr 1.9fr;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #F8F8F8;
    border: 1px solid #efefef;
    align-items: center;
    font-size: 0.9rem;
    color: #181818;
    
}

.walt-recap-item.success,  .walt-recap-item.error{
    color: #181818;
}

.walt-recap-item .ean {
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.walt-recap-item .qty {
    font-weight: 700;
    color: #4a5568;
}

.walt-recap-item .name {
    font-weight: 600;
}

.walt-recap-item .reason {
    font-size: 0.85rem;
    color: #4a5568;
}

.walt-recap-item.success {
    border-left: 4px solid #48bb78;
    background: #f0fff4;
}

.walt-recap-item.error {
    border-left: 4px solid #e53e3e;
    background: #fff5f5;
}

/* Toast actions (save/restore cart) */
#walt-action-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

#walt-action-toast .toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border-radius: 10px;
    padding: 12px 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border: 1px solid #ececec;
    min-width: 240px;
}

#walt-action-toast.success .toast-content {
    border-left: 4px solid #48bb78;
}

#walt-action-toast.error .toast-content {
    border-left: 4px solid #e53e3e;
}

#walt-action-toast .toast-icon {
    font-weight: 700;
    color: #181818;
}

#walt-action-toast .toast-text {
    flex: 1;
    color: #181818;
    font-weight: 600;
}

#walt-action-toast .toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #181818;
    padding: 0;
    line-height: 1;
}

.walt-saved-cart-widget {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.walt-saved-cart-info {
    font-size: 0.95rem;
    color: #181818;
}

/* Responsive */
@media (max-width: 768px) {
    .walt-import-interface {
        padding: 15px;
    }
    
    .walt-import-header h1 {
        font-size: 2rem;
    }
    
    .walt-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .walt-filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .walt-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .walt-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .walt-products-table {
        font-size: 0.8rem;
    }
    
    .walt-products-table th,
    .walt-products-table td {
        padding: 8px 6px;
    }
}

/* États de chargement */
.walt-loading {
    opacity: 0.6;
    pointer-events: none;
}

.walt-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #667eea;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
.walt-fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.walt-slide-up {
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
} /* Sélecteur de stratégie */
.walt-import-type-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-bottom: 2.5rem;
}

.walt-tabs {
    display: inline-flex;
    background: #f1f5f9;
    padding: 8px;
    border-radius: 16px;
    gap: 10px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.06), 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.walt-tab {
    padding: 14px 28px;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.walt-tab:hover {
    color: #1e293b;
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.walt-tab.active {
    background: #181818;
    color: #F2E66F;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(0);
}

.walt-import-description-dynamic {
    width: 100%;
    text-align: center;
    color: #334155;
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    background: #ffffff;
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.walt-import-description-dynamic::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(to bottom, #F2E66F, #f7d94c);
}

.walt-import-description-dynamic strong {
    color: #181818;
}

/* Micro-animations */
.walt-tab, .walt-btn, .walt-upload-area {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.walt-btn:active {
    transform: scale(0.98);
}

/* New classes to replace inline styles */
.walt-mt-20 { margin-top: 20px; }
.walt-mb-2rem { margin-bottom: 2rem; }
.walt-hidden { display: none; }

/* Customer Search specific */
.walt-customer-search-area {
    padding: 20px 30px;
    background: #fdfdfd;
    border-bottom: 1px solid #F2F2F2;
}

.walt-customer-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.walt-customer-ctnum-input {
    max-width: 200px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.walt-search-customer-btn {
    padding: 8px 15px;
}

.walt-customer-info-display {
    margin-left: 20px;
    font-weight: 700;
    color: #181818;
}

/* Modal Progress */
.walt-progress-container { margin-bottom: 20px; }

.walt-success-final-message {
    text-align: center;
    margin-top: 20px;
}

.walt-success-message-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: #181818;
}

.walt-view-orders-btn { display: none; }
.walt-success-icon-margin { margin-bottom: 10px; }

/* Order Group Header Template */
.walt-order-group-cell {
    background: #f7f7f7;
    border-top: 2px solid #181818 !important;
    padding: 12px 20px;
    cursor: pointer;
}

.walt-order-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

.walt-order-info-group {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-wrap: wrap;
    width: 100%;
}

.walt-toggle-btn-style {
    background: #fff;
    border: 1px solid #181818;
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
    font-weight: 700;
    width: 30px;
}

.walt-order-details-col {
    display: flex;
    flex-wrap: wrap;
    /* flex-direction: column; */
    gap: 5px;
    justify-content: space-between;
    align-items: flex-start;
        flex-grow: 1;
}

.walt-order-ref-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.walt-order-ref-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: #181818;
}

.walt-order-depot-tag {
    background: #eee;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid #ddd;
    color: #181818;
    font-weight: 600;
}

.walt-order-count-tag {
    background: #181818;
    color: #F2E66F;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.walt-order-totals-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 8px 15px;
    font-size: 0.9rem;
    padding: 8px 0;
}

.walt-label-muted {
    color: #666;
    font-weight: 500;
}

.walt-value-bold {
    font-weight: 600;
    color: #181818;
}

.walt-label-bold {
    color: #181818;
    font-weight: 700;
}

.walt-value-highlight {
    background: #F2E66F;
    color: #181818;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 700;
}

/* Right side inputs */
.walt-order-inputs-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.walt-input-wrapper {
    /* display: flex; */
    /* align-items: center; */
    gap: 8px;
}

.walt-order-group-header .walt-input-label, .walt-order-shipping-address label {
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    color: #181818 !important;
    margin-bottom: 4px !important;
}

.walt-results-section input{
    padding: 8px !important;
    font-size: 16px !important;
    /* background-color: white !important; */

}
.walt-results-section input:not([readonly]){
    background-color: white !important;
}
input[readonly]{
    cursor: not-allowed;
}

.walt-results-section .walt-quantity-controls{
    border: 0 !important;
    padding: 0 8px !important;
}

.walt-results-section .walt-quantity-controls .walt-quantity-input {
    border: 0 !important;
}

/* Unavailable product styling */
.walt-product-row.walt-unavailable-row {
    background-color: #fffff0 !important;
}

.walt-product-row.walt-unavailable-row .walt-checkbox-col input {
    cursor: not-allowed;
    opacity: 0.5;
}

.walt-input-styled {
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 0.85rem;
    width: 140px;
}

.walt-readonly-bg {
    background: #f5f5f5;
}

.walt-shipping-label {
    margin-right: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

.walt-shipping-selector-style {
    padding: 9px;
    border-radius: 4px;
    border: 1px solid #ddd;
    max-width: 245px;
    min-width: 245px;
    font-size: 0.9rem;
}

.walt-order-souche-select.walt-shipping-selector-style,
.walt-order-cat-tarif-select.walt-shipping-selector-style {
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    max-width: 220px;
    min-width: 220px;
}

/* Product Row Template */
.walt-product-attributes {
    font-size: 0.8em;
    color: #4a5568;
    font-weight: 600;
    margin-top: 2px;
}

.walt-product-sku-row {
    font-size: 0.75em;
    color: #718096;
}

.walt-quantity-input-style {
    padding: 0;
    border: 0;
}

/* Intitulés de colonnes dans les cellules (non modifiables) */
.walt-products-table .walt-col-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
    user-select: none;
    pointer-events: none;
}

.walt-products-header-row .walt-col-label {
    margin-bottom: 4px;
}

/* Products Header Template */
.walt-products-header-row {
    background: #fafafa;
    border-bottom: 2px solid #eee;
    display: none;
}

.walt-products-header-cell {
    padding: 10px;
    font-size: 0.85rem;
    color: #666;
}

.walt-products-header-checkbox-cell {
    padding: 10px;
    vertical-align: middle;
}

.walt-modal-results-list {
    max-height: 350px;
    overflow-y: auto;
}

