/* Placeholder*/
.qa-placeholder {
    text-align: center;
    height: 200px;
}
.qa-placeholder-wrap {
    width: 100%;
    height: 100%;
    background: url('/img/controls/qa_empty.png') no-repeat center center;
    -webkit-background-size: contain;
    background-size: contain;
    display: table;}
.qa-placeholder-content {
    position: relative;
    height: 100%;
    display: table-cell;
    vertical-align: middle;
    color: black;
    font-size: 1.2em;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 5px grey;
}
.qa-placeholder-content span {
    white-space: pre-line;
}
.qa-action-placeholder img {
    vertical-align: middle;
    height: 15px;
    margin-left: 15px;
}
/* END Placeholder */

/* Form */
.qa-question-form-container {
    margin-top: 5px;
    margin-bottom: 5px;
}
.qa-question-input {
    width: 100%;
    padding: 5px;
    border: 1px solid #d1d1d1;
}
.qa-question-input:focus {box-shadow: 0 0 5px cornflowerblue}
.qa-form-error {color:red;}
/* END Form */

/* Item */
.qa-action-row {
    padding-top: 5px;
    text-align: right;
}

.qa-item-question:before,
.qa-item-answer:before {
    position: absolute;
    left: 5px;
}
/* Question */
.qa-item-question {
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    padding: 15px 2em 15px 1.7em;
}
.qa-item-question:hover {box-shadow: 0 1px 0 0 lightgray;}
.qa-item-question:before {content: 'Q:';}
/* END Question */

/* Answer */
.qa-item-answer {
    position: relative;
    display: none;
    margin-left: 1em;
    border-bottom: 1px solid lightgray;
    padding: 5px 15px 15px 1.7em;
}
.qa-item-answer span {white-space: pre-line;}
.qa-item-answer:before {content: 'A:';font-weight: bold;}
/* END Answer */


/* State */
/* Expanded */
.qa-item.expanded .qa-item-answer {display: block;}
.qa-item.expanded .qa-item-question:hover {box-shadow: none;}
.qa-item.expanded .qa-item-toggle:before {background-image: url('/img/arrow_up.png');}
/* END Expanded */

/* Pending */
.qa-item-PENDING:not(.expanded) {box-shadow: 0 1px 0 0 darkorange}
.qa-item-PENDING .qa-item-question:hover {box-shadow: none}
.qa-item-PENDING .qa-item-answer {border-color: darkorange;padding-left: 0}
.qa-item-PENDING .qa-item-answer:before {content: ''}
/* END Pending */

/* Authored */
.qa-item-authored:not(.expanded) {box-shadow: 0 1px 0 0 cornflowerblue;}
.qa-item-authored .qa-item-question {padding-right: 5.7em;}
.qa-item-authored .qa-item-answer {border-color: cornflowerblue;}
/* END Authored */
/* END State */

/* Actions */
.qa-item-actions {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
}
.qa-item-actions span, .qa-item-actions img {
    width: 1em;
    height: 1em;
    cursor: pointer;
    margin-left: 0.5em;
}
.qa-item-actions span:before {
    width: 1em;
    height: 1em;
    display: inline-block;
    content: "";
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-background-size: contain;background-size: contain;
}
.qa-item-toggle:before {background-image: url('/img/arrow_down.png');}
.qa-edit-button:before {background-image: url('/img/controls/icon-edit.png');}
.qa-remove-button:before {background-image: url('/img/controls/icon-trash.png');}
/* END Actions */
/* END Item */
