.ec{
    -color-scheme:light;
    --ec-h: 0;
    --ec-s: 0%;
    --ec-l-300: 91%;
    --ec-l-500: 83.5%;
    --ec-l-600: 78.4%;
    --ec-l-700: 71.4%;
    --ec-bg-fallback-color: #fff;
    --ec-hs: var(--ec-h), var(--ec-s);
    --ec-color-300: hsl(var(--ec-hs), var(--ec-l-300));
    --ec-color-500: hsl(var(--ec-hs), var(--ec-l-500));
    --ec-color-600: hsl(var(--ec-hs), var(--ec-l-600));
    --ec-color-700: hsl(var(--ec-hs), var(--ec-l-700));
    --ec-border-color: var(--ec-color-500);
    --ec-accent-color: var(--ec-color-600);
    --ec-button-bg-color: var(--ec-bg-color);
    --ec-button-border-color: var(--ec-color-600);
    --ec-button-text-color: var(--ec-text-color);
    --ec-button-active-bg-color: var(--ec-color-300);
    --ec-button-active-border-color: var(--ec-color-700);
    --ec-button-active-text-color: var(--ec-button-text-color);
    --ec-event-bg-color: #039be5;
    --ec-event-text-color: #fff;
    --ec-bg-event-color: var(--ec-color-500);
    --ec-bg-event-opacity: .3;
    --ec-list-day-bg-color: var(--ec-bg-color, var(--ec-bg-fallback-color));
    --ec-today-bg-color: rgba(255, 220, 40, .15);
    --ec-highlight-color: rgba(188, 232, 241, .3);
    --ec-popup-bg-color: var(--ec-bg-color, var(--ec-bg-fallback-color));
    --ec-now-indicator-color: #ea4335
}
.ec-dark .ec{
    color-scheme:dark;
    --ec-h: 215;
    --ec-s: 15%;
    --ec-l-300: 25.5%;
    --ec-l-500: 42.4%;
    --ec-l-600: 49.8%;
    --ec-l-700: 57.3%;
    --ec-bg-fallback-color: #22272e
}
@media (prefers-color-scheme: dark){
    .ec-auto-dark .ec{
    color-scheme:dark;
    --ec-h: 215;
    --ec-s: 15%;
    --ec-l-300: 25.5%;
    --ec-l-500: 42.4%;
    --ec-l-600: 49.8%;
    --ec-l-700: 57.3%;
    --ec-bg-fallback-color: #22272e
    }
}
.ec-timeline .ec-container{
    display:flex;
    flex:1 1 0%;
    min-height:0;
    align-self:center;
}
.ec-timeline .ec-main{
    display:flex;
    flex-direction:column;
    min-width:0
}
.ec-timeline .ec-content{
    flex-direction:column
}
.ec-timeline .ec-body{
    flex:1 1 auto;
    overflow:auto
}
.ec-timeline .ec-body .ec-content{
    min-height:100%;
    min-width:max-content;
    position:relative
}
.ec-timeline .ec-body .ec-days{
    flex-shrink:0
}
.ec-timeline .ec-body .ec-days:not(:last-child){
    flex-grow:0
}
.ec-timeline .ec-header{
    overflow:hidden
}
.ec-timeline .ec-header .ec-days{
    min-width:max-content
}
.ec-timeline .ec-header .ec-day{
    flex-basis:auto;
    display:flex;
    flex-direction:column;
    font-weight: bold;
}
.ec-timeline .ec-header .ec-day:first-child .ec-day-head,.ec-timeline .ec-header .ec-day:first-child .ec-time:first-child,.ec-timeline .ec-day{
    border:none
}
.ec-timeline .ec-day-head{
    border-style:none none none solid
}
.ec-timeline .ec-times{
    display:flex;
    border-top:1px solid var(--ec-border-color);
    text-align: left;
}
.ec-timeline .ec-time{
    border-left:1px solid var(--ec-border-color);
    box-sizing:border-box;
    font-size:.95em;
    min-height:24px;
    overflow:hidden;
    text-overflow:ellipsis
}
.ec-timeline .ec-time,.ec-timeline .ec-line{
    width:66px
}
.ec-timeline .ec-events{
    position:relative;
    height:100%;
    margin:0;
    border-right: 1px solid black;
}
.ec-timeline .ec-event{
    position:absolute
}
.ec-timeline .ec-bg-event{
    height:100%;
    z-index:auto
}
.ec-timeline .ec-lines{
    display:flex
}
.ec-timeline .ec-line:not(:first-child):after{
    content:"";
    position:absolute;
    height:100%;
    border-left:1px solid var(--ec-border-color);
    pointer-events:none
}
.ec-timeline .ec-sidebar{
    padding:0;
    border:1px solid var(--ec-border-color);
    border-right-style:none
}
.ec-timeline .ec-sidebar .ec-sidebar-title{
    flex-shrink:0;
    border-bottom:1px solid var(--ec-border-color);
    box-sizing:content-box
}
.ec-timeline .ec-sidebar .ec-content{
    flex:1;
    overflow:hidden
}
.ec-timeline .ec-sidebar .ec-resource{
    padding:0 8px;
    flex-shrink:0
}
.ec-timeline .ec-sidebar .ec-resource:not(:last-child){
    flex-grow:0;
    border-bottom:1px solid var(--ec-border-color)
}
.ec-timeline .ec-sidebar .ec-resource:last-child{
    flex-basis:100%!important
}
.ec-timeline .ec-sidebar .ec-resource span{
    padding-top:8px
}
.ec-time-grid .ec-body .ec-event{
    position:absolute
}
.ec-time-grid .ec-body .ec-event-title{
    position:sticky;
    top:0
}
.ec-time-grid .ec-body .ec-resizer{
    left:0;
    right:0;
    bottom:0;
    height:50%;
    max-height:8px;
    cursor:ns-resize
}
.ec-time-grid .ec-body .ec-resizer.ec-start{
    bottom:auto;
    top:0
}
.ec-time-grid .ec-bg-event{
    width:100%;
    z-index:1
}
.ec-time-grid .ec-time{
    position:relative;
    line-height:24px;
    top:-12px;
    text-align:right
}
.ec-time-grid .ec-header .ec-time,.ec-time-grid .ec-all-day .ec-time{
    visibility:hidden;
    overflow-y:hidden;
    height:0
}
.ec-time-grid .ec-time,.ec-time-grid .ec-line{
    height:24px
}
.ec-time-grid .ec-lines{
    width:8px
}
.ec-time-grid .ec-line:not(:first-child):after{
    content:"";
    position:absolute;
    width:100%;
    border-bottom:1px solid var(--ec-border-color);
    pointer-events:none
}
.ec-time-grid .ec-body:not(.ec-compact) .ec-line:nth-child(2n):after{
    border-bottom-style:dotted
}
.ec-time-grid .ec-sidebar-title{
    visibility:hidden;
    overflow-y:hidden;
    height:0;
    text-align:right
}
.ec-time-grid .ec-all-day .ec-sidebar-title{
    visibility:visible;
    height:auto;
    padding:8px 0
}
.ec-day-grid .ec-body{
    flex:1 1 auto
}
.ec-day-grid .ec-body .ec-day{
    min-height:5em;
    position:relative
}
.ec-day-grid .ec-content{
    flex-direction:column;
    height:100%
}
.ec-day-grid .ec-uniform .ec-content{
    overflow:hidden
}
.ec-day-grid .ec-uniform .ec-days{
    flex:1 1 0%;
    min-height:0
}
.ec-day-grid .ec-uniform .ec-day{
    min-height:0
}
.ec-day-grid .ec-day:first-child{
    border-left:none
}
.ec-day-grid .ec-day-head{
    display:flex;
    flex-direction:row-reverse;
    justify-content:center;
    border:none;
    padding:4px 4px 3px;
    font-weight: bold;
}
.ec-day-grid .ec-day-foot{
    position:absolute;
    bottom:0;
    padding:2px;
    font-size:.85em
}
.ec-day-grid .ec-day-foot a{
    cursor:pointer
}
.ec-days,.ec-day,.ec-resource{
    flex:1 1 0;
    min-width:0;
    max-width:100%
}
.ec{
    display:flex;
    flex-direction:column;
    color:var(--ec-text-color);
    background-color:var(--ec-bg-color);
    -webkit-tap-highlight-color:transparent
}
.ec ::-webkit-scrollbar{
    background-color:transparent
}
.ec ::-webkit-scrollbar-thumb{
    border:4px solid transparent;
    box-shadow:none;
    background-color:var(--ec-border-color);
    background-clip:padding-box;
    border-radius:8px;
    min-height:40px
}
.ec :hover::-webkit-scrollbar-thumb{
    background-color:var(--ec-accent-color)
}
.ec-hidden-scroll{
    display:none;
    overflow-y:scroll;
    visibility:hidden;
    flex-shrink:0
}
.ec-with-scroll .ec-hidden-scroll{
    display:block
}
.ec-toolbar{
    flex:0 0 auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:1em
}
.ec-toolbar>*{
    margin-bottom:-.5em
}
.ec-toolbar>*>*{
    margin-bottom:.5em
}
.ec-toolbar>*>*:not(:last-child){
    margin-right:.75em
}
.ec-title{
    margin:0
}
.ec-button{
    background-color:white;
    border:1px solid var(--ec-button-border-color);
    padding:.375rem .75rem;
    font-size:1rem;
    line-height:1.5;
    border-radius:.25rem
}
.ec-button:not(:disabled){
    color:var(--ec-button-text-color);
    cursor:pointer
}
.ec-button:not(:disabled):hover,.ec-button.ec-active{
    background-color:var(--ec-button-active-bg-color);
    border-color:var(--ec-button-active-border-color);
    color:var(--ec-button-active-text-color);
    z-index:1
}
.ec-expander{
    margin-right:.25em;
    width:1.25em
}
.ec-expander .ec-button{
    line-height:normal;
    padding:0;
    aspect-ratio:1;
    height:1.25em
}
.ec-button-group{
    display:inline-flex
}
.ec-button-group .ec-button:not(:first-child){
    border-top-left-radius:0;
    border-bottom-left-radius:0;
    margin-left:-1px
}
.ec-button-group .ec-button:not(:last-child){
    border-top-right-radius:0;
    border-bottom-right-radius:0
}
.ec-icon{
    display:inline-block;
    width:1em
}
.ec-icon.ec-prev:after,.ec-icon.ec-next:after{
    content:"";
    position:relative;
    width:.5em;
    height:.5em;
    border-top:2px solid currentcolor;
    border-right:2px solid currentcolor;
    display:inline-block
}
.ec-icon.ec-prev:after{
    transform:rotate(-135deg) translate(-2px,2px)
}
.ec-icon.ec-next:after{
    transform:rotate(45deg) translate(-2px,2px)
}
.ec-header,.ec-all-day,.ec-body,.ec-days,.ec-day,.ec-day-head{
    border:1px solid var(--ec-border-color)
}
.ec-header{
    display:flex;
    flex-shrink:0;
    border:none;
}
.ec-header .ec-resource{
    flex-direction:column
}
.ec-header .ec-resource .ec-days{
    border-top-style:solid
}
.ec-header .ec-days{
    border-bottom:none
}
.ec-header .ec-day{
    min-height:24px;
    line-height:24px;
    text-align:center;
    overflow:hidden;
    text-overflow:ellipsis;
    font-weight: bold;
}
.ec-all-day{
    flex-shrink:0;
    border-top:none
}
.ec-all-day .ec-days{
    border-bottom:none
}
.ec-all-day .ec-day{
    padding-bottom:4px;
    position:relative;
}
.ec-body{
    position:relative;
    overflow-x:hidden;
    overflow-y:auto;
    border-radius: 7px;
    background-color:white;
}

