@import '../../../assets/css/abstracts/custom-variables.scss';

.poll-survey-card-wrapper:nth-child(4n+1) {
    clear: both;
}

@media only screen and (max-width: 991px) {
    .poll-survey-card-wrapper {
        &:nth-child(4n+1) {
            clear: none;
        }
        &:nth-child(3n+1) {
            clear: both;
        }
    }
}


.card-wrapper {
    margin-bottom: 15px;
}

.checkbox-width {
    display: flex;
    width: 92px;
}

@media only screen and (max-width:768px) {
    .date-picker {
        width: 100%;
    }
}


#questionList {
    height: auto;
    min-height: 1rem;
}

.va-middle {
    vertical-align: middle;
}


// ------------------------------
// -- POLL/INTRO BUTTON
// ------------------------------
.btn-intro-poll {
    margin-top: 20px;
    margin-bottom: 25px;
    font-weight: bold;
}

#poll-wrapper {
    .quiz-answer {
        padding: 5px;
    }

    .quiz-answer__counter {
        padding: 5px 12px;
        width: 34px;
        height: 34px;
        vertical-align: middle;
    }
}


// ------------------------------
// -- VERTICAL ALIGNMENT OF 'Create new Survey or Poll' MODAL
// ------------------------------
@media only screen and (min-width:768px) {
    .type-flex {
        display: flex;

        p.text-muted {
            margin-bottom: 50px;
        }
        .btn-group {
            position: absolute;
            left: 0;
            bottom: 0;
            padding: 0 15px;
        }
    }
}

// ------------------------------
// -- Mark question as mandatory with a *
// ------------------------------
.question-required {
    color: #c33232;
}

.question-unanswered {
    background-color: var(--red-200);
    border: var(--red-300) 1px solid;
    padding-bottom: 10px;
}

// ------------------------------
// -- MIN HEIGHT OF SURVEY ANSWER DIV TO PUSH NAVIGATION BUTTONS TO BOTTOM OF PANEL
// ------------------------------
.question-wrapper {
    min-height: 415px;
}


// ------------------------------
// -- RESULTS BAR STYLING
// ------------------------------
.bar-wrapper {
    & + .bar-wrapper {
        margin-top: 10px;
    }

    // ---------
    // -- VOTE COUNT STYLING/SEPERATOR
    // ---------
    .vote-count {
        float: right;
    }

}


// ------------------------------
// --  USER PROFILE
// ------------------------------
.profile {
    display: block;
    margin-bottom: 5px;

    .profile-img {
        width: 40px;
        margin-right: 5px;
    }
}

// ------------------------------
// --  INPUT GROUP LAYOUT FIX
// ------------------------------
.input-group.input-group[class*="col-"] {
    padding: 0 15px;
}

// ------------------------------
// -- INDIVIDUAL RESULTS ANSWER SPACING
// ------------------------------
.response-count {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid #b7b7b7;
}


// ------------------------------
// -- HANDLE FOR DRAGGABLE ITEMS
// ------------------------------
.handler {
    cursor: move;
    vertical-align: middle;
}

.survey-section-panel__title, .survey-question-panel__title {
margin-left: 8px;
vertical-align: middle;
}

.survey-section-panel__title {
font-size: 16px;
}

// ------------------------------
// -- IE/EDGE INDIVIDUAL RESULT FIXES
// ------------------------------
.ie-input-result {
margin-left: 14px;
}

.ie-input-result[checked="checked"] {
font-weight: bold;
}

.ie-input-result[checked="checked"]::before {
content: '';
background: #3b88fd;
width: 8px;
height: 8px;
margin-right: 6px;
display: inline-block;
vertical-align: middle;
border-radius: 10rem;
margin-left: -14px;
}


// Adds a seperator line between the Polls and Surveys in Add modal.
.add-poll-survey-wrapper {
    position: relative;

    & + .add-poll-survey-wrapper::after {
    content: '';
    background: $gray-300;
    position: absolute;
    top: 0;
    bottom: 0;
    left: -8px;
    width: 1px;
    }
}
