/*****************************************/
/* S3 UPLOADER COMPONENT                 */
/*****************************************/

.UEQS3UploaderComponent .s3dropzone {
    border: dotted;
    background: lightgray;
    padding: 50px 0;
    text-align: center;
    cursor: pointer;
}
.UEQS3UploaderComponent .s3dropzone.dragover {
    background: lightgreen;
}
.UEQS3UploaderComponent .progressbar {
    width: 100%;
    height: 0;
    border: solid black 1px;
    background: white;
    transition: 0.3s height;
    position: relative;
    margin: 0;
    padding: 0;
    display: none;
}
.UEQS3UploaderComponent .progressbar.active {
    height: 20px;
    display: block;
}
.UEQS3UploaderComponent .progressbar .pct {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100%;
    background: lightgreen;
}

/*****************************************/
/* QUESTION SET COMPONENT                */
/*****************************************/

.UEQQuestionSetComponent .questionContainer .commentContainer,
.UEQQuestionSetComponent .questionContainer .primaryResponse > div {
    display: inline-block;
    border-left: solid transparent 3px;
}
.UEQQuestionSetComponent .questionContainer .required.commentContainer,
.UEQQuestionSetComponent .questionContainer .primaryResponse > div.required {
    border-color: firebrick;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}
.UEQQuestionSetComponent .questionContainer input[type=checkbox] {
    margin: .5em .5em .5em 2px;
}
.UEQQuestionSetComponent .questionContainer .primaryResponse label {
    display: block;
    white-space: nowrap;
    margin: 0;
}
.UEQQuestionSetComponent .questionContainer input[type=radio] {
    margin: 0 0.5em 0 2px;
}
.UEQQuestionSetComponent .questionContainer .required i {
    color: firebrick;
}
.UEQQuestionSetComponent .stars,
#InspectionReport .stars {
    display: inline-block;
    position: relative;
    white-space: nowrap;
    color: #0066CC;
}
.UEQQuestionSetComponent .stars {
    cursor: pointer;
    font-size: 2rem;
    height: 3rem;
    line-height: 3rem;
    margin-left: 3px;
}
.UEQQuestionSetComponent .stars .foreground, 
.UEQQuestionSetComponent .stars .background,
#InspectionReport .stars .foreground, 
#InspectionReport .stars .background {
    white-space: nowrap;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
}
.UEQQuestionSetComponent .stars .foreground {
    width: 0;
}
.UEQQuestionSetComponent .questionContainer .stars .foreground i { color: #0066CC !important; }
/*
.UEQQuestionSetComponent .questionContainer .stars.s1 .foreground i { color: gray; }
.UEQQuestionSetComponent .questionContainer .stars.s2 .foreground i { color: red; }
.UEQQuestionSetComponent .questionContainer .stars.s3 .foreground i { color: yellow; }
.UEQQuestionSetComponent .questionContainer .stars.s4 .foreground i { color: green; }
.UEQQuestionSetComponent .questionContainer .stars.s5 .foreground i { color: green; }
*/
.UEQQuestionSetComponent .questionContainer.dragover {
    background: lightgreen;
}
.UEQQuestionSetComponent .questionContainer .progressbar {
    display: block;
    position: relative;
    height: 2px;
}
.UEQQuestionSetComponent .questionContainer .progressbar .pct {
    position: absolute;
    transition: width 0.2s;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    height: 100%;
    background: lightgreen;
}
.UEQQuestionSetComponent .questionContainer .photoResponse {
    position: relative;
}
.UEQQuestionSetComponent .questionContainer .photoResponse .photoContainer {
    position: relative;
    z-index: 2;
    transition: width 0.5s;
    display: table;
}
.UEQQuestionSetComponent .questionContainer .photoResponse .photoContainer span {
    display: table-cell;
    vertical-align: middle;
}
.UEQQuestionSetComponent .questionContainer .photoResponse .progressbar {
    display: block;
    position: absolute;
    z-index: 1;
    top: 1px;
    bottom: 1px;
    height: auto;
    left: 0;
    right: 0;
}
.UEQQuestionSetComponent .questionContainer .photoResponse .progressbar .pct {
    background: -moz-linear-gradient(top, rgba(30,87,153,0) 0%, rgba(30,87,153,0.8) 15%, rgba(30,87,153,1) 19%, rgba(30,87,153,1) 20%, rgba(41,137,216,1) 50%, rgba(30,87,153,1) 80%, rgba(30,87,153,1) 81%, rgba(30,87,153,0.8) 85%, rgba(30,87,153,0) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top, rgba(30,87,153,0) 0%,rgba(30,87,153,0.8) 15%,rgba(30,87,153,1) 19%,rgba(30,87,153,1) 20%,rgba(41,137,216,1) 50%,rgba(30,87,153,1) 80%,rgba(30,87,153,1) 81%,rgba(30,87,153,0.8) 85%,rgba(30,87,153,0) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, rgba(30,87,153,0) 0%,rgba(30,87,153,0.8) 15%,rgba(30,87,153,1) 19%,rgba(30,87,153,1) 20%,rgba(41,137,216,1) 50%,rgba(30,87,153,1) 80%,rgba(30,87,153,1) 81%,rgba(30,87,153,0.8) 85%,rgba(30,87,153,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#001e5799', endColorstr='#001e5799',GradientType=0 ); /* IE6-9 */
    border-radius: 2em;
}
.UEQQuestionSetComponent .questionContainer .photoContainer .photos img {
    display: inline-block;
    max-height: 2em;
    margin: 0 0.5em 0 0;
    position: relative;
}
.UEQQuestionSetComponent .questionContainer .photoContainer .photos.delete span {
    position: relative;
    display: inline-block;
    padding-right: 6px;
}
.UEQQuestionSetComponent .questionContainer .photoContainer .photos.delete span a.delete {
    display: block;
    position: absolute;
    top: -6px;
    right: 6px;
    color: red;
    background: white;
    border-radius: 50%;
    transition: .25s opacity;
    opacity: 0;
}
.UEQQuestionSetComponent .questionContainer .photoContainer .photos.delete span:hover a.delete {
    opacity: 0.5;
}
.UEQQuestionSetComponent .questionContainer .photoContainer .photos.delete span:hover a.delete:hover {
    opacity: 1;
}
.UEQQuestionSetComponent .questionSet {
    display: table;
    width: 100%;
}
.UEQQuestionSetComponent .questionSet .questionContainer {
    display: table-row;
}
.UEQQuestionSetComponent .questionSet .questionContainer:nth-child(even) {
    background: #efefef;
}
.UEQQuestionSetComponent .questionSet .questionContainer.dragover:nth-child(even) {
    background: #78cc78;
}
.UEQQuestionSetComponent .questionSet .questionContainer .cell {
    display: table-cell;
    padding: 0.3em;
    vertical-align: middle;
}
.UEQQuestionSetComponent .questionSet .questionContainer .cell.questionText {
    width: 40%;
}
.UEQQuestionSetComponent .questionSet .questionContainer .cell.primaryResponse, 
.UEQQuestionSetComponent .questionSet .questionContainer .cell.commentResponse {
    width: 15%;
}
.UEQQuestionSetComponent .questionSet .questionContainer .cell.photoResponse {
    width: 20%;
}
.UEQQuestionSetComponent .questionSet .questionContainer .error {
    background: lightpink;
}

@media screen and (max-width:768px) {
    .UEQQuestionSetComponent .questionSet {
        display: block;
    }
    .UEQQuestionSetComponent .questionSet .questionContainer {
        display: block;
    }
    .UEQQuestionSetComponent .questionSet .questionContainer .cell {
        display: block;
        width: 100% !important;
    }
    .UEQQuestionSetComponent .questionSet .questionContainer .cell.commentResponse:before {
        content: 'Comments: ';
    }
    .UEQQuestionSetComponent .questionSet .questionContainer .cell.commentResponse.childHidden:before {
        content: '';
        display: none;
    }

    .UEQQuestionSetComponent .stars {
        height: 4rem;
        line-height: 4rem;
        font-size: 3rem;
        margin-left: 10px;
    }
}

.s3dropzone.disabled, .s3dropzone.disabled * {
    cursor: no-drop;
    opacity: 0.5;
}

#loadingIndicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index:-9999;
    opacity: 0;
    background-color: rgba(255,255,255,0.85);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    transition: opacity .23s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
#loadingIndicator i {
    color: #0066CC;
    font-size: 72px;
}
#loadingIndicator.active {
    z-index:9999;
    opacity:1;
}

.errorContainer .message {
    padding: 1em 0;
}
.errorContainer table.messageTable {
    width: 100%;
}
.errorContainer .messageCell {
    border-radius: 5px;
    padding: 5px;
    background: lightgray;
}
.errorContainer .messageCell h4 {
    display: inline-block;
    margin: 0;
    padding: 0 0.5em;
}

.form-control.required {
    border-left: solid maroon 2px;
}
.form-control.required.error,
.required.error,
label.checkbox-inline.error {
    background: lightpink;
}
label.checkbox-inline.form-control {
    height: auto;
    padding-left: 26px;
}

table.table tr.error td {
    background: lightpink;
}

table.table tr td span.label {
    display: none;
}

@media screen and (max-width:1024px) {
    body.responsive table.table.table-bordered {
        border: none;
    }
    body.responsive table.table thead {
        display: none;
    }
    body.responsive table.table tr {
        display: flex;
        flex-flow: row wrap;
        border-left: solid lightgray 1px;
        border-bottom: solid lightgray 1px;
        margin-bottom: 1em;
        box-shadow: grey 0px 3px 3px;
    }
    body.responsive table.table tr td {
        flex: 1 1 25%;
    }
    body.responsive table.table.table-bordered tr td.action {
        text-align: center;
        display: flex;
    }
    body.responsive table.table.table-bordered tr td.action span:not(.hidden) {
        display: flex;
        flex: inherit;
        align-items: center;
        justify-content: center;
    }
    body.responsive table.table.table-bordered tr td:last-child {
        border-right-width: 1px;
    }
    body.responsive table.table tr td span.label {
        display: block;
        color: black;
        margin-left: 0;
        padding-left: 0;
        text-align: left;
        font-weight: bold;
        text-decoration: underline;
    }
}

.contentBlockHighlighted {
    border: solid red 1px;
    padding-right: 1em;
    position: relative;
}
.contentBlockHighlighted .contentBlockLabel {
    font-size: xx-small;
    position: absolute;
    top: 0;
    left: 0;
    background: yellow;
    color: red;
    opacity: 0.2;
    transition: all 0.2s;
    z-index: 101;
}
.contentBlockHighlighted .contentBlockLabel:hover {
    opacity: 1;
    font-size: large;
}

