/**=====================
     Content box css start
==========================**/

.contentbox {
    position: relative;
    background: $white;
    letter-spacing: 0.5px;
    border-radius: 12px;

    .contentbox-title {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 25px;

        h3 {
            font-size: calc(17px + (19 - 17) * ((100vw - 320px) / (1920 - 320)));
            font-weight: 600;
            color: $dark-color;
        }

        .header-action {
            display: flex;
            align-items: center;

            i {
                font-size: 22px;
                line-height: 1;
                color: $dark-color;
                cursor: pointer;
            }
        }

        .action-btn {
            gap: 6px;

            .btn {
                border: none;
                padding: 0;
                border-radius: 0;
                background-color: unset;

                i {
                    font-size: 20px;
                }

                &.gray {
                    i {
                        color: rgba($dark-color, 0.7);
                    }
                }

                &.secondary {
                    i {
                        color: $secondary-color;
                    }
                }
            }
        }

        .contentbox-subtitle {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;

            a {
                line-height: 1;

                i {
                    font-weight: 900;
                }
            }
        }

        .more-action {
            padding: 4px 17px;
            gap: 6px !important;
            line-height: 1.6;

            i {
                font-size: 16px;
            }
        }
    }

    .inside {
        padding: 20px;
        font-size: 13px;

        .table-main {
            margin-top: -12px;
        }

        .blog-item-tab {
            .nav-tabs {
                .nav-item {
                    .nav-link {
                        font-size: 12px !important;
                        padding: 4px 8px;
                        background-color: transparent;
                        color: var(--primary-color);

                        &.active {
                            color: rgba($dark-color, 0.80);
                        }
                    }
                }
            }

            .tab-content {
                border: 1px solid $bg-gray-1;
                margin-top: -1px;

                .tab-pane {
                    padding: 0px 12px;
                }
            }
        }

        .categorychecklist {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin: 13px 0;
            min-height: 42px;
            max-height: 200px;
            overflow: auto;

            li {
                font-size: 13px;
                line-height: 1;
                display: block;

                label {
                    display: flex;
                    align-items: center;
                    gap: 6px;
                    margin: 0;
                    width: 100%;
                    cursor: pointer;
                    color: rgba($dark-color, 0.8);
                    font-size: 14px;
                    font-weight: 400;

                    .form-check {
                        padding: 0;
                        margin: 0;
                        min-height: unset;

                        .form-check-input {
                            padding: 0;
                            margin: 0;
                        }
                    }
                }
            }

            &.category {
                background-color: transparent;
                border: 1px solid $border-color-2;
                border-radius: $border-radius;
                padding: 15px;
                margin: 0;

                li {
                    font-size: 14px;

                    .form-check {
                        padding: 0;
                        min-height: unset;

                        .form-check-input {
                            margin-right: 8px;
                        }
                    }

                    ul {
                        width: 100%;
                        padding-left: 26px;
                        padding-top: 10px;
                        display: flex;
                        flex-direction: column;
                        gap: 10px;

                    }
                }
            }

            .no-data {
                img {
                    width: calc(100px + (120 - 100) * ((100vw - 320px) / (1920 - 320)));
                }
            }
        }

        h6 {
            color: $dark-color;
            padding-bottom: 8px;
            border-bottom: 1px solid rgba($dark-color, 0.15);
        }

        .publishing {
            p {
                margin: 0;
            }

            h4 {
                font-size: 13px;
                font-weight: 500;
                color: $dark-color;
                line-height: 1;
            }

            ul {
                display: flex;
                flex-direction: column;
                gap: 4px;

                li {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    gap: 4px;

                    p {
                        color: $theme-body-font-color;
                    }

                    i {
                        font-size: 16px;
                        color: $grey-light;
                    }
                }
            }
        }

        .variant-main {
            border: 1px solid rgba($dark-color, 0.2);
            border-radius: $border-radius;

            .variant-item {
                padding: 14px;

                .col-11 {
                    width: 97%;
                }

                .col-1 {
                    width: 3%;
                }

                +.variant-item {
                    border-top: 1px solid rgba($dark-color, 0.2);
                }

                .variant-values {
                    >.row {
                        margin-bottom: 8px;

                        &:last-child {
                            margin-bottom: 0;
                        }
                    }
                }
            }

            .variant-footer {
                padding: 14px;
                border-top: 1px solid rgba($dark-color, 0.2);
            }
        }

        .btn {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
        }
    }

    +.contentbox {
        margin-top: 20px;

        @media (max-width: 1199px) {
            margin-top: 16px;
        }
    }

    .publish-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 4px;
        margin-bottom: 12px;
    }

    .major-publish-actions {
        .post-status {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 6px;

            i {
                font-size: 16px;
                color: rgba($dark-color, 0.80);
            }

            .post-status-display {
                font-weight: 600;
            }

            &:last-child {
                margin-bottom: 0;
            }
        }
    }

    .input-group {
        &.weight {
            gap: 8px;

            input {
                border-radius: 4px !important;
            }
        }
    }

    .footer {
        padding-top: 20px !important;
        border-top: 1px solid $white-dark;
        display: flex;
        justify-content: flex-end;
    }

    &.column-count-3 {
        .inside {
            .form-group {
                display: flex;
                align-items: center;
                justify-content: space-between;

                label {
                    margin-bottom: 0;
                }
            }
        }
    }
}

