/* Fix répartition sidebar droite - Priorité maximale */

/* Forcer la sidebar en flexbox colonne */
aside#sidebar-right.sidebar-right {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    max-height: 100vh !important;
}

/* Widgets donations et événement - taille auto */
aside#sidebar-right.sidebar-right > div:nth-child(1),
aside#sidebar-right.sidebar-right > div:nth-child(2) {
    flex: 0 0 auto !important;
}

/* Widget Streamers en ligne - hauteur limitée */
aside#sidebar-right.sidebar-right > div:nth-child(3) {
    flex: 0 0 auto !important;
    max-height: 120px !important;
    min-height: 80px !important;
    display: flex !important;
    flex-direction: column !important;
}

aside#sidebar-right.sidebar-right > div:nth-child(3) > h3 {
    flex: 0 0 auto !important;
}

aside#sidebar-right.sidebar-right > div:nth-child(3) > div {
    flex: 1 !important;
    overflow-y: auto !important;
}

/* Widget Streamers hors ligne - prend tout l'espace restant */
aside#sidebar-right.sidebar-right > div:nth-child(4) {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

aside#sidebar-right.sidebar-right > div:nth-child(4) > h3 {
    flex: 0 0 auto !important;
}

aside#sidebar-right.sidebar-right > div:nth-child(4) > div {
    flex: 1 !important;
    overflow-y: auto !important;
    min-height: 0 !important;
}
