.calendar {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
    margin-left: 30px;
}

.settings_panel_wrapper {
    padding-top: 30px;
}

.checkbox_label {
    font-weight: normal;
    margin-left: 5px;
}

.calendar .headline {
    display: flex;
    flex-flow: row wrap;
    flex-direction: row;
    align-items: center;
    height: 34px;
    margin-bottom: 15px;
}

.calendar .headline:first-child {
    margin-left: 5px;
}

#calendar_nav {
    display: flex;
    margin-left: auto;
    margin-right: 20px;
    width: 100px;
    box-shadow: 0 3px 6px rgba(186, 196, 209, 0.25);
    border: 1px solid #EAEDED;
    border-radius: 4px;
    background: url('../../img/v_line.svg') no-repeat center;
}

#calendar_nav input {
    width: 50px;
    border: 0;
    padding: 0;
    height: 34px;
    outline: none;
}

#calendar_left {
    background: url('../../img/arrow-left.svg') no-repeat center;
}

#calendar_right {
    background: url('../../img/arrow-right.svg') no-repeat center;
}

#calendar_left:hover {
    box-shadow: 0 0 10px rgba(186, 196, 209, 0.5);
}

#calendar_right:hover {
    box-shadow: 0 0 10px rgba(186, 196, 209, 0.5);
}

div[data-date] {
    width: 279px;
    height: 246px;
}

.month-cont {
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
    margin-bottom: 5px;
}

.month-cont:focus {
    outline: 0;
}

.month-cont h4 {
    display: flex;
    margin: 2px 2px 2px 5px;
}

.month-days-stats {
    display: flex;
    text-align: left;
    font-weight: 300;
    color: #A5ADB7;
}

.year-days-stats {
    font-weight: 300;
    color: #A5ADB7;
}

.month-calendar {
    display: flex;
    margin-top: 10px;
}

.datepicker-days .table-condensed thead tr:nth-child(-n+2) {
    display: none;
}

.datepicker-days .table-condensed {
    border: 1px solid #ECF0F0;
    border-radius: 3px;
}

.datepicker-days td {
    height: 34px;
    width: 40px;
    border: 1px solid #ECF0F0;
    font-weight: 500;
    border-radius: 0;
}

.datepicker-days td.old {
    font-weight: 300;
}

.datepicker-days tbody tr td.sund-satu {
    color: #F53847;
}

.datepicker-days tbody tr td.weekend-day-gray {
    color: rgba(255, 0, 0, 0.6);
}

.datepicker-days tbody tr td.working-day-gray {
    color: rgba(0, 0, 255, 0.6);
}

.datepicker-days th {
    height: 34px;
    width: 40px;
    border: 1px solid #ECF0F0;
    border-bottom: 0;
    background: rgba(190, 200, 212, 0.1);
    font-weight: 500;
    color: #A5ADB7;
}

.datepicker-inline {
    width: auto;
    padding: 0;
}

.datepicker-days td.weekend-day {
    background: rgba(245, 56, 71, 0.15);
    outline: auto #F53847;
    color: #F53847 !important;
}

.datepicker-days td.working-day {
    background: rgba(41, 116, 255, 0.15);
    outline: auto #2974FF;;
    color: #2974ff !important;
}

.day-title {
    position: absolute;
    background: black;
    color: white;
    max-width: 300px;
    font-size: 12px;
    padding: 4px;
    z-index: 1020;
}

@media screen and (max-width: 980px) {
    .calendar {
        margin: 40px 0 0 2%;
    }

    .month-cont h4 {
        font-size: 14px;
        line-height: 21px;
    }

    .datepicker-days th {
        height: 40px;
        width: 50px;
    }

    .datepicker-days td {
        height: 40px;
        width: 50px;
    }

    .datepicker-days .table-condensed {
        margin-right: 15px;
    }
}

@media screen and (max-width: 768px) {
    .calendar {
        margin: 40px 15px 0 15px;
    }

    .headline {
        width: 100%;
        margin-left: 5px;
    }

    .month-cont h4 {
        font-size: 14px;
        line-height: 21px;
    }

    .datepicker-days th {
        height: 40px;
        width: 50px;
    }

    .datepicker-days td {
        height: 40px;
        width: 50px;
    }

    #calendar_nav {
        margin-right: 5px;
    }

    .month-calendar {
        justify-content: center;
    }
}
