/* ==========================================================
   CRÉOENTREPÔT
   THEME
   ========================================================== */

:root {

    /* Couleurs principales */
    --warehouse-primary: #263b4d;
    --warehouse-primary-dark: #1b2c3a;
    --warehouse-primary-light: #38556b;

    /* Accent */
    --warehouse-accent: #5f8198;

    /* Interface */
    --warehouse-bg: #f4f6f8;
    --warehouse-surface: #ffffff;

    /* Texte */
    --warehouse-text: #202a33;
    --warehouse-text-secondary: #687581;
    --warehouse-text-light: #929da6;
    --warehouse-text-for-primary-dark:#eeeeee; 

    /* Bordures */
    --warehouse-border: #e1e6ea;
    --warehouse-border-dark: #cfd6dc;

    /* États */
    --warehouse-success: #27845a;
    --warehouse-warning: #c58a22;
    --warehouse-danger: #bd4545;

    /* Ombres */
    --warehouse-shadow:
        0 2px 8px rgba(30, 45, 60, 0.05);

    --warehouse-shadow-lg:
        0 8px 25px rgba(30, 45, 60, 0.08);

    /* Dimensions */
    --warehouse-sidebar-width: 250px;
}

/* LOGIN */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 20px;

    background-image:
        linear-gradient(
            rgba(24, 49, 70, 0.48),
            rgba(24, 49, 70, 0.48)
        ),
        url("/images/entrepot-login.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-card {
    width: 100%;
    max-width: 585px;
    color:var(--warehouse-text-for-primary-dark);
    padding: 46px 46px 42px;

    background: var(--warehouse-primary-dark);
    border-radius: 15px;
    border:1px solid var(--warehouse-text-for-primary-dark);
    box-shadow:
        0 25px 60px rgba(255, 255, 255, 0.25);
}

/* Logo */

.login-logo {
    text-align: center;
    margin-bottom: 38px;
}

.login-logo img {
    max-width: 430px;
    width: 85%;
    height: auto;
}

/* Titre */

.login-title {
    text-align: center;
    margin-bottom: 46px;
}

.login-title h1 {
    margin: 0 0 8px;

    font-size: 36px;
    font-weight: 700;
    color: var(--ce-primary);
}

.login-page .login-title p {
    margin: 0;

    font-size: 19px;
    color: var(--ce-muted);
}

/* Formulaire */

.login-page .form-group {
    margin-bottom: 24px;
}

.login-page .form-label {
    display: block;

    margin-bottom: 8px;

    font-size: 17px;
    font-weight: 600;
    color: var(--ce-text);
}

.login-page .input-wrapper {
    position: relative;
}

.login-page .input-wrapper > i {
    position: absolute;
    left: 20px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 19px;
    color: #50647a;

    pointer-events: none;
}

.login-page .form-control {
    height: 59px;

    padding: 0 50px;

    border: 1px solid var(--warehouse-border);
    border-radius: 9px;

    font-size: 17px;
    color: var(--warehouse-text);

    box-shadow: none;
}

.login-page .form-control::placeholder {
    color: #8291a4;
}

.login-page .form-control:focus {
    border-color: var(--ce-primary);
    box-shadow: 0 0 0 3px rgba(33, 61, 87, 0.10);
}

.login-page .password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;

    transform: translateY(-50%);

    border: 0;
    background: transparent;

    color: #50647a;

    font-size: 18px;
    cursor: pointer;
}

.login-page .password-toggle:hover {
   /* color: var(--ce-primary);*/
}

/* Options */

.login-page .login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 4px;
    margin-bottom: 28px;
}

.login-page .remember-me {
    display: flex;
    align-items: center;
    gap: 11px;

    cursor: pointer;

    font-size: 16px;
    color: var(--ce-text);
}

.login-page .remember-me input {
    width: 28px;
    height: 28px;

    margin: 0;

    border: 1px solid #aebdcd;
    border-radius: 5px;

    cursor: pointer;
}

/* Bouton */

.login-page .btn-login {
    width: 100%;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    border: 0;
    border-radius: 9px;

    background: var(--warehouse-primary-light);
    color: #fff;

    font-size: 18px;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        transform 0.1s ease;
}

.login-page .btn-login:hover {
    background: var(--warehouse-primary);
}

.login-page .btn-login:active {
    transform: translateY(1px);
}

.login-page .btn-login i {
    font-size: 18px;
}

/* Responsive */

@media (max-width: 600px) {

    .login-page {
        padding: 20px 15px;
    }

    .login-card {
        padding: 35px 25px 30px;
        border-radius: 12px;
    }

    .login-logo {
        margin-bottom: 30px;
    }

    .login-logo img {
        width: 90%;
    }

    .login-title {
        margin-bottom: 35px;
    }

    .login-title h1 {
        font-size: 30px;
    }

    .login-title p {
        font-size: 16px;
    }

    .login-options {
        align-items: flex-start;
        gap: 15px;
    }

    .login-page .remember-me {
        font-size: 14px;
    }

}

@media (max-width: 400px) {

    .login-options {
        flex-direction: column;
    }
}
/*FIN LOGIN */
.warehouse-nav-icon {
    width: 30px;
    font-size: 15px;
    opacity: .85;
}

.warehouse-nav-item.active .warehouse-nav-icon {
    opacity: 1;
}

.warehouse-stat-icon i {
    font-size: 17px;
}

.warehouse-search-icon i {
    font-size: 15px;
}

.warehouse-header-icon i {
    font-size: 17px;
}

.warehouse-product-image i {
    font-size: 15px;
}

.warehouse-action-btn i {
    font-size: 12px;
}

.warehouse-mobile-navigation i {
    font-size: 17px;
}

.warehouse-sidebar-close {
    display: none;

    position: absolute;

    top: 18px;
    right: 16px;

    width: 36px;
    height: 36px;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: rgba(255,255,255,.7);

    font-size: 20px;

    cursor: pointer;

    align-items: center;
    justify-content: center;
}

.warehouse-sidebar-close:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.warehouse-sidebar-overlay {
    display: none;

    position: fixed;
    inset: 0;

    z-index: 1039;

    background: rgba(0, 0, 0, .55);
}


