/* input(51,11): run-time error CSS1035: Expected colon, found '{'
input(85,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '&'
input(108,12): run-time error CSS1035: Expected colon, found '{'
input(134,15): run-time error CSS1035: Expected colon, found '{'
input(149,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '&'
input(164,20): run-time error CSS1035: Expected colon, found '{'
input(194,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '&'
input(251,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '&'
input(263,9): run-time error CSS1062: Expected semicolon or closing curly-brace, found '&'
input(276,15): run-time error CSS1036: Expected expression, found 'not('
input(286,20): run-time error CSS1035: Expected colon, found '{'
input(335,16): run-time error CSS1035: Expected colon, found '{'
input(396,12): run-time error CSS1035: Expected colon, found '{'
input(427,16): run-time error CSS1035: Expected colon, found '{'
input(529,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '&'
input(560,18): run-time error CSS1030: Expected identifier, found '#secConsistency'
input(560,46): run-time error CSS1025: Expected comma or open brace, found ')'
input(576,9): run-time error CSS1035: Expected colon, found '{'
input(586,19): run-time error CSS1035: Expected colon, found '{'
input(653,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '&'
input(666,20): run-time error CSS1035: Expected colon, found '{'
input(706,17): run-time error CSS1035: Expected colon, found '{'
input(720,11): run-time error CSS1035: Expected colon, found '{'
input(773,15): run-time error CSS1035: Expected colon, found '{'
input(821,11): run-time error CSS1035: Expected colon, found '{'
input(842,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '&'
input(892,9): run-time error CSS1035: Expected colon, found '{'
input(965,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '&'
input(1050,10): run-time error CSS1035: Expected colon, found '{'
input(1150,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '&'
input(1179,24): run-time error CSS1035: Expected colon, found '{'
input(1227,11): run-time error CSS1035: Expected colon, found '{'
input(1255,19): run-time error CSS1035: Expected colon, found '{'
input(1292,15): run-time error CSS1035: Expected colon, found '{'
input(1313,15): run-time error CSS1035: Expected colon, found '{'
input(1343,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '&'
input(1367,15): run-time error CSS1035: Expected colon, found '{'
input(1435,11): run-time error CSS1035: Expected colon, found '{'
input(1534,19): run-time error CSS1035: Expected colon, found '{'
input(1562,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '&'
input(1568,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '&'
input(1602,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '&'
input(1634,15): run-time error CSS1035: Expected colon, found '{'
input(1662,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '&'
input(1688,5): run-time error CSS1062: Expected semicolon or closing curly-brace, found '&'
input(1713,23): run-time error CSS1035: Expected colon, found '{'
input(1776,12): run-time error CSS1035: Expected colon, found '{'
input(1886,12): run-time error CSS1035: Expected colon, found '{'
input(1900,15): run-time error CSS1035: Expected colon, found '{'
input(1932,11): run-time error CSS1035: Expected colon, found '{'
input(2131,14): run-time error CSS1035: Expected colon, found '{'
input(2149,11): run-time error CSS1035: Expected colon, found '{' */
:root {
    --outer-margin: 0px;
    --bs-body-color: var(--typo-primary);
    /* #region PAGE */
    --wrapper-bg: var(--color-crm-background);
    /* #endregion */
    /* #region NAVBAR  */
    --nav-height: 54px;
    --nav-bg: var(--color-crm-background);
    /* #endregion */
    /* #region SIDEBAR */
    --sidebar-bg: var(--color-crm-background);
    --sidebar-width: 250px;
    --sidebar-spacing: calc(var(--page-outer-margin) * 3);
    --sidebar-link-icon-color: var(--color-crm-icon-light);
    /* #endregion */
    /* #region WIDGET CARD  */
    --widget-card-bg: #000;
    --widget-card-border-radius: 12px;
    --widget-card-title-color: var(--typo-primary);
    --widget-card-title-font-size: 28px;
    --widget-card-title-font-weight: 700;
    /* #endregion  */
    /* #region TYPOGRAPHY */
    --typo-danger: var(--color-crm-sell);
    --typo-light: var(--color-typo-btn-label-light);
    --typo-muted: var(--color-crm-typo-secondary);
    --typo-warning: #FFB800;
    --typo-secondary: var(--color-crm-typo-secondary);
    --typo-success: var(--color-crm-buy);
    --typo-primary: var(--color-crm-typo-primary);
    /* #endregion */
    /* #region GENERIC */
    --page-outer-margin: var(--outer-margin);
    --border-color: var(--color-crm-stroke);
    --primary: var(--color-crm-primary);
    /* #endregion */
    --icon-light-main: #B5B5B5;
    --color-ui-active-fill: var(--primary);
}

.content {
    background-color: #000;
    padding: 24px;
}

.wrapper:has(.identity-form) {
    background-color: #000;
    height: unset;

    .main {
        max-height: 100dvh;
    }
}

.select2 {
    width: 110px !important;
}

/* #region WIDGET CARD */

.widget-card-outer-container {
    display: flex;
    flex-direction: column;
    /*padding: 24px;*/
}

.widget-card {
    background-color: #212121;
    padding: 24px;
}

/* #endregion */

/* #region DASHBOARD NAVIGATION */

.dashboard-section-btn {
    align-items: center;
    background-color: #212121;
    border-radius: 16px;
    font-size: 20px;
    height: 100%;
    padding: 16px;

    &.selected {
        color: #000;
    }

    &:not(.selected):hover {
        background-color: #373737;
    }
}


/* #endregion */


