@import 'theme/variables.scss';

.ca-input-dropdown {
    .arrow {
        display: none !important;
    }

    .popover-body {
        margin-top: -2px !important;

        .dropdown-options-divider {
            content: '';
            height: 1px;
            border-radius: 1px;
            background-color: #424242;
            position: absolute;
            z-index: 99999;
            top: 0px;
            left: 0px;

            @for $i from 1 through 800 {
                &.w-col-#{$i} {
                    width: unquote($i - 8 + 'px');
                }
            }

            &.dispatch_dropdown {
                top: -4px;
            }
        }
    }
}

// ---------------------------------------- DROPDOWN ----------------------------------------
.dropdown-options {
    position: relative;
    top: 0px;
    left: 0px;
    z-index: 1000;
    max-height: 190px;
    width: 100%;
    background-color: #2f2f2f;
    border-radius: 3px;
    padding: 4px;
    overflow: hidden;

    &.dropdown_value {
        background-color: transparent !important;
        top: 0px;
        left: 0px;
    }

    //------------------------ Custom width dependent on 'col' bootstrap ------------------------

    @for $i from 1 through 800 {
        &.w-col-#{$i} {
            width: unquote($i + 'px') !important;
        }
    }

    &.scroll {
        transition: all 0.3s ease-in-out;
        overflow-y: scroll !important;
        padding-right: 0px;

        &::-webkit-scrollbar {
            width: 3px;
        }
        &::-webkit-scrollbar-thumb {
            background-color: transparent;
            border: 6px solid #aaaaaa;
            border-radius: 1px;
        }
        &::-webkit-scrollbar-track {
            padding: 0;
            position: relative;
            right: 0;
            top: 0;
            background: transparent;
        }
    }

    &-fuel-franchise {
        padding: 4px;
        max-height: 300px;
    }

    &.no-result-container {
        padding: 6px 10px !important;
    }

    //------------------------ Svg-Template-Logo Template ------------------------
    .dropdown-option:not(:hover):not(.active):not(.dropdown-option-hovered) {
        .svg-template-logo {
            height: 18px;

            svg:not(:hover) {
                path {
                    fill: #aaaaaa;
                }
            }
        }

        .load-dispatches-container {
            svg:not(:hover):not(.load-dipstaches-owner-flag) {
                #Ellipse_9856,
                #Ellipse_9857,
                #Ellipse_9858,
                path {
                    fill: #aaaaaa;
                }
            }
        }
    }

    &:not(.dropdown_value) {
        .dropdown-option {
            color: $white-2;
        }
    }

    //------------------------ Default Template ------------------------
    .dropdown-option {
        padding: 0;
        height: 26px;
        font-size: 14px;
        font-weight: 400;
        border-radius: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;

        // Text and Additional Text
        &.dropdown-double-text-option {
            display: flex;
            align-items: center;
            justify-content: space-between;

            .additional-text {
                font-size: 11px;
                font-weight: 400;
                color: $bw5;
                line-height: 14px;

                &.active {
                    color: #6f9ee0;
                    font-weight: 700;
                }
            }

            &:hover {
                .additional-text {
                    &.active {
                        color: $ta-blue-17;
                    }
                }
            }
        }

        // Double Column
        &.dropdown-double-column-option {
            display: grid;
            grid-template-columns: 118px 470px;
            grid-gap: 4px;

            &-add-new {
                display: flex;
                align-items: center;
                justify-content: flex-end;
                padding-left: 0 !important;
            }

            &-text {
                color: $white-2;
                font-size: 14px;
                line-height: 18px;
            }
        }

        // Triple Column
        &.dropdown-triple-column-option {
            display: grid;
            grid-template-columns: 216px 138px 206px;
            grid-gap: 4px;

            &-add-new {
                display: flex;
                align-items: center;
                justify-content: flex-end;
                padding-left: 0 !important;
            }

            &-text {
                color: $white-2;
                font-size: 14px;
                line-height: 18px;
            }
        }

        // This class is for moving with keyboard
        &.dropdown-option-hovered {
            background: $ta-black;
            color: $white-2;
            border-radius: 2px;
            cursor: pointer;

            .svgtext-template-logo {
                &.truck-trailer-logo {
                    display: inline-block !important;
                }
            }
        }

        &:hover {
            background: $ta-black;
            color: $white-2;
            border-radius: 2px;
            cursor: pointer;

            .svgtext-template-logo {
                &.truck-trailer-logo {
                    display: inline-block !important;
                }
            }
        }

        &.disabled {
            color: #6c6c6c;
            pointer-events: none;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }

        &.no-result {
            line-height: 14px;
            font-size: 11px;
            font-weight: 700;
            color: $bw5;
            height: auto !important;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            pointer-events: none;

            &:hover {
                background-color: transparent !important;
            }
            div {
                padding-top: 1px;
            }
        }

        &.add-new {
            padding: 4.5px 6px 4.5px 4px;
            font-size: 11px;
            font-weight: 700;
            color: $ta-blue-19;
            position: relative;
            transition:
                background 0.2s ease-in-out,
                color 0.2s ease-in-out;

            &:hover {
                color: $white-2;
                background: $ta-blue-21;
            }

            .labels-template-text {
                color: $ta-blue-7;
                font-weight: 600 !important;
                transition: all 0.3s ease-in-out;
            }

            .plus-icon {
                margin-left: auto !important;
                position: relative;
                bottom: 1px;

                svg {
                    path {
                        fill: $ta-blue-19;
                    }
                }
            }
        }

        &.all-assigned {
            .details-template-text,
            .svgtext-template-text {
                color: $bw5;
                font-size: 11px;
                font-weight: 700;
                line-height: 14px;
                pointer-events: none;
                -webkit-user-select: none;
                -moz-user-select: none;
                -ms-user-select: none;
                user-select: none;
            }
        }

        &.active-repair-truck-trailer {
            color: #6f9ee0;
            position: relative;

            &:hover {
                color: $ta-blue-17;
                transition: all 0.3s ease-in-out;
            }

            // Higlight text
            .highlight-text-45632 {
                background-color: $ta-blue-20;
                color: $ta-blue-19;
                transition: all 0.3s ease-in-out;
                &:hover {
                    color: $ta-blue-17 !important;
                }
            }

            &::after {
                display: none;
            }
        }
        &.active-label,
        &.active-dark {
            .labels-template-counter {
                background-color: #3b73ed !important;
                color: #ffffff !important;
            }
        }
        &.active,
        &.active-label {
            color: #ffffff;
            font-size: 14px;
            font-weight: 700;
            position: relative;

            // Higlight text
            .highlight-text-45632 {
                background-color: $ta-blue-20;
                color: $ta-blue-19;
                transition: all 0.3s ease-in-out;
                &:hover {
                    color: #ffffff !important;
                }
            }
            &:not(.payroll-trucks)::after {
                display: inline-block;
                position: absolute;
                right: 6px;
                top: 28%;
                transform: translateY(-50%);
                content: url('/assets/ca-components/svg/input/ic_confirm.svg');
                width: 14px;
                height: 10px;
            }
        }

        &.active-label {
            &::after {
                right: 35px;
            }
        }

        &.last-active {
            position: relative;
            &::before {
                content: '';
                position: absolute;
                bottom: -1px;
                left: 0px;
                height: 2px;
                width: 100%;
                background-color: rgb(170, 170, 170, 0.2);
                border-radius: 1px;
            }
        }

        // Higlight text
        .highlight-text-45632 {
            background-color: $ta-blue-20;
            color: $ta-blue-19;
            transition: all 0.3s ease-in-out;
        }

        //------------------------ Trucks, Trailers, Colors Template  ------------------------
        &.svg-text-template,
        .svg-text-template {
            display: flex;
            align-items: center;
            &.container {
                padding: 0 !important;
            }

            .hazardous.hazardous-dropdown {
                .svgtext-template-text {
                    padding-left: 25px;
                    &::after {
                        position: absolute;
                        content: url('/assets/ca-components/svg/common/trailers/ic_hazardous.svg');
                        width: 14px;
                        height: 10px;
                        left: 0;
                    }
                }
            }

            &.hazardous {
                display: flex;
                flex-direction: row-reverse;
                justify-content: flex-end;

                svg {
                    margin-right: 5px;
                }
            }
            .svgtext-template-logo {
                display: flex;
                margin-right: 6px;
                &.no-svg {
                    margin-right: 0px !important;
                }

                &.hazardous-svg {
                    line-height: 14px;
                }
                &.state-logo {
                    svg {
                        path {
                            fill: #cccc;
                        }
                    }
                }

                &.truck-trailer-logo {
                    position: absolute;
                    right: 25px;
                    text-align: right;
                    display: none;
                    margin-right: 0px;

                    &.container {
                        right: 13px;
                        padding: 0 !important;
                    }
                }

                &.radiator,
                &.turbo,
                &.alignment,
                &.accompressor,
                &.aircompressor,
                &.fuelpump,
                &.waterpump,
                &.oilpump,
                &.brakechamber,
                &.battery,
                &.enginetuneup {
                    svg {
                        path {
                            fill: $bw5;
                        }
                    }
                }
            }

            .svgtext-template-text {
                position: relative;

                &.truck-text {
                    top: 1px;
                }

                &.flex-1 {
                    flex: 1;
                }

                &.additional-text {
                    font-size: 11px;
                    font-weight: 400;
                    line-height: 14px;
                    color: $bw5;
                    text-align: right;
                }
            }

            .colors {
                height: 18px;
                width: 18px;
            }

            &.hazardous-dropdown {
                .svgtext-template-logo {
                    order: 2;
                    margin-right: 0px;
                    position: relative;
                    bottom: 1px;
                }

                .svgtext-template-text {
                    order: 1;
                    margin-right: 6px;
                }
            }
        }

        //------------------------ Labels Template ------------------------
        &.labels-template {
            display: flex;
            align-items: center;

            .labels-template-left-side {
                display: flex;
                align-items: center;

                .labels-template-logo {
                    svg {
                        width: 18px;
                        height: 18px;
                    }
                }

                .labels-template-vertical-divider {
                    width: 1px;
                    height: 15px;
                    background-color: rgb(170, 170, 170, 0.2);
                    content: '';
                    margin: 0 6px;
                }
            }

            .labels-template-right-side {
                flex: 1;
                display: flex;
                align-items: center;
                justify-content: space-between;

                .labels-template-text {
                    margin-right: 28px;
                    font-size: 14px;
                    font-weight: 400;
                    line-height: 18px;
                    color: #ffffff;
                    &.lable-text-wrap {
                        text-overflow: ellipsis;
                        overflow: hidden;
                        width: 80px;
                        white-space: nowrap;
                    }
                    &.add-new {
                        font-size: 11px;
                        font-weight: 700;
                        color: #6f9ee0;
                        transition: all 0.3s ease-in-out;
                        position: relative;
                    }

                    &.no-result {
                        line-height: 14px;
                        font-size: 11px;
                        font-weight: 700;
                        padding: 0px !important;
                        color: $bw5;
                        height: 12px;
                        -webkit-user-select: none;
                        -moz-user-select: none;
                        -ms-user-select: none;
                        user-select: none;
                        pointer-events: none;

                        &:hover {
                            background-color: transparent !important;
                        }

                        div {
                            padding-top: 1px;
                        }
                    }
                }

                .labels-template-counter {
                    width: 22px;
                    height: 16px;
                    border-radius: 20px;
                    background-color: rgb(204, 204, 204, 0.2);
                    color: #aaaaaa;
                    text-align: center;
                    font-size: 11px;
                    font-weight: 500;
                    padding: 0 4.5px;
                    &.dont-show-counter {
                        display: none;
                    }
                }
            }

            &.no-result {
                height: 14px;
                font-size: 11px;
                font-weight: 700;
                padding: 0px !important;
                color: $bw5;
                -webkit-user-select: none;
                -moz-user-select: none;
                -ms-user-select: none;
                user-select: none;
                pointer-events: none;

                &:hover {
                    background-color: transparent !important;
                }

                div {
                    padding-top: 1px;
                }
            }

            &:hover {
                .labels-template-text {
                    color: #ffffff;

                    &.add-new {
                        color: $ta-blue-17;
                    }
                }

                .labels-template-counter {
                    background-color: rgb(204, 204, 204, 0.2);
                    color: #dadada;
                }
            }
        }

        //------------------------ Details Template ------------------------
        &.details-template {
            display: grid;
            grid-template-columns: auto 14px 1fr;
            align-items: center;
            justify-content: space-between;

            &.load-details-template {
                grid-template-columns: 30px 130px 1fr;
                grid-gap: 4px;
            }

            &.add-new {
                grid-template-columns: 1fr 1fr;
                margin-right: 6px;
            }

            &.dropdown-option {
                position: relative;
            }

            .details-template-text {
                &.active {
                    color: #6f9ee0;

                    &:hover {
                        color: $ta-blue-17;
                        transition: all 0.3s ease-in-out;
                    }
                }
            }

            .details-template-logo {
                margin-left: 6px;
                line-height: 15px;
            }

            .driver-details-template-container {
                position: absolute;
                right: 6px;

                p {
                    font-size: 11px;
                    line-height: 18px;
                    color: $bw5;

                    user-select: none;
                    -webkit-user-select: none;
                    -moz-user-select: none;
                    -ms-user-select: none;
                }

                .right-box {
                    margin-left: 4px;
                    padding: 0 6px;

                    p {
                        color: $ta-light-grey-2;
                    }
                }
            }

            .additional-text {
                font-size: 11px;
                color: $bw5;
                line-height: 12px;
            }
        }

        //------------------------ Text Counter Template ------------------------

        &-text-counter {
            display: flex;
            align-items: center;
            justify-content: space-between;

            .option-counter {
                min-width: 22px;
                height: 16px;
                border-radius: 20px;
                background-color: rgb(204, 204, 204, 0.2);
                color: #aaaaaa;
                font-size: 11px;
                font-weight: 500;
                text-align: center;
                padding: 0 4.5px;
            }

            &.active {
                &::after {
                    right: 35px;
                    top: 3.5px;
                }
            }

            &:hover {
                .option-counter {
                    background-color: rgb(204, 204, 204, 0.2);
                }
            }
        }

        //------------------------ Fuel Franchise Template ------------------------

        &-fuel-franchise {
            display: flex;
            flex-direction: column;
            justify-content: center;
            height: auto;
            min-height: 26px;
            border-radius: 2px;

            // Franchise Header
            .fuel-franchise-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                padding: 0 2px;
                -webkit-user-select: none;
                -moz-user-select: none;
                -ms-user-select: none;
                user-select: none;

                .fuel-franchise-header-right-side {
                    display: flex;
                    align-items: center;
                    gap: 6px;

                    .option-counter {
                        min-width: 22px;
                        height: 16px;
                        border-radius: 20px;
                        background-color: rgb(204, 204, 204, 0.2);
                        color: #aaaaaa;
                        font-size: 11px;
                        font-weight: 500;
                        text-align: center;
                        padding: 0 4.5px;
                        -webkit-user-select: none;
                        -moz-user-select: none;
                        -ms-user-select: none;
                        user-select: none;
                    }

                    .header-arrow {
                        width: 18px;
                        height: 18px;
                        line-height: 15px;
                        transition: all 0.3s ease-in-out;

                        svg {
                            transform: rotate(0deg);
                            transition: all 0.3s ease-in-out;
                            path {
                                fill: #aaaaaa;
                            }
                        }

                        &.rotate {
                            svg {
                                transform: rotate(180deg);
                                transition: all 0.3s ease-in-out;
                            }
                        }

                        &:hover {
                            svg {
                                path {
                                    fill: #dadada;
                                }
                            }
                        }
                    }
                }
            }

            // Franchise Stores
            .fuel-franchise-stores {
                display: flex;
                flex-direction: column;
                justify-content: center;
                gap: 4px;
                max-height: 237px;

                .fuel-franchise-single-store {
                    height: 26px;
                    border-radius: 2px;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    padding-left: 3px;
                    padding-right: 24px;
                    padding: 3px 26px 4px 4px;

                    .fuel-franchise-store-name {
                        font-size: 14px;
                        font-weight: 400;
                        height: 19px;
                        -webkit-user-select: none;
                        -moz-user-select: none;
                        -ms-user-select: none;
                        user-select: none;
                        color: #ffffff;
                    }

                    .fuel-franchise-store-address {
                        font-size: 11px;
                        font-weight: 500;
                        line-height: 14px;
                        -webkit-user-select: none;
                        -moz-user-select: none;
                        -ms-user-select: none;
                        user-select: none;
                        color: $ta-light-grey-6;
                    }

                    &.active {
                        .fuel-franchise-store-name,
                        .fuel-franchise-store-address {
                            color: #ffffff !important;
                        }

                        .highlight-text-45632 {
                            background-color: $ta-blue-20;
                            color: $ta-blue-19;
                            transition: all 0.3s ease-in-out;
                        }
                    }

                    &:hover {
                        color: #ffffff;
                        background-color: #1d1d1d;

                        // Higlight text
                        &.active {
                            .fuel-franchise-store-name,
                            .fuel-franchise-store-address {
                                color: #ffffff !important;
                                font-weight: 700;
                            }
                        }
                    }
                }

                &.scroll {
                    transition: all 0.3s ease-in-out;
                    overflow-y: scroll !important;

                    &::-webkit-scrollbar {
                        width: 3px;
                    }
                    &::-webkit-scrollbar-thumb {
                        background-color: transparent;
                        border: 6px solid #aaaaaa;
                        border-radius: 1px;
                    }
                    &::-webkit-scrollbar-track {
                        padding: 0;
                        position: relative;
                        right: 0;
                        top: 0;
                        background: transparent;
                    }

                    .fuel-franchise-single-store {
                        padding: 3px 22px 4px 4px;
                    }
                }
            }

            &.active-stores {
                background-color: rgb(170, 170, 170, 0.1);

                .fuel-franchise-main-header {
                    color: #ffffff;
                    font-weight: 700;
                }

                &:hover {
                    background-color: rgb(170, 170, 170, 0.1);
                    color: #dadada;
                }
            }

            &.active-stores-header-hover {
                &:hover {
                    background-color: #2f2f2f;
                    position: relative;

                    .fuel-franchise-header {
                        color: #ffffff;
                        background-color: #1d1d1d;
                        font-weight: 700;
                        position: relative;
                    }

                    .helper-hover-container {
                        content: '';
                        width: 105%;
                        height: 26px;
                        background-color: #1d1d1d;
                        position: absolute;
                        top: 0px;
                        left: 0px;
                        border-radius: 2px;
                    }

                    .fuel-franchise-header {
                        .fuel-franchise-header-right-side {
                            .header-arrow {
                                svg {
                                    path {
                                        fill: #dadada;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }

        //------------------------ SVG Template ------------------------
        .svg-template-logo {
            height: 18px;
            aspect-ratio: 1;
             &.round{
                border-radius: 100% !important;
            }
        }

        //------------------------ Routing Dropdown ------------------------

        &.routing_dropdown {
            font-size: 11px;
            height: 22px;
        }
    }

    &.dropdown-status {
        .dropdown-option {
            font-weight: bold;
            text-transform: uppercase;
        }
    }

    //------------------------ Load Dispatches TTD Template ------------------------
    .load-dispatches-ttd-template {
        display: grid;
        grid-template-columns: repeat(3, 155px) 97px;
        align-items: center;

        .load-dispatches-container {
            display: flex;
            align-items: center;
            gap: 6px;
            position: relative;

            .owner-avatar {
                position: absolute;
                left: 13px;
                bottom: -3px;
                width: 10px;
                height: 10px;
            }

            .load-dispatch-driver,
            .load-dispatch-truck,
            .load-dispatch-trailer {
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                width: 116px;
                max-width: -webkit-fit-content;
                max-width: -moz-fit-content;
                max-width: fit-content;
                line-height: 18px;
                font-size: 14px;
                font-weight: 400;
            }

            .load-dispatches-svg {
                line-height: 16px;
                svg {
                    width: 46px;
                    height: 16px;
                }
            }

            .load-dipstaches-owner-flag {
                position: absolute;
                top: 44%;
                right: 0;
                transform: translateY(-50%);
                svg {
                    path {
                        fill: #6f9ee0 !important;
                    }
                }
            }

            &.trailerContainer {
                width: -webkit-max-content !important;
                width: -moz-max-content !important;
                width: max-content !important;
                padding: 0px !important;
                margin: 0px !important;
            }
        }

        .load-dispatch-driver-rate {
            width: 130px;
            text-align: right;
            font-size: 11px;
            font-weight: 400;
            color: $bw5;
            padding-bottom: 1px;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;

            &.active {
                color: #6f9ee0;
            }

            &.driver-owner {
                text-align: left;
                width: 80px;
            }
        }

        &.active {
            .load-dispatch-driver-rate,
            .load-dispatch-driver,
            .load-dispatch-truck,
            .load-dispatch-trailer {
                font-weight: 700;
            }
        }
    }

    // ---------------------------------------- DROPDOWN GROUPS ----------------------------------------
    &.dropdown-options-groups {
        max-height: 194px;
        overflow-y: scroll;

        // This class is only for Truck tollTransporder
        .dropdown-groups {
            display: flex;
            flex-direction: column;
            position: relative;

            p {
                margin: 0;
            }

            &::after {
                content: '';
                display: inline-block;
                position: absolute;
                bottom: -3px;
                height: 1px;
                width: 100%;
                background-color: rgb(170, 170, 170, 0.2);
            }

            &:last-child {
                margin-top: 4px;
                &::after {
                    display: none !important;
                }
            }

            .dropdown-group-header {
                font-size: 11px;
                color: $ta-light-grey-6;
                font-weight: 700;
                text-transform: uppercase;
                line-height: 14px;
                padding: 0 6px;
                padding-top: 8px;
                margin-bottom: 8px;

                &::-moz-selection {
                    background-color: rgb(204, 204, 204, 0.2) !important;
                    color: rgb(204, 204, 204, 0.4) !important;
                }

                &::selection {
                    background-color: rgb(204, 204, 204, 0.2) !important;
                    color: rgb(204, 204, 204, 0.4) !important;
                }
            }

            .dropdown-subgroup-options {
                display: flex;
                align-items: center;
                padding: 4px 6px;
                height: 26px;
                border-radius: 2px;

                .highlight-text-45632 {
                    background-color: $ta-blue-20;
                    color: $ta-blue-19;
                }

                &:hover {
                    background-color: #1d1d1d;
                    cursor: pointer;
                    transition: all 0.3s ease-in-out;
                    .dropdown-subgroup-text {
                        color: #ffffff;
                    }
                }

                .dropdown-subgroup-text {
                    font-size: 14px;
                    font-weight: 400;
                    color: $ta-light-grey-6;
                    transition: all 0.3s ease-in-out;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;

                    &.active {
                        font-weight: 700;
                        // Higlight text
                        .highlight-text-45632 {
                            background-color: $ta-blue-20;
                            color: $ta-blue-19;
                            transition: all 0.3s ease-in-out;
                            &:hover {
                                color: #ffffff !important;
                            }
                        }

                        &::after {
                            position: absolute;
                            right: 11px;
                            content: url('/assets/ca-components/svg/input/ic_confirm.svg');
                            width: 14px;
                            height: 10px;
                        }
                    }
                }
            }
        }

        // Override groups classes for load-broker-contact-template
        .load-broker-contact-groups {
            display: flex;
            flex-direction: column;
            position: relative;
            padding-bottom: 0px;
            margin: 0;

            p {
                margin: 0;
            }

            .dropdown-group-header {
                padding: 0px;
                margin: 0px;
                padding-top: 8px;
                padding-left: 4px;
                margin-bottom: 4px;

                color: $ta-light-grey-6;
                font-size: 11px;
                text-transform: capitalize;

                &.add-new {
                    font-size: 11px;
                    line-height: 14px;
                    font-weight: 700;
                    color: #6f9ee0;
                    padding: 4px;
                    margin: 0;
                    cursor: pointer;

                    &:hover {
                        border-radius: 2px;
                        color: $ta-blue-17;
                        background-color: #1d1d1d;
                    }
                }
            }

            .dropdown-option-hovered {
                border-radius: 2px;
                background-color: #1d1d1d;

                .dropdown-subgroup-text {
                    color: #ffffff !important;
                }
            }

            .dropdown-subgroup-options {
                display: grid;
                grid-template-columns: 141px 135px;
                grid-column-gap: 10px;
                -moz-column-gap: 10px;
                column-gap: 10px;
                align-items: center;
                padding: 3px 4px;
                // margin-bottom: 2px;
                cursor: pointer;

                &.selected-option {
                    padding: 0px 0px;

                    .dropdown-subgroup-additional-text {
                        padding-right: 40px !important;
                    }
                }

                &:hover {
                    border-radius: 2px;
                    background-color: #1d1d1d;

                    .dropdown-subgroup-text {
                        color: #ffffff !important;
                    }
                }

                &:not(.selected-option) {
                    .dropdown-subgroup-text {
                        color: #ffffff;
                    }

                    .dropdown-subgroup-additional-text {
                        &.active {
                            color: #6f9ee0;
                        }
                    }
                }

                .dropdown-subgroup-text {
                    font-size: 14px;
                    font-weight: 400;

                    display: block;
                    width: 100%;
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;

                    // Higlight text
                    .highlight-text-45632 {
                        background-color: $ta-blue-20;
                        color: $ta-blue-19;
                        &:hover {
                            color: #ffffff !important;
                        }
                    }

                    &.active {
                        font-weight: 700;

                        &::after {
                            position: absolute;
                            right: -26px;
                            content: url('/assets/ca-components/svg/input/ic_confirm.svg');
                            width: 14px;
                            height: 10px;
                        }
                    }
                }

                .dropdown-subgroup-additional-text {
                    color: $bw5;
                    font-size: 11px;
                    font-weight: 400;
                    position: relative;
                    text-align: right;

                    &.active {
                        font-weight: 400;
                    }

                    // Higlight text
                    .highlight-text-45632 {
                        background-color: $ta-blue-20;
                        color: $ta-blue-19;
                    }
                }
            }
        }
    }

    // Merged Dropdown
    &.merge-dropdown-body-with-input {
        border-radius: 0 0 2px 2px !important;
        left: -4px !important;
    }

    // Dispatch Dropdown
    &.svgtext-dispatch-template {
        top: -4px;

        .plus-icon {
            margin-right: 4px;
        }

        .icon {
            &.blue {
                circle {
                    fill: $ta-blue-19 !important;
                }
            }

            &.yellow {
                circle {
                    fill: $ta-yellow-4 !important;
                }
            }

            &.red {
                circle {
                    fill: $ta-red-13 !important;
                }
            }

            &.green {
                circle {
                    fill: $ta-green-4 !important;
                }
            }
        }
    }
}
//------------------------ Load Dispatcher Template ------------------------
.load-dispatcher-template {
    display: flex;
    align-items: center;
    gap: 6px;
}

//------------------------ Load Shipper Contact Template -----------------------
.load-shipper-template {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding-right: 5px;

    .load-shipper-status-text {
        &.in-option {
            height: 22px;
        }
        display: flex;
        align-items: center;
        gap: 6px;
        line-height: 18px;

        .load-shipper-status {
            position: relative;
            line-height: 17px;
        }

        .load-shipper-text {
            &.disabled {
                color: #6c6c6c;
            }
        }
    }

    div {
        &:nth-child(2),
        &:nth-child(3) {
            text-align: right;
        }

        &:nth-child(2) {
            color: $bw5;
            font-size: 11px;
            font-weight: 400;
            white-space: nowrap;
            max-width: 100%;
            text-overflow: ellipsis;
            overflow: hidden;

            &.active {
                color: #6f9ee0;
                font-weight: bold;
            }
        }
    }

    .load-shipper-load-counter {
        max-width: -webkit-max-content;
        max-width: -moz-max-content;
        max-width: max-content;
        height: 18px;
        border-radius: 30px;
        text-align: right;
        font-size: 11px;
        font-weight: 400;
        color: $bw5;
        background-color: rgb(145, 145, 145, 0.2);
        padding: 1px 6px;
        justify-self: flex-end;

        &.active {
            color: #6f9ee0;
            background-color: rgb(111, 158, 224, 0.2);
        }
    }
}

// PM Repair Modal popover
.ta-dropdown-popover {
    z-index: 999999;
    .arrow {
        display: none !important;
    }

    .popover-body {
        z-index: 99999999;
        .options {
            position: relative;
            top: 3px;
            z-index: 1000;
            max-height: 198px;
            width: 100%;
            background-color: #2f2f2f;
            border-radius: 2px;
            padding: 2px;
            overflow: hidden;

            &.scroll {
                transition: all 0.3s ease-in-out;
                overflow-y: scroll !important;

                &::-webkit-scrollbar {
                    width: 3px;
                }

                &::-webkit-scrollbar-thumb {
                    background-color: transparent;
                    border: 6px solid #aaaaaa;
                    border-radius: 1px;
                }

                &::-webkit-scrollbar-track {
                    padding: 0;
                    position: relative;
                    right: 0;
                    top: 0;
                    background: transparent;
                }
            }

            .option {
                position: relative;
                padding: 3px;
                height: 26px;
                font-size: 14px;
                line-height: 18px;
                font-weight: 400;
                border-radius: 2px;
                white-space: nowrap;
                text-overflow: ellipsis;
                color: #ffffff;
                display: flex;
                gap: 4px;

                &::-moz-selection {
                    color: #ffffff;
                    background-color: rgb(255, 255, 255, 0.2);
                }

                &:nth-last-child(1) {
                    margin-bottom: 0px;
                }

                &:hover {
                    background-color: #1d1d1d;
                    border-radius: 2px;
                    cursor: pointer;
                }

                &.add-option {
                    color: #6f9ee0;
                    font-weight: 600;

                    &::after {
                        content: '';
                        height: 2px;
                        width: 100%;
                        background-color: rgb(170, 170, 170, 0.2);
                        border-radius: 1px;
                        position: absolute;
                        bottom: 0px;
                        left: 0px;
                    }
                }
            }
        }
    }
}

//------------------------ Load Broker Template ------------------------
.load-broker-template {
    &.in-option {
        height: 26px;
    }

    display: grid;
    align-items: center;
    grid-template-columns: 276px 92px;
    -moz-column-gap: 29px;
    column-gap: 29px;
    &.hide-loads {
        grid-template-columns: 333px 92px !important;
    }
    .load-broker-status-text {
        display: flex;
        align-items: center;
        gap: 6px;
        line-height: 26px;

        .load-broker-status {
            position: relative;
            line-height: 17px;

            &.dnu-status {
                svg {
                    path {
                        fill: #aaaaaa;
                    }
                }
            }
        }

        .load-broker-text {
            &.disabled {
                color: #6c6c6c;
            }
        }
    }

    .load-broker-progress-status {
        height: 14px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        grid-gap: 4px;
        gap: 4px;
        text-align: center;

        .progress-bar-price {
            color: $bw5;
            font-size: 11px;
            font-weight: 400;
        }

        .progress-bar-line {
            width: 24px;
        }
    }

    .load-broker-load-counter {
        max-width: -webkit-max-content;
        max-width: -moz-max-content;
        max-width: max-content;
        height: 18px;
        border-radius: 30px;
        text-align: center;
        font-size: 11px;
        font-weight: 400;
        color: $bw5;
        background-color: rgb(145, 145, 145, 0.2);
        padding: 1px 6px;

        &.active {
            color: #6f9ee0;
            background-color: rgb(111, 158, 224, 0.2);
        }

        &.hasOneValue {
            max-width: 19px !important;
        }
    }
}

// Selected Dropdown Card Preview
.selected-item-container {
    height: 52px;
    padding: 6px;
    background: $ta-blue-16;
    position: relative;
    border-radius: 2px;
    transition: background 0.3s ease-in-out;

    &:hover {
        background: $ta-blue-17;

        .selected-item-additional {
            .selected-item-info {
                svg-icon {
                    svg {
                        path {
                            fill: $ta-blue-14;
                        }
                    }
                }
            }
        }

        .clear-selected-item {
            display: flex;
            align-items: center;
        }
    }

    .selected-item-label {
        position: absolute;
        top: -16px;
        font-size: 11px;
        font-weight: 600;
        color: $ta-black;

        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;

        span {
            color: $ta-red-11;
        }
    }

    .selected-item-name {
        font-size: 14px;
        line-height: 18px;
        color: $ta-black;

        &::-moz-selection {
            color: $ta-black;
            background: rgb(66, 66, 66, 0.2);
        }

        &::selection {
            color: $ta-black;
            background: rgb(66, 66, 66, 0.2);
        }

        .selected-item-star {
            position: relative;
            bottom: 2px;

            svg {
                margin-left: 6px;

                path {
                    fill: $ta-blue-13;
                }
            }
        }
    }

    .selected-item-additional {
        gap: 22px;

        .selected-item-info {
            svg-icon {
                width: 14px;

                svg {
                    width: 100%;
                    height: 100%;

                    path {
                        fill: $ta-blue-13;
                        transition: fill 0.3s ease-in-out;
                    }
                }
            }

            .hide-svg-on-copy {
                display: none;
            }
        }
    }

    .clear-selected-item {
        position: absolute;
        right: 4px;
        top: 0px;
        display: none;
        gap: 6px;

        .clear-x {
            cursor: pointer;
            transition: transform 0.3s ease-in-out;

            &:hover {
                transform: scale(1.2);
            }

            svg {
                path {
                    fill: $ta-blue-17;
                }

                rect {
                    fill: $ta-blue-13;
                }
            }

            &:hover {
                svg {
                    rect {
                        fill: $ta-blue-15;
                    }
                }
            }
        }
    }

    &.non-editable {
        background-color: $ta-light-grey-5;

        .selected-item-label,
        .selected-item-name {
            color: $bw5;
        }

        .selected-item-additional {
            .selected-item-info {
                svg-icon {
                    svg {
                        path {
                            fill: $ta-light-grey-6;
                        }
                    }
                }
                p {
                    color: $bw5;
                }
            }
        }
    }
}

.dropdown-trailer-hover {
    &:hover {
        // TRUCKS
        .ic_truck_semi-truck {
            svg {
                path {
                    fill: $ta-green;
                }
            }
        }

        .ic_truck_semi-wSleeper {
            svg {
                path {
                    fill: $ta-yellow-1;
                }
            }
        }

        .ic_truck_box-truck {
            svg {
                path {
                    fill: $ta-red-10;
                }
            }
        }

        .ic_truck_cargo-van {
            svg {
                path {
                    fill: $ta-blue-13;
                }
            }
        }

        .ic_truck_tow-truck {
            svg {
                path {
                    fill: $ta-purple-1;
                }
            }
        }

        .ic_truck_car-hauler {
            svg {
                path {
                    fill: $ta-red-18;
                }
            }
        }

        .ic_truck_spotter {
            svg {
                path {
                    fill: $ta-orange-5;
                }
            }
        }

        // TRAILERS
        .ic_trailer_reefer {
            svg {
                path {
                    fill: $ta-blue-13;
                }
            }
        }

        .ic_trailer_dryvan {
            svg {
                path {
                    fill: $ta-blue-24;
                }
            }
        }

        .ic_trailer_side-kit {
            svg {
                path {
                    fill: $ta-orange-4;
                }
            }
        }

        .ic_trailer_conestoga {
            svg {
                path {
                    fill: $ta-yellow-8;
                }
            }
        }

        .ic_trailer_dumper {
            svg {
                path {
                    fill: $ta-purple-1;
                }
            }
        }

        .ic_trailer_container {
            svg {
                path {
                    fill: $ta-yellow-1;
                }
            }
        }

        .ic_trailer_tanker {
            svg {
                path {
                    fill: $ta-green-6;
                }
            }
        }

        .ic_trailer_carhauler {
            svg {
                path {
                    fill: $ta-red-18;
                }
            }
        }

        .ic_trailer_flatbed {
            svg {
                path {
                    fill: $ta-red-13;
                }
            }
        }

        .ic_trailer_low-boy {
            svg {
                path {
                    fill: $ta-red-11;
                }
            }
        }

        .ic_trailer_chassis {
            svg {
                path {
                    fill: $ta-orange-5;
                }
            }
        }

        .ic_trailer_step-deck {
            svg {
                path {
                    fill: $ta-red-10;
                }
            }
        }

        .ic_trailer_tanker_pneumatic {
            svg {
                path {
                    fill: $ta-green;
                }
            }
        }

        .ic_carhauler_stinger {
            svg {
                path {
                    fill: $ta-red-19;
                }
            }
        }
    }
}

.hide-after-arrow .dropdown-option.active::after {
    display: none !important;
}

//------------------------ Load Dispatches TTD Template ------------------------
.load-dispatches-ttd-template {
    display: grid;
    grid-template-columns: repeat(3, 155px) 97px;
    align-items: center;

    .load-dispatches-container {
        display: flex;
        align-items: center;
        gap: 6px;
        position: relative;

        .owner-avatar {
            position: absolute;
            left: 13px;
            bottom: -3px;
            width: 10px;
            height: 10px;
        }

        .load-dispatch-driver,
        .load-dispatch-truck,
        .load-dispatch-trailer {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            width: 116px;
            max-width: -webkit-fit-content;
            max-width: -moz-fit-content;
            max-width: fit-content;
            line-height: 18px;
            font-size: 14px;
            font-weight: 400;
        }

        .load-dispatches-svg {
            line-height: 16px;
            svg {
                width: 46px;
                height: 16px;
            }
        }

        .load-dipstaches-owner-flag {
            position: absolute;
            top: 44%;
            right: 0;
            transform: translateY(-50%);
            svg {
                path {
                    fill: #6f9ee0 !important;
                }
            }
        }

        &.trailerContainer {
            width: -webkit-max-content !important;
            width: -moz-max-content !important;
            width: max-content !important;
            padding: 0px !important;
            margin: 0px !important;
        }
    }

    .load-dispatch-driver-rate {
        width: 130px;
        text-align: right;
        font-size: 11px;
        font-weight: 400;
        color: $bw5;
        padding-bottom: 1px;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;

        &.active {
            color: #6f9ee0;
        }

        &.driver-owner {
            text-align: left;
            width: 80px;
        }
    }

    &.active {
        .load-dispatch-driver-rate,
        .load-dispatch-driver,
        .load-dispatch-truck,
        .load-dispatch-trailer {
            font-weight: 700;
        }
    }
}
