#main-container {
    display: flex;
    flex-direction: column;
    gap: 0px;
    justify-content: space-between;
    height: 100dvh;
    width: 100%;
}

.header {
    display: flex;
    width: calc(100% - 20px);
    top: 0;
    left: 0;
    padding: 10px;
    z-index: 10;
}

.header .wrapper,
.footer .wrapper {
    border: 1px solid #e8e1f0;
}

.header .wrapper {
    display: flex;
    flex-direction: row;
    background-color: white;
    padding: 8px;
    border-radius: 8px;
    flex: 1;
    width: calc(100% - 40px);
}

.header .left-area,
.header .right-area {
    display: flex;
    flex-direction: row;
    flex: 1;
    align-items: center;
}

.header .left-area .user-area {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.header .left-area .user-area:hover {
    opacity: 0.82;
}

.header .left-area .user-area:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 3px;
    border-radius: 8px;
}

.header .left-area .user-area .user-initial {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background-color: #000000;
}

.header .left-area .user-area .user-information {
    display: flex;
    flex-direction: column;
}

.header .right-area {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: end;
}

.footer {
    display: flex;
    bottom: 0;
    left: 0;
    padding: 10px;
    z-index: 10;
    width: calc(100% - 20px);
}

.footer .wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 8px;
    border-radius: 8px;
    background-color: #ffffff;
    gap: 8px;
    position: relative;
    width: 100%;
}

.footer a.button-icon {
    flex: 1;
}

.main-button-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    flex: 1;
}

.main-button#mobile-nav-button {
    display: none;
}

.content-container {
    display: flex;
    padding: 0px 10px;
    gap: 10px;
    flex: 1;
}

.content-container .wrapper {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    flex: 1;
    gap: 10px;
}

.card {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 10px !important;
    height: 100%;
    max-height: 100%;
}

.card .left-area,
.card .right-area {
    display: flex;
    flex: 1;
    background-color: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    padding: 14px;
    gap: 10px;
    overflow-y: scroll;
    height: fit-content;
}

.card .area-content {
    gap: 6px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Hidden scrollbar that still works */
.card .left-area,
.card .right-area {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.card .left-area::-webkit-scrollbar,
.card .right-area::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.card .title {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.card .title span:first-child {
    font-size: 16px;
}

.container-checkin {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    overflow-y: scroll;
}

.container-checkin::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.user-card {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    border: 1px solid #e8e1f0;
    padding: 8px;
    border-radius: 8px;
}

.user-card-one-column {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    align-items: start;
    border: 1px solid #e8e1f0;
    padding: 8px;
    border-radius: 8px;
}

.user-card .left-area {
    display: flex;
    padding: 0px;
    flex-direction: row;
    flex: 1;
    align-items: center;
    gap: 8px;
}

.user-card .right-area {
    display: flex;
    padding: 0px;
    width: fit-content;
    align-items: end;
}

.user-card .right-area .main-button {
    display: flex;
    width: fit-content;
}

.user-card .user-img {
    display: flex;
}

.user-card[user-img="true"] .user-initial {
    display: none;
}

.user-card[user-img="false"] .user-initial {
    display: flex;
}

.user-card[user-img="false"] .user-img {
    display: none;
}

.user-card .user-initial {
    display: flex;
    height: 38px;
    width: 38px;
    border-radius: 8px;
    background-color: #897bb9;
    justify-content: center;
    align-items: center;
}

.user-card .user-information {
    display: flex;
    flex-direction: column;
}

.user-card .user-img img {
    height: 38px;
    width: 38px;
    border-radius: 8px;
}

.header {
    position: sticky;
    top: 0;
}

.footer {
    position: sticky;
    bottom: 0;
}

.user-data {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.user-data .user-card {
    flex: 1;
}

.content-container#billing-detail .card .left-area {
    width: 300px;
    flex: unset;
}

.content-container#billing-detail .img-detail-area {
    width: 100%;
    display: flex;
}

.content-container#billing-detail .img-detail-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.modal .input-icon {
    flex: unset;
}

.modal .input-icon input {
    width: 100%;
}

.modal .input-icon img {
    height: 14.8px !important;
    width: 14.8px !important;
}

.multiple-button {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    gap: 14px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin-manual {
    animation: spin 1s linear infinite;
}

.wrapper-form {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.wrapper-form .dropdown-title {
    flex: 1;
}

.right-area-wrapper {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    height: fit-content;
}

.button-group-card {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.multi-select-btn {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.multi-select-btn a {
    justify-content: center;
}

.wrapper-btn {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.login-area {
    height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-login {
    max-width: 90dvw;
    width: 400px;
    height: fit-content;
    padding: 16px;
    border-radius: 8px;
    background-color: white;
    gap: 8px;
    display: flex;
    flex-direction: column;
}

#profile-page .wrapper.profile-shell {
    align-items: stretch;
    gap: 12px;
}

#profile-page .profile-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

#profile-page .profile-topbar-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#profile-page .profile-layout {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    flex: 1;
}

#profile-page .profile-account-panel,
#profile-page .profile-main-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

#profile-page .profile-main-panel {
    overflow: hidden;
}

#profile-page .profile-surface {
    border-radius: 14px;
    border: 1px solid #dde4ef;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    box-shadow: 0 7px 22px rgba(24, 33, 58, 0.06);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#profile-page .profile-section-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#profile-page .profile-hero-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    border-color: #d8e5ef;
}

#profile-page .profile-hero-decoration {
    height: 62px;
    background: linear-gradient(115deg, #19c8ff 0%, #52f6a6 100%);
}

#profile-page .profile-hero-body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px 14px 14px;
    margin-top: -24px;
}

#profile-page .profile-avatar {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    border: 3px solid #ffffff;
    background-color: #111827;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.22);
}

#profile-page .profile-hero-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#profile-page .profile-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

#profile-page .profile-pill,
#profile-page .profile-pill-subtle {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    border: 1px solid #d7deea;
    font-size: 11px;
    font-weight: 600;
    color: #3a4760;
    background-color: #f7f9fd;
}

