nav {
    transition: 300ms;
}

nav.active {
    left: 120px;

    width: calc(100% - 160px);
}

aside {
    transition: 300ms;
}

aside.active {
    width: 70px;
}

aside.active img {
    display: none;
}

aside.active .side-bar-header {
    justify-content: center;
    padding: 0 !important;
}

aside.active .side-bar-title {
    display: none;
}

aside.active .item {
    justify-content: center;
    padding: 10px;
}

aside.active .item span,
aside.active .dropdown-menu-izin > div span,
aside.active .button-dropdown-toggle,
aside.active .dropdown-arrow {
    display: none !important;
}

aside.active .dropdown-menu-izin {
    justify-content: center;
    padding: 10px;
    width: 100%;
}

aside.active .dropdown-menu-izin > div {
    gap: 0;
    width: 100%;
    justify-content: center;
}

aside.active .dropdown-menu-izin .icon-item {
    margin: 0;
}

aside.active .item {
    justify-content: center;
    padding: 10px;
    width: 100%;
}

aside.active .dropdown-extra-izin .item {
    padding-left: 10px;
}

.btn-hide-side {
    transition: 500ms;
}

aside.active .btn-hide-side {
    transform: rotate(-180deg);
}

main {
    transition: 300ms;
}

main.active {
    margin-left: 80px;
}

.setting-extra {
    z-index: 200000 !important;
}

.setting-extra.show,
.notification-extra.show {
    display: flex;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: white;
}

body::-webkit-scrollbar-thumb {
    background-color: #152c89;

    border-radius: 6px;
}

body::-webkit-scrollbar-thumb:hover {
    background: #0f2370;
}

/* notifikasi */

.notifikasi-detail::-webkit-scrollbar,
.karyawan-detail::-webkit-scrollbar {
    width: 5px;
}

.notifikasi-detail::-webkit-scrollbar-track,
.karyawan-detail::-webkit-scrollbar-track {
    background: white;
}

.notifikasi-detail::-webkit-scrollbar-thumb,
.karyawan-detail::-webkit-scrollbar-thumb {
    background-color: #152c89;

    border-radius: 6px;
}

.notifikasi-detail::-webkit-scrollbar-thumb:hover,
.karyawan-detail::-webkit-scrollbar-thumb:hover {
    background: #0f2370;
}

/*  */

.form-edit-profile::-webkit-scrollbar {
    width: 7px;
}

.form-edit-profile::-webkit-scrollbar-track {
    background: white;

    box-shadow: inset 0 0 10px 1px rgba(0, 0, 0, 0.5);
}

.form-edit-profile::-webkit-scrollbar-thumb {
    background-color: #152c89;
}

.form-edit-profile::-webkit-scrollbar-thumb:hover {
    background: #0f2370;
}

/*  */

.notif-list::-webkit-scrollbar {
    width: 5px;
}

.notif-list::-webkit-scrollbar-track {
    background: white;
}

.notif-list::-webkit-scrollbar-thumb {
    background-color: #152c89;

    border-radius: 6px;
}

.notif-list::-webkit-scrollbar-thumb:hover {
    background: #0f2370;
}

aside::-webkit-scrollbar {
    width: 5px;
}

aside::-webkit-scrollbar-track {
    background: white;
}

aside::-webkit-scrollbar-thumb {
    background-color: #152c89;

    /* border-radius: 6px; */
}

aside::-webkit-scrollbar-thumb:hover {
    background: #0f2370;
}

/*  */

.kehadiran-list::-webkit-scrollbar {
    width: 5px;

    height: 7px;
}

.kehadiran-list::-webkit-scrollbar-track {
    background: white;

    border: 1px solid #0f2370;
}

.kehadiran-list::-webkit-scrollbar-thumb {
    background-color: #152c89;

    border-radius: 10px;
}

.kehadiran-list::-webkit-scrollbar-thumb:hover {
    background: #0f2370;
}

table tr th:first-child {
    border-top-left-radius: 8px;
}

table tr th:last-child {
    border-top-right-radius: 8px;
}

.dataTables_wrapper {
    margin-top: 20px !important;
}

.dataTables_length {
    margin-bottom: 10px;

    color: #0f2370 !important;
}

.dataTables_info {
    color: #0f2370 !important;

    margin-top: 10px;
}

.dataTables_paginate {
    margin-top: 10px;
}

.dataTables_filter {
    display: none;
}

.paginate_button.current {
    background-color: #0f2370 !important;
}

main .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #0f2370 !important;
}

main
    .dataTables_wrapper
    .dataTables_paginate
    .paginate_button:not(.current):not(.disabled):hover {
    background: #0f227036 !important;

    border: 1px solid #0f2370 !important;

    color: #0f2370 !important;
}

main .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    color: #fcbe00 !important;

    font-weight: 600;
}

main .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: #fcbe00 !important;
}

table.dataTable > tbody > tr:not(.tbl-kpi):not(.tbl-jam) {
    cursor: pointer;

    transition: 50ms;
}

table.dataTable > tbody > tr:not(.tbl-kpi):not(.tbl-jam):hover {
    background-color: rgb(218, 218, 218);
}

table.dataTable > tbody > tr > td {
    padding: 20px 12px;
}

table.dataTable#table-daftar-katering > tbody > tr > td.sub-heading {
    padding: 10px !important;
}

table.dataTable > tbody > tr > td.pending,
span.pending {
    color: #fcbe00 !important;

    font-weight: 600;
}

table.dataTable > tbody > tr > td.disetujui,
span.disetujui {
    color: rgb(22 101 52) !important;

    font-weight: 600;
}

table.dataTable > tbody > tr > td.ditolak,
span.ditolak {
    color: rgb(220 38 38) !important;

    font-weight: 600;
}

@keyframes fadeInDown {
    from {
        opacity: 0;

        transform: translateY(-50px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 0;

        transform: translateY(0);
    }

    to {
        opacity: 1;

        transform: translateY(-50px);
    }
}

@keyframes fadeOutUpBtn {
    to {
        transform: translateY(-215px);
    }
}

.switch {
    position: relative;

    display: inline-block;

    width: 40px;

    height: 20px;
}

.switch input {
    opacity: 0;

    width: 0;

    height: 0;
}

.slider {
    position: absolute;

    cursor: pointer;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background-color: #ccc;

    transition: 0.4s;

    border-radius: 20px;
}

.slider:before {
    position: absolute;

    content: "";

    height: 16px;

    width: 16px;

    left: 2px;

    bottom: 2px;

    background-color: white;

    transition: 0.4s;

    border-radius: 50%;
}

input:checked + .slider {
    background-color: #4caf50;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.label-required::after {
    content: " *";

    color: #f56565;
}

/* Sidebar Menu Item Styling */
.side-bar-item .item {
    display: flex;
    align-items: center;
    position: relative;
    padding: 10px 16px;
    gap: 12px;
    width: 100%;
}

.side-bar-item .item .icon-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    width: 22px;
    height: 22px;
    position: relative;
    font-size: 22px;
}

.side-bar-item .item span {
    display: flex;
    align-items: center;
    line-height: 22px;
    height: 22px;
    font-size: 16px;
    white-space: nowrap;
}

.side-bar-item [class^="dropdown-menu"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.side-bar-item [class^="dropdown-menu"] > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.side-bar-item [class^="dropdown-menu"] .button-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    transition: transform 0.2s ease;
}

.side-bar-item [class^="dropdown-extra"] .item {
    padding-left: 16px;
}

[class^="dropdown-extra"] {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

[class^="dropdown-extra"] .item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
}

[class^="dropdown-extra"] .icon-item {
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
}