.see-all-button {
    color: var(--primary);
    gap: 8px;
}

.home-alerts {
    display: flex;
    flex-direction: column;
    gap: 16px;

    .alert {
        border-radius: 12px;

        .alert-message {
            justify-content: center;
            font-size: 16px;
        }
    }
}


/* #region TYPOGRAPHY */

.text-warning {
    color: var(--typo-warning);
}

.text-typo-paragraph-primay {
    color: #C5C5C5 !important;
}

.link-primary {
    color: var(--primary) !important;
    text-decoration-color: var(--primary) !important;
    transition: all .2s;

    .icon-svg {
        background-color: var(--primary);
    }

    &:hover {
        color: var(--primary) !important;
        filter: brightness(.9);
        text-decoration-color: var(--primary) !important;
    }
}

.link-secondary {
    color: var(--typo-secondary) !important;
    transition: all .2s;

    &:hover {
        color: var(--primary) !important;
        text-decoration-color: var(--primary) !important;
    }
}

/* #endregion */


/* #region ALERTS */

.alert {
    padding: 8px 12px !important;
    border: 0px;

    .alert-message {
        gap: 16px;
    }
}

/* #endregion */

/* #region NOTIFICATIONS */

.notification-badge {
    background-color: var(--color-crm-sell);
    border-radius: 20px;
    color: white;
    font-size: 14px;
    line-height: 16px;
    left: 8px;
    padding: 1px 6px;
    position: absolute;
    top: -8px;
}

/* #endregion */

/* #region TOOLTIP */

.custom-tooltip-text {
    bottom: 0%;
    left: 340%;
    transform: translateY(110%);

    &::after {
        left: 11%;
        rotate: 180deg;
        top: 0%;
        transform: translateY(90%);
    }
}

/* #endregion */

/* #region TYPOGRAPHY */

.fs-25px {
    color: var(--typo-primary);
}

/* #endregion */

/* #region BADGES */

.badge {
    background-color: var(--color-crm-card);
    border-radius: 100vw;
    padding: 4px 12px !important;
}

    .badge.bg-success {
        background-color: #0F9059 !important;
        color: var(--typo-primary) !important;
    }

    .badge.bg-warning {
        background-color: #E73C3C !important;
        color: var(--typo-primary) !important;
    }

    .badge.bg-danger {
        background-color: var(--color-crm-badge-red-alt) !important;
        color: var(--color-crm-badge-light-text) !important;
    }

    .badge.bg-dot-red {
        background-color: var(--color-ui-dot-red) !important;
        color: #fff !important;
    }

/* #regino NAVBAR */

.navbar {
    padding: 8px 16px;
}

#sidebar-toggle-icon {
}

@media (max-width: 767px) {
    #sidebar-toggle-icon {
        &.icon-sidebar-collapse {
            mask-image: url(/icons/crm_v8/arrow-right.svg?v=7v5tm8_HpnxSBJiDx0CcqwvbeLc);
        }

        &.icon-chevron-right {
            mask-image: url(/icons/crm_v8/arrow-left.svg?v=7v5tm8_HpnxSBJiDx0CcqwvbeLc);
        }
    }
}

@media (min-width: 768px) {
    #sidebar-toggle-icon {
        &.icon-sidebar-collapse {
            mask-image: url(/icons/crm_v8/arrow-left.svg?v=7v5tm8_HpnxSBJiDx0CcqwvbeLc);
        }

        &.icon-chevron-right {
            mask-image: url(/icons/crm_v8/arrow-right.svg?v=7v5tm8_HpnxSBJiDx0CcqwvbeLc);
        }
    }
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: var(--typo-primary) !important;

    .icon-svg:not(#arrow) {
        background-color: var(--typo-primary) !important;
    }
}

.nav-item-dropdown {
    background-color: #2E2E2E;
    border-radius: 32px;
    padding: 8px;

    .dropdown-menu {
        background-color: #212121;
        border: unset;
        border-radius: 4px;
        box-shadow: 0px 8px 32px 0px rgba(0, 0, 0, 0.16);
        margin-top: 0;
    }

    .nav-link #arrow {
        mask-image: url(/icons/default/chevron-down.svg?v=sliXUu5NcXJ3D0RmpQr5KfPvgnQ);
    }

    &:has(a.dropdown-toggle.show) .nav-link i#arrow {
        mask-image: url(/icons/default/chevron-up.svg?v=zQAzCyMYVuBKgnfxPTc8KG4vyHY);
    }

    .dropdown-toggle {
        color: #B5B5B5;
        padding: 0 !important;

        .icon-svg {
            background-color: #B5B5B5;
        }

        &::after {
            content: none;
        }
    }
}

.nav-item-dropdown-title {
    color: var(--typo-primary);
    font-size: 18px;
    font-weight: 700;
}

.notification-dropdown.show {
    top: 39px;
}

/* #endregion */

/* #region NOTIFICATIONS */

.notification-dropdown {
    background-color: #212121;
    gap: 8px;
    padding: 16px;

    .title-row {
        margin-bottom: 16px;

        .title {
            color: var(--typo-primary);
            font-size: 20px;
            font-weight: 700;
        }
    }

    .notification {
        align-items: center;
        padding: 0px;

        .notification-body {
            .notification-text {
                color: var(--typo-secondary);
            }
        }


        .notification-arrow-container {
            --_size: 40px;
            align-items: center;
            border-radius: 100vw;
            background-color: #141414;
            display: flex;
            justify-content: center;
            width: var(--_size);
            height: var(--_size);

            .icon-svg {
                background-color: var(--typo-primary);
                transition: all .1s;
            }

            &:hover {
                .icon-svg {
                    background-color: var(--primary);
                }
            }
        }
    }

    .empty-notification-text {
        color: var(--typo-secondary);
        font-size: 16px;
        font-weight: 400;
        text-align: center;
    }
}