/* Mobile */

@media (max-width: 991.98px) {

    .warehouse-sidebar-overlay {
        display: block;

        opacity: 0;
        visibility: hidden;

        transition:
            opacity .25s ease,
            visibility .25s ease;
    }

    .warehouse-sidebar.open + .warehouse-sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }

}
@media (max-width: 991.98px) {

    .warehouse-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;

        z-index: 1040;

        transform: translateX(-100%);

        transition: transform .25s ease;
    }

    .warehouse-sidebar.open {
        transform: translateX(0);
    }

    .warehouse-sidebar-close {
        display: flex;
    }

}
/* ==========================================================
   BASE
   ========================================================== */

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: var(--warehouse-bg);
    color: var(--warehouse-text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    font-size: 14px;
}

* {
    box-sizing: border-box;
}

button,
input,
select,
textarea {
    font-family: inherit;
}


/* ==========================================================
   APPLICATION
   ========================================================== */

.warehouse-app {
    min-height: 100vh;
    display: flex;
}


/* ==========================================================
   SIDEBAR
   ========================================================== */

.warehouse-sidebar {
    width: var(--warehouse-sidebar-width);
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    background: var(--warehouse-primary);
    color: #ffffff;

    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;

    display: flex;
    flex-direction: column;

    z-index: 1040;
}


/* LOGO */

