.calendar {
    margin: 0 auto;
    /* max-width: 1280px; */
    /* min-width: 500px; */

    box-shadow: 0px 30px 50px rgba(0, 0, 0, 0.2), 0px 3px 7px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.calendar .wrap {

    overflow-x: scroll;
    overflow-y: hidden;
    /* max-width: 1280px; */
    /* height: 500px; */
    border-radius: 0px;
}

.calendar thead {
    box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.2);
}

.calendar thead th {

    text-align: center;
    width: 250px;

}

.calendar .calheader {
    z-index: 2;
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid #ddd;
    box-shadow: 0px 2px 3px rgb(0 0 0 / 20%);
    font-size: 1.5rem;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.9);
    padding: 1rem;
    font-family: "montserrat-bold", sans-serif;
}

.calendar .calheader td {
    padding: 10px;
}

.calendar header {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    color: rgba(0, 0, 0, 0.7);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0px 0px;
}

.calendar header h1 {
    font-size: 1.25rem;
    text-align: center;
    font-weight: normal;

}

.calendar tbody {
    position: relative;
    top: 100px;
}

.calendar table {
    background: rgba(255, 255, 255, 0.8);
    width: 100%;
    height: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    margin-bottom: 0;
}

.calendar .headcol {
    width: 60px;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.788);
    padding: 0.25rem 0;
    text-align: center;
    border: 0;
    position: relative;
    top: -10px;
    /* border-bottom: 1px solid transparent; */
}

.calendar thead th {
    font-size: 1.5rem;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.9);
    padding: 1rem;
}

.calendar thead {
    z-index: 2;
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid #ddd;

}

.calendar tr,
tr td {
    height: 20px;
}

.calendar td {
    text-align: center;
}

.calendar tr:nth-child(odd) td:not(.headcol) {
    border-bottom: 1px solid #e8e8e8;
}

.calendar tr:nth-child(even) td:not(.headcol) {
    border-bottom: 1px solid #eee;
}

.calendar tr td {
    border-right: 1px solid #eee;
    padding: 0;
    white-space: none;
    word-wrap: nowrap;
}

.calendar tbody tr td {
    position: relative;
    vertical-align: top;
    height: 20px;
    padding: 0.25rem 0.25rem 0 0.25rem;
    width: 250px;

}


.calendar .event {
    background: #00B4FC;
    color: white;
    border-radius: 2px;
    text-align: left;
    font-size: 1.4rem;
    z-index: 2;
    padding: 0.5rem;
    overflow-x: hidden;
    scrollbar-width: none;
    transition: all 0.2s;
    cursor: pointer;
}


.calendar .event.one-hour {
    height: 76px;
    width: 98%;
    position: absolute;
}

.calendar .event.one-hour-fifteen {
    height: 96px;
    width: 98%;
    position: absolute;
}

.calendar .event.one-hour-thrity {
    height: 116px;
    width: 98%;
    position: absolute;
}

.calendar .event.two-hour {
    height: 156px;
    width: 98%;
    position: absolute;
}

.calendar .event.tree-hour {
    height: 236px;
    width: 98%;
    position: absolute;
}

.calendar .event.four-hour {
    height: 316px;
    width: 98%;
    position: absolute;
}

.calendar .event.four-hour-thirty {
    height: 356px;
    width: 98%;
    position: absolute;
}

.calendar .event.catP {
    background: #ad343e;
}

.calendar .event.catR {
    background: #7a1f27;
}

.calendar .event.catO {
    background: #4a6377;
}

.calendar .event.catA {
    background: #28afb0;
}

.calendar .event.catB {
    background: #274156;
}

.calendar .event.catC {
    background: #1c6e8c;
}


.calendar .event .pictos {
    position: absolute;
    width: 100%;
    text-align: right;
    margin-top: -15px;
    padding-right: 15px;
}

.calendar .event .pictos i {
    margin-right: 3px;
}

.pictos-legend {
    min-height: 70px;
    text-align: left;
}

.pictos-legend i {
    font-size: 2rem;
}

.pictos-legend .col-two {
    width: auto;
    /* text-align: center; */
    border: none;
    padding: 5px;
    float: left;
    min-height: 72px;
}

.pictos-legend .col-two .picto {
    width: 30px;
    float: left;
    margin-left: 10px;
}

.pictos-legend .col-two .label {
    max-width: 180px;
    float: left;
    margin-left: 5px;
    margin-right: 10px;
}



/* .calendar tr td:nth-child(2),
tr td:nth-child(3),
.past {
    background: #fafafa;
} */



.calslideBtn {
    display: none;
}


@media only screen and (min-width: 768px) {

    /* For desktop: */
    .calendar .outer {
        margin-left: 40px;
        margin-right: 40px;
    }

    .calslideBtn {
        position: absolute;
        z-index: 999;
        height: 1103px;
        width: 40px;
        background-color: rgba(238, 238, 238, 0.8);
        display: inline-block;
        font-size: 5rem;
        padding-top: 25px;
        padding-left: 18px;
        color: #f36f0a;
        cursor: pointer;
        font-weight: 900;
    }

    .calslideBtn:hover {
        background-color: rgba(255, 255, 255, 0.966);
    }

    .calslideBtn.calslideLeft {
        left: 0px;
    }

    .calslideBtn.calslideRight {
        right: 0px;
    }
}
