/* Styles pour les mini graphiques de production */
.mini-chart-container {
    width: 200px;
    height: 80px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2px;
    background-color: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-chart {
    max-width: 196px !important;
    max-height: 76px !important;
    min-width: 196px !important;
    min-height: 76px !important;
}

.mini-chart canvas {
    max-width: 100% !important;
    max-height: 100% !important;
}

/* Placeholder pour capteurs hors ligne */
.mini-chart-placeholder {
    width: 200px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 4px;
    border: 1px dashed #ccc;
    color: #888;
    font-size: 12px;
    font-style: italic;
}

/* Responsive design pour les tableaux */
@media (max-width: 1200px) {
    .mini-chart-container,
    .mini-chart-placeholder {
        width: 150px;
        height: 60px;
    }
    
    .mini-chart {
        max-width: 146px !important;
        max-height: 56px !important;
        min-width: 146px !important;
        min-height: 56px !important;
    }
}

@media (max-width: 768px) {
    .mini-chart-container,
    .mini-chart-placeholder {
        width: 120px;
        height: 50px;
    }
    
    .mini-chart {
        max-width: 116px !important;
        max-height: 46px !important;
        min-width: 116px !important;
        min-height: 46px !important;
    }
}

/* État de chargement pour les mini graphiques */
.mini-chart-loading {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 4px;
    color: #6c757d;
    font-size: 11px;
    animation: pulse 1.5s infinite;
}

/* Conteneur en cours de chargement */
.mini-chart-container.mini-chart-loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}