.warehouse-logo {
    height: 86px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.warehouse-logo-img{
    max-width: 70%;
    display: inline-block;
    opacity: 0.9;
}

.warehouse-logo-mark {
    width: 38px;
    height: 38px;

    border-radius: 8px;

    background: rgba(255,255,255,.12);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    font-weight: 700;

    margin-right: 11px;
}

.warehouse-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.warehouse-logo-text strong {
    font-size: 18px;
    letter-spacing: 1px;
}

.warehouse-logo-text span {
    margin-top: 5px;

    font-size: 9px;
    letter-spacing: 2px;

    opacity: .6;
}


/* NAVIGATION */

.warehouse-navigation {
    padding: 25px 14px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.warehouse-nav-section {
    margin-bottom: 30px;
}

.warehouse-nav-title {
    padding: 0 12px;
    margin-bottom: 9px;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 1.3px;

    color: rgba(255,255,255,.42);
}

.warehouse-nav-item {
    height: 43px;

    padding: 0 12px;

    display: flex;
    align-items: center;

    border-radius: 7px;

    color: rgba(255,255,255,.72);

    text-decoration: none;

    transition:
        background .15s ease,
        color .15s ease;
}

.warehouse-nav-item:hover {
    color: #ffffff;
    background: rgba(255,255,255,.07);
}

.warehouse-nav-item.active {
    color: #ffffff;
    background: rgba(255,255,255,.13);
}

.warehouse-nav-icon {
    width: 30px;

    font-size: 17px;

    opacity: .85;
}

.warehouse-nav-item span:last-child {
    font-size: 13px;
}


/* USER */

.warehouse-sidebar-footer {
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    flex-shrink: 0;

    border-top: 1px solid rgba(255,255,255,.08);
}

.warehouse-sidebar .warehouse-logo { flex-shrink: 0; }
.warehouse-account-toggle { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; gap: 10px; }
.warehouse-account-toggle:focus-visible { outline: 2px solid white; outline-offset: 4px; }
.warehouse-account-name { min-width: 0; flex: 1; }
.warehouse-account-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.warehouse-user-mini {
    display: flex;
    align-items: center;
}

.warehouse-user-mini strong {
    display: block;

    font-size: 13px;
}

.warehouse-user-mini small {
    display: block;

    margin-top: 2px;

    font-size: 11px;

    color: rgba(255,255,255,.5);
}


/* AVATAR */

.warehouse-user-avatar {
    width: 36px;
    height: 36px;

    flex-shrink: 0;

    border-radius: 50%;

    background: rgba(255,255,255,.13);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: 600;

    margin-right: 10px;
}


/* ==========================================================
   MAIN
   ========================================================== */

.warehouse-main {
    width: calc(100% - var(--warehouse-sidebar-width));

    margin-left: var(--warehouse-sidebar-width);

    min-height: 100vh;
}


/* ==========================================================
   HEADER
   ========================================================== */

.warehouse-header {
    height: 76px;

    padding: 0 32px;

    background: var(--warehouse-surface);

    border-bottom: 1px solid var(--warehouse-border);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.warehouse-header-title h1 {
    margin: 0;

    font-size: 21px;
    font-weight: 600;

    letter-spacing: -.2px;
}

.warehouse-header-title span {
    display: block;

    margin-top: 3px;

    color: var(--warehouse-text-secondary);

    font-size: 12px;
}

.warehouse-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.warehouse-header-icon {
    border: 0;
    background: none;

    color: var(--warehouse-text-secondary);

    font-size: 20px;
}

.warehouse-notifications-button { position: relative; min-width: 40px; min-height: 40px; }
.warehouse-notifications-count { position: absolute; top: 0; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 10px; background: #bd4545; color: #fff; font: 600 11px/18px Arial, sans-serif; }
#warehouseNotificationsList a { overflow-wrap: anywhere; }

.warehouse-header-user .warehouse-user-avatar {
    margin: 0;

    background: var(--warehouse-primary);
    color: #ffffff;
}


/* ==========================================================
   CONTENT
   ========================================================== */

.warehouse-content {
    padding: 30px;
    max-width: 1600px;
}


/* ==========================================================
   SEARCH
   ========================================================== */

.warehouse-search-card {
    background: var(--warehouse-surface);

    border: 1px solid var(--warehouse-border);

    border-radius: 9px;

    padding: 15px;

    display: flex;
    align-items: center;

    gap: 10px;

    box-shadow: var(--warehouse-shadow);
}

.warehouse-search-wrapper {
    position: relative;
    flex: 1;
}

.warehouse-search-icon {
    position: absolute;

    left: 14px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--warehouse-text-light);

    font-size: 21px;
}

.warehouse-search-input {
    width: 100%;
    height: 44px;

    padding: 0 15px 0 43px;

    border: 1px solid var(--warehouse-border);

    border-radius: 6px;

    outline: none;

    color: var(--warehouse-text);

    background: #fafbfc;

    transition: border-color .15s ease;
}

.warehouse-search-input:focus {
    border-color: var(--warehouse-accent);

    background: #ffffff;

    box-shadow: 0 0 0 3px rgba(95,129,152,.10);
}


/* BUTTONS */

.warehouse-btn-primary,
.warehouse-btn-scan {
    height: 44px;

    padding: 0 18px;

    border-radius: 6px;

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;
}
/* ==========================================================
   MOBILE BOTTOM BAR
   ========================================================== */

.warehouse-mobile-bottom {
    display: none;
}


@media (max-width: 991.98px) {

    .warehouse-mobile-bottom {
        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        height: calc(48px + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-sizing: border-box;

        z-index: 1030;

        display: flex;
        align-items: center;
        justify-content: center;

        background: #18324a;

        box-shadow: 0 -2px 8px rgba(0, 0, 0, .12);
    }


    /* ======================================================
       BOUTON SCANNER
       ====================================================== */

    .warehouse-mobile-scan {
        position: absolute;
        width: 52px;
        height: 52px;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 0;

        border: 4px solid #18324a;
        border-radius: 50%;

        background: #fff;

        color: #18324a;

        box-shadow: 0 2px 7px rgba(0, 0, 0, .18);

        cursor: pointer;
    }


    .warehouse-mobile-scan i {
        font-size: 17px;
    }


    .warehouse-mobile-scan:active {
        transform: scale(.95);
    }


    /* Espace pour ne pas cacher le contenu derrière la barre */

    .warehouse-main {
        padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    }

}
body.modal-open .warehouse-mobile-bottom {
    visibility: hidden;
    pointer-events: none;
}
@media (max-width: 575.98px) {

    .warehouse-btn-scan {
        min-width: 0;
        width: 42%;

        padding-left: 10px;
        padding-right: 10px;
    }

}
.warehouse-btn-scan:hover {
    background: #f5f7f9;
    border-color: #b8c3ce;
}
.warehouse-btn-primary {
    background: var(--warehouse-primary);
    color: #ffffff;

    border: 1px solid var(--warehouse-primary);
}

.warehouse-btn-primary:hover {
    background: var(--warehouse-primary-dark);
    color: #ffffff;
}

.warehouse-btn-scan {
    background: #ffffff;

    border: 1px solid var(--warehouse-border-dark);

    color: var(--warehouse-primary);
}

.warehouse-btn-scan:hover {
    background: var(--warehouse-bg);
}


/* ==========================================================
   STATS
   ========================================================== */

.warehouse-stats {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;

    margin-top: 18px;
}

.warehouse-stat-card {
    background: var(--warehouse-surface);

    border: 1px solid var(--warehouse-border);

    border-radius: 9px;

    padding: 19px;

    display: flex;
    align-items: center;

    box-shadow: var(--warehouse-shadow);
}

.warehouse-stat-icon {
    width: 42px;
    height: 42px;

    border-radius: 7px;

    background: rgba(38,59,77,.07);

    color: var(--warehouse-primary);

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 13px;

    font-size: 18px;
}

.warehouse-stat-label {
    display: block;

    font-size: 11px;

    color: var(--warehouse-text-secondary);
}

.warehouse-stat-value {
    display: block;

    margin-top: 4px;

    font-size: 18px;
    font-weight: 600;
}


/* ==========================================================
   PANEL
   ========================================================== */

.warehouse-panel {
    margin-top: 18px;

    background: var(--warehouse-surface);

    border: 1px solid var(--warehouse-border);

    border-radius: 9px;

    box-shadow: var(--warehouse-shadow);

    overflow: hidden;
}

.warehouse-panel-header {
    min-height: 72px;

    padding: 16px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--warehouse-border);
}

.warehouse-panel-header h2 {
    margin: 0;

    font-size: 15px;
    font-weight: 600;
}

.warehouse-panel-header span {
    display: block;

    margin-top: 3px;

    color: var(--warehouse-text-secondary);

    font-size: 11px;
}

.warehouse-panel-header .btn > span {
    color: inherit;
    font-size: inherit;
    margin-top: 0;
}

.warehouse-filter-btn {
    background: #ffffff;

    border: 1px solid var(--warehouse-border-dark);

    border-radius: 6px;

    padding: 7px 12px;

    font-size: 12px;

    color: var(--warehouse-text-secondary);
}


/* ==========================================================
   TABLE
   ========================================================== */

.warehouse-table {
    margin: 0;
}

.warehouse-table thead th {
    padding: 12px 20px;

    background: #fafbfc;

    border-bottom: 1px solid var(--warehouse-border);

    color: var(--warehouse-text-secondary);

    font-size: 10px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: .6px;

    white-space: nowrap;
}

.warehouse-table tbody td {
    padding: 13px 20px;

    vertical-align: middle;

    border-bottom: 1px solid var(--warehouse-border);

    color: var(--warehouse-text);

    font-size: 13px;
}

.warehouse-table tbody tr:last-child td {
    border-bottom: 0;
}

.warehouse-table tbody tr:hover {
    background: #fafcfd;
}


/* PRODUCT */

.warehouse-product {
    display: flex;
    align-items: center;
}

.warehouse-product-image {
    width: 42px;
    height: 42px;

    border-radius: 6px;

    background: #edf0f2;

    margin-right: 11px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--warehouse-text-light);

    font-size: 8px;
}
.warehouse-list-filters{
     padding: 15px 20px;
}
.warehouse-product strong {
    display: block;

    font-size: 13px;
    font-weight: 600;
}

.warehouse-product small {
    display: block;

    margin-top: 3px;

    color: var(--warehouse-text-secondary);

    font-size: 10px;
}

.warehouse-reference,
.warehouse-code {
    font-family: monospace;

    font-size: 12px;
}

.warehouse-stock {
    font-size: 14px;
}

.warehouse-date {
    color: var(--warehouse-text-secondary);

    font-size: 12px;
}


/* ACTIONS */

.warehouse-actions:not(td) {
    display: flex;
    justify-content: flex-end;

    gap: 5px;
}

td.warehouse-actions {
    text-align: right;
    white-space: nowrap;
}

td.warehouse-actions > * + * {
    margin-left: 5px;
}

td.warehouse-actions .warehouse-action-btn {
    display: inline-flex;
    vertical-align: middle;
}

/* Bootstrap applique le fond aux cellules plutôt qu'à la ligne. */
.warehouse-content .table > tbody > tr:nth-child(even) {
    background-color: #f5f8fa;
}

.warehouse-content .table > tbody > tr:nth-child(even) > * {
    --bs-table-bg: #f5f8fa;
}

.warehouse-content .table > tbody > tr:hover > * {
    --bs-table-bg: #edf3f7;
}

.warehouse-action-btn {
    width: 32px;
    height: 32px;

    border: 1px solid var(--warehouse-border);

    background: #ffffff;

    border-radius: 5px;

    color: var(--warehouse-text-secondary);

    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.warehouse-action-btn:hover {
    background: var(--warehouse-bg);

    color: var(--warehouse-primary);
}


/* ==========================================================
   PAGINATION
   ========================================================== */

.warehouse-pagination {
    padding: 15px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-top: 1px solid var(--warehouse-border);

    color: var(--warehouse-text-secondary);

    font-size: 11px;
}

.warehouse-pagination div {
    display: flex;
    gap: 3px;
}

.warehouse-pagination button {
    min-width: 30px;
    height: 30px;

    border: 1px solid var(--warehouse-border);

    background: #ffffff;

    border-radius: 5px;

    color: var(--warehouse-text-secondary);
}

.warehouse-pagination button.active {
    background: var(--warehouse-primary);

    color: #ffffff;

    border-color: var(--warehouse-primary);
}


/* ==========================================================
   MOBILE
   ========================================================== */

.warehouse-mobile-menu {
    display: none;

    border: 0;
    background: none;

    font-size: 22px;

    color: var(--warehouse-primary);

    margin-right: 15px;
}

.warehouse-mobile-navigation {
    display: none;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 991.98px) {

    :root {
        --warehouse-sidebar-width: 220px;
    }

    .warehouse-main {
        width: 100%;
        margin-left: 0;
    }

    .warehouse-mobile-menu {
        display: block;
    }

    .warehouse-content {
        padding: 20px;
    }

    .warehouse-header {
        padding: 0 20px;
    }

    .warehouse-stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767.98px) {

    .warehouse-sidebar {
        transform: translateX(-100%);

        transition: transform .2s ease;

        width: 260px;
    }

    .warehouse-sidebar.open {
        transform: translateX(0);
    }

    .warehouse-main {
        width: 100%;

        margin-left: 0;

        padding-bottom: 70px;
    }

    .warehouse-header {
        height: 65px;

        padding: 0 15px;
    }

    .warehouse-mobile-menu {
        display: block;
    }

    .warehouse-header-title h1 {
        font-size: 18px;
    }

    .warehouse-header-title span {
        display: none;
    }

    .warehouse-header-actions {
        gap: 8px;
    }

    .warehouse-header-user {
        display: none;
    }

    .warehouse-content {
        padding: 15px;
    }


    /* SEARCH */

    .warehouse-search-card {
        padding: 10px;

        display: grid;

        grid-template-columns: 1fr 1fr;
    }

    .warehouse-search-wrapper {
        grid-column: 1 / -1;
    }

    .warehouse-btn-scan,
    .warehouse-btn-primary {
        width: 100%;
    }


    /* STATS */

    .warehouse-stats {
        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 10px;
    }

    .warehouse-stat-card {
        padding: 14px;
    }

    .warehouse-stat-card:last-child {
        grid-column: 1 / -1;
    }


    /* PANEL */

    .warehouse-panel {
        border-radius: 7px;
    }

    .warehouse-panel-header {
        padding: 14px;
    }


    /* TABLE */

    .warehouse-table thead {
        display: none;
    }

    .warehouse-table tbody,
    .warehouse-table tr,
    .warehouse-table td {
        display: block;
        width: 100%;
    }

    .warehouse-table tbody tr {
        padding: 14px;

        border-bottom: 1px solid var(--warehouse-border);
    }

    .warehouse-table tbody td {
        padding: 5px 0;

        border: 0;
    }

    .warehouse-table tbody td:nth-child(2)::before {
        content: "Référence : ";
        color: var(--warehouse-text-secondary);
    }

    .warehouse-table tbody td:nth-child(3)::before {
        content: "Code : ";
        color: var(--warehouse-text-secondary);
    }

    .warehouse-table tbody td:nth-child(4)::before {
        content: "Stock : ";
        color: var(--warehouse-text-secondary);
    }

    .warehouse-table tbody td:nth-child(5)::before {
        content: "Mise à jour : ";
        color: var(--warehouse-text-secondary);
    }

    .warehouse-actions {
        display: flex;
        gap: 5px;
        justify-content: flex-start;

        margin-top: 8px;
    }

    td.warehouse-actions > * + * {
        margin-left: 0;
    }

    .warehouse-action-btn {
        width: 38px;
        height: 38px;
    }


    /* PAGINATION */

    .warehouse-pagination {
        flex-direction: column;

        gap: 12px;
    }


    /* MOBILE NAV */

    .warehouse-mobile-navigation {
        position: fixed;

        display: flex;

        left: 0;
        right: 0;
        bottom: 0;

        height: 64px;

        background: #ffffff;

        border-top: 1px solid var(--warehouse-border);

        z-index: 1100;

        justify-content: space-around;
        align-items: center;
    }

    .warehouse-mobile-navigation a {
        flex: 1;

        height: 64px;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        color: var(--warehouse-text-secondary);

        text-decoration: none;
    }

    .warehouse-mobile-navigation a span {
        font-size: 18px;
        line-height: 20px;
    }

    .warehouse-mobile-navigation a small {
        margin-top: 3px;

        font-size: 9px;
    }

    .warehouse-mobile-navigation a.active {
        color: var(--warehouse-primary);
    }


    /* SCAN */

    .warehouse-mobile-scan {
        width: 40px;
        height: 40px;
        border-radius: 50%;

        border: 4px solid var(--warehouse-bg);

        background: var(--warehouse-primary);

        color: #ffffff;

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 21px;
    }

}
/* ==========================================================
   LOADING SCREEN
   ========================================================== */

.warehouse-loader {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #101820;

    opacity: 1;
    visibility: visible;

    transition:
        opacity .35s ease,
        visibility .35s ease;
}


/*
 * État terminé
 */

.warehouse-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


/* ==========================================================
   CONTENU
   ========================================================== */

.warehouse-loader-content {
    width: min(520px, 80vw);

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}


/* ==========================================================
   LOGO
   ========================================================== */

.warehouse-loader-logo {
    display: block;

    width: 100%;
    max-width: 500px;
    height: auto;

    /*
     * Le logo original a un fond noir.
     * On le rend légèrement plus discret pour le loading.
     */
    opacity: .92;

    animation:
        warehouseLoaderLogo 1.8s ease-in-out infinite;
}


/* ==========================================================
   ANIMATION LOGO
   ========================================================== */

@keyframes warehouseLoaderLogo {

    0%,
    100% {
        opacity: .72;
        transform: scale(.985);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }

}


/* ==========================================================
   SPINNER
   ========================================================== */

.warehouse-loader-spinner {
    display: flex;

    align-items: center;

    gap: 7px;

    margin-top: 28px;
}


.warehouse-loader-spinner span {
    display: block;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #c9c9c9;

    animation:
        warehouseLoaderDot 1.2s ease-in-out infinite;
}


.warehouse-loader-spinner span:nth-child(2) {
    animation-delay: .15s;
}


.warehouse-loader-spinner span:nth-child(3) {
    animation-delay: .30s;
}


@keyframes warehouseLoaderDot {

    0%,
    60%,
    100% {
        opacity: .25;
        transform: scale(.75);
    }

    30% {
        opacity: 1;
        transform: scale(1);
    }

}


/* ==========================================================
   TEXTE
   ========================================================== */

.warehouse-loader-text {
    margin-top: 12px;

    color: rgba(255,255,255,.55);

    font-size: 11px;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 575.98px) {

    .warehouse-loader-content {
        width: 86vw;
    }

    .warehouse-loader-logo {
        max-width: 420px;
    }

    .warehouse-loader-spinner {
        margin-top: 22px;
    }

}
/* =========================================================
   PRODUCT EDIT
   ========================================================= */

.product-edit {
    width: 100%;
}


/* Header
--------------------------------------------------------- */

.product-edit-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 25px;
}

.product-edit-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #7b8087;
}

.product-edit-breadcrumb a {
    color: #7b8087;
    text-decoration: none;
}

.product-edit-breadcrumb a:hover {
    text-decoration: underline;
}

.product-edit-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.product-edit-subtitle {
    margin: 7px 0 0;
    color: #7b8087;
    font-size: 14px;
}

.product-edit-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* Alert
--------------------------------------------------------- */

.product-edit-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}


