/* /Components/CommandCard.razor.rz.scp.css */
/* CSS for CommandCard component */
.commande-card[b-tlxme7r24l] {
    border: 1px solid #7D8082;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-out;
    width: 22vw;
    background-color: hsl(200 100% 85% / 20%);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.commande-card:hover[b-tlxme7r24l] {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    background-color: hsl(200 100% 88% / 30%);
}

.light-theme .commande-card[b-tlxme7r24l] {
    background-color: #ffffff73;
    color: black;
    border: 1px solid darkorange;
    backdrop-filter: blur(20px);
}

.light-theme .commande-card:hover[b-tlxme7r24l] {
    background-color: #e8e6e6;
}

.card-header[b-tlxme7r24l] {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #7D8082;
}

.commande-id[b-tlxme7r24l] {
    font-weight: bold;
    font-size: 1.3em;
    font-family: 'Courier New', Courier, monospace;
}

/* Checkbox in card header for mobile */
.card-header .checkbox-wrapper-31[b-tlxme7r24l] {
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.card-header .commande-id[b-tlxme7r24l] {
    flex-grow: 1;
}

@media (max-width: 992px) {
    .commande-card[b-tlxme7r24l] {
        width: 20vw;
    }
}

@media (max-width: 768px) {

    .commande-card[b-tlxme7r24l] {
        width: 80vw;
    }
}

@media (max-width: 640px) {
    .commande-card[b-tlxme7r24l] {
        margin-top: 0.75rem;
        width: 80vw
    }

    .command-card-wrapper .commande-card .card-header[b-tlxme7r24l] {
        color: #fff;
    }

    .command-card-wrapper .commande-card .card-body[b-tlxme7r24l] {
        color: #fff;
        font-size: small;
    }

    .light-theme .command-card-wrapper .commande-card .card-header[b-tlxme7r24l] {
        color: #000;
    }

    .light-theme .command-card-wrapper .commande-card .card-body[b-tlxme7r24l] {
        color: #000;
    }

    /* Réafficher le checkbox dans la card en mobile */
    .checkbox-wrapper-31[b-tlxme7r24l] {
        display: block;
    }

    /* Styles du + pour la checkbox */
    .checkbox-wrapper-31 .plus[b-tlxme7r24l] {
        fill: none;
        stroke: #fff;
        stroke-width: 2px;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: ease all 0.6s;
        -webkit-transition: ease all 0.6s;
        display: none;
    }

    .checkbox-wrapper-31 input[type=checkbox]:not(:checked) + svg .plus[b-tlxme7r24l] {
        display: block;
    }

    .checkbox-wrapper-31 input[type=checkbox]:checked + svg .plus[b-tlxme7r24l] {
        display: none;
    }

    .light-theme .checkbox-wrapper-31 .plus[b-tlxme7r24l] {
        stroke: #fff;
    }

    /* Light theme styles for checkbox in card */
    .light-theme .checkbox-wrapper-31 .background[b-tlxme7r24l] {
        fill: var(--text-secondary-light);
        border: none;
    }

    .light-theme .checkbox-wrapper-31 input[type=checkbox]:checked + svg .background[b-tlxme7r24l] {
        fill: var(--success-light);
    }

    .light-theme .checkbox-wrapper-31 .stroke[b-tlxme7r24l],
    .light-theme .checkbox-wrapper-31 .check[b-tlxme7r24l] {
        stroke: var(--surface-light);
    }

    .checkbox-wrapper-31:hover .check[b-tlxme7r24l] {
        stroke-dashoffset: none;
    }

    .checkbox-wrapper-31[b-tlxme7r24l] {
        position: relative;
        max-width: 20px;
        height: 20px;
    }

    .checkbox-wrapper-31 svg[b-tlxme7r24l] {
        width: 100%;
        height: 100%;
        min-width: 25px;
        min-height: 25px;
        max-width: 35px;
        max-height: 35px;
        display: block;
    }

    .checkbox-wrapper-31 .background[b-tlxme7r24l] {
        fill: #3c3c3c;
        border: .5px #fff;
        transition: ease all 0.6s;
        -webkit-transition: ease all 0.6s;
    }

    .checkbox-wrapper-31 .stroke[b-tlxme7r24l] {
        fill: none;
        stroke: #fff;
        stroke-miterlimit: 10;
        stroke-width: 2px;
        stroke-dashoffset: 100;
        stroke-dasharray: 100;
        transition: ease all 0.6s;
        -webkit-transition: ease all 0.6s;
    }

    .checkbox-wrapper-31 .check[b-tlxme7r24l] {
        fill: none;
        stroke: #fff;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 2px;
        stroke-dashoffset: 22;
        stroke-dasharray: 22;
        transition: ease all 0.6s;
        -webkit-transition: ease all 0.6s;
    }

    .checkbox-wrapper-31 input[type=checkbox][b-tlxme7r24l] {
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        margin: 0;
        opacity: 0;
        -appearance: none;
        -webkit-appearance: none;
    }

    .checkbox-wrapper-31 input[type=checkbox]:hover[b-tlxme7r24l] {
        cursor: pointer;
    }

    .checkbox-wrapper-31 input[type=checkbox]:checked+svg .background[b-tlxme7r24l] {
        fill: #10b981;
    }

    .checkbox-wrapper-31 input[type=checkbox]:checked+svg .stroke[b-tlxme7r24l] {
        stroke-dashoffset: 0;
    }

    .checkbox-wrapper-31 input[type=checkbox]:checked+svg .check[b-tlxme7r24l] {
        stroke-dashoffset: 0;
    }
}

svg[b-tlxme7r24l] {
    border: 1px solid gray;
    border-radius: 1000px;
}
/* /Components/CommandDetailItem.razor.rz.scp.css */
/* CSS for CommandDetailItem component */
.light-theme .detail-item[b-ta5ovuk9ne] {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
}

.light-theme .detail-label[b-ta5ovuk9ne] {
    color: #4b5563;
}

.light-theme .detail-value[b-ta5ovuk9ne] {
    color: #111827;
}
/* /Components/StatusBadge.razor.rz.scp.css */
/* CSS for StatusBadge component */
.status-badge[b-k2pw0i1fbx] {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    text-wrap: nowrap;
    text-align: center;
}


.status-progress[b-k2pw0i1fbx] {
    background: #075985;
    color: #e0f2fe;
    border: 1px solid #38bdf8;
}

.status-loaded[b-k2pw0i1fbx] {
    background: #3730a3;
    color: #e0e7ff;
    border: 1px solid #818cf8;
}

.status-delivered[b-k2pw0i1fbx] {
    background: #166534;
    color: #dcfce7;
    border: 1px solid #4ade80;
}

.status-cancelled[b-k2pw0i1fbx] {
    background: #991b1b;
    color: #fee2e2;
    border: 1px solid #f87171;
}

.status-default[b-k2pw0i1fbx] {
    background: #7D8082;
    color: #f3f4f6;
    border: 1px solid #d1d5db;
}



.light-theme .status-badge[b-k2pw0i1fbx] {
    font-weight: 700;
}

.light-theme .status-progress[b-k2pw0i1fbx] {
    background: var(--surface-light);
    color: var(--primary-light);
    border: 1px solid var(--primary-light-hover);
}

.light-theme .status-loaded[b-k2pw0i1fbx] {
    background: #a4acf5;
    color: #3730a3;
    border: 1px solid #3730a3;
}

.light-theme .status-delivered[b-k2pw0i1fbx] {
    background: var(--success-light);
    color: var(--text-primary-light);
    border: 1px solid var(--text-primary-light);
}

.light-theme .status-cancelled[b-k2pw0i1fbx] {
    background: var(--error-light);
    color: var(--text-primary-light);
    border: 1px solid var(--error-light);
}

.light-theme .status-default[b-k2pw0i1fbx] {
    background: var(--surface-light);
    color: var(--text-secondary-light);
    border: 1px solid var(--border-light);
}
/* /Layout/MainLayout.razor.rz.scp.css */

.page[b-0bzac4nlx4] {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100vw;
    background-image: radial-gradient(circle at 50% 100%, rgba(255, 69, 0, 0.6) 0%, transparent 60%), radial-gradient(circle at 50% 100%, rgba(255, 140, 0, 0.4) 0%, transparent 70%), radial-gradient(circle at 50% 100%, rgba(255, 215, 0, 0.3) 0%, transparent 80%)
}

.light-theme .page[b-0bzac4nlx4] {
    background-image:radial-gradient(circle at 50% 100%, rgba(253, 224, 71, 0.4) 0%, transparent 60%), radial-gradient(circle at 50% 100%, rgba(251, 191, 36, 0.4) 0%, transparent 70%), radial-gradient(circle at 50% 100%, rgba(244, 114, 182, 0.5) 0%, transparent 80%)
}



main[b-0bzac4nlx4] {
    flex: 1;
    display: flex;
    flex-direction: row;
    max-width: 100vw;
    overflow: hidden;
}

.content[b-0bzac4nlx4] {
    flex: 1;
    min-height: 100vh;
    transition: all 0.3s ease-in-out;
    padding-left: 0;
}

    .content.expanded[b-0bzac4nlx4] {
        flex-grow: 1;
        transition: width 0.3s ease-in-out;
    }

.sidebar[b-0bzac4nlx4] {
    width: 15vw;
    height: 100vh;
    position: sticky;
    top: 0;
    transition: width .3s;
}

    .sidebar.collapsed[b-0bzac4nlx4] {
        width: 0;
        transition: width .3s;
    }



@media (max-width: 640px) {
    page[b-0bzac4nlx4] {
        display: flex;
        flex-wrap: nowrap;
        
        padding: 0px;
        overflow: hidden;
    }
    

    .sidebar[b-0bzac4nlx4] {
        width: 100vw;
        height: 100vh;
        position: sticky;
        top: 0;
        transition: height .3s;
    }

        .sidebar.collapsed[b-0bzac4nlx4] {
            height: 5vh;
            transition: height .3s;
        }

    .content[b-0bzac4nlx4] {
        max-height: 95vh;
    }


}

@media (max-width: 640px) {
        

        .content-expanded[b-0bzac4nlx4] {
            margin-left: 200px;
            width: 100%;
        }
    }

@media (min-width: 641px) {
    .page[b-0bzac4nlx4] {
        flex-direction: row;
        overflow: hidden;
    }

    .sidebar[b-0bzac4nlx4] {
        
        height: 100vh;
        position: sticky;
        top: 0;
        transition: width .3s;
    }

        .sidebar.collapsed[b-0bzac4nlx4] {
            width: 0;
            transition: width .3s;
        }

    .top-row[b-0bzac4nlx4] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-0bzac4nlx4]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-0bzac4nlx4], article[b-0bzac4nlx4] {
        padding-left: 1rem !important;
        padding-right: 1.5rem !important;
    }


}


