@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --white: #FFF;
    --primary: #28146E;
    --primaryDark: #2f1980;
    --primaryLight: #2f3f8b;

    --secondary: #E98786;
    --secondaryLight: #f0a7a6;
    --background: #FCECEA;

    --secondaryRed: #FD6161;
    --secondaryGreen: #2ECC71;
    --secondaryYellow: #FFAC2B;
    --secondaryTosca: #00ADB5;

    --textBlack: #404040;
    --textGray: #9D9D9D;
    --textLine: #DDE5E9;
    --textBackground: #F4F4FA;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    text-rendering: auto;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    cursor: default;
    background-color: var(--background);
}

i.bx {
    position: relative;
    top: 1px;
}

.font-serif {
    font-family: "DM Serif Display";
}

/* sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 700;
    background-color: #f7f9fd;
}

.sidebar hr {
    margin: -8px 30px;
    opacity: 1;
    border-color: #e3eaf8;
}

.sidebar.show {
    z-index: 702;
    width: 320px;
    box-shadow: 0 0 10px #00000050;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 70px;
}

.sidebar-logo {
    padding: 0 8px;
}

.sidebar-logo span {
    display: block;
    position: relative;
    width: 20px;
    height: 2.5px;
    border-radius: 3px;
    background-color: var(--primary);
}

.sidebar-logo span::before,
.sidebar-logo span::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 2.5px;
    border-radius: inherit;
    background-color: var(--primary);
    opacity: .7;
}

.sidebar-logo span::before {
    top: -5px;
    right: 2px;
}

.sidebar-logo span::after {
    bottom: -5px;
    left: 2px;
}

.sidebar-logo-text {
    margin-left: 5px;
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -1px;
    white-space: nowrap;
    text-decoration: none;
}

.sidebar-logo-text span {
    display: inline-block;
    font-weight: 600;
    color: var(--primary);
}

.sidebar-search {
    flex-shrink: 0;
    padding: 0 20px;
}

.search-body {
    padding-left: 8px;
    display: flex;
    align-items: center;
    height: 40px;
    border: 1.5px solid transparent;
    border-radius: 6px;
    background-color: #fff;
    border-color: #cacfd9;
}

.search-body i {
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 20px;
    stroke-width: 2.5px;
    flex-shrink: 0;
    margin-right: 13px;
    top: 0;
}

.search-body.onfocus {
    border-color: var(--primary)BF;
    box-shadow: 0 1px 1px rgba(216, 222, 230, 0.25), 0 2px 2px rgba(216, 222, 230, 0.2), 0 4px 4px rgba(216, 222, 230, 0.15);
}

.search-body.onfocus i {
    color: var(--primary);
}

.search-body .form-control {
    flex: 1;
    align-self: stretch;
    border-width: 0;
    padding: 0;
    background-color: transparent;
}

.search-body .form-control:focus,
.search-body .form-control:active {
    outline: none;
    box-shadow: unset;
}

.search-body .form-control::placeholder {
    text-shadow: none;
    opacity: 1;
}

.sidebar-body {
    height: calc(100% - 140px);
    position: relative;
    overflow: hidden;
}

.nav-sidebar {
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.nav-sidebar .nav-link {
    height: 40px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    border-radius: 5px;
    white-space: nowrap;
    color: #394867BB;
}

.nav-sidebar .nav-link.active {
    font-weight: bold;
    letter-spacing: -.1px;
    color: var(--primary);
}

.nav-sidebar .nav-link:hover {
    color: var(--primary);
}

.nav-sidebar .nav-link + .nav-link {
    margin-top: 2px;
}

.nav-sidebar .nav-link i {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 20px;
    margin-right: 12px;
    top: -1px;
}

.nav-sidebar .nav-item.active .nav-link::before {
    display: block;
}

.nav-sidebar .nav-link {
    position: relative;
}

.nav-sidebar .nav-link::before {
    content: '';
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: -20px;
    width: 3px;
    display: none;
}

.nav-sidebar .nav-link.active::before {
    display: block;
    background-color: var(--primary);
}

.sidebar-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    height: 70px;
    position: relative;
}

.footer-menu {
    display: block;
    height: 26px;
    width: 26px;
    text-align: center;
    border-radius: 5px;
    line-height: 1;
}

.footer-menu > i {
    font-size: 20px;
}

.avatar {
    flex-shrink: 0;
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 100%;
    position: relative;
    text-decoration: none;
}

.avatar.online::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    border-radius: 100%;
    background-color: #01a81d;
    box-shadow: 0 0 0 2px #fff;
}

.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: #223458;
    color: #fff;
}

.avatar-body {
    flex: 1;
    padding-left: 10px;
    white-space: nowrap;
    overflow: hidden;
}

.avatar-body h6 {
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #14274E;
}

.avatar-body span {
    display: block;
    font-size: 12px;
    color: #627293;
}

.wrap-sidebar-button {
    display: none;
}

.sidebar ~ .container-fluid {
    width: calc(100% - 260px);
    margin-left: 260px;
}

/* content */
.wrapper {
    max-width: 1000px;
    margin: 20px auto;
    background-color: var(--white);
    border-radius: 16px;
    box-sizing: border-box;
    overflow: hidden;
}