/* #endregion */

/* #region DASHBOARD VALUE CARD */

.dashboard-value-card {
    display: flex;
    flex-direction: column;
    gap: 16px;

    .title {
        color: var(--typo-primary);
        font-size: 16px;
        font-weight: 400;
    }

    .value-container {
        align-items: center;
        display: flex;
        flex-direction: row;
        gap: 12px;
    }

    .value {
        align-items: center;
        display: flex;
        gap: 8px;

        span {
            letter-spacing: 3%;
            font-size: 22px;
            font-weight: 700;
        }
    }
}

.dashboard-progress-card {
    display: flex;
    flex-direction: column;
    gap: 12px;

    .title-row {
        display: flex;
        flex-direction: row;
        justify-content: space-between;

        .label-container {
            align-items: center;
            background-color: #000;
            border-radius: 100vw;
            display: flex;
            justify-content: center;
            min-width: 35px;
            padding: 4px 12px;

            .label {
                color: var(--typo-primary);
                font-size: 14px;
                font-weight: 400;
                line-height: 14px;
            }
        }
    }

    .challenge-progress-bar {
        --progress-bar-bg: #000;
        --progress-bar-fg: var(--color-ui-scroll-fill);
        background-color: var(--progress-bar-bg);
        height: 12px;


        div {
            background-color: var(--progress-bar-fg);
        }

        &.neutral {
            --progress-bar-bg: #132E56;
            --progress-bar-fg: #3A64A3;
        }

        &.positive, &.success {
            --progress-bar-bg: #283816;
            --progress-bar-fg: #88D62C;
        }

        &.warning {
            --progress-bar-bg: var(--color-toast-warning-fill);
            --progress-bar-fg: var(--color-toast-warning-icon-fill);
        }

        &.negative, &.failed {
            --progress-bar-bg: #6F4646;
            --progress-bar-fg: #FF5B5B;
        }

        span.position-absolute {
            font-size: 14px;
        }
    }

    .challenge-progress-bar-value {
        font-size: 14px;
        position: absolute;
    }
}

.prg-title {
    font-size: 16px;
}

/* #endregion */

/* #region PERCENTUAL BADGES */

.perc-badge {
    border-radius: 100vw;
    color: #000;
    background-color: #B5B5B5;
    font-size: 16px;
    line-height: 16px;
    font-weight: 400;
    min-width: 32px;
    padding: 4px 8px;
    text-align: center;
}

.perc-badge-success {
    background-color: var(--color-crm-buy);
}

.perc-badge-danger {
    background-color: var(--color-crm-sell);
    color: var(--typo-primary);
}

/* #endregion */

/* #region DASHBOARD HORIZONTAL TAB SELECTOR */

.dashboard-horizontal-tab-selector-container {
}

.dashboard-horizontal-tab-selector-outer {
    &.selected {
        background-color: var(--color-crm-card);

        .dashboard-horizontal-tab-selector-inner {
            background-color: var(--color-crm-card);
        }
    }

    .dashboard-horizontal-tab-selector-inner {
        background-color: var(--color-crm-light-card);
    }
}

/* #endregion */

/* #region CONSISTENCY CARD */

.consistency-card {
    background-color: #212121;
    border-radius: 12px;
}

.consistency-card-grid-item {
    background-color: #000000;
}

.consistency-badge {
    background-color: #47DD68;
    color: #212121;
}

.widget-card:has(#secConsistency:not(.d-none)) {
    background-color: transparent;
    padding: 0px
}

/* #endregion */

/* #region SIDEBAR */

.sidebar {
    padding: 10px 0px;
}

.sidebar-brand {
    margin: 6px 0px 32px 0px;

    img {
        width: 100%;
        padding: 0px 64px 0px 16px;
    }
}

.sidebar-item {
    margin-top: 8px;
    font-size: 14px;

    .sidebar-link {
        border-left: 4px solid transparent;
        border-radius: 0px;
        color: var(--typo-primary);
        padding: 12px 6px 12px 16px;

        span {
            margin-left: 12px;
        }

        .icon-svg {
            background-color: var(--icon-light-main);
        }

        &:hover {
            background-color: #212121;
        }

        &[data-bs-toggle='collapse'] {
            &::after {
                align-self: center;
                border-bottom: 0;
                border-left: .3em solid transparent;
                border-right: .3em solid transparent;
                border-top: .3em solid;
                content: "";
                display: inline-block;
                vertical-align: .255em;
                transition: transform .5s ease;
                margin-left: 8px;
            }

            &[aria-expanded='true'] {
                &::after {
                    transform: rotate(180deg);
                    transition: transform .5s ease;
                }
            }
        }
    }

    &.active > .sidebar-link {
        background-color: #212121;
        border-bottom-right-radius: 2px;
        border-top-right-radius: 2px;
        border-left: 4px solid var(--primary);
    }
}

.sidebar-header {
    font-size: 14px;
    letter-spacing: 10%;
    padding-left: 20px;
}

.sidebar-admin .sidebar-link {
    padding: 6px;
}



.sidebar-list {
    scrollbar-width: thin;
    scrollbar-color: var(--typo-secondary) var(--sidebar-bg);
}