#profile-page .profile-pill-subtle {
    font-weight: 500;
    color: #4d5a72;
    background-color: #f3f6fb;
}

#profile-page .profile-meta-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#profile-page .profile-meta-row,
#profile-page .profile-quick-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #e8edf6;
    background: #f9fbff;
}

#profile-page .profile-quick-metrics {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#profile-page .profile-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

#profile-page .profile-kpi-card,
#profile-page .profile-highlight-card {
    border: 1px solid #e4eaf4;
    background: #ffffff;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

#profile-page .profile-main-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

#profile-page .profile-highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

#profile-page .profile-source-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#profile-page .profile-source-item {
    border: 1px solid #e4eaf4;
    border-radius: 10px;
    background: #ffffff;
    padding: 9px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#profile-page .profile-source-top,
#profile-page .profile-source-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

#profile-page .profile-progress-bar {
    position: relative;
    height: 6px;
    width: 100%;
    border-radius: 999px;
    background-color: #e9eef7;
    overflow: hidden;
}

#profile-page .profile-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1d8f86 0%, #58b9af 100%);
}

#profile-page .profile-history-surface {
    flex: 1;
    min-height: 320px;
    overflow: hidden;
}

#profile-page .profile-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 430px;
    padding-right: 2px;
}

#profile-page .profile-history-item {
    border: 1px solid #dde5f2;
    border-radius: 10px;
    background: #ffffff;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#profile-page .profile-history-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

#profile-page .profile-history-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#profile-page .profile-history-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

#profile-page .profile-history-metric {
    border: 1px solid #e8edf6;
    border-radius: 9px;
    background: #f8faff;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#profile-page .profile-history-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#profile-page .status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    padding: 5px 10px;
    border: 1px solid transparent;
}

#profile-page .status-active {
    background-color: #e9f9f3;
    color: #14815f;
    border-color: #bde9da;
}

#profile-page .status-inactive {
    background-color: #fdecec;
    color: #c64141;
    border-color: #f7caca;
}

#profile-page .status-waiting {
    background-color: #fff7e8;
    color: #a06400;
    border-color: #f6deb2;
}