/* /Layout/NavMenu.razor.rz.scp.css */
/* /Pages/Commandes.razor.rz.scp.css */
/* ============================================
   CONTAINER & GLOBAL (inchangé)
   ============================================ */
.table-container[b-v9vhtk8elv] {
    border-radius: 12px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    border: 1px solid #7D8082;
    backdrop-filter: blur(18px);
    margin-left: 2%;
    background-color: hsl(240 10% 5% / 40%);
    max-height: 100vh;
    min-height: 100vh;
    height: 100vh;
}

tr[b-v9vhtk8elv] {
    cursor: pointer;
}


    tr:hover[b-v9vhtk8elv] {
        background-color: #CCCCA72A;
    }

.font-consolas[b-v9vhtk8elv] {
    font-family: Consolas !important;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    color: #d6d6d6db;
}

.table-header-main[b-v9vhtk8elv] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    width: 95%;
    color: #fff;
    max-height: 5%;
    padding: 2rem;
}

    .table-header-main h1[b-v9vhtk8elv] {
        font-size: 1.5rem;
        opacity: 0;
        transform: translateX(-100px);
        animation: fadeInRight-b-v9vhtk8elv .4s ease-out forwards;
    }

    .table-header-main span[b-v9vhtk8elv] {
        opacity: 0;
        transform: scale(.5);
        animation: fadeInOP-b-v9vhtk8elv .4s ease-out forwards;
    }

    .table-header-main button[b-v9vhtk8elv] {
        opacity: 0;
        transform: translateX(100px);
        animation: fadeInLeft-b-v9vhtk8elv .4s ease-out forwards;
    }

@keyframes fadeInLeft-b-v9vhtk8elv {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight-b-v9vhtk8elv {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInOP-b-v9vhtk8elv {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   TABLE DESIGN (inchangé, sauf min-width)
   ============================================ */
.custom-table[b-v9vhtk8elv] {
    width: 100%;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: overlay;
    border-radius: 12px;
    table-layout: fixed;
    /* ✅ Dynamic viewport-based sizing */
}

.light-theme .custom-table[b-v9vhtk8elv] {
    border-radius: 50px 0 0 50px;
    background-color: #f2f0f0;
}

.custom-table thead[b-v9vhtk8elv] {
    position: sticky;
    z-index: 9;
    margin-top: 50px;
}

    .custom-table thead[b-v9vhtk8elv]::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(to bottom, rgba(0,0,0,0.2), transparent);
        pointer-events: none;
        margin-top: 50px;
    }

.custom-table th[b-v9vhtk8elv] {
    background-color: hsl(0 0% 98% / 40%);
    padding: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #f3f4f6;
    border-bottom: 2px solid #7D8082;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

/*    .custom-table th:hover span {
        transform: scale(1.1) translateX(6px);
        transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
        display: inline-block;
    }
*/
.custom-table td[b-v9vhtk8elv] {
    padding: 1rem;
    border-bottom: 1px solid #7D8082;
    font-size: 0.75rem;
    color: #f3f4f6;
    white-space: normal;
}

    /* ✅ Dynamic viewport-based column widths with max constraints */
    .custom-table th:nth-child(1)[b-v9vhtk8elv], .custom-table td:nth-child(1)[b-v9vhtk8elv] {
        width: 2vw;
        min-width: 30px;
        max-width: 50px;
    }

    .custom-table th:nth-child(2)[b-v9vhtk8elv], .custom-table td:nth-child(2)[b-v9vhtk8elv] {
        width: 12vw;
        min-width: 60px;
        max-width: 75px;
    }

    .custom-table th:nth-child(3)[b-v9vhtk8elv], .custom-table td:nth-child(3)[b-v9vhtk8elv] {
        width: 10vw;
        min-width: 65px;
        max-width: 100px;
    }

    .custom-table th:nth-child(4)[b-v9vhtk8elv], .custom-table td:nth-child(4)[b-v9vhtk8elv] {
        width: 8vw;
        min-width: 65px;
        max-width: 80px;
    }

    .custom-table th:nth-child(5)[b-v9vhtk8elv], .custom-table td:nth-child(5)[b-v9vhtk8elv] {
        width: 8vw;
        min-width: 70px;
        max-width: 80px;
    }

    .custom-table th:nth-child(6)[b-v9vhtk8elv], .custom-table td:nth-child(6)[b-v9vhtk8elv] {
        width: 8vw;
        min-width: 70px;
        max-width: 80px;
    }

    .custom-table th:nth-child(7)[b-v9vhtk8elv], .custom-table td:nth-child(7)[b-v9vhtk8elv] {
        width: 6vw;
        min-width: 60px;
        max-width: 120px;
    }

    .custom-table th:nth-child(8)[b-v9vhtk8elv], .custom-table td:nth-child(8)[b-v9vhtk8elv] {
        width: 6vw;
        min-width: 70px;
        max-width: 80px;
    }

    .custom-table th:nth-child(9)[b-v9vhtk8elv], .custom-table td:nth-child(9)[b-v9vhtk8elv] {
        width: 6vw;
        min-width: 60px;
        max-width: 120px;
    }

    .custom-table th:nth-child(10)[b-v9vhtk8elv], .custom-table td:nth-child(10)[b-v9vhtk8elv] {
        width: 6vw;
        min-width: 35px;
        max-width: 40px;
    }

    .custom-table th:nth-child(11)[b-v9vhtk8elv], .custom-table td:nth-child(11)[b-v9vhtk8elv] {
        width: 6vw;
        min-width: 60px;
        max-width: 70px;
    }

    .custom-table th:nth-child(12)[b-v9vhtk8elv], .custom-table td:nth-child(12)[b-v9vhtk8elv] {
        width: 6vw;
        min-width: 60px;
        max-width: 80px;
    }

    .custom-table th:nth-child(13)[b-v9vhtk8elv], .custom-table td:nth-child(13)[b-v9vhtk8elv] {
        width: 5vw;
        min-width: 50px;
        max-width: 100px;
    }

    .custom-table th:nth-child(14)[b-v9vhtk8elv], .custom-table td:nth-child(14)[b-v9vhtk8elv] {
        width: 5vw;
        min-width: 50px;
        max-width: 100px;
    }

/* ============================================
   HEADER CONTENT & SEARCH (✅ VERSION RESPONSIVE AMÉLIORÉE)
   ============================================ */
.header-content[b-v9vhtk8elv] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: fit-content;

}

.search-icon[b-v9vhtk8elv] {
    font-size: 0.7rem;
    opacity: 0.4;
    pointer-events: none; /* ✅ Empêche le clic sur l'icône */
}

.filter-indicator[b-v9vhtk8elv] {
    width: 8px;
    height: 8px;
    background-color: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
    flex-shrink: 0;
}

/* ✅ SEARCH BOX REWORKED - Positionnement robuste */
.search-box-wrapper[b-v9vhtk8elv] {
    position: relative;
    width: 100%;
    min-width: 120px; /* ✅ Largeur minimale pour éviter les inputs trop étroits */
}

.search-box[b-v9vhtk8elv] {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    z-index: 10;
    margin-top: 4px;
    animation: fadeInDown-b-v9vhtk8elv 0.2s ease-out;
    width: auto;
    max-width: 280px; /* ✅ Augmenté pour les écrans larges */
    min-width: 160px; /* ✅ Largeur minimale */
}

/* ✅ éSITIONING : Décalage vers la gauche si pas assez de place à droite */
th.col-optional .search-box[b-v9vhtk8elv] {
    left: auto;
    right: 0;
    margin-right: 2rem;
}

.search-input[b-v9vhtk8elv] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #4b5563;
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
    background-color: #3c3c3c;
    color: #f3f4f6;
    box-sizing: border-box; /* ✅ Crucial pour le respect des dimensions */
    transition: border-color 0.2s ease;
}

    .search-input:focus[b-v9vhtk8elv] {
        border-color: #60a5fa;
        box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3);
    }

    .search-input[b-v9vhtk8elv]::placeholder {
        color: #9ca3af;
        opacity: 0.7;
    }