.simplebar-content {
    &:has(*) {
        padding: 16px 16px 8px 16px;
    }
}

/* #endregion */

/* #region SWITCH BUTTONS */

.switch-button-container {
    background-color: #212121;
    padding: 4px;

    .switch-button {
        border-radius: 8px;
        cursor: pointer;
        padding: 10px 24px;

        &.selected {
            background-color: #000;
            font-weight: 400;
        }

        &:not(.selected):hover {
            background-color: #00000052;
        }
    }

    &.switch-button-container-bg-alt {
        background-color: #2E2E2E;
    }
}

/* #endregion */

/* #region DASHBOARD PORTFOLIO */

.dashboard-portfolio-buttons-row {
    align-items: center;
    background-color: #2E2E2E;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: center;
    margin-bottom: -24px;
    margin-left: -24px;
    margin-right: -24px;
    padding: 8px 0px;
}

.portfolio-table {
    .btn-action {
        border-radius: 2px;
        color: var(--typo-primary);
    }
}

/* #endregion */

/* #region TABLE */

.table {
    --table-row-bg: #212121;
    --table-row-bg-odd: #363636;

    thead {
        tr {
            th {
                background-color: var(--table-row-bg);
                border-bottom: unset;
                color: var(--typo-primary);

                &:first-child {
                    border-top-left-radius: 12px;
                }

                &:last-child {
                    border-top-right-radius: 12px;
                }
            }
        }
    }

    tbody {
        tr {
            td {
                background-color: var(--table-row-bg);
                border-bottom: unset;
                color: var(--typo-primary);
            }

            &:nth-child(odd) {
                td {
                    background-color: var(--table-row-bg-odd);
                }
            }

            &:last-child {
                td {
                    &:first-child {
                        border-bottom-left-radius: 12px;
                    }

                    &:last-child {
                        border-bottom-right-radius: 12px;
                    }
                }
            }
        }
    }

    &.table-alt {
        --table-row-bg: #2E2E2E;
    }
}

    .table:not(.table-sm) {

        thead {
            tr {
                th {
                    font-size: 16px;
                    font-weight: 400;
                    padding: 8px 16px;
                }
            }
        }

        tbody {
            tr {
                td {
                    font-size: 14px;
                    font-weight: 400;
                    padding: 12px 16px;
                }

                &:nth-child(odd) {
                    td {
                        background-color: var(--table-row-bg-odd);
                    }
                }

                &:last-child {
                    td {
                        &:first-child {
                            border-bottom-left-radius: 12px;
                        }

                        &:last-child {
                            border-bottom-right-radius: 12px;
                        }
                    }
                }
            }
        }

        &.table-alt {
            --table-row-bg: #2E2E2E;
        }
    }

/* #endregion */

/* #region ECONOMIC CALENDAR */

.economic-calendar-table {
    thead {
        tr {
            th {
                color: var(--typo-secondary);
                font-weight: 700;
            }
        }
    }

    tbody {
        tr {
            td {
                color: var(--typo-secondary);
            }
        }
    }
}

/* #endregion */

.affiliate-card {
    &.affiliate-value-card {
        align-items: center;
        flex: 1 1 auto;
        flex-direction: row;
        gap: 16px;
        justify-content: start;
    }



    .affiliate-icon-container {
        align-items: center;
        border-radius: 8px;
        background-color: #000;
        justify-content: center;
        display: flex;
        width: min-content;
        height: min-content;
        padding: 8px;

        i {
            --size: 24px;
            align-items: center;
            color: var(--typo-primary);
            display: flex;
            font-size: var(--size);
            height: calc(var(--size) + 8px);
            justify-content: center;
            width: calc(var(--size) + 8px);
        }
    }

    .affiliate-card-title {
        color: var(--typo-secondary);
        font-size: 14px;
        font-weight: 500;
    }

    .affiliate-card-value {
        color: var(--typo-primary);
        font-size: 20px;
        font-weight: 600;
    }
}

.affiliate-chart-placeholder {
    overflow: hidden;
    position: relative;
    text-align: center;

    img {
        filter: blur(10px);
    }

    span {
        background-color: #000;
        border-radius: 12px;
        color: var(--typo-primary);
        font-size: 16px;
        font-weight: 500;
        left: 50%;
        padding: 16px;
        position: absolute;
        text-align: center;
        top: 50%;
        translate: -50% -50%;
    }
}

/* #region REPORT */

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-columns: 1fr;
}