@media screen and (max-width: 768px) {
    .main-button-wrapper {
        display: none;
    }

    .main-button#mobile-nav-button {
        display: flex;
        width: 100%;
        justify-content: center;
    }

    .main-button-wrapper.active-nav-menu {
        display: flex;
        position: absolute;
        bottom: 62px;
        left: 0;
        justify-content: center;
        background-color: white;
        flex-direction: column;
        padding: 10px;
        width: calc(100% - 20px);
    }

    #mobile-nav-button {
        display: flex;
        width: 100%;
        justify-content: center;
    }

    .content-container .wrapper {
        height: unset;
    }

    .card {
        flex-direction: column;
    }

    .user-card {
        flex-direction: row;
    }

    .user-card a.main-button {
        width: fit-content;
    }

    .user-card .left-area .content-container {
        width: 100%;
        height: unset;
        min-height: unset !important;
    }

    .user-card .right-area .content-container {
        height: unset;
        min-height: unset !important;
        width: 100%;
    }

    .card .left-area,
    .card .right-area {
        max-height: 400px;
        overflow-y: unset;
    }

    .content-container#billing-detail .card .left-area {
        width: unset;
        flex: 1;
        max-height: unset;
        height: fit-content;
        overflow-y: unset;
    }

    .card .left-area,
    .card .right-area {
        max-height: unset;
        overflow-y: unset;
    }

    .card {
        height: unset;
    }

    #profile-page .profile-layout,
    #profile-page .profile-main-grid,
    #profile-page .profile-highlight-grid {
        grid-template-columns: 1fr;
    }

    #profile-page .profile-kpi-grid,
    #profile-page .profile-history-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #profile-page .profile-history-list {
        max-height: unset;
    }
}

@media screen and (max-width: 480px) {
    .header .left-area .user-area .user-information {
        display: none;
    }

    .content-container,
    .content-container .wrapper {
        height: fit-content;
    }

    .content-container .card {
        height: 100%;
    }

    .main-button-wrapper {
        border: 1px solid #e8e1f0;
        border-radius: 8px;
    }

    .content-container .wrapper {
        height: unset;
    }

    .user-card .right-area a.main-button {
        display: flex;
        flex: 1;
        justify-content: center;
        width: -webkit-fill-available;
    }

    .user-card {
        flex-direction: column;
    }

    .user-card .left-area .content-container {
        width: 100%;
        height: unset;
        min-height: unset !important;
    }

    .user-card .right-area .content-container {
        height: unset;
        min-height: unset !important;
        width: 100%;
    }

    .user-card {
        align-items: start;
    }

    .user-card .right-area,
    .user-card .left-area {
        width: 100%;
    }
    .user-card-1 .right-area,
    .user-card-1 .left-area {
        width: 100%;
    }

    .card .area-content {
        max-height: 400px;
        overflow-y: scroll;
    }

    .content-container#billing-detail .card .left-area {
        width: unset;
        flex: 1;
        max-height: unset;
        height: fit-content;
        overflow-y: unset;
    }

    .content-container#billing-detail .card .area-content {
        max-height: unset;
        overflow-y: unset;
    }

    #profile-page .profile-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    #profile-page .profile-kpi-grid,
    #profile-page .profile-history-metrics {
        grid-template-columns: 1fr;
    }

    #profile-page .profile-meta-row,
    #profile-page .profile-quick-row {
        flex-direction: column;
        align-items: start;
    }

    #profile-page .profile-history-item-top {
        flex-direction: column;
        align-items: start;
    }

    .content-container#riwayat-pengunjung .card .right-area {
        max-height: 600px;
    }

    .content-container#riwayat-pengunjung .card .area-content {
        max-height: 600px;
    }

    .user-card.quantity-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .user-card.quantity-item .left-area {
        flex: 1;
        align-items: center;
    }

    .user-card.quantity-item .right-area {
        flex: 1;
        justify-content: end;
    }

    .button-group-card {
        width: 100%;
        flex-direction: column;
    }

    .button-group-card a {
        flex: 1;
    }

    .wrapper-form {
        flex-direction: column;
    }

    .multi-select-btn {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .wrapper-btn {
        flex: 1;
        width: 100%;
    }

    #pengaturan .left-area {
        max-height: unset;
        height: unset;
        flex: unset;
    }

    .card-login {
        width: 100%;
        max-width: 82dvw;
    }
}