.ec-sidebar{
    flex:0 0 auto;
    width:auto;
    max-width:100%;
    padding:0 4px 0 8px;
    display:flex;
    flex-direction:column;
}
.ec-content{
    display:flex
}
.ec-list .ec-content{
    flex-direction:column
}
.ec-resource{
    display:flex
}
.ec-days{
    display:flex;
    border:none;
}
.ec-days:last-child{
    border-bottom:none
}
.ec-day-grid .ec-days,.ec-resource .ec-days{
    flex:1 0 auto
}
.ec-day{
    border-style:none none none solid;
    border-right: 2px solid #c3baba;
}
.ec-day.ec-today{
    /*background-color:var(--ec-today-bg-color);*/
    background-color: rgb(167 176 199);
}
.ec-day.ec-highlight{
    background-color:var(--ec-highlight-color)
}
.ec-day.ec-disabled{
    position:relative
}
.ec-day.ec-disabled:after{
    content:"";
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    left:0;
    background-color:var(--ec-bg-event-color);
    opacity:.3
}
.ec-day.ec-other-month .ec-day-head time{
    opacity:.3
}
.ec-list .ec-day{
    border:none
}
.ec-list .ec-day-head{
    background-color:var(--ec-list-day-bg-color);
    border-style:solid none;
    margin:-1px 0 0;
    padding:8px 14px;
    position:sticky;
    top:0;
    z-index:2
}
.ec-list .ec-day:first-child .ec-day-head{
    border-top:none
}
.ec-list .ec-day-side{
    float:right
}
.ec-list .ec-no-events{
    text-align:center;
    padding:5em 0
}
.ec-events{
    margin:0 6px 0 0
}
.ec-time-grid .ec-events,.ec-events.ec-preview{
    position:relative
}
.ec-day-grid .ec-events,.ec-all-day .ec-events{
    display:flow-root
}
.ec-event{
    display:flex;
    padding:2px;
    color:black;
    box-sizing:border-box;
    box-shadow:0 0 1px 0 var(--ec-border-color);
    background-color:var(--ec-event-bg-color);
    border-radius:3px;
    font-size:.85em;
    line-height:1.5;
    z-index:1
}
.ec-day-grid .ec-event,.ec-all-day .ec-event{
    position:relative
}
.ec-list .ec-event{
    flex-direction:row;
    padding:8px 14px;
    color:inherit;
    background-color:transparent;
    border-radius:0
}
.ec-event.ec-preview{
    position:absolute;
    z-index:1000;
    width:100%;
    -webkit-user-select:none;
    user-select:none;
    opacity:.8
}
.ec-event.ec-pointer{
    color:inherit;
    pointer-events:none;
    -webkit-user-select:none;
    user-select:none;
    position:absolute;
    z-index:0;
    box-shadow:none;
    display:flex
}
.ec-event-body{
    display:flex;
    flex-direction:column;
    width:100%;
    padding-top: 5px;
    padding-left: 10px;
}
.ec-day-grid .ec-event-body,.ec-all-day .ec-event-body,.ec-timeline .ec-event-body{
    flex-direction:row
}
.ec-month-view .ec-event-body{
    width: 90%;
}
.ec-event-tag{
    width:4px;
    border-radius:2px;
    margin-right:8px
}
.ec-event-time{
    overflow:hidden;
    white-space:nowrap;
    margin:0 0 1px;
    flex-shrink:0;
    max-height:100%;
    font-size: 9px;
}
.ec-day-grid .ec-event-time,.ec-timeline .ec-event-time{
    margin:0 3px 0 0;
    max-width:100%;
    text-overflow:ellipsis
}
.ec-event-title{
    overflow:hidden;
    margin:unset;
    font-size: 12px;
}
.ec-day-grid .ec-event-title,.ec-all-day .ec-event-title,.ec-timeline .ec-event-title{
    min-height:1.5em;
    white-space:nowrap;
    text-overflow:ellipsis
}
.ec-list .ec-event-title{
    font-size:1rem
}
.ec-draggable{
    cursor:pointer;
    -webkit-user-select:none;
    user-select:none
}
.ec-ghost{
    opacity:.5;
    -webkit-user-select:none;
    user-select:none;
    pointer-events:none
}
.ec-bg-events{
    position:relative
}
.ec-day-grid .ec-bg-events,.ec-all-day .ec-bg-events{
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    left:0
}
.ec-bg-event{
    position:absolute;
    background-color:var(--ec-bg-event-color);
    opacity:var(--ec-bg-event-opacity)
}
.ec-day-grid .ec-bg-event,.ec-all-day .ec-bg-event{
    height:100%;
    z-index:auto
}
.ec-time{
    white-space:nowrap
}
.ec-popup{
    position:absolute;
    top:0;
    display:flex;
    flex-direction:column;
    width:110%;
    min-width:180px;
    z-index:1010;
    padding:8px 10px 14px;
    background-color:var(--ec-popup-bg-color);
    border:1px solid var(--ec-border-color);
    border-radius:6px;
    outline:1px solid transparent;
    box-shadow:0 1px 3px hsla(var(--ec-hs),50%,.15),0 4px 8px 3px hsla(var(--ec-hs),50%,.15)
}
.ec-popup .ec-day-head{
    text-align:left;
    display:flex;
    justify-content:space-between
}
.ec-popup .ec-day-head a{
    cursor:pointer;
    font-size:1.5em;
    line-height:.8
}
.ec-popup .ec-events{
    margin:0;
    min-height:0;
    overflow:auto
}
.ec-extra{
    position:relative;
    height:100%;
    overflow:hidden;
    margin-left:-6.5px;
    -webkit-user-select:none;
    user-select:none
}
.ec-now-indicator{
    position:absolute;
    z-index:1005;
    width:100%;
    border-top:var(--ec-now-indicator-color) solid 2px;
    pointer-events:none
}
.ec-now-indicator:before{
    background:var(--ec-now-indicator-color);
    border-radius:50%;
    content:"";
    position:absolute;
    height:12px;
    margin-top:-7px;
    width:12px;
    pointer-events:none
}
.ec-resizer{
    position:absolute;
    -webkit-user-select:none;
    user-select:none
}
.ec-day-grid .ec-resizer,.ec-all-day .ec-resizer,.ec-timeline .ec-resizer{
    top:0;
    right:0;
    bottom:0;
    width:50%;
    max-width:8px;
    cursor:ew-resize
}
.ec-day-grid .ec-resizer.ec-start,.ec-all-day .ec-resizer.ec-start,.ec-timeline .ec-resizer.ec-start{
    right:auto;
    left:0
}
.ec-dragging,.ec-dragging *{
    cursor:pointer!important
}
.ec-resizing-y,.ec-resizing-y *{
    cursor:ns-resize!important
}
.ec-resizing-x,.ec-resizing-x *{
    cursor:ew-resize!important
}