.top,
.content {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
}

.top {
    background-color: var(--secondary);
    color: var(--white);
    height: calc(45dvh - 55px);
    border-radius: 16px;
    position: relative;
}

.top h1 {
    font-size: 4rem;
}

.top h5 {
    font-size: 1.3rem;
    opacity: .8;
}

.top p {
    opacity: .7;
}

.content {
    position: relative;
    height: calc(55dvh - 20px);
    overflow: auto;
    justify-content: unset;
    padding-top: 100px;
    padding-bottom: 30px;
}

.content > div,
.content .btn {
    width: 50%;
}

.content ol {
    padding-left: 1.3rem;
}

.content li {
    margin-bottom: .3rem;
    padding-left: .6rem;
    line-height: 1.6;
}

.content .btn,
.content .form-control {
    border-radius: 8px;
}

.content .btn-retake,
.content .btn-checkin {
    border-radius: 12px;
    width: 90px !important;
    height: auto;
    color: #0bb783;
    background-color: #d7f9ef;
    border-color: transparent;
    font-size: 14px;
}

.content .btn-retake > i,
.content .btn-checkin > i {
    font-size: 30px;
}

.content .btn-checkin:hover,
.content .btn-checkin:focus {
    color: #fff;
    background-color: #0bb783;
}

.content .btn-checkin:focus {
    box-shadow: 0 0 0 .2rem rgba(11, 183, 131, .3);
}

.content .btn-retake {
    color: #f79857;
    background-color: #ffe9e3;
}

.content .btn-retake:hover,
.content .btn-retake:focus {
    color: #fff;
    background-color: #fca36d;
}

.content .btn-retake:focus {
    box-shadow: 0 0 0 .2rem rgba(252, 163, 109, 0.3);
}

.form-login > div {
    width: 100%;
}

.form-login .form-label-custom {
    font-size: 13px;
    padding-left: 5px;
}

#webcam video {
    border-radius: 12px;
}

.card-custom {
    background-color: #FFF;
    border: 0;
    box-sizing: border-box;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 16px;
    box-shadow: 0 2px 15px #55555510;
    transition: all .2s ease-in-out;
}

.status--radius-loading {
    display: none;
    position: absolute;
    left: 22px;
    bottom: 16px;
    font-size: 1.5em;
    color: #FFFFFF90;
}

.status--radius {
    display: none;
    position: absolute;
    right: 15px;
    bottom: 15px;
    height: 40px;
    width: 40px;
    border-radius: 8px;
    cursor: pointer;
}

