.lot-topbar{
    height:6px;
    border-radius:12px 12px 0 0;
}

.lot-scroll{
    max-height: 620px;
    overflow-y: auto;
    padding-right: 6px;
}

.lot-scroll::-webkit-scrollbar{
    width: 6px;
}

.lot-scroll::-webkit-scrollbar-thumb{
    background: #cbd5e1;
    border-radius: 20px;
}

.lot-scroll::-webkit-scrollbar-track{
    background: #edf2f7;
    border-radius: 20px;
}

.lot-card-modern{
    border-radius: 18px;
    background: #fff;
    border: 1px solid #eef2f7;
    transition: all .25s ease;
    overflow: hidden;
    position: relative;
}

.lot-card-modern:hover{
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

.lot-topbar{
    height: 5px;
    background: linear-gradient(90deg,#5e72e4,#825ee4);
}

.lot-avatar{
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(94,114,228,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5e72e4;
    font-size: 24px;
}

.lot-title{
    font-size: 15px;
    font-weight: 700;
    color: #344767;
}

.lot-subtitle{
    font-size: 11px;
    color: #8392AB;
}

.ingredient-item{
    background: #f8f9fa;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
    transition: all .2s ease;
}

.ingredient-item:hover{
    background: #edf2f7;
}

.ingredient-name{
    font-size: 12px;
    font-weight: 600;
    color: #344767;
}

.ingredient-value{
    font-size: 11px;
    font-weight: 700;
    color: #5e72e4;
}

.lot-footer-box{
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        rgba(94,114,228,.08),
        rgba(130,94,228,.04)
    );
    padding: 12px;
}

.lot-footer-value{
    font-size: 14px;
    font-weight: 700;
}

.lot-status-dot{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #82d616;
    animation: pulseLot 2s infinite;
}

@keyframes pulseLot{

    0%{
        box-shadow: 0 0 0 0 rgba(130,214,22,.5);
    }

    70%{
        box-shadow: 0 0 0 10px rgba(130,214,22,0);
    }

    100%{
        box-shadow: 0 0 0 0 rgba(130,214,22,0);
    }
}
    .module-card{
        transition: all .2s ease-in-out;
        cursor:pointer;
    }

    .module-card:hover{
        transform: translateY(-4px);
        box-shadow:0 10px 25px rgba(0,0,0,.08);
        background:#f8f9fa;
    }

    .kpi-card{
        border:none;
        transition: all .2s ease-in-out;
    }

    .kpi-card:hover{
        transform: translateY(-3px);
        box-shadow:0 10px 20px rgba(0,0,0,.08);
    }

    .mini-label{
        font-size:11px;
        text-transform:uppercase;
        color:#8392AB;
        font-weight:700;
        margin-bottom:4px;
    }

    .alert-item{
        border-left:4px solid;
        padding:12px 15px;
        border-radius:10px;
        background:#fff;
    }

    .alert-danger-custom{
        border-color:#ea0606;
    }

    .alert-warning-custom{
        border-color:#fbcf33;
    }

    .table thead th{
        font-size:11px;
        text-transform:uppercase;
        font-weight:700;
        color:#8392AB;
    }

    .progress{
        height:6px;
    }

    .lot-item{
        min-height: 250px;
    }

    .card-body::-webkit-scrollbar{
        width: 6px;
    }

    .card-body::-webkit-scrollbar-thumb{
        background: rgba(0,0,0,0.15);
        border-radius: 10px;
    }

    /** Alertes */
    .alert-card{
        position: relative;
        overflow: hidden;
        border-radius: 14px;
        padding: 14px 16px;
        background: #fff;
        transition: all .25s ease;
        border-left: 5px solid;
    }

    .alert-card:hover{
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0,0,0,.08);
    }

    .alert-card-danger{
        border-color: #ea0606;
        background: rgba(234,6,6,0.04);
    }

    .alert-card-warning{
        border-color: #fbcf33;
        background: rgba(251,207,51,0.08);
    }

    .alert-card-info{
        border-color: #17c1e8;
        background: rgba(23,193,232,0.06);
    }

    .alert-icon{
        width: 42px;
        height: 42px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 14px;
        flex-shrink: 0;
    }

    .alert-icon-danger{
        background: rgba(234,6,6,.15);
        color: #ea0606;
    }

    .alert-icon-warning{
        background: rgba(251,207,51,.2);
        color: #d39e00;
    }

    .alert-icon-info{
        background: rgba(23,193,232,.18);
        color: #17c1e8;
    }

    .alert-title{
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 2px;
    }

    .alert-subtitle{
        font-size: 11px;
        color: #8392AB;
    }

    .alert-pulse{
        animation: pulseAlert 1.8s infinite;
    }

    @keyframes pulseAlert{

        0%{
            box-shadow: 0 0 0 0 rgba(234,6,6,.5);
        }

        70%{
            box-shadow: 0 0 0 12px rgba(234,6,6,0);
        }

        100%{
            box-shadow: 0 0 0 0 rgba(234,6,6,0);
        }
    }

    .alert-dot{
        width: 10px;
        height: 10px;
        border-radius: 50%;
        margin-left: auto;
    }

    .alert-dot-danger{
        background: #ea0606;
        animation: blinkDanger 1s infinite;
    }

    .alert-dot-warning{
        background: #fbcf33;
    }

    @keyframes blinkDanger{
        0%{ opacity:1; }
        50%{ opacity:.2; }
        100%{ opacity:1; }
    }

    /** Top consommation */
        .conso-card{
        border-radius: 14px;
        padding: 7px 16px;
        background: #fff;
        border: 1px solid #f1f3f5;
        transition: all .25s ease;
    }

    .conso-card:hover{
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(0,0,0,.08);
    }

    .conso-rank{
        width: 38px;
        height: 38px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        color: #fff;
        font-size: 14px;
    }

    .rank-1{
        background: linear-gradient(135deg,#5e72e4,#825ee4);
    }

    .rank-2{
        background: linear-gradient(135deg,#fbcf33,#f59e0b);
    }

    .rank-3{
        background: linear-gradient(135deg,#17c1e8,#0ea5e9);
    }

    .rank-default{
        background: linear-gradient(135deg,#8392AB,#6c757d);
    }

    .conso-title{
        font-size: 14px;
        font-weight: 700;
        color: #344767;
    }

    .conso-subtitle{
        font-size: 11px;
        color: #8392AB;
    }

    .conso-progress{
        height: 10px;
        border-radius: 30px;
        overflow: hidden;
        background: #edf2f7;
    }

    .conso-progress-bar{
        height: 100%;
        border-radius: 30px;
        transition: width 1s ease;
        position: relative;
    }

    .conso-progress-bar::after{
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        width: 40px;
        height: 100%;
        background: rgba(255,255,255,.2);
        filter: blur(4px);
    }

    .bg-conso-primary{
        background: linear-gradient(90deg,#5e72e4,#825ee4);
    }

    .bg-conso-warning{
        background: linear-gradient(90deg,#fbcf33,#f59e0b);
    }

    .bg-conso-info{
        background: linear-gradient(90deg,#17c1e8,#0ea5e9);
    }
