/* sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 700;
    background-color: #1f2d3e;
    transition: width .4s ease-in-out;
}

.sidebar.show {
    z-index: 702;
    width: 320px;
    box-shadow: 0 0 10px #00000050;
}

.sidebar hr {
    margin: -8px 30px;
    opacity: 1;
    border: 0;
    height: 1px;
    background-color: #28394f;
}

.sidebar .sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 70px;
}

.sidebar .sidebar-logo {
    padding: 0 8px;
}

.sidebar .sidebar-logo img {
    height: 45px;
    top: 5px;
    position: relative;
}

.sidebar .sidebar-logo-text {
    margin-left: 5px;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -1px;
    white-space: nowrap;
    color: var(--light);
}

.sidebar .sidebar-logo-text span {
    display: inline-block;
    font-weight: 600;
    color: var(--primary);
}

.sidebar .sidebar-body {
    height: calc(100% - 140px);
    position: relative;
    overflow: hidden;
}

.sidebar .nav-sidebar {
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.sidebar .nav-sidebar .nav-link {
    height: 40px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    border-radius: .5rem;
    white-space: nowrap;
    color: #627293;
    margin-bottom: 3px;
}

.sidebar .nav-sidebar .nav-link.active {
    font-weight: 500;
    letter-spacing: -.1px;
    color: var(--primaryLighter);
    background-color: var(--primaryDark);
}

.sidebar .nav-sidebar .nav-link:hover,
.sidebar .nav-sidebar .nav-link:focus {
    background-color: #2c4059;
    color: #a7b3ce;
}

.sidebar .nav-sidebar .nav-link + .nav-link {
    margin-top: 2px;
}

.sidebar .nav-sidebar .nav-link i {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 20px;
    margin-right: 12px;
    top: -1px;
}

.sidebar .sidebar-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    height: 70px;
    position: relative;
}

.sidebar .footer-menu {
    display: block;
    font-size: 18px;
    border-radius: 5px;
    line-height: 1;
}

.sidebar .avatar {
    flex-shrink: 0;
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 100%;
    position: relative;
}

.sidebar .avatar-initial {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 300;
    text-transform: uppercase;
    background-color: var(--primaryDark);
    color: var(--primaryLighter);
}

.sidebar .avatar-body {
    flex: 1;
    padding-left: 10px;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar .avatar-body h6 {
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--primary);
}

.sidebar .avatar-body span {
    display: block;
    font-size: 12px;
    color: var(--primaryLighter);
}

.sidebar .footer-menu {
    display: block;
    font-size: 18px;
    border-radius: 5px;
    line-height: 1;
    color: #627293;
    border: 0;
    outline: 0;
    background-color: transparent;
}

/* mystyle */
.sidebar ~ .container-fluid {
    width: calc(100% - 260px);
    margin-right: unset;
    padding: 1.3rem;
}

.btn-detail {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 28px;
    text-align: center;
    padding: 0;
    margin: 0;
    border-radius: .4rem;
}

.btn-jadwal-navigate {
    color: #fffbed;
    background-color: #eaaf0160;
    border-radius: 50%;
    padding: 0;
    width: 50px;
    height: 50px;
    line-height: 51px;
    font-size: 2rem !important;
    margin-left: 5px;
}

.wrap-calendar {
    border-top: solid 1px #E2E2E2;
    display: flex;
    justify-content: space-between;
}

.wrap-calendar .calendar-list {
    border-right: solid 1px #E2E2E2;
    flex: 1;
}

.wrap-calendar .calendar-list:last-child {
    border-right: 0;
}

.wrap-calendar .calendar-date {
    text-align: center;
    padding: 2rem 0;
    font-weight: bold;
    text-transform: uppercase;
    color: #AAA;
}

.wrap-calendar .calendar-date h2 {
    font-size: 1.8rem;
    font-weight: bolder;
    text-align: center;
    color: #000;
    padding: 0;
    margin: 0 auto;
    height: 50px;
    width: 50px;
    line-height: 50px;
    border-radius: 50%;
}

.wrap-calendar .calendar-date.now {
    color: var(--primary);
}

.wrap-calendar .calendar-date.now h2 {
    background-color: var(--primary);
    color: var(--light);
}

.wrap-calendar .calendar-time-wrap {
    margin: 0 10px 8px;
    border-radius: 30px;
    border: solid 1px #EBEBEB;
    background-color: var(--light);
    cursor: pointer;
}

.wrap-calendar .calendar-time-wrap:hover > .calendar-time {
    background-color: #e0e0e0;
}

.wrap-calendar .calendar-time {
    background-color: #EBEBEB;
    border-radius: 30px;
    text-align: center;
    padding: 10px 0;
    font-size: 1.2rem;
    color: var(--dark);
    transition: all .3s ease-in-out;
}

.wrap-calendar .calendar-order {
    height: 0;
    overflow: hidden;
    transition: height 1s .5s ease-in-out;
}

.wrap-calendar .calendar-order:last-child {
    border-bottom: unset !important;
}

.wrap-calendar .show .calendar-order {
    border-bottom: solid 1px #EEE;
    padding: 12px 15px;
    height: auto;
    transition: height 1s ease-in-out;
}

/* Light */
.bg-light-light {
    color: #181c32;
    background-color: #f3f6f9;
}

.bg-light-success {
    color: #0bb783;
    background-color: #d7f9ef;
}

.bg-light-primary {
    color: #5c96fc;
    background-color: #ddeaff;
}

.bg-light-info {
    color: #8950fc;
    background-color: #eee5ff;
}

.bg-light-warning {
    color: #ffa800;
    background-color: #fff4de;
}

.bg-light-danger {
    color: #f64e60;
    background-color: #ffe2e5;
}


@media screen and (max-width: 576px) {

    .sidebar {
        width: 0;
        overflow: hidden;
    }

    .sidebar ~ .container-fluid {
        position: relative;
        z-index: 701;
        width: 100%;
        background-color: #e9f6ff;
    }

    .content-header {
        padding: 12px 0 14px;
        z-index: 702;
        display: flex;
        align-items: center;
    }

    .wrap-sidebar-button {
        display: inline-block;
        cursor: pointer;
        width: 32px;
        height: 32px;
        margin-left: -5px;
    }

    .wrap-sidebar-button + h4 {
        margin-bottom: 0;
        margin-left: 6px;
    }

    .sidebar-button {
        padding: 15px 8px 0;
    }

    .sidebar-button span {
        display: block;
        position: relative;
        width: 20px;
        height: 2.5px;
        border-radius: 3px;
        background-color: var(--primary);
    }

    .sidebar-button span::before,
    .sidebar-button span::after {
        content: '';
        position: absolute;
        width: 12px;
        height: 2.5px;
        border-radius: inherit;
        background-color: var(--primary);
        opacity: .7;
    }

    .sidebar-button span::before {
        top: -5px;
        right: 2px;
    }

    .sidebar-button span::after {
        bottom: -5px;
        left: 2px;
    }

    .air-datepicker.-inline- {
        width: 100%;
    }

    .wrap-calendar {
        margin-top: 2em;
        overflow: auto;
    }

    .wrap-calendar .calendar-date {
        padding: 2rem 3em;
    }

}
