/*/ Polylog SA (c) 2024 /*/

/*/ Ligne de temps /*/

.fwk-cal-timeline {
    background-color: var(--gray1);
    border-radius: var(--round1) var(--round1) var(--round3) var(--round3);
    margin-top: 15px;
    overflow: auto;
    /*scrollbar-gutter: stable;*/
}

.fwk-cal-timeline thead th.fwk-cal-timeline-head-top {
    position: sticky;
    z-index: 2;
    top: 0;
}

.fwk-cal-timeline thead th.fwk-cal-timeline-head-mid {
    position: sticky;
    z-index: 1;
    top: 44px !important;
    box-shadow: -2px 0 0 0 var(--white);
}

.fwk-cal-timeline td.fwk-cal-timeline-cell.cell-l {
    padding: 0 !important;
    vertical-align: top;
    min-width: 150px;
}

.fwk-cal-timeline th.fwk-cal-timeline-cell.cell-l {
    min-width: 150px;
}

.fwk-cal-timeline td.fwk-cal-timeline-cell.cell-s {
    padding: 0 !important;
    vertical-align: top;
    min-width: 60px;
}

.fwk-cal-timeline th.fwk-cal-timeline-cell.cell-stick,
.fwk-cal-timeline td.fwk-cal-timeline-cell.cell-stick {
    position: sticky;
    z-index: 5;
    width: 100px;
    left: 0;
    background: var(--mid1-light);
}

.fwk-cal-timeline th.fwk-cal-timeline-cell.cell-first-stick,
.fwk-cal-timeline td.fwk-cal-timeline-cell.cell-first-stick {
    position: sticky;
    z-index: 10;
    width: 100px;
    left: 0;
}

.fwk-cal-timeline th.fwk-cal-timeline-cell.cell-shadow,
.fwk-cal-timeline td.fwk-cal-timeline-cell.cell-shadow {
    background: var(--gray2);
}