.status--radius:before {
    position: absolute;
    right: 10px;
    bottom: 10px;
    content: " ";
    background: #25e577;
    border: solid 2px #54f898;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: pulse 1.5s infinite
}

.status--radius.danger:before {
    background: #ff3e3e;
    border: solid 2px #FD6161;
    animation: pulseDanger 1.5s infinite
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 #25e577
    }

    70% {
        box-shadow: 0 0 0 15px transparent;
    }

    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

@keyframes pulseDanger {
    0% {
        box-shadow: 0 0 0 0 #ff3e3e
    }

    70% {
        box-shadow: 0 0 0 15px transparent;
    }

    100% {
        box-shadow: 0 0 0 0 transparent;
    }
}

/* toggle container */
.custom-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
}

.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 30px;
}

.custom-slider::before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.custom-switch input:checked + .custom-slider {
    background-color: var(--bs-danger);
}

.custom-switch input:checked + .custom-slider::before {
    transform: translateX(22px);
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 52px;
    height: 30px;
    background-color: #FFFFFF90;
    border-radius: 30px;
    display: none;
}

.loading-overlay .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 6px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.info {
    position: fixed;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: .9em;
    color: #88888880;
    z-index: -1;
    user-select: none;
}

.wrap-badge-info {
    position: absolute;
    left: 40px;
    top: 40px;
    font-weight: bold;
    background-color: #E9878635;
    border-radius: 10px;
    padding: 3px;
    padding-right: 12px;
    color: #d07776;

    display: flex;
    align-items: center;
}

.badge-info {
    display: inline-block;
    height: 2rem;
    width: 2rem;
    line-height: 2rem;
    border-radius: 8px;
    color: var(--white);
    background-color: var(--secondary);
    margin-right: 6px;
}

label.error {
    position: relative;
    margin: 3px 0 0;
    font-size: 14px;
    font-weight: bold;
    color: #c32c27;
    letter-spacing: 0;
    text-transform: none;
    /* text-align: left; */
    display: block;
    transform: none !important;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 10%;
    transform: translateX(-50%);
    border: 2px solid #ff000050;
    border-radius: 0.7rem;
}

.toast:not(.showing):not(.show) {
    display: none;
}

.toast-header {
    border-top-left-radius: calc(0.6rem + 1px);
    border-top-right-radius: calc(0.6rem + 1px);
}

.toast-header .btn-close {
    margin-right: 0rem;
    width: 6px;
    height: 6px;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, .15);
}

@media screen and (max-width: 1000px) {
    .wrapper {
        max-width: 100%;
        margin: 10px;
    }

    .content > div,
    .content .btn {
        width: 100%;
    }

    .wrap-badge-info {
        left: 30px;
        top: 30px;
    }
}

@media screen and (max-height: 700px) {
    .content {
        display: block;
        padding-top: 30px;
    }

    .wrap-badge-info {
        position: relative;
        width: fit-content;
        top: unset;
        left: unset;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 540px) {
    body {
        font-size: 13px;
    }

    .top h1 {
        font-size: 3rem;
    }

    .top h5 {
        font-size: 1.1rem;
    }

    .fourth .wrap-badge-info {
        position: relative;
        width: fit-content;
        top: unset;
        left: unset;
        margin-bottom: 30px;
    }

    .btn {
        font-size: inherit;
    }
}

/* rekap css */
.input-icon {
    position: relative;
}

.input-icon > i {
    position: absolute;
    top: 0.70rem;
    left: 0.7rem;
    font-size: 18px;
    color: #999;
}

.input-icon > input {
    padding-left: 2.2rem;
}

.link {
    cursor: pointer;
}

.form-label-custom {
    display: block;
    font-size: 14px;
    color: #999;
    margin-bottom: 4px;
}

.wrap-image {
    position: relative;
}

.wrap-image:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: #00000000;
}

/* Addons */
/* Table */
.card-table .table th,
.card-table .table td {
    vertical-align: middle;
    cursor: default;
    color: var(--textBlack);
}

