.date-time-slot-box {
    display: block;

    .form-control {
        background-color: $section-bg;
        border: 1px solid $gray-color;
        padding: 10px 16px !important;

        &:hover,
        &:focus {
            background-color: $section-bg;
            border: 1px solid $gray-color;
        }
    }
}

.xdsoft_datetimepicker {
    width: 100%;
    border: none;
    padding: 0;
    background-color: transparent;
    font-family: "DM Sans", serif !important;

    .xdsoft_prev,
    .xdsoft_today_button,
    .xdsoft_next {
        display: none !important;
    }

    .xdsoft_scrollbar {
        width: calc(5px + (7 - 5) * ((100vw - 320px) / (1920 - 320)));
        background-color: $section-bg;

        >.xdsoft_scroller {
            background-color: $gray-color !important;
        }
    }

    .xdsoft_label {
        float: unset;
        background-color: $section-bg;
        border: 1px solid $gray-color;
        font-size: calc(15px + (16 - 15) * ((100vw - 320px) / (1920 - 320)));
        padding: 7px;
        line-height: 1.3;
        font-weight: 600;
        border-radius: 5px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;

        &.xdsoft_year {
            margin: 0;
        }

        &:hover {
            >span {
                text-decoration: none;
            }
        }

        >i {
            margin-left: 7px;

            [dir="rtl"] & {
                margin-left: unset;
                margin-right: 7px;
            }
        }

        >.xdsoft_select {

            &.xdsoft_monthselect,
            &.xdsoft_yearselect {
                border: 1px solid $gray-color;
                border-radius: 4px;
                width: 100%;
                right: unset;
                margin-top: 8px;
            }

            >div {
                >.xdsoft_option {
                    padding: 4px 10px;
                    text-align: center;
                    opacity: 0.8;
                    font-size: calc(14px + (15 - 14) * ((100vw - 320px) / (1920 - 320)));
                    font-weight: 500;

                    +.xdsoft_option {
                        border-top: 1px solid $gray-color;
                    }

                    &:hover {
                        background-color: var(--primary-color);
                    }

                    &.xdsoft_current {
                        background: var(--primary-color);
                        box-shadow: none;
                        font-weight: 600;
                    }
                }
            }
        }
    }

    &.xdsoft_inline {
        display: grid;
        gap: 14px;
    }

    .xdsoft_datepicker {
        width: 100%;
        float: unset;
        margin: 0;
        overflow: hidden;

        &.active {
            +.xdsoft_timepicker {
                margin: 0;

                .xdsoft_prev,
                .xdsoft_next {
                    display: none;
                }
            }
        }

        .xdsoft_mounthpicker {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 8px;
            padding-bottom: 8px;
            border-bottom: 1px solid $gray-color;
        }

        .xdsoft_calendar {
            border: 1px solid $gray-color;
            border-radius: 4px;
            overflow: hidden;

            table {
                thead {
                    tr {
                        th {
                            background-color: $section-bg;
                            border: none;
                            border-bottom: 1px solid $gray-color;
                            font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (1920 - 320)));
                            height: auto;
                            font-weight: 500;
                            color: #222;
                            line-height: 1.3;
                            padding: calc(6px + (8 - 6) * ((100vw - 320px) / (1920 - 320)));
                            width: auto;
                        }
                    }
                }

                tbody {
                    tr {
                        td {
                            background-color: transparent;
                            text-align: center;
                            height: auto;
                            border: none;
                            font-size: calc(13px + (15 - 13) * ((100vw - 320px) / (1920 - 320)));
                            padding: calc(6px + (8 - 6) * ((100vw - 320px) / (1920 - 320)));

                            >div {
                                padding: 0;
                            }

                            &:hover {
                                background-color: transparent !important;
                                color: var(--primary-color) !important;
                                position: relative;
                                z-index: 0;
                                overflow: hidden;

                                &::before {
                                    @extend %bg-primary-color;
                                    opacity: 0.1;
                                }
                            }

                            &.xdsoft_current {
                                background-color: var(--primary-color);
                                color: $white;
                                box-shadow: none;
                                font-weight: 600;

                                &:hover {
                                    background-color: var(--primary-color) !important;
                                    color: $white !important;
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    .xdsoft_timepicker {
        width: 100%;

        .xdsoft_time_box {
            >div {
                >div {
                    &:hover,&:focus {
                        background-color: var(--primary-color) !important;
                    }
                }
            }
        }

        .xdsoft_time_box {
            height: 211px;
            border: none;

            .xdsoft_time_variant {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 8px;
                margin-right: 10px;

                .xdsoft_time {
                    background-color: $section-bg;
                    border: 1px solid $gray-color;
                    height: auto;
                    line-height: 1.3;
                    font-size: calc(14px + (15 - 14) * ((100vw - 320px) / (1920 - 320)));
                    padding: calc(6px + (10 - 6) * ((100vw - 320px) / (1920 - 320)));
                    border-radius: 6px;

                    &:hover {
                        background-color: transparent !important;
                        color: var(--primary-color) !important;
                        border: 1px solid var(--primary-color);
                        position: relative;
                        z-index: 0;
                        overflow: hidden;

                        &::before {
                            @extend %bg-primary-color;
                            opacity: 0.1;
                        }
                    }

                    &.xdsoft_current {
                        background-color: var(--primary-color);
                        box-shadow: none;
                        font-weight: 600;

                        &:hover {
                            background-color: var(--primary-color) !important;
                            color: $white !important;
                        }
                    }
                }
            }
        }
    }
}