/* Cards
--------------------------------------------------------- */

.product-edit-card {
    background: #ffffff;
    border: 1px solid #e2e5e8;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-edit-card-header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px 20px;
    border-bottom: 1px solid #e2e5e8;
}

.product-edit-card-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.product-edit-card-header p {
    margin: 3px 0 0;
    font-size: 13px;
    color: #7b8087;
}

.product-edit-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 6px;
    background: #f1f2f3;
    color: #555b63;
    font-size: 15px;
}

.product-edit-card-body {
    padding: 22px 20px;
}

.product-edit-card-icon:has(img) {
    overflow: hidden;
}

.product-edit-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-scanned-box {
    position: relative;
    scroll-margin-top: 24px;
    box-shadow: 0 5px 20px rgba(13, 110, 253, 0);
    transition: border-color 1400ms ease-in-out, box-shadow 1400ms ease-in-out;
}

.product-box-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

#productBoxesRows > tr.box-save-confirmed > td {
    --bs-table-bg: #eaf7ee;
    border-top: 2px solid #198754;
    border-bottom: 2px solid #198754;
}
#productBoxesRows > tr.box-save-confirmed > td:first-child { border-left: 2px solid #198754; }
#productBoxesRows > tr.box-save-confirmed > td:last-child { border-right: 2px solid #198754; }
.product-scanned-box.is-highlighted.box-save-confirmed {
    border-color: #198754;
    box-shadow: 0 5px 20px rgba(25, 135, 84, 0.18);
    transition-duration: 250ms;
}
.product-scanned-box.is-highlighted.box-save-confirmed::after {
    border-color: #198754;
}
.product-scanned-box.is-highlighted.box-save-confirmed .product-edit-card-header {
    background: #eaf7ee;
    transition-duration: 250ms;
}