.fwk-cal-timeline-event {
    font-size: 9px;
    line-height: 14px;
    font-weight: 600;
    border-radius: var(--round3);
    margin: 0;
    padding: 3px 5px;
    z-index: 0;
    position: absolute;
    width: calc(100px);
    height: 44px;
    background: var(--main-light);
    color: var(--fixdark);
    border: 1px solid transparent;
    border-left: 5px solid var(--main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fwk-cal-timeline-event.event-hover {
    cursor: pointer;
}

/*/ Mois /*/

.fwk-month-container-head {
    background: var(--gray1);
    border-radius: var(--round1);
    padding: 15px;
    margin: 0 0 15px;
    font-weight: 600;
}

.fwk-month-container-head em {
    width: 20px;
    line-height: inherit;
    font-size: 14px;
    float: left;
    color: var(--main);
}

.fwk-cal-month {
    background-color: var(--gray1);
    border-radius: var(--round1) var(--round1) var(--round3) var(--round3);
    overflow: auto;
    margin-top: 15px;
}

.fwk-cal-month .fwk-cal-month-week {
    font-size: 9px;
    width: 58px;
    min-width: 58px;
    max-width: 58px;
    text-align: center;
    position: sticky;
    z-index: 0;
    left: 0;
    background: var(--gray1);
}

.fwk-cal-month .fwk-cal-month-head {
    position: sticky;
    z-index: 2 !important;
    /*top: 0 !important;
    left: 58px !important;
    box-shadow: -5px -5px 0px 0px var(--white), 5px -5px 0px 0px var(--white), -5px 0px 0px 0px var(--white), 5px 0px 0px 0px var(--white), 0px -5px 0px 0px var(--white);*/
}

.fwk-cal-month .fwk-cal-month-week.week-head {
    position: sticky;
    z-index: 3 !important;
    top: 0 !important;
}

.fwk-cal-month .fwk-cal-month-cell {
    width: 130px;
    min-width: 130px;
    max-width: 130px;
    height: 165px;
    vertical-align: top;
    background: var(--gray1);
}

.fwk-cal-month .fwk-cal-month-cell-date {
    float: right;
    text-align: center;
    font-weight: 600;
    width: 25px;
    height: 25px;
    line-height: 25px;
    border-radius: 25px;
}

.fwk-cal-month .fwk-cal-month-cell-date.date-hover:hover {
    background: var(--main);
    color: var(--fixlight);
    cursor: pointer;
}

.fwk-cal-month tbody tr:hover td {
    background: var(--gray1);
}

.fwk-cal-month .fwk-cal-month-cell.cell-shadow {
    color: transparent;
}

.fwk-cal-month .fwk-cal-month-cell.cell-weekend {
    background: var(--gray2);
}

.fwk-cal-month-event {
    font-size: 9px;
    line-height: 18px;
    font-weight: 400;
    border-radius: var(--round3);
    margin-top: 5px;
    padding: 0 5px;
    background: var(--main-light);
    border: 1px solid transparent;
    border-left: 5px solid var(--main);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fwk-cal-month-event.event-showmore {
    border: none;
    background: var(--white);
    color: var(--dark1);
    text-align: center;
}

.fwk-cal-month-event i {
    width: 15px !important;
}

/*/ Semaine /*/

.fwk-cal-week {
    background-color: var(--gray1);
    border-radius: var(--round1) var(--round3) var(--round3) var(--round3);
    overflow: auto;
    position: relative;
    margin-top: 10px;
}

.fwk-cal-week.week-nomaxheight {
    border-radius: var(--round1);
    max-height: 740px;
}

.fwk-cal-week thead.fwk-cal-week-head-top {
    position: sticky;
    z-index: 4;
    top: 0 !important;
}

th.cell-thick-right,
td.cell-thick-right {
    border-right: 5px solid var(--white) !important;
}

.fwk-cal-week thead.fwk-cal-week-head-mid {
    position: sticky;
    z-index: 3;
    top: 44px !important;
}

.fwk-cal-week .fwk-cal-week-cell {
    vertical-align: top;
    width: 130px;
    min-width: 130px;
    max-width: 130px;
    padding: 8px;
    position: relative;
    overflow: visible;
}

.fwk-cal-week.week-oneday .fwk-cal-week-cell {
    /*max-width: 100% !important; -- retiré car sinon planning week calendar multiple tailles différentes */
    width: auto !important;
}

.fwk-cal-week th.fwk-cal-week-cell {
    z-index: 3;
}

.fwk-cal-week .fwk-cal-week-cell.cell-time,
.fwk-cal-week .fwk-cal-week-cell.cell-time-head {
    font-size: 9px;
    line-height: 18px;
    width: 58px !important;
    min-width: 58px;
    max-width: 58px;
    text-align: center;
    position: sticky;
    z-index: 2;
    left: 0;
    background: var(--gray1);
}

.fwk-cal-week .fwk-cal-week-cell.cell-less {
    border-top: 1px solid var(--white);
}

.fwk-cal-week .fwk-cal-week-cell.cell-time.cell-less {
    border-top: none;
}

.fwk-cal-week .fwk-cal-week-cell.cell-time div {
    font-weight: 600;
	}

.fwk-cal-week .fwk-cal-week-cell.cell-time-head {
    vertical-align: middle;
    z-index: 4;
}

.fwk-cal-week .fwk-cal-week-cell.cell-time {
    padding-top: 0;
}

.fwk-cal-week .fwk-cal-week-cell.cell-grid {
    padding: 0;
    max-height: 36px;
    height: 36px;
    min-height: 36px;
}

.fwk-cal-week .fwk-cal-week-cell.cell-shadow {
    background: var(--gray2);
}

.fwk-cal-week .fwk-cal-week-cell.cell-now {
    background: var(--main-light);
}

.fwk-cal-week .fwk-cal-week-cell.cell-selected {
    background: var(--main-light) !important;
}

.fwk-cal-week .fwk-cal-week-date {
    border-radius: var(--round3);
    padding: 0 8px;
}

.fwk-cal-week .fwk-cal-week-compl {
    margin: -8px -8px 8px;
    padding: 4px;
    border-bottom: 2px solid var(--white);
}

.fwk-cal-week .fwk-cal-week-date.date-hover:hover {
    background: var(--white);
    cursor: pointer;
}

.fwk-cal-week-event-full {
    font-size: 9px;
    line-height: 18px;
    font-weight: 400;
    border-radius: var(--round3);
    margin-top: 5px;
    padding: 0 5px;
    background: var(--main-light);
    color: var(--fixdark);
    border: 1px solid transparent;
    border-left: 5px solid var(--main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fwk-cal-week-event-grid {
    font-size: 9px;
    line-height: 14px;
    font-weight: 600;
    border-radius: var(--round3);
    margin: 0;
    z-index: 1;
    position: absolute;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    border: 1px solid var(--main);
    background: var(--main-light);
    border-left: 5px solid var(--main);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.fwk-cal-week-event-grid i,
.fwk-cal-week-event-full i {
    width: 15px !important;
}

.fwk-cal-week-event-content {
    padding: 5px;
}

.fwk-cal-week-event-comment {
    font-size: 9px;
    line-height: 14px;
    font-weight: 400;
}

.fwk-cal-week-event-grid .fwk-tag.tag-small.tag-photo {
    margin: 5px 2px 0 0 !important;
    background-color: var(--dark1) !important;
    color: var(--fixlight) !important;
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 7px;
}

.fwk-cal-week-event-handle-resize {
    width: 100%;
    cursor: s-resize;
    position: absolute;
    bottom: 0;
    font-size: 9px;
    text-align: right;
    padding: 5px;
    color: var(--main);
}

.fwk-cal-week-event-handle-move {
    cursor: move;
    position: absolute;
    right: 0;
    top: 0;
    font-size: 9px;
    padding: 5px;
    color: var(--main);
}

.fwk-cal-week-event-full.event-temp,
.fwk-cal-week-event-grid.event-temp {
    background: repeating-linear-gradient(45deg, var(--red-light), var(--red-light) 10px, var(--orange-light) 10px, var(--orange-light) 20px);
}