/* User Account Page Styles */
.jum_user-account-page {
    min-height: 80vh;
    background-color: var(--c-gray-6);
}

/* Content Styles */
.jum_content {
    padding-block: 1.5rem;
}

.jum_tab-content {
    display: none;
}

.jum_tab-content.active {
    display: block;
}

.jum_tab-content h2 {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--c-blue-1);
}

.jum_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--c-blue-1-rgb), 0.6);
    z-index: 999;
    display: none;
}

.jum_overlay.active {
    display: block;
}


/* Sidebar Styles */
.jum_sidebar {
    padding-block: 2.5rem;
    background-color: var(--c-white);
}
 
.jum_logo {
    display: inline-flex;
    padding-inline: 2.5rem;
    margin-bottom: 2.5rem;
}

.jum_logo img {
    max-width: 9.375rem;
    width: 100%;
    height: auto;
}

.jum_tabs {
    list-style: none;
    padding-inline: 1rem;
    margin: 0;
}

.jum_tab-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    position: relative;
    border-left: 1px solid transparent;
    transition: all 300ms;
}

.jum_tab-item.active {
    background: linear-gradient(90deg, #bd98471a 0%, rgba(255, 255, 255, 0) 26.5%);
    border-color: var(--c-gold-1);
}

.jum_tab-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    margin-right: 16px;
}

.jum_tab-item.active .jum_tab-icon {
    color: var(--c-gold-1);
}

.jum_tab-text {
    font-size: 0.875rem;
    color: var(--c-gray-4);
}

/* Profile */
.jum_profile-table:not(.jum_profile-dataTable) {
    background-color: var(--c-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.jum_profile-row {
    border-bottom: 1px solid var(--c-gray-2);
}

.jum_profile-row:last-child {
    border-bottom: none;
}

.jum_profile-label,
.jum_profile-value {
    padding: 0.75rem 1rem;
    font-weight: 300;
    font-size: 0.875rem;
    color: var(--c-blue-1);
}

.jum_profile-label {
    background-color: var(--c-gray-7);
}

.jum_profile-value {
    background-color: var(--c-white);
}

/* User Profile Styles */
.jum_tab-content-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-inline: 1rem;
    margin-bottom: 2rem;
}

.jum_tab-content-header h2 {
    white-space: nowrap;
    margin-bottom: 0;
    font-family: var(--font-family-poppins);
    text-transform: capitalize;
}

/* Subuser */
.jum_subuser_table {
    overflow-x: auto;
}

.jum_subuser_table .jum_checkbox-container {
    margin-bottom: 1rem;
}

.jum_subuser_table .jum_checkbox-container label {
    font-size: 0.875rem;
}

/* Modal Sidebar Styles */
.jum_modal-sidebar {
    position: fixed;
    display: flex;
    flex-direction: column;
    top: 0;
    width: 100%;
    right: -100%;
    height: 100%;
    background-color: var(--c-white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: width 0.3s, right 0.3s;
    overflow-y: auto;
}

.admin-bar .jum_modal-sidebar.active  {
    height: calc(100% - 32px);
    top: unset;
    bottom: 0;
}

.jum_modal-sidebar.active {
    right: 0;
}

.jum_modal-sidebar.wide {
    width: 100%;
}

.jum_modal-sidebar .jum_modal-tabs + .jum_modal-tab-content {
    margin-top: 2.125rem;
}

.jum_modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
}

.jum_modal-title {
    margin: 0;
    font-family: var(--font-family-poppins);
    font-size: 1.125rem;
    color: var(--c-blue-1);
    text-transform: capitalize;
}

.jum_modal-close {
    display: inline-flex;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--c-blue-1);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 300ms;
}

.jum_modal-close > svg {
    width: 1.5rem;
    height: 1.5rem;
}

.jum_modal-close:hover {
    color: rgb(199, 199, 199);
    background: none;
}

.jum_modal-content {
    padding-inline: 1rem;
    padding-bottom: 2rem;
}

.jum_modal-content-2 {
    padding-bottom: 2rem;
    text-transform: capitalize;
}

.jum_modal-content .jum_input-container {
    margin-bottom: 1rem;
}

.jum_modal-footer {
    display: flex;
    margin-top: auto;
    padding: 2rem 5rem;
    gap: 1rem;
}

.jum_subscription-details .jum_profile-value {
    font-weight: 500;
}

.jum_profile-value.stripe_status {
    text-transform: capitalize;
}

.jum_profile-value.stripe_status.active {
    color: var(--c-green-1);
}

.jum_plan-header {
    padding: 1.5rem;
    text-align: center;
    background-color: var(--c-white);
    border-radius: 8px;
    border-bottom: 1px solid var(--c-gray-2);
}

.jum_plan-header h3,
.jum_plan-price {
    margin: 0;
    font-family: var(--font-family-poppins);
    font-size: 1.125rem;
    color: var(--c-blue-1);
    font-weight: 500;
}

.jum_plan-price {
    letter-spacing: 0,5rem;
}

.jum_features-toggle {
    padding-block: 1rem;
    padding-inline: 0.5rem;
}

.jum_features-toggle a {
    display: inline-flex;
    align-items: center;
    color: var(--c-blue-1);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
}

.jum_toggle-icon {
    width: 14px;
    height: 8px;
    margin-left: 0.8125rem;
    transform-origin: center;
    transition: transform 0.3s;
}