#productBoxesRows .product-box-edit-row > td {
    --bs-table-bg: #edf5ff;
    padding: 16px;
    border: 1px solid #b6d4fe;
}

#productBoxesRows .is-editing-box > td { --bs-table-bg: #edf5ff; }

.product-box-edit-row .product-add-container { margin-bottom: 0; }

@media (max-width: 767.98px) {
    #productBoxesTable { overflow: visible; }
    #productBoxesTable > table {
        display: block;
        width: 100%;
        min-width: 0;
    }
    #productBoxesTable > table > thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
    #productBoxesRows { display: grid; gap: 12px; width: 100%; }
    #productBoxesRows > tr[data-box-id] {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 12px;
        background: #fff;
        border: 1px solid #dce3e9;
        border-radius: 8px;
    }
    #productBoxesRows > tr[data-box-id] > td {
        display: block;
        min-width: 0;
        padding: 0;
        border: 0;
        background: transparent !important;
        box-shadow: none;
        overflow-wrap: anywhere;
    }
    #productBoxesRows > tr[data-box-id] > td:nth-child(1) { grid-column: 1; grid-row: 1; align-self: center; }
    #productBoxesRows > tr[data-box-id] > td:nth-child(5) { grid-column: 2; grid-row: 1; }
    #productBoxesRows > tr[data-box-id] > td:nth-child(2) { grid-column: 1; grid-row: 2; }
    #productBoxesRows > tr[data-box-id] > td:nth-child(4) { grid-column: 2; grid-row: 2; }
    #productBoxesRows > tr[data-box-id] > td:nth-child(3) { grid-column: 1 / -1; grid-row: 3; }
    #productBoxesRows > tr[data-box-id] > td:nth-child(2)::before,
    #productBoxesRows > tr[data-box-id] > td:nth-child(3)::before,
    #productBoxesRows > tr[data-box-id] > td:nth-child(4)::before {
        display: block;
        margin-bottom: 4px;
        font-size: 11px;
        color: #687581;
    }
    #productBoxesRows > tr[data-box-id] > td:nth-child(2)::before { content: 'Quantité'; }
    #productBoxesRows > tr[data-box-id] > td:nth-child(3)::before { content: 'Palette'; }
    #productBoxesRows > tr[data-box-id] > td:nth-child(4)::before { content: 'Statut'; }
    #productBoxesRows > tr.is-editing-box { background: #edf5ff; border-color: #9ec5fe; }
    #productBoxesRows > .product-box-edit-row { display: block; min-width: 0; }
    #productBoxesRows .product-box-edit-row > td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 10px;
        border-radius: 8px;
    }
    .product-box-edit-row .product-add-container { padding: 12px; }
    .product-box-edit-row .row > * { min-width: 0; }
    .product-box-edit-row .product-containers-table { min-width: 0; }
    #productBoxesRows .product-container-code { white-space: normal; overflow-wrap: anywhere; }
    #productBoxesRows > tr[data-box-id].box-save-confirmed {
        border: 2px solid #198754;
        background: #eaf7ee;
    }
    #productBoxesRows > tr[data-box-id].box-save-confirmed > td { border: 0; }
}

