:root {
    --separator: var(--action-separator);
}

.agenda {
    color: var(--primary-color);
    font: var(--font-small-regular);
    width: 100%;
    overflow-y: auto;
}

.agenda-trackHeader {
    position: sticky;
    top: 30px;
    background: white;
    place-content: center;
    text-transform: capitalize;
    padding: 5px 0;
    cursor: pointer;
}

.agenda-trackHeader:empty {
    background: white;
    cursor: unset;
}

.agenda-today {
    background-color: var(--light-primary-bg);
    color: white;
    border-radius: 15px;
    height: 22px;
    width: 22px;
    line-height: 22px;
    text-align: center;

}

.agenda-track {
}

.agenda-trackBg {
    display: flex;
    border-top: var(--separator);
    border-left: var(--separator);
    border-right: var(--separator);

}

.agenda-trackBg > * {
    box-sizing: border-box;
    border-bottom: var(--separator);
    flex-grow: 1;
    min-height: 5px;
}

.agenda-ruler {
    position: relative;
    background-color: var(--agenda-multiday-bg);
}

.agenda-ruler, .agenda-trackBg {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-items: stretch;
}

.agenda-ruler > * {
    padding-right: 5px;
    padding-left: 5px;
}

.agenda-ruler > *, .agenda-trackBg > * {
    flex-grow: 1;
}

.agenda-appointmentCell {
    position: absolute;
    width: 100%;
    pointer-events: all;
    min-height: 20px;
}

.agenda-appointmentCell > :first-child {
    border-left: 8px solid transparent;
    border-radius: 4px;
}

.agenda-itemGutterCell {
    position: absolute;
    width: 21px;
    border-radius: 5px 0 0 5px;
    text-orientation: mixed;
    writing-mode: vertical-rl;
    font: var(--font-small-medium);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: visible;
}

.agenda-copy {
    position: absolute;
    top: 0;
    right: 0;
    margin-right: 0;
    margin-bottom: 5px;
    background-color: white;
    padding: 5px 3px;
    border-radius: 50%;
    box-shadow: 0 1px 4px;
}

.agenda-copy:hover {
    background-color: var(--icon-Hover);
}

.agenda-underlayCell {
    position: absolute;
    width: 100%;
    pointer-events: none;
}

.agenda-month {
    color: var(--primary-color);
    background-color: white;
    height: 720px;
    font: var(--font-small-regular);
}

.agenda-appointmentMonth {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.agenda-month .agenda-trackHeader {
    text-align: center;
}

.agenda-month .agenda-track {
    border: var(--action-separator);
    align-items: flex-end;
}

.agenda-month .agenda-track > :first-child {
    font: var(--font-small-medium);
    line-height: 22px;
    height: 22px;
    margin-right: 5px;
    margin-top: 3px;
}

.agenda-month .agenda-track > :not(:first-child) {
    align-items: flex-start;
}


.agenda-weekend {
    background-color: var(--body-bg);
}


.agenda-multiDay {
    position: relative !important;
    display: flex;
    align-items: center;
    color: var(--dark-secondary-color);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.agenda .agenda-multiDay {
    width: auto;
    height: 28px;
    margin: 0 1px;
}

.agenda-multiDayTrack {
    position: sticky;
    top: 62px;
    background-color: var(--agenda-multiday-bg);
}

.agenda-multiDayTrack > *:not(.agenda-multiDay, .agenda-instruction) {
    border: var(--action-separator);
}

.agenda-multiDay.agenda-begin {
    border-bottom-left-radius: 4px;
    border-top-left-radius: 4px;
}

.agenda-multiDay.agenda-end {
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
}

.agenda-weekTrack {
    margin-top: 28px;
    pointer-events: none;
    row-gap: 3px;
}

.agenda-weekTrack > * {
    row-gap: 3px;
}

.agenda-weekTrack > * > * {
    padding: 2px 5px;
    margin: 0 2px;
}

.agenda-toolbar {
    position: sticky;
    top: 0;
    background-color: white !important;
    padding: 0 10px;
}

.agenda-delete-popup-width {
    width: 800px;
}

.agenda-free {
    background-color: var(--agenda-free-bg) !important;
}

.agenda-circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    line-height: 15px;
    margin: 0 0 3px 10px;
    vertical-align: top;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(120, 120, 120);
    position: sticky;
    right: 0;
}

.agenda-notWorkingHour {
    background-color: rgba(34, 174, 233, 0.1);
}

.agenda-underlayVacations {
    pointer-events: none;
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
}

.agenda-underlayVacations > * {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agenda-toolTip {
    font: var(--font-small-regular);
}

.agenda-instruction {
    justify-content: center;
    margin: 2px;
    border-radius: 4px 4px 0 4px;
    border: darkgrey 1px solid;

    /* #ffa500 : couleur de l'icône post-it */
    /* 1er gradiant : couleur du coin qui remonte en bas à droite */
    /* 2ème gradiant : couleur du reste */
    background:
            linear-gradient(to bottom right, #ffa500 3px, darkgrey 6px, transparent 6px) 100% 100%/8px 8px no-repeat,
            linear-gradient(-45deg, transparent 5px, #ffedb4 5px) 0 0 /100% 100% no-repeat,
            transparent;
}

.agenda-instruction-content {
    padding: 3px;
    width: 100%;
    height: 100%;
    justify-content: center;
    /* pour que le bouton edit puisse être placé en 'absolute' */
    position: relative;
}

.agenda-instruction-content:after {
    content: '';
    width: 8px;
    height: 8px;
    border-top: 1px solid darkgrey;
    border-left: 1px solid darkgrey;
    border-bottom: 1px solid var(--agenda-multiday-bg);
    border-right: 1px solid var(--agenda-multiday-bg);
    right: -1px;
    bottom: 2px;
    position: absolute;
}

.agenda-instruction-label {
    text-align: center;
}

.agenda-instruction-edit, .agenda-instruction-delete {
    position: absolute;
    background-color: #ffedb4;
    border-radius: 50%;
    border: 1px solid darkgrey;
    padding: 3px;
}

.agenda-instruction-edit {
    right: 20px;
    top: 4px;
}

.agenda-instruction-delete {
    right: 2px;
    top: 4px;
}

/*---------------------------------*/
/* Ecran de replanification de RDV */
/*---------------------------------*/
.agendaReplanRdv-filterList {

}

.agendaReplanRdv-replanFrom {

}

.agendaReplanRdv-rdvCount {

}

.agendaReplanRdv-dateSearch > :last-child {
    margin-left: 10px;
}

.agendaReplanRdv-hideTitle {
    display: none;
}

.agenda-topHide {
    position: sticky;
    place-self: start center;
    top: 100px;
}

.agenda-bottomHide {
    position: sticky;
    place-self: end center;
    bottom: 10px;
}

.agenda-dropOver {
    display: flex;
    justify-content: flex-end;
    position: relative;
    border: var(--separator);
    height: 0;
    pointer-events: none;
    border-radius: 4px;
    margin: 0 2px;
    background-image: repeating-linear-gradient(-45deg, transparent, transparent 3px, var(--body-bg) 3px, var(--body-bg) 6px);
}

.agenda-dropOver > *:first-child {
    background-color: var(--body-bg);
    border-radius: 4px 4px 0 0;
    position: relative;
    top: -19px;
    height: 15px;
    padding: 2px;
    font: var(--font-small-medium);
    z-index: 1;
}

@media print {
    .agenda {
        overflow-y: hidden;
    }

    .agenda-notWorkingHour {
        background-color: unset;
    }

    .agenda-today {
        background-color: white;
        color: unset;
    }
}

