/* ProSplitterLayout */

.questionnaire-wrapper{
    height: calc(100vh - 225px);
    min-height: 350px;

    .maxHeightSplitter {
        border: none;
        .splitter-layout{
            .layout-pane {
                padding: 0;
            }
        }
        .layout-pane {
            width: calc(100% - 330px) !important;
            max-height: calc(100vh - 100px);
            box-sizing: border-box;
            padding: 20px;

            &.layout-pane-primary {
                overflow-y: auto;
                height: 100%;
                border: none;
                padding: 0;
                flex: 0 0 330px;

                .proFormList-title {
                    font-size: 20px;
                    line-height: 24px;
                    font-weight: 500;
                    color: #333333;
                    padding: 15px 20px;
                }

                ul {
                    padding: 0;
                    border-top: 1px solid #ccc;

                    .SplitterLayoutMenuContainer {
                        padding: 0;
                        width: 100% !important;

                        .li {
                            padding: 0;
                            width: 100%;
                            align-items: left;

                            div {
                                padding: 0;
                            }
                        }
                    }

                    div {
                        &:last-child {
                            border-bottom-left-radius: 0;
                            border-bottom-right-radius: 0;
                            box-shadow: none;
                        }
                    }

                    div[tabindex] {
                        margin: 0;

                        .menuSel {
                            background-color: transparent;

                            div {
                                span {
                                    font-weight: 500;
                                    font-size: 16px;
                                    line-height: 23px;
                                }
                            }
                        }

                        .menuItem {
                            div {
                                span {
                                    font-weight: 400;
                                    color: #848484;
                                    font-size: 16px;
                                    line-height: 23px;
                                    overflow: hidden;
                                    text-overflow: ellipsis;
                                }
                            }
                        }
                    }

                    .borderPane {
                        min-height: 75px;
                        border-bottom: 1px solid #ccc;

                        .proform-title {
                            font-size: 18px;
                            line-height: 30px;
                            color: #848484;
                            font-weight: 500;
                            letter-spacing: 0.5px;

                            .selected-form {
                                color: #333333;
                            }
                        }

                        .proform-date {
                            font-size: 15px;
                            line-height: 20px;
                            color: #848484;
                            font-weight: 400;
                            letter-spacing: 0.3px;

                            .redFont {
                                color: #FF0909;
                            }
                        }

                        >div {
                            margin: 0;
                        }

                        .form-check-container {
                            display: flex;
                            flex-direction: row;
                            align-items: center;

                            .form-check {
                                padding: 0 20px 0 0;

                                svg {
                                    font-size: 18px;
                                }
                            }
                        }
                    }

                    .expansionPanel {
                        background-color: #f8f8f8;

                        ul {
                            border-top: none;
                            width: 100%;
                            padding-left: 2%;
                        }
                    }

                }
            }

            .layout-pane_title {
                padding: 0 0 20px;
            }

            .QuestionForm {
                border-left: none;
                padding: 0;
            }
        }
    }



    .splitter__layout--container {
        height: calc(100% - 45px);
    }

    .padding0 {
        padding: 0
    }

    .redFont {
        color: #FF0909;
    }

    .splitter-layout_wrapper {
        position: inherit;

        .layout-splitter {
            width: 30px;
            background-color: transparent;
        }


    }
}

/* QuestionnaireHeader */

.questionnaireHeader {
    width: 100%;
    background-color: #fff;
    //box-shadow: 2px 1px #D2D4E0;

    // .nivaGreen{
    //     color:#4294F2;
    // }
    .redFont {
        color: #FF0909;
    }

    .questionnaireDetails {
        //border-right: 1px solid #ccc;
        padding: 10px;

        .proname-container {
            margin-bottom: 10px;
            display: flex;
            align-items: baseline;

            .arrow--back {
                width: 20px;
                height: 20px;
                margin-right: 10px;
                line-height: 24px;
            }

            .pro-name {
                font-size: 14.4px;
                line-height: 24px;
                color: #333333;
                font-weight: 500;
            }
        }

        .pro_card-info {
            display: flex;
            justify-content: space-between;
            margin: 0 30px;

            .left-info {
                font-size: 14px;
                line-height: 20px;
                // letter-spacing: 0.5px;
                font-weight: 500;

                .icon-calender {
                    width: 15px;
                    height: 15px;
                }

                .left-text-green {
                    color: #4294F2;
                    font-weight: 400;
                    margin-left: 5px;
                    margin-right: 5px;
                }
            }

            .right-info {
                font-size: 14px;
                line-height: 20px;
                // letter-spacing: 0.5px;
                font-weight: 500;

                .icon-clock {
                    width: 15px;
                    height: 15px;
                }

                .right-text-red {
                    color: red;
                    margin: 0 5px;
                    font-weight: 400;
                }
                &.expiry--info__container {
                    background-color: #E9B1AF;
                    padding: 5px 15px;
                    border-radius: 15px;
                    color: #ffffff;
                    .left-text-green {
                        padding-left: 5px;
                    }
                }
            }
        }
    }

    .questionnaireCompletionStatus {
        width: 100%;
        padding: 10px 25px;
        display: flex;
        align-items: center;
        flex: 0 0 250px;

        .progress-percentage_wrapper {
            display: flex;
            align-items: center;

            .progress-percentage_container {
                display: flex;
                flex-direction: column;
                width: 100%;
                //max-width: 50%;

                .percentage-text {
                    justify-content: space-between;
                    display: flex;
                }
            }
        }

        .progress-actions_wrapper {
            display: flex;
            justify-content: flex-end;
            align-items: center;

            .action-icon {
                width: 34px;
                height: 34px;
                text-align: center;
                line-height: 34px;
                margin-right: 15px;
                border: 1px solid #ccc;
                border-radius: 4px;

                svg {
                    color: #848484;
                    font-size: 18px;
                }
            }
        }

        .greyFont {
            color: #848484;
            font-size: 14px;
            line-height: 16px;
        }
    }
}