.clear-icon[b-v9vhtk8elv] {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #9ca3af;
    pointer-events: auto;
}

    .clear-icon:hover[b-v9vhtk8elv] {
        color: #f87171;
    }

/* ✅ NOUVELLE CLASSE POUR TH ACTIF */
th.search-active[b-v9vhtk8elv] {
    z-index: 12; /* ✅ Au-dessus du search-box (z-index: 10) */
    position: relative;
}

@keyframes fadeInDown-b-v9vhtk8elv {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   UTILS (inchangé)
   ============================================ */
.ref-text[b-v9vhtk8elv] {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    color: #9ca3af;
}

/* ============================================
   PAGINATION (modifié pour desktop)
   ============================================ */
.pagination-container[b-v9vhtk8elv] {
    display: flex;
    position: relative;
    align-self: center;
    width: 100%;
    padding-bottom: 1rem;
    background: black;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #7D8082;
}

.btn-page[b-v9vhtk8elv] {
    padding: 8px 10px;
    background-color: #1f2937;
    border: 1px solid #4b5563;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #f3f4f6;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-page:hover:not(:disabled)[b-v9vhtk8elv] {
        background-color: #7D8082;
        border-color: #60a5fa;
        color: #60a5fa;
    }

    .btn-page:disabled[b-v9vhtk8elv] {
        opacity: 0.5;
        cursor: not-allowed;
    }

.page-info[b-v9vhtk8elv] {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f3f4f6;
}


.document-chips[b-v9vhtk8elv] {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.document-chip[b-v9vhtk8elv] {
    background: #374151;
    color: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    border: 1px solid #4b5563;
    white-space: nowrap;
}

    .document-chip.more[b-v9vhtk8elv] {
        background: #6b7280;
        color: #f9fafb;
        font-weight: 600;
        padding: 2px 7px;
        font-size: 0.75rem;
    }

    .document-chip:hover[b-v9vhtk8elv] {
        background: #4b5563;
        cursor: default;
    }

/* ============================================
   BUTTONS (inchangé)
   ============================================ */
.button[b-v9vhtk8elv] {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background: none;
    color: #fff;
    cursor: pointer;
    position: relative;
    padding: 8px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    transition: all .15s ease;
    width: auto;
}

    .button[b-v9vhtk8elv]::before,
    .button[b-v9vhtk8elv]::after {
        content: '';
        display: block;
        position: absolute;
        right: 0;
        left: 0;
        height: calc(50% - 5px);
        border: 1px solid #7D8082;
        transition: all .15s ease;
    }

    .button[b-v9vhtk8elv]::before {
        top: 0;
        border-bottom-width: 0;
    }

    .button[b-v9vhtk8elv]::after {
        bottom: 0;
        border-top-width: 0;
    }

    .button:active[b-v9vhtk8elv],
    .button:focus[b-v9vhtk8elv] {
        outline: none;
    }

        .button:active[b-v9vhtk8elv]::before,
        .button:active[b-v9vhtk8elv]::after {
            right: 3px;
            left: 3px;
        }

        .button:active[b-v9vhtk8elv]::before {
            top: 3px;
        }

        .button:active[b-v9vhtk8elv]::after {
            bottom: 3px;
        }

.button_lg[b-v9vhtk8elv] {
    position: relative;
    display: block;
    padding: 10px 20px;
    color: #fff;
    background-color: #F1895C;
    overflow: hidden;
    box-shadow: inset 0px 0px 0px 1px transparent;
    border-radius: 6px;
}

    .button_lg[b-v9vhtk8elv]::before {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 2px;
        height: 2px;
        background-color: #F1895C;
    }

    .button_lg[b-v9vhtk8elv]::after {
        content: '';
        display: block;
        position: absolute;
        right: 0;
        bottom: 0;
        width: 4px;
        height: 4px;
        background-color: #F1895C;
        transition: all .2s ease;
    }

.button_sl[b-v9vhtk8elv] {
    display: block;
    position: absolute;
    top: 0;
    bottom: -1px;
    left: -8px;
    width: 0;
    background-color: #F88D7B;
    transform: skew(-15deg);
    transition: all .2s ease;
}

.button_text[b-v9vhtk8elv] {
    position: relative;
}

.button:hover[b-v9vhtk8elv] {
    color: #0f1923;
}

    .button:hover .button_sl[b-v9vhtk8elv] {
        width: calc(100% + 15px);
        background-color: #F88D7B;
    }

    .button:hover .button_lg[b-v9vhtk8elv]::after {
        background-color: #F1895C;
    }

.export-csv-btn .button_lg_csv[b-v9vhtk8elv] {
    background-color: #1D6F42;
}

.export-csv-btn:hover .button_sl_csv[b-v9vhtk8elv] {
    width: calc(100% + 15px);
    background-color: #1b874c;
}

.export-csv-btn:hover .button_lg_csv[b-v9vhtk8elv]::after {
    background-color: #1b874c;
}

.button_lg_csv[b-v9vhtk8elv] {
    position: relative;
    display: block;
    padding: 10px 20px;
    color: #fff;
    background-color: #1D6F42;
    overflow: hidden;
    box-shadow: inset 0px 0px 0px 1px transparent;
    border-radius: 6px;
}

    .button_lg_csv[b-v9vhtk8elv]::before {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 2px;
        height: 2px;
        background-color: #1D6F42;
    }

    .button_lg_csv[b-v9vhtk8elv]::after {
        content: '';
        display: block;
        position: absolute;
        right: 0;
        bottom: 0;
        width: 4px;
        height: 4px;
        background-color: #1D6F42;
        transition: all .2s ease;
    }

.button_sl_csv[b-v9vhtk8elv] {
    display: block;
    position: absolute;
    top: 0;
    bottom: -1px;
    left: -8px;
    width: 0;
    background-color: #1b874c;
    transform: skew(-15deg);
    transition: all .2s ease;
}

/* ============================================
   CHECKBOXES (inchangé)
   ============================================ */
.checkbox-wrapper-31:hover .check[b-v9vhtk8elv] {
    stroke-dashoffset: none;
}

.checkbox-wrapper-31[b-v9vhtk8elv] {
    position: relative;
    max-width: 20px;
    height: 20px;
}

    .checkbox-wrapper-31 svg[b-v9vhtk8elv] {
        width: auto;
        height: auto;
        min-width: 25px;
        min-height: 25px;
        max-width: 35px;
        max-height: 35px;
        display: block;
    }

    .checkbox-wrapper-31 .background[b-v9vhtk8elv] {
        fill: #3c3c3c;
        border: .5px #fff;
        transition: ease all 0.6s;
        -webkit-transition: ease all 0.6s;
    }

    .checkbox-wrapper-31 .stroke[b-v9vhtk8elv] {
        fill: none;
        stroke: #fff;
        stroke-miterlimit: 10;
        stroke-width: 2px;
        stroke-dashoffset: 100;
        stroke-dasharray: 100;
        transition: ease all 0.6s;
        -webkit-transition: ease all 0.6s;
    }

    .checkbox-wrapper-31 .check[b-v9vhtk8elv] {
        fill: none;
        stroke: #fff;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 2px;
        stroke-dashoffset: 22;
        stroke-dasharray: 22;
        transition: ease all 0.6s;
        -webkit-transition: ease all 0.6s;
    }

    .checkbox-wrapper-31 input[type=checkbox][b-v9vhtk8elv] {
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        margin: 0;
        opacity: 0;
        -appearance: none;
        -webkit-appearance: none;
    }

        .checkbox-wrapper-31 input[type=checkbox]:hover[b-v9vhtk8elv] {
            cursor: pointer;
        }

        .checkbox-wrapper-31 input[type=checkbox]:checked + svg .background[b-v9vhtk8elv] {
            fill: #10b981;
        }

        .checkbox-wrapper-31 input[type=checkbox]:checked + svg .stroke[b-v9vhtk8elv] {
            stroke-dashoffset: 0;
        }

        .checkbox-wrapper-31 input[type=checkbox]:checked + svg .check[b-v9vhtk8elv] {
            stroke-dashoffset: 0;
        }

        /* Plus sign for unchecked state */
        .checkbox-wrapper-31 .plus[b-v9vhtk8elv] {
            fill: none;
            stroke: #fff;
            stroke-width: 2px;
            stroke-linecap: round;
            stroke-linejoin: round;
            transition: ease all 0.6s;
            -webkit-transition: ease all 0.6s;
        }

        .checkbox-wrapper-31 input[type=checkbox]:not(:checked) + svg .plus[b-v9vhtk8elv] {
            display: block;
        }

        .checkbox-wrapper-31 input[type=checkbox]:checked + svg .plus[b-v9vhtk8elv] {
            display: none;
        }

/* ============================================
   LIGHT THEME (✅ Fix : syntaxe corrigée)
   ============================================ */
.light-theme .table-container[b-v9vhtk8elv] {
    background-color: transparent;
    border: none;
}

.light-theme .table-header-main[b-v9vhtk8elv] {
    color: var(--text-primary-light);
}

.light-theme .custom-table th[b-v9vhtk8elv] {
    color: var(--text-primary-light);
    border-bottom: none;
}

    .light-theme .custom-table th:hover[b-v9vhtk8elv] {
        background-color: #e9ecef;
    }

        .light-theme .custom-table th:hover span[b-v9vhtk8elv] {
            color: var(--primary-light);
        }

.light-theme .custom-table td[b-v9vhtk8elv] {
    color: var(--text-primary-light);
    border-bottom: 1px solid var(--border-light);
}

.light-theme .custom-table tr:hover[b-v9vhtk8elv] {
    background-color: #e9ecef;
}

.light-theme .search-input[b-v9vhtk8elv] {
    background-color: var(--surface-light);
    border: 1px solid var(--border-light);
    color: var(--text-primary-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

    .light-theme .search-input[b-v9vhtk8elv]::placeholder {
        color: var(--text-secondary-light);
    }

    .light-theme .search-input:focus[b-v9vhtk8elv] {
        border-color: var(--primary-light);
        box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    }

.light-theme .ref-text[b-v9vhtk8elv] {
    color: var(--text-secondary-light);
}

.light-theme .btn-page[b-v9vhtk8elv] {
    background-color: var(--surface-light);
    border: 1px solid var(--border-light);
    color: var(--text-primary-light);
}

    .light-theme .btn-page:hover:not(:disabled)[b-v9vhtk8elv] {
        background-color: #e9ecef;
        border-color: var(--primary-light);
        color: var(--primary-light);
    }

.light-theme .page-info[b-v9vhtk8elv] {
    color: var(--text-primary-light);
}

.light-theme .checkbox-wrapper-31 .background[b-v9vhtk8elv] {
    fill: var(--text-secondary-light);
    border: none;
}

.light-theme .checkbox-wrapper-31 input[type=checkbox]:checked + svg .background[b-v9vhtk8elv] {
    fill: var(--success-light);
}

.light-theme .checkbox-wrapper-31 .stroke[b-v9vhtk8elv],
.light-theme .checkbox-wrapper-31 .check[b-v9vhtk8elv] {
    stroke: var(--surface-light);
}

.light-theme .checkbox-wrapper-31 .plus[b-v9vhtk8elv] {
    stroke: #fff;
}

/* Light theme for document chips */
.light-theme .document-chip[b-v9vhtk8elv] {
    background: var(--surface-light);
    color: var(--text-primary-light);
    border: 1px solid var(--border-light);
}

.light-theme .document-chip.more[b-v9vhtk8elv] {
    background: var(--surface-light);
    color: var(--text-secondary-light);
}

.light-theme .document-chip:hover[b-v9vhtk8elv] {
    background: var(--surface-light);
}

.light-theme .button[b-v9vhtk8elv] {
    color: var(--text-primary-light);
    border: 1px solid var(--border-light);
}

    .light-theme .button:hover[b-v9vhtk8elv] {
        color: var(--primary-light);
    }

.light-theme .button_lg[b-v9vhtk8elv] {
    background-color: #F1895C;
    color: var(--surface-light);
}

    .light-theme .button_lg:hover[b-v9vhtk8elv] {
        background-color: #F88D7B;
    }

.light-theme .button_sl[b-v9vhtk8elv] {
    background-color: #F88D7B;
}

/* ============================================
   MEDIA QUERIES (✅ Améliorées pour éviter les conflits)
   ============================================ */
@media (max-width: 1200px) {
    .custom-table[b-v9vhtk8elv] {
        margin-top: 50px;
    }

        .custom-table th[b-v9vhtk8elv], .custom-table td[b-v9vhtk8elv] {
            padding: 0.7rem;
            font-size: 0.8rem;
        }

    .search-input[b-v9vhtk8elv] {
        font-size: 0.8rem;
    }
}

@media (max-width: 992px) {
    .custom-table th[b-v9vhtk8elv], .custom-table td[b-v9vhtk8elv] {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .custom-table th:nth-child(2)[b-v9vhtk8elv], .custom-table td:nth-child(2)[b-v9vhtk8elv] {
        width: 15vw;
        min-width: 120px;
        max-width: 220px;
    }

    .custom-table th:nth-child(3)[b-v9vhtk8elv], .custom-table td:nth-child(3)[b-v9vhtk8elv] {
        width: 12vw;
        min-width: 100px;
        max-width: 180px;
    }

    .custom-table th.col-optional[b-v9vhtk8elv], .custom-table td.col-optional[b-v9vhtk8elv] {
        display: none;
    }

    .table-container[b-v9vhtk8elv] {
        margin-left: 1%;
        padding: 1.5rem;
    }

    .table-header-main[b-v9vhtk8elv] {
        flex-direction: column;
        gap: 1rem;
    }

    .search-box[b-v9vhtk8elv] {
        max-width: 180px;
    }

    /* ✅ NOUVELLES RÈGLES POUR MOBILE LANDSCAPE */
    .search-box-wrapper[b-v9vhtk8elv] {
        width: 100%;
    }

    th.search-active .search-box[b-v9vhtk8elv] {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1f2937;
        padding: 8px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .search-input[b-v9vhtk8elv] {
        background-color: #374151;
        border: 1px solid #4b5563;
    }
}

@media (max-width: 768px) {
    .table-container[b-v9vhtk8elv] {
        margin: 0;
        padding: 1rem;
        border-radius: 0;
        border: none;
        min-width: 100vw;
    }

    .custom-table[b-v9vhtk8elv] {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        margin-top: 50px;
    }

    .custom-table th[b-v9vhtk8elv], .custom-table td[b-v9vhtk8elv] {
        height: 60px;
    }

    .custom-table th:nth-child(1)[b-v9vhtk8elv], .custom-table td:nth-child(1)[b-v9vhtk8elv] {
        width: 40px;
        min-width: 40px;
        max-width: 50px;
    }

    .custom-table th:nth-child(2)[b-v9vhtk8elv], .custom-table td:nth-child(2)[b-v9vhtk8elv] {
        width: 20vw;
        min-width: 120px;
        max-width: 200px;
    }

    .custom-table th:nth-child(3)[b-v9vhtk8elv], .custom-table td:nth-child(3)[b-v9vhtk8elv] {
        width: 15vw;
        min-width: 100px;
        max-width: 160px;
    }

    .custom-table th:nth-child(4)[b-v9vhtk8elv], .custom-table td:nth-child(4)[b-v9vhtk8elv] {
        width: 12vw;
        min-width: 90px;
        max-width: 140px;
    }

    .custom-table td:nth-child(13) .button .button_text[b-v9vhtk8elv],
    .custom-table td:nth-child(14) .button .button_text[b-v9vhtk8elv] {
        display: none;
    }

    .custom-table td:nth-child(13) .button[b-v9vhtk8elv],
    .custom-table td:nth-child(14) .button[b-v9vhtk8elv] {
        padding: 6px;
    }

    .table-header-main[b-v9vhtk8elv] {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .pagination-container[b-v9vhtk8elv] {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* ✅ SEARCH BOX PLEINE LARGEUR SUR MOBILE */
    .search-box[b-v9vhtk8elv] {
        position: static;
        max-width: 100%;
        width: 100%;
        margin-top: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .search-input[b-v9vhtk8elv] {
        width: 100%;
        padding: 10px 12px;
        font-size: 0.9rem;
        background-color: #2d3748;
        border: 1px solid #4a5568;
    }

    /* ✅ Affiche uniquement le search-box actif */
    th.search-active .search-box[b-v9vhtk8elv] {
        position: relative;
        display: block !important;
        margin-top: 8px;
    }

    /* ✅ Désactive le search-box pour les colonnes optionnelles */
    .col-optional .search-box[b-v9vhtk8elv],
    .col-optional .search-box-wrapper[b-v9vhtk8elv] {
        display: none !important;
    }

    .pagination-container[b-v9vhtk8elv] {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-page[b-v9vhtk8elv] {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .table-container[b-v9vhtk8elv] {
        width: 100%;
        padding: 0;
        margin: 0;
        padding-top: 10px;
        border: none;
        background: transparent;
        border-radius: 0;
    }

    .text-muted[b-v9vhtk8elv] {
        display: none;
    }

    .checkbox-wrapper-31[b-v9vhtk8elv] {
        display: none;
    }

    .table-header-main[b-v9vhtk8elv] {
        flex-direction: column;
    }

    .custom-table[b-v9vhtk8elv] {
        background-color: hsl(240 10% 5% / 40%);
        margin-bottom: 10px;
        max-width: 100vw;
        min-height: 80.5vh;
        display: block;
        overflow: scroll;
    }

    .pagination-container[b-v9vhtk8elv] {
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .search-input[b-v9vhtk8elv] {
        width: 100%;
        box-sizing: border-box;
    }

    /* ✅ TRÈS PETITS ÉCRANS */
    .header-content[b-v9vhtk8elv] {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .search-icon[b-v9vhtk8elv] {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
    }
}

.filter-badges[b-v9vhtk8elv] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    padding-left: 1rem;
}

.clear-all-button[b-v9vhtk8elv] {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    background: transparent;
}

.filter-badge[b-v9vhtk8elv] {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.filter-badge-remove[b-v9vhtk8elv] {
    cursor: pointer;
    opacity: 0.7;
    padding: 0 4px;
    border-radius: 2px;
}

    .filter-badge-remove:hover[b-v9vhtk8elv] {
        opacity: 1;
    }

@media (prefers-color-scheme: light) {
    .clear-all-button[b-v9vhtk8elv] {
        color: #374151;
        border: 1px solid #d1d5db;
        background: #f3f4f6;
    }

        .clear-all-button:hover[b-v9vhtk8elv] {
            background: #e5e7eb;
        }

    .filter-badge[b-v9vhtk8elv] {
        background: #e5e7eb;
        color: #374151;
        border: 1px solid #d1d5db;
    }

    .filter-badge-remove:hover[b-v9vhtk8elv] {
        background: rgba(0,0,0,0.05);
    }
}

@media (prefers-color-scheme: dark) {
    .clear-all-button[b-v9vhtk8elv] {
        color: #f9fafb;
        border: 1px solid #6b7280;
        background: #374151;
    }

        .clear-all-button:hover[b-v9vhtk8elv] {
            background: #4b5563;
        }

    .filter-badge[b-v9vhtk8elv] {
        background: #4b5563;
        color: #f9fafb;
        border: 1px solid #6b7280;
    }

    .filter-badge-remove:hover[b-v9vhtk8elv] {
        background: rgba(255,255,255,0.1);
    }
}

/* ============================================
   MOBILE CARDS STYLES
   ============================================ */
.mobile-cards-container[b-v9vhtk8elv] {
    display: none;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding-left: 0.75rem;
}

.command-card-wrapper[b-v9vhtk8elv] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    margin-bottom: 0.75rem;
}

.command-card-wrapper:hover .commande-card[b-v9vhtk8elv] {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Override CommandCard styles for mobile */
.command-card-wrapper .commande-card[b-v9vhtk8elv] {
    margin-top: 0.75rem;
    width: 100%;
    background-color: #292b2b6b;
    backdrop-filter: blur(10px);
}

.command-card-wrapper .commande-card .card-header[b-v9vhtk8elv] {
    color: #fff;
}

.command-card-wrapper .commande-card .card-body[b-v9vhtk8elv] {
    color: #fff;
    font-size: small;
}

.light-theme .command-card-wrapper .commande-card .card-header[b-v9vhtk8elv] {
    color: #000;
}

.light-theme .command-card-wrapper .commande-card .card-body[b-v9vhtk8elv] {
    color: #000;
}

.command-card-wrapper .commande-card:hover[b-v9vhtk8elv] {
    background-color: #CCCCA72A;
}

.light-theme .command-card-wrapper .commande-card[b-v9vhtk8elv] {
    background-color: #f2f0f0;
}

.light-theme .command-card-wrapper .commande-card:hover[b-v9vhtk8elv] {
    background-color: #e8e6e6;
}

.command-card-wrapper .checkbox-wrapper-31[b-v9vhtk8elv] {
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.desktop-container[b-v9vhtk8elv] {
    display: block;
}



.desktop-table-container[b-v9vhtk8elv] {
    display: block;
}

.mobile-container[b-v9vhtk8elv] {
    display: none;
    width: 100%;
}

.light-theme .mobile-container[b-v9vhtk8elv] {
    background-color: transparent;
}

.mobile-header[b-v9vhtk8elv] {
    display: none;
    padding: 1rem;
    border-bottom: 1px solid #7D8082;
}

.mobile-header[b-v9vhtk8elv] {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #7D8082;
}

.mobile-search-container[b-v9vhtk8elv] {
    position: relative;
    width: 82%;
}

.mobile-search-input[b-v9vhtk8elv] {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #4b5563;
    border-radius: 8px;
    background-color: #3c3c3c;
    color: #f3f4f6;
    font-size: 0.9rem;
    box-sizing: border-box;
    margin-left: 1rem;
}

.mobile-search-input:focus[b-v9vhtk8elv] {
    border-color: #60a5fa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3);
}

.mobile-search-input[b-v9vhtk8elv]::placeholder {
    color: #9ca3af;
}

.mobile-search-icon[b-v9vhtk8elv] {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0.7;
    pointer-events: none;
    margin-left: 1rem;
}

.mobile-header-actions[b-v9vhtk8elv] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-select-all[b-v9vhtk8elv] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-actions[b-v9vhtk8elv] {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
}

.select-all-text[b-v9vhtk8elv] {
    color: #f3f4f6;
    font-size: 0.9rem;
    font-weight: 500;
}

.light-theme .mobile-header[b-v9vhtk8elv] {
    border-bottom-color: var(--border-light);
    background-color: var(--surface-light);
}

.light-theme .mobile-search-input[b-v9vhtk8elv] {
    background-color: var(--surface-light);
    border: 1px solid var(--border-light);
    color: var(--text-primary-light);
}

.light-theme .mobile-search-input[b-v9vhtk8elv]::placeholder {
    color: var(--text-secondary-light);
}

.light-theme .mobile-search-input:focus[b-v9vhtk8elv] {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.light-theme .mobile-actions[b-v9vhtk8elv] {
    justify-content: flex-start;
}

.light-theme .select-all-text[b-v9vhtk8elv] {
    color: var(--text-primary-light);
}

/* Light theme for mobile cards */
.light-theme .command-card[b-v9vhtk8elv] {
    background-color: var(--surface-light);
    border: 1px solid var(--border-light);
}

.light-theme .card-reference[b-v9vhtk8elv] {
    color: var(--text-secondary-light);
}

.light-theme .card-label[b-v9vhtk8elv],
.light-theme .metric-label[b-v9vhtk8elv],
.light-theme .documents-label[b-v9vhtk8elv] {
    color: var(--text-secondary-light);
}

.light-theme .card-value[b-v9vhtk8elv],
.light-theme .metric-value[b-v9vhtk8elv] {
    color: var(--text-primary-light);
}

.light-theme .command-card:hover[b-v9vhtk8elv] {
    background-color: #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.light-theme .card-metrics[b-v9vhtk8elv] {
    border-top-color: var(--border-light);
}

.light-theme .card-documents[b-v9vhtk8elv] {
    border-top-color: var(--border-light);
}

.light-theme .card-header[b-v9vhtk8elv] {
    border-bottom-color: var(--border-light);
}

/* Responsive adjustments for mobile cards */
@media (max-width: 768px) {
    .desktop-container[b-v9vhtk8elv] {
        display: none;
    }
    
    .mobile-container[b-v9vhtk8elv] {
        display: flex;
        flex-direction: column;
        position: relative;
        height: 100vh;
        /* overflow: hidden; Retiré pour permettre sticky header */
    }
    
    .mobile-header[b-v9vhtk8elv] {
        display: flex;
        flex-direction: column;
        position: sticky;
        top: 0;
        z-index: 100;
        width: 100%;
        background-color: hsl(240 10% 5% / 40%);
        backdrop-filter: blur(18px);
        padding: 1rem;
        border-bottom: 1px solid #7D8082;
        flex-shrink: 0; /* ✅ Empêche le header de se comprimer */
    }
    
    .mobile-cards-container[b-v9vhtk8elv] {
        display: block;
        flex: 1;
        min-height: 0; /* ✅ Permet au flex item de se comprimer et de scroller */
        overflow-y: auto; /* ✅ Permet le scroll interne */
        padding: 0 0.75rem;
        margin: 0;
        gap: 1rem;
        margin-bottom: 4rem;
    }
    
    /* Effet cascade scale + blur pour les cartes en mobile */
    @keyframes cascadeIn-b-v9vhtk8elv {
        from {
            transform: scale(0.9);
            filter: blur(2px);
            opacity: 0;
        }
        to {
            transform: scale(1);
            filter: blur(0);
            opacity: 1;
        }
    }
    
    .mobile-cards-container .command-card-wrapper .commande-card[b-v9vhtk8elv] {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(2px);
    }
    
    .mobile-cards-container .command-card-wrapper .commande-card.cascade-in[b-v9vhtk8elv] {
        animation: cascadeIn-b-v9vhtk8elv 0.5s ease-out forwards !important;
    }
    
    .mobile-cards-container .command-card-wrapper:nth-child(1) .commande-card[b-v9vhtk8elv] {
        animation-delay: 0.1s !important;
    }
    
    .mobile-cards-container .command-card-wrapper:nth-child(2) .commande-card[b-v9vhtk8elv] {
        animation-delay: 0.2s !important;
    }
    
    .mobile-cards-container .command-card-wrapper:nth-child(3) .commande-card[b-v9vhtk8elv] {
        animation-delay: 0.3s !important;
    }
    
    .mobile-cards-container .command-card-wrapper:nth-child(4) .commande-card[b-v9vhtk8elv] {
        animation-delay: 0.4s !important;
    }
    
    .mobile-cards-container .command-card-wrapper:nth-child(5) .commande-card[b-v9vhtk8elv] {
        animation-delay: 0.5s !important;
    }
    
    .mobile-cards-container .command-card-wrapper:nth-child(6) .commande-card[b-v9vhtk8elv] {
        animation-delay: 0.6s !important;
    }
    
    .mobile-cards-container .command-card-wrapper:nth-child(7) .commande-card[b-v9vhtk8elv] {
        animation-delay: 0.7s !important;
    }
    
    .mobile-cards-container .command-card-wrapper:nth-child(8) .commande-card[b-v9vhtk8elv] {
        animation-delay: 0.8s !important;
    }
    
    .card-metrics[b-v9vhtk8elv] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mobile-actions[b-v9vhtk8elv] {
        justify-content: flex-start;
    }
    
    .filter-badges[b-v9vhtk8elv] {
        padding-left: 1rem;
    }
    
    .mobile-header-actions[b-v9vhtk8elv] {
        width: 100%;
    }
    
    /* Pagination en bas absolu sur mobile */
    .pagination-container[b-v9vhtk8elv] {
        position: fixed;
        bottom: 0;
        
        right: 0;
        width: 100%;
        background: black;
        padding: 1rem;
        z-index: 100;
        flex-direction: row;
        justify-content: center;
        margin: 0;
        border-top: 1px solid #7D8082;
    }
    
    .light-theme .pagination-container[b-v9vhtk8elv] {
        background: var(--surface-light);
        border-top: 1px solid var(--border-light);
    }
    
    .light-theme .mobile-header[b-v9vhtk8elv] {
        background-color: var(--surface-light);
        border-bottom: 1px solid var(--border-light);
        backdrop-filter: none;
    }
}

@media (max-width: 480px) {
    .card-metrics[b-v9vhtk8elv] {
        grid-template-columns: 1fr;
    }
    
    .card-row[b-v9vhtk8elv] {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .command-card[b-v9vhtk8elv] {
        padding: 0.75rem;
    }
    
    .card-header[b-v9vhtk8elv] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .card-reference[b-v9vhtk8elv] {
        font-size: 0.85rem;
    }
}


.desk-pagination[b-v9vhtk8elv] {
 position: absolute;
 bottom: 0;
}

svg[b-v9vhtk8elv] {
    border: 1px solid gray;
    border-radius: 1000px;
}
/* /Pages/Dashboard.razor.rz.scp.css */
.dashboard-container[b-li3i8jd61q] {
    border-radius: 12px;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-left: 2%;
    transition: width 0.3s ease, height 0.3s ease;
    background-color: hsl(240 10% 5% / 20%);
    border: 1px solid #7D8082;
    backdrop-filter: blur(18px);
    color: #fff;
    padding: 0rem 0rem 1rem 1rem;
}

.light-theme .dashboard-container[b-li3i8jd61q] {
    background-color: transparent;
    border: none;
    color: black;
}

.chart-container[b-li3i8jd61q] {
    width: 40vw;
    height: 50vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    color: #fff;
    border: 1px solid hsl(200 100% 85% / 40%);
    border-radius: 12px;
    background-color: hsl(200 100% 85% / 20%);
    backdrop-filter: blur(10px);
    padding: 1rem;
}



.light-theme .chart-container[b-li3i8jd61q] {
    background-color: #f2f0f0;
    color: black;
}

.commandes-cards[b-li3i8jd61q] {
    display: flex;
    gap: 1rem;
    margin-top: 20px;
    width: 75vw;
    color: #fff;
}


.latest_commandes h2[b-li3i8jd61q] {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}






.commande-statut[b-li3i8jd61q] {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.status-waiting[b-li3i8jd61q] {
    background: #7c2d12;
    color: #fef3c7;
    border: 1px solid #fbbf24;
}

.status-progress[b-li3i8jd61q] {
    background: #075985;
    color: #e0f2fe;
    border: 1px solid #38bdf8;
}

.status-loaded[b-li3i8jd61q] {
    background: #3730a3;
    color: #e0e7ff;
    border: 1px solid #818cf8;
}

.status-delivered[b-li3i8jd61q] {
    background: #166534;
    color: #dcfce7;
    border: 1px solid #4ade80;
}

.status-cancelled[b-li3i8jd61q] {
    background: #991b1b;
    color: #fee2e2;
    border: 1px solid #f87171;
}

.status-default[b-li3i8jd61q] {
    background: #7D8082;
    color: #f3f4f6;
    border: 1px solid #d1d5db;
}

[b-li3i8jd61q] .card-body p {
    margin: 8px 0;
    max-width: 14vw;
    font-size: 0.9rem;
}


@media (max-width: 1200px) {
    .dashboard-container[b-li3i8jd61q] {
        overflow: auto;
    }

    .chart-container[b-li3i8jd61q] {
        width: 40vw;
    }
}

@media (max-width: 992px) {
    .chart-container[b-li3i8jd61q] {
        width: 45vw;
    }
}

@media (max-width: 768px) {
    .dashboard-container[b-li3i8jd61q] {
        flex-direction: column;
        align-items: center;
    }

    .chart-container[b-li3i8jd61q] {
        width: 80vw;
        height: 40vh;
    }

    .commandes-cards[b-li3i8jd61q] {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 640px) {
    .dashboard-container[b-li3i8jd61q] {
        width: 100vw;
        padding: 0px;
        margin: 0;
        padding-top: 10px;
        border: none;
        background: transparent;
        border-radius: 0px;
        flex-direction: column;
        flex-wrap: nowrap;
        max-height: 100vh;
    }
    .dashboard-header[b-li3i8jd61q] {
        display: none;
    }

    .chart-container[b-li3i8jd61q] {

        height: auto;
    }

    .latest_commandes[b-li3i8jd61q] {
        display: none;
    }
}

.dashboard-header[b-li3i8jd61q] {
    width: 100%;
    padding: 2rem;
    padding-bottom: 0;
}

    .dashboard-header h1[b-li3i8jd61q] {
        margin: 0;
        padding: 0;
        font-size: 1.5rem;
        color: #fff;
        text-align: left;
    }

.light-theme .dashboard-header h1[b-li3i8jd61q] {
    color: var(--text-primary-light);
}

#chart-one[b-li3i8jd61q] {
    animation: fadeIn-b-li3i8jd61q 0.4s ease-out forwards;
    transform: translateX(-100px);
}

#chart-two[b-li3i8jd61q] {
    animation: fadeIn-b-li3i8jd61q 0.4s ease-out forwards;
    transform: translateX(100px);
}


@keyframes fadeIn-b-li3i8jd61q {
    to {
        transform: translateX(0px);
    }
}

[b-li3i8jd61q] .commande-card {
    opacity: 0;
    /*transform: translateY(100px);*/
    animation: fadeInUp-b-li3i8jd61q 0.5s ease-out forwards;
}

    [b-li3i8jd61q] .commande-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    [b-li3i8jd61q] .commande-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    [b-li3i8jd61q] .commande-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    [b-li3i8jd61q] .commande-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    [b-li3i8jd61q] .commande-card:nth-child(5) {
        animation-delay: 0.5s;
    }

@keyframes fadeInUp-b-li3i8jd61q {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[b-li3i8jd61q] .commande-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08) !important;
}

[b-li3i8jd61q] .commande-card {
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, background-color 0.2s ease;
}

    [b-li3i8jd61q] .commande-card:hover {
        background-color: hsl(200 100% 88% / 30%);
    }

[b-li3i8jd61q] .light-theme .commande-card:hover {
    background-color: #e8e6e6;
}

.typewriter[b-li3i8jd61q] {
    opacity: 0;
    transform: translateX(-100px);
    animation: fadeInDown-b-li3i8jd61q .3s ease-out;
}

@keyframes fadeInDown-b-li3i8jd61q {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.chart-skeleton[b-li3i8jd61q] {
    height: 300px;
    width: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-card[b-li3i8jd61q] {
    pointer-events: none;
}

.skeleton-text[b-li3i8jd61q] {
    display: inline-block;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-id[b-li3i8jd61q] {
    width: 80px;
    height: 16px;
}

.skeleton-status[b-li3i8jd61q] {
    width: 60px;
    height: 16px;
}

.skeleton-label[b-li3i8jd61q] {
    width: 50px;
    height: 14px;
    margin-right: 8px;
}

.skeleton-value[b-li3i8jd61q] {
    width: 120px;
    height: 14px;
}

.loading-overlay[b-li3i8jd61q] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(1px);
}

/* /Pages/Login.razor.rz.scp.css */
/* ==================== BASE & LAYOUT ==================== */
body[b-nhbhkkw85f] {
    background-color: black;
}

.login-logo-container[b-nhbhkkw85f] {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: auto;
}

.logo[b-nhbhkkw85f] {
    width: clamp(120px, 15vw, 200px);
}

.main-login[b-nhbhkkw85f] {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: radial-gradient(circle at 50% 100%, rgba(58, 175, 169, 0.6) 0%, transparent 60%), radial-gradient(circle at 50% 100%, rgba(255, 140, 0, 0.4) 0%, transparent 70%), radial-gradient(circle at 50% 100%, rgba(238, 130, 238, 0.3) 0%, transparent 80%);
}

/* ==================== CONTAINER & HEADER ==================== */
.login-container[b-nhbhkkw85f] {
    background-color: hsl(0 0% 0% / 18%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #7D8082;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 30vw;
    color: #fff;
}

.login-header[b-nhbhkkw85f] {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 500;
    font-size: 1.8rem;
}

/* ==================== FORM ELEMENTS ==================== */
.login-form[b-nhbhkkw85f] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-wrapper[b-nhbhkkw85f] {
    margin-bottom: 15px;
    margin-top: 15px;
    position: relative;
    transform: translateZ(50px);
    margin-right: 1.5rem;

    svg {
        color: rgba(255, 255, 255, 0.3);
        position: absolute;
        right: 13px;
        top: 50%;
        transform: translateY(-50%);
    }
}

.form-group label[b-nhbhkkw85f] {
    color: #fff;
    font-weight: 400;
}

input[type="text"][b-nhbhkkw85f],
input[type="password"][b-nhbhkkw85f] {
    background-color: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    padding: 14px 12px;
    transition: all 250ms ease-in-out;
    width: 100%;

    &:focus {
        background-color: rgba(0, 0, 0, 0.5);
        outline: none;
    }

        &:focus + svg[b-nhbhkkw85f] {
            color: #86dd54;
        }
}

input[type="password"][b-nhbhkkw85f]::-ms-reveal {
    filter: invert(50%);
}


[b-nhbhkkw85f] .form-control {
    width: 100%;
    padding: 0.8rem 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.9);
    padding-bottom: 1rem;
}

[b-nhbhkkw85f] .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

[b-nhbhkkw85f] .input-wrapper input::placeholder {
    color: #9ca3af;
}

/* ==================== ALERTS & VALIDATION ==================== */
.alert[b-nhbhkkw85f] {
    padding: 10px 16px;
    margin-top: 16px;
    border-radius: 6px;
    font-size: 14px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.validation-message[b-nhbhkkw85f],
.text-danger[b-nhbhkkw85f] {
    color: #721c24 !important;
    font-size: 14px !important;
    margin-top: 4px;
    background-color: #f8d7da;
    padding: 6px 10px;
    border-radius: 4px;
    display: inline-block;
}

/* ==================== BUTTON STYLES ==================== */
.button[b-nhbhkkw85f] {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    padding: 8px;
    margin: 1rem 0;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.15s ease;
    width: 100%;
}

    .button[b-nhbhkkw85f]::before,
    .button[b-nhbhkkw85f]::after {
        content: '';
        display: block;
        position: absolute;
        right: 0;
        left: 0;
        height: calc(50% - 5px);
        border: 1px solid #7D8082;
        transition: all 0.15s ease;
    }

    .button[b-nhbhkkw85f]::before {
        top: 0;
        border-bottom-width: 0;
    }

    .button[b-nhbhkkw85f]::after {
        bottom: 0;
        border-top-width: 0;
    }

    .button:active[b-nhbhkkw85f],
    .button:focus[b-nhbhkkw85f] {
        outline: none;
    }

        .button:active[b-nhbhkkw85f]::before,
        .button:active[b-nhbhkkw85f]::after {
            right: 3px;
            left: 3px;
        }

        .button:active[b-nhbhkkw85f]::before {
            top: 3px;
        }

        .button:active[b-nhbhkkw85f]::after {
            bottom: 3px;
        }

    .button:hover[b-nhbhkkw85f] {
        color: #0f1923;
    }

.button_lg[b-nhbhkkw85f] {
    position: relative;
    display: block;
    padding: 10px 20px;
    color: #fff;
    background-color: black;
    overflow: hidden;
    box-shadow: inset 0px 0px 0px 1px transparent;
}

    .button_lg[b-nhbhkkw85f]::before {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 2px;
        height: 2px;
        background-color: var(--accent);
    }

    .button_lg[b-nhbhkkw85f]::after {
        content: '';
        display: block;
        position: absolute;
        right: 0;
        bottom: 0;
        width: 4px;
        height: 4px;
        background-color: #0f1923;
        transition: all 0.2s ease;
    }

.button_sl[b-nhbhkkw85f] {
    display: block;
    position: absolute;
    top: 0;
    bottom: -1px;
    left: -8px;
    width: 0;
    background-color: #86dd54;
    transform: skew(-15deg);
    transition: all 0.2s ease;
}

.button_text[b-nhbhkkw85f] {
    position: relative;
}

.button:hover .button_sl[b-nhbhkkw85f] {
    width: calc(100% + 15px);
}

.button:hover .button_lg[b-nhbhkkw85f]::after {
    background-color: transparent;
}

[b-nhbhkkw85f] .validation-message {
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
    font-style: italic;
}


/* ==================== RESPONSIVE DESIGN ==================== */
/* Mobile */
@media (max-width: 768px) {
    .login-logo-container[b-nhbhkkw85f] {
        top: 1rem;
        left: 1rem;
    }

    .logo[b-nhbhkkw85f] {
        width: 40vw;
        max-width: 180px;
    }

    .main-login[b-nhbhkkw85f] {
        padding: 1rem;
    }

    .login-container[b-nhbhkkw85f] {
        width: 90vw;
        max-width: 400px;
        padding: 1.5rem;
    }

    .login-header[b-nhbhkkw85f] {
        font-size: 1.5rem;
    }

    .form-group .form-control[b-nhbhkkw85f] {
        font-size: 0.95rem;
    }

    .button_lg[b-nhbhkkw85f] {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .login-container[b-nhbhkkw85f] {
        width: 40vw;
    }
}
/* /Pages/ModalCommande.razor.rz.scp.css */
.modal-overlay[b-1z281swhhv] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10005;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    visibility: hidden;
    backdrop-filter: blur(4px);
}

.modal-overlay.visible[b-1z281swhhv] {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-content[b-1z281swhhv] {
    background-color: hsl(240 10% 5% / 80%);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #4b5563;
    width: 90%;
    max-width: 900px;
    position: relative;
    z-index: 10006;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: #fff;
    transform: translateY(-20px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    box-sizing: border-box;
    max-height: 90vh;
    /* ✅ RETIRER overflow: auto; */
    display: flex;
    /* ✅ NOUVEAU */
    flex-direction: column;
    /* ✅ NOUVEAU */
}


.modal-overlay.visible .modal-content[b-1z281swhhv] {
    transform: translateY(0);
    opacity: 1;
}

.modal-header[b-1z281swhhv] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #4b5563;
    flex-shrink: 0;
    /* ✅ Empêche la compression */
}


.modal-header h3[b-1z281swhhv] {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
}

.close-button[b-1z281swhhv] {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0.25rem;
}

.close-button:hover[b-1z281swhhv] {
    color: #ef4444;
    transform: rotate(90deg);
}

.modal-body[b-1z281swhhv] {
    padding: 0.8rem;
    margin-bottom: 1rem;
    overflow-y: auto;
    /* ✅ Défilement vertical seulement */
    flex: 1;
    /* ✅ Prend tout l'espace disponible */
    min-height: 0;
    /* ✅ Permet au flex de compresser */
}

.details-grid[b-1z281swhhv] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}

[b-1z281swhhv] .detail-title {
    text-wrap: nowrap;
}

[b-1z281swhhv] .detail-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid #4b5563;
    transition: all 0.2s ease;
    gap: 0.5rem;
    font-weight: 600;
}

[b-1z281swhhv] .detail-item:hover {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: #FF7039;
}

[b-1z281swhhv] .detail-icon,
.detail-label[b-1z281swhhv] {
    display: inline-flex;
    /* ou inline-block */
    align-items: center;
    /* Centre verticalement le contenu */
    vertical-align: middle;
    /* Aligne avec la ligne de base */
}

[b-1z281swhhv] .detail-icon {
    font-size: 1.5rem;
    margin-right: 8px;
    /* Espace entre les éléments */
}

[b-1z281swhhv] .detail-value {
    color: #f3f4f6;
    font-size: 0.95rem;
    word-break: break-word;
    text-align: center;
}

[b-1z281swhhv] .light-theme .detail-title {
    text-wrap: nowrap;
}

.status-badge[b-1z281swhhv] {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
    text-wrap: nowrap;
    text-align: center;
}

.status-waiting[b-1z281swhhv] {
    background: #7c2d12;
    color: #fef3c7;
    border: 1px solid #fbbf24;
}

.status-progress[b-1z281swhhv] {
    background: #075985;
    color: #e0f2fe;
    border: 1px solid #38bdf8;
}

.status-loaded[b-1z281swhhv] {
    background: #3730a3;
    color: #e0e7ff;
    border: 1px solid #818cf8;
}

.status-delivered[b-1z281swhhv] {
    background: #166534;
    color: #dcfce7;
    border: 1px solid #4ade80;
}

.status-cancelled[b-1z281swhhv] {
    background: #991b1b;
    color: #fee2e2;
    border: 1px solid #f87171;
}


.documents-section[b-1z281swhhv] {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #4b5563;
}

.documents-section h4[b-1z281swhhv] {
    color: #f3f4f6;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.documents-list[b-1z281swhhv] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.document-item[b-1z281swhhv] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid #4b5563;
    flex-wrap: wrap;
    gap: 1rem;
}

.document-icon[b-1z281swhhv] {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.document-name[b-1z281swhhv] {
    flex-grow: 1;
    color: #f3f4f6;
    font-weight: 500;
    min-width: 80px;
}

.document-actions[b-1z281swhhv] {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.modal-footer[b-1z281swhhv] {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #4b5563;
    margin-top: 1rem;
    width: 100%;
    flex-shrink: 0;
    /* ✅ Empêche la compression */
}

.btn-primary[b-1z281swhhv] {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover[b-1z281swhhv] {
    background-color: #2563eb;
}

.button[b-1z281swhhv] {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background: none;
    color: #f3f4f6;
    cursor: pointer;
    position: relative;
    padding: 6px 12px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.75rem;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.button[b-1z281swhhv]::before,
.button[b-1z281swhhv]::after {
    content: '';
    display: block;
    position: absolute;
    right: 0;
    left: 0;
    height: calc(50% - 4px);
    border: 1px solid #4b5563;
    transition: all 0.15s ease;
}

.button[b-1z281swhhv]::before {
    top: 0;
    border-bottom-width: 0;
}

.button[b-1z281swhhv]::after {
    bottom: 0;
    border-top-width: 0;
}

.button:active[b-1z281swhhv],
.button:focus[b-1z281swhhv] {
    outline: none;
}

.button:active[b-1z281swhhv]::before,
.button:active[b-1z281swhhv]::after {
    right: 3px;
    left: 3px;
}

.button:active[b-1z281swhhv]::before {
    top: 3px;
}

.button:active[b-1z281swhhv]::after {
    bottom: 3px;
}

.button_lg[b-1z281swhhv] {
    position: relative;
    display: block;
    padding: 8px 16px;
    color: #f3f4f6;
    background-color: #1f2937;
    overflow: hidden;
    box-shadow: inset 0px 0px 0px 1px transparent;
    border-radius: 6px;
}

.button_lg[b-1z281swhhv]::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 2px;
    background-color: #3b82f6;
}

.button_lg[b-1z281swhhv]::after {
    content: '';
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 4px;
    height: 4px;
    background-color: #1f2937;
    transition: all 0.2s ease;
    border-radius: 0 0 2px 0;
}


.button_sl[b-1z281swhhv] {
    display: block;
    position: absolute;
    top: 0;
    bottom: -1px;
    left: -8px;
    width: 0;
    background-color: #10b981;
    transform: skew(-15deg);
    transition: all 0.2s ease;
}

.preview-button .button_lg[b-1z281swhhv] {
    background-color: #3b82f6;
}

.button_text[b-1z281swhhv] {
    position: relative;
    margin-left: 4px;
}

.button:hover[b-1z281swhhv] {
    color: #1f2937;
}

.button:hover .button_sl[b-1z281swhhv] {
    width: calc(100% + 15px);
}

.button:hover .button_lg[b-1z281swhhv]::after {
    background-color: #10b981;
}

.light-theme .modal-content[b-1z281swhhv] {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.light-theme .modal-header h3[b-1z281swhhv] {
    color: #111827;
}

.light-theme .modal-header[b-1z281swhhv] {
    border-bottom: 1px solid #e5e7eb;
}

.light-theme .close-button[b-1z281swhhv] {
    color: #6b7280;
}

.light-theme .close-button:hover[b-1z281swhhv] {
    color: #ef4444;
}

.light-theme .detail-item[b-1z281swhhv] {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
}

.light-theme .detail-label[b-1z281swhhv] {
    color: #4b5563;
}

.light-theme .detail-value[b-1z281swhhv] {
    color: #111827;
}

.light-theme .documents-section h4[b-1z281swhhv] {
    color: #111827;
}

.light-theme .documents-section[b-1z281swhhv] {
    border-top: 1px solid #e5e7eb;
}

.light-theme .document-item[b-1z281swhhv] {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
}

.light-theme .document-name[b-1z281swhhv] {
    color: #111827;
}

.light-theme .btn-primary[b-1z281swhhv] {
    background-color: #3b82f6;
    color: white;
}

.light-theme .btn-primary:hover[b-1z281swhhv] {
    background-color: #2563eb;
}

.light-theme .button[b-1z281swhhv] {
    color: #111827;
}

.light-theme .button_lg[b-1z281swhhv] {
    background-color: #1f2937;
    color: #ffffff;
}

.light-theme .button_lg[b-1z281swhhv]::before {
    background-color: #3b82f6;
}

.light-theme .button:hover[b-1z281swhhv] {
    color: #1f2937;
}

.preview-overlay[b-1z281swhhv] {
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10005;
    backdrop-filter: blur(4px);
    margin-top: 1rem;
}

.preview-content[b-1z281swhhv] {
    background-color: hsl(240 10% 5% / 80%);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid #4b5563;
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    max-height: 90vh;
    position: relative;
    z-index: 10006;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: #fff;
    display: flex;
    flex-direction: column;
    /* ✅ Déjà présent */
}

.preview-iframe[b-1z281swhhv] {
    flex: 1;
    /* ✅ Prend tout l'espace disponible */
    width: 100%;
    height: 100%;
    border: 1px solid #4b5563;
    border-radius: 8px;
    background-color: #fff;
    min-height: 400px;
    overflow: auto;
    /* ✅ Défilement dans l'iframe */
}

.preview-content object[b-1z281swhhv],
.preview-content embed[b-1z281swhhv],
.preview-content img[b-1z281swhhv] {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 1px solid #4b5563;
    border-radius: 8px;
    background-color: #fff;
}

.preview-header[b-1z281swhhv] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #4b5563;
}

.preview-header h4[b-1z281swhhv] {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    word-break: break-word;
}

.close-preview[b-1z281swhhv] {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0.25rem;
}

.close-preview:hover[b-1z281swhhv] {
    color: #ef4444;
    transform: rotate(90deg);
}


.light-theme .preview-content[b-1z281swhhv] {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.light-theme .preview-header h4[b-1z281swhhv] {
    color: #111827;
}

.light-theme .preview-header[b-1z281swhhv] {
    border-bottom: 1px solid #e5e7eb;
}

.light-theme .close-preview[b-1z281swhhv] {
    color: #6b7280;
}

.light-theme .close-preview:hover[b-1z281swhhv] {
    color: #ef4444;
}


@media (max-width: 768px) {
    .preview-content[b-1z281swhhv] {
        width: 95vw;
        max-width: none;
        max-height: 95vh;
        padding: 1rem;
        border-radius: 12px 12px 0 0;
        margin-bottom: 0;
    }

    .preview-overlay[b-1z281swhhv] {
        align-items: flex-end;
    }

    .preview-content[b-1z281swhhv] {
        margin: 0;
        border-radius: 12px 12px 0 0;
    }

    .preview-iframe[b-1z281swhhv] {
        min-height: 300px;
    }
}

/* Animations */
@keyframes slideUp-b-1z281swhhv {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .modal-content[b-1z281swhhv] {
        width: 95%;
        max-width: 700px;
        padding: 1.5rem;
    }

    .modal-header h3[b-1z281swhhv] {
        font-size: 1.3rem;
    }

    .details-grid[b-1z281swhhv] {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .modal-overlay[b-1z281swhhv] {
        z-index: 10005;
        align-items: flex-end;
    }

    .modal-content[b-1z281swhhv] {
        z-index: 10006;
        width: 100vw;
        max-width: none;
        max-height: calc(100vh - 60px);
        padding: 1rem;
        border-radius: 12px 12px 0 0;
        margin: 0;
        margin-bottom: 60px;
        overflow-y: auto;
        animation: slideUp-b-1z281swhhv 0.3s ease;
    }

    .modal-header[b-1z281swhhv] {
        padding-bottom: 0.75rem;
        padding-top: 0.5rem;
    }

    .modal-header h3[b-1z281swhhv] {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .details-grid[b-1z281swhhv] {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    [b-1z281swhhv] .detail-item {
        padding: 0.75rem;
        background-color: rgba(0, 0, 0, 0.15);
    }

    [b-1z281swhhv] .detail-icon {
        font-size: 1rem;
        margin-right: 6px;
    }

    [b-1z281swhhv] .detail-label {
        font-size: 0.8rem;
        font-weight: 600;
    }

    [b-1z281swhhv] .detail-value {
        font-size: 0.85rem;
        text-align: left;
    }

    .documents-section[b-1z281swhhv] {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .documents-section h4[b-1z281swhhv] {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .document-item[b-1z281swhhv] {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem;
        background-color: rgba(0, 0, 0, 0.1);
    }

    .document-icon[b-1z281swhhv] {
        font-size: 1rem;
    }

    .document-name[b-1z281swhhv] {
        font-size: 0.85rem;
        min-width: auto;
        word-break: break-word;
    }

    .document-type[b-1z281swhhv] {
        font-size: 0.75rem;
        opacity: 0.8;
    }

    .document-actions[b-1z281swhhv] {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .document-actions .button[b-1z281swhhv] {
        flex: 1;
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .modal-body[b-1z281swhhv] {
        padding: 0.5rem 1rem 1rem;
    }

    .modal-footer[b-1z281swhhv] {
        padding: 1rem;
        margin-top: 0;
        border-top: 1px solid #4b5563;
    }

    .btn-primary[b-1z281swhhv] {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-content[b-1z281swhhv] {
        padding: 0.75rem;
        border-radius: 8px 8px 0 0;
    }

    .modal-header[b-1z281swhhv] {
        padding-bottom: 0.5rem;
        padding-top: 0.5rem;
    }

    .modal-header h3[b-1z281swhhv] {
        font-size: 0.95rem;
    }

    .details-grid[b-1z281swhhv] {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
        grid-template-columns: repeat(1, 1fr);
    }

    [b-1z281swhhv] .detail-item {
        padding: 0.65rem;
        border: none;
        background-color: transparent;
    }

    [b-1z281swhhv] .detail-icon {
        font-size: 0.9rem;
        margin-right: 4px;
    }

    [b-1z281swhhv] .detail-label {
        font-size: 0.75rem;
        font-weight: 600;
        opacity: 0.8;
    }

    [b-1z281swhhv] .detail-value {
        font-size: 0.8rem;
        text-align: left;
    }

    .status-badge[b-1z281swhhv] {
        font-size: 0.6rem;
        padding: 0.1rem 0.4rem;
    }

    .documents-section[b-1z281swhhv] {
        margin-top: 1rem;
        padding-top: 0.75rem;
    }

    .documents-section h4[b-1z281swhhv] {
        font-size: 0.9rem;
    }

    .document-item[b-1z281swhhv] {
        padding: 0.65rem;
        gap: 0.5rem;
    }

    .document-icon[b-1z281swhhv] {
        font-size: 0.9rem;
    }

    .document-name[b-1z281swhhv] {
        font-size: 0.8rem;
    }

    .document-type[b-1z281swhhv] {
        font-size: 0.7rem;
    }

    .document-actions[b-1z281swhhv] {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        margin-top: 0.5rem;
    }

    .document-actions .button[b-1z281swhhv] {
        width: 100%;
        text-align: center;
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .modal-body[b-1z281swhhv] {
        padding: 0.5rem 0.75rem;
    }

    .modal-footer[b-1z281swhhv] {
        padding: 1rem 0.75rem;
    }

    .btn-primary[b-1z281swhhv] {
        width: 100%;
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    /* Style pour la section Mesures en mobile */
    [b-1z281swhhv] .element {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        justify-content: space-between;
    }

    [b-1z281swhhv] .detail-title {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}