.external-events {
    padding: 15px;
    margin-bottom: 20px;
}
.external-event-miss-planified{
    min-height: 48vh;
    max-height: 48vh;
    overflow-y: auto;
    overflow-x: hidden;
}
.external-event-conflit-open{
    max-height: 30vh;
    overflow-y: auto;
    overflow-x: hidden;
}
.external-event-conflit-closed{
    max-height: 48vh;
    overflow-y: auto;
    overflow-x: hidden;
}
.external-event-mess-error{
    min-height: 22vh;
    max-height: 22vh;
}
.external-event {
    margin: 5px 0;
    cursor: grab;
    height: auto;
    font-size: 9px;
    font-weight: bold;
    padding-bottom: 10px;
    background-color: white;

}

/* Styles potentiels pour les cellules du calendrier (à adapter) */
.ec-daygrid-day,
.ec-timegrid-slot {
    /* Ajoutez ici les styles nécessaires pour que les zones de dépôt soient visibles */
    border: 1px dotted #aaa;
    min-height: 20px; /* Ajustez selon la structure réelle */
}
.drop-over {
    background-color: #e0f7fa; /* Indication visuelle du dépôt */
}
#calendar {
    /* Ajoutez des styles pour le conteneur du calendrier si nécessaire */
    border: 1px solid #bbb;
}
.bottom-alert-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    padding: 10px;
}