.report-card {
    background-color: var(--color-crm-background);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.report-card-title {
    color: var(--typo-primary);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    text-wrap: nowrap;
}

.report-card-subtitle {
    color: var(--color-crm-typo-secondary);
    font-size: 14px;
    font-weight: 600;
}

.report-card-primary-value {
    align-self: center;
    color: var(--typo-primary);
    font-size: 20px;
    font-weight: 700;
}

.report-card-secondary-value {
    color: var(--typo-primary);
    font-size: 16px;
    font-weight: 400;
}

/* #endregion */

/* #region SUBSCRIPTION COLLAPSABLE */

.subscription-collapsable {
    background-color: #212121;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    transition: all .2s;

    &:has(> a.collapsed) {
        border-bottom-left-radius: 12px !important;
        border-bottom-right-radius: 12px !important;
    }

    .subscription-collapsable-icon {
        background-color: #212121;
        transition: all .2s;

        i.icon-svg {
            background-color: var(--icon-light-main);
            transition: all .2s;
        }

        &:hover {
            i.icon-svg {
                background-color: var(--primary);
            }
        }

        &.collapsed {
            background-color: #2E2E2E;


            i.icon-svg {
                background-color: var(--icon-light-main);
            }

            &:hover {
                i.icon-svg {
                    background-color: var(--primary);
                }
            }
        }
    }

    .subscription-collapsable-section {
        .subscription-collapsable-section-title {
            font-size: 14px;
            font-weight: 400;
        }

        .subscription-collapsable-section-value {
            font-size: 16px;
            font-weight: 400;
        }
    }

    .subscription-collapsable-section-link {
        background-color: #2E2E2E;
        border-radius: 256px;
        padding: 12px;

        .icon-svg {
            background-color: #fff;
            transition: all .2s;
        }

        &:hover {
            .icon-svg {
                background-color: var(--primary);
            }
        }
    }
}


.subscription-collapsable-under-section {
    background-color: var(--color-crm-panel);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-top: unset;
}

.subscription-collapsable-step {
    background-color: #000;
    border-radius: 12px;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    min-width: 10vw;
    height: stretch;

    .btn {
        width: 100%;
    }

    &.subscription-collapsable-step-inactive {
        opacity: .5;
    }
}

.subscription-collapsable-step-text {
    color: var(--typo-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
}

.subscription-collapsable-step-text-lg {
    color: var(--typo-primary);
    font-size: 18px;
    font-weight: 400;
    line-height: 18px;
}

.subscription-collapsable-under-section-notification div.widget-card {
    background-color: var(--color-crm-background);
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.subscription-collapsable-step-dropdown-menu .dropdown-item:hover .icon-svg {
    --svg-color: var(--color-crm-card);
}

/* #endregion */

/* #region STEP LINE */

.step-line {
    width: 1px;
    height: 40px;
    background-color: var(--color-crm-stroke);
}

    .step-line.step-background-green {
        width: 2px;
    }

.step-border-green {
    border: 1px solid var(--primary);
}

.step-background-green {
    background-color: var(--primary);
}

.step-border-active {
    border: 1px solid var(--color-ui-stroke);
}


/* #endregion */

/* #region PIE CONTAINER */

.half-pie-container-clip {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    border-radius: inherit;
}

.half-pie-container {
    --pie-size: 75px;
    display: block;
    height: var(--pie-size);
    overflow: visible;
    margin-right: 0px;
    width: var(--pie-size);
    position: absolute;
    right: 0;
    transform: translate(50%, 25%);
}

.pie {
    --perc: calc(50 + var(--percent) / 2);
    --ring-size: 4px;
    background-blend-mode: overlay;
    background-position: 50% 50%;
    background-size: 150%;
    border-radius: 50%;
    display: inline-block;
    min-width: var(--pie-size);
    max-width: var(--pie-size);
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    box-shadow: 0 0 0 8px #000;
    background-image: conic-gradient( from calc(180deg - 3.6deg * var(--perc)), var(--ring-fill-color) calc(3.6deg * var(--perc)), #363636 calc(3.6deg * var(--perc)));

    &::before {
        content: '';
        position: absolute;
        inset: var(--ring-size);
        border-radius: 50%;
        background: #212121;
    }

    &.pie-red {
        --ring-fill-color: var(--color-crm-sell);
    }

    &.pie-green {
        --ring-fill-color: var(--color-crm-buy);
    }
}

/* #endregion */

/* #region PAST CHALLENGE CARD */

.past-challenge-card {
    background-color: #212121;
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 8px 16px;

    .link-icon-primary {
        .icon-svg {
            background-color: var(--typo-secondary);
        }

        &:hover {
            .icon-svg {
                background-color: var(--primary);
            }
        }
    }
}

.past-challenge-card-section {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
}

.past-challenge-card-section-title {
    color: var(--color-crm-typo-secondary);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

.past-challenge-card-section-value {
    color: var(--typo-primary);
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
}

/* #endregion */

/* #region IDENTITY */

.identity-logo-container {
    background-color: #141414;
    left: 0;
    padding: 16px;
    text-align: center;
    width: 100dvw;
    position: sticky;
    top: 0;
    z-index: 10;

    .logo {
        max-height: 26px;
    }
}

.identity-form {
    align-self: center;
    padding: 48px 0px;
    width: 100%;
    max-width: 500px;
}

.identity-form-title {
    color: #F7F7F7;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
}

.crm-identity-card {
    background-color: #212121;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;

    .form-control {
        background-color: #141414 !important;
        border: 1px solid #2E2E2E !important;
        font-size: 16px !important;
        padding: 8px 16px !important;
        transition: border-color .1s, box-shadow .1s;
        padding: 10px 14px;

        &.focus, &:focus, &:focus-visible, &:focus-within {
            box-shadow: 0 0 0 .25rem #47dd6833 !important;
        }

        &::placeholder {
            color: var(--typo-secondary);
        }
    }

    .or-text {
        color: var(--typo-primary);
        font-size: 16px;
        text-align: center;
    }
}

.crm-identity-card-title {
    color: var(--typo-primary);
    font-size: 20px;
    font-weight: 700;
}

.crm-identity-card-subtitle {
    color: var(--typo-primary);
    font-size: 16px;
    font-weight: 400;
}

.identity-manage-nav {
    .nav-item {
        .nav-link {
            &.active {
                color: #000;
            }
        }
    }
}

/* #endregion */

/* #region EMPTY STATE CARd */

.empty-state-card {
    background-color: var(--color-crm-background);
    border-radius: 12px;
    margin: unset;
    flex: 1 1 auto;
    width: unset;
    justify-content: center;

    .icon-svg {
        margin-bottom: -16px;
    }
}

/* #endregion */

/* #region SUBSCRIPTION PAGE CARD */

.subscriptions-page-list-container {
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.subscription-page-card {
    background-color: #212121;
    border-radius: 12px;
    border: 2px solid var(--color-crm-primary);
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: fit-content;
    min-width: 450px;
    padding: 16px 16px 16px 16px;
    transition: all .1s ease;

    &:has(a.subscription-page-card-actions.collapsed) {
        border: 2px solid #212121;
    }
}

.subscription-page-card-actions {
    align-items: center;
    align-self: end;
    background-color: #000;
    border-radius: 12px;
    color: var(--primary);
    display: flex;
    flex-direction: row;
    font-size: 16px;
    font-weight: 700;
    gap: 4px;
    line-height: 16px;
    padding: 8px 14px;
    text-decoration: none;
    transition: all .1s;
    white-space: nowrap;
    width: fit-content;
    --svg-color: var(--primary);

    .icon-svg {
        mask-image: url(/icons/default/chevron-up.svg?v=zQAzCyMYVuBKgnfxPTc8KG4vyHY);

        &:hover {
            --svg-color: var(--primary);
        }
    }

    &:hover {
        background-color: #161616;
        transform: unset;
    }
    /* chiuso */
    &.collapsed {
        background-color: #000;
        color: var(--typo-primary);
        --svg-color: var(--typo-primary);

        .icon-svg {
            mask-image: url(/icons/default/chevron-down.svg?v=sliXUu5NcXJ3D0RmpQr5KfPvgnQ);

            &:hover {
                --svg-color: var(--typo-primary);
            }
        }

        &:hover {
            background-color: #161616;
            transform: unset;
        }
    }
}

.subscription-page-card-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.subscription-page-card-title {
    color: var(--typo-secondary);
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}

.subscription-page-card-value {
    color: var(--typo-primary);
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}

.subscription-page-card-button-container {
    display: flex;
    background-color: #212121;
    flex-direction: row;
    gap: 16px;
}

    .subscription-page-card-button-container > .btn {
        border: unset;
        width: 100%;
    }

.subscription-page-card-table {
    margin-bottom: 0px;

    thead {
        tr {
            th {
                background-color: #2E2E2E;
            }
        }
    }

    tbody {
        tr {
            td {
                background-color: #2E2E2E;
            }

            &:nth-child(odd) {
                td {
                    background-color: #363636;
                }
            }
        }
    }
}


/* #endregion */

/* #region BUY SUBSCRIPTION CARD */

.buy-subscription-card {
    background-color: #212121;
    border-radius: 12px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.buy-subscription-card-title {
    color: var(--typo-primary);
    font-size: 30px;
    font-weight: 700;
}

.buy-subscription-card-description {
    color: var(--color-crm-typo-secondary);
    font-size: 16px;
    font-weight: 400;
}

.buy-subscription-card-img {
    height: 100%;
    object-fit: contain;
    padding: 8px;
    position: absolute;
    top: 0;
    right: 0;
    max-width: max(400px, 25vw);
}

.buy-subscription-step-card {
    background-color: #212121;
    border-radius: 12px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    gap: 16px;
    padding: 12px 16px;
}

.buy-subscription-step-card-number {
    background-color: #000;
    border-radius: 8px;
    color: var(--typo-primary);
    font-size: 20px;
    font-weight: 700;
    height: fit-content;
    text-align: center;
    padding: 8px 12px;
}

.buy-subscription-step-card-title {
    color: var(--typo-primary);
    font-size: 16px;
    font-weight: 400;
}

.buy-subscription-step-card-description {
    color: var(--color-crm-typo-secondary);
    font-size: 16px;
    font-weight: 400;
}

/* #endregion */

/* #region MODALS */

.modal-content {
    background-color: #212121;
    border-radius: 12px;

    .modal-header {
        .modal-title {
            color: var(--typo-primary);
            font-size: 30px;
            font-weight: 700;
        }

        .modal-subtitle {
            color: var(--typo-secondary);
            font-size: 16px;
            font-weight: 400;
        }
    }
}

.modal-body {
    background-color: #000;
    border-radius: 12px;
    padding: 24px;
}

/* #endregion */

/* #region NOTIFICATIONS PAGE */

.notification-page-item {
    background-color: var(--color-crm-background);

    &.notification-not-readed {
        background-color: rgba(var(--rgb-crm-primary), .05);
    }
}

.notification-page-item-details-link {
    &:hover {
        color: var(--color-crm-primary);

        i.icon-svg {
            background-color: var(--color-crm-primary);
        }
    }
}

/* #endregion */

/* #region HELP */


.crm-help-section-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.crm-help-section-item {
    background-color: #141414;
    border: 2px solid #141414;
    border-radius: 8px;
    color: var(--typo-primary);
    display: flex;
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: break-word;
    padding: 14px 16px;
    text-decoration: none;
    transition: all .1s;
    white-space: nowrap;

    &.selected {
        border: 2px solid var(--primary);
    }

    &:hover {
        transform: scale(1.01);
    }

    &:not(.selected):hover {
        background-color: #373737;
        border: 2px solid #373737;
    }
}

.crm-help-subsection {
    display: flex;
    flex-direction: column;
}

.crm-help-subsection-item {
    --svg-color: var(--primary);
    align-items: center;
    background-color: #2E2E2E;
    color: var(--typo-primary);
    cursor: pointer;
    display: flex;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    padding: 12px 8px;
    text-decoration: none;

    .icon-svg {
        margin-right: 0px;
    }

    &:first-of-type {
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }

    &:last-of-type {
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    &:nth-child(odd) {
        background-color: #363636;
    }
}

/* #endregion */

/* #region FORMS */

.form-check-input {
    background-color: #101010;
    border-color: #525252;
    border-width: 2px;

    &:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 .25rem rgba(var(--rgb-crm-primary), .25);
    }

    &:checked {
        background-color: var(--primary);
        border-color: var(--primary);
    }
}

    .form-check-input:checked {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3E%3C/svg%3E") !important;
    }

.form-check-label {
    color: var(--typo-primary);
}

.form-control, .form-select, .dt-input {
    background-color: #141414 !important;
    border-color: #2E2E2E !important;
    border-radius: 12px;
    color: var(--typo-primary) !important;
    padding: 10px 14px;

    &.focus, &:focus, &:focus-visible, &:focus-within {
        box-shadow: 0 0 0 .25rem #47dd6833 !important;
    }

    &::placeholder {
        color: var(--typo-secondary);
    }

    &.disabled, &:disabled {
        opacity: .5 !important;
        cursor: not-allowed;
    }
}

.form-select-sm {
    border-radius: 2px;
    font-size: 14px !important;
    padding: 4px 8px !important;
}

/* #endregion */

/* #region DATATABLE */

div.dt-container .dt-paging {
    .dt-paging-button {
        background-color: transparent;
        border: 1px solid transparent;
        border-radius: 8px !important;
        color: var(--typo-primary) !important;
        font-weight: 500;
        transition: all .1s;
        margin-left: 4px;
        margin-right: 4px;

        &:not(.disabled):hover {
            background: #3636367a;
            border: 1px solid #3636367a;
            border-radius: 4px;
            color: var(--typo-primary) !important;
            font-weight: 500;
            transform: scale(1.02);
        }

        &.current, &.current:hover {
            background-color: #363636;
            border: 1px solid #363636;
            border-radius: 4px;
            color: var(--typo-primary) !important;
            font-weight: 500;
        }

        &.disabled, &.disabled:hover {
            background-color: transparent;
            border: 1px solid transparent;
            border-radius: 4px;
            color: var(--typo-primary) !important;
            cursor: not-allowed;
            font-weight: 500;
            transition: all .1s;
            margin-left: 4px;
            margin-right: 4px;
            opacity: .25;
        }
    }
}

.dt-empty, .empty-table-text {
    color: var(--typo-secondary) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-align: center;
}

/* #endregion */

/* #region CONTEST BANNER */

.dashboard-contest-banner {
    background-color: #141414;
    background-image: url(/img/crm_v8/contest-banner-bg.png?v=PmHcNndr7DZWywHVk77b0NNf2lg);
    background-repeat: no-repeat;
    background-position: 0px -120px;
    background-size: cover;
    border-radius: 16px;
    padding: 16px 32px;
    justify-content: space-between;

    .title {
        color: var(--typo-primary);
        font-size: 25px;
        font-weight: 900;
    }

    .dashboard-timespan-container {
        display: flex;
        flex-direction: column;
        gap: 8px;

        .title {
            color: var(--typo-primary);
            font-size: 16px;
            font-weight: 400;
            text-align: center;
        }
    }

    .contest-cta-container {
        background-color: #212121;
        border-radius: 8px;
        padding: 8px 16px;
    }

    .challenge-text-container {
        background: #212121;
        display: flex;
        flex-direction: column;

        .title {
            color: var(--typo-primary);
            font-size: 16px;
            font-weight: 700;
        }

        .description {
            color: var(--color-crm-typo-secondary);
            font-size: 14px;
            font-weight: 400;
        }
    }

    .btn-contest {
        border-radius: 8px;
        padding: 12px 36px;
    }
}

.contest-leaderboard-card {
    background-color: var(--color-crm-background);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 8px 16px 16px 16px;
    gap: 12px;
}

    .contest-leaderboard-card .title {
        --svg-color: var(--color-crm-typo-secondary);
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

        .contest-leaderboard-card .title span {
            color: var(--typo-primary);
            font-size: 16px;
            font-weight: 700;
        }

    .contest-leaderboard-card .list {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

        .contest-leaderboard-card .list .item {
            display: flex;
            flex-direction: row;
            gap: 12px;
            justify-content: space-between;
            align-items: center;
        }

            .contest-leaderboard-card .list .item .title {
                color: var(--color-crm-primary);
                font-size: 14px;
                font-weight: 400;
            }

            .contest-leaderboard-card .list .item .detail {
                color: var(--color-crm-typo-secondary);
                font-size: 12px;
                font-weight: 400;
            }

            .contest-leaderboard-card .list .item.selected .title, .contest-leaderboard-card .list .item.selected .detail {
                font-weight: 600;
            }

.contest-counter {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.50) 0%, rgba(0, 0, 0, 0.50) 100%), url(/img/crm/contest-counter-bg.jpg?v=GfcRZgEKi_4GeirDHPZG-Ur-Wkg) lightgray 50% / cover no-repeat;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;

    .title {
        color: var(--typo-primary);
        font-size: 16px;
        font-weight: 700;
        text-align: center;
    }
}

.timespan-container {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: center;

    .timespan {
        align-items: center;
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 60px;

        .title {
            color: var(--color-crm-typo-secondary);
            font-size: 14px;
            font-weight: 400;
        }
    }

    .timespan-inner {
        background-color: #212121;
        border-radius: 8px;
        padding: 8px;
        text-align: center;
        width: 100%;

        .value {
            color: var(--typo-primary);
            font-size: 16px;
            font-weight: 700;
        }
    }
}

.contest-table {
    margin-bottom: 0px;

    tbody {
        tr {
            &.highlight {
                td {
                    background: rgba(8, 196, 160, 0.20);

                    div.position {
                        align-items: center;
                        display: flex;
                        flex-direction: column;
                        gap: 4px;
                        padding-left: 8px;
                        padding-right: 8px;
                        justify-content: center;
                    }

                    &.position {
                        .value {
                            color: var(--typo-primary);
                            font-size: 16px;
                            font-weight: 700;
                        }

                        .description {
                            color: var(--color-crm-typo-secondary);
                            font-size: 12px;
                            font-weight: 500;
                        }
                    }
                }
            }
        }
    }
}


/* #endregion */

/* #region BUTTONS */

.btn {
    border-radius: 8px;
    font-weight: 700;
    padding: 8px 8px;
}

.btn-primary {
    --bg-color: var(--primary);
    --border-color: var(--primary);
    --text-color: #000;
    --icon-color: #000;
}

.btn-outline-primary {
    --border-color: var(--primary);
    --bg-active-color: var(--primary);
    --text-color: var(--primary);
    --icon-color: var(--primary);
    --text-active-color: #000;
    --icon-active-color: #000;
}

.btn-secondary {
    --bg-color: #363636;
    --border-color: #363636;
    --text-color: var(--text-primary);
    --icon-color: var(--text-primary);
}

.btn-outline-secondary {
    --border-color: #a3a3a3;
    --bg-active-color: #696969;
    --text-color: #a3a3a3;
    --icon-color: #a3a3a3;
    --text-active-color: var(--text-primary);
    --icon-active-color: var(--text-primary);
}

.btn-success {
    --bg-color: var(--color-btn-success);
    --border-color: var(--color-btn-success);
    --text-color: white;
    --icon-color: white;
}

.btn-outline-success {
    --border-color: var(--color-btn-success);
    --bg-active-color: var(--color-btn-success);
    --text-color: var(--color-btn-success);
    --icon-color: var(--color-btn-success);
    --text-active-color: white;
    --icon-active-color: white;
}

.btn-warning {
    --bg-color: var(--color-crm-badge-yellow);
    --border-color: var(--color-crm-badge-yellow);
    --text-color: var(--color-crm-badge-dark-text);
    --icon-color: var(--color-crm-badge-dark-text);
}

.btn-outline-warning {
    --border-color: var(--color-crm-badge-yellow);
    --bg-active-color: var(--color-crm-badge-yellow);
    --text-color: var(--color-crm-badge-yellow);
    --icon-color: var(--color-crm-badge-yellow);
    --text-active-color: var(--color-crm-badge-dark-text);
    --icon-active-color: var(--color-crm-badge-dark-text);
}

.btn-danger {
    --bg-color: var(--color-crm-sell);
    --border-color: var(--color-crm-sell);
    --text-color: white;
    --icon-color: white;
}

.btn-outline-danger {
    --border-color: var(--color-crm-sell);
    --bg-active-color: var(--color-crm-sell);
    --text-color: var(--color-crm-sell);
    --icon-color: var(--color-crm-sell);
    --text-active-color: white;
    --icon-active-color: white;
}

.btn-contest {
    --bg-color: var(--color-crm-state-alert);
    --border-color: var(--color-crm-state-alert);
    --text-color: var(--color-crm-badge-dark-text);
    --icon-color: var(--color-crm-badge-dark-text);
}

.btn-power, .btn-action {
    --bg-color: #F57C24;
    --border-color: #F57C24;
    --text-color: #000;
    --icon-color: #000;
}

.btn-outline-power {
    --border-color: #F57C24;
    --bg-active-color: #F57C24;
    --text-color: #F57C24;
    --icon-color: #F57C24;
    --text-active-color: #000;
    --icon-active-color: #000;
}

/* #endregion */

/* #region BACKGROUNDS */

.bg-black {
    background-color: #000 !important;
}

.bg-ic-card {
    background-color: #212121;
}

/* #endregion */

/* #region OTHER */

.border-sell {
    border: 2px solid var(--color-crm-sell);
}

.min-vh-50-calc {
    min-height: calc(((100vh - var(--nav-height)) / 2) - (var(--outer-margin) * 4))
}

@media (min-width: 768px) {
    .step-line {
        width: 40px;
        height: 1px;
    }

        .step-line.step-background-green {
            width: 40px;
            height: 2px;
        }

    .buy-subscription-step-card {
        width: 0;
    }
}


/* #endregion */

/* #region AFFILIATE */

.license-copy-container {
    background-color: var(--color-input-disabled-field-bg);
    border-color: var(--color-input-disabled-field-stroke);
    justify-content: space-between;

    .license {
        color: var(--typo-primary);
    }

    .button {
        .icon-svg {
            background-color: var(--color-typo-primary);
        }
    }
}

.aff-region-check-container {
    display: grid;
    gap: 8px;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));


    label {
        align-items: center;
        border-radius: 12px;
        background-color: #000;
        color: var(--typo-secondary);
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 16px;
        text-align: center;
        transition: all .2s;
        white-space: nowrap;

        &:hover {
            background-color: #121212;
        }
    }
}

/* #endregion */
