/*!
 * Waltz - Enterprise Architecture
 * Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project
 * See README.md for more information
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific
 *
 */

@import "survey-instance-response-view";
@import "components/instance-summary/survey-instance-summary";

$invalid-color: #f0ad4e;


.waltz-survey-form {
    input.ng-invalid {
        border-color: $invalid-color;
    }

    input[type=radio].ng-invalid {
        outline: 1px dashed $invalid-color;
    }

    textarea.ng-invalid {
        border-color: $invalid-color;
    }

    select.ng-invalid {
        border-color: $invalid-color;
    }

    .ui-select-container.ng-invalid:not(.ui-select-multiple) .ui-select-match,
    .ui-select-multiple.ui-select-container.ng-invalid {
        border: 1px solid $invalid-color;
    }

    input[type=checkbox] {
        box-shadow: none;
        margin: 0;
    }
}


.waltz-survey-progress {
    .progress-bar {
        box-shadow: none;
    }
}


.waltz-survey-summary-row {
    padding-bottom: 6px;
}

 .waltz-survey-question-section {
     border: 1px solid #eee;
     border-radius: 3px;
     padding: 1em;
     margin: 1em;
     background: #fcfcfc;

     &:hover {
         background: #fafafa;
     }
 }


.waltz-survey-question-edit-row {
    border-bottom: 2px solid #fefefe;
    padding-bottom: 1em;
    margin: 1em;
}