.bottom-alert-container {
    position: fixed;
    bottom: -50px; /* Start it slightly below the viewport */
    left: 0;
    width: 100%;
    z-index: 1050;
    padding: 10px;
    opacity: 0; /* Start with zero opacity */
    transition: bottom 0.3s ease-out, opacity 0.3s ease-out; /* Smooth transition for bottom and opacity */
}

.bottom-alert-container.show {
    bottom: 0; /* Slide it up to its final position */
    opacity: 1; /* Fade it in to full opacity */
}

.bottom-alert-container .alert {
    margin-bottom: 0;
}

.input-planif-collab{
    text-align: center;
    border-radius: 7px;
    height: 30px;
    margin: -5px;
}
.bloc-a-planifier{
    box-shadow: 5px 5px 5px #b2b1b1;
    height: auto;
    border-radius: 7px;
}
.ec-button.ec-today, .ec-button.ec-prev, .ec-button.ec-next{
    background-color: white;
    border-radius: 7px;
}
.ec-all-day{
    margin-bottom: 10px;
    background-color:white;
    border-radius: 7px;
    border-top: 1px solid var(--ec-border-color);
}
.ec-event.ec-draggable{
    border-radius: 11px;
}
.ec-header .ec-days .ec-day {
    border: none !important;
}
.ec-button.ec-dayGridMonth{
    border-top-left-radius: 7px;
    border-bottom-left-radius: 7px;
}
.ec-button.ec-resourceTimelineWeek{
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
}
.week-display{
    font-weight: bold;
    font-size: 18px;
    vertical-align: middle;
}

