.input-field-sec {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    height: 52px;

    label{
        color: black;
        font-weight: 500;
    }

    & .MuiFormControl-root {
        width: 100%;
    }
    & .MuiContainer-root {
        @media (min-width: 600px) {
            padding: 0;
        }
    }
    & .MuiInputBase-input {
        padding: 14.5px 12px;
        font-weight: 500;
        color: black;
    }
    // & .MuiOutlinedInput-root.Mui-focused {
    //     & > .MuiInputBase-input {
    //         background-color: #e8f5e8;
    //     }
    //     .MuiInputAdornment-root {
    //         background-color: #e8f5e8;
    //     }
    // }

    &.select-box {
        label {
            background: white;
            color: black;
            font-family: "Roboto", "Helvetica", "Arial", sans-serif;
            font-weight: 500;
            font-size: 1rem;
            line-height: 1.4375em;
            letter-spacing: 0.00938em;
            padding: 0 5px 0 5px;
            margin: 0 0 0 -5px;
            position: relative;
            display: block;
            transform-origin: top left;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: calc(133% - 32px);
            position: absolute;
            left: 0;
            top: 0;
            -webkit-transform: translate(14px, -9px) scale(0.75);
            -moz-transform: translate(14px, -9px) scale(0.75);
            -ms-transform: translate(14px, -9px) scale(0.75);
            transform: translate(14px, -9px) scale(0.75);
            -webkit-transition: color 200ms cubic-bezier(0, 0, 0.2, 1) 0ms,
                -webkit-transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms, max-width 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;
            transition: color 200ms cubic-bezier(0, 0, 0.2, 1) 0ms, transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms,
                max-width 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;
            z-index: 2;
            pointer-events: auto;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }
        .react-select {
            width: 100%; 
            color: black;
            font-weight: 500;
            &__control {
                height: 100%;
                z-index: 1;
            }
            &__menu {
                z-index: 3;
            }
        }
    }

    &.error-field{
        &.input-field-sec.select-box .react-select__control {
            border-color: #d32f2f;
        }
        &.input-field-sec.date-box .Mui-error .MuiOutlinedInput-notchedOutline{
            border-color: #d32f2f;
        }
    }

    &.date-box {
        label {
            background: white;
            color: black;
            font-family: "Roboto", "Helvetica", "Arial", sans-serif;
            font-weight: 500;
            font-size: 1rem;
            line-height: 1.4375em;
            letter-spacing: 0.00938em;
            padding: 0 5px 0 5px;
            margin: 0 0 0 -5px;
            position: relative;
            display: block;
            transform-origin: top left;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: calc(133% - 32px);
            position: absolute;
            left: 0;
            top: 0;
            -webkit-transform: translate(14px, -9px) scale(0.75);
            -moz-transform: translate(14px, -9px) scale(0.75);
            -ms-transform: translate(14px, -9px) scale(0.75);
            transform: translate(14px, -9px) scale(0.75);
            -webkit-transition: color 200ms cubic-bezier(0, 0, 0.2, 1) 0ms,
                -webkit-transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms, max-width 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;
            transition: color 200ms cubic-bezier(0, 0, 0.2, 1) 0ms, transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms,
                max-width 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;
            z-index: 2;
            pointer-events: auto;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }
        .custom-date-input {
            width: 100%;
        }
        .Mui-error .MuiOutlinedInput-notchedOutline {
            border-color: rgba(0, 0, 0, 0.23);
        }
    }
}

.error-field {
    // & .MuiInputBase-input {
    //     background-color: #ffe7e7;
    // }
    // & .MuiInputAdornment-root {
    //     background-color: #ffe7e7;
    // }
    & .helperTextError {
        position: absolute;
        padding: 4px 7px;
        margin: 1em 0;
        color: #fff;
        top: 90%;
        background: #a93434;
        -webkit-border-radius: 10px;
        -moz-border-radius: 10px;
        border-radius: 4px;
        min-width: 100px;
        z-index: 10;
        font-size: 12px;
        line-height: normal;
    }
    & .helperTextError:after {
        content: "";
        position: absolute;
        border-style: solid;
        display: block;
        width: 0;
        top: -6px;
        left: 50px;
        bottom: auto;
        left: auto;
        border-width: 0 9px 9px;
        border-color: #a93434 transparent;
    }
}

// .Mui-focused {
//     background-color: #e8f5e8;
// }

.radio-group {
    min-height: auto;
    width: auto;
    display: flex;
    align-items: center;
}

.switch {
    display: flex;
    align-items: center;
    width: auto;
}

.input-field-sec.sm {
    width: 160px !important;
}

.input-field-sec.md {
    width: 200px !important;
}

.input-field-sec.lg {
    width: 400px !important;
}

/*Date Time Clock Sidebar Scroll styles */
.MuiMultiSectionDigitalClockSection-root::-webkit-scrollbar {
    width: 10px;
}

.MuiMultiSectionDigitalClockSection-root::-webkit-scrollbar-track {
    background: #fff;
}

.MuiMultiSectionDigitalClockSection-root::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.MuiMultiSectionDigitalClockSection-root::-webkit-scrollbar-thumb:hover {
    background: #555;
}