.card-table .table th:first-child,
.card-table .table td:first-child {
    padding-left: 30px;
}

.card-table .table th:last-child,
.card-table .table td:last-child {
    padding-right: 30px;
}

.card-table .table th {
    cursor: pointer;
    font-size: 14px;
    user-select: none;
    font-weight: normal;
    color: var(--textGray);
    border-bottom: solid 2px var(--textGray);
}

.card-table .table tr td {
    line-height: 1.7;
    vertical-align: middle;
}

.table > :not(:last-child) > :last-child > * {
    border-bottom-color: inherit;
    position: relative
}

.card-table .table tbody tr {
    border-color: var(--textBackground);
}

.card-table .table tbody tr:last-child {
    border-color: transparent;
}

.card-table .table tfoot td {
    color: var(--textGray);
}

.card-table .foto {
    border-radius: 8px;
    border: solid 1px #DDD;
    padding: 1px;
    object-fit: cover;
    width: 40px;
    height: 40px;
}

.card-table .table-link tr td {
    cursor: pointer;
}

/* List.js custom */
.sort::after {
    position: absolute;
    margin-left: 3px;
    font-family: 'boxicons' !important;
    font-style: normal;
    font-weight: normal;
    text-transform: none;
    font-variant: normal;
    line-height: 1;
}

.sort::after {
    content: "\ea50";
    font-size: 15px;
    margin-top: 3px;
    color: #000000AA;
}

.sort.asc,
.sort.desc,
.sort.asc::after,
.sort.desc::after {
    color: var(--secondary) !important;
    font-size: 15px;
}

.sort.asc::after {
    content: "\ea4a" !important;
}

.sort.desc::after {
    content: "\ea57" !important;
}

.wrap-pagination {
    display: flex;
    align-items: center;
    background-color: #EEE;
    border-radius: 10px;
    overflow: hidden;
}

.pagination li {
    display: inline-block;
    padding: 0;
    border-radius: 10px;
    box-sizing: border-box;
    transition: all .3s linear;
}

.wrap-pagination > button.disabled {
    color: #7e829950;
}

.wrap-pagination > button,
.pagination li > a {
    position: relative;
    height: 34px;
    min-width: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    color: #7e8299;
    border: 0;
    outline: 0;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1rem;
    user-select: none;
    cursor: pointer;
    text-decoration: none;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.pagination li:hover > a {
    color: #000;
}

.pagination li.active {
    background-color: var(--secondary);
}

.pagination li.active > a {
    color: #fff;
    min-width: 34px;
}

.pagination-show {
    height: 2rem;
    color: #7e8299;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    padding: 0 3px 0 3px;
    border: 0 !important;
    margin-right: 10px;
    outline: 0;
    background-color: transparent;
    border-radius: 10px;
    transition: all .3s ease;
}

.pagination-show:hover {
    background-color: #4664E620;
}

/* Custom BS */
.form-control,
.form-select {
    font-size: 15px;
    border-radius: 6px;
    border-color: #DDDDDDBB;
    border-width: 2px;
    padding: .45rem .7rem;
}

.form-control::placeholder {
    font-weight: normal;
    color: #CCC;
}

.form-control:hover,
.form-select:hover {
    border-color: var(--secondaryLight);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondaryLight);
    box-shadow: 0 0 0 0.20rem #28146E20;
    outline: 0;
}

.form-control[readonly] {
    background-color: unset;
}

.modal-content {
    border-radius: 12px;
}

.modal-title {
    color: var(--textGray);
}

.modal-body h6 {
    line-height: 1.6;
}

/* new scrollbar */
::-webkit-scrollbar {
    background-color: #FFF;
    width: 10px
}

::-webkit-scrollbar-track {
    background-color: #FFF;
}

::-webkit-scrollbar-thumb {
    background-color: #AAA;
    border-radius: 16px;
    border: 3px solid #FFF;
}