/* =========================
   PLANNING
   ========================= */

.planning {
    width: 340px;
    box-sizing: border-box;
}


/* =========================
   BARRE DU PLANNING
   ========================= */

.planning-bar {
    display: flex;
    gap: 3px;
    padding: 4px;
    box-sizing: border-box;
}


/* Label "Semi" / "Vente" */

.planning-bar > div:first-child {
    width: 50px;
    min-width: 50px;
    flex: 0 0 50px;
}


/* Cases des mois */

.planning-bar .mois {
    flex: 1 1 0;
    min-width: 0;
    height: 18px;

    background: #e6e6e6;
    border-radius: 4px;

    cursor: pointer;

    transition: transform .2s, box-shadow .2s, background .2s;
}


/* =========================
   TYPES DE BARRES
   ========================= */

.semis {
    border-width: 1px;
    padding: 4px;
    box-sizing: border-box;

    background-color: #ffd700cf;
    border-radius: 8px;
}

.vente {
    border-width: 1px;
    padding: 4px;
    box-sizing: border-box;

    background-color: #ffd5eecf;
    border-radius: 8px;
}


/* =========================
   NIVEAUX
   ========================= */

.niveau1 {
    background: #4CAF50 !important;
}

.niveau2 {
    background: #FF9800 !important;
}

.niveau3 {
    background: #F44336 !important;
}


/* =========================
   MOIS COURANT
   ========================= */

.planning-bar .mois.courant {
    box-shadow:
        0 0 0 2px #fff inset,
        0 0 8px rgba(255, 0, 0, 0.78);
}


/* =========================
   MOIS SÉLECTIONNÉ
   ========================= */

.mois.selectionne {
    background: #2196f3 !important;
}


/* =========================
   HOVER
   ========================= */

.planning-bar .mois:hover {
    transform: scaleY(1.4);
}


/* =========================
   LIGNE DES NOMS DE MOIS
   ========================= */

.planning-mois {
    display: flex;
    gap: 3px;

    padding: 0 4px;
    box-sizing: border-box;

    font-size: 11px;
    font-weight: bold;
    color: #666;

    text-align: center;
}


/* Espace correspondant à "Semi" */

.planning-mois > div:first-child {
    width: 50px;
    min-width: 50px;
    flex: 0 0 50px;
}


/* J F M A M J J A S O N D */

.planning-mois > div:not(:first-child) {
    flex: 1 1 0;
    min-width: 0;

    text-align: center;
}