.event-overlay-edit-event{
    position: absolute;
    bottom: 0; /* Positionne en bas de l'article */
    height: auto;
    margin-bottom: 5px;
    left: 93%;
    z-index: 10000;
}

.event-overlay-valid-week{
    position: absolute;
    bottom: 0; /* Positionne en bas de l'article */
    background: transparent;
    border-radius: 5px;
    height: auto;
    left: 84%;
    border: none;
    margin-bottom: 3px;
    z-index: 10000;
}
.event-overlay-invalid-week{
    position: absolute;
    bottom: 0; /* Positionne en bas de l'article */
    color:black;
    border-radius: 5px;
    height: auto;
    left: 86%;
    z-index: 10000;
    border: none;
    width: 13px;
    background-color: transparent;
    margin-bottom: 3px;

}
.event-overlay-valid-day{
    position: absolute;
    bottom: 0; /* Positionne en bas de l'article */
    border-radius: 5px;
    height: auto;
    left: 90%;
    z-index: 10000;
    border: none;
    width: 13px;
    background-color: transparent;
    margin-bottom: 3px;
}
.event-overlay-invalid-day{
    position: absolute;
    bottom: 0; /* Positionne en bas de l'article */
    color:black;
    border-radius: 5px;
    height: auto;
    left: 90%;
    z-index: 10000;
    border: none;
    width: 13px;
    background-color: transparent;
    margin-bottom: 3px;
}
.event-overlay-valid-month{
    position: absolute;
    bottom: 0; /* Positionne en bas de l'article */
    border-radius: 5px;
    height: auto;
    left: 90%;
    z-index: 10000;
    border: none;
    width: 13px;
    background-color: transparent;
    margin-bottom: 8px;
}
.event-overlay-invalid-month{
    position: absolute;
    top: 5px; /* Positionne en bas de l'article */
    color:black;
    background: white;
    border-radius: 5px;
    height: auto;
    margin-bottom: 5px;
    left: 72%;
    border: 1px solid orange;
    z-index: 10000;
}
.event-disabled{
    pointer-events: none;
}
.event-pointer{
    pointer-events: none;
}
/**
    STYLE CONFLIT
 */
.external-event-conf {
    margin: 5px 0;
    height: auto;
    font-size: 12px;
    background-color: white;
}
.gestion_conf_event{
    background-color: white;
    padding: 5px;
    margin: 5px 0;
    font-size: 12px;
    box-shadow: 2px 4px 3px #b2b1b1;
    border-radius: 7px;
    height: max-content;

}
.full-action-planif-collabo {
    text-align: center;
    background-color: #f2f2f2;
    color: black;
    font-weight: bold;
    border-radius: 5px;
    align-content: center;
    cursor: pointer;
    font-size: 10px;
    max-width: 30px;
    max-height: 30px;
    height: 30px;
}
.full-action-planif-collabo:hover {
    background-color: #EA5B0B;
}
.custom_font_black{
    color:black;
}
.custom_font_white{
    color:white;
}
.article-selected {
    border: 3px solid #EA5B0B; /* couleur bleue Bootstrap */
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
    transition: all 0.2s ease;
}