.jum_features-toggle a.active .jum_toggle-icon {
    transform: rotate(180deg);
}

.jum_features-table {
    background-color: var(--c-white);
    border-radius: 8px;
}

.jum_features-row {
    display: flex;
    border-bottom: 1px solid rgba(var(--c-blue-3-rgb), 0.3);
}

.jum_features-row:last-child {
    border-color: transparent;
}

.jum_features-header {
    font-weight: 500;
}

.jum_features-header .jum_feature-name,
.jum_features-header .jum_feature-value {
    font-size: 1.125rem;
    font-weight: 500;
}

.jum_feature-name,
.jum_feature-value {
    flex: 1;
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
    color: var(--c-blue-1);
}

.jum_feature-value {
    text-align: center;
}

.jum_feature-check > svg,
.jum_feature-cross > svg {
    width: 18px;
    height: 18px;
}
.jum_feature-cross {
    background-color: rgba(var(--c-blue-3-rgb), 0.2);
}

.jum_subscription-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-block: 1.5rem;
}

/* Modal Styles for Modify Licences */
.jum_modal-info-group {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1rem;
    margin-bottom: 1rem;
}

.jum_modal-info-group .jum_label,
.jum_modal-info-group .jum_modal-value {
    margin-bottom: 0;
    line-height: 1;
}

.jum_modal-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--c-blue-1);
}

.jum_modal-input-with-badge {
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: center;
    max-width: 10rem;
    width: 100%;
}

.jum_modal-input-with-badge > input {
    width: 4.875rem;
}

.jum_input-badge {
    margin-left: auto;
    color: var(--c-green-1);
    font-weight: 500;
}

.jum_modal-subscription-price {
    display: flex;
    flex-direction: column;
}

.jum_price-difference {
    color: rgba(var(--c-blue-1-rgb), 0.15);
    font-size: 0.875rem;
    font-weight: 300;
    text-align: right;
}

@media (hover: hover) {
    .jum_tab-item:hover:not(.active) {
        background-color: rgba(189, 152, 71, 0.05);
        border-radius: 0.75rem;
    }
    
    .jum_modal-close:hover {
        color: rgba(var(--c-blue-1-rgb), 0.6);
    }
}

/* min width 480px */
@media (min-width: 35em) {
    .jum_tab-content-header {
        flex-direction: initial;
        justify-content: space-between;
        align-items: center;
    }

    .jum_tab-content-header a {
        width: max-content;
    }
}

/* min width 992px */
@media (min-width: 62em) {
    .jum_sidebar {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 115px); /* 115px is height of main header */
        overflow: auto;
    }

    .jum_tabs {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .jum_tab-item {
        padding: 0.9375rem 1.5rem;
    }

    .jum_tab-item--pushTop {
        margin-top: auto;
    }

    .jum_profile-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .jum_profile-label,
    .jum_profile-value {
        padding: 1rem;
    }

    .jum_profile-label {
        background-color: var(--c-white);
    }

    .jum_profile-value {
        text-align: center;
    }

    .jum_modal-sidebar {
        min-width: 25rem;
        width: 28rem;
    }

    .jum_tab-content-header {
        padding-inline: initial;
    }

    .jum_content {
        padding-block: 2.5rem;
    }

    .jum_user-account-wrapper {
        display: grid;
        grid-template-columns: 17.3125rem 1fr;
        gap: 2.5rem;
        flex: 1; /* Because parent element is css flex */
    }

    .jum_user-account-page {
        display: flex;
        flex-direction: column;
    }

    .jum_user-account-container {
        display: flex;
        flex-direction: column;
        flex: 1;
        height: 100%;
    }

    .jum_subscription-actions {
        flex-direction: initial;
    }

    .jum_modal-sidebar.wide {
        width: 40.625rem;
    }
}

/* min width 1280px */
@media (min-width: 80em) {
    .jum_subscription-container {
        display: grid;
        gap: 2rem;
        grid-template-columns: repeat(2, minmax(300px, 1fr));
    }

    .jum_subuser_table .jum_checkbox-container {
        display: flex;
        justify-content: flex-end;
    }
}

/* Capitalize first letter of each word for User Profile fields */
#dashboard_first_name,
#dashboard_last_name,
#dashboard_company_user_name,
#dashboard_user_type,
#dashboard_is_admin_select,
#dashboard_login_type {
    text-transform: capitalize;
}

/* Capitalize Edit User Profile modal elements */
#edit_first_name,
#edit_last_name {
    text-transform: capitalize;
}

/* Capitalize labels in Edit User Profile modal */
.jum_modal-sidebar label[for="edit_first_name"],
.jum_modal-sidebar label[for="edit_last_name"],
.jum_modal-sidebar label[for="edit_phone_number"] {
    text-transform: capitalize;
}


/* Capitalize Create New Company User input fields */
#create_subuser_first_name,
#create_subuser_last_name {
    text-transform: capitalize;
}

/* Capitalize Subscription details fields */
#dashboard_subscription_status,
#dashboard_subscription_payment_type,
#dashboard_subscription_plan_name {
    text-transform: capitalize;
}

/* Your Subscription Offer button wrapper */
.jum_subscription-offer-wrapper {
    margin-top: 2rem;
    text-align: center;
}

.jum_subscription-offer-wrapper .jum_btn-primary {
    width: 100%;
    max-width: 100%;
}