.detail-box-editor { min-width: 0; }
@media (max-width: 767.98px) {
    .detail-collapse-pending { display: none !important; }
}
@media (max-width: 767.98px) {
    .detail-product-boxes { overflow: visible; }
    .detail-product-boxes > table { display: block; width: 100%; min-width: 0; }
    .detail-product-boxes thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .detail-product-boxes tbody { display: grid; gap: 12px; width: 100%; }
    .detail-product-boxes tbody > tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 12px;
        background: #fff;
        border: 1px solid #dce3e9;
        border-radius: 8px;
    }
    .detail-product-boxes tbody > tr > td {
        display: block;
        min-width: 0;
        padding: 0;
        border: 0;
        background: transparent !important;
        box-shadow: none;
        overflow-wrap: anywhere;
        text-align: left !important;
    }
    .detail-product-boxes td:nth-child(1) { grid-column: 1; grid-row: 1; align-self: center; }
    .detail-product-boxes td:nth-child(6) { grid-column: 2; grid-row: 1; }
    .detail-product-boxes td:nth-child(2) { grid-column: 1; grid-row: 2; }
    .detail-product-boxes td:nth-child(3) { grid-column: 2; grid-row: 2; }
    .detail-product-boxes td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; }
    .detail-product-boxes td:nth-child(5) { grid-column: 1 / -1; grid-row: 4; }
    .detail-product-boxes td:nth-child(n+2):nth-child(-n+5)::before {
        display: block;
        margin-bottom: 4px;
        font-size: 11px;
        color: #687581;
    }
    .detail-product-boxes td:nth-child(2)::before { content: 'Quantité'; }
    .detail-product-boxes td:nth-child(3)::before { content: 'Statut'; }
    .detail-product-boxes td:nth-child(4)::before { content: 'Palette'; }
    .detail-product-boxes td:nth-child(5)::before { content: 'Entrepôt'; }
    .detail-product-boxes .product-container-code { white-space: normal; overflow-wrap: anywhere; }
}
.detail-box-editor .product-add-container { margin-bottom: 0; }
@media (max-width: 767.98px) {
    .detail-box-editor .product-add-container { padding: 12px; }
    .detail-box-editor .row > * { min-width: 0; }
    .detail-box-editor .product-containers-table { min-width: 0; }
    .detail-box-editor .form-select { max-width: 100%; }
}

.product-scanned-box.is-highlighted {
    border-color: #0d6efd;
    box-shadow: 0 5px 20px rgba(13, 110, 253, 0.18);
}

.product-scanned-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid #0d6efd;
    border-radius: 7px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 1400ms ease-in-out;
}

.product-scanned-box.is-highlighted::after { opacity: 1; }

.product-scanned-box .product-edit-card-header {
    background: #fff;
    transition: background-color 1400ms ease-in-out;
}

.product-scanned-box .product-edit-card-icon {
    transition: background-color 1400ms ease-in-out, color 1400ms ease-in-out;
}

.product-scanned-box.is-highlighted .product-edit-card-header {
    background: #edf5ff;
}

.product-scanned-box.is-highlighted .product-edit-card-icon {
    background: #0d6efd;
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .product-scanned-box,
    .product-scanned-box::after,
    .product-scanned-box .product-edit-card-header,
    .product-scanned-box .product-edit-card-icon { transition: none; }
}



/* Form
--------------------------------------------------------- */

.product-edit-form .form-label {
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #3e4349;
}

.product-edit-form .form-control {
    min-height: 42px;
    border-color: #d9dde1;
    border-radius: 6px;
    font-size: 14px;
}

.product-edit-form textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

.product-edit-form .form-control:focus {
    border-color: #8b9198;
    box-shadow: 0 0 0 0.2rem rgba(80, 86, 93, 0.10);
}

.product-edit-form .form-text {
    margin-top: 6px;
    font-size: 12px;
    color: #8a9097;
}


/* Status
--------------------------------------------------------- */

.product-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.product-status-title {
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #363b40;
}

.product-status-description {
    max-width: 280px;
    font-size: 12px;
    line-height: 1.5;
    color: #858b92;
}

.product-status .form-check {
    margin: 0;
    padding-left: 0;
}

.product-status .form-check-input {
    float: none;
    margin: 0;
    width: 2.5em;
    height: 1.35em;
    cursor: pointer;
}


/* Informations
--------------------------------------------------------- */

.product-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #eef0f2;
    font-size: 13px;
}

