/**
 * Phase 2 — V2 dashboard shell (sidebar + main).
 * Scoped under .v2-dash-shell. Prefer this over Phase-1 dashboard-v2 !important spray.
 */

.v2-dash-shell {
    background: #fff;
}

.v2-dash-shell .v2-dash-sidebar .profile-settings-menu {
    background: #fff;
    border: 1px solid #EBECEE;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
    padding: 0.75rem 0.5rem;
    overflow: hidden;
}

.v2-dash-shell .profile-settings-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.v2-dash-shell .profile-settings-menu-item-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    margin: 0.125rem 0;
    border-radius: 0.5rem;
    color: #37424E;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.v2-dash-shell .profile-settings-menu-item-link:hover {
    background: #F8F9FB;
    color: #1E242E;
}

.v2-dash-shell .profile-settings-menu-item.active .profile-settings-menu-item-link,
.v2-dash-shell .profile-settings-menu-item-link.active {
    background: color-mix(in srgb, var(--main-color-one, #ff2d55) 10%, #fff);
    color: var(--main-color-one, #ff2d55);
}

.v2-dash-shell .profile-settings-menu-item-link svg path {
    fill: currentColor;
}

.v2-dash-shell .profile-bars,
.v2-dash-shell .profile-close {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 991.98px) {
    .v2-dash-shell .profile-bars {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 1px solid #EBECEE;
        border-radius: 0.5rem;
        background: #fff;
        margin-bottom: 0.75rem;
    }

    .v2-dash-shell .profile-close {
        display: inline-flex;
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        z-index: 2;
    }

    .v2-dash-shell .profile-settings-menu-inner {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(20rem, 88vw);
        background: #fff;
        border-right: 1px solid #EBECEE;
        padding: 2.5rem 0.75rem 1rem;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        z-index: 1050;
        overflow-y: auto;
    }

    .v2-dash-shell .profile-settings-menu-inner.active {
        transform: translateX(0);
    }
}

/* Panels / tables inside shell */
.v2-dash-shell .v2-dash-panel .table {
    margin-bottom: 0;
    border-color: #EBECEE;
}

.v2-dash-shell .v2-dash-panel .table thead th {
    background: #F8F9FB;
    color: #37424E;
    font-size: 0.8125rem;
    font-weight: 600;
    border-color: #EBECEE;
}

.v2-dash-shell .v2-dash-panel .table td,
.v2-dash-shell .v2-dash-panel .table th {
    border-color: #EBECEE;
    vertical-align: middle;
}

.v2-dash-shell .btn-profile {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.v2-dash-shell .btn-profile.btn-bg-1 {
    background: var(--main-color-one, #ff2d55);
    border: 1px solid transparent;
    color: #fff;
}

.v2-dash-shell .myJob-wrapper-single-balance {
    border: 1px solid #EBECEE;
    border-radius: 1rem;
    background: #fff;
    padding: 1.25rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.v2-dash-shell .myJob-wrapper-single-balance.total_balance {
    background: #F8F9FB;
}

.v2-dash-shell .switch-profile-select {
    height: 40px;
    border: 1px solid #EBECEE;
    border-radius: 0.5rem;
    padding: 0 0.75rem;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1E242E;
}

.v2-dash-shell .profile-switch-header {
    margin: 0;
    padding: 0;
    border: 0;
}

/* Legacy Inflanar content blocks → look like V2 panels inside the shell */
.v2-dash-shell .single-profile-settings {
    background: #fff;
    border: 1px solid #EBECEE;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.v2-dash-shell .single-profile-settings-header-title,
.v2-dash-shell .inf-title.title6 {
    color: #1E242E;
    font-weight: 600;
}

.v2-dash-shell .profile-border-top,
.v2-dash-shell .profile-border-bottom {
    border-color: #EBECEE !important;
}

/* —— Page shell (orders / offers / chat / proposals) —— */
.v2-page-shell {
    background: #fff;
}

.v2-page-shell .myOrder-wrapper,
.v2-page-shell .shop-contents-wrapper-right,
.v2-page-shell .profile-details-widget,
.v2-page-shell .chat-wrapper,
.v2-page-shell .custom-offer-wrapper {
    background: #fff;
    border: 1px solid #EBECEE;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.v2-page-shell .myOrder-wrapper {
    padding: 1.25rem 1.5rem;
}

.v2-page-shell .profile-details-widget {
    padding: 1.25rem 1.5rem;
}

.v2-page-shell .profile-border-bottom,
.v2-page-shell .profile-border-top {
    border-color: #EBECEE !important;
}

.v2-page-shell .btn-profile {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.v2-page-shell .btn-profile.btn-bg-1 {
    background: var(--main-color-one, #ff2d55);
    border: 1px solid transparent;
    color: #fff;
}

.v2-page-shell .myOrder-wrapper-tabs .tabs button.active,
.v2-page-shell .myOrder-wrapper-tabs .tabs button.btn-bg-1 {
    background: var(--main-color-one, #ff2d55);
    border-color: transparent;
    color: #fff;
    border-radius: 0.5rem;
}

.v2-page-shell__grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .v2-page-shell__grid {
        flex-direction: row;
        align-items: flex-start;
    }

    .v2-page-shell__main {
        flex: 1 1 0;
        min-width: 0;
    }

    .v2-page-shell__aside {
        flex: 0 0 20rem;
        width: 20rem;
        position: sticky;
        top: 6rem;
    }
}

/* Auth / cancel / congrats cards inside page-shell */
.v2-page-shell .login-wrapper,
.v2-page-shell .signup-wrapper,
.v2-page-shell .login-contents,
.v2-page-shell .congratulation-wrapper,
.v2-page-shell .congratulation-contents {
    background: #fff;
    border: 1px solid #EBECEE;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.v2-page-shell .login-wrapper,
.v2-page-shell .signup-wrapper,
.v2-page-shell .congratulation-wrapper {
    padding: 1.5rem;
}

.v2-page-shell .login-area .max-w-content,
.v2-page-shell .signup-area .max-w-content {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}