/* common */

.alignRight {
    float: right;
}

.width100 {
    width: 100% !important;
}

.greenButton {
    background-color: #4294F2 !important;
    color: #FFFFFF !important;
    font-size: 13px !important;

    &:hover {
        background-color: #4294F2 !important;
    }

    &:disabled {
        background-color: #ccc !important;
    }
}

.greenOutlinedButton {
    background-color: transparent;
    color: #4294F2 !important;
    font-size: 13px !important;
    border: 1px solid #4294F2 !important;

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

    &:disabled {
        background-color: #ccc !important;
    }
}

.formTitle {
    font-size: 20px;
    color: #333333;
    line-height: 24px;
    font-weight: 500;
}

.formScore {
    font-size: 18px;
    color: #4294F2;
    line-height: 20px;
    vertical-align: baseline;
    float: right;
}

.verticallyCenter {

    vertical-align: middle;
}

.borderPane[aria-expanded="true"] {
    border-left: 4px solid #4294F2;
    border-radius: 0 !important;
}

.selected-list {
    border-left: 4px solid #4294F2;
    border-radius: 0 !important;
}

.default-list {
    // border-left: 4px solid transparent;
    border-radius: 0 !important;
}


// Common css for Dynamic form
.QuestionForm {
    width: 100%;
    border-left: none;

    fieldset {
        border: none;
        padding: 0;
        margin: 0;
        max-height: 550px;
        overflow-y: auto;
        margin-bottom: 10px;

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

        &::-webkit-scrollbar-thumb {
            background-color: #a4a4a4;
            outline: 1px solid #efefef;
        }
    }

    .field-description {
        margin: 0 0 15px;
        color: #7d7d7d;
        font-size: 1rem;
    }
}

.QuestionForm .form-group .field .field-array,
.QuestionForm .form-group .field.field-string,
.QuestionForm .form-group .field.field-integer{
    border-bottom: 1px solid #808080;
    width: 100%;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
form.QuestionForm .form-group {
    margin: 0 0 20px;
}

.QuestionForm .form-group .field .field:last-child .field-array {
    border: none;
}

.QuestionForm .form-group .field .field-array div:empty,
.field-string div:empty {
    display: none;
}

.QuestionForm div.picker {
    display: inherit;
}

.QuestionForm .field-string .picker label {
    display: none;
}

.QuestionForm legend {
    padding: 0;
    font-weight: 500;
    padding: 0 0 12px;
    font-size: 18px;
    color: rgba(0, 0, 0, 0.87);
    font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

.QuestionForm .control-label {
    display: block;
    font-weight: 400;
    font-size: 1rem;
    color: #202020;
    font-family: 'Roboto', sans-serif;

    +div+div {
        margin-top: 0;
    }
}


form.QuestionForm .form-group.field.field-object .form-group.field label[data-shrink='true'],
form.QuestionForm .form-group.field.field-object .form-group.field label[data-shrink='false'] {
    display: none;
}

body .question--details__main-paper {
    box-shadow: none;
    .questionnaireHeader {
        border-bottom: 10px solid #f6f6f6;
        .questionnaireDetails {
            display: flex;
            flex-wrap: wrap;
            padding: 10px 10px 10px 20px;
            > span {
                flex: 0 0 33%;
                margin: 0 0 10px;
                &.pro_card-info {
                    .left-info {
                        color:#757575;
                        svg {
                            color:#757575;
                        }
                        .left-text-green {
                            color: #1d1d1d;
                            font-weight: 500;
                        }
                    }
                    &.questionnaire--title__container {
                        .questionnaire--title {
                            color:#757575;
                        }
                    }
                }
            }
        }
    }
    
    .questionnaire-wrapper{
        .splitter-layout {
            position: relative;
            > .layout-splitter {
                background-color: #f6f6f6;
                width: 10px;
            }
            .layout-pane {
                width: calc(100% - 340px) !important;
                max-height: calc(100vh - 225px);
                min-height: 300px;

                .QuestionForm {
                    .form-group {
                        .field.field-integer {
                            border-bottom: 6px solid #f6f6f6;
                            width: 100%;
                            margin: 0 -20px;
                            padding: 0 20px 20px;
                        }
                    }
                    label.control-label {
                        padding: 5px 20px;
                        margin: 0 -20px;
                        background-color: #e2eef7;
                        color: #10649f;
                    }
                }
            }
        }
    }
}