.product-info-row:first-child {
    padding-top: 0;
}

.product-info-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.product-info-row span {
    color: #858b92;
}

.product-info-row strong {
    font-weight: 600;
    color: #3d4248;
    text-align: right;
}


/* Footer
--------------------------------------------------------- */

.product-edit-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 5px;
    padding-top: 20px;
    border-top: 1px solid #e2e5e8;
}

.product-edit-footer .btn {
    min-height: 42px;
}


/* Responsive
--------------------------------------------------------- */

@media(max-width: 767.98px){

    .product-edit-header {
        flex-direction: column;
        gap: 18px;
    }

    .product-edit-actions {
        width: 100%;
    }

    .product-edit-actions .btn {
        flex: 1;
    }

    .product-edit-title {
        font-size: 24px;
    }

    .product-edit-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .product-edit-footer .btn {
        width: 100%;
    }

}
/* =========================================================
   PRODUCT CONTAINERS
   ========================================================= */

.product-containers-section {
    margin-top: 30px;
}

.product-logistics-group {
    display: grid;
    gap: 16px;
    margin-top: 30px;
    padding: 20px;
    background: #eaf0f6;
    border: 1px solid #d6e0e9;
    border-radius: 12px;
}

.product-logistics-group > .product-containers-section {
    margin-top: 0;
    background: #ffffff;
    border: 1px solid #e2e5e8;
    border-radius: 8px;
    overflow: hidden;
}

.product-logistics-group .product-section-header {
    margin-bottom: 0;
    padding: 16px;
    background: #ffffff;
}

.product-logistics-group > .product-containers-section > .collapse,
.product-logistics-group > .product-containers-section > .collapsing {
    padding: 0 16px;
}

.product-logistics-group > .product-containers-section > .collapse > :last-child,
.product-logistics-group > .product-containers-section > .collapsing > :last-child {
    margin-bottom: 16px;
}

@media (max-width: 767px) {
    .product-logistics-group { padding: 10px; gap: 12px; }
    .product-logistics-group .product-section-header { padding: 12px; }
}

.product-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.product-section-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 14px;
}

.product-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 7px;
    background: #f0f1f2;
    color: #555c63;
    font-size: 17px;
}

.product-section-header h2 {
    margin: 0;
    color: #30353a;
    font-size: 18px;
    font-weight: 700;
}

.product-section-header p {
    margin: 3px 0 0;
    color: #858b92;
    font-size: 13px;
}


/* Card
--------------------------------------------------------- */

.product-section-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e5e8;
    border-radius: 8px;
}


/* Table
--------------------------------------------------------- */

.product-containers-table {
    vertical-align: middle;
}

.product-containers-table thead th {
    padding: 13px 16px;
    background: #f6f7f8;
    border-bottom: 1px solid #dfe2e5;
    color: #555b62;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.product-containers-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #edf0f2;
    color: #41464c;
    font-size: 14px;
}

.product-containers-table tbody tr:last-child td {
    border-bottom: 0;
}

.product-containers-table tbody tr:hover {
    background: #fafbfc;
}


/* Box code
--------------------------------------------------------- */

.product-container-code {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 4px;
    background: #f1f2f3;
    color: #454b51;
    font-family: monospace;
    font-size: 12px;
    font-weight: 600;
}


/* Palette
--------------------------------------------------------- */

.product-palette-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 8px;
    border-radius: 5px;
    background: #f2f0eb;
    color: #665d4e;
    font-size: 12px;
    font-weight: 600;
}

.product-palette-badge i {
    font-size: 11px;
}

.product-no-palette {
    color: #92979c;
    font-size: 13px;
}


/* Status
--------------------------------------------------------- */

.product-container-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
}

.product-container-status > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.product-container-status.active {
    color: #477052;
}

.product-container-status.active > span {
    background: #65936d;
}

.product-container-status.inactive {
    color: #858a8f;
}

.product-container-status.inactive > span {
    background: #a4a8ac;
}


/* Empty state
--------------------------------------------------------- */

.product-section-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    padding: 35px 20px;
    text-align: center;
}

.product-section-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 15px;
    border-radius: 50%;
    background: #f1f2f3;
    color: #858b92;
    font-size: 21px;
}

.product-section-empty h3 {
    margin: 0 0 6px;
    color: #3e4349;
    font-size: 16px;
    font-weight: 700;
}

.product-section-empty p {
    margin: 0 0 18px;
    color: #858b92;
    font-size: 13px;
}


/* Responsive
--------------------------------------------------------- */

@media(max-width: 767.98px){

    .product-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-section-header .btn {
        width: 100%;
    }

    .product-containers-table {
        min-width: 750px;
    }

}
/* =========================================================
   ADD CONTAINER FORM
   ========================================================= */

.product-add-container {
    padding: 20px;
    margin-bottom: 15px;
    background: #fafbfc;
    border: 1px solid #e2e5e8;
    border-radius: 8px;
}

.product-add-container .form-label {
    margin-bottom: 7px;
    color: #3e4349;
    font-size: 13px;
    font-weight: 600;
}

.product-add-container .form-control,
.product-add-container .form-select {
    min-height: 42px;
    border-color: #d9dde1;
    border-radius: 6px;
    font-size: 14px;
}

.product-add-container .form-control:focus,
.product-add-container .form-select:focus {
    border-color: #8b9198;
    box-shadow: 0 0 0 0.2rem rgba(80, 86, 93, 0.10);
}

