@import "../../assets/sass/global.scss";
@import "../../assets/sass/core/vars.scss";
//----------------------------------------------------------------------------------------------------------
//-------------------------------------------------- AREA --------------------------------------------------
//----------------------------------------------------------------------------------------------------------

.gtc-rc-datepicker_area {
    width: 100%;
    //border: 1px solid $color-border;
    border-radius: 3px;
    color: #909090;
    background-color: white;
    display: flex;
    align-items: center;
    position: relative;
    
    .gtc-rc-datepicker_input {
        font-size: $input-text-size;
        //min-width: 90px;
        width: 100%;
        height: 36px;
        border: 1px solid $color-border;
        border-radius: 3px;
        color: black;
        padding-left: 9px;

        cursor: pointer;
    /*         &:hover {
            box-shadow: 0px 0px 1px 1px $primary-color-px;
            outline: 0 none;
            border: 1px solid $primary-color-px;
        }; */
        &:focus {
            outline: 0 none;
            border: 1px solid $color-border-focused;
            box-shadow: 0px 0px 4px $color-border-focused;
        } 

    }
    .gtc-rc-datepicker_input_disabled {
        cursor: no-drop;
    }
    
    .gtc-rc-datepicker_icon {
        position: absolute;
        right: 8px;
        top: 10px;
        cursor: pointer;
        color: black;
    }
}

//---------------------------------------------------------------------------------------------------------------
//-------------------------------------------- DatePicker Menu --------------------------------------------------
//---------------------------------------------------------------------------------------------------------------

.gtc-rc-datepicker_menu {
    padding-top: 10px;
    background-color: #fff;
    font-size: 16px;
    //width: 100px;
    //padding-left: 8px;

    > div:nth-child(1) {
        display: flex;
        justify-content: center;
    }

    .react-datepicker {

        background-color: #fff;
        border: none;
        display: inline-block;

        .react-datepicker__header {
            text-align: center;
            background-color: #fff;
            border-bottom: none;
            border-top-left-radius: none;
            //padding: 8px 0;
            //position: relative;
        }

        .react-datepicker__current-month {
            text-transform: capitalize;
        }

        .react-datepicker__day--outside-month {
            color: transparent !important;
            pointer-events: none;
            visibility: hidden;
        }
        .react-datepicker__day-names {
            margin: 15px 0px -20px 0px;
            text-transform: capitalize;

        }
        .react-datepicker__day-name {
            color: #929292 !important
        }

        .react-datepicker__day,
        .react-datepicker__month-text,
        .react-datepicker__quarter-text,
        .react-datepicker__year-text {
            color: #8B8B8E;

            &--in-selecting-range,
            &--in-range {
                //border-radius: $datepicker__border-radius;
                background-color: #B3E5FC;
                color: #545456;

            }
            &--disabled {
                color: #ccc
            }

            &--selected,
            &--keyboard-selected {
                //border-radius: $datepicker__border-radius;
                background-color: #03A9F4;
                color: #fff !important;
            }
        }
    }

    .gtc-rc-datepicker_buttons_container {
        display: flex;
        justify-content: space-evenly;
        padding: 10px 0px 10px 0px;
        border-top: 1px solid #e3e3e3;
    }

    .gtc-rc-btn-datepicker {
        width: 100%;
    }
}

//-------------------------------------------------------------------------------------------------------------------
//-------------------------------------------- DateRangePicker Menu --------------------------------------------------
//--------------------------------------------------------------------------------------------------------------------

.gtc-rc-daterangepicker_menu {
    padding-top: 10px;
    background-color: #fff;
    //width: 100px;
    //padding-left: 8px;

    .gtc-rc-daterangepicker_menu_vertical{
        > div:nth-child(1) {
            display: flex;
            justify-content: center;
            flex-direction: column;
        }
    }

    .gtc-rc-daterangepicker_menu_horizontal{
        > div:nth-child(1) {
            display: flex;
            justify-content: center;
            flex-direction: row;
        }
    }

    .react-datepicker {

        background-color: #fff;
        border: none;
        display: inline-block;

        .react-datepicker__header {
            text-align: center;
            background-color: #fff;
            border-bottom: none;
            border-top-left-radius: none;
            //padding: 8px 0;
            //position: relative;
        }

        .react-datepicker__current-month {
            text-transform: capitalize;
        }

        .react-datepicker__day--outside-month {
            color: transparent !important;
            pointer-events: none;
            visibility: hidden;
        }
        .react-datepicker__day-names {
            margin: 15px 0px -20px 0px;
            text-transform: capitalize;

        }
        .react-datepicker__day-name {
            color: #929292 !important
        }

        .react-datepicker__day,
        .react-datepicker__month-text,
        .react-datepicker__quarter-text,
        .react-datepicker__year-text {
            color: #8B8B8E;

            &--in-selecting-range,
            &--in-range {
                //border-radius: $datepicker__border-radius;
                background-color: #B3E5FC;
                color: #545456;

            }
            &--disabled {
                color: #ccc
            }

            &--selected,
            &--keyboard-selected {
                //border-radius: $datepicker__border-radius;
                background-color: #03A9F4;
                color: #fff !important;
            }
        }
    }

    .gtc-rc-datepicker_container_range_time {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        border-bottom: 1px solid #e3e3e3;
        //width: 100%;

        .gtc-rc-time_container {
            //width: 50px;
            padding: 15px 10px 15px 10px;
            //display: flex;
        }

        .gtc-rc-time_select {
            width: 100%;
            padding: 5px 5px;
        }

        .gtc-rc-time_select_container_icon {
            padding-top: 10px;
        }

        .gtc-rc-time_select_container {
            width: 100%;
            //padding: 0px 5px;

            .form-item {
                padding-top: 0px;
            }
        }
    }

    .gtc-rc-datepicker_buttons_container {
        display: flex;
        justify-content: space-evenly;
        padding: 10px 0px 10px 0px;
        border-top: 1px solid #e3e3e3;
    }

    .gtc-rc-btn-datepicker {
        width: 100%;
    }
}