.icon-position {
    i {
        position: unset !important;
        color: var(--primary-color);
    }

    .feather {
        width: 18px;
    }
}

.more-detail-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.media-upload-message {
    text-align: center;

    h5 {
        font-weight: 500;
        font-size: 14px;
        color: $dark-color;
    }

    button {
        color: var(--primary-color);
        border: 1px solid var(--primary-color);
        background: $bg-gray;
        font-size: 14px;
        min-height: 46px;
        line-height: 3.14285714;
        padding: 0 36px;
        cursor: pointer !important;
        border-radius: 5px;

        &.btn-sm {
            font-size: 12px;
            min-height: unset;
            line-height: 1;
            padding: 8px 10px;
        }
    }

    span {
        margin-top: 4px;
        font-size: 14px;
    }
}

#attribute_values {
    .form-group {
        &:first-child {
            &:last-child {
                .remove-value {
                    display: none;
                }
            }
        }

        .invalid-error {
            display: none;
            color: $secondary-color;
            font-size: 13px;
            font-weight: 500;
            margin: 4px 0 0px;
            letter-spacing: 0.7px;
            line-height: 1.5;
        }

        .form-control {
            &.invalid {
                border: 1px solid rgba($secondary-color, 0.6);
                box-shadow: 0 0 0 2px rgba($secondary-color, 0.1);
            }
        }
    }
}

.color-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: calc(4px + (5 - 4) * ((100vw - 320px) / (1920 - 320))) calc(6px + (7 - 6) * ((100vw - 320px) / (1920 - 320)));
    ;
    border: 1px solid rgba($dark-color, 0.45);
    width: max-content;
    border-radius: $border-radius;

    .form-control {
        border: none;
        padding: 0;
        width: 22px;
        height: 22px;
        cursor: pointer;

        &:focus {
            border: none;
            outline: none;
            box-shadow: none;
        }
    }

    h6 {
        color: $dark-color;
        font-weight: 400;
        font-size: 14px;
        padding: 0 !important;
        margin: 0;
        border: none !important;
    }
}

.variants {
    .form-group {
        &.variant-group {
            &:first-child {
                &:last-child {
                    .variant-action {
                        display: none;
                    }
                }
            }
        }
    }
}

.permalink-section {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 15px;
}

.wallet-main {
    .wallet-detail-content {
        display: flex;
        gap: 15px;
        align-items: center;
        width: 100%;
        justify-content: space-between;

        .wallet-amount {
            width: 25%;
            display: flex;
            align-items: center;
            gap: 15px;

            @media (max-width: 991.98px) {
                width: 25%;
            }

            .wallet-icon {
                line-height: 1.25;

                img {
                    width: 40px;
                    height: 40px;
                }

                i {
                    font-size: 40px;
                    color: var(--primary-color);
                }
            }

            h5 {
                text-wrap: nowrap;
                color: rgba($dark-color, 0.7);
                margin-bottom: 1px;
            }

            h4 {
                font-size: 22px;
                font-weight: 500;
                line-height: 1.2;
                margin: 0;
                display: flex;
                align-items: center;
            }

            div[class*=col-] {
                padding: 0;
            }

            .form-group {
                margin: 0;

                .form-control:disabled,
                .form-control[readonly] {
                    background-color: unset !important;
                    padding: 0 !important;
                    font-size: 20px;
                    color: $dark-color;
                    font-weight: 600;
                }
            }
        }

        .wallet-form {
            width: auto;
            display: flex;
            align-items: center;
            gap: 20px;
            justify-content: space-between;
            margin: 0;

            .form-group {
                margin: 0;
                width: auto;

                @media (max-width: 575px) {
                    width: 100%;
                }

                &:has(.wallet-box .form-check-input:checked~.form-control) {
                    &.amount {
                        width: 100%;
                    }
                }

                &.row {
                    div[class*=col-] {
                        margin: 0;
                        padding: 0;
                        width: 100%;
                    }
                }
            }

            .credit,
            .debit {
                i {
                    font-size: 20px;
                    line-height: 1.2;
                }
            }
        }

        .amount {
            .error-div {
                .input-group {
                    .input-group-text {
                        border-color: rgba($dark-color, 0.04);
                        border-right: none;
                        border-radius: 5px 0 0 5px;
                        padding: 0 !important;
                        height: 47px;
                        width: 49px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        background-color: $input-bg;
                        font-size: 19px;
                        color: rgba($dark-color, 0.6);
                        font-weight: 500;

                        @media (max-width: 767px) {
                            height: 43px;
                        }
                    }

                    .form-control {
                        border-radius: 0 5px 5px 0;
                        border-left: 1px solid $input-bg;

                        &::-webkit-inner-spin-button {
                            display: none;
                        }
                    }
                }
            }
        }

        @media (max-width: 1400px) and (min-width: 1199.98px) {
            flex-wrap: wrap;
            flex-direction: column;

            .wallet-amount {
                width: 100%;
            }

            .wallet-form {
                width: 100%;
                gap: 10px;
            }
        }

        @media (max-width: 1199.98px) {
            flex-wrap: nowrap;
        }

        @media (max-width: 767.98px) {
            flex-direction: column;

            .wallet-amount {
                width: 100%;
            }
        }

        @media (max-width: 575.98px) {
            .wallet-form {
                width: 100%;
                gap: 10px;
            }
            .credit-debit-buttons{
                width: 100%;
                justify-content: flex-end;
            }
        }
        .credit-debit-buttons{
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
    }
}

.select-item {
    .select2-container {
        .select2-selection--single {
            height: 50px;

            .select2-selection__rendered {
                padding: 6px 8px !important;
                height: 100%;
            }

            .select2-selection__arrow {
                height: 43px;
            }
        }
    }
}

.selected-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    img {
        width: calc(38px + (40 - 38) * ((100vw - 320px) / (1920 - 320)));
        height: calc(38px + (40 - 38) * ((100vw - 320px) / (1920 - 320)));
    }

    .detail {
        display: flex;
        flex-direction: column;
        gap: 4px;

        h6 {
            font-size: 14px;
            font-weight: 500;
            padding: 0;
            margin: 0;
            border: none;
            line-height: 1;
            color: rgba($dark-color, 0.8);
        }

        p {
            margin: 0;
            font-size: 12px;
            font-weight: 500;
            color: rgba($dark-color, 0.6);
            line-height: 1;
        }
    }
}