@media (max-width: 991.98px) {
    #boxForm .form-control,
    #boxForm .form-select,
    #addBoxForm .js-scan-form .form-control,
    #addBoxForm .js-scan-form .form-select {
        font-size: 16px;
    }
}
/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .warehouse-loader-logo,
    .warehouse-loader-spinner span {
        animation: none;
    }

    .warehouse-loader {
        transition: none;
    }

}
/* Tableau de bord : indicateurs réels de l'inventaire */
.dashboard-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}
.dashboard-eyebrow {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    margin-bottom: 10px;
}
.dashboard-heading h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin: 0 0 10px; color: #172337; }
.dashboard-heading p { color: #64748b; margin: 0; }
.dashboard-heading .btn { flex-shrink: 0; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.dashboard-metric {
    display: flex;
    flex-direction: column;
    padding: 26px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    color: #172337;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(25, 45, 75, .035);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dashboard-metric:hover { color: #172337; transform: translateY(-3px); border-color: #93b9fb; box-shadow: 0 12px 28px rgba(25, 45, 75, .09); }
.dashboard-metric:focus-visible { outline: 3px solid #0d6efd; outline-offset: 4px; }
.dashboard-metric-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.dashboard-metric-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: #eaf2ff; color: #2466c9; font-size: 22px; }
.dashboard-metric-boites .dashboard-metric-icon { background: #fff1e3; color: #b96b1c; }
.dashboard-metric-produits .dashboard-metric-icon { background: #edf8f2; color: #25855c; }
.dashboard-metric-palettes .dashboard-metric-icon { background: #f1edff; color: #7653c7; }
.dashboard-metric-arrow { color: #94a3b8; font-size: 14px; }
.dashboard-metric h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.dashboard-metric-value { font-size: clamp(36px, 4vw, 52px); font-weight: 750; line-height: 1.15; letter-spacing: -.035em; overflow-wrap: anywhere; }
.dashboard-metric p { color: #64748b; font-size: 13px; margin: 12px 0 24px; }
.dashboard-metric-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 17px; border-top: 1px solid #edf1f5; color: #2466c9; font-size: 13px; font-weight: 600; }
.dashboard-metric-unites { grid-column: span 2; background: linear-gradient(125deg, #123d80, #176add); border-color: #185dbb; color: #fff; }
.dashboard-metric-unites:hover { color: #fff; border-color: #8ab9ff; }
.dashboard-metric-unites .dashboard-metric-icon { background: rgba(255,255,255,.14); color: #fff; }
.dashboard-metric-unites p, .dashboard-metric-unites .dashboard-metric-arrow { color: #d1e3ff; }
.dashboard-metric-unites .dashboard-metric-link { color: #fff; border-color: rgba(255,255,255,.2); }
.dashboard-note { display: flex; align-items: baseline; gap: 9px; color: #64748b; font-size: 12px; margin: 24px 0 0; }
@media (max-width: 991px) {
    .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-metric-unites { grid-column: auto; }
}
@media (max-width: 575px) {
    .dashboard-heading { align-items: flex-start; flex-direction: column; }
    .dashboard-metrics { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .dashboard-metric { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .dashboard-metric { transition: none; }
    .dashboard-metric:hover { transform: none; }
}
/* Contenu des boîtes : produits et quantités regroupés dans un seul panneau. */
.box-content-panel { padding: 24px; border: 1px solid #b6d4fa; border-radius: 10px; background: #edf5ff; color: #17324d; min-width: 0; }
.box-content-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.box-content-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 9px; background: #dcecff; color: #0d6efd; font-size: 22px; }
.box-content-heading h3 { margin: 0 0 4px; font-size: 1.15rem; font-weight: 700; }
.box-content-heading p { color: #607894; font-size: .9rem; }
.box-content-badge { padding: 5px 10px; border: 1px solid #8dbbfa; border-radius: 6px; color: #0d6efd; background: #f6faff; font-size: .75rem; font-weight: 600; text-transform: uppercase; }
.product-box-content-list > .list-group-item:nth-child(even) { background-color: #f5f8fa; }
.product-box-content-list a { text-decoration: none; overflow-wrap: anywhere; }
.product-box-content-list a:hover, .product-box-content-list a:focus-visible { color: #084298; text-decoration: none; }
.product-box-content-list strong { white-space: nowrap; }
.box-content-products { display: grid; gap: 16px; }
.box-content-products > .js-box-extra-products:empty { display: none !important; }
.box-content-product { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(100px, .65fr) minmax(180px, 1.2fr) 34px; align-items: center; gap: 16px; padding: 20px; border: 1px solid #dfe7ef; border-radius: 9px; background: #fff; min-width: 0; }
.box-content-identity, .box-content-quantity, .box-content-client { min-width: 0; }
.box-content-identity strong { display: block; font-weight: 600; overflow-wrap: anywhere; }
.box-content-identity span { display: block; margin-top: 5px; font-size: .85rem; color: #607894; overflow-wrap: anywhere; }
.box-content-product .form-label { display: block; margin: 0 0 7px; font-size: .85rem; }
.box-content-product label:has(input), .box-content-product label:has(select) { margin-bottom: 0; }
.box-content-product label input, .box-content-product label select { margin-top: 7px; }
.box-content-remove { align-self: end; padding-bottom: 2px; }
.box-content-remove .btn { width: 34px; height: 36px; padding: 0; border-color: transparent; background: #fff; }
.box-content-remove .btn:hover, .box-content-remove .btn:focus-visible { background: #dc3545; border-color: #dc3545; color: #fff; }
.box-content-footer { margin-top: 20px; }
.box-content-footer .btn { background: #fff; }
.box-content-footer .btn:hover, .box-content-footer .btn:focus-visible { background: #0d6efd; color: #fff; }
.box-content-footer p { margin: 10px 0 0; color: #607894; font-size: .8rem; }
.box-content-search { margin-top: 16px; padding: 16px; border: 1px solid #d4e1f0; border-radius: 8px; background: #fff; }
@media (max-width: 991.98px) {
    .box-content-product { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 34px; gap: 12px; }
    .box-content-identity { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
    .box-content-panel { padding: 16px; }
    .box-content-heading { gap: 10px; flex-wrap: wrap; }
    .box-content-heading h3 { font-size: 1rem; }
    .box-content-icon { width: 38px; height: 38px; flex-basis: 38px; font-size: 18px; }
    .box-content-badge { margin-left: auto; }
    .box-content-product { padding: 16px; grid-template-columns: minmax(0, 1fr) 34px; }
    .box-content-quantity { grid-column: 1; }
    .box-content-client { grid-column: 1 / -1; grid-row: 3; }
    .box-content-remove { grid-column: 2; grid-row: 2; }
    .box-content-remove-space { display: none; }
    .box-content-footer .btn { width: 100%; }
}