.top-part {
    clear: both;
    height: 36px;

    .btn {
        padding: 10px;
        line-height: 1;
    }

    .top-part-left {
        float: left;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 13px;
        margin-bottom: 16px;

        li {
            border-right: 1px solid #ddd;
            padding: 0px calc(5px + (10 - 5) * ((100vw - 320px) / (1920 - 320)));
            line-height: 1.5;
            font-size: calc(12px + (14 - 12) * ((100vw - 320px) / (1920 - 320)));
            display: flex;
            align-items: center;
            gap: 2px;

            &:first-child {
                padding-left: 0;
            }

            &:last-child {
                border: none;
                padding-right: 0;
            }

            a {
                color: rgba($dark-color, 0.8);

                &.current {
                    color: $dark-color;
                    font-weight: 600;

                    ~.count {
                        color: $dark-color;
                        font-weight: 600;
                    }
                }
            }
        }

        .form-select {
            padding: 6px 30px 6px 12px;
        }
    }

    .top-part-right {
        float: right;
        margin-bottom: 16px;

        .form-control {
            width: 200px;
        }
    }
}

.bottom-part {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;

    .form-select,
    .form-control {
        padding: 6px 30px 6px 12px;
    }
}

.title-panel {
    padding: 14px;
    background-color: #f8f8f8;
    border-radius: 6px;
}

.profile-contentbox {
    .driver-detail-card {
        .detail-card {
            padding: 20px;
            background-color: rgba($dark-color, 0.04);
            border-radius: 8px;

            h6 {
                font-size: 16px;
                font-weight: 600;
                margin-bottom: 24px;
                line-height: 1.2;
                border: none;
                padding: 0;
            }

            +.detail-card {
                margin-top: 20px;
            }

            .profile-bg {
                background-color: $gray-color;
                padding: 50px;
                border-radius: 8px;
            }

            .profile {
                text-align: center;
                margin-top: -50px;

                .img {
                    border-radius: 100%;
                    width: 90px;
                    height: 90px;
                }

                h4 {
                    font-weight: 500;
                    font-size: 16px;
                    margin: 0;
                    line-height: 1;
                }

                .rate {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 4px;
                    margin-top: 6px;

                    i {
                        color: $gray-color;
                        font-size: 16px;
                        line-height: 1;

                        &.fill {
                            color: $warning-color;
                        }
                    }
                }

                .balance {
                    margin: 12px 0;
                    font-size: 18px;
                    font-weight: 500;
                    line-height: 1.2;

                }

                .more-detail {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    gap: 12px;
                    margin-bottom: 20px;

                    li {
                        display: flex;
                        align-items: center;
                        gap: 6px;
                        font-size: 14px;
                        font-weight: 500;
                        line-height: 1.2;

                        i {
                            font-size: 18px;
                            color: var(--primary-color);
                        }
                    }
                }
            }
        }
    }
}

.customer-detail {
    .profile {
        text-align: center;
        margin-bottom: 20px;

        .img {
            border-radius: 100%;
            width: 90px;
            height: 90px;
        }

        h4 {
            font-weight: 500;
            font-size: 16px;
            margin: 0;
            line-height: 1;
        }

        .rate-box {
            width: max-content;
            padding: 3px 6px;
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 12px;
            border-radius: 4px;
            color: $white;
            background-color: $warning-color;
        }
    }
}

.wallet-box {
    padding: 0;

    .form-check-input {
        &:checked {
            ~.add-note-label {
                display: none;
                white-space: nowrap;
            }

            ~.form-check-label {
                display: none;
            }
        }
    }
}

/**=====================
     Contentbox css end
==========================**/